From 72f12552f98f9f08c7b3a76394ea0951caba606d Mon Sep 17 00:00:00 2001 From: Ruediger Pluem Date: Tue, 30 Jun 2020 20:16:19 +0000 Subject: * 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 --- .gdbinit | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to '.gdbinit') 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 -- cgit v1.2.3