Merge pull request #5366 from sepalani/set-sym-size

CodeView: Set Symbol Size/End Address added
This commit is contained in:
Leo Lam 2017-06-03 19:00:45 +02:00 committed by GitHub
commit 5d6074f157
3 changed files with 68 additions and 6 deletions

View file

@ -6,6 +6,7 @@
#include <queue>
#include <string>
#include "Common/Assert.h"
#include "Common/CommonTypes.h"
#include "Common/Logging/Log.h"
#include "Common/StringUtil.h"
@ -189,6 +190,14 @@ bool AnalyzeFunction(u32 startAddr, Symbol& func, int max_size)
}
}
bool ReanalyzeFunction(u32 start_addr, Symbol& func, int max_size)
{
_assert_msg_(OSHLE, func.analyzed, "The function wasn't previously analyzed!");
func.analyzed = false;
return AnalyzeFunction(start_addr, func, max_size);
}
// Second pass analysis, done after the first pass is done for all functions
// so we have more information to work with
static void AnalyzeFunction2(Symbol* func)

View file

@ -231,5 +231,6 @@ public:
void LogFunctionCall(u32 addr);
void FindFunctions(u32 startAddr, u32 endAddr, PPCSymbolDB* func_db);
bool AnalyzeFunction(u32 startAddr, Symbol& func, int max_size = 0);
bool ReanalyzeFunction(u32 start_addr, Symbol& func, int max_size = 0);
} // namespace