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.
This commit is contained in:
Andrew Cagney
2002-09-25 20:30:38 +00:00
parent 58daee9877
commit e36180d795
13 changed files with 202 additions and 50 deletions

View File

@@ -210,12 +210,6 @@ struct op_print
int right_assoc;
};
/* The generic method for targets to specify how their registers are
named. The mapping can be derived from two sources: REGISTER_NAME;
and builtin regs. */
extern int target_map_name_to_register (char *, int);
/* Function used to avoid direct calls to fprintf
in the code generated by the bison parser. */