Commit Graph

309 Commits

Author SHA1 Message Date
Eric Pouech b2557f25d9 winedbg: Added a maintenance command to load a given module (for debug purposes). 2007-01-04 11:12:06 +01:00
Alexandre Julliard 7035aa5041 make_makefiles: Generate the top-level .gitignore file.
Add a PROGRAMS variable in some makefiles to make things easier.
2006-12-27 21:23:36 +01:00
Alexandre Julliard 6744929428 winedbg: Win64 printf format fixes. 2006-12-20 14:57:08 +01:00
Alexandre Julliard 2bc33389e8 winedbg: Fixed a few data types. 2006-12-20 14:57:08 +01:00
Francois Gouget 367f91fb5c Assorted spelling fixes. 2006-12-14 20:25:05 +01:00
Eric Pouech 32a8b2fa59 winedbg: Added support for constant values passed by dbghelp. 2006-12-06 11:38:53 +01:00
Eric Pouech a274689b09 winedbg: Dwarf can emit REGREL symbol information, so handle it.
Factorize a bit more some symbol handling code.
2006-12-04 14:03:19 +01:00
Eric Pouech 932ad65c83 winedbg: Now that local variable computation depends on instruction
pointer value, be sure to have the relevant insn ptr value when
fetching the stack frames (spotted by Peter Oberndorfer).
2006-12-04 14:03:04 +01:00
Eric Pouech d6d8682d71 winedbg: Added some black magic to still handle register values on non
current frame for some of the registers we know of (frame pointer,
stack pointer).
2006-12-04 14:02:02 +01:00
Eric Pouech 4c634078b3 winedbg: Remove some hassle from sgv_cb, and handle line number displacement where needed. 2006-12-04 14:01:38 +01:00
Eric Pouech 66cbe625d4 winedbg: No longer test filename in sgv_cb, but do it in the only place where we actually need it. 2006-12-04 14:01:02 +01:00
Eric Pouech 7ca25148f4 winedbg: Added basic support for printing 64bit wide entities. 2006-11-27 18:09:30 +01:00
Eric Pouech 135f2e1b79 winedbg: Host references lookup.
Since more and more information in now available through the CPU
registers, those require DLV_HOST access to be a bit better handled
than it is...
2006-11-27 18:07:00 +01:00
Eric Pouech 62f16d3cd4 winedbg: Various information printing issues.
- in backtraces, (void) functions should be listed with '()' as arguments instead of ''
- factorized code for diplaying information about a local/parameter
- fixed a couple of bugs here
- rewrote format specifiers for print commands (do no waste space for padding data)
- added support for new wine's dbghelp extension for local/parameter
  variables being out of scope
