[PATCH] D83731: Add Debug Info Size to Symbol Status
Greg Clayton via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Jul 23 12:43:36 PDT 2020
clayborg added inline comments.
================
Comment at: lldb/test/API/tools/lldb-vscode/module/TestVSCode_module.py:55-61
+ active_modules = self.vscode.get_active_modules()
+ program_module = active_modules[program_basename]
+ self.assertEqual(program_basename, program_module['name'])
+ self.assertEqual(program, program_module['path'])
+ self.assertIn('symbolFilePath', program_module)
+ self.assertEqual(symbols_path, program_module['symbolFilePath'])
+ self.assertIn('addressRange', program_module)
----------------
aelitashen wrote:
> clayborg wrote:
> > Unindent everything after the self.waitUntil()? Otherwise we are not testing the program, symbolFilePath and addressRange on symbols with size.
> When unindenting these codes, the dsym test for darwin fails as the symbol paths don't match. One is using dysm path, one is using a.out.path.
Then we need to fix this function so that it does work. One thing to note in the dSYM case: dSYM files are bundles which means it is a directory that contains a file within it. So you might specify "/tmp/a.out.dSYM" as the path, but end up with "/tmp/a.out.dSYM/Context/Resources/DWARF/a.out" as the symbol path. So you could switch the symbol file path to use assertIn:
```
self.assertIn(symbols_path, program_module['symbolFilePath'])
```
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D83731/new/
https://reviews.llvm.org/D83731
More information about the cfe-commits
mailing list