[patch] Basic DW_TAG_interface_type support

Daniel Jacobowitz drow@false.org
Sat Dec 22 21:08:00 GMT 2007


On Sat, Dec 22, 2007 at 09:14:40PM +0100, Jan Kratochvil wrote:
> On Sat, 22 Dec 2007 21:07:11 +0100, Daniel Jacobowitz wrote:
> > On Sat, Dec 22, 2007 at 08:27:26PM +0100, Jan Kratochvil wrote:
> > > gdb/testsuite/
> > > 2007-12-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
> > > 
> > > 	* gdb.arch/i386-interface.S, gdb.arch/i386-interface.exp: New files.
> > 
> > Can you do this in gdb.dwarf2?
> 
> I figured out only %s/gdb\.arch/gdb.dwarf2/g, is it right?
> 
> The generated DWARF is unfortunately already arch-dependent.

No, the gdb.dwarf2 tests are supposed to be architecture independent.
I don't see why you couldn't write one that would work OK on multiple
architectures; the dw2-basic.S example already includes a type.

Anyway, the code patch is OK; I'll ask for someone else to decide
whether this kind of testcase is useful (I'm not sure that it is).


-- 
Daniel Jacobowitz
CodeSourcery



More information about the Gdb-patches mailing list