aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/engine/scriptdebug.cpp
AgeCommit message (Collapse)Author
2016-03-25SCI: Introduce accessors for SegmentObjTable entries.Johannes Schickel
This makes code not use _table directly whenever possible. An exception is the save game code which is not easy to adapt due to design deficiencies.
2016-03-01SCI: Use uint32 instead of unsigned intFilippos Karapetis
2014-05-27ALL: Rename Debugger::DebugPrintf to Debugger::debugPrintf.Johannes Schickel
2014-02-18SCI: Make GPL headers consistent in themselves.Johannes Schickel
2014-01-27SCI: fix null pointer access in logKernelCallMartin Kiewitz
method was/is used for debugging only CID 1003612
2013-02-23ALL: Fix typo (existant->existent)Willem Jan Palenstijn
2012-10-06SCI: Fix dissect_script crash with invalid object typesWillem Jan Palenstijn
2012-10-06SCI: Fix some console output formattingWillem Jan Palenstijn
2012-06-23SCI: Change the program counter (PC) to be a 32-bit variableFilippos Karapetis
This is needed for future support of large SCI3 scripts. The program counter is isolated and does not interfere with other parts of the VM, plus it does not get stored in saved games, so it's pretty straightforward to convert
2012-06-23SCI: Add support for the debug opcode "file" in our script dissassemblerFilippos Karapetis
Also set the correct name for the debug opcode "line"
2012-06-21SCI: Fix warningsFilippos Karapetis
2012-06-18SCI: Store script sizes in 32-bit integersFilippos Karapetis
Since scripts can be larger than 64KB, and getBufSize() returns a 32-bit integer, adapt variables that store script sizes accordingly
2012-06-18SCI: Add setter/getter methods to reg_t'sFilippos Karapetis
No functionality change has been made with this commit. This avoids setting and getting the reg_t members directly, and is the basis of any future work on large SCI3 scripts (larger than 64KB)
2012-02-15JANITORIAL: Fix missing whitespace in pointer castTarek Soliman
find -name '*.h' -or -name '*.cpp' | xargs sed -r -i 's@\(([A-Za-z0-9]+)\*\)@(\1 *)@g' This seems to have caught some params as well which is not undesirable IMO. It also caught some strings containing this which is undesirable so I excluded them manually. (engines/sci/engine/kernel_tables.h)
2011-11-29SCI: Fix restarting SCI engine with different SCI versionWillem Jan Palenstijn
2011-11-28SCI: Added handling of invalid jump offsets (e.g. QFG2, script 260)Filippos Karapetis
2011-09-22SCI: Fixed compilation with VM_DEBUG_SEND definedFilippos Karapetis
2011-06-20ALL: Remove trailing whitespacesMax Horn
This tries to make our code a bit more compliant with our code formatting conventions. For future use, this is the command I used: git ls-files "*.cpp" "*.h" | xargs sed -i -e 's/[ \t]*$//'
2011-06-12SCI: Fix sign in disasm of relative jumpsWillem Jan Palenstijn
2011-05-13SCI: Don't include several debug tables when REDUCE_MEMORY_USAGE is definedmd5
2011-05-12GIT: Clean up: Suppress SVN tags, now uselessstrangerke
2011-03-28SCI: Renamed restAdjust to r_rest (like r_acc and r_prev)md5
2011-03-27SCI: Moved some debug functions from vm.cpp to scriptdebug.cppmd5
2011-03-12SCI: Continue disasm until no jumps go past the current opcodeWillem Jan Palenstijn
This should ensure disasm will disassemble an entire function, and not stop at an intermediate ret opcode.
2011-01-23SCI: Fixed possible use of uninitialized variable in SCI Script Debugger.David Turner
svn-id: r55487
2010-11-24SCI: Fixed a bug in the script disassemblerFilippos Karapetis
svn-id: r54463
2010-11-18SCI: Slight formatting fix and use \t instead of a tab character in debugN.Johannes Schickel
svn-id: r54349
2010-11-18SCI: Fix debugger disassembly of property accesses in SCI3Lars Skovlund
svn-id: r54348
2010-11-17SCI: Updated dissectScript() to handle synonym blocksFilippos Karapetis
svn-id: r54277
2010-11-17SCI: Unified the functionality and parameters of the disasm and disasm_addr ↵Filippos Karapetis
commands svn-id: r54276
2010-11-17SCI: Added the ability to display original script bytecode in the "disasm" ↵Filippos Karapetis
console command svn-id: r54275
2010-11-02SCI: Remove any use of printfMax Horn
svn-id: r54037
2010-07-24SCI: fix warning and remove duplicate codeMartin Kiewitz
svn-id: r51243
2010-07-17SCI: fix debugging code of parser, add 0xffe special group into debug supportMartin Kiewitz
svn-id: r50956
2010-07-12SCI: Turn global object g_debugState into SciEngine member varMax Horn
svn-id: r50836
2010-06-28SCI: Make Script member vars private; add const qualifiersMax Horn
Only three Script members remain public (for now) svn-id: r50428
2010-06-27Cleanup, remove unused/obsolete codeFilippos Karapetis
svn-id: r50403
2010-06-27SCI: added new command "p" / "stepover" to execute one command, but skip ↵Martin Kiewitz
send/calls processing. single-step is now "trace" (alias "s" and "t"), stepping till ret is "step_ret" (alias "pret"), removed unused kDebugSeek svn-id: r50388
2010-06-17SCI: Remove selector_name function, some cleanupMax Horn
svn-id: r49966
2010-06-10Resolved a FIXME with getSciLanguage(), by creating a separate setter. Also, ↵Filippos Karapetis
some camelCase changes svn-id: r49568
2010-06-09Merged restAdjust and restAdjustCur, as we don't save the restAdjust ↵Filippos Karapetis
modifier inside saved games (rightfully so). Also, the segment manager is now reset inside the main loop, when the game is restarted, not in game_exit() svn-id: r49533
2010-06-07Fixed regression from commit #49465 - there are in fact two restAdjust ↵Filippos Karapetis
variables, the current and global one svn-id: r49486
2010-06-06Now that EngineState is not deleted when loading games, we can move some ↵Filippos Karapetis
more state-related variables to it, and remove several FIXME's about non-const global variables. Also, the entries in the data stack are now deleted when loading (fixes a memory leak - thanks to digitall for this). svn-id: r49465
2010-05-30Limit access to the _bufSize, _scriptSize and _heapSize members of the ↵Filippos Karapetis
Script class svn-id: r49327
2010-05-29Mass renaming of selector-related functions, and removed some defines which ↵Filippos Karapetis
were just cloaking functions with a different name - GET_SEL32 -> readSelector - GET_SEL32V -> readSelectorValue - PUT_SEL32 -> writeSelector - PUT_SEL32V -> writeSelectorValue Also, changed some selector-related function names and variables to CamelCase svn-id: r49317
2010-05-26SCI: Making various object and script related things constMax Horn
svn-id: r49246
2010-05-26More work on controlling access to members of the Object class:Filippos Karapetis
- Moved the code for initializing the object class, species and base object inside the Object class - Made propertyOffsetToId() a method of the Object class - Made relocateObject() a method of the Object class - The Object getVariable() method now returns a reference to the requested variable Only SegManager::reconstructScripts() is left needing direct access to the members of the Object class svn-id: r49228
2010-05-19Fixed signed/unsigned warning, changed to CamelCaseFilippos Karapetis
svn-id: r49100
2010-05-18- Removed the wrapper kalloc, kmem and kfree functions. Now, the associated ↵Filippos Karapetis
Segment manager functions allocateHunkEntry, getHunkPointer and freeHunkEntry are used directly (which are more descriptive, anyway) - Replaced the GET_SEGMENT macro by a method of the segment manager - Removed the unused reference to the created hunk in allocateHunkEntry(), only the reg_t reference to it is returned now svn-id: r49078
2010-05-18Moved breakpointWasHit inside the DebugState struct, thus resolving a FIXMEFilippos Karapetis
svn-id: r49071