NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: bin/44061: src/sys/gdbscripts/msgbuf doesn't work

The following reply was made to PR bin/44061; it has been noted by GNATS.

From: David Holland <>
Subject: Re: bin/44061: src/sys/gdbscripts/msgbuf doesn't work
Date: Sun, 2 Oct 2016 19:04:22 +0000

 On Sun, Nov 07, 2010 at 06:50:00PM +0000, wrote:
  > Typical output from 'msgbuf' command defined by this script:
  > msgbufp 0xcbbe1000: bufx 409 bufr 410 bufs 16368
  > Dumping 0xcbbe11a9 length 15959
  > Cannot access memory at address 0xcbbe5000
  > >How-To-Repeat:
  > Try to analyze a crash dump.
  > >Fix:
  > 'x/s $p' instead of 'printf "%s\n", $p' works, but is not pretty.
 ...why would this change whether $p is a valid pointer? Or is the
 issue that the "string" isn't terminated so it chugs off the end, and
 the behavior of x and printf in this case is different?
 David A. Holland

Home | Main Index | Thread Index | Old Index