Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [rfc]: Replace current_gdbarch in sentinel-frame.c
@ 2008-02-15  9:27 Markus Deuling
  2008-02-15 17:44 ` Ulrich Weigand
  2008-02-15 17:44 ` Michael Snyder
  0 siblings, 2 replies; 9+ messages in thread
From: Markus Deuling @ 2008-02-15  9:27 UTC (permalink / raw)
  To: GDB Patches; +Cc: Ulrich Weigand

[-- Attachment #1: Type: text/plain, Size: 327 bytes --]

Hi,

this is a trivial replacement of current_gdbarch in sentinel-frame.c. Tested on x86.

Ok to commit?


ChangeLog:

	* sentinel-frame.c (sentinel_frame_prev_register): Use get_frame_arch
	to get at the current architecture.

Regards, 
Markus


-- 
  Markus Deuling
  GNU Toolchain for Linux on Cell BE
  deuling@de.ibm.com


[-- Attachment #2: diff-sentinel --]
[-- Type: text/plain, Size: 568 bytes --]

diff -urpN src/gdb/sentinel-frame.c dev/gdb/sentinel-frame.c
--- src/gdb/sentinel-frame.c	2008-01-01 23:53:12.000000000 +0100
+++ dev/gdb/sentinel-frame.c	2008-02-15 10:07:36.000000000 +0100
@@ -54,7 +54,7 @@ sentinel_frame_prev_register (struct fra
      onto the corresponding hardware register.  */
   *optimized = 0;
   *lvalp = lval_register;
-  *addrp = register_offset_hack (current_gdbarch, regnum);
+  *addrp = register_offset_hack (get_frame_arch (next_frame), regnum);
   *realnum = regnum;
 
   /* If needed, find and return the value of the register.  */

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2008-02-18 16:38 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-15  9:27 [rfc]: Replace current_gdbarch in sentinel-frame.c Markus Deuling
2008-02-15 17:44 ` Ulrich Weigand
2008-02-15 18:40   ` Thiago Jung Bauermann
2008-02-15 18:59     ` Ulrich Weigand
2008-02-18 15:28       ` Markus Deuling
2008-02-18 16:05         ` Ulrich Weigand
2008-02-18 16:38           ` Markus Deuling
2008-02-15 17:44 ` Michael Snyder
2008-02-15 17:51   ` Michael Snyder

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox