I have successfully used gdb in cross-debugging mode, but not on a PPC.
For the ARM, I did the following:

[on target machine "Target"]
server 2345 myApp.Stripped arg1 arg2 ..

[on cross-devel. machine]
arm-linux-gnu-gdb myApp.WithSymbolicInfo
   target remote Target:2345
   [set some breakpoints]
   continue

It handled multi-threaded apps as well (or, at least as well as gdb
handles any regular multithreaded app.). Note that you can
run a stripped version on the target - saves RAM, download time
etc.

If there are specific signals you don't want gdb to handle, look
up the "handle" command in gdb. There ARE limitations -
some of them stem from the rather strange way Linux implements
threads, some of them are gdb bugs - for instance, see
 
http://groups.google.com/groups?hl=ru&lr=&ie=UTF8&oe=UTF8&threadm=linux.kernel.s3ilmtka14t.fsf%40debye.wins.uva.nl&rnum=8&prev=/groups%3Fq%3Dgdb%2Bthreads%2Bzombie%26hl%3Dru%26lr%3D%26ie%3DUTF8%26oe%3DUTF8%26selm%3Dlinux.kernel.s3ilmtka14t.fsf%2540debye.wins.uva.nl%26rnum%3D8

- but usually you can work round them. Good Luck!



> From: Michael Sternberg
> Subject: Debugger for PPC
> Date: Sun, 30 Jun 2002 13:23:17 +0200
>
> This message is in MIME format. Since your mail reader does not understand
> this format, some or all of this message may not be legible.
>
> ------_=_NextPart_001_01C22028.87F2C450
> Content-Type: text/plain;
>         charset="windows-1252"
>
>
> My environment is PPC running Linux.
> What debugger you can recommend (both GNU and commercial SW) ?
>
> I tried to set up gdb with gdb server running on remote computer
> (actually on Pentium) and could not debug multithreaded applications.
> It says "Real time signal catched" or something like and quits..
>
>                                         Thanx, Michael.
>
> P.S. Haifa ppl sorry for cross-posting.
>

--
---------------------------------------------------------------------
Jeremy Hoyland                      <[EMAIL PROTECTED]>
Sun Microsystems                    Java Partner Engineering



=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to