From 45b7523071aa1bffee8795fbb0d3b4cb8a61ca2a Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Mon, 7 Jun 2004 17:58:33 +0000 Subject: 2004-06-07 Andrew Cagney * 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. --- gdb/breakpoint.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'gdb/breakpoint.c') diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index 8d0b3c8..b9386f0 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 } } -- cgit v1.1