Commit graph

6486 commits

Author SHA1 Message Date
Alexandre Julliard 90cc094260 winedump: Print entry point names in code range lists. 2023-04-21 16:34:29 +02:00
Alexandre Julliard 7e8ac46a5c makedep: Avoid generating empty dependencies. 2023-04-21 09:59:37 +02:00
Alexandros Frantzis 8570016783 tools: Support building Wayland protocol source files.
Wayland protocol descriptions are distributed as source XML files that
need to be transformed to C source and header files with a version of
the wayland-scanner tool compatible with the used libwayland library.

This commit enhances the makedep build tool to support building such
Wayland protocol XML files.

Signed-off-by: Alexandros Frantzis <alexandros.frantzis@collabora.com>
2023-04-21 09:59:37 +02:00
Piotr Caban 0d95b82182 wineps: Add BiDi support in EMR_EXTTEXTOUTW record. 2023-04-19 14:19:46 +02:00
Alexandre Julliard fe693a7047 winedump: Dump hybrid metadata also for i386 CHPE modules. 2023-04-18 17:49:51 +02:00
Alexandre Julliard 6e348640c5 include: Add some CHPE definitions. 2023-04-18 17:49:23 +02:00
Alexandre Julliard c8a79e7bc6 winedump: Apply all dynamic relocations before dumping alternate PE headers. 2023-04-14 18:56:23 +02:00
Mohamad Al-Jaf 3b31e75395 widl: Add support for WinRT HANDLE parameter type.
Needed by windows.ui.composition.interop.idl.
2023-04-13 10:25:19 +02:00
Jacek Caban 84f1f36686 mshtml: Wine Gecko 2.47.4 release. 2023-04-10 16:19:33 +02:00
Eric Pouech 020b6e094f winedump: Fix out of bounds access (spotted by GCC13).
Anyway, it's a pain that we have to maintain two MS symbols
demanglers (this one and the one in dlls/msvcrt).

