From mboxrd@z Thu Jan 1 00:00:00 1970 From: Fernando Nasser To: Stephen Smith Cc: GDB Subject: Re: How do you use GDB to debug GDB Date: Wed, 21 Mar 2001 15:59:00 -0000 Message-id: <3AB6724D.19D8A981@cygnus.com> References: <3AB66BE3.D45096D0@home.com> X-SW-Source: 2001-03/msg00171.html Stephen Smith wrote: > > I have a gdb debugger configured to for a remote target (host i686-pc-cygwin target=powerpc-motorola-elf). normally I > run gdb as: > > powerpc-motorola-elf-gdb --command=C:/rti/bin/rtidbug.ini C:/examples/dll/main.exe > > Now I want to run the gdb against the above process. Since I am running this in a Windows NT command shell I can't use > gdb /usr/local/bin/powerpc-motorola-elf-gdb some_process_id > > Can someone help > Use the "ps -l" command. It will give you the Windows PID in addition to the Unix (Cygwin) one. Start your "top" gdb in a separate shell. Use the command attach passing the Windows PID (as opposed to the Unix PID) of the other GDB. You are now debugging your powerpc-motorola-elf-gdb Good luck. -- Fernando Nasser Red Hat - Toronto E-Mail: fnasser@redhat.com 2323 Yonge Street, Suite #300 Toronto, Ontario M4P 2C9