This is the mail archive of the gdb-prs@sourceware.org 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]

[Bug breakpoints/12680] New: regression by physname: PE32 prologueskip vs. static initializers


http://sourceware.org/bugzilla/show_bug.cgi?id=12680

           Summary: regression by physname: PE32 prologue skip vs. static
                    initializers
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: breakpoints
        AssignedTo: unassigned@sourceware.org
        ReportedBy: jan.kratochvil@redhat.com
                CC: keiths@redhat.com
            Target: i686-pc-mingw32


int v; class C { public: C() { v++; } } c; int main () {}

i686-pc-mingw32-g++ -Wall -g
mingw32-gcc-c++-4.5.0-1.fc14.x86_64

PASS: pre-physname
GNU gdb (GDB) 7.1.50.20100309-cvs
Breakpoint 1 at 0x40133f: file ..., line 13.

FAIL: post-physname
GNU gdb (GDB) 7.3.50.20110415-cvs
Breakpoint 1 at 0x40133a: file ..., line 12.

Dump of assembler code for function main:
   0x00401334 <+0>:    push   %ebp
   0x00401335 <+1>:    mov    %esp,%ebp
   0x00401337 <+3>:    and    $0xfffffff0,%esp
<-- FAIL
   0x0040133a <+6>:    call   0x401530 <__main>
<-- PASS
   0x0040133f <+11>:    call   0x401322 <_Z1fv>
   0x00401344 <+16>:    mov    $0x0,%eax
   0x00401349 <+21>:    mov    %ebp,%esp
   0x0040134b <+23>:    pop    %ebp
   0x0040134c <+24>:    ret    

SYMBOL_LINKAGE_NAME was "main" before.  It is "main()" now for symtabs.
This breaks the skip_prologue_sal comparison for gdbarch_skip_main_prologue.

SYMBOL_LINKAGE_NAME is no longer a linkage name for symtabs, it is demangled
now, such as `C::C(C const&)'.  SYMBOL_LINKAGE_NAME is mangled for minsyms.
SYMBOL_LINKAGE_NAME behaves differently for symbols vs. minsyms.

This is a regression by the patch:
        42284fdf9d8cdb20c8e833bdbdb2b56977fea525
        http://sourceware.org/ml/gdb-cvs/2010-03/msg00082.html
        dwarf2_physname patchset:
        [RFA] dwarf2_physname FINAL
        http://sourceware.org/ml/gdb-patches/2010-03/msg00220.html

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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