1. Using gdb to debug...
|> Could someone give me a quick "tutorial" on using gdb to debug programs
|> under MiNT? And possibly point me in the direction of some gdb
|> documentation (I don't really want to have to ftp > 3M of tar.gz source
|> code from prep.ai.mit.edu)?
In the binary distribution (gdb36p4b.zoo), there is a file gdb.info, a
plain text file (with some control character), which is the infoized
version of gdb.texi. There are no ST specific descriptions inside, but
the only real difference between the Unix and the ST version is that
on the ST gdb cannot read the symbol table from the executable, but
uses a separate file made with sym-ld.
|> I'm working under MiNT 1.09, using GCC 2.4.5, MiNTlibs pl ~41, and I've
|> got the MiNT port of gdb...
|> Will I be able to run the program in one TOSWIN window and run gdb on it
|> in another one? It's a curses application (well, ok, it's a port of the
|> Angband 2.5.3 beta code) so I don't want to run it all in one window.
Yes, you can use the attach command to debug any process after telling
gdb which are the exec and symbol files. The only tricky part is to
attach to the process before it crashes...
|> The port is experiencing some problems; at this point, I just want
|> something like a function call dump when the app crashes. I'm getting
|> BUS ERRORs at a certain point, after another bug surfaces, and I think
|> the function call trace might help... what I'm hoping gdb will be able
|> to give me is something like this:
|> BUS ERROR
|> Those *mains would be in whatever order they're called in...
Use the backtrace command (can be abbrevated to bt).
|> Am I hoping for too much in gdb? I'm building with no optimisation, and
|> -g... do I need to do anything else to use gdb on the app?
You can also use -O, but *not* -fomit-frame-pointer. Make sure that
the symbol file is linked the same way as the exec file, e.g. by using
gcc -B/gnu/bin/sym- -o foo.sym $(objs)
^^^^^^^^ substitute the path to sym-ld here
in the Makefile.
Andreas Schwab "And now for something
2. searching for FTP client that supports "STR O VMS"
3. GDB and debugging C++ programs
4. DECnet-VAX extension for VMS V5.5
5. Debugging Sozobon C Programs
6. Where are the passwords?
7. Debugging C++ programs **HELP!!!**
8. Mailing List
9. VT100 terminal emulator uses XEP80!
10. Anyone program something that uses 2600 driving controllers?
11. Saftware to run 8 bit programs on a PC using Xformer 3.0a
12. Using basic programs with say... XL-it?
13. Using Atari Programs from the net on a Real Atari