Commit Graph

270 Commits

Author SHA1 Message Date
Eric Pouech 53fa0d5433 - Fixed broken winedbg compilation on BSD.
- Fixed some corner case handling in ELF list walking (reported by
  Robert Shearman).
2004-02-05 01:27:38 +00:00
Eric Pouech 62bf6ecc85 - now detecting Dwarf debug information in ELF modules (but don't load
it)
- separated module management (pe.c, elf.c) from debug information
  management (stabs.c, msc.c)
- worked around new wine-pthread and wine-kthread loaders (no longer
  use "wine" as default loader)
- better convergence of gdb-proxy and winedbg for ELF handling
- fixed ELF link-map walking - now using all loaded shared libs -
  (with the help of Robert Shearman)
- added a bit of const correctness
2004-02-03 00:14:12 +00:00
Eric Pouech 39628f49ed - now reporting message on bogus line number in 'bp <num>' commands
(useful when user thinks <num> is a linear address)
- fixed bogus return value in DEBUG_AddBreakpoint
2004-01-28 20:05:39 +00:00
Sami Aario a24da03943 Fix a debug message. 2004-01-27 03:59:36 +00:00
Eric Pouech 48f97983d7 - get rid of winedbg internal channels for output
- move all standard (old MESG channel) output to stdout
- move all other outputs (TRACE, WARN...) to a new wine debugging
  channel (winedbg)
- replaced quite a few #ifdef:ed out output to new channels (mainly in
  symbol management area...)
