Skip to content

Commit

Permalink
Not all pointers can be derefed
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaud-lb committed Jan 9, 2025
1 parent 4892823 commit c6e4cc6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/gdb/php_gdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -965,7 +965,10 @@ def format_nested(value):
while type.code == gdb.TYPE_CODE_PTR:
addr = int(value)
type = type.target()
value = value.dereference()
try:
value = value.dereference()
except:
pass

type = gdb.types.get_basic_type(type)

Expand Down

0 comments on commit c6e4cc6

Please sign in to comment.