* Makefile.in (a29k-tdep.o): Depend on $(defs_h).

* config/a29k/tm-a29k.h (SAVED_PC_AFTER_CALL): Use gr122 not lr0
	if this	is a transparent procedure.
This commit is contained in:
Jim Kingdon 1993-09-14 16:22:07 +00:00
parent f8f6b2c755
commit 899931b638
3 changed files with 20 additions and 2 deletions

View File

@ -1,3 +1,9 @@
Tue Sep 14 09:12:17 1993 Jim Kingdon (kingdon@cirdan.cygnus.com)
* Makefile.in (a29k-tdep.o): Depend on $(defs_h).
* config/a29k/tm-a29k.h (SAVED_PC_AFTER_CALL): Use gr122 not lr0
if this is a transparent procedure.
Mon Sep 13 16:06:43 1993 Jim Kingdon (kingdon@cirdan.cygnus.com) Mon Sep 13 16:06:43 1993 Jim Kingdon (kingdon@cirdan.cygnus.com)
* remote.c: Define remote_debug to 0 and #if 0 baud_rate. Temporary * remote.c: Define remote_debug to 0 and #if 0 baud_rate. Temporary

View File

@ -953,7 +953,7 @@ udr.o: 29k-share/udi/udr.c $(udiheaders)
$(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/29k-share/udi/udr.c $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/29k-share/udi/udr.c
a29k-pinsn.o: a29k-pinsn.c $(bfd_h) $(dis-asm_h) a29k-pinsn.o: a29k-pinsn.c $(bfd_h) $(dis-asm_h)
a29k-tdep.o: a29k-tdep.c $(gdbcmd_h) $(gdbcore_h) $(inferior_h) a29k-tdep.o: a29k-tdep.c $(gdbcmd_h) $(gdbcore_h) $(inferior_h) $(defs_h)
a68v-nat.o: a68v-nat.c $(defs_h) $(gdbcore_h) $(inferior_h) a68v-nat.o: a68v-nat.c $(defs_h) $(gdbcore_h) $(inferior_h)
altos-xdep.o: altos-xdep.c $(defs_h) $(gdbcore_h) $(inferior_h) altos-xdep.o: altos-xdep.c $(defs_h) $(gdbcore_h) $(inferior_h)
arm-pinsn.o: arm-pinsn.c $(OP_INCLUDE)/arm.h $(defs_h) $(symtab_h) arm-pinsn.o: arm-pinsn.c $(OP_INCLUDE)/arm.h $(defs_h) $(symtab_h)

View File

@ -52,7 +52,9 @@ CORE_ADDR skip_prologue ();
the new frame is not set up until the new function executes the new frame is not set up until the new function executes
some instructions. */ some instructions. */
#define SAVED_PC_AFTER_CALL(frame) (read_register (LR0_REGNUM)) #define SAVED_PC_AFTER_CALL(frame) ((frame->flags & TRANSPARENT) \
? read_register (TPC_REGNUM) \
: read_register (LR0_REGNUM))
/* I'm not sure about the exact value of this, but based on looking /* I'm not sure about the exact value of this, but based on looking
at the stack pointer when we get to main this seems to be right. at the stack pointer when we get to main this seems to be right.
@ -175,6 +177,7 @@ CORE_ADDR skip_prologue ();
: (x) == 164 ? EXO_REGNUM \ : (x) == 164 ? EXO_REGNUM \
: (error ("Internal error in SR_REGNUM"), 0)) : (error ("Internal error in SR_REGNUM"), 0))
#define GR96_REGNUM 0 #define GR96_REGNUM 0
/* Define the return register separately, so it can be overridden for /* Define the return register separately, so it can be overridden for
kernel procedure calling conventions. */ kernel procedure calling conventions. */
#define RETURN_REGNUM GR96_REGNUM #define RETURN_REGNUM GR96_REGNUM
@ -183,16 +186,25 @@ CORE_ADDR skip_prologue ();
to make call_function work right. */ to make call_function work right. */
#define SP_REGNUM MSP_REGNUM #define SP_REGNUM MSP_REGNUM
#define FP_REGNUM 33 /* lr1 */ #define FP_REGNUM 33 /* lr1 */
/* Return register for transparent calling convention (gr122). */
#define TPC_REGNUM (122 - 96 + GR96_REGNUM)
/* Large Return Pointer (gr123). */ /* Large Return Pointer (gr123). */
#define LRP_REGNUM (123 - 96 + GR96_REGNUM) #define LRP_REGNUM (123 - 96 + GR96_REGNUM)
/* Static link pointer (gr124). */ /* Static link pointer (gr124). */
#define SLP_REGNUM (124 - 96 + GR96_REGNUM) #define SLP_REGNUM (124 - 96 + GR96_REGNUM)
/* Memory Stack Pointer (gr125). */ /* Memory Stack Pointer (gr125). */
#define MSP_REGNUM (125 - 96 + GR96_REGNUM) #define MSP_REGNUM (125 - 96 + GR96_REGNUM)
/* Register allocate bound (gr126). */ /* Register allocate bound (gr126). */
#define RAB_REGNUM (126 - 96 + GR96_REGNUM) #define RAB_REGNUM (126 - 96 + GR96_REGNUM)
/* Register Free Bound (gr127). */ /* Register Free Bound (gr127). */
#define RFB_REGNUM (127 - 96 + GR96_REGNUM) #define RFB_REGNUM (127 - 96 + GR96_REGNUM)
/* Register Stack Pointer. */ /* Register Stack Pointer. */
#define RSP_REGNUM GR1_REGNUM #define RSP_REGNUM GR1_REGNUM
#define LR0_REGNUM 32 #define LR0_REGNUM 32