From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Berlin To: Eli Zaretskii Cc: Jim Blandy , David B Anderson , Elena Zannoni , gdb@sources.redhat.com Subject: Re: GDB on SGI Irix 6.5 Date: Thu, 14 Jun 2001 10:05:00 -0000 Message-id: <87u21jgffh.fsf@cgsoftware.com> References: X-SW-Source: 2001-06/msg00122.html Eli Zaretskii writes: > On 13 Jun 2001, Jim Blandy wrote: > >> assuming we've decided a .debug_info section is carrying SGI 64-bit >> Dwarf2 data, has someone already adapted dwarf2read to read the >> data? > > There's a patch on Dave's site which is supposed to do that. That > patch is against GDB 4.17, and is based on compile-time #ifdef's, but > otherwise it should be fine. > > What I was trying to figure out was how to add this support in a > cleaner way, so that Irix 6.x users will not need two different GDB > binaries to debug programs, one each for each ABI. You can check if the initial length is 0, followed by a valid number (IE not zero). If so, either we've got completely invalid dwarf2, or SGI's 64bit dwarf2. -- "It doesn't matter what temperature the room is, it's always room temperature. "-Steven Wright