1
0
Fork 0
Commit graph

15 commits

Author SHA1 Message Date
diaxen
cf4685e7aa Add gdb server to debugger
Here is a patch which allows using the GNU debugger as an alternative to
the DOSBox built-in debugger. The built-in debugger may be more
convenient to show x86 specific information about execution state,
whereas Gdb is useful for C and C++ source level debugging.

This patch applies against svn revision 3761. Once applied the configure
script can be used with a new option:

./autogen.sh
./configure --enable-debug=gdbserver

DOSBox then listen on TCP port 1234 and a Gdb client compiled for x86_64
or i686 targets can be connected:

$ gdb
(gdb) target remote localhost:1234

The gdb architecture must be set depending on the code your are trying
to disassemble (16 or 32 bits), for instance:

(gdb) set architecture i8086
(gdb) x/32i $eip

Breakpoints and watchpoints are supported and some DOSBox specific
features are available through the gdb "monitor" command.

This patch adds the following files:
- src/debug/gdb_server.cpp file
- src/debug/debug_log.cpp
- src/debug/debug_helpers.cpp

The debug.cpp file has been split in 3 files so that the original file
now contains built-in debugger stuff only and
debug_log.cpp/debug_helpers.cpp files contain common code used by both
built-in and Gdb debuggers. Some variables which were previously local
to debug.cpp have been prefixed by DEBUG_ and debug.h has been updated
accordingly.

Tested under GNU/Linux.

Co-authored-by: ykhwong
Imported-from: https://www.vogons.org/viewtopic.php?p=259378#p259378
2020-05-11 17:59:02 -04:00
Sebastian Strohhäcker
6bc4e41458 add PCI framework
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3723
2011-06-18 13:39:31 +00:00
Peter Veenstra
999f33de27 Update year. Remove CVS tags
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3700
2011-04-26 09:34:55 +00:00
Peter Veenstra
415a6641c0 Fix non-debug mode
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3347
2009-04-17 11:33:51 +00:00
Peter Veenstra
e08ea925b7 pedantic warnings.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3209
2008-08-24 16:43:06 +00:00
Peter Veenstra
d7294c6314 rename LOG_DMA to LOG_DMACONTROL to remove nameclash with soundblaster dma.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3128
2008-03-19 08:41:45 +00:00
Peter Veenstra
fc25306a9b Add %c %X %s.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2979
2007-08-21 20:20:58 +00:00
Peter Veenstra
132bbffb68 Add part of patch 1235377 of msharov and fix a few small bugs in the return values of the cpu cores
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2593
2006-04-11 19:02:33 +00:00
Peter Veenstra
e80222f29b New include system + Removed stddef.h from dosbox.h , added it to core_dyn_x86.cpp
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2135
2005-03-24 10:11:18 +00:00
Peter Veenstra
d17551ad8c added 4 and 5 parameters
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2091
2004-12-28 15:58:49 +00:00
Sjoerd van der Berg
2174ca5c3b LOG_PAGING target.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1111
2003-07-14 08:13:26 +00:00
Sjoerd van der Berg
a8a7d4ed98 Update logging with some new targets for better compling without debugging
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1099
2003-07-08 17:11:04 +00:00
Peter Veenstra
f64cceafdf added const to some char* and some other changes to get it compiling under gcc
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1007
2003-05-11 19:51:31 +00:00
Sjoerd van der Berg
830a9f81e9 New logging target LOG_IO
Changed handling of logging without C_DEBUG


Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@993
2003-05-06 07:31:38 +00:00
Peter Veenstra
a336b5d7cc added logging.h
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@986
2003-05-04 19:09:16 +00:00