2006-11-27 18:06:41 +01:00
Eric Pouech ec087dac4f winedbg: Added a few more cases where we inspect if i386 instructions
are actually calls (based on previous work by Jeff Latimer).
2006-10-23 12:27:00 +02:00
Peter Oberndorfer 9e30761951 winedbg: Print frame address instead of duplicated bare address in backtrace. 2006-10-18 12:35:20 +02:00
Francois Gouget 82babbee0b Add missing '\n's to Wine traces. 2006-10-05 17:46:48 +02:00
Eric Pouech 6a0568a11a winedbg: Rewrote the file handling to use SearchPath instead of home grown version. 2006-10-03 20:19:19 +02:00
Eric Pouech 28dc896b28 winedbg: Fixed the auto mode. 2006-10-03 11:54:36 +02:00
Peter Oberndorfer b480668942 winedbg: Don't try to read to invalid memory if winedbg does not find the thread. 2006-10-02 21:37:34 +02:00
Michael Stefaniuc 85ce5117c5 Add a WINE_NO_LONG_INT define to many makefiles to ease the transition of DWORD/LONG/ULONG from long to int. 2006-09-29 16:08:30 +02:00
Eric Pouech 588a4422b0 winedbg: Fixed regression in gdb startup (especially gdb proxy). 2006-09-26 12:04:06 +02:00
Eric Pouech e3f8799a42 winedbg: Put back the %d format for printing integral values even for
64bit internal values as the default format in winebdg command imposes.
2006-09-26 11:59:55 +02:00
Alexandre Julliard a27d0aa4e9 include: Added definitions for the fault address exception information. 2006-09-20 11:27:53 +02:00
Alexandre Julliard 32ab895e46 makefiles: Generate the dependencies line to avoid some code duplication. 2006-09-14 09:38:16 +02:00
Alexandre Julliard 1be6e9a6b1 winedbg: Change the prefix on bison-generated names to avoid the name-prefix directive. 2006-09-12 09:04:43 +02:00
Alexandre Julliard bcdc5fb55f Make.rules: Set the default prefix for bison files from the file basename. 2006-09-11 21:47:49 +02:00
Alexandre Julliard 145a0ba508 makefiles: List bison dependencies explicitly for parallel makes, since older bisons don't support --defines. 2006-09-11 21:43:11 +02:00
Alexandre Julliard 9c085cba0a makefiles: Add global rules for bison and lex files.
Also build the .c and .h files separately to allow parallel makes.
2006-09-09 13:16:22 +02:00
Alexandre Julliard dfd1abfa57 winedbg: Allow building without debug support in the parser. 2006-09-09 11:26:35 +02:00
Alexandre Julliard c58614fd2c winedbg: Specify the lex options directly in the source file. 2006-09-09 11:25:41 +02:00
Marcus Meissner b3a72ad1dd Remove some more unused debugging channels. 2006-08-29 12:28:58 +02:00
Eric Pouech 9766dd1a5f winedbg: Native dbghelp generate long basic types, so handle them too. 2006-08-28 11:40:58 +02:00
Stefan Huehner 803f3bd0a9 winedbg: Fix typo in manpage. 2006-08-23 16:54:28 +02:00
Eric Pouech 9e9f8af552 winedbg: Correctly protect system inclusion (needed for Mingw compilation). 2006-08-15 11:42:16 +02:00
Alexandre Julliard 1089260f29 configure: Only link against libpoll where really necessary. 2006-08-15 11:41:59 +02:00
Eric Pouech bd9ba7ec37 winedbg: Fixed the symbol lookup so that it can really find _foo when looking for foo. 2006-08-14 20:17:11 +02:00
Eric Pouech 84650ebbb2 winedbg: Native dbghelp can modify the passed debug context in StackWalk, so guard against it. 2006-08-14 20:17:11 +02:00
Eric Pouech 588589b8de winedbg: Don't ask for module inspection when calling SymInitialize. 2006-08-14 20:17:11 +02:00
Stefan Leichter 7ee81d7b03 winedbg: Print 64bit integers with wine_dbgstr_longlong. 2006-08-14 11:45:25 +02:00
Alexandre Julliard 2886e9b0e8 makefiles: Use make dependencies to create installation directories.
This avoids a lot of redundant calls to mkinstalldirs.
2006-08-07 17:48:18 +02:00
Ge van Geldorp 1d04f826c7 winedbg: Change ADDRESS variables to ADDRESS64 so we can handle 64-bit addresses. 2006-07-26 15:21:42 +02:00
Ge van Geldorp ac857cb31a winedbg: Implement some x86_64 backend routines. 2006-07-11 12:40:11 +02:00
Alexandre Julliard 88c97d7284 .gitignore: Added wildcards to ignore lex and bison output files. 2006-07-10 21:40:49 +02:00
Alexandre Julliard 028ab92bf7 make_progs: Generate the .gitignore file.
Ignore generated programs from the top-level .gitignore.
2006-07-10 20:59:06 +02:00
Alexandre Julliard cc2b3b48e6 Take advantage of the recursive nature of .gitignore for Makefile entries.
Prefix other entries with '/' to make them non-recursive.
2006-07-10 20:47:54 +02:00
Ge van Geldorp a2e94444ad winedbg: Implement be_x86_64_init_registers. 2006-07-03 11:41:53 +02:00
Ge van Geldorp f0279726eb winedbg: Adjust the parameters of the backend read/write routines to
match those of ReadProcessMemory/WriteProcessMemory, since those are
the ones actually used.
2006-07-03 11:37:29 +02:00
Eric Pouech 6cff43fd72 winedbg: Module info.
when requesting info on a module by address, always print the module
ELF/PE pair (if this applies) (and not only the embedded PE), which
can be confusing.
2006-06-27 11:19:53 +02:00
Eric Pouech 82ed6a4578 winedbg: Use 64 bit version of imagehlp_module.
This allows reimplementing the module list command and do less black
magic to guess the ELF debug format.
2006-06-27 11:19:03 +02:00
Eric Pouech e79085258b winedbg: Proper handling of typedefs.
Added types_get_real_type() to get rid of typedef information, and
access the real underlying type.
2006-06-20 11:36:25 +02:00
Ge van Geldorp e08a176007 winedbg: Added x86_64 support. 2006-06-20 11:06:31 +02:00
Alexandre Julliard d47dcbf05a winedbg: Avoid a crash when there's no backtrace to print. 2006-06-15 11:39:29 +02:00
Alexandre Julliard 68090e5d68 winedbg: sscanf arguments should be ints, not size_t. 2006-06-13 14:16:06 +02:00
Andrew Talbot a7142d435b winedbg: Write-strings warnings fix. 2006-06-12 13:21:48 +02:00
Alexandre Julliard dbd566d545 Revert "winedbg: Remove useless NOCMD state."
This reverts 92deacbe42 commit.
2006-06-06 17:15:31 +02:00
Juan Lang b885b76146 winedbg: Get rid of unused mode command. 2006-06-05 21:01:40 +02:00
Juan Lang 92deacbe42 winedbg: Remove useless NOCMD state. 2006-06-05 13:50:23 +02:00
Eric Pouech 65da8987d5 winedbg: Correct typedefs in type manipulations. 2006-06-05 13:24:24 +02:00
Juan Lang a866fa37e9 winedbg: Fix a crash on initial empty input. 2006-06-03 11:58:34 +02:00
Jonathan Ernst 360a3f9142 Update the address of the Free Software Foundation. 2006-05-23 14:11:13 +02:00
Eric Pouech 820141114e winedbg: extract_as_integer
- now supporting extract_as_integer on functions (so that, 
  for example, 'disas foo' works as expected)
