From: Eli Zaretskii <eliz@gnu.org>
To: Vladimir Prus <vladimir@codesourcery.com>
Cc: gdb-patches@sources.redhat.com
Subject: Re: [8/9] multiple locations
Date: Sat, 08 Sep 2007 11:46:00 -0000 [thread overview]
Message-ID: <u1wd9s7kn.fsf@gnu.org> (raw)
In-Reply-To: <200709080248.52539.vladimir@codesourcery.com> (message from Vladimir Prus on Sat, 8 Sep 2007 02:48:52 +0400)
> From: Vladimir Prus <vladimir@codesourcery.com>
> Date: Sat, 8 Sep 2007 02:48:52 +0400
>
> @@ -3397,30 +3448,79 @@ print_one_breakpoint (struct breakpoint
> struct cleanup *old_chain = make_cleanup_ui_out_stream_delete (stb);
> struct cleanup *bkpt_chain;
> [...]
> - ui_out_field_int (uiout, "number", b->number);
> + if (part_of_multiple)
> + {
> + char buf[30];
Why 30? GNU coding standards frown on arbitrary constant sizes.
> + sprintf (buf, "%d.%d", b->number, loc_number);
> + ui_out_field_string (uiout, "number", buf);
I'm worried about this N.M thing: when the number of locations takes
2 or 3 digits, won't it disrupt the display alignment?
> - ui_out_field_fmt (uiout, "enabled", "%c", bpenables[(int) b->enable_state]);
> - ui_out_spaces (uiout, 2);
> + if (part_of_multiple)
> + ui_out_field_string (uiout, "enabled",
> + loc->shlib_disabled
> + ? (loc->enabled ? "y(p)" : "n(p)")
> + : (loc->enabled ? "y" : "n"));
These changes in the breakpoint display should be documented in the
user manual.
> + else if (header_of_multiple)
> + ui_out_field_string (uiout, "addr", "<MULTIPLE>");
And this.
> +/* set_raw_breakpoint() is a low level routine for allocating and
Another GNU coding standards thing: foo() should not be used as an
indication that `foo' is a function. Just say `foo' instead; foo()
looks like a call to `foo' with no arguments, which is not what you
mean.
> @@ -7579,6 +7874,13 @@ disable_command (char *args, int from_tt
> default:
> continue;
> }
> + else if (strchr (args, '.'))
> + {
> + struct bp_location *loc = find_location_by_number (args);
> + if (loc)
> + loc->enabled = 0;
> + check_duplicates (loc->owner);
> + }
This new feature needs documentation.
next prev parent reply other threads:[~2007-09-08 11:46 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-07 22:49 Vladimir Prus
2007-09-07 22:51 ` Vladimir Prus
2007-09-08 11:46 ` Eli Zaretskii [this message]
2007-09-08 11:55 ` Vladimir Prus
2007-09-08 12:28 ` Eli Zaretskii
2007-09-22 19:53 ` Vladimir Prus
2007-09-23 4:13 ` Eli Zaretskii
2007-09-08 13:17 ` Mark Kettenis
2007-11-13 7:15 Nick Roberts
2007-11-13 8:05 ` Vladimir Prus
2007-11-13 8:31 ` Nick Roberts
2007-11-13 8:45 ` Vladimir Prus
2007-11-13 12:38 ` Daniel Jacobowitz
2007-11-13 19:58 ` Vladimir Prus
2007-11-14 19:21 ` Jim Blandy
2007-11-13 22:20 ` Eli Zaretskii
2007-11-13 22:47 ` Joel Brobecker
2007-11-14 6:29 ` Vladimir Prus
2007-11-14 7:06 ` Nick Roberts
2007-11-14 11:58 ` Vladimir Prus
2007-11-14 19:18 ` Nick Roberts
2007-11-14 19:37 ` Joel Brobecker
2007-11-14 19:38 ` Vladimir Prus
2007-11-14 20:42 ` Nick Roberts
2007-11-14 21:17 ` Joel Brobecker
2007-11-15 20:39 ` Vladimir Prus
2007-11-16 20:37 ` Nick Roberts
2007-11-19 2:42 ` Nick Roberts
2007-11-14 18:56 ` Eli Zaretskii
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=u1wd9s7kn.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=gdb-patches@sources.redhat.com \
--cc=vladimir@codesourcery.com \
/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