GDB/ARM - Make REGISTER_NAME call a function

Richard Earnshaw rearnsha@arm.com
Mon Jan 21 15:54:00 GMT 2002


Although the ARM port already uses REGISTER_NAME() it was bound to a data 
table lookup.  Attached patch makes it use a function.

Committed as obvious for multi-arch support.

2002-01-21  Richard Earnshaw  <rearnsha@arm.com>

	* arm-tdep.c (arm_register_name): New function.
	(arm_registers_names): Make static.
	* config/arm/tm-arm.h (arm_register_names): Delete declaration.
	(arm_register_name): Declare.
	(REGISTER_NAME): Use it.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: gdb-regname.patch
Type: text/x-patch
Size: 2318 bytes
Desc: gdb-regname.patch
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20020121/2a7a7498/attachment.bin>


More information about the Gdb-patches mailing list