This software has been compiled with the m68k-atari-mintelf cross-tools.
Original links | |
Homepage: | https://sourceware.org/gdb/ |
Original download: | https://ftp.gnu.org/gnu/gdb/ |
Patch repository: | https://github.com/vinriviere/m68k-atari-mint-binutils-gdb/tree/gdb-14-mintelf |
Sources | |
Original sources: | gdb-14.1.tar.xz (22 MB) |
MiNT ELF patch: | gdb-14.1-mintelf-20240206.patch.xz (18 KB) |
68000 binaries for MiNT | |
68000 binary: | gdb-14.1-mintelf-20240206-bin-mintelf-20240206.tar.xz (3 MB) |
68000 build script: | gdb-14.1-mintelf-20240206-bin-mintelf-howto.txt (1.6 KB) |
ColdFire binaries for MiNT | |
ColdFire binary: | gdb-14.1-mintelf-20240206-bin-mintelfv4e-20240206.tar.xz (3 MB) |
ColdFire build script: | gdb-14.1-mintelf-20240206-bin-mintelfv4e-howto.txt (1.6 KB) |
This GDB binary has been carefully tested, and works well.
However, there are serious bugs in the following environments,
which cause GDB to be unusable:
Note: gdbserver is not yet available. But it may come some day.
gdb
on your MiNT machine.gdb
from /usr/bin
, and put it anywhere.
It is a standalone program.
-g
option (both for compilation and linking).
This will embed very precise DWARF debugging information into your executable,
suitable for GDB.
m68k-atari-mintelf-gcc hello.c -o hello.tos -g
gdb
followed by the name of your executable. Do not add any command-line argument.
gdb hello.tosIf everything is OK, the last line should be:
Reading symbols from hello.tos...
main
function.b main
run
command.
You may add extra command-line arguments after run
.
run
# Display a single variable print argc p argc # Display all function arguments info args # Display all local variables info locals # Display all the information about the current frame bt full # Trick to display all the command-line arguments p *argv@argc # Clear the screen ^L
list
disas /s
# Step into the next instruction. This enters functions. # Note: Debugging information is required in order to allow stepping into a function. # For example, if your libc hasn't been compiled with -g, you won't be able to step into printf(). step s # Step over the next instruction. This executes functions, and automatically breaks just after. next n # Manually put a breakpoint somewhere else. And continue. b myfunction cont # Continue until the end of the current function finish
run
exit ^D
Ctrl+X then A
while already inside GDB,--tui
command-line option.s
, n
and cont
commands as usual.printf()
, the TUI screen will be trashed.^L
to redraw the screen.