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/15360] can't step into function


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

Pedro Alves <palves at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |palves at redhat dot com

--- Comment #2 from Pedro Alves <palves at redhat dot com> 2013-04-12 08:52:17 UTC ---
A simpler reproducer:

 (gdb) b function
 Breakpoint 1 at 0x400569: file pr15360.c, line 9.
 (gdb) r
 ...
 ...exited normally.

GDB wants to put the breakpoint after the prologue of 'function', but:

(gdb) disassemble /m function
Dump of assembler code for function function():
8       {
   0x000000000040055c <+0>:     push   %rbp
   0x000000000040055d <+1>:     mov    %rsp,%rbp
   0x0000000000400560 <+4>:     push   %r12
   0x0000000000400562 <+6>:     push   %rbx
   0x0000000000400563 <+7>:     sub    $0x10,%rsp
   0x0000000000400567 <+11>:    jmp    0x40056a <function()+14>

9         do{
   0x0000000000400569 <+13>:    nop

10          int i = 0;
   0x000000000040056a <+14>:    movl   $0x0,-0x14(%rbp)

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