aboutsummaryrefslogtreecommitdiff
path: root/gui/debugger.cpp
AgeCommit message (Collapse)Author
2019-10-03GUI: Add Missing Switch Default CasesD G Turner
These are flagged by GCC if -Wswitch-default is enabled.
2019-09-16DEBUGGER: Fix MSVC WarningD G Turner
This was reported by Henke37 on IRC.
2019-02-03GUI: Flush debugger prompts on text consoleVhati
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.
2018-08-18GUI: Replace use of strdup with Common::StringColin Snover
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-05-20JANITORIAL: Remove trailing whitespaceAdrian Frühwirth
2018-04-30GUI: Make the tab completion case insensitive in the debug consoleBastien Bouclet
It made little sense for the tab-completion to be case sensitive while command execution itself is case insensitive.
2017-09-29GUI: Fix memory leak with empty debugger inputWillem Jan Palenstijn
2017-09-29GUI: Fix crash after empty debugger commandWillem Jan Palenstijn
2017-09-24Merge pull request #1010 from dreammaster/debugger_paramsPaul Gilbert
GUI: Support double quoted debugger parameters
2017-09-08DEBUGGER: Flush stdout after debugger writes with USE_TEXT_CONSOLE_FOR_DEBUGGERColin Snover
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-05GUI: Update comment for strdup callPaul Gilbert
2017-09-04GUI: Add support for double quoted parameters in debuggerPaul Gilbert
2016-08-24JANITORIAL: Remove spaces at the end of the lineAlexander Tkachev
I knew there were some, but I wanted to fix them once, instead of doing it all the time.
2016-04-01DEBUGGER: Drop events when using readline debuggerAlyssa Milburn
This should avoid the readline debugger causing Windows to decide that ScummVM is unresponsive, by dropping incoming events in the idle callback.
2015-08-30DEBUGGER: Add clarifying commentTorbjörn Andersson
2015-08-29DEBUGGER: Add function for printing a StringArray in columnsTorbjörn Andersson
2014-12-28DEBUGGER: Extend the md5 and md5mac commands to handle any chunk lengthFilippos Karapetis
This will be useful in matching the MD5 checksums with what the advanced detector returns
2014-10-31DEBUGGER: Add FIXME comment about file name vs base nameTorbjörn Andersson
2014-09-07DEBUGGER: Let "md5mac" print the MD5 sum of both resource and dataTorbjörn Andersson
2014-09-07DEBUGGER: Changed usage output from "md5mac"Torbjörn Andersson
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-07DEBUGGER: Sort "md5" output, when using wildcards.Torbjörn Andersson
2014-09-01DEBUGGER: Add "md5mac" command to get MD5 sum of Mac resource fork.Torbjörn Andersson
2014-09-01DEBUGGER: Add "md5" command, to get the MD5 sum of entire filesTorbjörn Andersson
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-06-05GUI: Allow any cased version of 'all' to toggle all debug flags.Johannes Schickel
This makes it consistent with our matching rules when enabling other debug flags.
2014-06-05COMMON: Add "all" option to debugflag controls in GUI Debugger.D G Turner
2014-05-27ALL: Make Debugger command function names conform to our guidelines.Johannes Schickel
2014-05-27GUI: Slight naming cleanup in Debugger.Johannes Schickel
2014-05-27ALL: Rename Debugger::DCmd_Register to Debugger::registerCmd.Johannes Schickel
2014-05-27ALL: Rename Debugger::DVar_Register to Debugger::registerVar.Johannes Schickel
2014-05-27ALL: Rename Debugger::DebugPrintf to Debugger::debugPrintf.Johannes Schickel
2014-05-25GUI: Fix compilationWillem Jan Palenstijn
This adds a missing header in the case #ifndef USE_TEXT_CONSOLE_FOR_DEBUGGER
2014-05-15GUI: Add usage for "debuglevel" command output in Debugger base class.D G Turner
2014-05-13GUI: Clarify "debuglevel" command output in Debugger base class.D G Turner
This should make it clear that -1 is used for disable.
2014-05-12GUI: Minor further fixes to "debuglevel" command in Debugger base class.D G Turner
2014-05-10GUI: Add "debuglevel" command to Debugger base class.D G Turner
This allows the debug level to be changed at runtime from the debug console.
2014-02-18GUI: Make GPL headers consistent in themselves.Johannes Schickel
2014-01-02BUILD: Support libedit readline wrapperWillem Jan Palenstijn
This is used in Mac OS X. Thanks to waltervn for pointing this out and testing.
2013-01-26JANITORIAL: Enforce "} // End of namespace" with a single space after }.Johannes Schickel
2012-03-13JANITORIAL: Simply use *x instead of *x.get() on smart pointers.Christoph Mallon
2011-12-05GUI: Add new line to error string in debugger.Johannes Schickel
2011-12-05GUI: Simplify boolean parsing in our debugger.Johannes Schickel
2011-12-05COMMON: Fix stylingFilippos Karapetis
2011-12-05COMMON: Handle boolean types in the debuggerFilippos Karapetis
2011-06-03GUI: Add 'openlog' command to debuggerMax Horn
2011-05-25BUILD: Rename USE_TEXT_CONSOLE -> USE_TEXT_CONSOLE_FOR_DEBUGGERMax Horn
This reduces the similarity in name to the otherwise mostly unrelated DISABLE_TEXT_CONSOLE #define.
2011-05-12GIT: Clean up: Suppress SVN tags, now uselessstrangerke
2011-04-28JANITORIAL: Reduce header dependencies in shared codeOri Avtalion
Some backends may break as I only compiled SDL
2010-12-07DEBUG: Let GUI::Debugger::preEnter and postEnter (un)pause the engineMax Horn
svn-id: r54815
2010-11-04GUI: Fix build with readline enabledWillem Jan Palenstijn
svn-id: r54067
2010-11-01GUI: Rename ConsolDialog methods (v)printf, putcharMax Horn
svn-id: r54006