Stanislav Shwartsman
1f4d3e7194
fixed problems found by cppcheck tool (patch by Maxim Derbasov)
2015-01-03 13:53:52 +00:00
Volker Ruppert
54072a7475
Enable ask dialog bx default if the SDL2 gui is present
2014-08-03 15:15:36 +00:00
Volker Ruppert
b85e582f44
Always put va_start() and va_end() around formatted output. Since fatal() never
...
returns, the va_end() must appear after vsnprintf(). That seems to fix the
recently reported "format string vulnerability", so please verify this fix.
2014-05-01 20:26:54 +00:00
Volker Ruppert
bb8444fdb1
The ask() method now returns even in the "quit" case. The calling method then
...
terminates the simulation with fatal().
X11 ask dialog: increase string size for device prefix.
TODO: the "format string vulnerability" in fatal() is still not fixed.
2014-05-01 14:34:32 +00:00
Volker Ruppert
c7a72484c8
Execute this code only if the wx gui is selected.
2014-05-01 08:42:04 +00:00
Volker Ruppert
994f908438
Fixed memory leaks found with valgrind
2014-04-06 19:01:38 +00:00
Volker Ruppert
bace4d0c6b
Prepared siminterface and logio code for the implementation of a log viewer
...
for watching the log output at simulation time. This feature has been prepared
and described in the code (BX_ASYNC_EVT_LOG_MSG), but it was never implemented.
A viewer window could be implemented easily in wx. The gui debugger could also
have an option to view the log output while debugging.
2014-01-12 08:26:04 +00:00
Volker Ruppert
401321d500
Added symbol BX_NULL_PREFIX and fixed textconfig log options table.
...
If log module name not specified, use device log prefix converted to lower
case as the name and simplified setting up some short prefixes.
2013-12-31 09:20:08 +00:00
Volker Ruppert
fc4538a131
Some fixes / improvements in logging system
...
- fixed pluginlog init in non-plugin mode
- reduced logprefix length limit and use it for the related string parameter
- increase the device prefix size to 6
- TODO: change some more device prefixes
2013-12-29 10:41:11 +00:00
Volker Ruppert
ab57c1fb2f
found a better solution to fix the power_handler() deadlock
...
fixed bx_dbg_exit() handling for shutting down second simulation correctly
2013-02-20 18:51:39 +00:00
Volker Ruppert
9933ffa3d9
vga refresh framework changes
...
- renamed trigger_timer() methods to refresh_display()
- new argument 'redraw' added to force a refresh of the entire screen
(used in snapshot mode)
- siminterface method refresh_vga() now checks if the Bochs gui init is complete
- use SIM->refresh_vga() in some more cases
2012-10-28 08:23:39 +00:00
Stanislav Shwartsman
fa03e8b925
added const to several class members
2012-03-27 21:30:34 +00:00
Volker Ruppert
d74762b984
- wx: use new log function name for the table of log modules
...
- added some more log function names
2012-02-23 17:16:35 +00:00
Stanislav Shwartsman
039326d0c9
always return const pointer from functions - these strings are not planned to be modified
2012-01-11 19:57:38 +00:00
Volker Ruppert
b130bf671b
- initial "log action by device" implementation added (TODO: check for
...
invalid module names, save log actions to bochsrc)
- added new member 'name' to the logfunctions class for the case the prefix
is too short. Added to some devices with longer names.
2011-12-29 19:51:54 +00:00
Volker Ruppert
c35e385139
- removed 'text_snapshot_check' feature and related BX_PASS loglevel
...
- documentation updates
2011-07-31 14:38:03 +00:00
Stanislav Shwartsman
1a7d38c28b
bswap optimization patch by Heikki Lindholm + cleanup
2011-04-19 12:48:06 +00:00
Stanislav Shwartsman
00981cd7a6
Adding Id and Rev property to all files
2011-02-24 22:05:47 +00:00
Stanislav Shwartsman
a896dbfb2d
compilation fix for win64
2010-06-10 15:59:04 +00:00
Stanislav Shwartsman
5fec008130
change copyright to bochs project
2009-12-04 20:02:12 +00:00
Stanislav Shwartsman
7233fdf3c1
fixed non-printable character
2009-08-22 19:30:23 +00:00
Volker Ruppert
e4f0de41e3
- simplified setting device prefix for log functions
...
- implemented unique device prefix for lowlevel cdrom
- minor device prefix changes
- minor coding style changes in cdrom.cc
2009-04-10 08:15:25 +00:00
Stanislav Shwartsman
78590cc6f2
remove redundant cpu->name variable
2009-02-20 17:05:03 +00:00
Volker Ruppert
501952efdd
- removed unused logfunctions member 'type' and related method 'settype()'
...
- updated FSF address in copyright
2009-01-10 11:30:20 +00:00
Stanislav Shwartsman
c009e87a81
Remove external debugger interface:
...
- it is closed source (!!!)
- we have very nice replacement now
2008-10-01 09:44:40 +00:00
Stanislav Shwartsman
ef2120a3ac
Fixed compilation err with debugger enabled
2008-05-23 18:06:50 +00:00
Volker Ruppert
94edd3cf3c
- store prefix and message in 'exit_msg' before unloading device plugins.
...
A device panic or APM / ACPI power off caused an access violation when writing
to console with plugins enabled, since bx_atexit() unloads them.
2008-05-23 08:51:31 +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
55ad3e89b6
another whitespace cleanup by Sebastien
2008-02-05 22:57:43 +00:00
Stanislav Shwartsman
cce3699e0b
Fixed warning and possible compilation error
2008-01-01 18:12:31 +00:00
Stanislav Shwartsman
72d72c92d4
Fixed warnings of VC2008
2007-12-30 18:02:22 +00:00
Stanislav Shwartsman
d30a0d3699
warning fixes
2007-10-24 23:29:40 +00:00
Stanislav Shwartsman
4ec7f5df39
Optimize access to IP (16 bit) - made IP register similar to GPR
2007-10-18 22:44:39 +00:00
Stanislav Shwartsman
2e444bee12
Patch received by e-mail from darkelf
2006-11-19 16:18:41 +00:00
Volker Ruppert
e8cd2052c9
- improved gdbstub network efficiency (SF patch #1149659 by Avi Kivity)
...
- reimplemented "enter debugger" in ask dialog for gdbstub
- X11 and wxWidgets ask dialog now show "Debugger" button for gdbstub
- indent mode changes
2006-10-29 08:48:30 +00:00
Volker Ruppert
3663992ffd
- fixed possible segfault when pressing the power button with debugger enabled
...
- the textconfig 'quit' option must call bx_dbg_exit() if debugger is present
2006-10-02 17:07:36 +00:00
Volker Ruppert
fdefdc5b9f
- remove logfunction from list when device is deleted
...
- fixed typos in harddrv code
2006-09-17 18:09:33 +00:00
Volker Ruppert
e075c68f78
- close logfile and reset logging to stderr at the end of the simulation
...
- removed unused code
2006-09-09 11:28:52 +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
4b7e7087aa
Handle more fields memory management insie the bx_param_c.
...
Remove more strdups
2006-05-30 17:01:27 +00:00
Stanislav Shwartsman
da0b2ac377
Update dependencies for iodev and root project folders.
...
Fixed compilation errors for 386 case
Added file header for slowdown_timer.h
2006-03-06 22:32:03 +00:00
Volker Ruppert
7646a3ecbd
- siminterface now uses the new value BX_LOG_NOTIFY_FAILED in case of failure
...
(no notify handler registered). The ask() function doesn't set the variable
bx_user_quit to 1 in that case. This prevents win32 from closing the console
window immediately in case of a bochsrc error.
2006-01-31 19:37:56 +00:00
Stanislav Shwartsman
2c8f6f7720
Merged patch: determine number of processors to emulate through .bochsrc
2006-01-18 18:35:38 +00:00
Volker Ruppert
4f0a4f2f8f
- enable the ask dialog by default for the win32 and x gui, too
2005-11-12 12:27:40 +00:00
Volker Ruppert
02ae558db8
- removed old unused code designed for a save/restore feature
...
- fixed pcidev targets in iodev/Makefile.in
- updated all Makefile dependencies using a default setup (.conf.linux).
TODO: dependencies should be generated at compile time since they depend on
the config settings
2004-12-13 19:10:38 +00:00
Stanislav Shwartsman
e8c1819842
Fix compilation problem caused by
...
(Cox's CPU panic debug patch from Oct 2003)
committed by Daniel Gimpelevich at 17/01/2004
2004-10-05 18:59:20 +00:00
Volker Ruppert
c36d0c38e7
- fixed crash after debugger command 'show "call"' (mingw doesn't like %ll and
...
%*s in one statement)
- defined platform dependant symbol FMT_TICK for cpu ticks output to logfile and
debugger console
- fixed indent mode in function bx_dbg_symbolic_output()
2004-09-19 18:38:09 +00:00
Stanislav Shwartsman
5873b26a82
Speed up compilation process.
...
bochs.h already not include iodev.h which reduces compilation dependences for almost all cpu and fpu files, now cpu files will not be recompiled if iodev includes was changed
2004-06-19 15:20:15 +00:00
Daniel Gimpelevich
69a6ede259
Fixed Mac conflict with softfloat.
2004-02-14 06:33:29 +00:00