1
0
Fork 0
Commit graph

3689 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
Peter Veenstra
eb0a3dffc2 Add patch 3461824: Readme fixes by clem
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3778
2012-01-27 19:09:37 +00:00
Peter Veenstra
84b8100dbb Add cmd-q => exit for Mac OS X
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3777
2012-01-27 18:38:49 +00:00
Peter Veenstra
cadeada0ee Fix bug 3477126. Don't put junk chars in the title bar. Mac OS X will crash on it
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3776
2012-01-27 12:00:17 +00:00
Peter Veenstra
0540ecdca5 Copy all fields in copy constructor (wjp and valgrind)
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3775
2012-01-05 12:03:11 +00:00
Peter Veenstra
4907599222 Undo goto:label code. breaks drive switching. Maybe change drive shouldn't be handled in shell:execute
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3774
2012-01-03 17:57:15 +00:00
Peter Veenstra
353ced54c2 Pointers must stay valid till after the png_write_info call. Thanks wjp
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3773
2012-01-03 16:36:27 +00:00
Peter Veenstra
b30d51f8f8 Should make DOSBox usage easier to spot.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3772
2012-01-03 16:21:23 +00:00
Peter Veenstra
8749c42829 Treat : as seperater (for goto:label)
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3771
2012-01-02 11:14:55 +00:00
Peter Veenstra
5062d2f4ad Improve handling of prefix 0xf in the debugger. Thanks ripsaw
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3770
2011-12-28 11:36:44 +00:00
Peter Veenstra
b148583132 Add properties
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3769
2011-12-18 19:23:56 +00:00
Sebastian Strohhäcker
77970d28cd small additions: vga override, lazy fullscreen switching, pci read override
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3768
2011-12-11 17:30:50 +00:00
Peter Veenstra
41d307292b Implement 0x7d. Fixed death by dark shadows (ripsaw)
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3767
2011-12-08 13:08:58 +00:00
Peter Veenstra
1b12a9c1a5 be less restrictive. Hope nothing breaks. Fixes AS2. (peterferrie)
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3766
2011-12-08 13:06:31 +00:00
Peter Veenstra
837396cc21 apply granularity only for stuff reported to the clientmou
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3765
2011-12-08 12:59:51 +00:00
Peter Veenstra
a7af902f2f Even our comments and status messages have less bugs now (jomalin)
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3764
2011-12-08 12:47:04 +00:00
Peter Veenstra
fc1ffcc528 Some typo corrections of the comments. (jomalin)
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3763
2011-11-29 16:45:45 +00:00
Peter Veenstra
fd65f6f897 Typos reported by debian project
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3762
2011-11-27 15:22:00 +00:00
Peter Veenstra
f7ad3ece4e Improve behavior when reaching the end of the buffer. (thanks ripsaw)
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3761
2011-11-23 12:18:58 +00:00
Peter Veenstra
f51d4e5b67 Include stddef for offsetof here as well instead of relying on dos_inc.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3760
2011-11-20 17:33:16 +00:00
Peter Veenstra
5892095301 Include stddef for offsetof here as well instead of relying on dos_inc.h through programs.h.cpu.cpp
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3759
2011-11-20 17:32:09 +00:00
Sebastian Strohhäcker
6f5930ee92 some warning fixes (fear the msvc)
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3758
2011-11-17 23:04:05 +00:00
Peter Veenstra
333da22de6 Add textmode granulity. Fix cursor handling in mode 0 and 1. Fixes DOOM-IT (thanks ripsaw)
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3757
2011-11-12 22:14:51 +00:00
Ralf Grillenberger
421e192559 Consider parity when calculating the duration of a serial frame. E-mail report by MB.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3756
2011-11-05 17:24:01 +00:00
Peter Veenstra
7603b90e45 Some small typos
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3755
2011-11-01 17:00:19 +00:00
Peter Veenstra
2bca1b7ecb Fix compilation on linux. Thank salty
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3754
2011-11-01 16:31:30 +00:00
Peter Veenstra
1a8afec751 Disable sticky keys in fullscreen mode. (pressing shift 5 times gives a menu)
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3753
2011-10-30 15:06:40 +00:00
Sebastian Strohhäcker
eb395f5add small recompiler fixes (missing host fpu usage check; assembler output update) and enhancements
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3752
2011-09-07 18:43:03 +00:00
Peter Veenstra
6dfe1d9dcf Call int 0xe when resetting a disk. Fixes a keydisk workaround algorithm. (thanks ripsaw)
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3751
2011-09-01 12:19:52 +00:00
Peter Veenstra
81085e036e Keep track of last written character instead of previous character in buffer. This allow handling of leading and single newlines.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3750
2011-09-01 12:08:35 +00:00
Peter Veenstra
68a1725e0f Some refinements.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3749
2011-08-31 09:19:59 +00:00
Peter Veenstra
ee982d5754 Use a fixed cycle rate in auto cycles mode when calculating RDTSC. Improves Tie break Tennis 98
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3748
2011-08-30 13:15:36 +00:00
Peter Veenstra
173fb5510e Decode RDTSC as well. Thanks ripsaw.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3747
2011-08-30 13:14:25 +00:00
Peter Veenstra
1b74652bab Update volume for cda mixer changes as well.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3746
2011-08-30 12:29:24 +00:00
Peter Veenstra
d7d6ac1633 Ignore verify with copy. Fixes Grand Prix Unlimited CD installer. Thanks ripsaw and rcblanke
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3745
2011-08-30 08:59:28 +00:00
Peter Veenstra
770732bef7 Fix supersaxxon. Regression from line based updates. Thanks h-a-l-9000
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3744
2011-08-30 08:30:40 +00:00
Peter Veenstra
b40ab65dcb Be friendly for other open source projects: work with WINE style namemangling. Patch 3382938 from Andre_H (modified).
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3743
2011-08-30 07:59:47 +00:00
Peter Veenstra
9df334048f Enchance RESCAN with drive paramater and -All flag
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3742
2011-08-16 10:41:59 +00:00
Peter Veenstra
817651144b Restore old delay.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3741
2011-08-15 17:02:29 +00:00
Peter Veenstra
aad5643403 Keep repeating a pressed key if another key is released. Thanks jazztickets and robertmo
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3740
2011-08-15 12:21:36 +00:00
Peter Veenstra
f7016981a7 Make shift-tab walk through the completion list in reverse order.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3739
2011-08-15 11:29:02 +00:00
Ralf Grillenberger
d3136d14de - fix the socket inheritance feature
- usedtr will now, if the connection was lost in between, attempt to connect again if there is a rising edge on DTR
- code improvements
- handling of some unused handshake lines was changed a bit

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3738
2011-07-30 15:36:56 +00:00
Peter Veenstra
361da0de98 Xor numlock and shift for numpad.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3737
2011-07-29 19:14:33 +00:00
Peter Veenstra
965fccbe81 Rewrite mount without arguments to display volume label as well.
Some refactoring of the code.
Add mount -z X, where X is the new virtual drive for the Wine Team.


Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3736
2011-07-23 20:23:17 +00:00
Ralf Grillenberger
57c2a42210 - Fix for Scuba Venture (PCJR booter)
- Added comments for PCJR and Tandy CRT/Processor page register
- Add documented CRTC 3D0/1 access for PCJR


Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3735
2011-07-23 19:02:01 +00:00
Peter Veenstra
8d7b65e0e0 Some tiny protection against weird values
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3734
2011-07-22 17:53:05 +00:00
Peter Veenstra
b29e06c006 Add patch 3161987 from Jason C. Penney: Add (optional) SoundFont support to midi_coreaudio synth. Added some extra info to dosbox.conf to describe this
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3733
2011-07-21 14:26:16 +00:00
Peter Veenstra
7318abd114 Add patch 3324624 from ano. Some fixes with respect to mixing normal and extended fcbs.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3732
2011-07-21 13:57:59 +00:00
Peter Veenstra
95de46cc95 Let's not copy extended memory when we finish waiting.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3731
2011-07-20 20:50:32 +00:00
Peter Veenstra
21292f48b5 Handle floppies differently in ioctl calls. Makes windows 3.x happy. Thanks ripsaw
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3730
2011-07-16 12:26:37 +00:00