From 2301df11d5d514524a23fcef26fdad54e0cb8654 Mon Sep 17 00:00:00 2001 From: Markus Deuling Date: Thu, 15 Nov 2007 13:53:11 +0000 Subject: [PATCH] 2007-11-15 Markus Deuling * arm-tdep.c (arm_prologue_this_id): Replace LOWEST_PC by its expression and use get_frame_arch to replace current_gdbarch by frame's architecture. *arm-tdep.h (LOWEST_PC): Remove --- gdb/ChangeLog | 7 +++++++ gdb/arm-tdep.c | 2 +- gdb/arm-tdep.h | 5 ----- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 51c7aa916ee..3050b2911a7 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,10 @@ +2007-11-15 Markus Deuling + + * arm-tdep.c (arm_prologue_this_id): Replace LOWEST_PC by its + expression and use get_frame_arch to replace current_gdbarch by frame's + architecture. + * arm-tdep.h (LOWEST_PC): Remove + 2007-11-15 Vladimir Prus Apply const qualifier to some users of bp_location. diff --git a/gdb/arm-tdep.c b/gdb/arm-tdep.c index 6f0fea6b9cc..cc3f92eee85 100644 --- a/gdb/arm-tdep.c +++ b/gdb/arm-tdep.c @@ -961,7 +961,7 @@ arm_prologue_this_id (struct frame_info *next_frame, /* This is meant to halt the backtrace at "_start". Make sure we don't halt it at a generic dummy frame. */ - if (func <= LOWEST_PC) + if (func <= gdbarch_tdep (get_frame_arch (next_frame))->lowest_pc) return; /* If we've hit a wall, stop. */ diff --git a/gdb/arm-tdep.h b/gdb/arm-tdep.h index d049f294e55..a6769e9ad52 100644 --- a/gdb/arm-tdep.h +++ b/gdb/arm-tdep.h @@ -176,11 +176,6 @@ struct gdbarch_tdep }; - -#ifndef LOWEST_PC -#define LOWEST_PC (gdbarch_tdep (current_gdbarch)->lowest_pc) -#endif - CORE_ADDR arm_skip_stub (struct frame_info *, CORE_ADDR); CORE_ADDR arm_get_next_pc (struct frame_info *, CORE_ADDR); int arm_software_single_step (struct frame_info *); -- 2.30.2