summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.gdbinit14
1 files changed, 9 insertions, 5 deletions
diff --git a/.gdbinit b/.gdbinit
index 92146b70fe..b0d15e492a 100644
--- a/.gdbinit
+++ b/.gdbinit
@@ -205,12 +205,16 @@ define dump_bucket_ex
printf " contents=["
end
set $datalen = $bucket->length
- if $datalen > 17
- printmem $data 17
- printf "..."
- set $datalen = 20
+ if $isValidAddress($data) == 1
+ if $datalen > 17
+ printmem $data 17
+ printf "..."
+ set $datalen = 20
+ else
+ printmemn $data $datalen
+ end
else
- printmemn $data $datalen
+ printf "Invalid addresss %12lx", $data
end
printf "]"
while $datalen < 20