This changes some DAP code to explicitly use a symbol's print name.
Some places were using '.name'; and while 'str' does use the print
name, it seems better to be both consistent and explicit.
return
self._blocks.add(block)
if block.function is not None:
- self._labels[block.start] = block.function.name
+ self._labels[block.start] = block.function.print_name
for sym in block:
if sym.addr_class == gdb.SYMBOL_LOC_LABEL:
- self._labels[int(sym.value())] = sym.name
+ self._labels[int(sym.value())] = sym.print_name
block = block.superblock
# Add PC to this tracker. Update RESULT as appropriate with
@in_gdb_thread
def fetch_one_child(self, idx):
sym = self._var_list[idx]
- return (sym.name, sym.value())
+ return (sym.print_name, sym.value())
@in_gdb_thread
# be needed, but this is a way to set the current language
# properly so that language-dependent APIs will work.
inf_frame.select()
- name = str(sym.symbol())
+ name = sym.symbol().print_name
val = sym.value()
if val is None:
# No synthetic value, so must read the symbol value