diff options
author | jimblandy@gmail.com <jimblandy@gmail.com@4c0a9323-5329-0410-9bdc-e9ce6186880e> | 2009-08-05 00:53:23 +0000 |
---|---|---|
committer | jimblandy@gmail.com <jimblandy@gmail.com@4c0a9323-5329-0410-9bdc-e9ce6186880e> | 2009-08-05 00:53:23 +0000 |
commit | f6c98159e283995370fce1fd9df2f9a5427bc698 (patch) | |
tree | 69c4aac2fdda726bafcecd114068f4ba952d6cf0 /src/common | |
parent | Linux dumper: Let LineInfo structures point directly to their SourceLineInfo ... (diff) | |
download | breakpad-f6c98159e283995370fce1fd9df2f9a5427bc698.tar.xz |
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
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/linux/dump_symbols.cc | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/src/common/linux/dump_symbols.cc b/src/common/linux/dump_symbols.cc index 9e241f13..f0333e3d 100644 --- a/src/common/linux/dump_symbols.cc +++ b/src/common/linux/dump_symbols.cc @@ -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, |