summaryrefslogtreecommitdiff
path: root/gdb/builtin-regs.h
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2002-09-25 20:30:38 +0000
committerAndrew Cagney <cagney@redhat.com>2002-09-25 20:30:38 +0000
commit7faf367052958a5fbbdfd8545494329761f98597 (patch)
tree7e260a0eb078e45034a44110af26e08b95420d37 /gdb/builtin-regs.h
parent4c12ab110410720d00b9b526de4c259cc7699165 (diff)
downloadgdb-7faf367052958a5fbbdfd8545494329761f98597.tar.gz
2002-09-25 Andrew Cagney <cagney@redhat.com>
* frame.c: Include "gdb_string.h" and "builtin-regs.h". (frame_map_regnum_to_name): New function. (frame_map_name_to_regnum): New function. * frame.h (frame_map_name_to_regnum): Declare. (frame_map_regnum_to_name): Declare. * builtin-regs.c (builtin_reg_map_regnum_to_name): New function. * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare. * parse.c: Do not include "builtin-regs.h". (target_map_name_to_register): Delete function. (write_dollar_variable): Use frame_map_name_to_regnum. * parser-defs.h (target_map_name_to_register): Delete declaration. * expprint.c: Include "frame.h". (print_subexp): Use frame_map_regnum_to_name. * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name. * infcmd.c (registers_info): Use frame_map_name_to_regnum. 2002-09-25 Andrew Cagney <cagney@redhat.com> * gdb.base/pc-fp.exp, gdb.base/pc-fp.c: New test.
Diffstat (limited to 'gdb/builtin-regs.h')
-rw-r--r--gdb/builtin-regs.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/builtin-regs.h b/gdb/builtin-regs.h
index b35c4e91362..fb9fbcf8f8e 100644
--- a/gdb/builtin-regs.h
+++ b/gdb/builtin-regs.h
@@ -26,6 +26,8 @@
extern int builtin_reg_map_name_to_regnum (const char *str, int len);
+extern const char *builtin_reg_map_regnum_to_name (int regnum);
+
extern struct value *value_of_builtin_reg (int regnum,
struct frame_info *frame);