From 88b91d4a1b08985feaeaef6b2c0ea9db54d269fe Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Thu, 12 May 1994 16:50:43 +0000 Subject: [PATCH] * hppa-tdep.c (skip_trampoline_code): Handle argument relocation stubs which return directly to the caller rather than to the stub itself. --- gdb/ChangeLog | 6 ++++++ gdb/hppa-tdep.c | 7 ++++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 8b0176741f6..be7922f7c1f 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +Thu May 12 10:46:27 1994 Jeff Law (law@snake.cs.utah.edu) + + * hppa-tdep.c (skip_trampoline_code): Handle argument relocation + stubs which return directly to the caller rather than to the stub + itself. + Wed May 11 20:11:51 1994 Stan Shebs (shebs@andros.cygnus.com) * c-exp.y (yyerror): Display a more informative error message. diff --git a/gdb/hppa-tdep.c b/gdb/hppa-tdep.c index b55f40f9c40..b999384649d 100644 --- a/gdb/hppa-tdep.c +++ b/gdb/hppa-tdep.c @@ -1622,9 +1622,10 @@ skip_trampoline_code (pc, name) } } - /* Does it look like bl X,rp? Another way to do a branch from the - stub to the actual function. */ - else if ((curr_inst & 0xffe0e000) == 0xe8400000) + /* Does it look like bl X,%rp or bl X,%r0? Another way to do a + branch from the stub to the actual function. */ + else if ((curr_inst & 0xffe0e000) == 0xe8400000 + || (curr_inst & 0xffe0e000) == 0xe8000000) return (loc + extract_17 (curr_inst) + 8) & ~0x3; /* Does it look like bv (rp)? Note this depends on the -- 2.30.2