Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Joshua Lamorie <jpl@xiphos.ca>
To: Eli Zaretskii <eliz@is.elta.co.il>
Cc: gdb@sourceware.cygnus.com
Subject: Re: Variable locations in a loaded kernel (bsd.gdb)
Date: Mon, 27 Aug 2001 10:06:00 -0000	[thread overview]
Message-ID: <Pine.LNX.4.10.10108271222570.8901-100000@verne.xiphos.ca> (raw)
In-Reply-To: <Pine.SUN.3.91.1010827192454.22538Q-100000@is>

On Mon, 27 Aug 2001, Eli Zaretskii wrote:
> Does the command "info address" help?

(gdb) info address scpshc_decompress::tp
No symbol "scpshc_decompress::tp" in current context.
(gdb) 

My problem is that I would like to know what address is being used to
refer to the variable.  Or, if it is in the register, which register.  Or
perhaps a stack offset.. though of course, that is context specific.  At
least, I want to see where it is first referenced, then I can trace it
through the assembler code.

Any hints are appreciated, and I'm playing around with all manner of ways
of viewing.  I can't seem to get a kernel to dump, and when I run 'target
kcore /dev/mem' I get...

(gdb) target kcore /dev/mem
can not access 0xc95e5bee, kvm_read: Bad address
can not access 0xc95e5bee, kvm_read: Bad address
can not access 0xe9eeda89, kvm_read: Bad address
can not access 0xe9eeda89, kvm_read: Bad address
cannot read pcb at 0xe9eeda89

I'll have to start firing off messages to the OpenBSD lists to figure out
more info for using 'ddb'.  I'm amazed, I've just loaded a 26Meg kernel!!

... and it runs! :-)

thanks in advance


-- 
Joshua Lamorie                           ph. 514-848-9640
Designer, Space Systems                  fx. 514-848-9644
Xiphos Technologies Inc.                 web http://www.xiphos.ca/


  reply	other threads:[~2001-08-27 10:06 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-08-27  9:14 Joshua Lamorie
2001-08-27  9:24 ` Eli Zaretskii
2001-08-27 10:06   ` Joshua Lamorie [this message]
2001-08-27 10:48 ` Andrew Cagney

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=Pine.LNX.4.10.10108271222570.8901-100000@verne.xiphos.ca \
    --to=jpl@xiphos.ca \
    --cc=eliz@is.elta.co.il \
    --cc=gdb@sourceware.cygnus.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