mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-04 19:58:08 +00:00
dbghelp: Provide N_PEXT and N_SECT defines when not available.
Signed-off-by: Jacek Caban <jacek@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
3b6c268380
commit
208719a750
|
@ -69,6 +69,9 @@ WINE_DEFAULT_DEBUG_CHANNEL(dbghelp_stabs);
|
||||||
#ifndef N_STAB
|
#ifndef N_STAB
|
||||||
#define N_STAB 0xe0
|
#define N_STAB 0xe0
|
||||||
#endif
|
#endif
|
||||||
|
#ifndef N_PEXT
|
||||||
|
#define N_PEXT 0x10
|
||||||
|
#endif
|
||||||
#ifndef N_TYPE
|
#ifndef N_TYPE
|
||||||
#define N_TYPE 0x1e
|
#define N_TYPE 0x1e
|
||||||
#endif
|
#endif
|
||||||
|
@ -83,6 +86,9 @@ WINE_DEFAULT_DEBUG_CHANNEL(dbghelp_stabs);
|
||||||
#ifndef N_ABS
|
#ifndef N_ABS
|
||||||
#define N_ABS 0x02
|
#define N_ABS 0x02
|
||||||
#endif
|
#endif
|
||||||
|
#ifndef N_SECT
|
||||||
|
#define N_SECT 0x0e
|
||||||
|
#endif
|
||||||
|
|
||||||
#define N_GSYM 0x20
|
#define N_GSYM 0x20
|
||||||
#define N_FUN 0x24
|
#define N_FUN 0x24
|
||||||
|
@ -1643,16 +1649,13 @@ BOOL stabs_parse(struct module* module, ULONG_PTR load_offset,
|
||||||
/* Always ignore these, they seem to be used only on Darwin. */
|
/* Always ignore these, they seem to be used only on Darwin. */
|
||||||
break;
|
break;
|
||||||
case N_ABS:
|
case N_ABS:
|
||||||
#ifdef N_SECT
|
|
||||||
case N_SECT:
|
case N_SECT:
|
||||||
#endif
|
|
||||||
/* FIXME: Other definition types (N_TEXT, N_DATA, N_BSS, ...)? */
|
/* FIXME: Other definition types (N_TEXT, N_DATA, N_BSS, ...)? */
|
||||||
if (callback)
|
if (callback)
|
||||||
{
|
{
|
||||||
BOOL is_public = (stab_ptr->n_type & N_EXT);
|
BOOL is_public = (stab_ptr->n_type & N_EXT);
|
||||||
BOOL is_global = is_public;
|
BOOL is_global = is_public;
|
||||||
|
|
||||||
#ifdef N_PEXT
|
|
||||||
/* "private extern"; shared among compilation units in a shared
|
/* "private extern"; shared among compilation units in a shared
|
||||||
* library, but not accessible from outside the library. */
|
* library, but not accessible from outside the library. */
|
||||||
if (stab_ptr->n_type & N_PEXT)
|
if (stab_ptr->n_type & N_PEXT)
|
||||||
|
@ -1660,7 +1663,6 @@ BOOL stabs_parse(struct module* module, ULONG_PTR load_offset,
|
||||||
is_public = FALSE;
|
is_public = FALSE;
|
||||||
is_global = TRUE;
|
is_global = TRUE;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
if (*ptr == '_') ptr++;
|
if (*ptr == '_') ptr++;
|
||||||
stab_strcpy(symname, sizeof(symname), ptr);
|
stab_strcpy(symname, sizeof(symname), ptr);
|
||||||
|
|
Loading…
Reference in a new issue