From: Andrew Cagney <ac131313@cygnus.com>
To: Daniel Jacobowitz <drow@mvista.com>
Cc: gdb-patches@sources.redhat.com
Subject: Re: [rfa] Always define all of TARGET_SIGNAL_*
Date: Mon, 11 Mar 2002 20:01:00 -0000 [thread overview]
Message-ID: <3C8D7D78.10805@cygnus.com> (raw)
In-Reply-To: <20020311214925.C462@nevyn.them.org>
> On Mon, Mar 11, 2002 at 09:32:56PM -0500, Andrew Cagney wrote:
>
>>
>
>> >Now that we've got a "gdb/signals.h", there's a place to fix this
>> >properly in the trunk. How does this patch look?
>
>>
>> Can I suggest sitting on this until after 5.2 is out! If the change is
>> put on hold, then it will be easier to refresh the branch gdbserver from
>> the trunk.
>>
>> The addition of things like a src/include/gdb/ directory to the branch
>> shouldn't be an issue provided GDB proper doesn't try (get modified) to
>> use it.
>
>
> I think you're thinking of my other pending signals patch? This is the
> one that has nothing to do with gdbserver, and I was just waiting for
> the branch to be cut. If you'd rather I just hold it a bit longer
> that's fine by me, though.
I'm thinking of the net effect pulling both this patch and the other
pending signal patch onto the 5.1 would have. (I'm not sure if you ment
this or that I was confusing this patch with the other pending patches :-)
Changing this enum scares me!
--
Anyway, looking at the change:
> -#if defined(MACH) || defined(__MACH__)
> /* Mach exceptions */
> TARGET_EXC_BAD_ACCESS,
> TARGET_EXC_BAD_INSTRUCTION,
> @@ -216,7 +216,7 @@ enum target_signal
> TARGET_EXC_EMULATION,
> TARGET_EXC_SOFTWARE,
> TARGET_EXC_BREAKPOINT,
> -#endif
> +
> TARGET_SIGNAL_INFO,
I think the code formally wrapped in #if should be moved to after
TARGET_SIGNAL_INFO.
Try sketching out all the possible combinations of mach X host X target
X mach (I got confused after two but a guess is 8). I think you find
that either we scramble (fix and break) some of the mach cases xor we
break everything else.
Hmm, no wonder that enum scares me :-)
enjoy,
Andrew
--
Ex: Hardwired remote target built for GNU/Linux but with signals
numbered to include the MACH values. It only works with a MACH host. GDB.
next prev parent reply other threads:[~2002-03-12 4:01 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-02-27 19:11 Daniel Jacobowitz
2002-02-28 6:57 ` Andrew Cagney
2002-02-28 8:51 ` Daniel Jacobowitz
2002-02-28 9:17 ` Andrew Cagney
2002-02-28 9:44 ` Daniel Jacobowitz
2002-03-10 16:20 ` Daniel Jacobowitz
2002-03-11 18:33 ` Andrew Cagney
2002-03-11 18:49 ` Daniel Jacobowitz
2002-03-11 20:01 ` Andrew Cagney [this message]
2002-03-16 18:27 ` Daniel Jacobowitz
2002-03-16 18:38 ` Andrew Cagney
2002-05-09 15:22 ` Daniel Jacobowitz
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=3C8D7D78.10805@cygnus.com \
--to=ac131313@cygnus.com \
--cc=drow@mvista.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