From: Jan Kratochvil <jan.kratochvil@redhat.com>
To: Pedro Alves <pedro@codesourcery.com>
Cc: gdb-patches@sourceware.org
Subject: [patch] gdbserver: enum target_signal vs. int host_signal [Re: [patch] enum target_signal vs. int host_signal]
Date: Sun, 25 Jul 2010 09:33:00 -0000 [thread overview]
Message-ID: <20100725093334.GA25366@host1.dyn.jankratochvil.net> (raw)
In-Reply-To: <201007242344.39745.pedro@codesourcery.com>
On Sun, 25 Jul 2010 00:44:39 +0200, Pedro Alves wrote:
> Currently, host signal.
Therefore OK to check-in?
> And win32-low.c uses TARGET_SIGNAL_0 when it shouldn't.
I haven't fixed this common kind of bug in this pre-patchset as
TARGET_SIGNAL_0 == 0 so there is no functionality bug.
> > gdb/
> > 2010-07-24 Jan Kratochvil <jan.kratochvil@redhat.com>
> >
> > * linux-nat.c (linux_nat_do_thread_registers): Convert STOP_SIGNAL to
> > the host signal first.
>
> Okay.
Checked-in:
http://sourceware.org/ml/gdb-cvs/2010-07/msg00144.html
Thanks,
Jan
gdb/gdbserver/
2010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
* server.c (handle_target_event): Use target_signal_to_host for
resume_info.sig initialization.
* target.h (struct thread_resume) <sig>: New comment.
--- a/gdb/gdbserver/server.c
+++ b/gdb/gdbserver/server.c
@@ -3147,7 +3147,7 @@ handle_target_event (int err, gdb_client_data client_data)
resume_info.thread = last_ptid;
resume_info.kind = resume_continue;
- resume_info.sig = last_status.value.sig;
+ resume_info.sig = target_signal_to_host (last_status.value.sig);
(*the_target->resume) (&resume_info, 1);
}
else if (debug_threads)
--- a/gdb/gdbserver/target.h
+++ b/gdb/gdbserver/target.h
@@ -53,7 +53,8 @@ struct thread_resume
/* If non-zero, send this signal when we resume, or to stop the
thread. If stopping a thread, and this is 0, the target should
stop the thread however it best decides to (e.g., SIGSTOP on
- linux; SuspendThread on win32). */
+ linux; SuspendThread on win32). This is a host signal value (not
+ enum target_signal). */
int sig;
};
next prev parent reply other threads:[~2010-07-25 9:33 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-24 11:42 [patch] enum target_signal vs. int host_signal Jan Kratochvil
2010-07-24 22:44 ` Pedro Alves
2010-07-25 9:33 ` Jan Kratochvil [this message]
2010-07-25 10:05 ` [patch] gdbserver: enum target_signal vs. int host_signal [Re: [patch] enum target_signal vs. int host_signal] Pedro Alves
2010-07-25 10:17 ` Jan Kratochvil
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=20100725093334.GA25366@host1.dyn.jankratochvil.net \
--to=jan.kratochvil@redhat.com \
--cc=gdb-patches@sourceware.org \
--cc=pedro@codesourcery.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).