[all-commits] [llvm/llvm-project] 47721d: [lldb] Realpath symlinks for breakpoints (#102223)

royitaqi via All-commits all-commits at lists.llvm.org
Thu Aug 15 11:26:46 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 47721d46187f89c12a13d07b5857496301cf5d6e
      https://github.com/llvm/llvm-project/commit/47721d46187f89c12a13d07b5857496301cf5d6e
  Author: royitaqi <royitaqi at users.noreply.github.com>
  Date:   2024-08-15 (Thu, 15 Aug 2024)

  Changed paths:
    M lldb/include/lldb/Symbol/CompileUnit.h
    M lldb/include/lldb/Target/Statistics.h
    M lldb/include/lldb/Target/Target.h
    M lldb/include/lldb/Utility/FileSpecList.h
    A lldb/include/lldb/Utility/RealpathPrefixes.h
    M lldb/include/lldb/lldb-forward.h
    M lldb/source/Breakpoint/BreakpointResolverFileLine.cpp
    M lldb/source/Symbol/CompileUnit.cpp
    M lldb/source/Target/Statistics.cpp
    M lldb/source/Target/Target.cpp
    M lldb/source/Target/TargetProperties.td
    M lldb/source/Utility/CMakeLists.txt
    M lldb/source/Utility/FileSpecList.cpp
    A lldb/source/Utility/RealpathPrefixes.cpp
    A lldb/test/API/functionalities/breakpoint/breakpoint_with_realpath_and_source_map/Makefile
    A lldb/test/API/functionalities/breakpoint/breakpoint_with_realpath_and_source_map/TestBreakpoint.py
    A lldb/test/API/functionalities/breakpoint/breakpoint_with_realpath_and_source_map/main.c
    A lldb/test/API/functionalities/breakpoint/breakpoint_with_realpath_and_source_map/real/bar.h
    A lldb/test/API/functionalities/breakpoint/breakpoint_with_realpath_and_source_map/real/foo.h
    A lldb/test/API/functionalities/breakpoint/breakpoint_with_realpath_and_source_map/real/qux.h
    A lldb/test/API/functionalities/breakpoint/breakpoint_with_realpath_and_source_map/symlink1/foo.h
    A lldb/test/API/functionalities/breakpoint/breakpoint_with_realpath_and_source_map/symlink2
    A lldb/test/API/functionalities/breakpoint/breakpoint_with_realpath_and_source_map/to-be-mapped/README.md
    M lldb/unittests/Core/CMakeLists.txt
    R lldb/unittests/Core/FileSpecListTest.cpp
    M lldb/unittests/Utility/CMakeLists.txt
    A lldb/unittests/Utility/FileSpecListTest.cpp
    A lldb/unittests/Utility/MockSymlinkFileSystem.h
    A lldb/unittests/Utility/RealpathPrefixesTest.cpp

  Log Message:
  -----------
  [lldb] Realpath symlinks for breakpoints (#102223)

Improve the chance of resolving file/line breakpoints by realpath'ing the support files before doing a second match attempt, with some conditions applied.

A working [hello-world example](https://github.com/royitaqi/lldb_demos/blob/main/realpath/README.md).

See [patch](https://github.com/llvm/llvm-project/pull/102223) for more info about problem/motivation, details of the feature, new settings, telemetries and tests.



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