[Lldb-commits] [lldb] [lldb] Fix "in function" detection in "thread until" (PR #123622)

via lldb-commits lldb-commits at lists.llvm.org
Thu Feb 13 10:12:54 PST 2025


================
@@ -970,19 +969,26 @@ class CommandObjectThreadUntil : public CommandObjectParsed {
           return;
         }
 
-        AddressRange fun_addr_range = sc.function->GetAddressRange();
-        Address fun_start_addr = fun_addr_range.GetBaseAddress();
-        line_table->FindLineEntryByAddress(fun_start_addr, function_start,
-                                           &index_ptr);
-
-        Address fun_end_addr(fun_start_addr.GetSection(),
-                             fun_start_addr.GetOffset() +
-                                 fun_addr_range.GetByteSize());
-
-        bool all_in_function = true;
+        uint32_t lowest_func_idx = UINT32_MAX;
----------------
jimingham wrote:

Would this be useful anywhere else?  It's asking a Function what its highest and lowest indexes are in the linetable from its CU.

https://github.com/llvm/llvm-project/pull/123622


More information about the lldb-commits mailing list