This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

gcc HEAD rearranges stabs members


gcc rearranged the structure members in stabs+ debug info.
Ouch!  Ouch!

Last week (gdb 6.0, gcc HEAD 2003-12-23, binutils 2.14, -gstabs+):

  ptype class Foo
  type = class Foo {
    public:
      int x;
      int y;
      static int st;

      Foo & operator=(Foo const&);
      Foo(Foo const&);
      Foo(int, int);
      int operator!();
      operator int();
      int times(int);
  }

This week (gdb 6.0, gcc HEAD 2003-12-28, binutils 2.14, -gstabs+):

  ptype class Foo
  type = class Foo {
    public:
      int x;
      int y;
      static int st;

      Foo(int, int);
      int operator!();
      operator int();
      int times(int);
      Foo & operator=(Foo const&);
      Foo(Foo const&);
  }

Same change with gdb HEAD of course.

So I have to write a bunch of new patterns in gdb.cp/*.exp to match the
new output.  And I have to stare at all the differences and see if any
actual bugs crept in along with the rearrangement.

(David, this is why I like the HEAD test suite to keep working with
gdb 6.0 -- because the gdb 6.0 test suite just lost a lot of value
with gcc HEAD).

Hey, maybe some fixes crept in.  A guy can hope.

Michael C


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]