diff options
author | Pedro Alves <palves@redhat.com> | 2011-02-18 16:43:53 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2011-02-18 16:43:53 +0000 |
commit | 3c3fe74c6fe58e9035ff5a045d9497321d3a0d31 (patch) | |
tree | bb53f5321d33c6ac4ce9662afb1df47baa028958 /gdb/breakpoint.c | |
parent | badc813953563b5539ce2974242b9c3d3860adab (diff) | |
download | gdb-3c3fe74c6fe58e9035ff5a045d9497321d3a0d31.zip gdb-3c3fe74c6fe58e9035ff5a045d9497321d3a0d31.tar.gz gdb-3c3fe74c6fe58e9035ff5a045d9497321d3a0d31.tar.bz2 |
* breakpoint.c (get_number_trailer): No longer accept a NULL PP.
* breakpoint.h (get_number_or_range): Declare.
* printcmd.c (ALL_DISPLAYS): Declare.
(delete_display): Reimplement taking a display pointer.
(undisplay_command): Accept a range of displays to delete, using
get_number_or_range.
Diffstat (limited to 'gdb/breakpoint.c')
-rw-r--r-- | gdb/breakpoint.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index ca56c43..c9e149b 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -561,8 +561,6 @@ struct program_space *default_breakpoint_pspace; name of a convenience variable. Making it an expression wouldn't work well for map_breakpoint_numbers (e.g. "4 + 5 + 6"). - If the string is a NULL pointer, that denotes the last breakpoint. - TRAILER is a character which can be found after the number; most commonly this is `-'. If you don't want a trailer, use \0. */ @@ -572,10 +570,7 @@ get_number_trailer (char **pp, int trailer) int retval = 0; /* default */ char *p = *pp; - if (p == NULL) - /* Empty line means refer to the last breakpoint. */ - return breakpoint_count; - else if (*p == '$') + if (*p == '$') { /* Make a copy of the name, so we can null-terminate it to pass to lookup_internalvar(). */ @@ -651,7 +646,7 @@ get_number (char **pp) is completed. The call that completes the range will advance pointer PP past <number2>. */ -int +int get_number_or_range (char **pp) { static int last_retval, end_value; |