- now properly handling errors when calling extract_as_integer
2006-05-17 10:41:41 +02:00
Eric Pouech bf8509d37c winedbg: Fixed regression for command 'bt all'.
Don't print 'process has terminated' message when detaching from a
process (or backtracing it).
2006-05-15 11:04:05 +02:00
Petr Tesarik 68f8d28945 winedbg: Fix stepping over an instruction. 2006-03-27 12:14:20 +02:00
Eric Pouech f661e7a924 winedbg: Fixes for identifiers.
- fixed lexical rules for a path name
- fixed identifier rules so that we get the right precedence
  between ! and ::
- modules (in mod!name forms) are now handled as tIDENTIFIER
  (tPATH was buggy anyhow)
2006-03-27 11:30:50 +02:00
Jeff Latimer 0994126701 winedbg: Add display for floating point status.
Added code to examine and display floating point unit status into
be_i386.c as info all-regs command.
2006-03-21 16:30:47 +01:00
Jeff Latimer 18f5d0abdc winedbg: Copy floating point status to the dbgcontext. 2006-03-20 12:04:00 +01:00
Eric Pouech db90e17d92 dbghelp: Live target detection.
- DBGHELP_NOLIVE env variable is tested earlier to avoid 
  some strange effects in live target detection
- in WineDbg, delete DBGHELP_NOLIVE before attaching to
  a process, because we know it must be a live target
2006-03-18 18:05:38 +01:00
Petr Tesarik 315c4e78cb winedbg: Fix lcall instruction opcode. 2006-03-10 21:41:09 +01:00
Eric Pouech 81198f3971 winedbg: Bring usage() and .man up to date. 2006-03-02 11:55:12 +01:00
Eric Pouech 348067a9bf winedbg: Add ability to reload a minidump.
- now recognize winedbg foo.mdmp on command line
- fleshed out tgt_minidump to reload information from minidump
2006-03-02 11:49:41 +01:00
Eric Pouech c918e80ed2 winedbg: process_io
- added ability to specify process_io at process creation/attachment
  time
- created a process_io structure for gdbproxy
2006-03-02 11:48:43 +01:00
Eric Pouech f29d084c37 winedbg: main_loop.
- split dbg_main_loop in two parts (one for finishing the debuggee
  attachment, the second one really for handling the main loop)
- removed now longer needed dbg_main_loop
2006-03-02 11:43:10 +01:00
Eric Pouech 5ca519705d winedbg: Added a close_process method to process_io.
- added a close_process method to process_io
- made use of it to get rid of dbg_detach
2006-02-28 12:07:23 +01:00
Eric Pouech 4202c752d3 winedbg: Extend auto mode with minidump.
- added -minidump and -minidump <file> options to command line

Those options are to be used in remplacement of --auto to create a minidump
In the form --minidump <file>, the minidump will be created in <file>,
otherwise the filename will be automatically generated.
2006-02-28 12:06:33 +01:00
Eric Pouech 67001a1d8b winedbg: Rewrite auto mode.
- rewrote auto mode as a specific set of commands to be run in
  regular parser, instead of hard coding those commands
