Commit Graph

90 Commits (8fe8a100c8d488be589e0f075603f77b006a6e8d)

Author SHA1 Message Date
Marcus Meissner 30c1df4a08 dbghelp: Add a missing NULL check (Coverity). 2009-12-09 12:03:47 +01:00
Eric Pouech 6a1b2a9ca5 dbghelp: Enhance support for constant values in dwarf debug information. 2009-10-05 14:56:24 +02:00
Andrew Talbot f4d2db4c54 dbghelp: Constify some variables. 2009-07-15 13:23:00 +02:00
Alexandre Julliard 75792a3e69 dbghelp: Grow all arrays by doubling the size. 2009-07-10 14:46:55 +02:00
Eric Pouech 4008943502 dbghelp: Simplify the resort operation (module address table) by using binary insertion instead of resorting the whole array. 2009-06-26 12:01:07 +02:00
Eric Pouech 609ec7b11d dbghelp: when (re)building the per module symbol table (lookup by address), no longer iterate over the hash table.
Directly add to the table when adding a new symbol.
2009-06-26 12:01:00 +02:00
Eric Pouech dde39fddc5 dbghelp: Factorize symbol insertion into module by address table. 2009-06-26 12:00:38 +02:00
Alexandre Julliard 329c22f323 dbghelp: Add a few more 64-bit symbol functions. 2009-04-23 12:41:29 +02:00
Ken Thomases d7466e0c4e dbghelp: Add support for debugging Mach-O modules. 2009-03-25 12:17:29 +01:00
Ken Thomases b8f6a68d6f dbghelp: Rename some things to be less ELF-centric. 2009-03-12 13:09:56 +01:00
Alexandre Julliard 0f3445d6db dbghelp: Fix handling of empty file regexp (Coverity). 2009-02-09 14:37:22 +01:00
Alexandre Julliard 601a1364b9 dbghelp: Moved SymEnumLines to symbol.c to reuse the regex support. 2009-02-04 13:13:08 +01:00
Alexandre Julliard 768954b245 dbghelp: Fall back to string comparison if regex support is missing. 2009-02-04 13:02:08 +01:00
Alexandre Julliard e9610f674c dbghelp: Allocate enough memory initially for regexps instead of growing the buffer. 2009-02-04 13:00:31 +01:00
Michael Stefaniuc 3c3a9b5081 dbghelp: Remove superfluous pointer casts. 2009-01-19 13:36:25 +01:00
Francois Gouget 9c5e97aa71 Assorted spelling fixes. 2008-11-24 14:25:10 +01:00
Eric Pouech 7abf97ca47 dbghelp: Added stub for SymSetScopeFromAddr. 2008-10-01 09:48:06 -05:00
Eric Pouech 49a44342fa dbghelp: Added stubs for add symbol functions. 2008-10-01 09:47:41 -05:00
Andrew Talbot c9563e10fc dbghelp: Sign-compare warnings fix. 2008-09-25 11:28:58 +02:00
Eric Pouech 5ad756fb3c dbghelp: Use the correct size for global variable when searching for a symbol. 2008-09-08 12:47:20 +02:00
Jon Griffiths c683753185 dbghelp: Implement SymEnumerateSymbols64. 2008-06-21 11:13:37 +02:00
Eric Pouech ee1a9af0ce dbghelp: When sending back information about a global symbol, only demangle the class & field/method name. 2008-02-07 11:59:52 +01:00
Eric Pouech a4dfe1b042 dbghelp: Added support for labels outside functions (and used it in msc parsing). 2008-02-07 11:59:52 +01:00
Francois Gouget 9d2f48dc0f dbghelp: Better match the PSDK types, especially with regards to constness.
Also add a number of missing prototypes, especially 64bit or Unicode
versions of existing prototypes, and the related structures.  Update
win32.api to fix the winapi_check warnings.
2007-08-03 12:43:40 +02:00
Markus Amsler 8bc839a816 dbghelp: Speed up vector iteration by directly using for(). 2007-05-15 20:19:53 +02:00
Andrew Talbot a224fdb14e dbghelp: Constify some variables. 2007-04-20 13:04:11 +02:00
Andrew Talbot 6a23efdaa2 dbghelp: Replace inline static with static inline. 2007-03-21 16:02:57 +01:00
Eric Pouech f2cfb374a4 dbghelp: Get rid of module_name in all traces (using Unicode flavor). 2007-03-13 21:02:42 +01:00
Eric Pouech ade919c603 dbghelp: Cleanups for module loading (lookups on module name and image name are two different things)
- split up module_find_by_name in two different functions:
  + reused module_find_by_name which looks upon the module name
  + added module_is_already_loaded which looks upon the image name
