public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug symtab/17863] New: Inlined functions calls ignored while stepping if the first instruction doesn't have a source line
@ 2015-01-21 11:52 guardiankain at gmail dot com
  0 siblings, 0 replies; only message in thread
From: guardiankain at gmail dot com @ 2015-01-21 11:52 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=17863

            Bug ID: 17863
           Summary: Inlined functions calls ignored while stepping if the
                    first instruction doesn't have a source line
           Product: gdb
           Version: 7.8
            Status: NEW
          Severity: normal
          Priority: P2
         Component: symtab
          Assignee: unassigned at sourceware dot org
          Reporter: guardiankain at gmail dot com

It seems that gdb ignores the scopes to which the instruction belongs to if the
source line is not known. It just groups it with the last source line found
before.

In most cases this is fine, but if the instruction in question is at the start
of the call site of the inlined function (it is a first instruction of that
function) when stepping the process_event_stop_test routine will just skip over
it as still being in the step range of the source line of the statement before
the inlined call. This means that the next instruction of the inlined function
that actually have a source line will be also automatically stepped over
because that instruction is not at the beginning of the inlined function.

In essence this will make gdb skip the whole call statement and inlined
function at that call site.

-- 
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:[~2015-01-21 11:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-21 11:52 [Bug symtab/17863] New: Inlined functions calls ignored while stepping if the first instruction doesn't have a source line guardiankain at gmail 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).