Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Aleksandar Ristovski <aristovski@qnx.com>
To: gdb-patches@sources.redhat.com
Subject: Re: [patch] nto target: Code cleanup
Date: Thu, 11 Jun 2009 19:34:00 -0000	[thread overview]
Message-ID: <h0rm6n$sqr$1@ger.gmane.org> (raw)
In-Reply-To: <20090611192410.GK25703@adacore.com>

Joel Brobecker wrote:
>> 	* i386-nto-tdep.c (i386_nto_target): Remove definition.
>> 	(init_i386nto_ops): Use macros to set fields to global
>> 	current_nto_target directly.
>> 	(i386nto_init_abi): Remove unused nto_set_target call.
>> 	* nto-tdep.h (nto_set_target): Remove unused declaration.
>> 	* nto-tdep.c (nto_set_target): Remove unused function.
> 
> Thanks for extracting this part out. This is OK.
> 
> I'm wondering how the other targets do this sort of thing,
> but my brain seem to be refusing to function at the moment...
> 
Thanks for quick review!

Committed.

Primary motivation for this gymnastics in nto was that we 
actually support 5 different cpu platforms and code in 
nto-tdep.c is "generic", that is it calls particular nto 
target's (that is cpu specific stuff) from there.

My motivation for cleanup is to remove things that don't 
seem to do what is expected (like in this example, by 
removing this indirection I haven't changed behaviour at all 
since the "nto_set_target" simply copies just set functions 
from i386_nto_target into current_nto_target.

The whole thing will undergo further cleanups, but right now 
I want to bring it as close to what I have as possible.


-- 
Aleksandar Ristovski
QNX Software Systems


  reply	other threads:[~2009-06-11 19:34 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-11 19:16 Aleksandar Ristovski
2009-06-11 19:24 ` Joel Brobecker
2009-06-11 19:34   ` Aleksandar Ristovski [this message]
2009-06-11 20:40 ` Mark Kettenis
2009-06-11 20:47   ` Aleksandar Ristovski
2009-06-12 19:05     ` Aleksandar Ristovski

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='h0rm6n$sqr$1@ger.gmane.org' \
    --to=aristovski@qnx.com \
    --cc=gdb-patches@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