diff options
| author | 2017-05-07 14:56:23 -0700 | |
|---|---|---|
| committer | 2017-05-07 15:33:07 -0700 | |
| commit | 6577bbc3c5c47d8e3868f1205284337c6c672744 (patch) | |
| tree | 7837aa8fc199b519ac45fd1b8312f5fb0e02afa3 /src/core/hle/svc.cpp | |
| parent | citra-qt: Remove callstack widget (diff) | |
| download | yuzu-6577bbc3c5c47d8e3868f1205284337c6c672744.tar.gz yuzu-6577bbc3c5c47d8e3868f1205284337c6c672744.tar.xz yuzu-6577bbc3c5c47d8e3868f1205284337c6c672744.zip | |
Remove ability to load symbol maps
This was now mostly unused except by thread creation, which used a
symbol of the entrypoint, if available, to name the thread.
Diffstat (limited to 'src/core/hle/svc.cpp')
| -rw-r--r-- | src/core/hle/svc.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/core/hle/svc.cpp b/src/core/hle/svc.cpp index 2db823c61..8538cfc9d 100644 --- a/src/core/hle/svc.cpp +++ b/src/core/hle/svc.cpp | |||
| @@ -2,12 +2,12 @@ | |||
| 2 | // Licensed under GPLv2 or any later version | 2 | // Licensed under GPLv2 or any later version |
| 3 | // Refer to the license.txt file included. | 3 | // Refer to the license.txt file included. |
| 4 | 4 | ||
| 5 | #include <cinttypes> | ||
| 5 | #include <map> | 6 | #include <map> |
| 6 | #include "common/logging/log.h" | 7 | #include "common/logging/log.h" |
| 7 | #include "common/microprofile.h" | 8 | #include "common/microprofile.h" |
| 8 | #include "common/scope_exit.h" | 9 | #include "common/scope_exit.h" |
| 9 | #include "common/string_util.h" | 10 | #include "common/string_util.h" |
| 10 | #include "common/symbols.h" | ||
| 11 | #include "core/arm/arm_interface.h" | 11 | #include "core/arm/arm_interface.h" |
| 12 | #include "core/core_timing.h" | 12 | #include "core/core_timing.h" |
| 13 | #include "core/hle/function_wrappers.h" | 13 | #include "core/hle/function_wrappers.h" |
| @@ -524,13 +524,7 @@ static ResultCode CreateThread(Kernel::Handle* out_handle, s32 priority, u32 ent | |||
| 524 | u32 stack_top, s32 processor_id) { | 524 | u32 stack_top, s32 processor_id) { |
| 525 | using Kernel::Thread; | 525 | using Kernel::Thread; |
| 526 | 526 | ||
| 527 | std::string name; | 527 | std::string name = Common::StringFromFormat("unknown-%08" PRIX32, entry_point); |
| 528 | if (Symbols::HasSymbol(entry_point)) { | ||
| 529 | TSymbol symbol = Symbols::GetSymbol(entry_point); | ||
| 530 | name = symbol.name; | ||
| 531 | } else { | ||
| 532 | name = Common::StringFromFormat("unknown-%08x", entry_point); | ||
| 533 | } | ||
| 534 | 528 | ||
| 535 | if (priority > THREADPRIO_LOWEST) { | 529 | if (priority > THREADPRIO_LOWEST) { |
| 536 | return ResultCode(ErrorDescription::OutOfRange, ErrorModule::OS, | 530 | return ResultCode(ErrorDescription::OutOfRange, ErrorModule::OS, |