aboutsummaryrefslogtreecommitdiff
path: root/gdb/frame.h
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2003-02-02 18:53:22 +0000
committerAndrew Cagney <cagney@redhat.com>2003-02-02 18:53:22 +0000
commit5f601589e1e0dad6276d458d25c818ff6458b3f3 (patch)
treea500eeebde48c61fdf9cfe66f098f693e46a92e6 /gdb/frame.h
parent6a3fe0a431156fb3c8626e9d9c3e2de22356228c (diff)
downloadfsf-binutils-gdb-5f601589e1e0dad6276d458d25c818ff6458b3f3.zip
fsf-binutils-gdb-5f601589e1e0dad6276d458d25c818ff6458b3f3.tar.gz
fsf-binutils-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.h')
-rw-r--r--gdb/frame.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/frame.h b/gdb/frame.h
index 8e0da6d..dc90e0a 100644
--- a/gdb/frame.h
+++ b/gdb/frame.h
@@ -291,9 +291,10 @@ extern void frame_read_unsigned_register (struct frame_info *frame,
/* Map between a frame register number and its name. A frame register
space is a superset of the cooked register space --- it also
- includes builtin registers. */
+ includes builtin registers. If NAMELEN is negative, use the NAME's
+ length when doing the comparison. */
-extern int frame_map_name_to_regnum (const char *name, int strlen);
+extern int frame_map_name_to_regnum (const char *name, int namelen);
extern const char *frame_map_regnum_to_name (int regnum);
/* Unwind the PC. Strictly speaking return the resume address of the