- added a new maintenance commands to ease up debugging
- updated documentation accordingly
2003-12-15 19:53:08 +00:00
Andrew de Quincey fc0968d4d1 Fixed one more HeapReAlloc call. 2003-11-30 02:53:29 +00:00
Alexandre Julliard 402b79a1e8 Porting fixes. 2003-11-27 00:59:36 +00:00
Alexandre Julliard 49a98285ed Fixed one more HeapReAlloc call. 2003-11-26 04:10:08 +00:00
Rein Klazes 8404438f71 Let "info wnd" print the client rectangle in screen coordinates. 2003-11-05 00:36:23 +00:00
Rolf Kalbermatter 76f13deb26 Use INVALID_FILE_ATTRIBUTES to test for failure of
GetFileAttributesA/W and not -1 or 0xFFFFFFFF.
2003-10-16 19:12:49 +00:00
Alexandre Julliard a167c3bb68 Get rid of the memory allocation macros, use real functions instead. 2003-10-15 21:14:08 +00:00
Michal Janusz Miroslaw f3ed10a246 Extend displays: now one can add displays active only in specified
function; displays now can be enabled/disabled like in gdb.
2003-10-14 20:25:16 +00:00
Dimitrie O. Paun 921df719e5 Fix some instances of memory allocation through HeapReAlloc(). 2003-10-11 05:25:31 +00:00
Daniel Marmier 8e5bb20542 Fixed warnings with gcc option "-Wwrite-strings". 2003-10-09 04:39:01 +00:00
Alexandre Julliard c30cefb2d5 Store module names in Unicode in the server. 2003-09-30 01:04:19 +00:00
Jon Griffiths 09fefeed7a Not everyone has <unistd.h>, some files need <io.h> too (msvc). 2003-09-23 22:54:57 +00:00
Michal Janusz Miroslaw bf3de5ed6b DEBUG_cmp_sym: micro optimization/cleanup. 2003-09-22 21:12:44 +00:00
Alexandre Julliard 62986a0107 Added a few missing stdarg.h includes. 2003-09-07 05:08:14 +00:00
Alexandre Julliard e37c6e18d0 Fixed header dependencies to be fully compatible with the Windows
headers (with help from Dimitrie O. Paun).
2003-09-05 23:08:26 +00:00
Alexandre Julliard ee106783d0 Renamed EXCEPTION_FRAME to EXCEPTION_REGISTRATION_RECORD since that
seems to be the official name.
2003-08-28 03:07:56 +00:00
Alexandre Julliard 1f467ffca6 Correctly pass the exception to the application when
BreakOnFirstChance is 0.
2003-08-21 21:28:51 +00:00
Gregory M. Turner 7bcf7b1602 Wrap error-prone msc symbol loading with a __TRY block. 2003-08-19 00:57:58 +00:00
Richard Cohen 574f058bae Use the ELF sections for the addresses of globals, as the STABS are
likely to be wrong.
2003-08-07 02:56:55 +00:00
Richard Cohen 387ca9ba89 - Print short ASCII strings without the "..."
- Make printing for Unicode strings more similar to ASCII.
2003-08-07 02:56:35 +00:00
André Johansen aeffb6c312 Avoid crashing when unable to read pdb file. 2003-08-02 00:43:32 +00:00
Francois Gouget 3ca761220a Spelling fixes (s/occured/occurred/ and variants). 2003-07-15 20:53:39 +00:00
Catalin Patulea 064cce0ea2 Only display filenames when showing addresses. 2003-07-09 22:01:33 +00:00
Catalin Patulea 2e7c0de616 Fixed Unicode string output. 2003-06-30 20:19:42 +00:00
Francois Gouget c5f775a9c7 Typos/spelling fixes. 2003-06-18 03:30:39 +00:00
Alexandre Julliard 6bc5091160 Start to make use of the proper PEB structure for process
information.
2003-05-22 03:44:01 +00:00
Alexandre Julliard 0ae5c5fce8 Use int instead of socklen_t. 2003-05-13 03:38:19 +00:00
Alexandre Julliard 6da201fddf Added dummy read_elf_info for the non-ELF case (reported by Steven
Edwards).
2003-05-02 21:24:44 +00:00
Eric Pouech 5052e072e3 - added support for multi-thread in GDB remote read/write register(s)
commands
- by default, internal errors are now verbose
2003-04-19 21:27:47 +00:00
Alexandre Julliard 56b5e0862c Remove the Wine-specific EXCEPTION_CRITICAL_SECTION_WAIT define. 2003-04-04 19:41:31 +00:00
Eric Pouech c46e6747af Added support for R types in stabs parsing. 2003-04-02 01:07:53 +00:00
Alexandre Julliard 06a8c1203f Portability fixes. 2003-04-01 00:12:50 +00:00
Alexandre Julliard b88d340755 Removed uses of u_long. Use void* type for pointers where possible. 2003-04-01 00:02:36 +00:00
Alexandre Julliard 2ee8b5bb13 Replaced mkstemp by mkstemps from libiberty.
Removed a couple of unnecessary portability functions.
2003-03-20 21:07:49 +00:00
Eric Pouech 2d309da2c0 Added support for Ctrl-C handling if not running in a console.
Added (maintenance) configuration var to trigger external debugger on
winedbg's exceptions.
2003-03-04 02:18:20 +00:00
Eric Pouech 41018add5d Removed no longer needed UseXTerm internal variable. 2003-02-27 01:42:39 +00:00
Marcus Meissner 9a1b221e80 Print out name of float exceptions. 2003-02-24 20:38:44 +00:00
Eric Pouech d0882d5435 - removed unused function: SetSymbolValue
- enhanced a bit AddSymbol regarding invalid symbol management (and
  enhanced its traces)
- now printing type information in 'info sym'
2003-02-19 03:41:48 +00:00
Eric Pouech 0607e083ac - added parsing of C++ inheritence information
- added an internal trace for displaying errors in typedef parsing
- enhanced ELF symbol management (direct call to AddSymbol in ELF
  header)
