diff options
author | Ruediger Pluem <rpluem@apache.org> | 2020-06-30 22:16:19 +0200 |
---|---|---|
committer | Ruediger Pluem <rpluem@apache.org> | 2020-06-30 22:16:19 +0200 |
commit | 72f12552f98f9f08c7b3a76394ea0951caba606d (patch) | |
tree | 596b8b2c1fb481ee75538247cd862d844c0b7f82 /.gdbinit | |
parent | * Create helper function isValidAddress to determine if an address is valid [... (diff) | |
download | apache2-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-- | .gdbinit | 14 |
1 files changed, 9 insertions, 5 deletions
@@ -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 |