From: Daniel Jacobowitz <drow@false.org>
To: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Cc: gdb@sources.redhat.com
Subject: Re: Thread ID in gdbserver
Date: Mon, 06 Jun 2005 13:46:00 -0000 [thread overview]
Message-ID: <20050606132101.GA26360@nevyn.them.org> (raw)
In-Reply-To: <20050606.142517.51862870.nemoto@toshiba-tops.co.jp>
On Mon, Jun 06, 2005 at 02:25:17PM +0900, Atsushi Nemoto wrote:
> Hi. In Mar 2005, the type of cont_thread, stop_thread, etc. was
> changed to "unsigned long" from "int". But there are still some codes
> which assume these variables are signed numbers.
>
> For example, in gdbserver/server.c:
>
> unsigned long cont_thread;
> ...
> if (n == 1 && resume_info[0].thread != -1)
> cont_thread = resume_info[0].thread;
> else
> cont_thread = -1;
> ...
> if (step || sig || cont_thread > 0)
>
> This looks very suspicious.
>
> For now I do not know whether this is real problem, but it is
> potential bug and should be fixed, isn't it?
Absolutely. I have a bunch of saved mail in my todo list reminding me
to fix these, but I haven't yet. With a modern GDB using vCont, most
of these bugs are not encountered; I didn't do a detailed analysis of
the others to see if they'd cause problems, it would be easier to fix
them.
--
Daniel Jacobowitz
CodeSourcery, LLC
prev parent reply other threads:[~2005-06-06 13:46 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-06-06 5:25 Atsushi Nemoto
2005-06-06 13:46 ` Daniel Jacobowitz [this message]
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=20050606132101.GA26360@nevyn.them.org \
--to=drow@false.org \
--cc=anemo@mba.ocn.ne.jp \
--cc=gdb@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