This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[commit] Zap dead macros / file
- From: Andrew Cagney <cagney at gnu dot org>
- To: gdb-patches at sources dot redhat dot com
- Date: Sun, 01 Aug 2004 10:38:34 -0400
- Subject: [commit] Zap dead macros / file
Some of these are surprising. None are referenced.
committed,
Andrew
2004-08-01 Andrew Cagney <cagney@gnu.org>
* config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
* config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
* config/nm-gnu.h (NO_CORE_OPS): Delete.
* config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
* config/i386/nm-i386v4.h (LOSING_POLL): Delete.
* config/alpha/nm-osf2.h (LOSING_POLL): Delete.
* config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
* config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
* config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
* config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
* config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
(TARGET_SIGNAL_RAW_VALUES): Delete.
* config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
Delete.
* config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT)
(TARGET_HW_WATCH_LIMIT): Delete.
* Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
* minimon.h: Delete file.
Index: config/nm-gnu.h
===================================================================
RCS file: /cvs/src/src/gdb/config/nm-gnu.h,v
retrieving revision 1.5
diff -p -u -r1.5 nm-gnu.h
--- config/nm-gnu.h 17 May 2003 05:59:59 -0000 1.5
+++ config/nm-gnu.h 1 Aug 2004 14:35:08 -0000
@@ -38,6 +38,5 @@ extern char *gnu_target_pid_to_str (int
/* Use SVR4 style shared library support */
#define SVR4_SHARED_LIBS
#include "solib.h"
-#define NO_CORE_OPS
#endif /* __NM_GNU_H__ */
Index: config/nm-linux.h
===================================================================
RCS file: /cvs/src/src/gdb/config/nm-linux.h,v
retrieving revision 1.21
diff -p -u -r1.21 nm-linux.h
--- config/nm-linux.h 8 Jun 2004 19:58:12 -0000 1.21
+++ config/nm-linux.h 1 Aug 2004 14:35:08 -0000
@@ -54,10 +54,6 @@ extern void lin_lwp_attach_lwp (ptid_t p
extern void lin_thread_get_thread_signals (sigset_t *mask);
#define GET_THREAD_SIGNALS(mask) lin_thread_get_thread_signals (mask)
-/* Defined to make stepping-over-breakpoints be thread-atomic. */
-#define USE_THREAD_STEP_NEEDED 1
-
-
/* Use elf_gregset_t and elf_fpregset_t, rather than
gregset_t and fpregset_t. */
Index: config/tm-nto.h
===================================================================
RCS file: /cvs/src/src/gdb/config/tm-nto.h,v
retrieving revision 1.1
diff -p -u -r1.1 tm-nto.h
--- config/tm-nto.h 5 May 2003 13:57:21 -0000 1.1
+++ config/tm-nto.h 1 Aug 2004 14:35:08 -0000
@@ -32,30 +32,4 @@
#define REALTIME_LO 41
#define REALTIME_HI 56
-/* Set up the undefined useable signals. */
-#define RAW_SIGNAL_LO 32
-#define RAW_SIGNAL_HI (REALTIME_LO - 1)
-
-#define TARGET_SIGNAL_RAW_VALUES \
-TARGET_SIGNAL_RAW0, \
-TARGET_SIGNAL_RAW1, \
-TARGET_SIGNAL_RAW2, \
-TARGET_SIGNAL_RAW3, \
-TARGET_SIGNAL_RAW4, \
-TARGET_SIGNAL_RAW5, \
-TARGET_SIGNAL_RAW6, \
-TARGET_SIGNAL_RAW7, \
-TARGET_SIGNAL_RAW8
-
-#define TARGET_SIGNAL_RAW_TABLE \
-{"SIGNAL32", "Signal 32"}, \
-{"SIGNAL33", "Signal 33"}, \
-{"SIGNAL34", "Signal 34"}, \
-{"SIGNAL35", "Signal 35"}, \
-{"SIGNAL36", "Signal 36"}, \
-{"SIGNAL37", "Signal 37"}, \
-{"SIGNAL38", "Signal 38"}, \
-{"SIGNAL39", "Signal 39"}, \
-{"SIGNAL40", "Signal 40"}
-
#endif /* _TM_QNXNTO_H */
Index: config/alpha/nm-osf2.h
===================================================================
RCS file: /cvs/src/src/gdb/config/alpha/nm-osf2.h,v
retrieving revision 1.4
diff -p -u -r1.4 nm-osf2.h
--- config/alpha/nm-osf2.h 22 Nov 2003 22:43:05 -0000 1.4
+++ config/alpha/nm-osf2.h 1 Aug 2004 14:35:08 -0000
@@ -35,7 +35,6 @@
#define PROCFS_DONT_TRACE_FAULTS
/* Work around some peculiarities in the OSF/1 procfs implementation. */
-#define PROCFS_SIGPEND_OFFSET
#define PROCFS_NEED_PIOCSSIG_FOR_KILL
#define PROCFS_DONT_PIOCSSIG_CURSIG
@@ -43,10 +42,3 @@
#define KERNEL_U_SIZE kernel_u_size()
extern int kernel_u_size (void);
-
-/* poll() doesn't seem to work properly for /proc in this version of the OS.
- If we only specify POLLPRI, things hang. It seems to get better when we set
- POLLOUT, but that always returns POLLNVAL!!! Also, POLLOUT causes problems
- on other OSes. */
-
-#define LOSING_POLL
Index: config/frv/tm-frv.h
===================================================================
RCS file: /cvs/src/src/gdb/config/frv/tm-frv.h,v
retrieving revision 1.4
diff -p -u -r1.4 tm-frv.h
--- config/frv/tm-frv.h 13 Mar 2004 00:50:53 -0000 1.4
+++ config/frv/tm-frv.h 1 Aug 2004 14:35:08 -0000
@@ -20,9 +20,6 @@
/* This target uses an architecture vector for most architecture methods. */
-#define TARGET_HW_BREAK_LIMIT 4
-#define TARGET_HW_WATCH_LIMIT 4
-
#define TARGET_HAS_HARDWARE_WATCHPOINTS
#define TARGET_CAN_USE_HARDWARE_WATCHPOINT(type, cnt, ot) \
Index: config/i386/nm-i386v4.h
===================================================================
RCS file: /cvs/src/src/gdb/config/i386/nm-i386v4.h,v
retrieving revision 1.4
diff -p -u -r1.4 nm-i386v4.h
--- config/i386/nm-i386v4.h 29 Jul 2004 20:53:27 -0000 1.4
+++ config/i386/nm-i386v4.h 1 Aug 2004 14:35:08 -0000
@@ -22,9 +22,6 @@
#include "config/nm-sysv4.h"
-/* Poll causes GDB to hang, at least under Unixware 1.1.2. */
-#define LOSING_POLL
-
/* This is the amount to subtract from u.u_ar0
to get the offset in the core file of the register values. */
#define KERNEL_U_ADDR 0xe0000000
Index: config/ia64/tm-linux.h
===================================================================
RCS file: /cvs/src/src/gdb/config/ia64/tm-linux.h,v
retrieving revision 1.6
diff -p -u -r1.6 tm-linux.h
--- config/ia64/tm-linux.h 9 Jun 2004 19:54:13 -0000 1.6
+++ config/ia64/tm-linux.h 1 Aug 2004 14:35:08 -0000
@@ -22,8 +22,6 @@
#ifndef TM_LINUX_H
#define TM_LINUX_H
-#define IA64_GNULINUX_TARGET
-
#include "ia64/tm-ia64.h"
#include "config/tm-linux.h"
Index: config/m68k/tm-vx68.h
===================================================================
RCS file: /cvs/src/src/gdb/config/m68k/tm-vx68.h,v
retrieving revision 1.10
diff -p -u -r1.10 tm-vx68.h
--- config/m68k/tm-vx68.h 6 Nov 2003 02:52:28 -0000 1.10
+++ config/m68k/tm-vx68.h 1 Aug 2004 14:35:08 -0000
@@ -71,8 +71,3 @@
This routine returns true on success */
#define GET_LONGJMP_TARGET(ADDR) m68k_get_longjmp_target(ADDR)
-
-/* Number of registers in a ptrace_getfpregs call. */
-
-#define VX_SIZE_FPREGS (8 * DEPRECATED_REGISTER_RAW_SIZE (FP0_REGNUM) \
- + (3 * DEPRECATED_REGISTER_SIZE))
Index: config/pa/nm-hppah.h
===================================================================
RCS file: /cvs/src/src/gdb/config/pa/nm-hppah.h,v
retrieving revision 1.19
diff -p -u -r1.19 nm-hppah.h
--- config/pa/nm-hppah.h 8 Jun 2004 19:58:12 -0000 1.19
+++ config/pa/nm-hppah.h 1 Aug 2004 14:35:08 -0000
@@ -117,31 +117,6 @@ extern int hppa_can_use_hw_watchpoint (i
#define TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT(byte_count) \
(1)
-/* However, some addresses may not be profitable to use hardware to watch,
- or may be difficult to understand when the addressed object is out of
- scope, and hence should be unwatched. On some targets, this may have
- severe performance penalties, such that we might as well use regular
- watchpoints, and save (possibly precious) hardware watchpoints for other
- locations.
-
- On HP-UX, we choose not to watch stack-based addresses, because
-
- [1] Our implementation relies on page protection traps. The granularity
- of these is large and so can generate many false hits, which are expensive
- to respond to.
-
- [2] Watches of "*p" where we may not know the symbol that p points to,
- make it difficult to know when the addressed object is out of scope, and
- hence shouldn't be watched. Page protection that isn't removed when the
- addressed object is out of scope will either degrade execution speed
- (false hits) or give false triggers (when the address is recycled by
- other calls).
-
- Since either of these points results in a slow-running inferior, we might
- as well use normal watchpoints, aka single-step & test. */
-#define TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT(pid,start,len) \
- hppa_range_profitable_for_hw_watchpoint(pid, start, (LONGEST)(len))
-
/* On HP-UX, we're using page-protection to implement hardware watchpoints.
When an instruction attempts to write to a write-protected memory page,
a SIGBUS is raised. At that point, the write has not actually occurred.
@@ -249,10 +224,6 @@ extern int hppa_resume_execd_vforking_ch
#define HPUXHPPA
-#define MAY_SWITCH_FROM_INFERIOR_PID (1)
-
#define MAY_FOLLOW_EXEC (1)
-#define USE_THREAD_STEP_NEEDED (1)
-
#include "infttrace.h" /* For parent_attach_all. */