public inbox for archer-commits@sourceware.org help / color / mirror / Atom feed
From: tromey@sourceware.org To: archer-commits@sourceware.org Subject: [SCM] archer-tromey-remove-obj_section: fix bug in converts.cc test case Date: Wed, 23 Jan 2013 14:50:00 -0000 [thread overview] Message-ID: <20130123145046.30526.qmail@sourceware.org> (raw) 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.
reply other threads:[~2013-01-23 14:50 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20130123145046.30526.qmail@sourceware.org \ --to=tromey@sourceware.org \ --cc=archer-commits@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).