Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [patch] nto-tdep.c - adjust addr_low addr_high
@ 2009-07-08 14:27 Aleksandar Ristovski
  2009-07-21 17:16 ` Aleksandar Ristovski
  2009-07-24 15:41 ` Pedro Alves
  0 siblings, 2 replies; 5+ messages in thread
From: Aleksandar Ristovski @ 2009-07-08 14:27 UTC (permalink / raw)
  To: gdb-patches

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

Hello,

This adjusts so->addr_low and so->addr_high for proper "info 
sahredlibrary" output.

Thanks,

-- 
Aleksandar Ristovski
QNX Software Systems


ChangeLog:

* nto-tdep.c (nto_relocate_section_address): Adjust 
so->addr_low and
so->addr_high.

[-- Attachment #2: nto-tdep.c-addr_low-20090708.diff --]
[-- Type: text/x-patch, Size: 571 bytes --]

Index: gdb/nto-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/nto-tdep.c,v
retrieving revision 1.34
@@ -315,6 +316,10 @@ nto_relocate_section_addresses (struct s
 
   sec->addr = nto_truncate_ptr (sec->addr + LM_ADDR (so) - vaddr);
   sec->endaddr = nto_truncate_ptr (sec->endaddr + LM_ADDR (so) - vaddr);
+  if (so->addr_low == 0)
+    so->addr_low = LM_ADDR (so);
+  if (so->addr_high < sec->endaddr)
+    so->addr_high = sec->endaddr;
 }
 
 /* This is cheating a bit because our linker code is in libc.so.  If we

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

end of thread, other threads:[~2009-07-28 11:03 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-07-08 14:27 [patch] nto-tdep.c - adjust addr_low addr_high Aleksandar Ristovski
2009-07-21 17:16 ` Aleksandar Ristovski
2009-07-24 15:41 ` Pedro Alves
2009-07-28  0:09   ` Aleksandar Ristovski
2009-07-28 11:29     ` Pedro Alves

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