From a48442a0505c9d0dd748314642381a7e49949a73 Mon Sep 17 00:00:00 2001 From: Richard Earnshaw Date: Wed, 20 Feb 2002 10:42:59 +0000 Subject: [PATCH] * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC is defined. * sparc-tdep.c (get_longjmp_target): Likewise. --- gdb/ChangeLog | 6 ++++++ gdb/arc-tdep.c | 4 +++- gdb/sparc-tdep.c | 5 +++-- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 82c4898f6a..9b2982c5c0 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2002-02-20 Richard Earnshaw + + * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC + is defined. + * sparc-tdep.c (get_longjmp_target): Likewise. + 2002-02-20 Richard Earnshaw * News: Add news about ARM and Multi-arch. Mention the new target diff --git a/gdb/arc-tdep.c b/gdb/arc-tdep.c index 10a1bc11b6..ffa538f6da 100644 --- a/gdb/arc-tdep.c +++ b/gdb/arc-tdep.c @@ -571,7 +571,9 @@ arc_software_single_step (enum target_signal ignore, /* sig but we don't need it } } -#ifdef GET_LONGJMP_TARGET +/* Because of Multi-arch, GET_LONGJMP_TARGET is always defined. So test + for a definition of JB_PC. */ +#ifdef JB_PC /* 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 at. The pc is copied into PC. diff --git a/gdb/sparc-tdep.c b/gdb/sparc-tdep.c index 1b7954b2da..b2380b4f13 100644 --- a/gdb/sparc-tdep.c +++ b/gdb/sparc-tdep.c @@ -1686,8 +1686,9 @@ fill_fpregset (gdb_fpregset_t *fpregsetp, int regno) #endif /* USE_PROC_FS */ - -#ifdef GET_LONGJMP_TARGET +/* Because of Multi-arch, GET_LONGJMP_TARGET is always defined. So test + for a definition of JB_PC. */ +#ifdef JB_PC /* Figure out where the longjmp will land. We expect that we have just entered longjmp and haven't yet setup the stack frame, so the args are still in the -- 2.34.1