- added a new function to store a set of commands to be executed
  in a file
- added 'echo' command to the parser functions
- got rid of dbg_action_mode
- added support of '--' on command line
2006-02-28 12:05:15 +01:00
Eric Pouech 22ff946409 winedbg: Fixed regression in gdb handling. 2006-02-28 12:05:06 +01:00
Eric Pouech 893d7524c7 winedbg: Auto mode.
- rewrite auto mode startup
- move part of auto handling to tgt_active.c
2006-02-27 14:30:18 +01:00
Eric Pouech a67f8e862e winedbg: Move gdb command line handling.
- moves gdb command line handling to gdbproxy.c
- using manifest constants to make code more readable
2006-02-27 14:22:21 +01:00
Eric Pouech ac7be1e91b winedbg: Active and command line.
- move process attachment and process creation (related to command
  line handling) from winedbg.c to tgt_active.c
- tidy up argument parsing
2006-02-27 14:19:57 +01:00
Eric Pouech f16f847cc7 winedbg: Cleanup the process_io usage.
- made be_process_io references 'const'
- make use of it for dbg_read_memory and dbg_write_memory
2006-02-27 14:17:25 +01:00
Eric Pouech 829e002c3f winedbg: Active targets
Move all code related to an 'active' target (ie a running process)
from winedbg.c to tgt_active.c.
2006-02-27 14:14:05 +01:00
Eric Pouech 804cd257f6 winedbg: Fixed regression: stack info was no longer working. 2006-02-20 11:03:33 +01:00
Eric Pouech a7ff2f671c winedbg: A couple of fixes after running valgrind. 2006-02-16 12:06:43 +01:00
Eric Pouech 467ba4d398 winedbg: Allow using MSVC mangled symbol names as identifiers. 2006-02-14 14:03:52 +01:00
Mike Frysinger 5392844392 Add support for 'make install DESTDIR'. 2006-02-14 13:51:38 +01:00
Eric Pouech 2ce5eca6a5 winedbg: Added support for function parameters passed in registers.
Added correct stabs parsing for function parameters in registers.
Added a couple of helper functions to make code smaller and more
readable.
2006-02-06 11:27:32 +01:00
Eric Pouech 6ab9b23526 winedbg: Hardware breakpoints
- implemented hardware assisted breakpoints (new 'hbreak' command
  which behaves just as 'break' command)
- small improvements to break handling (saving hit xpoint across
  exception handling)
- fixed 'cont N' command for watchpoints
2006-01-27 16:17:22 +01:00
Alexandre Julliard b7b7f2b679 Avoid importing _strlwr/_strupr from ntdll. 2006-01-24 12:24:05 +01:00
Alexandre Julliard 9daaab54c7 winedbg: Use Win32 types instead of long long. 2006-01-23 16:47:07 +01:00
Eric Pouech 9d0b5f5372 winedbg: Added a more decent scheme for handling segmented addresses. 2006-01-23 16:26:40 +01:00
Alexandre Julliard 1e96455094 Remove YY_NO defines that cause warnings. 2006-01-05 12:20:05 +01:00
Alexandre Julliard 0ae2c69c7a Added some flex options to avoid compiler warnings.
Moved options from the Makefile into the source.
2006-01-03 12:16:05 +01:00
Eric Pouech 4d7f9f7c65 winedbg: Fixed broken code about type management for binary operator. 2005-12-06 10:57:17 +01:00
Eric Pouech 34db4856ae dbghelp,winedbg: SYMBOL_INFO fix.
- native dbghelp returns in SYMBOL_INFO.TypeIndex the index of the
   type of the symbol (we were returning the symbol index instead)
- fixed winedbg accordingly
2005-12-05 12:00:54 +01:00
Eric Pouech 56dcea4d16 winedbg: simplify some code. 2005-12-03 18:09:59 +01:00
Eric Pouech 30121124b9 winedbg: fixed regression (and simplified code!) for arguments
printing in backtrace.
2005-12-03 18:02:49 +01:00
Eric Pouech 28c503a947 winedbg: fixed regression in 'info local' command. 2005-12-03 18:02:31 +01:00
Eric Pouech c238ec520f Replaced stack_get_frame with a pure symbol (and no longer stackframe)
oriented API (stack_get_current_symbol).
Reused the func name (stack_get_frame) for internal stack.c handling.
2005-11-29 11:24:04 +01:00
Ge van Geldorp 1a1583a364 Match PSDK STATUS_* definitions. 2005-11-28 17:32:54 +01:00