This is the mail archive of the gcc-bugs@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]

[Bug debug/25258] New: [4.0 regression/hpux] gcc generates incorrect stabs debug output


Programs compiled with gcc-4.x on 32-bit hpux targets cannot be debugged. When
loaded into gdb, the programs behave as if no debugging information is present. 

For example, given:
int foo(int x)
{
        return x;
}

int main(int argc, char **argv)
{
        return foo(argc);
}

Placing a breakpoint on foo gives:

(gdb) b foo
During symbol reading, unknown symbol type 0x2e.
During symbol reading, block end address less than block start address in main
(patched it).
During symbol reading, inner block (0x2960-0x2960) not inside outer block
(0x2920-0x2920).
Breakpoint 1 at 0x292c

The "unknown symbol type" warning is for the new BNSYM stab entry that was
added to gcc but not yet updated in gdb.

this problem seems to only occur on the 32-bit HPUX port. On 64-bit HPUX and
32-bit Linux there does not appear to be any problems with slabs debugging.


-- 
           Summary: [4.0 regression/hpux] gcc generates incorrect stabs
                    debug output
           Product: gcc
           Version: 4.0.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: debug
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: tausq at debian dot org
 GCC build triplet: hppa2.0w-hp-hpux11.11
  GCC host triplet: hppa2.0w-hp-hpux11.11
GCC target triplet: hppa2.0w-hp-hpux11.11


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25258


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