This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug symtab/14620] New: GDB skips user asm statements mistaken asprologue
- From: "jan.kratochvil at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Tue, 25 Sep 2012 14:57:01 +0000
- Subject: [Bug symtab/14620] New: GDB skips user asm statements mistaken asprologue
- Auto-submitted: auto-generated
http://sourceware.org/bugzilla/show_bug.cgi?id=14620
Bug #: 14620
Summary: GDB skips user asm statements mistaken as prologue
Product: gdb
Version: HEAD
Status: NEW
Severity: normal
Priority: P2
Component: symtab
AssignedTo: unassigned@sourceware.org
ReportedBy: jan.kratochvil@redhat.com
Classification: Unclassified
Target: x86_64-unknown-linux-gnu
int v;
void f (void)
{ asm volatile ("push %rbp\nmov %rsp,%rbp");
v = 1;
v = 2;
asm volatile ("pop %rbp");}
int
main (void)
{
f ();
return 0;
}
-------------------------------------------------------------------------------
gcc -g -fomit-frame-pointer
-------------------------------------------------------------------------------
Special opcode 8: advance Address by 0 to 0x0 and Line by 3 to 4
Copy
Special opcode 63: advance Address by 4 to 0x4 and Line by 2 to 6
-------------------------------------------------------------------------------
There is double line marker for address 0 but GDB ignores that.
(gdb) b f
Breakpoint 1 at 0x4: file prologue.c, line 6.
(gdb) info breakpoints
Num Type Disp Enb Address What
1 breakpoint keep y 0x0000000000000004 in f at prologue.c:6
FAIL:
address 4
PASS:
address 0
--
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.