summaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2004-06-07 17:58:33 +0000
committerAndrew Cagney <cagney@redhat.com>2004-06-07 17:58:33 +0000
commitace5c7fa68c5edada16ed7f24e732b491f997885 (patch)
tree521bcf94e72786efc686d6ebfe3777147fd12919 /gdb
parent53c832f0c95ed68d99339c75c7dcd84f09a0c687 (diff)
downloadgdb-ace5c7fa68c5edada16ed7f24e732b491f997885.tar.gz
2004-06-07 Andrew Cagney <cagney@gnu.org>
* target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition. * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE): Rename PC_REQUIRES_RUN_BEFORE_USE. * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in #ifdef.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog8
-rw-r--r--gdb/breakpoint.c4
-rw-r--r--gdb/config/pa/tm-hppa.h2
-rw-r--r--gdb/target.h9
4 files changed, 12 insertions, 11 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 02be9650ea2..f6ad170e506 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,11 @@
+2004-06-07 Andrew Cagney <cagney@gnu.org>
+
+ * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
+ * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
+ Rename PC_REQUIRES_RUN_BEFORE_USE.
+ * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
+ #ifdef.
+
2004-06-07 Randolph Chung <tausq@debian.org>
* hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c
index 8d0b3c8116a..b9386f04512 100644
--- a/gdb/breakpoint.c
+++ b/gdb/breakpoint.c
@@ -5025,7 +5025,8 @@ breakpoint_sals_to_pc (struct symtabs_and_lines *sals,
Give the target a chance to bless sals.sals[i].pc before we
try to make a breakpoint for it. */
- if (PC_REQUIRES_RUN_BEFORE_USE (sals->sals[i].pc))
+#ifdef DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE
+ if (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE (sals->sals[i].pc))
{
if (address == NULL)
error ("Cannot break without a running program.");
@@ -5033,6 +5034,7 @@ breakpoint_sals_to_pc (struct symtabs_and_lines *sals,
error ("Cannot break on %s without a running program.",
address);
}
+#endif
}
}
diff --git a/gdb/config/pa/tm-hppa.h b/gdb/config/pa/tm-hppa.h
index e5a5658e18b..225d5ba3215 100644
--- a/gdb/config/pa/tm-hppa.h
+++ b/gdb/config/pa/tm-hppa.h
@@ -29,7 +29,7 @@
#define GDB_MULTI_ARCH 1
extern int hppa_pc_requires_run_before_use (CORE_ADDR pc);
-#define PC_REQUIRES_RUN_BEFORE_USE(pc) hppa_pc_requires_run_before_use (pc)
+#define DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE(pc) hppa_pc_requires_run_before_use (pc)
/* PA specific macro to see if the current instruction is nullified. */
#ifndef INSTRUCTION_NULLIFIED
diff --git a/gdb/target.h b/gdb/target.h
index 664e2428b9c..92beccaf343 100644
--- a/gdb/target.h
+++ b/gdb/target.h
@@ -1088,15 +1088,6 @@ extern void (*deprecated_target_new_objfile_hook) (struct objfile *);
(*current_target.to_stopped_data_address) ()
#endif
-/* Sometimes gdb may pick up what appears to be a valid target address
- from a minimal symbol, but the value really means, essentially,
- "This is an index into a table which is populated when the inferior
- is run. Therefore, do not attempt to use this as a PC." */
-
-#if !defined(PC_REQUIRES_RUN_BEFORE_USE)
-#define PC_REQUIRES_RUN_BEFORE_USE(pc) (0)
-#endif
-
/* This will only be defined by a target that supports catching vfork events,
such as HP-UX.