* i386-tdep.c (get_longjmp_target): Fix compilation failure

by setting dummy values to JB_PC and JB_ELEMENT_SIZE
 	if not defined.
This commit is contained in:
Pierre Muller 2002-02-19 08:44:29 +00:00
parent c5d00cc701
commit e41e6bbfeb
2 changed files with 16 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
* i386-tdep.c (get_longjmp_target): Fix compilation failure
by setting dummy values to JB_PC and JB_ELEMENT_SIZE
if not defined.
2002-02-18 Richard Earnshaw <rearnsha@arm.com>
* config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.

View File

@ -839,6 +839,16 @@ i386_pop_frame (void)
#ifdef GET_LONGJMP_TARGET
/* FIXME: Multi-arching does not set JB_PC and JB_ELEMENT_SIZE yet.
Fill in with dummy value to enable compilation. */
#ifndef JB_PC
#define JB_PC 0
#endif /* JB_PC */
#ifndef JB_ELEMENT_SIZE
#define JB_ELEMENT_SIZE 4
#endif /* JB_ELEMENT_SIZE */
/* Figure out where the longjmp will land. Slurp the args out of the
stack. We expect the first arg to be a pointer to the jmp_buf
structure from which we extract the pc (JB_PC) that we will land