This is the mail archive of the gdb-patches@sourceware.cygnus.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: RFC: Patch to arm-tdep.c -- Register flavors


Hi Andrew,

: With regard to the argumet to set dissassembly-flavour et.al. commands,
: is there anything generic in either BFD or opcodes that can be used to
: determine the names?

Sadly no.  In fact as far as I know the ARM is the only port so far
which has multiple flavours of register names (or at least supports
displaying them in disassembler dumps).

: Also are the functions:
: 
: > ! /* From opcodes/arm-dis.c */
: > !
: > ! extern int get_arm_regname_num_options (void);
: > !
: > ! extern int set_arm_regname_option (int option);
: > 
: > ! extern int get_arm_regnames (int option, const char **setname,
: > !                            const char **setdescription,
: > !                            const char ***regnames);
: 
: available in a header file (Nick?).  That would indicate an ongoing
: committment, on the part of the opcode maintainers, to support these
: interfaces.

They will be...  I am about to check in the following patch:

Cheers
	Nick


2000-02-16  Nick Clifton  <nickc@cygnus.com>

	* dis-asm.h: Add prototypes for ARM register name functions.

Index: include/dis-asm.h
===================================================================
RCS file: /cvs/src//src/include/dis-asm.h,v
retrieving revision 1.8
diff -p -r1.8 dis-asm.h
*** dis-asm.h	2000/02/03 18:12:54	1.8
--- dis-asm.h	2000/02/16 18:17:02
*************** extern int print_insn_pj		PARAMS ((bfd_v
*** 196,201 ****
--- 196,204 ----
  
  extern void print_arm_disassembler_options PARAMS ((FILE *));
  extern void parse_arm_disassembler_option  PARAMS ((char *));
+ extern int  get_arm_regname_num_options    PARAMS ((void));
+ extern int  set_arm_regname_option         PARAMS ((int));
+ extern int  get_arm_regnames               PARAMS ((int, const char **, const char **, const char ***));
  
  /* Fetch the disassembler for a given BFD, if that support is available.  */
  extern disassembler_ftype disassembler	PARAMS ((bfd *));

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]