2003-02-19 03:41:25 +00:00
Eric Pouech 9859ec4cdb - added GetName() to retrieve type name
- reimplemented DumpTypes so that it really dumps the types content
- now printing type information in 'info sym'
2003-02-17 01:47:38 +00:00
Eric Pouech ee04693c99 Moved expr freeing when translating a command (no longer done on each
command which uses an expr).
2003-02-17 01:47:20 +00:00
Mike Hearn 7483aea5b1 Removed the nonexistant command "debugmsg" from winedbg help screen. 2003-02-14 19:22:48 +00:00
Eric Pouech fa05849e67 Translated sprintf calls into snprintf. 2003-02-11 22:07:16 +00:00
Eric Pouech 073abfce18 - translated sprintf calls into snprintf
- added helper for sending strings in hex form
2003-02-11 22:06:19 +00:00
Eric Pouech 8e0dcc410c Attach command no longer worked as expected, fixed it. 2003-02-11 22:05:06 +00:00
Eric Pouech 084e74bdfc - Added experimental parsing for C++ code (but winedbg doesn't support
C++ ABI).
- Now loading symbols for included files.
2003-01-30 01:18:06 +00:00
Eric Pouech 45adf0843f - Removed no longer used queue & modref related commands.
- Protected walk commands while being called with no process loaded.
- In command grammar, allowed some expressions while only numbers
  where accepted.
- Renamed 'info maps' info 'walk maps' and let it work on any
  process.
2003-01-30 00:24:18 +00:00
Alexandre Julliard f8aa3b506c Added -Wpointer-arith gcc flag, and fixed the resulting warnings. 2003-01-23 21:32:35 +00:00
Alexandre Julliard b69389520c Added configure check for regex.h. 2003-01-13 18:41:40 +00:00
Eric Pouech 6843fee633 Added 'info symbol' command to look for defined symbols. 2003-01-11 22:48:42 +00:00
Eric Pouech 9957754bd8 Removed emacs edition flavor (it's now a console attribute). 2003-01-09 06:00:09 +00:00
Dan Kegel 0fd521fee3 Change RECT to use LONG to match win32 standard headers and fix format
strings to use %ld for RECT elements.
2003-01-08 21:09:25 +00:00
Eric Pouech fde8806673 Fixed protocol packet handling when winedbg is too slow to answer. 2003-01-07 19:45:40 +00:00
Eric Pouech 9ca4119688 Fixed some bugs in cast operator. 2003-01-05 20:38:05 +00:00
Eric Pouech d1ae001774 Fixed a few issues with the gdb proxy. 2002-12-16 22:10:34 +00:00
Alexandre Julliard f9875bc1ca Added y.tab.[ch] pseudo-dependencies to fix parallel makes. 2002-12-15 01:19:53 +00:00
Dimitrie O. Paun 737d4be892 Move excpt.h out of include/msvcrt/ as it does not conflict with any
standard Unix header.
2002-12-12 23:34:01 +00:00
Vincent Béron b1b696b058 Change CRLF end of lines in LF only. 2002-11-30 19:07:29 +00:00
Eric Pouech 6c963cad4e Actually exit loop on '\0' while printing a string. 2002-11-13 04:07:46 +00:00
Eric Pouech dfbaa901c2 Replaced assert by simple if + warning message for too long symbols. 2002-11-06 19:55:04 +00:00
Lionel Ulmer bdb44555a3 Raise an exception if any Wine or Winelib code does an assert. 2002-10-28 23:56:58 +00:00
Jeff Smith 97a4384dc0 Fixed behaviour of "x /s ...". 2002-10-25 19:01:32 +00:00
Gerald Pfeifer 28a7d3cbf0 Silence warning in hex_from0(). 2002-10-15 02:19:06 +00:00
Greg Turner d9db25583c Attempt at handling 'k' and 'B' symbols. 2002-09-29 18:35:31 +00:00
Eric Pouech 2fc867c045 Added ability to abort on interactive symbol lookup. 2002-09-16 19:26:48 +00:00
Alexandre Julliard f264bd326b Moved the debugger to programs/winedbg where it belongs. 2002-09-13 17:54:27 +00:00