Signed-off-by: Eric Pouech <epouech@codeweavers.com>
2023-04-05 11:37:19 +02:00
Mohamad Al-Jaf 712f87ee8e widl: Add support for composable attribute.
Needed to build windows.ui.composition.idl.
2023-04-03 16:52:01 +02:00
Mohamad Al-Jaf a7e1c707f1 widl: Add support for protected attribute. 2023-04-03 16:52:01 +02:00
Mohamad Al-Jaf 781b8b0e99 widl: Add support for inherited runtime classes.
Needed to build windows.ui.composition.idl.
2023-04-03 16:52:01 +02:00
Francois Gouget 99f77667bb widl: Error_loc() messages must have a trailing linefeed. 2023-03-27 17:43:18 +02:00
Rémi Bernon 78c5e3ab03 widl: Define PARSER_LTYPE instead of api.location.type.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54729
2023-03-27 11:05:34 +02:00
Rémi Bernon bf9d15e3b1 widl: Use warning_at when reporting duplicate attributes. 2023-03-24 21:49:27 +01:00
Rémi Bernon 3d79c1f56d widl: Add source location information to attributes. 2023-03-24 21:49:27 +01:00
Rémi Bernon a10740f319 widl: Remove custom attribute creation helper. 2023-03-24 21:49:27 +01:00
Rémi Bernon 7771a9ae79 widl: Simplify attribute creation with either int or ptr value. 2023-03-24 21:49:27 +01:00
Rémi Bernon f36fbb3788 widl: Move attribute related functions to attribute.c. 2023-03-24 21:49:27 +01:00
Rémi Bernon f79ae4a95c widl: Use spaces to indent attribute rules more consistently. 2023-03-24 21:49:26 +01:00
Rémi Bernon 3149d27220 widl: Print the import stack and context in messages. 2023-03-23 16:44:34 +01:00
Rémi Bernon 472b2ecad4 widl: Improve accuracy of error messages location. 2023-03-23 16:44:34 +01:00
Rémi Bernon 071b0a5532 widl: Enable bison locations option. 2023-03-23 16:44:34 +01:00
Rémi Bernon 2edd194a00 widl: Move diagnostic and location functions to parser.l. 2023-03-23 16:44:34 +01:00
Rémi Bernon be1e308253 widl: Allow source location to span over multiple lines. 2023-03-23 16:44:34 +01:00
Rémi Bernon edca5937fb widl: Rename (error|warning)_loc_info to (error|warning)_at. 2023-03-23 16:44:34 +01:00
Rémi Bernon f869c8e7a3 widl: Lex calling convention variations toghether. 2023-03-20 21:03:32 +01:00
Rémi Bernon 53ae787d02 widl: Simplify reserved keywords lexing. 2023-03-20 21:03:32 +01:00
Rémi Bernon 858ec42a31 widl: Simplify preprocessor directive lexing. 2023-03-20 21:03:32 +01:00
Rémi Bernon 83f9f2cd3c widl: Remove unused lexer aliases. 2023-03-20 21:03:32 +01:00
Rémi Bernon abbf6cefc5 widl: Simplify uuid literals lexing. 2023-03-20 21:03:32 +01:00
Alexandre Julliard 78dc4ce7a0 widl: Pass the correct parent name when opening an import file.
Fixed a regression from 9d537999e3.
2023-03-20 17:10:45 +01:00
Rémi Bernon d359837fcc widl: Avoid freeing input_name in pop_import.
The pointers are used in loc_info input_name without copy.
2023-03-17 16:45:29 +01:00
Rémi Bernon 194c002c6e widl: Simplify string literals lexing. 2023-03-17 16:45:11 +01:00
Rémi Bernon baa3680f2e widl: Introduce a new helper to produce num tokens. 2023-03-17 16:45:11 +01:00
Rémi Bernon a46facfd8c widl: Group <ATTR> tokens together. 2023-03-17 16:45:11 +01:00
Rémi Bernon 832d6985c8 widl: Group <INITIAL> tokens together. 2023-03-17 16:45:11 +01:00
Rémi Bernon 2b3a910184 widl: Group <INITIAL,ATTR> tokens together. 2023-03-17 16:45:11 +01:00
Huw Davies 9b77f86046 winedump: Fix printf format warning. 2023-03-17 14:11:42 +01:00
Rémi Bernon 7ebf75f92d widl: Use open_input_file to open the main input. 2023-03-16 14:09:25 +01:00
Rémi Bernon 1a0a617850 widl: Respect -N flag for imported files preprocessing. 2023-03-16 14:09:25 +01:00
Rémi Bernon 39da052012 widl: Introduce new (open|close)_input_file helpers. 2023-03-16 14:09:25 +01:00
Rémi Bernon a6ab03dcd5 widl: Handle preprocess-only case separately. 2023-03-16 14:09:25 +01:00
Rémi Bernon 9d537999e3 widl: Use a struct list for the import stack. 2023-03-16 14:09:25 +01:00
Rémi Bernon 5deda2de3f widl: Simplify handling of already parsed imports. 2023-03-16 14:09:25 +01:00
Rémi Bernon 9d1f1a3fb1 widl: Use a struct list to keep imported files. 2023-03-16 14:09:25 +01:00
Alexandros Frantzis 50c1b1974f winewayland.drv: Perform basic per-process Wayland initialization.
Try to connect to the Wayland compositor, and fail driver initialization
if we are unable to do so.

