This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [commit/RFA] Avoid switch to invalid ptid during Ada task switch.


On Sun,  7 Mar 2010 19:25:29 +0400
Joel Brobecker <brobecker@adacore.com> wrote:

> When this happens, it's just nicer for the user to print an error
> message, and cancel the task switch. After this patch is applied,
> this is what we get:
> 
>     (gdb) task 1
>     [New Thread 10250]
>     Unable to compute thread ID for task 1.
>     Cannot switch to this task.
> 
> What do you guys think?  Is the wording OK?

I think that the wording that you added is fine, though I find it
confusing to see that there's a new thread, [New Thread 10250], but
that GDB is unable to switch to it.  I think it might be less
confusing if the [New Thread...] message did not appear at all.  I'm
guessing though that suppressing that message would not be easy, and
probably not worthwhile, especially for a case that's not supposed to
happen.

Kevin


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]