[patch] gdbserver fails on 32-bit ppc rfs running in a-64 bit 2.6 linux kernel

Mark Kettenis mark.kettenis@xs4all.nl
Tue Mar 22 18:49:00 GMT 2005


   From: Jitendra Pawar <jitendra@linsyssoft.com>
   Date: Tue, 22 Mar 2005 19:35:24 +0530

   > > >On Tue, Mar 15, 2005 at 06:36:22PM +0530, Amit S. Kale wrote:
   > > >> The strtoul change in my patch was already present. Sorry about that.
   > > >> 
   > > >> You have changed the data type of thread_resume::thread as well as cont_thread 
   > > >> to unsigned long. "cont_thread = -1" and "(cont_thread > 0)" are still in 
   > > >> place. How does this work?

   There are about 15 files in gdb source have statement pid_to_ptid (-1);
   which finally returns -1 to server. Is it OK to replace  -1 with 0 ?

Certainly not.  pid_to_ptid(-1), a.k.a. minus_one_ptid has a very
special meaning within gdb.  See the comment in inferior.h.

Mark



More information about the Gdb-patches mailing list