summaryrefslogtreecommitdiffstats
path: root/.gdbinit
diff options
context:
space:
mode:
authorRuediger Pluem <rpluem@apache.org>2020-06-30 22:16:19 +0200
committerRuediger Pluem <rpluem@apache.org>2020-06-30 22:16:19 +0200
commit72f12552f98f9f08c7b3a76394ea0951caba606d (patch)
tree596b8b2c1fb481ee75538247cd862d844c0b7f82 /.gdbinit
parent* Create helper function isValidAddress to determine if an address is valid [... (diff)
downloadapache2-72f12552f98f9f08c7b3a76394ea0951caba606d.tar.xz
apache2-72f12552f98f9f08c7b3a76394ea0951caba606d.zip
* Use isValidAddress when dumping buckets [skip ci]
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1879383 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '.gdbinit')
-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