mirror of
https://github.com/yuzu-emu/breakpad.git
synced 2024-12-23 09:35:34 +00:00
Linux dumper: Delete non-functional stack parameter size computation.
Delete code to compute function stack parameter size. It never did anything. a=jimblandy r=nealsid git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@372 4c0a9323-5329-0410-9bdc-e9ce6186880e
This commit is contained in:
parent
133c66ca40
commit
f6c98159e2
|
@ -247,24 +247,6 @@ static SourceFileInfo *FindSourceFileInfo(SymbolInfo *symbols,
|
|||
return file;
|
||||
}
|
||||
|
||||
// TODO(liuli): Computer the stack parameter size.
|
||||
// Expect parameter variables are immediately following the N_FUN symbol.
|
||||
// Will need to parse the type information to get a correct size.
|
||||
static int LoadStackParamSize(struct nlist *list,
|
||||
struct nlist *list_end,
|
||||
struct FuncInfo *func_info) {
|
||||
struct nlist *cur_list = list;
|
||||
assert(cur_list->n_type == N_FUN);
|
||||
++cur_list;
|
||||
int step = 1;
|
||||
while (cur_list < list_end && cur_list->n_type == N_PSYM) {
|
||||
++cur_list;
|
||||
++step;
|
||||
}
|
||||
func_info->stack_param_size = 0;
|
||||
return step;
|
||||
}
|
||||
|
||||
static int LoadLineInfo(struct nlist *list,
|
||||
struct nlist *list_end,
|
||||
SymbolInfo *symbols,
|
||||
|
@ -338,9 +320,8 @@ static int LoadFuncSymbols(struct nlist *list,
|
|||
func_info.rva_to_base = 0;
|
||||
func_info.size = 0;
|
||||
func_info.stack_param_size = 0;
|
||||
cur_list++;
|
||||
|
||||
// Stack parameter size.
|
||||
cur_list += LoadStackParamSize(cur_list, list_end, &func_info);
|
||||
// Line info.
|
||||
cur_list += LoadLineInfo(cur_list,
|
||||
list_end,
|
||||
|
|
Loading…
Reference in a new issue