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 gdb/12537] New: No function contains program counter forselected frame


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

           Summary: No function contains program counter for selected
                    frame
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gdb
        AssignedTo: unassigned@sourceware.org
        ReportedBy: hjl.tools@gmail.com


When abort doesn't return, I got

(gdb) bt
#0  0xf788c380 in raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#1  0xf788d93e in abort () at abort.c:92
#2  0xf7dfb57e in check1 () at tst-tlsmod12.c:12
#3  0x00400509 in main () at tst-tls12.c:13
(gdb) f 2
#2  0xf7dfb57e in check1 () at tst-tlsmod12.c:12
12        abort ();
(gdb) p/x $pc
$2 = 0xf7dfb57e
(gdb) disass
No function contains program counter for selected frame.
(gdb) disass check1
Dump of assembler code for function check1:
   0xf7dfb510 <+0>:    sub    $0x8,%rsp
   0xf7dfb514 <+4>:    data32 lea 0x200abc(%rip),%rdi        # 0xf7ffbfd8
   0xf7dfb51c <+12>:    data32 data32 callq 0xf7dfb410 <__tls_get_addr@plt>
   0xf7dfb524 <+20>:    movabs $0xffffffff000000ff,%rdx
   0xf7dfb52e <+30>:    movabs $0x500000004,%rcx
   0xf7dfb538 <+40>:    mov    %rdx,%rsi
   0xf7dfb53b <+43>:    and    (%rax),%rsi
   0xf7dfb53e <+46>:    cmp    %rcx,%rsi
   0xf7dfb541 <+49>:    jne    0xf7dfb579 <check1+105>
   0xf7dfb543 <+51>:    cmpq   $0x6,0x8(%rax)
   0xf7dfb548 <+56>:    jne    0xf7dfb579 <check1+105>
   0xf7dfb54a <+58>:    mov    %fs:0x0,%ecx
   0xf7dfb552 <+66>:    mov    0x200a6f(%rip),%rax        # 0xf7ffbfc8
   0xf7dfb559 <+73>:    movabs $0x800000007,%rsi
   0xf7dfb563 <+83>:    and    (%rcx,%rax,1),%rdx
   0xf7dfb567 <+87>:    cmp    %rsi,%rdx
   0xf7dfb56a <+90>:    jne    0xf7dfb579 <check1+105>
   0xf7dfb56c <+92>:    cmpq   $0x9,0x8(%rcx,%rax,1)
   0xf7dfb572 <+98>:    jne    0xf7dfb579 <check1+105>
   0xf7dfb574 <+100>:    add    $0x8,%rsp
   0xf7dfb578 <+104>:    retq   
   0xf7dfb579 <+105>:    callq  0xf7dfb430 <abort@plt>
---Type <return> to continue, or q <return> to quit---
End of assembler dump.
(gdb) 

Here PC points the location after

0xf7dfb579 <+105>:    callq  0xf7dfb430 <abort@plt>

-- 
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]