mirror of
https://github.com/verilator/verilator.git
synced 2026-09-08 02:28:43 +02:00
Add cast in gdbinit.py (#6447)
Signed-off-by: Artur Bieniek <[email protected]>
This commit is contained in:
+1
-1
@@ -16,7 +16,7 @@ import gdb # pylint: disable=import-error
|
||||
def _vltgdb_get_dump(node):
|
||||
gdb.execute(f'set $_gdb_dump_json_str = AstNode::dumpTreeJsonGdb({node})')
|
||||
dump = gdb.execute('printf "%s", $_gdb_dump_json_str', to_string=True)
|
||||
gdb.execute('call free($_gdb_dump_json_str)')
|
||||
gdb.execute('call (void)free($_gdb_dump_json_str)')
|
||||
return dump
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user