Stanislav Shwartsman
23326d86b6
fixed warning
...
unify names of debugger dump methods
2009-04-21 20:27:35 +00:00
Stanislav Shwartsman
67c45a0113
cleanups, tab2space and fixes for compilation by MSVCPP
2009-04-14 09:45:22 +00:00
Stanislav Shwartsman
85d9418f82
Regenerate lexer/parser for debugger
2009-04-07 16:29:59 +00:00
Stanislav Shwartsman
4fc66aab31
Fixes for compilation by Visual Studio 2008
2009-04-07 16:12:19 +00:00
Stanislav Shwartsman
9e092a86c3
merge "system" and "segment" blocks of descriptor
2009-04-05 19:09:44 +00:00
Stanislav Shwartsman
c9383813f0
don't have to keep both limit and limit_scale
2009-04-05 18:16:29 +00:00
Stanislav Shwartsman
981c2e595d
Improve internal debugger commands parsing.
...
Now possible to set read/write watchpoits using 'r' and 'w' shortcuts instead of full 'read' and 'write' words
2009-04-03 17:36:24 +00:00
Stanislav Shwartsman
2a4a481b0e
Fixed watchpoint handling
2009-03-27 21:01:16 +00:00
Stanislav Shwartsman
10e373f79f
Fixed compilation err
2009-03-27 13:20:23 +00:00
Stanislav Shwartsman
1c0f788d3f
Fixed compilation err
2009-03-25 07:09:52 +00:00
Stanislav Shwartsman
51ea504442
Fixed compilation with debugger on
2009-03-10 17:02:03 +00:00
Stanislav Shwartsman
9e723a044f
- Added configure option to enable/disable A20 pin support. Disabling the
...
A20 pin support slightly speeds up the emulation.
- small code cleanup
2009-03-10 16:28:01 +00:00
Volker Ruppert
9e3dd83e85
- reduce some more dependencies and related Makefile.in updates
2009-02-23 11:06:53 +00:00
Volker Ruppert
790eec83ca
- converted I/O APIC to a device plugin
...
- updated dependencies
2009-02-22 10:44:50 +00:00
Stanislav Shwartsman
9b3df76910
Fixed comp err
2009-02-20 23:01:09 +00:00
Stanislav Shwartsman
1e2fd1a737
Fixed compilation err
2009-02-16 18:27:50 +00:00
Stanislav Shwartsman
20d1ee5815
Fixed memory leak + some compilation warning
2009-02-08 18:52:06 +00:00
Volker Ruppert
e5eac65b59
- removed wrong character from FSF address (converted invisible and useless
...
2-byte character)
- updated FSF address in some files
- added license to some files
2009-02-08 09:05:52 +00:00
Stanislav Shwartsman
3b799101f4
Optimize debugger stepN when single processor mode
2009-02-01 22:20:04 +00:00
Stanislav Shwartsman
b780068399
Fixed gcc4 warnings
2009-01-30 21:47:42 +00:00
Stanislav Shwartsman
db098a1205
Fix dependencies of CPU code from disasm library
...
Regent Makefile.in for CPU
2009-01-19 19:01:03 +00:00
Stanislav Shwartsman
c8fa6f6b90
Added CR4 fields
2009-01-18 21:25:49 +00:00
Stanislav Shwartsman
9929e6ed78
- updated FSF address
2009-01-16 18:18:59 +00:00
Stanislav Shwartsman
19072fb5ce
Fix for [ 2426271 ] cannot get correcet symbol entry
2009-01-10 21:38:36 +00:00
Volker Ruppert
e12b21e647
- update all dependencies
2009-01-03 09:54:10 +00:00
Stanislav Shwartsman
d33b0bb79a
in long mode, not only in 64-bit mode
2008-12-16 19:28:19 +00:00
Stanislav Shwartsman
5086d2e756
implement info idt in long mode
2008-12-16 19:26:57 +00:00
Stanislav Shwartsman
6f63523a8e
Fixed compilation error
2008-12-08 20:20:30 +00:00
Stanislav Shwartsman
d7fa44d270
optimize code access detection
2008-12-05 22:34:42 +00:00
Stanislav Shwartsman
ac5b7bff1b
Fixed double tick count in stepN command of bx_debugger with SMP enabled but only 1 CPU
2008-11-18 21:03:04 +00:00
Stanislav Shwartsman
17040303f7
Optimization of repeat string
2008-10-08 20:15:37 +00:00
Stanislav Shwartsman
0e66403a25
Change watchpoints to be more flexible - and more similar to 2.3.7
2008-10-08 17:13:35 +00:00
Alexander Krisak
e108fe0d58
Yet another win32 build fix. cpu/resolve.cc renamed to cpu/resolver.cc
...
because it conflicts with disasm/resolve.cc.
2008-10-07 07:47:56 +00:00
Stanislav Shwartsman
5c3dc4b780
Fixed breakpoint handling
2008-10-02 06:48:33 +00:00
Stanislav Shwartsman
cc17a7006a
Allow using of expressions for page command
2008-09-12 21:03:56 +00:00
Volker Ruppert
b99ddb4ac7
- NMAKE (MSVC toolkit 2003) doesn't like structure type and member having the
...
same name
2008-09-07 07:57:01 +00:00
Alexander Krisak
f0bf6139de
debugger: command 'print-stack' in 32bit protected mode now use base of
...
stack segment
2008-08-28 10:57:37 +00:00
Stanislav Shwartsman
e19c25a234
Reimplemented watchpoints handling. Up to 16 watchpoints of any kind (but not each kind) is available.
...
Check 'help watch, help unwatch' in Bochs debugger !
2008-08-07 21:09:30 +00:00
Stanislav Shwartsman
8a71b339ee
Fixed breakpoint handling in SMP mode
2008-08-01 08:36:04 +00:00
Stanislav Shwartsman
9a90d20f59
Support for 16-byte mem access
2008-07-26 14:20:24 +00:00
Stanislav Shwartsman
bb44f5c5b5
Re-apply SF patch "Set new default format and unit only if both are supported"
2008-07-11 17:31:30 +00:00
Stanislav Shwartsman
f9e84e2825
Merge patch from @SF
2008-07-11 03:53:30 +00:00
Stanislav Shwartsman
0dd9f19800
Fixed bx_debug compilation with gcc 4.3
2008-06-16 17:09:52 +00:00
Stanislav Shwartsman
061555b7c1
Print HALTED message only when tracing is enabled
2008-06-12 21:00:25 +00:00
Stanislav Shwartsman
288b086e20
Fixed compilation err
2008-06-11 20:29:30 +00:00
Stanislav Shwartsman
8896873383
FIxed compilation warning _ indent
2008-06-09 23:00:43 +00:00
Stanislav Shwartsman
8596a2a242
Fix compilation, update CHANGES
2008-05-31 21:07:30 +00:00
Stanislav Shwartsman
8d17e7b539
Fixed watchpoints handling
2008-05-31 20:59:38 +00:00
Stanislav Shwartsman
3619c0f6b4
Some changes to make x86-debugger feature working back
2008-05-23 17:49:46 +00:00
Stanislav Shwartsman
3f1e436926
Removed unused variables in bx_dbg struct
2008-05-23 14:04:45 +00:00
Stanislav Shwartsman
e98b58651d
Added missed newline
2008-05-19 19:11:24 +00:00
Stanislav Shwartsman
fafae755b3
Formatting fixes
2008-05-10 20:33:39 +00:00
Stanislav Shwartsman
6ebae41ad7
print physcial address with special format - preparations for 64-bit physical address emu
2008-05-09 22:33:37 +00:00
Stanislav Shwartsman
8e3b0ea1af
Fixed few typos in debugger command and print
2008-05-03 21:32:02 +00:00
Stanislav Shwartsman
abe5309ab9
Clean 'info registres' command - use only direct aliases.
...
instead of 'info fpu' - just use 'fpu'
and etc
2008-05-01 19:10:07 +00:00
Stanislav Shwartsman
6c82e707c8
FIxed typo
2008-04-26 18:58:26 +00:00
Stanislav Shwartsman
003c23e7ea
Added aliases for some debugger command
...
fp|fpu - same as info fpu
sse - same as info sse
mmx - same as info mmx
sreg - same as info sreg
2008-04-26 18:50:32 +00:00
Stanislav Shwartsman
c660853202
Implemented info ldt command
2008-04-25 21:08:58 +00:00
Stanislav Shwartsman
7b1579f3ca
Fixed trace-mem print format
2008-04-25 19:27:18 +00:00
Stanislav Shwartsman
4ada6b6e8e
Fixed timebp bug
2008-04-20 09:20:56 +00:00
Stanislav Shwartsman
c9c16ad87f
Update LEX/YACC precompiled files for internal debugger
2008-04-19 20:21:29 +00:00
Stanislav Shwartsman
bc86f6393a
Removed incorrect commit
2008-04-19 20:11:30 +00:00
Stanislav Shwartsman
9ddcd01b27
Fixes for trace-mem command
2008-04-19 20:01:09 +00:00
Stanislav Shwartsman
5fafafb5e6
Added trace-mem to debugger help
2008-04-19 13:22:05 +00:00
Stanislav Shwartsman
bdaef81603
Added debugger memory trace functionality. Enable by 'trace-mem on' command
2008-04-19 13:21:23 +00:00
Stanislav Shwartsman
639967e1da
Fixed typo
2008-04-17 20:48:52 +00:00
Stanislav Shwartsman
5665dab58c
More places where CPU vector was used
2008-04-17 20:45:00 +00:00
Stanislav Shwartsman
5b900fbb5e
Fixed exception name (another one)
2008-04-16 22:28:07 +00:00
Stanislav Shwartsman
7593d9d7e2
Fixed exception name
2008-04-16 21:49:46 +00:00
Stanislav Shwartsman
068276b957
- added description for debugger exceptions
...
- fixed EFLAGS debug print from internal debugger
2008-04-16 16:42:00 +00:00
Stanislav Shwartsman
e5e8785973
Can't use access_linear in debugger because it has sideeffects on CPU
2008-04-11 21:59:47 +00:00
Stanislav Shwartsman
1350b77700
Fixed 'r' command with 64-bit registers
2008-04-11 14:16:46 +00:00
Stanislav Shwartsman
a851cfd8f0
Re-implemented modebp debugger function in simple and more clean way
2008-04-07 19:59:53 +00:00
Stanislav Shwartsman
fea49bb270
Fixed linear address wrap in legacy (not long64) mode
2008-04-07 18:39:17 +00:00
Stanislav Shwartsman
2a121e2664
Fixed compilation error with bx debugger
2008-04-05 21:41:31 +00:00
Stanislav Shwartsman
858842edec
Typo fix
2008-04-04 14:04:11 +00:00
Stanislav Shwartsman
3c40cb1610
More improvements to load-symbols in bx debugger
2008-03-30 14:32:14 +00:00
Stanislav Shwartsman
a77b012049
Update debugger parser
2008-03-30 05:47:31 +00:00
Stanislav Shwartsman
041ae54724
Fixed lexer bug
2008-03-30 05:45:42 +00:00
Stanislav Shwartsman
6b6492dd36
Compiled lex/yacc output for debugger
2008-03-29 21:37:18 +00:00
Stanislav Shwartsman
46e7ca44dc
dded patch with symbols support in bochs-debugger
2008-03-29 21:32:18 +00:00
Stanislav Shwartsman
b745be68ef
Improve show param call in bochs debugger - search also in default CPU tree
2008-03-28 12:51:02 +00:00
Stanislav Shwartsman
15106acdba
Another #SF patch merge
...
another patch to fix compilation with vc8 (or, more
precisely with Dimkunware STL). It corrects the usage of std::set
iterators.
2008-03-26 22:39:07 +00:00
Stanislav Shwartsman
528d34f108
Forgot printf param
2008-03-23 21:40:17 +00:00
Stanislav Shwartsman
a22160959b
HLT callback to Bochs internal debugger
2008-03-23 21:39:01 +00:00
Stanislav Shwartsman
7bd2cf39d3
Fixed printf format bugs
2008-03-23 21:25:13 +00:00
Stanislav Shwartsman
d9464b18d4
Fixed reading of 64-bit params from bx_debugger (info sse and info fpu commands are affected)
2008-03-23 17:59:44 +00:00
Stanislav Shwartsman
47a36880e8
Handle breakpoints for step N command in debugger similar to continue command
...
Patch by Sharvil Nanavati
2008-03-03 10:49:54 +00:00
Stanislav Shwartsman
a459a64f3e
whispace, tab2space, indent, dos2unix and other cleanups
2008-02-15 22:05:43 +00:00
Stanislav Shwartsman
cdcd7522aa
Added RIP to the GPR register file as lst register
...
This allowed to optimize (read - remove) two more BxResolve methods in 64-bit mode
+ Some white space cleanup
2008-02-15 19:03:54 +00:00
Stanislav Shwartsman
eebd96e2d7
another whitespace cleanup by Sebastien
2008-02-05 22:33:35 +00:00
Stanislav Shwartsman
37fbb82baa
Cleanups. Move bxInstruction_c definition to separate file instr.h
2008-01-29 17:13:10 +00:00
Stanislav Shwartsman
ff0cae91c9
Fixed compilation warnings
2008-01-17 15:39:45 +00:00
Stanislav Shwartsman
72d72c92d4
Fixed warnings of VC2008
2007-12-30 18:02:22 +00:00
Stanislav Shwartsman
d82209e28d
A bit speedup 'continue' debugger command
2007-12-13 22:56:35 +00:00
Stanislav Shwartsman
f57e7c4a1f
Some more Bit32u -> bx_phy_address changes in the code
2007-12-13 21:53:55 +00:00
Stanislav Shwartsman
e51184c8cf
Eliminate saving of RSP from heart of cpu_loop
...
Now save RSP only where it is really required
2007-11-24 14:22:34 +00:00
Stanislav Shwartsman
9481924b35
small bugfix in print stack command
2007-11-01 20:53:20 +00:00
Stanislav Shwartsman
7f1bdefedc
Update docs and help
2007-10-23 21:59:04 +00:00
Stanislav Shwartsman
6d7134ef99
Remove dump_cpu debugger function, CPI method and all related structures.
...
Extended 'info' command in debugger to have all functionality of dump_cpu if needed. Also param tree print always could be used !
2007-10-23 21:51:44 +00:00
Stanislav Shwartsman
42fdd8a3a1
During Bochs benchmarking I figured out that hostasm actually slow down the emulation ... so remove this ugly code which also doesn't help :)
...
speedup flags update for some instructions - idea was taken from DT patch by h.johansson
2007-10-21 22:07:33 +00:00
Stanislav Shwartsman
e9801ef501
Support for restore cpu (and any other device from bochs root) from debugger
2007-10-14 19:04:51 +00:00
Stanislav Shwartsman
e6d13d526b
Suppory 64-=bit CR2 value in info cr command
2007-10-14 00:23:06 +00:00
Stanislav Shwartsman
ac272e9383
Changes breakpoints configure time enable macroses - reduce amount of compile-time parameters
2007-10-12 22:11:25 +00:00
Stanislav Shwartsman
f6ed95785f
added cpu state param - for future use and for dbg info
...
started to move debugger to info bx_param interface -> info sse and info mmx commands modified
2007-10-11 18:12:00 +00:00
Stanislav Shwartsman
07739173f5
add --show-ips to all configs for future releases (it is not ON by default ?)
...
Bit32u -> bx_phy_address in debugger and some other places
2007-10-09 19:49:23 +00:00
Stanislav Shwartsman
071c5c1a26
A lot of changes but everything is really trivial.
...
Make save/restore default feature, the configure option for save/restore removed from configure script and save/restore made available forever. All code now assume it is exists. Bochs save/restore tree previosly called "save_restore" renamed to "bochs" tree and it will be havily used everywhere, starting from save/restore and ending by various bochs debugger functions. I am going to rework debugger code to get rid of debug CPU access functions and use this "bochs" param tree instead
2007-09-28 19:52:08 +00:00
Stanislav Shwartsman
33a5305803
Fix error message when doing set cpu command
2007-09-27 07:03:11 +00:00
Stanislav Shwartsman
6b86091441
Implemented new debugger 'page' command according to feature request
...
[ bochs-Feature Requests-604221 ] Debugger command: query lin<->phys mapping
2007-09-23 21:10:06 +00:00
Stanislav Shwartsman
412eeeeb7c
Get crregs definition to separate file from cpu.h
2007-09-10 16:00:15 +00:00
Stanislav Shwartsman
8014e4061b
Patch from mailing list
2007-07-09 14:57:33 +00:00
Stanislav Shwartsman
5e97ddb984
Use GDT and IDTR limit in 'info gdt/idt commands
2007-05-12 19:19:15 +00:00
Stanislav Shwartsman
b6c8275cfd
remove old PIT model and always use Greg Alexander's new one
2007-04-08 21:57:06 +00:00
Stanislav Shwartsman
c738d82290
Fix for debugger in SMP binary executing single CPU
2007-03-06 21:18:00 +00:00
Stanislav Shwartsman
40a395a3f4
Improve single threaded simulation speed in SMP binary of Bochs
...
This is still significantly slower than in native no-SMP binary but faster than before at least
2007-03-06 21:12:20 +00:00
Stanislav Shwartsman
d54c63e9cb
FIxed compilation error
2007-01-25 19:21:20 +00:00
Stanislav Shwartsman
dd00bc66d0
Fixed disasm in 64bit mode, added new accessor for printing 64bit values
2007-01-13 10:43:31 +00:00
Stanislav Shwartsman
b7be2eb0b1
Fixed timer breakpoint bug
2007-01-04 20:12:32 +00:00
Volker Ruppert
3063397fd4
- first attempt to implement a debugger gui dialog for win32
...
- new display library option "windebug" enables the new feature
- simple dialog box with a command line and a multiline text viever
- TODO: implement modeless dialog with cpu registers and it should be possible
to interrupt "continue" and "step N" commands
- win32dialog: fixed function GetBochsWindow()
- textconfig: removed unused save/restore prompt
2006-11-12 10:07:18 +00:00
Stanislav Shwartsman
f19595136b
*** empty log message ***
2006-11-07 08:24:22 +00:00
Volker Ruppert
f348c6cf50
- fixed broken debugger "rc file" command line option. Now it is possible to
...
execute debugger commands from the specified file. This is the command line
counterpart to the undocumented debugger command "source".
2006-10-24 17:53:47 +00:00
Stanislav Shwartsman
4ceec75181
Print EFER status in 'info cr' command
2006-10-21 22:18:39 +00:00
Stanislav Shwartsman
650086669c
Print 64-bit registers in 'info registers' command and in dump_regs
2006-10-21 22:06:39 +00:00
Stanislav Shwartsman
e410fa4a5a
Small optimization for debugger parser - avoid using of non-safe "numeric range" param
2006-10-21 21:28:20 +00:00
Stanislav Shwartsman
9e3a969239
Fixed lb/pb methods for platforms with BX_HAVE_STRTOULL=0
2006-10-19 17:51:58 +00:00
Stanislav Shwartsman
3329fb32ec
Fixed lb/vb commands
2006-10-18 20:07:47 +00:00
Stanislav Shwartsman
d6bcfad065
Fixed lb/vb parsing
2006-10-18 18:23:18 +00:00
Alexander Krisak
59c4f3da68
Fixed compillation error under Windows when BX_DEBUGGER is 0
2006-10-11 14:54:40 +00:00
Volker Ruppert
0c827dcbf1
- implemented debugger access to SMRAM area
2006-10-02 17:40:20 +00:00
Stanislav Shwartsman
925ae93e22
Reveer back changes for debug.h removal from bochs.h
2006-09-26 19:16:10 +00:00
Stanislav Shwartsman
aab3feb2e0
Fixed Makefile to compile with ACPI stub disabled
...
Remove bx_debug.h from bochs.h to reduce compilation dependencies
2006-09-25 20:13:52 +00:00
Stanislav Shwartsman
3111909a64
Merged patch from Bochs-Developers mailing list.
...
Fixes bp handling.
2006-09-17 19:22:24 +00:00
Volker Ruppert
ec9c361e9c
- fixed handling of parameter "debug_running" for restart support
...
- wx: delete of "debugCommand" fixed
2006-09-17 07:12:50 +00:00
Stanislav Shwartsman
fdac9efa9b
Fixed ton of code duplication.
...
Do not save/restore XMM8-XMM15 not in 64-bit mode
2006-08-31 18:18:17 +00:00
Stanislav Shwartsman
5000ad2a55
Fixed compilation warning
2006-08-22 19:07:50 +00:00
Stanislav Shwartsman
5ade11bae4
Added exception debug print
2006-06-22 19:53:58 +00:00
Stanislav Shwartsman
6fd9b3107b
Fix descriptor printing format
2006-06-22 16:44:37 +00:00
Stanislav Shwartsman
070d782ec8
Move paddr_valid param of dbg_xlate_linear2phy method to return value.
...
This is much easier to use.
2006-06-17 12:09:55 +00:00
Stanislav Shwartsman
8ed8916ea9
Break to debugger on triple fault or panic (this time do it correctly)
...
Indent changes
2006-06-12 19:51:31 +00:00
Stanislav Shwartsman
49d7b4614f
Fixed another bug generator - duplication between descriptor type field and four descriptor cache bits
2006-06-12 16:58:27 +00:00
Stanislav Shwartsman
bfebb40326
Fixed bug report:
...
[ 1503978 ] movsb/w/d doesn't work when direction is stored
2006-06-11 18:03:45 +00:00
Stanislav Shwartsman
869f74b3ee
Reduce amount of dbg_get_cpu calls (I would like to remove this function) and use save/restore power in debugger
2006-06-11 16:40:37 +00:00
Stanislav Shwartsman
a4f1c8db33
Fix possible memory corruption in bx_debug
...
Fix 'examine' debugger command
Indent changes
2006-06-09 12:26:34 +00:00
Stanislav Shwartsman
594b8cce47
Fixed segfault with bochs debugger but reported today
2006-05-31 17:20:52 +00:00
Stanislav Shwartsman
34061a2f22
Enable show-param support in debugger.
...
Fixed print_tree function to correctly print 64-bit data
2006-05-30 19:46:31 +00:00
Stanislav Shwartsman
880f558989
Regenerate lexer.c
2006-05-29 22:43:26 +00:00
Stanislav Shwartsman
c5d3070a60
I once already did this change ... strange, how it could gone ...
...
Replace strtoul by strtoull to support 64-bit values
2006-05-29 19:56:29 +00:00
Stanislav Shwartsman
462e8c9447
Fix 'instrument stop' command
2006-05-21 16:48:05 +00:00
Stanislav Shwartsman
2889ed190c
Removed icount guard for debugger. Implement STEPN debugger command using CPU_LOOP method capabilities
2006-04-29 09:27:49 +00:00
Stanislav Shwartsman
1a0b7ee1e3
I want to replace debugger ICOUNT guard by existent cpu_loop funtionality, first step to do that ...
2006-04-29 07:12:13 +00:00
Stanislav Shwartsman
03a5c22a64
Fixed debugger help command
2006-03-24 21:01:44 +00:00
Stanislav Shwartsman
7ba6e5a2bb
Forgot to check-in main.cc
...
But anyway - this is more clear fix which also fixes code duplication
2006-03-08 20:10:29 +00:00
Stanislav Shwartsman
7b6c2587a9
Now devices could be compiled separatelly from CPU
...
Averything that required cpu.h include now has it explicitly and there are a lot of files not dependant by CPU at all which will compile a lot faster now ...
2006-03-06 22:03:16 +00:00
Volker Ruppert
0c573d15cf
- fixed compile error (missing typecast)
...
- fix for parameter objects without a parent list
- textconfig: logfile options moved to a submenu
- obsolete parameter init methods removed
2006-03-06 18:50:55 +00:00
Volker Ruppert
dd7e08de99
- remaining config options and special menus added to parameter tree
...
- parameter tree structure updated (TODO: should be moved to development.dbk)
- code cleanup: bx_options stuff and obsolete parameter access methods removed
- TODO: rewrite of shadow parameter stuff (for subtree "save_restore")
2006-03-05 10:24:29 +00:00
Stanislav Shwartsman
a6d2ccffba
Fixed typo
2006-02-27 06:14:42 +00:00
Volker Ruppert
a4f412d3e8
- boot and loader options rewritten to a parameter tree
...
- wx: ParamDialog method EnableParam can now handle new-style parameters
- saving of pcidev options fixed
2006-02-23 22:48:57 +00:00
Volker Ruppert
6311fface8
- pci options rewritten to a parameter tree
...
- proposed parameter tree updated
- pci presence flag stored in the memory code
2006-02-19 21:35:50 +00:00
Stanislav Shwartsman
024ce249bf
Define SMM mode for future implementation.
...
I would like all next commits be aware of SMM mode.
It can't be implemented right now (too many questions w/o answers) but it will be done till next major release definitelly.
2006-02-14 19:00:08 +00:00
Stanislav Shwartsman
3a420aacaa
First step in removing of bx_num_range, fixed parser.
...
Cleaned and improved 'info idt' 'info ivt' and 'info gdt' commands
2006-02-13 21:32:21 +00:00
Stanislav Shwartsman
d37f62d2b4
Support for 64-bit registers set reg = expr command
...
Print found guard cs_eip in more nice way, it was too mane leading zeroes in x86-64 mode ON
2006-02-13 18:28:14 +00:00
Stanislav Shwartsman
6e768f81d9
Split 'show int' option to 'show extint', 'show softint' and 'show iret', allow to toggle every option separatelly.
...
Command 'show int' still supported, meaning - all three together
2006-02-12 20:43:01 +00:00
Stanislav Shwartsman
2646484dc1
Fix 'show' command in Boch debugger.
...
Fully supported show-interrupts, show-mode and show-call options
Enable toggling of show options (bug report from SF)
2006-02-12 20:21:36 +00:00
Stanislav Shwartsman
bc30171d4a
Remove parenthesis around 'show command' arguments
...
Fixed in lexer and parser
2006-02-11 21:19:22 +00:00
Stanislav Shwartsman
e8ec9e854b
Remove redundant 0x from FMT_ADDRX macro for cygwin
...
Moved 'show "tab"' command to 'info' (use 'info tab' now)
Fixed printing of the command
2006-02-11 20:47:22 +00:00
Stanislav Shwartsman
ace3b9916a
Print branch target linear address for all in disasm when possible (i.e. cs.base and eip supplied)
2006-02-11 19:46:03 +00:00
Volker Ruppert
d7caed8655
- fixed compile error
2006-02-05 20:03:24 +00:00
Stanislav Shwartsman
5a65e1065e
Decoding functionality for Bochs disassembler.
...
Fixed 'step over' debugger command using bx_dbg_read_linear method.
Small debugger fix in cpu.cc
2006-02-05 19:48:29 +00:00
Stanislav Shwartsman
c7760750d3
Fixed SMP related debugging for some methods - hardcoded BX_CPU(0) instead of BX_CPU(dbg_cpu)
...
New debugger problem discovered - most of dbg linear memory acceses not aware on paging and possible page split !
Implemented new dbg method bx_dbg_read_linear (very similar to CPU access_linear) - every debugger method should use it to read any amount of memory based on linear address.
Implemented print_stack command for x86-64 support
2006-02-02 22:33:32 +00:00
Stanislav Shwartsman
6ca296de8b
Move --enable-reset-on-triple-fault option to runtime CPU::reste_on_triple-fault option in .bocshrc
...
Cleanup and optimize parser for debugger
2006-02-01 18:12:08 +00:00
Stanislav Shwartsman
1d4fa8b327
Available back ability to use eip register as source in 'set reg = <expr>' cmd.
...
Setting the eip register still not available (deliberatelly).
I don't want to enable it util I find some easy interface to do it.
I don't want to allow setting of part of RIP register using 'set eip=<expr>' and leave the upper part unchanged ....
Remove unused test registres from debugger
Fix compilation error in cpu.h
Change trace-on/trace-off commands. Make one 'trace' command with usage of 'trace on/trace off'
2006-01-31 19:45:34 +00:00
Stanislav Shwartsman
c7dd4185a7
Do not pass crc32 function as parameter to memory class - it is available as global function now
2006-01-28 16:16:03 +00:00
Stanislav Shwartsman
a0345031cf
forgot to remove '0x' from FMT_ADDRX fro mingw
...
fix dump_table function to use CPU paging translation method instead of old debugger method which not supported PAE and other paging features
2006-01-28 15:10:33 +00:00
Stanislav Shwartsman
067f23e3da
Fix set 'ah,bh,ch,dh' registers from debugger
...
Enable disasm by default - in adds some useful information to debug messages in log file
Remove defines for 8bit registers from cpu.h, the x86 arch defines not match defines used by set_reg and get_reg methods.
2006-01-27 19:50:00 +00:00
Stanislav Shwartsman
37eb82c69c
Totally remove the cosimulation code from Bochs.
...
The Bochs anyway even doesn't compile if cosimulation configured enabled.
But in the same time the cosimulation code only disturbs to the future development of Bochs debugger, for example adding x86-64 functionality ...
For those of you who still may want to see the cosimulation code inside I put it in patch and upload it Bochs CVS patches folder. Read comments for the patch ! ----------------------------------------------------------------------
2006-01-25 22:20:00 +00:00
Stanislav Shwartsman
aa6874cb6e
Put playback functions together, indent changes
2006-01-25 21:38:31 +00:00
Stanislav Shwartsman
83b4f7ba05
1. remove the ability of using regnames as symbols !
...
'set $eax = <value>' is stupid when you could do expr like 'set eax = ebx + 4'
2. cleanup and optimize Bochs debugger parsing, fixed several memory leaks
2006-01-25 18:13:44 +00:00
Stanislav Shwartsman
d257f548b9
1. implemented 'set register <name>=<expr>' command, old style 'registers <name>=<exp> command' removed, now 'r|reg|regs|registers' command shows CPU registers contents (same as 'info cpu')
...
2. new command 'u|disasm|disassemble mode-switch' - switch between Intel and AT&T disasm syntax
3. new command 'u|disasm|disassemble size=n' should be used instead of old 'set $disassembler_size=n'
4. 'h' is a new alias for 'help' command
2006-01-24 21:37:37 +00:00
Stanislav Shwartsman
a25be6faaa
Fix indent, update bx_dbg_info_flags method
2006-01-24 19:23:42 +00:00
Stanislav Shwartsman
18afa9fd2d
This is cumulative patch for bochs debugger, it is only very first step towards working debugger supporting all new simulator functionalitieS.
...
- move crc.cc from debugger to bochs folder and make it projct-wide and not local for debugger
- added new 'info sse' command for debugger
- extend 'modebp' command to break on any mode change
- remove unimplemened 'info program' function, it is always printed fixed text
- move debugger help to parser, cleanup and simplify it
2006-01-24 19:03:55 +00:00
Stanislav Shwartsman
f27d342968
Removed unused linux.h file
...
Indent changes for linux.cc
2006-01-24 18:21:22 +00:00
Stanislav Shwartsman
21352e50a9
Fix some bugs in debugger parser, cleanup
...
Add some debugger functionality
2006-01-23 21:44:44 +00:00
Stanislav Shwartsman
08c15c67c0
Don't know how much it helps ...
...
First step to make bx debugger supporting x86-64. guard_found object fields conerted to bx_address for x86-64 support.
2006-01-19 18:32:39 +00:00
Stanislav Shwartsman
2c8f6f7720
Merged patch: determine number of processors to emulate through .bochsrc
2006-01-18 18:35:38 +00:00
Stanislav Shwartsman
a67c1cb027
dos2unix fix
2006-01-15 17:57:48 +00:00
Stanislav Shwartsman
5570346246
reorganize debugger code
2006-01-15 17:55:25 +00:00
Stanislav Shwartsman
5899932f0c
Merge APIC patch to the CVS.
...
- Fix lowest priority interrupt delivery from I/O APIC
- XAPIC support
- Implemented APIC bus functionality
- cleanup APIC code
2006-01-10 06:13:26 +00:00
Alexander Krisak
9f1888d523
*** empty log message ***
2005-12-24 16:07:47 +00:00
Stanislav Shwartsman
cd2a8da34c
Add more debugging/instrumentation functionality
2005-12-14 20:05:40 +00:00
Stanislav Shwartsman
c89ba98297
Fix compilation errors (new interface for debug access to registers in CPU)
2005-11-27 18:25:57 +00:00
Stanislav Shwartsman
fd5bd2177a
See 64-bit disasm
2005-11-21 22:26:58 +00:00
Stanislav Shwartsman
fc27c175e2
Fix typo
2005-11-14 18:31:59 +00:00
Stanislav Shwartsman
7b7ac565f9
Getting ready for long mode disasm support, patch will posted soon
2005-11-14 18:09:22 +00:00
Stanislav Shwartsman
fd2175eb57
Merged patch
...
[ 1352761 ] Infinite loop when trying to debug a triple exception
by Nickolai Zeldovich
2005-11-10 18:14:18 +00:00
Volker Ruppert
bb2705643a
- fixes for the load32bitOShack feature from patch included in SF bug #1351667 by jpa
2005-11-09 17:17:06 +00:00
Alexander Krisak
672ac67ff9
Fixed bug in bochs debugger caused breakpoints doesn't fires sometimes.
2005-08-15 05:32:36 +00:00
Volker Ruppert
d133c74339
- fixed MSVC warnings in the rfb and debugger code
2005-06-09 20:08:17 +00:00
Stanislav Shwartsman
694a568fb1
1. Make info cpu debugger command 2x shorter
...
2. More corrrect fix for bx_yyinput function in debugger.
It should read all available bytes but no more than max_size bytes
and it is no needed to modify lex_input_size.
2005-04-16 21:43:06 +00:00
Volker Ruppert
0dbedb711f
- lexer.c re-generated with flex
2005-04-15 12:16:01 +00:00
Stanislav Shwartsman
ce35b6ec3a
Fixed logic bug caused SIGSEGV in debugger when gcc 3.4.0 is used.
...
Thanks to Robin Green for fixing the issue
2005-04-10 19:53:42 +00:00