From fe3523372d6afeebd9509c4fdfbc2b5a51f97d05 Mon Sep 17 00:00:00 2001 From: Randolph Chung Date: Mon, 7 Jun 2004 02:17:29 +0000 Subject: 2004-06-06 Randolph Chung * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline) (hppa_hpux_skip_trampoline_code): Don't cache symbol values. * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise. * hppa-tdep.c (hppa_symbol_address): New function definition. * hppa-tdep.h (hppa_symbol_address): New function declaration. --- gdb/hppa-linux-tdep.c | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) (limited to 'gdb/hppa-linux-tdep.c') diff --git a/gdb/hppa-linux-tdep.c b/gdb/hppa-linux-tdep.c index 32c6068dbd9..1998a0ac6be 100644 --- a/gdb/hppa-linux-tdep.c +++ b/gdb/hppa-linux-tdep.c @@ -164,21 +164,7 @@ insns_match_pattern (CORE_ADDR pc, static int hppa_linux_in_dyncall (CORE_ADDR pc) { - static CORE_ADDR dyncall = 0; - - /* FIXME: if we switch exec files, dyncall should be reinitialized */ - if (!dyncall) - { - struct minimal_symbol *minsym; - - minsym = lookup_minimal_symbol ("$$dyncall", NULL, NULL); - if (minsym) - dyncall = SYMBOL_VALUE_ADDRESS (minsym); - else - dyncall = -1; - } - - return pc == dyncall; + return pc == hppa_symbol_address("$$dyncall"); } /* There are several kinds of "trampolines" that we need to deal with: -- cgit v1.2.1