Henrik "Henke37" Andersson
c5bdd7a1f2
GUI: Use PauseToken in Debugger
2020-05-10 23:39:31 +02:00
D G Turner
30c366ee5d
GUI: Add Missing Switch Default Cases
...
These are flagged by GCC if -Wswitch-default is enabled.
2019-10-03 06:03:46 +01:00
D G Turner
cbb5a31715
DEBUGGER: Fix MSVC Warning
...
This was reported by Henke37 on IRC.
2019-09-16 00:39:41 +01:00
Vhati
90f6d119cf
GUI: Flush debugger prompts on text console
...
When built with enable-text-console and disable-readline, flushing output
immediately after printing the debugger prompt, before waiting for input,
ensures that external tools can spawn ScummVM, detect the prompt, and pipe
in automated responses (e.g., expect scripts).
Explicit flushing was necessary at least on Windows, where support for
automating terminal input is less sophisticated. Otherwise, the prompt
string doesn't make it through the pipe, and both the script and ScummVM
get stuck waiting for input.
2019-02-03 22:16:40 +02:00
Colin Snover
b9a649c3e1
GUI: Replace use of strdup with Common::String
...
strdup is a POSIX API, not an ANSI C API. It is not available with
-std=c++11 on newlib-based systems, and VS 2015 will throw errors
unless it is #defined to alias to _strdup or unless deprecation
warnings are turned off (which is not a good idea in general).
Common::String is a safer and potentially faster (due to small
string optimisation) alternative, so prefer it instead.
2018-08-18 16:30:05 +02:00
Adrian Frühwirth
c7f3416daa
JANITORIAL: Remove trailing whitespace
2018-05-20 23:40:20 +02:00
Bastien Bouclet
7382af32be
GUI: Make the tab completion case insensitive in the debug console
...
It made little sense for the tab-completion to be case sensitive while
command execution itself is case insensitive.
2018-04-30 20:31:44 +02:00
Willem Jan Palenstijn
7198dd0596
GUI: Fix memory leak with empty debugger input
2017-09-29 18:15:49 +02:00
Willem Jan Palenstijn
078e3b43be
GUI: Fix crash after empty debugger command
2017-09-29 18:11:10 +02:00
Paul Gilbert
47f6c2e9b9
Merge pull request #1010 from dreammaster/debugger_params
...
GUI: Support double quoted debugger parameters
2017-09-24 12:18:15 -04:00
Colin Snover
b5e801379f
DEBUGGER: Flush stdout after debugger writes with USE_TEXT_CONSOLE_FOR_DEBUGGER
...
stdout may be buffered, in which case debugger messages are
delayed until a newline is written. The same kinds of calls to
OSystem::logMessage are flushed, so this just seems to be a simple
omission on this non-default code branch.
2017-09-08 16:02:32 -05:00
Paul Gilbert
54ec788541
GUI: Update comment for strdup call
2017-09-05 19:35:08 -04:00
Paul Gilbert
67090d3cda
GUI: Add support for double quoted parameters in debugger
2017-09-04 10:04:26 -04:00
Alexander Tkachev
438ba985a4
JANITORIAL: Remove spaces at the end of the line
...
I knew there were some, but I wanted to fix them once, instead of doing
it all the time.
2016-08-24 16:07:55 +06:00
Alyssa Milburn
8aee3cffdc
DEBUGGER: Drop events when using readline debugger
...
This should avoid the readline debugger causing Windows to decide that
ScummVM is unresponsive, by dropping incoming events in the idle callback.
2016-04-01 14:49:25 +02:00
Torbjörn Andersson
3430757bf4
DEBUGGER: Add clarifying comment
2015-08-30 06:49:16 +02:00
Torbjörn Andersson
7f4268dc3d
DEBUGGER: Add function for printing a StringArray in columns
2015-08-29 18:08:52 +02:00
Filippos Karapetis
dd347dec83
DEBUGGER: Extend the md5 and md5mac commands to handle any chunk length
...
This will be useful in matching the MD5 checksums with what the
advanced detector returns
2014-12-28 16:57:00 +02:00
Torbjörn Andersson
6bc36cbdf4
DEBUGGER: Add FIXME comment about file name vs base name
2014-10-31 08:16:33 +01:00
Torbjörn Andersson
14ce84da9a
DEBUGGER: Let "md5mac" print the MD5 sum of both resource and data
2014-09-07 18:50:51 +02:00
Torbjörn Andersson
37aa4c2d59
DEBUGGER: Changed usage output from "md5mac"
...
I don't know of any good way of transforming file names to base
file names, so document that "md5mac" expects the base file name.
Even though it currently will accept MacBinary file names.
2014-09-07 18:30:40 +02:00
Torbjörn Andersson
ce37e489f8
DEBUGGER: Sort "md5" output, when using wildcards.
2014-09-07 18:14:50 +02:00
Torbjörn Andersson
84548847a1
DEBUGGER: Add "md5mac" command to get MD5 sum of Mac resource fork.
2014-09-01 21:19:48 +02:00
Torbjörn Andersson
f1fae53731
DEBUGGER: Add "md5" command, to get the MD5 sum of entire files
...
This may make it easier to ask users for the MD5 sum of a file, in
case we suspect a bug report is caused by damaged files.
2014-09-01 20:24:23 +02:00
Johannes Schickel
10c5547de3
GUI: Allow any cased version of 'all' to toggle all debug flags.
...
This makes it consistent with our matching rules when enabling other debug
flags.
2014-06-05 16:40:42 +02:00
D G Turner
1e6fe10e3d
COMMON: Add "all" option to debugflag controls in GUI Debugger.
2014-06-05 02:18:58 +01:00
Johannes Schickel
30d64edac4
ALL: Make Debugger command function names conform to our guidelines.
2014-05-27 02:04:08 +02:00
Johannes Schickel
07c9fea9cb
GUI: Slight naming cleanup in Debugger.
2014-05-27 02:04:08 +02:00
Johannes Schickel
ae4ffe01f0
ALL: Rename Debugger::DCmd_Register to Debugger::registerCmd.
2014-05-27 02:04:08 +02:00
Johannes Schickel
0adca2c579
ALL: Rename Debugger::DVar_Register to Debugger::registerVar.
2014-05-27 02:04:07 +02:00
Johannes Schickel
daa8d57a86
ALL: Rename Debugger::DebugPrintf to Debugger::debugPrintf.
2014-05-27 02:04:07 +02:00
Willem Jan Palenstijn
6cf5cb939b
GUI: Fix compilation
...
This adds a missing header in the case #ifndef USE_TEXT_CONSOLE_FOR_DEBUGGER
2014-05-25 12:29:13 +02:00
D G Turner
fbb923daee
GUI: Add usage for "debuglevel" command output in Debugger base class.
2014-05-15 01:35:48 +01:00
D G Turner
bac58f3e18
GUI: Clarify "debuglevel" command output in Debugger base class.
...
This should make it clear that -1 is used for disable.
2014-05-13 19:39:47 +01:00
D G Turner
c81d0b680e
GUI: Minor further fixes to "debuglevel" command in Debugger base class.
2014-05-12 00:56:20 +01:00
D G Turner
bc7af1de19
GUI: Add "debuglevel" command to Debugger base class.
...
This allows the debug level to be changed at runtime from the debug
console.
2014-05-10 17:12:14 +01:00
Johannes Schickel
f5dfe6725a
GUI: Make GPL headers consistent in themselves.
2014-02-18 02:39:35 +01:00
Willem Jan Palenstijn
5686d606f0
BUILD: Support libedit readline wrapper
...
This is used in Mac OS X. Thanks to waltervn for pointing this out and
testing.
2014-01-02 01:04:24 +01:00
Johannes Schickel
b4d0a8ba66
JANITORIAL: Enforce "} // End of namespace" with a single space after }.
2013-01-26 19:38:02 +01:00
Christoph Mallon
e40ba4c135
JANITORIAL: Simply use *x instead of *x.get() on smart pointers.
2012-03-13 15:43:59 +01:00
Johannes Schickel
2362a3f689
GUI: Add new line to error string in debugger.
2011-12-05 23:00:34 +01:00
Johannes Schickel
bc0d9bd3a7
GUI: Simplify boolean parsing in our debugger.
2011-12-05 23:00:34 +01:00
Filippos Karapetis
f0fc910d28
COMMON: Fix styling
2011-12-05 21:24:36 +02:00
Filippos Karapetis
411892d848
COMMON: Handle boolean types in the debugger
2011-12-05 20:32:08 +02:00
Max Horn
8b3c36cfad
GUI: Add 'openlog' command to debugger
2011-06-03 13:36:04 +02:00
Max Horn
4b7f6dfa3c
BUILD: Rename USE_TEXT_CONSOLE -> USE_TEXT_CONSOLE_FOR_DEBUGGER
...
This reduces the similarity in name to the otherwise mostly
unrelated DISABLE_TEXT_CONSOLE #define.
2011-05-25 13:24:37 +02:00
strangerke
69b1485a22
GIT: Clean up: Suppress SVN tags, now useless
2011-05-12 01:16:22 +02:00
Ori Avtalion
9414d7a6e2
JANITORIAL: Reduce header dependencies in shared code
...
Some backends may break as I only compiled SDL
2011-04-28 15:08:58 +03:00
Max Horn
6edc86a19b
DEBUG: Let GUI::Debugger::preEnter and postEnter (un)pause the engine
...
svn-id: r54815
2010-12-07 18:54:21 +00:00
Willem Jan Palenstijn
92841e9832
GUI: Fix build with readline enabled
...
svn-id: r54067
2010-11-04 16:09:20 +00:00