aboutsummaryrefslogtreecommitdiff
path: root/gdb/breakpoint.c
diff options
context:
space:
mode:
authorUlrich Weigand <uweigand@de.ibm.com>2007-10-12 16:11:12 +0000
committerUlrich Weigand <uweigand@de.ibm.com>2007-10-12 16:11:12 +0000
commitee53e8729a3de34db1558b06f97437517b203b8c (patch)
treefa9fb6903713bca08c2fd2b63592a0c63fbdb9e9 /gdb/breakpoint.c
parente9deb29d4fbb19de560012f1ddcd2d00f9444966 (diff)
downloadgdb-ee53e8729a3de34db1558b06f97437517b203b8c.zip
gdb-ee53e8729a3de34db1558b06f97437517b203b8c.tar.gz
gdb-ee53e8729a3de34db1558b06f97437517b203b8c.tar.bz2
* breakpoint.c (breakpoint_sals_to_pc): Do not check for
DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE. * config/pa/tm-hppa.h: Delete file. * config/pa/hppa64.mt: Do not set DEPRECATED_TM_FILE. * config/pa/hppahpux.mt: Likewise. * config/pa/hppa.mt: Likewise. * config/pa/linux.mt: Likewise. * hppa-tdep.c (hppa_pc_requires_run_before_use): Delete.
Diffstat (limited to 'gdb/breakpoint.c')
-rw-r--r--gdb/breakpoint.c28
1 files changed, 1 insertions, 27 deletions
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c
index ba56edb..8f2cbad 100644
--- a/gdb/breakpoint.c
+++ b/gdb/breakpoint.c
@@ -5483,33 +5483,7 @@ breakpoint_sals_to_pc (struct symtabs_and_lines *sals,
{
int i;
for (i = 0; i < sals->nelts; i++)
- {
- resolve_sal_pc (&sals->sals[i]);
-
- /* It's possible for the PC to be nonzero, but still an illegal
- value on some targets.
-
- For example, on HP-UX if you start gdb, and before running the
- inferior you try to set a breakpoint on a shared library function
- "foo" where the inferior doesn't call "foo" directly but does
- pass its address to another function call, then we do find a
- minimal symbol for the "foo", but it's address is invalid.
- (Appears to be an index into a table that the loader sets up
- when the inferior is run.)
-
- Give the target a chance to bless sals.sals[i].pc before we
- try to make a breakpoint for it. */
-#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."));
- else
- error (_("Cannot break on %s without a running program."),
- address);
- }
-#endif
- }
+ resolve_sal_pc (&sals->sals[i]);
}
static void