mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 01:07:52 +00:00
* remote-z8k.c, z8k-tdep.c: support for the Z8001 and Z8002.
* parse.c (std_regs): Only declare if NO_STD_REGS is defined.
This commit is contained in:
@@ -50,7 +50,12 @@ prefixify_subexp PARAMS ((struct expression *, struct expression *, int, int));
|
||||
/* Assign machine-independent names to certain registers
|
||||
(unless overridden by the REGISTER_NAMES table) */
|
||||
|
||||
#ifdef NO_STD_REGS
|
||||
unsigned num_std_regs = 0;
|
||||
struct std_regs std_regs[1];
|
||||
#else
|
||||
struct std_regs std_regs[] = {
|
||||
|
||||
#ifdef PC_REGNUM
|
||||
{ "pc", PC_REGNUM },
|
||||
#endif
|
||||
@@ -63,10 +68,13 @@ struct std_regs std_regs[] = {
|
||||
#ifdef PS_REGNUM
|
||||
{ "ps", PS_REGNUM },
|
||||
#endif
|
||||
|
||||
};
|
||||
|
||||
unsigned num_std_regs = (sizeof std_regs / sizeof std_regs[0]);
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
/* Begin counting arguments for a function call,
|
||||
saving the data about any containing call. */
|
||||
|
||||
Reference in New Issue
Block a user