This is the mail archive of the
mailing list for the GDB project.
Re: How do you use GDB to debug GDB
- To: Stephen Smith <ischis2 at home dot com>
- Subject: Re: How do you use GDB to debug GDB
- From: Fernando Nasser <fnasser at cygnus dot com>
- Date: Mon, 19 Mar 2001 15:55:41 -0500
- CC: GDB <gdb at sourceware dot cygnus dot com>
- Organization: Red Hat , Inc. - Toronto
- References: <3AB66BE3.D45096D0@home.com>
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
Red Hat - Toronto E-Mail: firstname.lastname@example.org
2323 Yonge Street, Suite #300
Toronto, Ontario M4P 2C9