- cleanup module loading using these functions (removed extra parameter
  to pe_load_module_from_pcs)
2007-03-13 20:58:08 +01:00
Eric Pouech ccf0be8e57 dbghelp: Implemented SymEnumTypesW. 2007-03-05 12:15:16 +01:00
Eric Pouech 43dffcd05d dbghelp: Now storing module information in Unicode form. 2007-02-22 11:39:08 +01:00
Eric Pouech aac77c98a2 dbghelp: Added an ANSI copy of the module name (useful for next patches). 2007-02-22 11:28:53 +01:00
Eric Pouech 75033503e8 dbghelp: Added ability to internal store / reload a symbol with a constant value.
Let dwarf and msc use this new feature.
As we also add global symbol without addresses, don't take those
constant symbols into account for searches by address.
2006-12-06 11:38:43 +01:00
Eric Pouech a1a879363d dbghelp: Added a field to the hash table to store the number of elements in the hash table.
Make use of it to get rid to module_compute_num_syms.
2006-12-06 11:37:38 +01:00
Eric Pouech 4806320b48 dbghelp: In find_nearest, now return the symbol instead of its index in module->sorttable. 2006-12-06 11:37:10 +01:00
Eric Pouech 8e7b2e0fd7 dbghelp: Get rid of long int issues on 64bit platforms. 2006-11-30 13:26:39 +01:00
Eric Pouech 0d942b3aaa dbghelp: Function points location is now expressed as a struct location. 2006-11-27 17:55:44 +01:00
Eric Pouech d812f8b42c dbghelp: Added infrastructure to compute variable location at runtime (as opposed to debug info parse time).
Use it to send the variables depending on not known frame register at parse time.
Made just a stub for the location computation function for dwarf2.
2006-11-27 17:55:17 +01:00
Eric Pouech 20fc25bc55 dbghelp: Use the location info structure thoughout the code to handle the location of a data variable. 2006-11-27 17:54:39 +01:00
Eric Pouech 1a723f237c dbghelp: Store compiland's address in internal structures. 2006-11-27 17:49:50 +01:00
Eric Pouech 4bcca691d1 dbghelp: When looking up for a local variable (or parameter), pass the function pointer. 2006-11-27 17:49:27 +01:00
Eric Pouech 32c96adddd dbghelp: Added a process field to the modules pair structure.
This makes the code simpler to read, a bit more efficient, and
furthermore it'll be needed in future patches.
2006-11-27 17:49:01 +01:00
Eric Pouech 6c4c64265d dbghelp: Variables & registers.
- more strickling differentiation variable location between 
  a register, and the dereferenced address defined by a
  register (and possibly an offset)
- added a parameter to symt_add_func_local (and internal symbol
  data struct) to help differentiate
- fix all debug parsers to confer to this new scheme
2006-09-26 11:48:39 +02:00
Andrew Talbot 2f8c51f547 dbghelp: Cast-qual warnings fix. 2006-09-08 16:07:43 +02:00
Eric Pouech 83c30a55b8 dbghelp: Made stabs parsing a bit more robust.
Enhance dbghelp's robustness against bogus stabs sections found in
meetro.exe (as reported by Jan Zerebecki).
2006-08-09 23:08:00 +02:00
Robert Shearman 5c8b22f385 dbghelp: Implement SymGetSymFromAddr64. 2006-07-26 10:23:19 +02:00
Eric Pouech 7af4097d80 dbghelp: Added the ability to define a source file by dir+filename instead of only filename. 2006-06-20 11:54:40 +02:00
Eric Pouech cff41cf9f2 dbghelp: Storage of func locals & parameters.
- added the ability to tell to add_func_local whether we're adding
  a local variable or a parameter (and removed the black magic
  we were using)
- we can now address variables defined as an offset to a register
2006-06-20 11:47:38 +02:00
Jonathan Ernst 360a3f9142 Update the address of the Free Software Foundation. 2006-05-23 14:11:13 +02:00
Eric Pouech c25d3ac7d5 dbghelp: Implemented SymSearchW. 2006-05-11 12:18:46 +02:00