diff options
author | Andrew Cagney <cagney@redhat.com> | 2003-02-02 18:53:22 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2003-02-02 18:53:22 +0000 |
commit | 5f601589e1e0dad6276d458d25c818ff6458b3f3 (patch) | |
tree | a500eeebde48c61fdf9cfe66f098f693e46a92e6 /gdb/frame.c | |
parent | 6a3fe0a431156fb3c8626e9d9c3e2de22356228c (diff) | |
download | gdb-5f601589e1e0dad6276d458d25c818ff6458b3f3.zip gdb-5f601589e1e0dad6276d458d25c818ff6458b3f3.tar.gz gdb-5f601589e1e0dad6276d458d25c818ff6458b3f3.tar.bz2 |
2003-02-02 Andrew Cagney <ac131313@redhat.com>
* frame.h: Note that namelen can be negative.
* frame.c (frame_map_name_to_regnum): When LEN is negative, use
NAME's length.
* NEWS: Mention that the d10v's `regs' command is deprecated.
* d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
(d10v_print_registers_info): New function.
(show_regs): Call d10v_print_registers_info.
(_initialize_d10v_tdep): Mark "show regs" command as deprecated.
Diffstat (limited to 'gdb/frame.c')
-rw-r--r-- | gdb/frame.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/frame.c b/gdb/frame.c index e4adf7d..f5d40bd 100644 --- a/gdb/frame.c +++ b/gdb/frame.c @@ -385,6 +385,9 @@ frame_map_name_to_regnum (const char *name, int len) { int i; + if (len < 0) + len = strlen (name); + /* Search register name space. */ for (i = 0; i < NUM_REGS + NUM_PSEUDO_REGS; i++) if (REGISTER_NAME (i) && len == strlen (REGISTER_NAME (i)) |