From: Stu Grossman Date: Wed, 5 May 1993 22:23:07 +0000 (+0000) Subject: * Patches from Jeffrey Law . X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a34d4bc1782b35b034c2ceb61019e82873568cbd;p=binutils-gdb.git * Patches from Jeffrey Law . * gdb/hppa-tdep.c (gcc_p, hpux_cc_p): Delete unused functions. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index f8291a6856f..cc0309da618 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,7 +1,9 @@ Wed May 5 15:16:33 1993 Stu Grossman (grossman@cygnus.com) + * Patches from Jeffrey Law . + * gdb/hppa-tdep.c (gcc_p, hpux_cc_p): Delete unused functions. * gdb/config/pa/tm-hppa.h (ABOUT_TO_RETURN): Handle a return - which nullifies the following instruction. (From law@cs.utah.edu). + which nullifies the following instruction. Tue May 4 12:11:38 1993 Jim Kingdon (kingdon@cygnus.com) diff --git a/gdb/hppa-tdep.c b/gdb/hppa-tdep.c index 4d2a38a2e11..5f574d1c8a0 100644 --- a/gdb/hppa-tdep.c +++ b/gdb/hppa-tdep.c @@ -428,35 +428,6 @@ frame_chain_valid (chain, thisframe) return 1; } -#if 0 -/* Some helper functions. gcc_p returns 1 if the function beginning at - pc appears to have been compiled with gcc. hpux_cc_p returns 1 if - fn was compiled with hpux cc. gcc functions look like : - - stw rp,-0x14(sp) ; optional - or r4,r0,r1 - or sp,r0,r4 - stwm r1,framesize(sp) - - hpux cc functions look like: - - stw rp,-0x14(sp) ; optional. - stwm r3,framesiz(sp) - */ - -gcc_p (pc) - CORE_ADDR pc; -{ - if (read_memory_integer (pc, 4) == 0x6BC23FD9) - pc = pc + 4; - - if (read_memory_integer (pc, 4) == 0x8040241 - && read_memory_integer (pc + 4, 4) == 0x81E0244) - return 1; - return 0; -} -#endif - /* * These functions deal with saving and restoring register state * around a function call in the inferior. They keep the stack