[all-commits] [llvm/llvm-project] 819383: [lldb] Search main function with lldb::eFunctionNa...

Zequan Wu via All-commits all-commits at lists.llvm.org
Tue Oct 29 13:23:55 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8193832fb988e3df1e8e726634783805dca8d9b6
      https://github.com/llvm/llvm-project/commit/8193832fb988e3df1e8e726634783805dca8d9b6
  Author: Zequan Wu <zequanwu at google.com>
  Date:   2024-10-29 (Tue, 29 Oct 2024)

  Changed paths:
    M lldb/source/Core/SourceManager.cpp

  Log Message:
  -----------
  [lldb] Search main function with lldb::eFunctionNameTypeFull when getting default file and line. (#113980)

This is to work around the fact that
`SymbolFileNativePDB::FindFunctions` only support
`lldb::eFunctionNameTypeFull` and `lldb::eFunctionNameTypeMethod` now.
Since `main`'s full name is the same as base name (`main`), it's okay to
search with `lldb::eFunctionNameTypeFull` when trying to get the default
file and line. With this, `lldb/test/Shell/Driver/TestSingleQuote.test`
passes on Windows with NativePDB plugin.



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