diff options
author | Stan Shebs <shebs@codesourcery.com> | 2010-04-08 23:13:46 +0000 |
---|---|---|
committer | Stan Shebs <shebs@codesourcery.com> | 2010-04-08 23:13:46 +0000 |
commit | ad443146120571d6513cb302e85e291b32cc3420 (patch) | |
tree | dbe735b0d69379b61d34d11f7d919ea1c0871ba0 /gdb/breakpoint.c | |
parent | 40936b0de8ad60a96731849f5e61ef3276489857 (diff) | |
download | gdb-ad443146120571d6513cb302e85e291b32cc3420.zip gdb-ad443146120571d6513cb302e85e291b32cc3420.tar.gz gdb-ad443146120571d6513cb302e85e291b32cc3420.tar.bz2 |
2010-04-08 Stan Shebs <stan@codesourcery.com>
* breakpoint.c (default_collect_info): New function.
(breakpoints_info): Call it.
(maintenance_info_breakpoints): Ditto.
(tracepoints_info): Ditto.
Diffstat (limited to 'gdb/breakpoint.c')
-rw-r--r-- | gdb/breakpoint.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index c1c8b97..213d96c 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -5052,6 +5052,25 @@ breakpoint_1 (int bnum, int allflag, int (*filter) (const struct breakpoint *)) return nr_printable_breakpoints; } +/* Display the value of default-collect in a way that is generally + compatible with the breakpoint list. */ + +static void +default_collect_info (void) +{ + /* If it has no value (which is frequently the case), say nothing; a + message like "No default-collect." gets in user's face when it's + not wanted. */ + if (!*default_collect) + return; + + /* The following phrase lines up nicely with per-tracepoint collect + actions. */ + ui_out_text (uiout, "default collect "); + ui_out_field_string (uiout, "default-collect", default_collect); + ui_out_text (uiout, " \n"); +} + static void breakpoints_info (char *bnum_exp, int from_tty) { @@ -5061,6 +5080,8 @@ breakpoints_info (char *bnum_exp, int from_tty) bnum = parse_and_eval_long (bnum_exp); breakpoint_1 (bnum, 0, NULL); + + default_collect_info (); } static void @@ -5091,6 +5112,8 @@ maintenance_info_breakpoints (char *bnum_exp, int from_tty) bnum = parse_and_eval_long (bnum_exp); breakpoint_1 (bnum, 1, NULL); + + default_collect_info (); } static int @@ -10462,6 +10485,8 @@ tracepoints_info (char *tpnum_exp, int from_tty) else ui_out_message (uiout, 0, "No tracepoint number %d.\n", tpnum); } + + default_collect_info (); } /* The 'enable trace' command enables tracepoints. |