Commit f3a15607 authored by Alexandre Julliard's avatar Alexandre Julliard

Don't include wine internal functions in the relay debugging table.

parent caf5f89b
...@@ -237,13 +237,16 @@ static void output_exports( FILE *outfile, int nr_exports, int fwd_size ) ...@@ -237,13 +237,16 @@ static void output_exports( FILE *outfile, int nr_exports, int fwd_size )
for (i = Base; i <= Limit; i++) for (i = Base; i <= Limit; i++)
{ {
ORDDEF *odp = Ordinals[i]; ORDDEF *odp = Ordinals[i];
if (odp && ((odp->type == TYPE_STDCALL) ||
(odp->type == TYPE_STDCALL64) ||
(odp->type == TYPE_CDECL) ||
(odp->type == TYPE_REGISTER)))
{
unsigned int j, mask = 0; unsigned int j, mask = 0;
/* skip non-existent entry points */
if (!odp) goto ignore;
/* skip non-functions */
if ((odp->type != TYPE_STDCALL) && (odp->type != TYPE_STDCALL64) &&
(odp->type != TYPE_CDECL) && (odp->type != TYPE_REGISTER)) goto ignore;
/* skip wine internal functions */
if (!strncmp( odp->name, "wine_", 5 ) || !strncmp( odp->name, "__wine_", 7 )) goto ignore;
for (j = 0; odp->u.func.arg_types[j]; j++) for (j = 0; odp->u.func.arg_types[j]; j++)
{ {
if (odp->u.func.arg_types[j] == 't') mask |= 1<< (j*2); if (odp->u.func.arg_types[j] == 't') mask |= 1<< (j*2);
...@@ -272,9 +275,11 @@ static void output_exports( FILE *outfile, int nr_exports, int fwd_size ) ...@@ -272,9 +275,11 @@ static void output_exports( FILE *outfile, int nr_exports, int fwd_size )
default: default:
assert(0); assert(0);
} }
} goto done;
else fprintf( outfile, " { 0, { 0,0,0,0 }, 0, 0, 0, 0 }" );
ignore:
fprintf( outfile, " { 0, { 0,0,0,0 }, 0, 0, 0, 0 }" );
done:
if (i < Limit) fprintf( outfile, ",\n" ); if (i < Limit) fprintf( outfile, ",\n" );
} }
#endif /* __i386__ */ #endif /* __i386__ */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment