[all-commits] [llvm/llvm-project] 5a9189: [lldb][Format] Add [inlined] marker to names of in...

Michael Buch via All-commits all-commits at lists.llvm.org
Thu Jun 5 09:41:59 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5a918923f37e49b426f117c691c83d29df8c955d
      https://github.com/llvm/llvm-project/commit/5a918923f37e49b426f117c691c83d29df8c955d
  Author: Michael Buch <michaelbuch12 at gmail.com>
  Date:   2025-06-05 (Thu, 05 Jun 2025)

  Changed paths:
    M lldb/docs/use/formatting.rst
    M lldb/include/lldb/Core/FormatEntity.h
    M lldb/source/Core/CoreProperties.td
    M lldb/source/Core/FormatEntity.cpp
    A lldb/test/Shell/Settings/TestFrameFunctionInlined.test
    M lldb/unittests/Core/FormatEntityTest.cpp

  Log Message:
  -----------
  [lldb][Format] Add [inlined] marker to names of inlined frames (#142952)

This was removed in https://github.com/llvm/llvm-project/pull/135343 in
favour of making it a format variable, which we do here. This follows
the precedent of the `[opt]` and `[artificial]` markers.

Before:
```
 thread #1, queue = 'com.apple.main-thread', stop reason = breakpoint 1.2
 * frame #0: 0x000000010000037c a.out`inlined1() at inline.cpp:4:3
   frame #1: 0x000000010000037c a.out`regular() at inline.cpp:6:17
   frame #2: 0x00000001000003b8 a.out`inlined2() at inline.cpp:7:43
   frame #3: 0x00000001000003b4 a.out`main at inline.cpp:10:3
   frame #4: 0x0000000186345be4 dyld`start + 7040
```

After (note the `[inlined]` markers):
```
thread #1, queue = 'com.apple.main-thread', stop reason = breakpoint 1.2
* frame #0: 0x000000010000037c a.out`inlined1() at inline.cpp:4:3 [inlined]
  frame #1: 0x000000010000037c a.out`regular() at inline.cpp:6:17
  frame #2: 0x00000001000003b8 a.out`inlined2() at inline.cpp:7:43 [inlined]
  frame #3: 0x00000001000003b4 a.out`main at inline.cpp:10:3
  frame #4: 0x0000000186345be4 dyld`start + 7040
```

rdar://152642178



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list