public inbox for archer-commits@sourceware.org
help / color / mirror / Atom feed
* [SCM] archer-tromey-remove-obj_section: fix bug in converts.cc test case
@ 2013-01-23 14:50 tromey
0 siblings, 0 replies; only message in thread
From: tromey @ 2013-01-23 14:50 UTC (permalink / raw)
To: archer-commits
The branch, archer-tromey-remove-obj_section has been updated
via 9bec2069a56da6ce06a61d0bcb46e097bc563988 (commit)
via eac5dcffefaee05a38f52a1239ec7fa3003004b4 (commit)
from b8b2f2c2e750806306bbe43388a08aaff3952205 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit 9bec2069a56da6ce06a61d0bcb46e097bc563988
Author: Tom Tromey <tromey@redhat.com>
Date: Wed Jan 23 07:49:09 2013 -0700
fix bug in converts.cc test case
commit eac5dcffefaee05a38f52a1239ec7fa3003004b4
Author: Tom Tromey <tromey@redhat.com>
Date: Wed Jan 23 07:06:47 2013 -0700
try harder to find SOM symbol section
in particular look past *UND*
-----------------------------------------------------------------------
Summary of changes:
gdb/somread.c | 18 ++++++++++++++++++
gdb/testsuite/gdb.cp/converts.cc | 3 ++-
2 files changed, 20 insertions(+), 1 deletions(-)
First 500 lines of diff:
diff --git a/gdb/somread.c b/gdb/somread.c
index 806a8e6..02a3d88 100644
--- a/gdb/somread.c
+++ b/gdb/somread.c
@@ -294,6 +294,24 @@ som_symtab_read (bfd *abfd, struct objfile *objfile,
error (_("Invalid symbol data; bad HP string table offset: %s"),
plongest (bfd_getb32 (bufp->name)));
+ if (bfd_is_const_section (section))
+ {
+ struct obj_section *iter;
+
+ ALL_OBJFILE_OSECTIONS (objfile, iter)
+ {
+ if (bfd_is_const_section (iter->the_bfd_section))
+ continue;
+
+ if (obj_section_addr (iter) <= symbol_value
+ && symbol_value < obj_section_endaddr (iter))
+ {
+ section = iter->the_bfd_section;
+ break;
+ }
+ }
+ }
+
prim_record_minimal_symbol_and_info (symname, symbol_value, ms_type,
gdb_bfd_section_index (objfile->obfd,
section),
diff --git a/gdb/testsuite/gdb.cp/converts.cc b/gdb/testsuite/gdb.cp/converts.cc
index 309008f..ecf8064 100644
--- a/gdb/testsuite/gdb.cp/converts.cc
+++ b/gdb/testsuite/gdb.cp/converts.cc
@@ -53,7 +53,8 @@ int main()
//foo0_3(bppp); // Pointer-to-pointer-to-pointer base.
foo0_3((A***)bppp); // to ensure that the function is emitted.
- char *a; // pointer to..
+ char av = 'a';
+ char *a = &av; // pointer to..
B *bp;
foo1_1 (a); // ..pointer
foo1_2 (a); // ..array
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2013-01-23 14:50 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-01-23 14:50 [SCM] archer-tromey-remove-obj_section: fix bug in converts.cc test case tromey
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).