Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Stan Shebs <stanshebs@earthlink.net>
To: gdb-patches@sourceware.org
Subject: Re: Status of 'blacklist' patch?
Date: Mon, 10 Oct 2011 12:34:00 -0000	[thread overview]
Message-ID: <4E92E639.7000402@earthlink.net> (raw)
In-Reply-To: <CAFWcpZ56NugcRofZqrkK95Tjh5kcP+nuBpchZ1HWJ1HymaTgdg@mail.gmail.com>

On 10/6/11 4:15 PM, Justin Lebar wrote:
> There's a lot of change of terminology from "default breakpoint" to
> "displayed codepoint".  I know we've debated better substitutes for
> "breakpoint", but this patch is maybe not the best place to introduce one.
> How about "last displayed symtab and line"?  That seems to be
> something which is meaningful.

Or even "last displayed sal" :-)

+    * stack.h (clear_last_displayed_symtab_and_line,
+    last_displayed_symtab_and_line_is_valid, get_last_displayed_pspace,
+    get_last_displayed_addr, get_last_displayed_symtab,
+    get_last_displayed_line, get_last_displayed_symtab_and_line): Added
+

This is why we like periods at the end of each ChangeLog bit - this 
looks like
it got cut off... plus it's good to say as "Declare." as reminder that it's
not a code bit that was added.

@@ -1394,7 +1397,7 @@ init_cli_cmds (void)
    char *source_help_text;

    /* Define the classes of commands.
-     They will appear in the help list in the reverse of this order.  */
+     They will appear in the help list in alphabetical order.  */


I'm not going to be persnickety about this one, but we really want 
random comment
fixups to be separate patches - took me a moment to decide if this was 
somehow
relevant to the masses of code.


+Suppose you wish to step into the functions @code{foo} and @code{bar}, 
but you
+are not interested in stepping through @code{boring}.  If you run 
@code{step}
+at line 103, you'll enter @code{boring()}, but if you run @code{next}, 
you'll
+step over both @code{foo} and @code{boring}!  What can you do?


I would lose the rhetorical question, it's not really adding much.


+
+@kindex skip delete
+@item skip delete @var{n}
+Delete the skip with identifier @var{n}.


No mass-delete by omitting the argument??


+
+  /* Architecture we used to create the skiplist entry. May be null
+     if the entry is pending a shared library load. */
+  struct gdbarch *gdbarch;


I'm not clear on why we need gdbarch, since CORE_ADDR should always be 
long enough?


+  /* Count the number of rows in the table and see if we need space for a
+     64-bit address anywhere. */
+  ALL_SKIPLIST_ENTRIES (e)
+    if (entry_num == -1 || e->number == entry_num)
+      {
+    num_printable_entries++;
+    if (e->gdbarch && gdbarch_addr_bit (e->gdbarch) > 32)
+      address_width = 18;
+      }


Ah, for address printing.  My inclination is to say to drop this 
admirable goal and make a separate patch that attempts to be smart for 
address printing in breakpoint and skip lists in general.  It seems like 
a nice design might look at actual values in the list and only use wide 
space if all addresses are large, sort of like how html table layout works.

+    ui_out_message (current_uiout, 0, _("Not ignoring any files or 
functions.\n"));

"Not skipping"

In general, it's looking pretty good!  As people have commented 
previously, regexp would be nice to have, but with this much code, I 
think it's better to get a first version in, accumulate a little 
practical experience before deciding about which additional features to 
add.  (Between Moz and GCC, there are going to be lots of users I think. 
:-) )

Also, in thumbing back through old discussion, I notice that the last 
state was that you had submitted paperwork for copyright assignment, but 
not received anything, and I don't remember getting any email adding you 
to the "has assignments" list.  Did you ever get the confirmation from 
the FSF?

Stan
stan@codesourcery.com


  reply	other threads:[~2011-10-10 12:34 UTC|newest]

Thread overview: 44+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-06 12:12 Diego Novillo
2011-10-06 14:08 ` Justin Lebar
2011-10-06 15:51   ` Stan Shebs
2011-10-06 20:16     ` Justin Lebar
2011-10-10 12:34       ` Stan Shebs [this message]
2011-10-11 21:34         ` Justin Lebar
2011-10-11 23:54           ` Doug Evans
2011-10-16 19:22             ` Justin Lebar
2011-10-20 19:46               ` Tom Tromey
2011-10-25 20:07                 ` Justin Lebar
2011-10-25 20:41                   ` Pedro Alves
2011-10-25 21:25                     ` Justin Lebar
2011-10-20 20:40               ` Eli Zaretskii
2011-10-25 16:47                 ` Justin Lebar
2011-10-25 16:53                   ` Eli Zaretskii
2011-10-25 19:52                     ` Justin Lebar
2011-10-25 20:13                       ` Eli Zaretskii
2011-10-25 20:30                         ` Justin Lebar
2011-10-26  1:06                           ` Stan Shebs
2011-10-26  3:45                             ` Justin Lebar
2011-10-26  5:37                               ` Stan Shebs
2011-10-26  8:10                                 ` Joel Brobecker
2011-10-26 13:28                             ` Eli Zaretskii
2011-10-26 15:11                               ` Justin Lebar
2011-10-28 18:18                                 ` Tom Tromey
2011-10-28 19:48                                   ` Justin Lebar
2011-10-28 19:53                                     ` Tom Tromey
2011-10-28 19:49                                 ` Tom Tromey
2011-10-28 19:55                                   ` Justin Lebar
2011-10-28 20:37                                     ` Tom Tromey
2011-10-31 15:52                                       ` Justin Lebar
     [not found]                                         ` <4EAF2E0E.7080508@earthlink.net>
2011-11-01 14:53                                           ` Justin Lebar
2011-11-02 22:43                                             ` Maciej W. Rozycki
2011-11-02 23:52                                               ` Stan Shebs
2011-11-03  0:20                                                 ` Maciej W. Rozycki
2011-11-03  3:54                                               ` Eli Zaretskii
2011-11-03 14:32                                                 ` Tom Tromey
2011-11-03 16:54                                                   ` Eli Zaretskii
2011-11-03 18:04                                                   ` Maciej W. Rozycki
2011-11-03 18:25                                                     ` Eli Zaretskii
2011-11-03 19:01                                                       ` Stan Shebs
2011-10-06 17:19   ` Diego Novillo
2011-10-06 17:33   ` Tom Tromey
2011-10-06 17:37     ` Diego Novillo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4E92E639.7000402@earthlink.net \
    --to=stanshebs@earthlink.net \
    --cc=gdb-patches@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox