From: Pierre Muller Date: Tue, 19 Feb 2002 08:44:29 +0000 (+0000) Subject: * i386-tdep.c (get_longjmp_target): Fix compilation failure X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e41e6bbfeb1fb4c8d5ab4764ae7b9fb3d308b70a;p=binutils-gdb.git * i386-tdep.c (get_longjmp_target): Fix compilation failure by setting dummy values to JB_PC and JB_ELEMENT_SIZE if not defined. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index ad37aeeea5b..865ac7cfe70 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2002-02-19 Pierre Muller + + * 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 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o. diff --git a/gdb/i386-tdep.c b/gdb/i386-tdep.c index 31ecb76379b..946838bccce 100644 --- a/gdb/i386-tdep.c +++ b/gdb/i386-tdep.c @@ -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