[PATCH] D83468: [Debuginfo] Fix for PR46653

Adrian Prantl via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 19 09:42:21 PDT 2020


aprantl added a subscriber: jingham.
aprantl added a comment.

In D83468#2224774 <https://reviews.llvm.org/D83468#2224774>, @dblaikie wrote:

> In D83468#2224754 <https://reviews.llvm.org/D83468#2224754>, @aprantl wrote:
>
>>> (gdb) b main
>>> Breakpoint 1 at 0x800005ec: file test.c, line 0.
>>
>> Agreed that that is not a helpful end-user experience.
>
> How does LLDB handle this? Might also be consumer-fixable.

My understanding is that like with a regular breakpoint it would also slide the prologue-end breakpoint forward to the first non-zero line number. I'm not sure what happens if it's line 0 all the way to the end of the basic block — I think it would break on line 0 in that case. @jingham can correct me.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D83468/new/

https://reviews.llvm.org/D83468



More information about the llvm-commits mailing list