Signed-off-by: Alexandros Frantzis <alexandros.frantzis@collabora.com>
2023-03-16 12:52:37 +01:00
Zhiyi Zhang c7d748d2e5 gitlab: Make FVWM respect position hints.
FVWM doesn't respect PPosition hints by default and tries to tile a window according to its rules.
This might break tests that require a window at a specific position. For example, when setting the
caption bar height to anything other than 18, some user32 tests start to fail. They succeeded
previously just because the caption bar and border height on FVWM totals to 18, which is happens to
be the same value used by Wine by default.
2023-03-15 17:43:43 +01:00
Rémi Bernon b97cf7ab5f widl: Remove unused temp_name member. 2023-03-14 20:38:59 +01:00
Rémi Bernon 9a047736b3 widl: Use bison-bridge option. 2023-03-14 20:38:59 +01:00
Rémi Bernon 37f343b4a9 widl: Use noyywrap lexer option. 2023-03-14 20:38:59 +01:00
Rémi Bernon 1ec6ea528e widl: Add missing rule end semicolons. 2023-03-14 20:38:59 +01:00
Rémi Bernon 3384e7cb63 widl: Use explicit %empty token for empty rules. 2023-03-14 20:38:59 +01:00
Jacek Caban 67c6770331 winedump: Print static lib EC symbols. 2023-03-13 22:07:24 +01:00
Alexandre Julliard 7af84c79a1 gitlab: Add workaround for more strict git ownership check. 2023-03-10 09:33:13 +01:00
Alexandre Julliard ce8023ea13 make_makefiles: Die when the git command fails. 2023-03-10 09:25:46 +01:00
Rémi Bernon 2d39dcafc8 makedep: Support resource files for embedded TESTDLL. 2023-03-08 17:49:00 +01:00
Rémi Bernon d2e79b0905 makedep: Rename TESTDLL generated .res to avoid conflicts. 2023-03-08 17:49:00 +01:00
Alexandre Julliard fec95db075 makedep: Store the list of .ok files per-architecture. 2023-03-01 21:39:30 +01:00
Rémi Bernon a375ff9e65 widl: Use "g16" for GUID parameterized type signature. 2023-03-01 11:01:15 +01:00
Mohamad Al-Jaf ef43048c65 widl: Use "i2" / "u2" for INT16 parameterized type signature. 2023-03-01 11:01:15 +01:00
Mohamad Al-Jaf e427e893fc widl: Use "i4" / "u4" for LONG parameterized type signature. 2023-03-01 11:01:13 +01:00
Alexandre Julliard 921367fc57 winebuild: Only allow the stdcall calling convention for system calls. 2023-02-27 11:02:14 +01:00
Alexandre Julliard 4a0f3fbcb5 winegcc: Stop using the deprecated prelink tool. 2023-02-27 11:01:47 +01:00
Alexandre Julliard 5c98858a9b makedep: Remove support for building shared libraries. 2023-02-27 11:01:23 +01:00
Alexandre Julliard 5c831122c9 libwine: Remove obsolete library. 2023-02-24 22:23:12 +01:00
Alexandre Julliard 8670876db9 makedep: Don't add dependencies for tests of disabled dlls. 2023-02-22 21:14:20 +01:00
Alexandre Julliard 7141332431 winedump: Dump the metadata of hybrid PE dlls. 2023-02-16 16:48:31 +01:00
Alexandre Julliard 385ce62761 winedump: Dump the alternate version of some data directories for hybrid PE dlls. 2023-02-16 16:48:25 +01:00
Rémi Bernon 0b3f90ab14 winebuild: Use .incbin instead of printf for resource data. 2023-02-13 17:03:02 +01:00
Alexandre Julliard 42daeba8b8 gitlab: Force updating configure. 2023-02-08 17:32:30 +01:00
Alexandre Julliard cd7e86599e winedump: Initial support for dumping PE dynamic relocations. 2023-02-08 12:10:13 +01:00
Eric Pouech cb3388f76a winedump: Dump some more bits out of public stream.
Especially thunk related information.

Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2023-02-07 18:42:01 +01:00
Eric Pouech e53a49830d winedump: Enhance dumping of string tables.
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2023-02-07 18:41:58 +01:00
Eric Pouech 888fd830a1 winedump: Load once and store global PDB string table.
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2023-02-07 18:41:54 +01:00
Eric Pouech 8f8877b2c8 winedump: Dump some more MSF related information.
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2023-02-07 18:41:53 +01:00
Eric Pouech 94867b1936 winedump: Make use of -j option in PDB dumping.
Allowing section names: DBI, TPI, IPI, hash.

Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2023-02-07 18:41:50 +01:00
Eric Pouech e2c87ebef4 winedump: Refactor PDB DBI per-module dump in a dedicated function.
Also better taking care of various PDB_SYMBOL_FILE formats.

Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2023-02-07 18:41:37 +01:00
Eric Pouech 7370e15c93 winedump: Introduce ability to pass several section names to -j option.
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2023-02-07 18:41:36 +01:00
Alexandre Julliard 51adaa33e3 winedump: Print more information from the PE Load Config directory. 2023-02-07 18:37:00 +01:00
Fabian Maurer fe0bf08ac6 winedump: Prevent "format overflow" warning.
Happens on gcc 12.2.0

