* [rfc] Remove LOWEST_PC macro
@ 2007-11-15 9:24 Markus Deuling
2007-11-15 13:41 ` Daniel Jacobowitz
0 siblings, 1 reply; 3+ messages in thread
From: Markus Deuling @ 2007-11-15 9:24 UTC (permalink / raw)
To: GDB Patches; +Cc: Ulrich Weigand, rearnsha
[-- Attachment #1: Type: text/plain, Size: 464 bytes --]
Hi,
this patch replaces the only occurence of LOWEST_PC macro in arm target by itsexpression and replaces
current_gdbarch with get_frame_arch.
Tested by builing arm target. Ok to commit?
ChangeLog:
* 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.
--
Markus Deuling
GNU Toolchain for Linux on Cell BE
deuling@de.ibm.com
[-- Attachment #2: diff-arm-tdep --]
[-- Type: text/plain, Size: 979 bytes --]
diff -urpN src/gdb/arm-tdep.c dev/gdb/arm-tdep.c
--- src/gdb/arm-tdep.c 2007-11-07 07:32:59.000000000 +0100
+++ dev/gdb/arm-tdep.c 2007-11-15 10:13:09.000000000 +0100
@@ -961,7 +961,7 @@ arm_prologue_this_id (struct frame_info
/* 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 -urpN src/gdb/arm-tdep.h dev/gdb/arm-tdep.h
--- src/gdb/arm-tdep.h 2007-10-10 16:04:53.000000000 +0200
+++ dev/gdb/arm-tdep.h 2007-11-15 10:06:29.000000000 +0100
@@ -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 *);
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [rfc] Remove LOWEST_PC macro
2007-11-15 9:24 [rfc] Remove LOWEST_PC macro Markus Deuling
@ 2007-11-15 13:41 ` Daniel Jacobowitz
2007-11-15 13:55 ` Markus Deuling
0 siblings, 1 reply; 3+ messages in thread
From: Daniel Jacobowitz @ 2007-11-15 13:41 UTC (permalink / raw)
To: Markus Deuling; +Cc: GDB Patches, Ulrich Weigand, rearnsha
On Thu, Nov 15, 2007 at 10:22:11AM +0100, Markus Deuling wrote:
> Hi,
>
> this patch replaces the only occurence of LOWEST_PC macro in arm target by
> itsexpression and replaces
> current_gdbarch with get_frame_arch.
>
> Tested by builing arm target. Ok to commit?
OK.
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [rfc] Remove LOWEST_PC macro
2007-11-15 13:41 ` Daniel Jacobowitz
@ 2007-11-15 13:55 ` Markus Deuling
0 siblings, 0 replies; 3+ messages in thread
From: Markus Deuling @ 2007-11-15 13:55 UTC (permalink / raw)
To: GDB Patches; +Cc: Ulrich Weigand, rearnsha, Daniel Jacobowitz
Daniel Jacobowitz schrieb:
> On Thu, Nov 15, 2007 at 10:22:11AM +0100, Markus Deuling wrote:
>> Hi,
>>
>> this patch replaces the only occurence of LOWEST_PC macro in arm target by
>> itsexpression and replaces
>> current_gdbarch with get_frame_arch.
>>
>> Tested by builing arm target. Ok to commit?
>
> OK.
>
Thank you. I've committed this one.
--
Markus Deuling
GNU Toolchain for Linux on Cell BE
deuling@de.ibm.com
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-11-15 13:55 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-11-15 9:24 [rfc] Remove LOWEST_PC macro Markus Deuling
2007-11-15 13:41 ` Daniel Jacobowitz
2007-11-15 13:55 ` Markus Deuling
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox