Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@false.org>
To: Marcel Moolenaar <marcel@cup.hp.com>
Cc: gdb-patches@sources.redhat.com
Subject: Re: [PATCH] New port: ia64-*-freebsd
Date: Mon, 25 Jul 2005 17:36:00 -0000	[thread overview]
Message-ID: <20050725173545.GA11163@nevyn.them.org> (raw)
In-Reply-To: <ffb37f4e59dbd7f214f108f4865f8540@cup.hp.com>

On Mon, Jul 25, 2005 at 10:32:27AM -0700, Marcel Moolenaar wrote:
> >  That's where I get confused.  How is
> >the data in the core file mapped onto the memory space?
> 
> I'm not quite sure I get your drift. Let me just answer what I think
> you mean:
> 
> The backing store is nothing more than a second stack. The first being
> the well-known memory stack onto which (stacked) local variables live.
> The backing store grows upwards and the memory stack grows downwards.
> So, in essence, it's a mmap'd region. Either created by the kernel when
> the process is created, or created by the threading implementation.
> In the core file the backing store is part of some loadable segment.
> Either by itself or part of a larger block of memory.

No, that's not what I mean.

Here and further below you think I'm talking about the concept of the
target object.  I'm not.  I'm talking specifically about the corefile
implementation you included.

That implementation reads from an address in memory to find the
registers.  If there's no room for them in memory, where the heck are
they, and how can you find them by reading from memory?

> >I really recommend fixing your notes first and not making GDB support
> >this scheme.
> 
> I've thought about it. The point is that GDB already needs to support it
> for Linux, so splitting up the work in such a way that FreeBSD 
> temporarily
> has the same "limitations" as Linux seemed ideal. Not only is it 
> possible
> to improve the overall core file support in FreeBSD, it also allows 
> Linux
> to move away from the abstraction. In that sense, the abstraction is
> gradually moved out of GDB. And as for any interim solution: there is 
> bound
> to be some icky code for a while.

So the answer to my above question is "you can't yet"?

> All I can say is that I'll think about it: The FreeBSD release schedule 
> is
> now in my advantage, but getting binutils to grok a whole new kind of 
> core
> notes may by itself turn out to be... euh... challenging... :-)

Actually it's quite easy.

-- 
Daniel Jacobowitz
CodeSourcery, LLC


  reply	other threads:[~2005-07-25 17:36 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-05 19:52 Marcel Moolenaar
2005-07-06 17:24 ` Followup: " Marcel Moolenaar
2005-07-15  0:01 ` Daniel Jacobowitz
2005-07-15  2:08   ` Marcel Moolenaar
2005-07-15  2:16     ` Daniel Jacobowitz
2005-07-15 18:20       ` Marcel Moolenaar
2005-07-24 21:26         ` Daniel Jacobowitz
2005-07-25 17:32           ` Marcel Moolenaar
2005-07-25 17:36             ` Daniel Jacobowitz [this message]
2005-07-25 17:58               ` Marcel Moolenaar
2005-07-25 19:34                 ` Mark Kettenis
2005-07-25 20:41                   ` Marcel Moolenaar

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=20050725173545.GA11163@nevyn.them.org \
    --to=drow@false.org \
    --cc=gdb-patches@sources.redhat.com \
    --cc=marcel@cup.hp.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