This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [5/10] RFC: introduce gdb_bfd_section_index
- From: Tom Tromey <tromey at redhat dot com>
- To: Yao Qi <yao at codesourcery dot com>
- Cc: <gdb-patches at sourceware dot org>
- Date: Mon, 29 Apr 2013 12:56:54 -0600
- Subject: Re: [5/10] RFC: introduce gdb_bfd_section_index
- References: <871ucd8j1k dot fsf at fleche dot redhat dot com> <517CEAFD dot 2070302 at codesourcery dot com>
Yao> I can see a crash here. We allocate NEW_OFFSETS for
Yao> symfile_objfile-> num_sections' entries, but ALL_OBJFILE_OSECTIONS will
Yao> iterate 'symfile_objfile->num_sections + 4'. These four special
Yao> sections are not used in tic6x, so probably I can skip them when
Yao> setting 'new_offsets'. Before I post a patch for the crash, I'd like
Yao> to know how do you think about this problem overall.
Please see http://sourceware.org/ml/gdb-patches/2013-04/msg00509.html
and try out that patch.
I'm away the rest of this week but if that patch is insufficient, I will
work on the problem when I return.
Tom