public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug symtab/14620] New: GDB skips user asm statements mistaken as prologue
@ 2012-09-25 14:57 jan.kratochvil at redhat dot com
  0 siblings, 0 replies; only message in thread
From: jan.kratochvil at redhat dot com @ 2012-09-25 14:57 UTC (permalink / raw)
  To: gdb-prs


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.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-09-25 14:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-09-25 14:57 [Bug symtab/14620] New: GDB skips user asm statements mistaken as prologue jan.kratochvil at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).