From: Thiemo Seufer <ths@networkno.de>
To: Nick Clifton <nickc@redhat.com>, gdb-patches@sourceware.org
Subject: Re: RFA: Make --memory-info work for MIPS simulators
Date: Mon, 03 Sep 2007 17:45:00 -0000 [thread overview]
Message-ID: <20070903173523.GD29574@networkno.de> (raw)
In-Reply-To: <20070903171438.GB12440@caradoc.them.org>
Daniel Jacobowitz wrote:
> On Fri, Aug 10, 2007 at 11:38:10AM +0100, Nick Clifton wrote:
> > sim/mips/ChangeLog
> > 2007-08-10 Nick Clifton <nickc@redhat.com>
> >
> > * interp.c (options enum): Add OPTION_INFO_MEMORY.
> > (display_mem_info): New static variable.
> > (mips_option_handler): Handle OPTION_INFO_MEMORY.
> > (mips_options): Add info-memory and memory-info.
> > (sim_open): After processing the command line and board
> > specification, check display_mem_info. If it is set then
> > call the real handler for the --memory-info command line
> > switch.
>
> I didn't see any response to this patch. I think it's OK to commit,
> though.
I sent the appended email on 2007-08-13, it seems it didn't reach the
list for some reason.
Thiemo
From ths@networkno.de Mon Aug 13 18:15:43 2007
Date: Mon, 13 Aug 2007 18:15:43 +0100
From: Thiemo Seufer <ths@networkno.de>
To: Nick Clifton <nickc@redhat.com>
Cc: gdb-patches@sourceware.org
Subject: Re: RFA: Make --memory-info work for MIPS simulators
Message-ID: <20070813171543.GB19507@networkno.de>
References: <m33ayrfze5.fsf@redhat.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <m33ayrfze5.fsf@redhat.com>
User-Agent: Mutt/1.5.16 (2007-06-11)
Status: RO
Content-Length: 2065
Lines: 58
Nick Clifton wrote:
> Hi Thiemo,
>
> The --memory-info command line switch (and its alias --info-memory)
> do not work for the MIPS simulator because the memory regions are
> not set up until after the command line has been parsed. The
> attached patch fixes this by delaying the processing of
> --memory-info until after the regions have been initialized.
>
> The patch does have one slightly dubious component - it removes the
> mips specific command line options table from the linked list of
> options tables once the command line has been processed. It does
> this so that the real handler for --memory-info can be called via
> the sim_do_commandf() function. I think that this is safe, since
> there is no longer any need to process mips specific command line
> switches.
>
> Before the patch:
>
> % mips64vrel-elf-run --memory-info a.out
> Memory maps:
>
> After the patch:
>
> % mips64vrel-elf-run --memory-info a.out
> Memory maps:
> memory region 0x7fff8000,0x8000
> memory alias 0xa0000000@0x1,0x20000000%0x800000,0x80000000@0x1
>
> May I apply this patch please ?
>
> Cheers
> Nick
>
> PS. The sim/MAINTAINERS file has your email address as
> <ths@networkno.de>, judging from the ChangeLog though, I guessed that
> this was incorrect.
In the Changelog I use the mips.com mail address for changes which are
covered by the MTI copyright assignment, the networkno.de address is
for contributions which fall under my personal copyright assignment.
> sim/mips/ChangeLog
> 2007-08-10 Nick Clifton <nickc@redhat.com>
>
> * interp.c (options enum): Add OPTION_INFO_MEMORY.
> (display_mem_info): New static variable.
> (mips_option_handler): Handle OPTION_INFO_MEMORY.
> (mips_options): Add info-memory and memory-info.
> (sim_open): After processing the command line and board
> specification, check display_mem_info. If it is set then
> call the real handler for the --memory-info command line
> switch.
Ok.
Thiemo
next prev parent reply other threads:[~2007-09-03 17:45 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-10 10:38 Nick Clifton
2007-09-03 17:14 ` Daniel Jacobowitz
2007-09-03 17:45 ` Thiemo Seufer [this message]
2007-09-04 14:34 ` Nick Clifton
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=20070903173523.GD29574@networkno.de \
--to=ths@networkno.de \
--cc=gdb-patches@sourceware.org \
--cc=nickc@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