How to Do a Custom Build Action and Attach Using Custom GDB Build with Eclipse [message #729376] |
Mon, 26 September 2011 00:05 |
Eclipse User |
|
|
|
Hi,
I'm using Cygwin on Windows to write stuff for a MIPS emulator, and using a project-specific version of GDB and GCC, that I don't really have control over.
In order to build, I do the following from Cygwin:
(starting from ~/cs350/os161/os161-1.11/kern/conf)
./config ASST0
cd ../compile/ASST0
make depend
make
make install
which calls the Cygwin version of make, which in turn calls the project-specific version of GCC. The internal build process is long, convoluted and not really something I have control over, or can change.
Then in order to get the emulator (which doesn't really change) to get ready to boot the kernel (which we just compiled) in debug mode I just call,
cd ~/cs350-os161/root
sys161 -w kernel
and then in order to attach to it using the custom version of GDB, in a *separate cygwin instance* I do the following:
cd ~/cs350-os161/root
cs350-gdb kernel
dir ../os161-1.11/kern/compile/ASST0
target remote unix:.sockets/gdb
Now as far as I can tell this version of GDB has the same text interface as the normal GDB. What I would love is if when running under debug configuration for Eclipse, it could compile + start the emulator for debugging using the above commands (probably best if they're run in the Cygwin Bash Shell), then connect the custom version of GDB (as in the script above) and provide a graphical wrapper around it.
I'm comfortable using Bash, and I used to use Eclipse a lot for Java development, but I've never had to configure my own toolchain for it and I'm completely lost as to what to do. Can someone help me out? Any help would be appreciated!
|
|
|
Powered by
FUDForum. Page generated in 0.05588 seconds