This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFC/RFA] Deal with intermixed 32-bit and 64-bit DWARF sections
- From: Daniel Jacobowitz <drow at false dot org>
- To: Mark Kettenis <kettenis at gnu dot org>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Sun, 14 Nov 2004 14:04:04 -0500
- Subject: Re: [RFC/RFA] Deal with intermixed 32-bit and 64-bit DWARF sections
- References: <200411102128.iAALSkNM095538@elgar.sibelius.xs4all.nl>
On Wed, Nov 10, 2004 at 10:28:46PM +0100, Mark Kettenis wrote:
> Currently GDB crashes hard when we encounter both 32-bit anbd 64-bit
> DWARF sections within the same compilation unit. Keeping the mantra
> "Be liberal what you accept, but complain loudly", this patch fixes
> that.
>
> Mark
>
>
> Index: ChangeLog
> from Mark Kettenis <kettenis@gnu.org>
>
> * dwarf2read.c (dwarf2_build_psymtabs_easy): Initailize initial
> length size of compilation header to zero.
> (dwarf2_build_psymtabs_hard): Adjust info_ptr before building
> psymtabs for included files.
> (create_all_comp_units): Initailize initial length size of
> compilation header to zero.
> (read_initial_length): Complain if both 32-bit and 64-bit DWARF
> sections are encountered within the same compilation header.
> (dwarf_decode_line_header): Pass compilation header in call to
> read_initial_length.
FWIW, this looks reasonable to me.
--
Daniel Jacobowitz