From: Aleksandar Ristovski <aristovski@qnx.com>
To: gdb-patches@sources.redhat.com
Cc: Mark Kettenis <mark.kettenis@xs4all.nl>
Subject: Re: [patch] nto target: Code cleanup
Date: Thu, 11 Jun 2009 20:47:00 -0000 [thread overview]
Message-ID: <4A316D52.3010305@qnx.com> (raw)
In-Reply-To: <200906112039.n5BKdxrg027646@brahms.sibelius.xs4all.nl>
Mark Kettenis wrote:
>> From: Aleksandar Ristovski <aristovski@qnx.com>
>> Date: Thu, 11 Jun 2009 15:15:56 -0400
>>
>> Hello,
>>
>> This patch removes i386_nto_target as unnecessary indirection.
>>
>> Thanks,
>>
>> --
>> Aleksandar Ristovski
>> QNX Software Systems
>>
>> ChangeLog:
>>
>> * 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.
>
> Not sure this is a step in the right direction. This being in a
> -tdep.c file pretty much makes it impossible to build a multi-arch GDB
> that supports multiple NTO targets.
>
The patch functionally doesn't change anything. If you look
at nto-tdep.h there is current_nto_target extern which gets
set either by macros I used in my patch or indirectly by
nto_set_target.
The patch removes the unnecessary indirection since it
doesn't do what one might expect.
Note that this approach works for multiarch but will
definitely not work once we enable gdb for multiple targets
(of different architectures) at the same time, and my patch
doesn't change this situation.
Thanks,
--
Aleksandar Ristovski
QNX Software Systems
next prev parent reply other threads:[~2009-06-11 20:47 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
2009-06-11 20:40 ` Mark Kettenis
2009-06-11 20:47 ` Aleksandar Ristovski [this message]
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=4A316D52.3010305@qnx.com \
--to=aristovski@qnx.com \
--cc=gdb-patches@sources.redhat.com \
--cc=mark.kettenis@xs4all.nl \
/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