diff options
author | Richard Earnshaw <richard.earnshaw@arm.com> | 2002-02-20 10:42:59 +0000 |
---|---|---|
committer | Richard Earnshaw <richard.earnshaw@arm.com> | 2002-02-20 10:42:59 +0000 |
commit | f33e11e7aacf244f8775439a11104e2e078e62c3 (patch) | |
tree | ee46e3f9bba7a50a6b3437057ceb92dd9282cfac /gdb/arc-tdep.c | |
parent | f6b8172ee88294ffcf75208bd60153cbec193014 (diff) | |
download | gdb-f33e11e7aacf244f8775439a11104e2e078e62c3.tar.gz |
* arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
is defined.
* sparc-tdep.c (get_longjmp_target): Likewise.
Diffstat (limited to 'gdb/arc-tdep.c')
-rw-r--r-- | gdb/arc-tdep.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/arc-tdep.c b/gdb/arc-tdep.c index 10a1bc11b6c..ffa538f6da2 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. |