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 | a48442a0505c9d0dd748314642381a7e49949a73 (patch) | |
tree | 73ef6303917819187e01296c2a11246326d0f7b9 /gdb/arc-tdep.c | |
parent | fe419ffc23684a0e4cec7c7808978168871e2928 (diff) | |
download | fsf-binutils-gdb-a48442a0505c9d0dd748314642381a7e49949a73.zip fsf-binutils-gdb-a48442a0505c9d0dd748314642381a7e49949a73.tar.gz fsf-binutils-gdb-a48442a0505c9d0dd748314642381a7e49949a73.tar.bz2 |
* 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 10a1bc1..ffa538f 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. |