[Bug 20149] New: No configuration settings available for stop line printing within an IDE

Bug ID 20149
Summary No configuration settings available for stop line printing within an IDE
Product lldb
Version unspecified
Hardware PC
OS All
Status NEW
Severity normal
Priority P
Component All Bugs
Assignee lldb-dev@cs.uiuc.edu
Reporter rdsmith@chromium.org
Classification Unclassified

[lldb built from source at svn revision 210882.]

lldb's current behavior is to print source lines from a source file if source
line information is present and valid and either stop-line-count-before or
stop-line-count-after is non-zero.  If that condition is not true, assembly
language lines are printed instead.  (StackFrame::GetStatus()).  If you want
lldb not to display anything on frames corresponding to source lines, you need
to turn off disassembly display as well.

I would argue that this doesn't make sense for contexts in which lldb is being
run within and on behalf of an IDE (my personal use case is in GUD mode in
emacs, but the argument is general).  In such cases, since the IDE probably has
an integrated editor, it will be responsible for displaying the source, and
just wants lldb to tell it what to display (taken care of by the "frame
#n:<blah> at FILE:LINENO").  However, the IDE is unlikely to be able to display
the assembly on its own, so it doesn't want to disable display of the assembly
code.

Proposed fix is to make the setting of have_source in StackFrame::GetStatus()
be independent of the settings of the line display count, and only have the
actual display of the lines be dependent on those counts. 

If no one objects, I'm happy to put together a patch (though it doesn't look
like I can assign this bug to myself).

Randy Smith changed bug 20149