Commit Graph

401 Commits

Author SHA1 Message Date
Eric Pouech afe309b7d9 winedump: Changed PE, NE, LE dumping so that they are consistent in terms of dump function signatures.
Avoid passing around the base of the module, but use instead the PRD function.
2006-11-30 12:34:50 +01:00
Dmitry Timoshkov 8e8e8f073d winedump: Add partial COFF library support. 2006-11-28 12:37:54 +01:00
Dmitry Timoshkov 1297e859b3 winedump: Make some data const. 2006-11-28 12:36:01 +01:00
Dmitry Timoshkov 7669035472 winedump: Constify some data. 2006-11-27 13:45:17 +01:00
Dmitry Timoshkov d8725b8850 winedump: Fix a copy/paste typo. 2006-11-27 13:45:12 +01:00
Dmitry Timoshkov 5b0eb0998a winedump: Remove a not needed include. 2006-11-27 13:45:07 +01:00
Dmitry Timoshkov 2d0ca5b2a9 winedump: Make the implementation match the prototype. 2006-11-27 13:45:03 +01:00
Kevin Koltzau 64506c0a51 winedump: Print new DLL characteristics. 2006-11-17 11:14:21 +01:00
Rob Shearman 5daafc73f9 winedump: Fix printf warning in the generated code. 2006-11-06 12:27:18 +01:00
Alexandre Julliard 01ee1418d6 winedump: Avoid some dead code. 2006-10-27 14:19:32 +02:00
Michael Stefaniuc 15765dd953 The Data1 member of the GUID struct needs to be an unsigned int too for Win64 compatibility. 2006-10-16 10:53:04 +02:00
Alexandre Julliard 6a9222fc39 Fixed some printf warnings caused by using sizeof. 2006-10-12 14:58:25 +02:00
Michael Stefaniuc 0fb444b58c tools: Remove redundant NULL checks before free() (found by Smatch). 2006-10-10 12:56:20 +02:00
Michael Stefaniuc ba123abf57 winedump: Win64 printf format warning fixes. 2006-10-02 11:55:07 +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
Detlef Riekenberg 32378f7c83 winedump: Remove the shell script reference from the man-page. 2006-09-29 14:42:27 +02:00
Alexandre Julliard 32ab895e46 makefiles: Generate the dependencies line to avoid some code duplication. 2006-09-14 09:38:16 +02:00
Eric Pouech c2f1240a53 winedump: Added -G option to dump raw stabs information from PE files. 2006-08-28 11:44:45 +02:00
Alexandre Julliard a7447794a5 winedump: Get rid of the install script. 2006-08-25 11:50:45 +02:00
Andrew Talbot d4c35ae0cb winedump: Cast-qual warnings fix. 2006-08-24 11:51:51 +02:00
Stefan Leichter 8904529dda winedump: Print each 64bit integers as two 32 bit integers. 2006-08-17 11:20:26 +02:00
Colin Pitrat ab2cdead77 tools: Check for open return code in Perl scripts. 2006-08-10 11:30:37 +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
Andrew Talbot a695805ced winedump: Write-strings warnings fix. 2006-07-14 12:27:19 +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
Detlef Riekenberg dbdb8e2ea1 winedump: Add DLL_WINE_PREATTACH to the generated DllMain. 2006-06-21 11:13:13 +02:00
Detlef Riekenberg 52404421ba winedump: Use ntdll as template. 2006-06-21 11:13:07 +02:00
Jonathan Ernst 360a3f9142 Update the address of the Free Software Foundation. 2006-05-23 14:11:13 +02:00
Eric Pouech 98783faaec winedump: Constify some pointers. 2006-04-11 12:34:18 +02:00
Alexandre Julliard 1e160c8418 winedump: Added detection of Wine fake dlls.
Also pass the real start of the file to the dump functions, instead of
having the generic code care about the specifics of the individual
file formats.
2006-04-11 12:30:09 +02:00
Marcus Meissner 8ab9a65bac winedump: Use fchmod() instead of doing system(chmod). 2006-04-08 15:53:07 +02:00
Mike Frysinger 5392844392 Add support for 'make install DESTDIR'. 2006-02-14 13:51:38 +01:00
Hans Leidekker 1017bcc448 winedump: Fix compilation of generated source.
Include config.h in the .c file, not in the .h file.
2006-01-18 17:33:10 +01:00
Eric Pouech a6e27ea9c0 winedump: Const correctness fixes. 2005-12-13 11:11:38 +01:00
Alexandre Julliard 0ec7e1a591 Renamed all .cvsignore files to .gitignore. 2005-11-26 13:10:33 +01:00
Mike McCormack b191c3daef Handle msi component identifiers without a feature guid. 2005-11-02 10:55:13 +00:00
Mike McCormack bb05f9e9eb Make sure the component string is nul terminated. 2005-10-18 10:36:38 +00:00
Dmitry Timoshkov b99fa1546c Rename struct option in order to avoid a conflict with wine/port.h. 2005-10-11 19:55:11 +00:00
Alexandre Julliard 12a749984c Put Wine version information in all the man pages. 2005-10-06 16:10:01 +00:00
Dmitry Timoshkov ea4586215e Ignore the delay load directory size. 2005-10-06 11:34:29 +00:00
Alexandre Julliard f5e49be317 Fixed dumping of the import directory to ignore the directory size. 2005-10-04 15:55:33 +00:00
Dmitry Timoshkov 9e52816b07 Add support for dumping delay load PE data. 2005-10-04 15:49:52 +00:00
Alexandre Julliard 261e376495 Fixed a number of pointer to integer conversions that wouldn't work
right on a 64-bit platform.
2005-09-12 15:14:06 +00:00
Alexandre Julliard 14e70340e2 Fixed get_time_str definition to match the prototype. 2005-09-09 09:12:27 +00:00
Dmitry Timoshkov f861818081 Dump more .lnk file header fields. 2005-09-08 18:54:32 +00:00
Steven Edwards 779f4d0019 Correct size check. 2005-08-11 10:33:29 +00:00
Mike McCormack 4f995bd6e6 gcc 4.0 warning fix. 2005-08-08 17:58:41 +00:00
Alexandre Julliard 49b7fdcfc0 Removed the broken mmap64 configure check, and moved the
_FILE_OFFSET_BITS define to wine/port.h. Made sure that all files that
need the define include it.
2005-08-03 21:25:10 +00:00
Stefan Huehner 76fdac0368 Fix some -Wsign-compare warnings. 2005-07-21 11:58:39 +00:00
Kevin Koltzau 4029ee29a4 Add support for dumping 64bit PE files. 2005-07-19 11:44:44 +00:00
Mike McCormack 723ee0a3bc gcc 4.0 -Wpointer-sign fixes. 2005-07-05 14:26:54 +00:00
Alexandre Julliard dd41c12dff Added dumping of NE segments and relocations. 2005-07-01 19:23:39 +00:00
Francois Gouget 02c25a8981 Assorted spelling fixes. 2005-06-30 18:19:33 +00:00
Mike McCormack 8dd7f06e3a Fix declarations. 2005-06-23 09:48:15 +00:00
Mike McCormack 54fc5edd52 Dump out the msi information in more detail. 2005-06-09 09:48:02 +00:00
Hans Leidekker 97d1b11ebd Fix uninitialized warnings. 2005-05-24 12:34:29 +00:00
Dmitry Timoshkov 8eb1a29a74 Print data offset additionally to prefix while dumping data. 2005-05-24 11:45:14 +00:00
Robert Shearman c5bc264706 Fix -Wwrite-strings warnings. 2005-05-23 10:28:17 +00:00
Dmitry Timoshkov 23001da0c4 Print also flags and length of NE resources. 2005-05-20 09:41:16 +00:00
Alexandre Julliard f1660daef9 Removed a bunch of obsolete makefile hacking sed code. 2005-05-06 19:34:22 +00:00
Alexandre Julliard 240d4ee9e1 Remove a few more instances of strncpy. 2005-04-25 15:51:45 +00:00
Francois Gouget 9c932e5348 Mention the 'emf' and 'lnk' modes in the usage summary.
Add -? and --help synonyms for -h as is customary.
puts("") already prints a '\n' so we don't need a second one.
2005-04-15 16:11:13 +00:00
Eric Pouech 627aeca259 Created dump.c as a central point for file dumping (includes header
analysis, utility funcs...).
Added support for dumping minidump files.
2005-03-07 11:03:53 +00:00
Francois Gouget fbb3343547 Assorted spelling fixes. 2005-03-02 13:53:50 +00:00
Mike McCormack fa38d5429e Dump the pidl of a lnk file. 2005-02-25 16:50:39 +00:00
Jon Griffiths cb613f5111 Use config.h & HAVE_ where needed, -W fixes. 2005-02-22 14:52:35 +00:00
Gerald Pfeifer 153a59744e Use stdlib.h instead of non-standard malloc.h. 2005-02-18 12:57:48 +00:00
Mike McCormack f81e0b03e2 Dump out more details on the target of a link. 2005-02-18 12:53:05 +00:00
Mike McCormack 50e9c0145d Add dumping of lnk files. 2005-02-17 11:51:23 +00:00
Peter Berg Larsen 87b0ac2e1f Fix a return type bug after allowing 'foo *functionname()'
prototypes. In 'unsigned char *functionname()' char was not seen;
therefore implicit 'unsigned int'.
2005-01-05 13:23:17 +00:00
Mike McCormack 888c1f2da5 Extend winedump to allow dumping enhanced meta files. 2005-01-04 20:32:25 +00:00
Peter Berg Larsen 08aa87fb57 Currently a '//****' is matched as an /* comment - disallow a '/' in
front of the '/*' match. An 'extern "C" {' can be split in several
lines - allow '\n' as space, and lookout for the rest if partial
found.
2005-01-03 20:18:58 +00:00
Peter Berg Larsen 6beae245ea In function_grep.pl and symbol.c/symbol_clean_string spaces between
the function name and * are removed. Fx. the type 'void * foo()' is
returned as 'void *foo()'. Recognized this as a valid prototype in
symbol_search.
2005-01-03 20:18:23 +00:00
Peter Berg Larsen 73ef3155cf Added the word "FLOAT" to be recognized as argument type float. 2005-01-03 20:16:23 +00:00
Alexandre Julliard 42c5cde5cd Warning fixes. 2005-01-03 17:15:37 +00:00
Robert Reif 2e991c351d Added partial VxD support. 2005-01-03 14:48:49 +00:00
Francois Gouget ae8682f277 Spelling fixes. 2004-12-22 15:02:14 +00:00
Peter Berg Larsen a3c259603b Allow several -I parameters to be given - currently just the last is
used. Remove obvious wrong binaries when searching for the definition
of a functions definition. Really just strip a '.dll' extension and
not also '.dll.foorbar.spec'.
2004-12-20 16:52:26 +00:00
Peter Berg Larsen 5b2159c460 Warzone 2100 has in a header a definition that ends with a slash. As
'.' does not include '\n' winedump keeps looking ahead until eof.
2004-12-20 16:50:35 +00:00
Eric Pouech 294835a839 Another round of const correctness fixes. 2004-12-06 20:43:55 +00:00
Eric Pouech 763aff61a0 Another couple of missing static definitions. 2004-12-06 16:44:32 +00:00
Francois Gouget d9800f9fa9 Fix string handling.
Enable perl warnings
Add a proper --help option and usage.
2004-10-25 21:50:50 +00:00
Alexandre Julliard 92462c2b84 Added support for dumping exported entry points in NE modules. 2004-07-13 03:43:25 +00:00
Michael Stefaniuc c95385a358 - remove from README the stuff that's already in the man page
- more stuff goes from README to the man page
- spelling fixes
2004-04-09 19:06:29 +00:00
Francois Gouget b948778660 Assorted spelling fixes. 2004-03-23 23:20:16 +00:00
Alexandre Julliard 872ed63b77 Removed obsolete definitions from generated makefiles. 2004-03-02 05:00:52 +00:00
Michael Stefaniuc 8ae9b8926e Added winedump man page, heavily based on the README file. 2004-02-17 22:49:33 +00:00
Eric Pouech 6c08994c36 Be more strict about checks (especially in RVA translations). 2004-01-15 01:47:46 +00:00
Francois Gouget 640cc3f3e1 Assorted spelling fixes. 2004-01-06 22:08:33 +00:00
Dimitrie O. Paun c0232546bd Make the winehq.org domain the official one. 2003-11-26 03:55:01 +00:00
Alexandre Julliard 6d06d3b927 Cosmetics. 2003-11-11 22:04:33 +00:00
Gerald Pfeifer 4f47bbc277 Change some variables from int to unsigned to avoid signedness
mismatches.
2003-10-30 23:09:25 +00:00
Alexandre Julliard e940eb502d Added printing of the target of forwarded exports. 2003-10-27 22:11:57 +00:00
Alexandre Julliard 757caa0103 Added dumping of the resident name table of NE files. 2003-09-27 02:34:54 +00:00
Alexandre Julliard 3ca93dd715 Added dumping of message table resources. 2003-09-10 04:00:20 +00:00
Francois Gouget ae50013017 Fix the case of product and company names. 2003-09-08 19:38:45 +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
Jon Griffiths 99f90bb94f Update install script to match current build process.
Fix a warning in generated dll now we build with -DSTRICT.
2003-08-21 21:25:37 +00:00
Jon Griffiths 140eb97eef Portability fixes. 2003-08-18 20:00:44 +00:00
Jon Griffiths 2d3e50537f Use $(EXEEXT) for the winedump executable. 2003-08-18 19:49:10 +00:00
Jon Griffiths 12e701c31f Spelling fix. 2003-07-22 00:56:46 +00:00
Jon Griffiths 17c9af5fb6 Support float and function ptr args better, -W warning fixes. 2003-07-22 00:56:31 +00:00
Francois Gouget c5f775a9c7 Typos/spelling fixes. 2003-06-18 03:30:39 +00:00
Eric Pouech 6c9a08099d Listed recently added sections' types (resource, tls) for dumping to
usage strings.
Fixed some header size testing.
2003-05-13 04:47:53 +00:00
Alexandre Julliard b203b060c1 Added dumping of the TLS directory. 2003-05-08 04:01:12 +00:00
Alexandre Julliard 6606615f0b Dump string resources in a more readable way. 2003-04-02 05:20:54 +00:00
Alexandre Julliard 6a9fe36de2 Created a separate static portability library and moved some of the
libwine routines in there.
2003-03-19 22:09:16 +00:00
Jon Griffiths 59182a92c1 Only sort the number of symbols actually found. 2003-03-15 19:36:31 +00:00
Alexandre Julliard f8bac62769 Do not define __WINESRC__ when building tools and miscemu. 2003-01-09 01:57:15 +00:00
Dimitrie O. Paun 297f3d898d Define NONAMELESS{STRUCT,UNION} explicitly in the files that need them. 2003-01-07 20:36:20 +00:00
Dimitrie O. Paun 8b36681bad Rename __WINE__ to __WINESRC__. 2003-01-04 00:52:18 +00:00
Alexandre Julliard 435e2e63f4 winnt.h should not be self-contained, it must depend on windef.h so
that STRICT works correctly; moved some definitions back to windef.h
where they belong, and removed a couple of definitions that don't
exist on Windows.
2002-12-10 22:56:43 +00:00
Alberto Massari ff3dc34797 winedump was still using the "init" keyword in the .spec file. 2002-11-20 19:45:50 +00:00
Patrik Stridvall 1298eb4053 Fixed mismatches between the Wine headers and the Microsoft headers. 2002-10-23 18:50:10 +00:00
Uwe Bonnes 2c481cebcd demangle_datatype: delete superflous free(). 2002-10-19 17:16:29 +00:00
Eric Pouech 5cfcabc3e2 Fixed segv when incorrect command line arguments where given. 2002-10-07 18:22:09 +00:00
Alexandre Julliard 16f3c788d0 Preliminary support for dumping NE binaries. 2002-10-02 18:50:09 +00:00
Jon Griffiths 2caa99f2bb Update output for current build process. 2002-09-20 19:20:04 +00:00
Jon Griffiths d756a0ac93 Documentation update. 2002-09-20 19:19:34 +00:00
Jan Kratochvil b90930310c Bug fix. 2002-09-17 18:30:38 +00:00
Jan Kratochvil a58134aede New -S: Search only prototype names found in 'symfile'. 2002-09-16 23:59:53 +00:00
Alexandre Julliard dd0bdbe44e Removed the __uint* types from basetsd.h since they don't exist under
Windows. Fixed a few other issues with type definitions.
2002-09-12 17:29:12 +00:00
Andreas Mohr 52097fd703 - Implement dumping of COFF debug symbol table.
- Fix winedump syntax description.
- Spelling fixes.
2002-09-11 00:49:48 +00:00
Patrik Stridvall 1ee88a2bfb Removed trailing white space. 2002-08-28 23:43:43 +00:00
Dmitry Timoshkov f59bebe514 Make winedump compilable by MSVC. 2002-08-26 21:47:41 +00:00
Dmitry Timoshkov c63d98038a Include protection for <unistd.h>, <sys/types.h> and <sys/stat.h>. 2002-08-17 18:28:43 +00:00
Gregg Mattinson 8a191ff5b8 Avoid structures or arrays of size 0. 2002-07-19 03:18:05 +00:00
Jon Griffiths 0d66be89ac Update output for recent build changes. 2002-07-19 00:26:41 +00:00
Gregg Mattinson 7c4cb515b6 Cast void* to char* for pointer arithmetic. 2002-07-03 21:10:43 +00:00
Alexandre Julliard 7cae558bdc Removed some more trailing whitespace. 2002-06-01 02:55:48 +00:00
Alexandre Julliard ffb4956f4a Added fallback read() for missing/failing mmap(). 2002-06-01 02:47:58 +00:00
Vincent Béron 9a62491660 Removed trailing whitespace. 2002-05-31 23:06:46 +00:00
Vincent Béron 6a5ba8fba2 Fixed some more missing \n in traces. 2002-05-29 19:09:54 +00:00
Steven Edwards 0a2d211139 Added check for sys/mman.h. 2002-05-16 18:29:11 +00:00
Eric Pouech 7f9cc2e4dc Allowed options to be put between mode keyword and main argument. 2002-05-11 22:58:57 +00:00
Alexandre Julliard ce830a9c18 Added mkinstalldirs to create directories more portably. 2002-05-09 04:31:39 +00:00
Alexandre Julliard 9a68b7bef0 Link the tools and the server against libwine so we can use the
portability functions in there.
2002-04-27 21:19:22 +00:00
Alexandre Julliard 5769d1de00 Better support for configure detection of missing types, added check
for ssize_t.
Removed a couple of no longer used portability functions.
Various portability fixes in port.h.
2002-04-26 19:05:15 +00:00
Alexandre Julliard 0799c1a780 Added LGPL standard comment, and copyright notices where necessary.
Global replacement of debugtools.h by wine/debug.h.
2002-03-09 23:29:33 +00:00
Andreas Mohr 8bc7f16caa Spelling/alignment fixes. 2002-02-27 01:34:08 +00:00
Andreas Mohr 2295e87be8 Fixed some more missing parenthesis issues. 2002-02-02 18:06:03 +00:00
Alexandre Julliard dbe2cd907d Moved debug definitions to include/wine/debug.h. 2002-01-22 00:55:18 +00:00
Francois Gouget 5f30ee0651 Comment out/ifdef out unused code and variables. 2002-01-21 23:37:53 +00:00
Francois Gouget 638ae43c89 Small typo fix. 2002-01-15 20:41:59 +00:00
Alexandre Julliard 9e458b99d0 Added support for dumping resources. 2002-01-06 19:09:17 +00:00
Eric Pouech de6d4e211b Fixed and globalized some path and module name handling.
Tweaked the demangling of function pointers as function parameters.
2001-11-05 23:54:11 +00:00
Guy L. Albertelli daa6a7a97d - eliminate different segmentation faults.
- when attempting to open a dll, append ".dll" to find it (was
  stripped previously).
- identify named exports so that the ordinal number is "@" in .spec
  file.
- setup output dll name prior to creating ordinal symbols.
- don't overlay the named exports with the ordinal exports.
- correct test for last symbol.
- fix generated install script to match current make files.
2001-10-16 21:46:58 +00:00
Eric Pouech f19887971a Some dumb fixes. 2001-09-21 21:03:53 +00:00
Eric Pouech 5bdbc1a37e Fixed demangling invocation.
Be a bit more verbose on implemented features.
2001-09-17 20:26:27 +00:00
Alexandre Julliard 705bfe9aac Fixed dumping of dll export table. 2001-09-14 00:16:12 +00:00
Eric Pouech d786a12d58 Added PE dump capabilities to specmaker and renamed specmaker into
winedump.
2001-09-07 16:04:38 +00:00