mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-04 19:37:28 +00:00
dbghelp: Remove symt_close_func_block() stabs's only parameter.
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
This commit is contained in:
parent
6f8ba8119a
commit
1bcdb17455
|
@ -864,7 +864,7 @@ extern struct symt_block*
|
|||
extern struct symt_block*
|
||||
symt_close_func_block(struct module* module,
|
||||
const struct symt_function* func,
|
||||
struct symt_block* block, unsigned pc) DECLSPEC_HIDDEN;
|
||||
struct symt_block* block) DECLSPEC_HIDDEN;
|
||||
extern struct symt_hierarchy_point*
|
||||
symt_add_function_point(struct module* module,
|
||||
struct symt_function* func,
|
||||
|
|
|
@ -2312,9 +2312,7 @@ static void dwarf2_parse_subprogram_block(dwarf2_subprogram_t* subpgm,
|
|||
}
|
||||
}
|
||||
|
||||
symt_close_func_block(subpgm->ctx->module_ctx->module, subpgm->current_func, subpgm->current_block, 0);
|
||||
subpgm->current_block = symt_check_tag(subpgm->current_block->container, SymTagBlock) ?
|
||||
(struct symt_block*)subpgm->current_block->container : NULL;
|
||||
subpgm->current_block = symt_close_func_block(subpgm->ctx->module_ctx->module, subpgm->current_func, subpgm->current_block);
|
||||
}
|
||||
|
||||
static struct symt* dwarf2_parse_subprogram(dwarf2_debug_info_t* di)
|
||||
|
|
|
@ -2472,7 +2472,7 @@ static BOOL codeview_snarf(const struct msc_debug_info* msc_dbg,
|
|||
case S_END:
|
||||
if (block)
|
||||
{
|
||||
block = symt_close_func_block(msc_dbg->module, curr_func, block, 0);
|
||||
block = symt_close_func_block(msc_dbg->module, curr_func, block);
|
||||
}
|
||||
else if (top_func)
|
||||
{
|
||||
|
|
|
@ -1381,8 +1381,10 @@ BOOL stabs_parse(struct module* module, ULONG_PTR load_offset,
|
|||
break;
|
||||
case N_RBRAC:
|
||||
if (curr_func)
|
||||
block = symt_close_func_block(module, curr_func, block,
|
||||
n_value);
|
||||
{
|
||||
block->size = curr_func->address + n_value - block->address;
|
||||
block = symt_close_func_block(module, curr_func, block);
|
||||
}
|
||||
break;
|
||||
case N_PSYM:
|
||||
/* These are function parameters. */
|
||||
|
|
|
@ -551,11 +551,10 @@ struct symt_block* symt_open_func_block(struct module* module,
|
|||
|
||||
struct symt_block* symt_close_func_block(struct module* module,
|
||||
const struct symt_function* func,
|
||||
struct symt_block* block, unsigned pc)
|
||||
struct symt_block* block)
|
||||
{
|
||||
assert(symt_check_tag(&func->symt, SymTagFunction) || symt_check_tag(&func->symt, SymTagInlineSite));
|
||||
|
||||
if (pc) block->size = func->address + pc - block->address;
|
||||
return (block->container->tag == SymTagBlock) ?
|
||||
CONTAINING_RECORD(block->container, struct symt_block, symt) : NULL;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue