mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-09-02 15:45:58 +00:00
Merge pull request #5366 from sepalani/set-sym-size
CodeView: Set Symbol Size/End Address added
This commit is contained in:
commit
5d6074f157
3 changed files with 68 additions and 6 deletions
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue