Commit fe2ae803 authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

dbghelp: Moved the ELF's module information into the new scheme.

parent cd92e3d1
......@@ -320,6 +320,7 @@ struct module;
*/
enum format_info
{
DFI_ELF,
DFI_PE,
DFI_DWARF,
DFI_LAST
......@@ -335,6 +336,7 @@ struct module_format
struct location* loc);
union
{
struct elf_module_info* elf_info;
struct dwarf2_module_info_s* dwarf2_info;
struct pe_module_info* pe_info;
} u;
......@@ -350,8 +352,6 @@ struct module
unsigned short is_virtual : 1;
/* specific information for debug types */
struct elf_module_info* elf_info;
void (*module_remove)(struct process* pcs, struct module* module);
struct module_format* format_info[DFI_LAST];
struct macho_module_info* macho_info;
......
......@@ -629,7 +629,6 @@ BOOL module_remove(struct process* pcs, struct module* module)
TRACE("%s (%p)\n", debugstr_w(module->module.ModuleName), module);
if (module->module_remove) module->module_remove(pcs, module);
for (i = 0; i < DFI_LAST; i++)
{
if ((modfmt = module->format_info[i]) && modfmt->remove)
......
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