Signed-off-by: Fabian Maurer <dark.shadow4@web.de>
2023-02-02 18:08:39 +01:00
Eric Pouech e8777691c8 winedump: Be stricter about sizes while walking module's list.
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2023-02-02 10:58:28 +01:00
Eric Pouech cda616d8ca winedump: Properly dump segment map information from PDB/DBI stream.
Changing field names to match better their content.

Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2023-02-02 10:58:21 +01:00
Eric Pouech cf71edaa4e winedump: Dump correctly ranges part of DBI stream.
The ranges describe for a PE image all the contributions
of each compilation unit towards the various sections.

Renaming offset_size into ranges_size which is closer to its actual content.

Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2023-02-02 10:58:07 +01:00
Eric Pouech a0d4a58a34 winedump: Explain a bit more errors on hash header.
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2023-02-02 10:58:07 +01:00
Eric Pouech 4fc2c3319e winedump: Correctly dump PDB_STREAM_INDEX.segment.
This stream actually contains PE IMAGE_SECTION_HEADER.  So reflect the
content by renaming segment into section, and use some helpers
from the PE side.

Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2023-02-02 10:57:46 +01:00
Eric Pouech 97d2e9d902 winedump: Introduce a helper to print PE section's characteristics.
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2023-02-02 10:57:46 +01:00
Eric Pouech 9a74d2b62f include: Use stream to denote MSF stream/file.
Try to apply consistent naming:
- file refers to (PDB) file
- stream refers to a stream/file inside the PDB stream at MSF level
(we were also using file for the later, which isn't very simple to
follow).

Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2023-01-31 22:29:07 +01:00
Eric Pouech 26f89d84e2 include: Consistenly use _size to name the size of a sub-block.
We were using either _size or _len depending on which one.

Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2023-01-31 22:29:05 +01:00
Eric Pouech 27f3676cfc include: Update some fields in PDB headers.
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2023-01-31 22:29:03 +01:00
Eric Pouech 71abef0906 include: Be consistent in naming regarding MSF's block.
No longer calling it sometimes 'page'.

Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2023-01-31 22:29:00 +01:00
Alexandre Julliard 8772b38494 tools: Make sure that config.h is included. 2023-01-30 09:31:32 +01:00
Gerald Pfeifer 004f367725 tools: Include limits.h for PATH_MAX.
PATH_MAX is used in FreeBSD-specific code in get_argv0_dir which
otherwise fails.
2023-01-30 09:29:20 +01:00
Rémi Bernon 4e5fab6214 gitlab: Run dinput 64-bit tests in a dedicated job. 2023-01-27 21:55:34 +01:00
Alexandre Julliard a3932d7deb makedep: Don't output rules for disabled modules. 2023-01-27 13:39:07 +01:00
Huw Davies 38a7145731 winebuild: Reorder the includes to avoid a build error on macOS.
"build.h" eventually includes <sys/queue.h> which contains a conflicting
definition of LIST_INIT.
2023-01-26 22:05:13 +01:00
Alexandre Julliard ae8797c8e3 tools: Add a common helper to setup signal handlers. 2023-01-25 11:47:51 +01:00
Alexandre Julliard 9f0ae8c992 tools: Move signal masking to the common make_temp_file() helper. 2023-01-25 11:47:51 +01:00
Alexandre Julliard ca398e2762 tools: Add a common helper to cleanup temp files. 2023-01-25 11:47:51 +01:00