Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: George Anzinger <george@mvista.com>
To: Andrew Cagney <cagney@gnu.org>
Cc: Daniel Jacobowitz <drow@mvista.com>,
	"Amit S. Kale" <amitkale@emsyssoft.com>,
	gdb@sources.redhat.com, kgdb-bugreport@lists.sourceforge.net
Subject: Re: qL and qf remote packets [Re: [Kgdb-bugreport] Re: [discuss] kgdb-x86_64-1.6 for kernel 2.4.23]
Date: Fri, 30 Jan 2004 01:18:00 -0000	[thread overview]
Message-ID: <4019B0B2.2090609@mvista.com> (raw)
In-Reply-To: <3FF322B6.30603@gnu.org>

Andrew Cagney wrote:
>> On Tue, Dec 30, 2003 at 06:11:29PM +0530, Amit S. Kale wrote:
>>
>>> While q[s/f] packet itself doesn't have pid wrap-around problem, I 
>>> can't figure out what will happen to gdb's database of threads in 
>>> following scenario.
>>>
>>> 1. GDB adds a thread with id 1500 to thread database.
>>> 2. It finds that the thread has died later.
>>> 3. Does it delete the thread from its database?
>>> 4. It again finds a thread with id 1500 becase of wrapping around of 
>>> pid. If it has completely forgotten about previous thread in its 
>>> dabase, there shouldn't be any problem.
>>
>>
>>
>> Indeed, there won't be any problem.  I believe that even if thread 1500
>> exists, and then dies and restarts between breakpoints, GDB still won't
>> get confused.
> 
> 
> The user might (eventually).  They aren't going to be notified of thread 
> create/delete events.  Also, it could leave around per-thread 
> breakpoings no longer applicable to that thread.

I think this might be more of a problem in user land.  In the kernel, first it 
is rare to reuse a pid, but still, if it is reused, it is expected.  To help the 
user we also use the thread info command to insert the tasks name in the info 
thread command.


-- 
George Anzinger   george@mvista.com
High-res-timers:  http://sourceforge.net/projects/high-res-timers/
Preemption patch: http://www.kernel.org/pub/linux/kernel/people/rml


  reply	other threads:[~2004-01-30  1:18 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <200312261743.38980.amitkale@emsyssoft.com>
     [not found] ` <200312292009.11853.amitkale@emsyssoft.com>
     [not found]   ` <3FF05F54.5050702@mvista.com>
2003-12-30  4:08     ` Amit S. Kale
2003-12-30  4:19       ` Daniel Jacobowitz
2003-12-30 13:22         ` Amit S. Kale
2003-12-30 15:28           ` Daniel Jacobowitz
2003-12-31 19:25             ` Andrew Cagney
2004-01-30  1:18               ` George Anzinger [this message]
2004-02-06 18:09                 ` Andrew Cagney
2004-01-30  1:21               ` 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=4019B0B2.2090609@mvista.com \
    --to=george@mvista.com \
    --cc=amitkale@emsyssoft.com \
    --cc=cagney@gnu.org \
    --cc=drow@mvista.com \
    --cc=gdb@sources.redhat.com \
    --cc=kgdb-bugreport@lists.sourceforge.net \
    /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