How do I recompile wine/lib/wine/debug.c?

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
User avatar
brewmanz
Level 2
Level 2
Posts: 16
Joined: Thu Oct 06, 2016 6:43 pm

How do I recompile wine/lib/wine/debug.c?

Post by brewmanz »

I'm trying to change wine/lib/wine/debug.h & debug.c - the new debug.h is being actioned but not debug.c.
Any help or suggestions would be appreciated.

I'm following the biarch build process, using LXC for the 32-bit of a 64bit Ubuntu 14.04 environment.
The testing is in a WIN32 environment for wine.

I have tried 'make clean' in all 3 folders, as well as deleting folders wine32, wine32-tools & wine64.
I have hunted down any other debug.* that look like they be wine components.
I'm not familiar with the 'make' technology but I do have heaps of developer experience.

I'm making more changes than shown here, but I expect that these are sufficient to highlight the problem I'm having.
You'll see that the tracing class names shown in the trace logs are either skewed over or not showing at all:

=========
change to debug.h:
enum __wine_debug_class
{
__WINE_DBCL_DTAIL, // addition
__WINE_DBCL_XXTRA, // addition
__WINE_DBCL_FIXME,
__WINE_DBCL_ERR,
__WINE_DBCL_WARN,
__WINE_DBCL_TRACE,

__WINE_DBCL_INIT = 7 /* lazy init flag */
};
=========
change to debug.c:
static const char * const debug_classes[] = { "dtail", "xxtra","fixme", "err", "warn", "trace" }; // changed
=========
Maybe the lib for debug.c is not being cleared? But where is it?
Maybe the precompiler is not doing as I expect; I tried adding extra debugging info in the log ... but the new code isn't being run!
User avatar
brewmanz
Level 2
Level 2
Posts: 16
Joined: Thu Oct 06, 2016 6:43 pm

Re: How do I recompile wine/lib/wine/debug.c?

Post by brewmanz »

PS I do know that debug.c is being compiled in the make process - adding a deliberate error causes the build to break
User avatar
brewmanz
Level 2
Level 2
Posts: 16
Joined: Thu Oct 06, 2016 6:43 pm

Re: How do I recompile wine/lib/wine/debug.c?

Post by brewmanz »

And the answer is .. make same changes in wine/dlls/ntdll/debugtools.c!
I think I'll raise this as a bug.
Locked