This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[patch] rename get_longjmp_target -> m68k_get_longjmp_target
- To: GDB Patches <gdb-patches at sourceware dot cygnus dot com>
- Subject: [patch] rename get_longjmp_target -> m68k_get_longjmp_target
- From: Andrew Cagney <ac131313 at cygnus dot com>
- Date: Wed, 08 Nov 2000 22:51:03 +1100
A mindless cleanup. Eliminates one small bit of namespace polution.
Andrew
Wed Nov 8 22:46:43 2000 Andrew Cagney <cagney@b1.cygnus.com>
* m68k-tdep.c (m68k_get_longjmp_target): Rename function
get_longjmp_target. Remove wrapping #ifdef GET_LONGJMP_TARGET.
* config/m68k/tm-m68k.h (m68k_get_longjmp_target): Add function
declaration.
* config/m68k/tm-vx68.h, config/m68k/tm-sun3.h,
config/m68k/tm-m68kv4.h, config/m68k/tm-linux.h,
config/m68k/tm-es1800.h, config/m68k/tm-cisco.h: Update definition
of GET_LONGJMP_TARGET. Delete get_longjmp_target function
declaratation.
Index: m68k-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/m68k-tdep.c,v
retrieving revision 1.7
diff -p -r1.7 m68k-tdep.c
*** m68k-tdep.c 2000/08/09 20:09:01 1.7
--- m68k-tdep.c 2000/11/08 11:47:36
*************** fill_fpregset (fpregset_t *fpregsetp, in
*** 637,650 ****
#endif /* USE_PROC_FS */
- #ifdef GET_LONGJMP_TARGET
/* 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.
This routine returns true on success. */
int
! get_longjmp_target (CORE_ADDR *pc)
{
char *buf;
CORE_ADDR sp, jb_addr;
--- 637,649 ----
#endif /* USE_PROC_FS */
/* 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.
This routine returns true on success. */
int
! m68k_get_longjmp_target (CORE_ADDR *pc)
{
char *buf;
CORE_ADDR sp, jb_addr;
*************** get_longjmp_target (CORE_ADDR *pc)
*** 667,673 ****
return 1;
}
- #endif /* GET_LONGJMP_TARGET */
/* Immediately after a function call, return the saved pc before the frame
is setup. For sun3's, we check for the common case of being inside of a
--- 666,671 ----
Index: config/m68k/tm-cisco.h
===================================================================
RCS file: /cvs/src/src/gdb/config/m68k/tm-cisco.h,v
retrieving revision 1.2
diff -p -r1.2 tm-cisco.h
*** tm-cisco.h 2000/05/28 01:12:36 1.2
--- tm-cisco.h 2000/11/08 11:47:36
***************
*** 47,54 ****
we extract the pc (JB_PC) that we will land at. The pc is copied into ADDR.
This routine returns true on success */
! #define GET_LONGJMP_TARGET(ADDR) get_longjmp_target(ADDR)
! extern int get_longjmp_target (CORE_ADDR *);
/* BFD handles finding the registers in the core file, so they are at
the start of the BFD .reg section. */
--- 47,53 ----
we extract the pc (JB_PC) that we will land at. The pc is copied into ADDR.
This routine returns true on success */
! #define GET_LONGJMP_TARGET(ADDR) m68k_get_longjmp_target(ADDR)
/* BFD handles finding the registers in the core file, so they are at
the start of the BFD .reg section. */
Index: config/m68k/tm-es1800.h
===================================================================
RCS file: /cvs/src/src/gdb/config/m68k/tm-es1800.h,v
retrieving revision 1.2
diff -p -r1.2 tm-es1800.h
*** tm-es1800.h 2000/05/28 01:12:36 1.2
--- tm-es1800.h 2000/11/08 11:47:36
***************
*** 56,60 ****
we extract the pc (JB_PC) that we will land at. The pc is copied into ADDR.
This routine returns true on success */
! #define GET_LONGJMP_TARGET(ADDR) get_longjmp_target(ADDR)
! extern int get_longjmp_target (CORE_ADDR *);
--- 56,59 ----
we extract the pc (JB_PC) that we will land at. The pc is copied into ADDR.
This routine returns true on success */
! #define GET_LONGJMP_TARGET(ADDR) m68k_get_longjmp_target(ADDR)
Index: config/m68k/tm-linux.h
===================================================================
RCS file: /cvs/src/src/gdb/config/m68k/tm-linux.h,v
retrieving revision 1.2
diff -p -r1.2 tm-linux.h
*** tm-linux.h 2000/05/28 01:12:36 1.2
--- tm-linux.h 2000/11/08 11:47:36
***************
*** 93,99 ****
we extract the pc (JB_PC) that we will land at. The pc is copied into ADDR.
This routine returns true on success */
! #define GET_LONGJMP_TARGET(ADDR) get_longjmp_target(ADDR)
/* Offset to saved PC in sigcontext, from <asm/sigcontext.h>. */
#define SIGCONTEXT_PC_OFFSET 26
--- 93,99 ----
we extract the pc (JB_PC) that we will land at. The pc is copied into ADDR.
This routine returns true on success */
! #define GET_LONGJMP_TARGET(ADDR) m68k_get_longjmp_target(ADDR)
/* Offset to saved PC in sigcontext, from <asm/sigcontext.h>. */
#define SIGCONTEXT_PC_OFFSET 26
Index: config/m68k/tm-m68k.h
===================================================================
RCS file: /cvs/src/src/gdb/config/m68k/tm-m68k.h,v
retrieving revision 1.3
diff -p -r1.3 tm-m68k.h
*** tm-m68k.h 2000/05/28 01:12:36 1.3
--- tm-m68k.h 2000/11/08 11:47:38
*************** extern void m68k_pop_frame (void);
*** 386,388 ****
--- 386,395 ----
#define SP_ARG0 (1 * 4)
#define TARGET_M68K
+
+ /* 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 ADDR.
+ This routine returns true on success */
+
+ extern int m68k_get_longjmp_target (CORE_ADDR *);
Index: config/m68k/tm-m68kv4.h
===================================================================
RCS file: /cvs/src/src/gdb/config/m68k/tm-m68kv4.h,v
retrieving revision 1.2
diff -p -r1.2 tm-m68kv4.h
*** tm-m68kv4.h 2000/05/28 01:12:36 1.2
--- tm-m68kv4.h 2000/11/08 11:47:38
***************
*** 64,71 ****
we extract the pc (JB_PC) that we will land at. The pc is copied into ADDR.
This routine returns true on success */
! #define GET_LONGJMP_TARGET(ADDR) get_longjmp_target(ADDR)
! extern int get_longjmp_target (CORE_ADDR *);
/* Convert a DWARF register number to a gdb REGNUM. */
#define DWARF_REG_TO_REGNUM(num) ((num) < 16 ? (num) : (num)+FP0_REGNUM-16)
--- 64,70 ----
we extract the pc (JB_PC) that we will land at. The pc is copied into ADDR.
This routine returns true on success */
! #define GET_LONGJMP_TARGET(ADDR) m68k_get_longjmp_target(ADDR)
/* Convert a DWARF register number to a gdb REGNUM. */
#define DWARF_REG_TO_REGNUM(num) ((num) < 16 ? (num) : (num)+FP0_REGNUM-16)
Index: config/m68k/tm-sun3.h
===================================================================
RCS file: /cvs/src/src/gdb/config/m68k/tm-sun3.h,v
retrieving revision 1.2
diff -p -r1.2 tm-sun3.h
*** tm-sun3.h 2000/05/28 01:12:36 1.2
--- tm-sun3.h 2000/11/08 11:47:38
***************
*** 74,81 ****
we extract the pc (JB_PC) that we will land at. The pc is copied into ADDR.
This routine returns true on success */
! #define GET_LONGJMP_TARGET(ADDR) get_longjmp_target(ADDR)
! extern int get_longjmp_target (CORE_ADDR *);
/* If sun3 pcc says that a parameter is a short, it's a short. */
#define BELIEVE_PCC_PROMOTION_TYPE
--- 74,80 ----
we extract the pc (JB_PC) that we will land at. The pc is copied into ADDR.
This routine returns true on success */
! #define GET_LONGJMP_TARGET(ADDR) m68k_get_longjmp_target(ADDR)
/* If sun3 pcc says that a parameter is a short, it's a short. */
#define BELIEVE_PCC_PROMOTION_TYPE
Index: config/m68k/tm-vx68.h
===================================================================
RCS file: /cvs/src/src/gdb/config/m68k/tm-vx68.h,v
retrieving revision 1.2
diff -p -r1.2 tm-vx68.h
*** tm-vx68.h 2000/05/28 01:12:36 1.2
--- tm-vx68.h 2000/11/08 11:47:38
***************
*** 76,83 ****
we extract the pc (JB_PC) that we will land at. The pc is copied into ADDR.
This routine returns true on success */
! #define GET_LONGJMP_TARGET(ADDR) get_longjmp_target(ADDR)
! extern int get_longjmp_target (CORE_ADDR *);
/* Number of registers in a ptrace_getregs call. */
--- 76,82 ----
we extract the pc (JB_PC) that we will land at. The pc is copied into ADDR.
This routine returns true on success */
! #define GET_LONGJMP_TARGET(ADDR) m68k_get_longjmp_target(ADDR)
/* Number of registers in a ptrace_getregs call. */