[lldb-dev] [PATCH] Use 0 as LLDB_INVALID_LINE_NUMBER

Andrew MacPherson andrew.macp at gmail.com
Fri Mar 14 01:49:03 PDT 2014


gdb assumes that any debug entry with a line number of 0 means that line
number information is not available (see struct symtab_and_line here):

http://www.opensource.apple.com/source/gdb/gdb-967/src/gdb/symtab.h

lldb currently uses UINT32_MAX for the same thing.

I suggest changing lldb to use the same value as gdb so that it's possible
to mark line entry data as invalid in the same way for both debuggers.

Thanks,
Andrew
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20140314/5bf0df02/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: invalid-line-number.patch
Type: text/x-diff
Size: 592 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20140314/5bf0df02/attachment.patch>


More information about the lldb-dev mailing list