Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [RFA/RFC] dwarf2-frame read_reg
@ 2006-04-12  3:34 Michael Snyder
  2006-04-12  4:42 ` Jim Blandy
  2006-05-05 19:44 ` Daniel Jacobowitz
  0 siblings, 2 replies; 10+ messages in thread
From: Michael Snyder @ 2006-04-12  3:34 UTC (permalink / raw)
  To: gdb-patches; +Cc: Jim Blandy, Daniel Jacobowitz

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

I want you guys to vett this change.  I was getting wrong results
on a target where sizeof (SP) != sizeof (void *).  The local func
read_reg was calling extract_unsigned_integer with the wrong size.




[-- Attachment #2: read_reg --]
[-- Type: text/plain, Size: 933 bytes --]

2006-04-11  Michael Snyder  <msnyder@redhat.com>

	* dwarf2-frame.c (read_reg): Use register type instead of 
	builtin_data_pointer_type to extract register's value.

Index: dwarf2-frame.c
===================================================================
RCS file: /cvs/src/src/gdb/dwarf2-frame.c,v
retrieving revision 1.59
diff -p -r1.59 dwarf2-frame.c
*** dwarf2-frame.c	5 Apr 2006 20:01:19 -0000	1.59
--- dwarf2-frame.c	12 Apr 2006 03:30:08 -0000
*************** read_reg (void *baton, int reg)
*** 214,220 ****
  
    buf = alloca (register_size (gdbarch, regnum));
    frame_unwind_register (next_frame, regnum, buf);
!   return extract_typed_address (buf, builtin_type_void_data_ptr);
  }
  
  static void
--- 214,220 ----
  
    buf = alloca (register_size (gdbarch, regnum));
    frame_unwind_register (next_frame, regnum, buf);
!   return extract_typed_address (buf, register_type (gdbarch, regnum));
  }
  
  static void

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

end of thread, other threads:[~2006-05-17 14:53 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-04-12  3:34 [RFA/RFC] dwarf2-frame read_reg Michael Snyder
2006-04-12  4:42 ` Jim Blandy
2006-04-12 18:18   ` Mark Kettenis
2006-04-12 19:15     ` Michael Snyder
2006-04-20 17:21     ` Daniel Jacobowitz
2006-04-20 19:06       ` Michael Snyder
2006-04-20 19:10       ` Mark Kettenis
2006-04-12 19:20   ` Michael Snyder
2006-05-05 19:44 ` Daniel Jacobowitz
2006-05-17 15:01   ` Daniel Jacobowitz

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