This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFC] Remove addr, endaddr, offset from obj_section
- From: Andreas Schwab <schwab at suse dot de>
- To: Pedro Alves <pedro at codesourcery dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Tue, 02 Sep 2008 11:33:01 +0200
- Subject: Re: [RFC] Remove addr, endaddr, offset from obj_section
- References: <200805161721.15817.pedro@codesourcery.com> <20080605191602.GC25085@caradoc.them.org> <200808201223.17427.pedro@codesourcery.com> <200808211428.30553.pedro@codesourcery.com>
2008-09-02 Andreas Schwab <schwab@suse.de>
* ia64-tdep.c (ia64_get_dyn_info_list): Use obj_section_addr.
Index: gdb/ia64-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/ia64-tdep.c,v
retrieving revision 1.181
diff -u -a -p -u -p -a -r1.181 gdb/ia64-tdep.c
--- gdb/ia64-tdep.c 21 Aug 2008 13:19:18 -0000 1.181
+++ gdb/ia64-tdep.c 2 Sep 2008 09:31:50 -0000
@@ -2563,7 +2563,7 @@ ia64_get_dyn_info_list (unw_addr_space_t
void *buf = NULL;
text_sec = objfile->sections + SECT_OFF_TEXT (objfile);
- ip = text_sec->addr;
+ ip = obj_section_addr (text_sec);
ret = ia64_find_unwind_table (objfile, ip, &di, &buf);
if (ret >= 0)
{
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."