forked from Mirrors/wine-wine
dbghelp: Removed some unused fields for public symbol description.
parent
5cab72bc95
commit
181de55619
|
@ -227,8 +227,6 @@ struct symt_public
|
||||||
struct symt* container; /* compiland */
|
struct symt* container; /* compiland */
|
||||||
unsigned long address;
|
unsigned long address;
|
||||||
unsigned long size;
|
unsigned long size;
|
||||||
unsigned in_code : 1,
|
|
||||||
is_function : 1;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
struct symt_thunk
|
struct symt_thunk
|
||||||
|
@ -593,8 +591,7 @@ extern struct symt_public*
|
||||||
symt_new_public(struct module* module,
|
symt_new_public(struct module* module,
|
||||||
struct symt_compiland* parent,
|
struct symt_compiland* parent,
|
||||||
const char* typename,
|
const char* typename,
|
||||||
unsigned long address, unsigned size,
|
unsigned long address, unsigned size);
|
||||||
BOOL in_code, BOOL is_func);
|
|
||||||
extern struct symt_data*
|
extern struct symt_data*
|
||||||
symt_new_global_variable(struct module* module,
|
symt_new_global_variable(struct module* module,
|
||||||
struct symt_compiland* parent,
|
struct symt_compiland* parent,
|
||||||
|
|
|
@ -749,8 +749,7 @@ static int elf_new_public_symbols(struct module* module, const struct hash_table
|
||||||
{
|
{
|
||||||
symt_new_public(module, ste->compiland, ste->ht_elt.name,
|
symt_new_public(module, ste->compiland, ste->ht_elt.name,
|
||||||
module->elf_info->elf_addr + ste->symp->st_value,
|
module->elf_info->elf_addr + ste->symp->st_value,
|
||||||
ste->symp->st_size, TRUE /* FIXME */,
|
ste->symp->st_size);
|
||||||
ELF32_ST_TYPE(ste->symp->st_info) == STT_FUNC);
|
|
||||||
}
|
}
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1919,8 +1919,7 @@ static int codeview_snarf_public(const struct msc_debug_info* msc_dbg, const BYT
|
||||||
{
|
{
|
||||||
symt_new_public(msc_dbg->module, compiland,
|
symt_new_public(msc_dbg->module, compiland,
|
||||||
terminate_string(&sym->data_v1.p_name),
|
terminate_string(&sym->data_v1.p_name),
|
||||||
codeview_get_address(msc_dbg, sym->data_v1.segment, sym->data_v1.offset),
|
codeview_get_address(msc_dbg, sym->data_v1.segment, sym->data_v1.offset), 1);
|
||||||
1, TRUE /* FIXME */, TRUE /* FIXME */);
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case S_PUB_V2: /* FIXME is this really a 'data_v2' structure ?? */
|
case S_PUB_V2: /* FIXME is this really a 'data_v2' structure ?? */
|
||||||
|
@ -1928,8 +1927,7 @@ static int codeview_snarf_public(const struct msc_debug_info* msc_dbg, const BYT
|
||||||
{
|
{
|
||||||
symt_new_public(msc_dbg->module, compiland,
|
symt_new_public(msc_dbg->module, compiland,
|
||||||
terminate_string(&sym->data_v2.p_name),
|
terminate_string(&sym->data_v2.p_name),
|
||||||
codeview_get_address(msc_dbg, sym->data_v2.segment, sym->data_v2.offset),
|
codeview_get_address(msc_dbg, sym->data_v2.segment, sym->data_v2.offset), 1);
|
||||||
1, TRUE /* FIXME */, TRUE /* FIXME */);
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -1938,8 +1936,7 @@ static int codeview_snarf_public(const struct msc_debug_info* msc_dbg, const BYT
|
||||||
{
|
{
|
||||||
symt_new_public(msc_dbg->module, compiland,
|
symt_new_public(msc_dbg->module, compiland,
|
||||||
sym->data_v3.name,
|
sym->data_v3.name,
|
||||||
codeview_get_address(msc_dbg, sym->data_v3.segment, sym->data_v3.offset),
|
codeview_get_address(msc_dbg, sym->data_v3.segment, sym->data_v3.offset), 1);
|
||||||
1, FALSE /* FIXME */, FALSE);
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case S_PUB_FUNC1_V3:
|
case S_PUB_FUNC1_V3:
|
||||||
|
@ -1950,8 +1947,7 @@ static int codeview_snarf_public(const struct msc_debug_info* msc_dbg, const BYT
|
||||||
{
|
{
|
||||||
symt_new_public(msc_dbg->module, compiland,
|
symt_new_public(msc_dbg->module, compiland,
|
||||||
sym->data_v3.name,
|
sym->data_v3.name,
|
||||||
codeview_get_address(msc_dbg, sym->data_v3.segment, sym->data_v3.offset),
|
codeview_get_address(msc_dbg, sym->data_v3.segment, sym->data_v3.offset), 1);
|
||||||
1, TRUE /* FIXME */, TRUE);
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -315,14 +315,12 @@ static BOOL pe_load_export_debug_info(const struct process* pcs,
|
||||||
#if 0
|
#if 0
|
||||||
/* Add start of DLL (better use the (yet unimplemented) Exe SymTag for this) */
|
/* Add start of DLL (better use the (yet unimplemented) Exe SymTag for this) */
|
||||||
/* FIXME: module.ModuleName isn't correctly set yet if it's passed in SymLoadModule */
|
/* FIXME: module.ModuleName isn't correctly set yet if it's passed in SymLoadModule */
|
||||||
symt_new_public(module, NULL, module->module.ModuleName, base, 1,
|
symt_new_public(module, NULL, module->module.ModuleName, base, 1);
|
||||||
TRUE /* FIXME */, TRUE /* FIXME */);
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Add entry point */
|
/* Add entry point */
|
||||||
symt_new_public(module, NULL, "EntryPoint",
|
symt_new_public(module, NULL, "EntryPoint",
|
||||||
base + nth->OptionalHeader.AddressOfEntryPoint, 1,
|
base + nth->OptionalHeader.AddressOfEntryPoint, 1);
|
||||||
TRUE, TRUE);
|
|
||||||
#if 0
|
#if 0
|
||||||
/* FIXME: we'd better store addresses linked to sections rather than
|
/* FIXME: we'd better store addresses linked to sections rather than
|
||||||
absolute values */
|
absolute values */
|
||||||
|
@ -333,8 +331,7 @@ static BOOL pe_load_export_debug_info(const struct process* pcs,
|
||||||
for (i = 0; i < nth->FileHeader.NumberOfSections; i++, section++)
|
for (i = 0; i < nth->FileHeader.NumberOfSections; i++, section++)
|
||||||
{
|
{
|
||||||
symt_new_public(module, NULL, section->Name,
|
symt_new_public(module, NULL, section->Name,
|
||||||
RtlImageRvaToVa(nth, mapping, section->VirtualAddress, NULL),
|
RtlImageRvaToVa(nth, mapping, section->VirtualAddress, NULL), 1);
|
||||||
1, TRUE /* FIXME */, TRUE /* FIXME */);
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -359,8 +356,7 @@ static BOOL pe_load_export_debug_info(const struct process* pcs,
|
||||||
if (!names[i]) continue;
|
if (!names[i]) continue;
|
||||||
symt_new_public(module, NULL,
|
symt_new_public(module, NULL,
|
||||||
RtlImageRvaToVa(nth, mapping, names[i], NULL),
|
RtlImageRvaToVa(nth, mapping, names[i], NULL),
|
||||||
base + functions[ordinals[i]],
|
base + functions[ordinals[i]], 1);
|
||||||
1, TRUE /* FIXME */, TRUE /* FIXME */);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
for (i = 0; i < exports->NumberOfFunctions; i++)
|
for (i = 0; i < exports->NumberOfFunctions; i++)
|
||||||
|
@ -371,8 +367,7 @@ static BOOL pe_load_export_debug_info(const struct process* pcs,
|
||||||
if ((ordinals[j] == i) && names[j]) break;
|
if ((ordinals[j] == i) && names[j]) break;
|
||||||
if (j < exports->NumberOfNames) continue;
|
if (j < exports->NumberOfNames) continue;
|
||||||
snprintf(buffer, sizeof(buffer), "%d", i + exports->Base);
|
snprintf(buffer, sizeof(buffer), "%d", i + exports->Base);
|
||||||
symt_new_public(module, NULL, buffer, base + (DWORD)functions[i], 1,
|
symt_new_public(module, NULL, buffer, base + (DWORD)functions[i], 1);
|
||||||
TRUE /* FIXME */, TRUE /* FIXME */);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -304,8 +304,7 @@ struct symt_compiland* symt_new_compiland(struct module* module,
|
||||||
struct symt_public* symt_new_public(struct module* module,
|
struct symt_public* symt_new_public(struct module* module,
|
||||||
struct symt_compiland* compiland,
|
struct symt_compiland* compiland,
|
||||||
const char* name,
|
const char* name,
|
||||||
unsigned long address, unsigned size,
|
unsigned long address, unsigned size)
|
||||||
BOOL in_code, BOOL is_func)
|
|
||||||
{
|
{
|
||||||
struct symt_public* sym;
|
struct symt_public* sym;
|
||||||
struct symt** p;
|
struct symt** p;
|
||||||
|
@ -322,8 +321,6 @@ struct symt_public* symt_new_public(struct module* module,
|
||||||
sym->container = compiland ? &compiland->symt : NULL;
|
sym->container = compiland ? &compiland->symt : NULL;
|
||||||
sym->address = address;
|
sym->address = address;
|
||||||
sym->size = size;
|
sym->size = size;
|
||||||
sym->in_code = in_code;
|
|
||||||
sym->is_function = is_func;
|
|
||||||
symt_add_module_ht(module, (struct symt_ht*)sym);
|
symt_add_module_ht(module, (struct symt_ht*)sym);
|
||||||
if (compiland)
|
if (compiland)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue