From mboxrd@z Thu Jan 1 00:00:00 1970 From: jtc@redback.com (J.T. Conklin) 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: <5mlmq1mq24.fsf@jtc.redback.com> References: <3AB66BE3.D45096D0@home.com> X-SW-Source: 2001-03/msg00172.html >>>>> "Stephen" == Stephen Smith writes: Stephen> I have a gdb debugger configured to for a remote target (host Stephen> i686-pc-cygwin target=powerpc-motorola-elf). normally I run Stephen> gdb as: Stephen> Stephen> powerpc-motorola-elf-gdb --command=C:/rti/bin/rtidbug.ini C:/examples/dll/main.exe Stephen> Stephen> Now I want to run the gdb against the above process. On a UNIX system, you would first start a native GDB, and then use it to run and debug the child GDB. $ gdb /usr/local/bin/powerpc-motorola-elf-gdb GDB is free software and you are ... (gdb) At this point, I typically install breakpoints where I think there the problem lies. The .gdbinit file distributed with GDB sets breakpoints and sets directory paths, etc.; thus creating an initial environment that are likely to be useful debugging GDB. Then run your child GDB. (gdb) run --command=C:/rti/bin/rtidbug.ini C:/examples/dll/main.exe I don't have experience with NT to know whether this will work there. --jtc -- J.T. Conklin RedBack Networks