This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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]

GDB test results for removing line notes in cfglayout


Honza asked me to test:
  http://gcc.gnu.org/ml/gcc-patches/2006-07/msg01080.html

It causes three regressions in the GDB testsuite.

They all look like this:

-Breakpoint 4, marker1 () at /space/fsf/commit/src/gdb/testsuite/gdb.base/break1.c:40
+Breakpoint 4, 0x00000000004006e4 in marker1 () at /space/fsf/commit/src/gdb/testsuite/gdb.base/break1.c:40
 40     int marker1 () { return (0); }          /* set breakpoint 16 here */
-(gdb) PASS: gdb.base/condbreak.exp: run until breakpoint at marker1
+(gdb) XFAIL: gdb.base/condbreak.exp: run until breakpoint at marker1

When the hex address appears, that means we have lost a line note, and
set a breakpoint "in the middle of a line".

Try compiling just that function with -O0 -g.  Assemble it and look at
the line table with readelf -wl.  I bet you'll get one fewer line note
with the patch; the "duplicate" note is used to mark the end of the
prologue.

-- 
Daniel Jacobowitz
CodeSourcery


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