Alexandre Julliard
2eed0cdb8f
include: Don't use IsBadStringPtr in debug functions for Unix libraries.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-09-18 15:13:42 +02:00
Jacek Caban
28bc1bb463
debug.h: Use GNU style variadic macros on MSVC clang target.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-04-23 20:20:30 +02:00
Zebediah Figura
6895470ab0
include: Don't use the printf format attribute when compiling against msvcrt and not cross-compiling.
...
Since it will spit out bogus warnings in the case we use Microsoft-specific
extensions.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-01-30 16:22:33 +01:00
Alexandre Julliard
c8f3383696
include: Allow using debug.h in tests.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-12-17 16:55:15 +01:00
Tim Schumacher
062db72226
dbgstr: Initialize hex list using an explicit char array.
...
Some compilers (or rather, compiler settings) are unhappy with the
terminating null-char, which is one byte beyond the 16 char limit.
Initialize the array without the null char to circumvent this issue.
Signed-off-by: Tim Schumacher <timschumi@gmx.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-31 12:44:10 +02:00
Alexandre Julliard
d97d922afd
include: Add cast to avoid a compiler warning on MSVC.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=46991
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-04-11 16:46:35 +02:00
Alexandre Julliard
3d6febc997
include: Get rid of the DPRINTF() macro.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-04-08 19:34:44 +02:00
Alexandre Julliard
bb83b68832
ntdll: Define IsBadStringPtr to handle exceptions in debug traces.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-04-04 11:34:04 +02:00
Alexandre Julliard
f438ff566d
ntdll: Remove no longer used debug functions.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-04-03 19:28:19 +02:00
Alexandre Julliard
cf8193df5b
include: Make wine_dbg_log() into an inline function.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-04-03 19:27:50 +02:00
Alexandre Julliard
9911cfdeae
ntdll: Export __wine_dbg_get_channel_flags().
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-04-03 19:27:50 +02:00
Alexandre Julliard
ddf1ff2f6a
include: Make wine_dbg_printf() into an inline function.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-04-03 19:27:50 +02:00
Alexandre Julliard
f2e6f05fe3
include: Make wine_dbg_sprintf() into an inline function.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-04-03 19:27:50 +02:00
Alexandre Julliard
9f75f71899
include: Make wine_dbgstr_an()/wine_dbgstr_wn() into inline functions.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-04-03 19:23:43 +02:00
Jacek Caban
f976fb53ad
include: Avoid narrowing conversions in struct initializers.
...
Fixes using the header from C++.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-01-08 15:02:50 -06:00
Andre Heider
6d4d8f2ea0
Revert "include: Use the ARRAY_SIZE() macro in debug.h.".
...
This reverts commit af3992374e
.
wine/debug.h is a public header, and ARRAY_SIZE() is not defined for
external projects.
Signed-off-by: Andre Heider <a.heider@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-11-19 10:17:48 +01:00
Michael Stefaniuc
af3992374e
include: Use the ARRAY_SIZE() macro in debug.h.
...
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-10-25 20:37:03 +02:00
Dmitry Timoshkov
8fd6c63bf3
include: Print contents of VT_LPSTR and VT_LPWSTR variants in wine_dbgstr_variant.
...
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-20 18:43:04 +02:00
Michael Stefaniuc
9182b24b81
include: Remove unused wine_dbgstr_size().
...
Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-20 21:52:07 +09:00
Francois Gouget
be3fea546d
oleaut32: Add V_RECORD() and V_RECORDINFO() and use them for wine_dbgstr_variant().
...
This fixes the wine_dbgstr_variant() compatibility with non __STDC__
compilers and source code that defines _FORCENAMELESSUNION.
Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-27 21:44:49 +09:00
Sebastian Lackner
615ef98555
include: Fix copy and paste errors in wine_dbgstr_vt.
2015-09-02 14:54:04 +09:00
Nikolay Sivov
bcd8b6f4ee
include: Fix null pointer dereference while tracing.
2015-03-03 17:13:52 +09:00
Nikolay Sivov
5bd6b569cd
include/debug.h: Support tracing of VT_BSTR|VT_BYREF.
2015-03-02 13:47:42 +09:00
Jacek Caban
d2886a05f9
wine/debug.h: Added debugstr_variant and debugstr_vt aliases and removed all duplicated implementations.
2014-07-24 17:05:55 +02:00
Jacek Caban
e18ef3cf4c
wine/debug.h: Added wine_dbgstr_variant and wine_dbgstr_vt implementations.
2014-07-24 17:05:51 +02:00
Alexandre Julliard
baaaa58b50
include: Fix a few compiler warnings for the Mingw64 build.
2008-12-09 17:56:16 +01:00
Dmitry Timoshkov
15f4bac787
include/wine/debug.h: Fix compilation warning in 64-bit mode.
2007-05-21 15:55:46 +02:00
Andrew Talbot
4125821a99
winelib: Replace inline static with static inline.
2007-03-27 12:38:06 +02:00
Francois Gouget
b0bde6b87c
Assorted spelling fixes.
2007-01-18 12:56:52 +01:00
Alexandre Julliard
80cff47c87
include: Get rid of the WINE_NO_LONG_AS_INT ifdefs.
2006-12-20 14:57:08 +01: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
Michael Stefaniuc
705b5a00c5
debug.h, test.h: Temporary add ifdefs around some printfs to avoid format.
2006-09-29 16:09:14 +02:00
Alexandre Julliard
35e59151e9
include: Prevent internal Wine headers from being used in tests.
2006-05-25 20:07:57 +02:00
Jonathan Ernst
360a3f9142
Update the address of the Free Software Foundation.
2006-05-23 14:11:13 +02:00
Alexandre Julliard
2058f54300
Added a __wine_dbg_set_channel_flags function to allow changing flags
...
from inside the code.
2005-10-18 10:49:20 +00:00
Alexandre Julliard
784c94516b
Export the get_channel_flags function avoid warnings when passing a
...
NULL format to wine_dbg_log.
Removed a few no longer used functions.
2005-09-29 11:16:52 +00:00
Alexandre Julliard
7ddab75619
Declare debug channels as static variables so that we don't need to
...
generate an external .dbg.c file to define them.
2005-09-28 18:34:00 +00:00
Alexandre Julliard
cbc38965c0
New scheme for keeping track of debug channels that doesn't require
...
maintaining a list of all loaded dlls.
2005-09-28 15:21:48 +00:00
Alexandre Julliard
a443761b8d
Export the temp buffer functionality in the debug functions interface
...
to allow sharing more code between libwine and ntdll.
2005-09-26 16:45:25 +00:00
Alexandre Julliard
75c27e17b6
Defined a proper structure for debug channels.
...
Also put all the function pointers inside a structure and added
__wine_dbg_set_functions to change them instead of exporting the
pointers directly.
2005-09-23 10:52:07 +00:00
Kevin Koltzau
7ab2813735
Fix pointer cast warnings in 64bit.
2005-08-23 09:36:34 +00:00
Vincent Béron
1f504141b7
Use a new DLLDEFS variable in configure/Makefiles to actually remove
...
all the debug messages (minus ERRs) if the user decides so.
2004-10-19 23:06:11 +00:00
Robert Shearman
d6254fcb43
- AVI Splitter implementation.
...
- Add new debugging function wine_dbstr_longlong.
2003-11-18 20:47:48 +00:00
Dimitrie O. Paun
53f9c21fb7
Use angle brackets (<>) rather than quotes ("") for the include
...
directives in our .h files. This should avoid some potentially nasty
surprises for Winelib apps.
2003-08-28 21:43:34 +00:00
Alexandre Julliard
96af8c2ff5
Fixed gcc varargs macro syntax (reported by Gabriele Giorgetti).
2003-04-14 21:42:57 +00:00
Jon Griffiths
7cf70d79c3
Really get rid of debug code/strings if we're building without them.
2003-03-15 19:39:37 +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
Dimitrie O. Paun
8b36681bad
Rename __WINE__ to __WINESRC__.
2003-01-04 00:52:18 +00:00
Alexandre Julliard
78ff6763ed
Added wine_dbg_sprintf function that allocates a temporary buffer in
...
the per-thread strings area.
Added inline functions to format POINT, SIZE and RECT structures.
2003-01-03 03:12:58 +00:00
Gregg Mattinson
81cbb28d07
- Forte C does not support nameless structures or unions
...
- Implemented __builtin_return_address for Forte C on sparc
- Implemented DECL_GLOBAL_CONSTRUCTOR for non-386, non-GNU C
- Implemented WINE_DPRINTF to have function name with Forte C
2002-07-05 21:22:09 +00:00