From: "Dave Korn" <dk@artimi.com>
To: "'Charlls Quarra'" <charlls_quarra@yahoo.com.ar>,
<gdb@sources.redhat.com>
Subject: RE: dumping and browsing heap
Date: Fri, 16 Jul 2004 11:11:00 -0000 [thread overview]
Message-ID: <NUTMEGrOJhKPc99ir3w000008dc@NUTMEG.CAM.ARTIMI.COM> (raw)
In-Reply-To: <20040716020250.84785.qmail@web41810.mail.yahoo.com>
> -----Original Message-----
> From: gdb-owner On Behalf Of Charlls Quarra
> Sent: 16 July 2004 03:03
> i want to give a look at the heap globally, so i do:
>
> dump memory blafile 0x8100000 0x8300000
>
>
> whenever i find something interesting in the blafile
> (i open it with vi) a g<control-g> command gives me
> the absolute position of the desired byte in the file
> (at least that is the expected behaviour)
>
> the dump should contain 0x200000 (2097152 in decimal)
> bytes, however it happens to contain 2295106 (197954
> bytes in excess). Someone knows how to account for
> these extra bytes?
Mmm. You're using vi. Probably opens the file in textmode. Is anything
perhaps translating every LF to CR+LF, thereby adding an 0x0d in front of
every 0x0a in the original file? The way to find out would be
tr -c -d '\012' < blafile | wc -c
and if the result is 197954, there's your suspect.
cheers,
DaveK
--
Can't think of a witty .sigline today....
next prev parent reply other threads:[~2004-07-16 9:04 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-07-16 3:23 Charlls Quarra
2004-07-16 11:11 ` Dave Korn [this message]
2004-07-16 14:04 ` Charlls Quarra
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=NUTMEGrOJhKPc99ir3w000008dc@NUTMEG.CAM.ARTIMI.COM \
--to=dk@artimi.com \
--cc=charlls_quarra@yahoo.com.ar \
--cc=gdb@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox