mirror of https://github.com/PCSX2/pcsx2.git
DebugTools: Fix some compiler warnings
This commit is contained in:
parent
e423fd10c6
commit
42e4a47bfc
|
@ -254,8 +254,6 @@ QVariant BreakpointModel::headerData(int section, Qt::Orientation orientation, i
|
||||||
|
|
||||||
Qt::ItemFlags BreakpointModel::flags(const QModelIndex& index) const
|
Qt::ItemFlags BreakpointModel::flags(const QModelIndex& index) const
|
||||||
{
|
{
|
||||||
volatile const int row = index.row();
|
|
||||||
|
|
||||||
switch (index.column())
|
switch (index.column())
|
||||||
{
|
{
|
||||||
case BreakpointColumns::CONDITION:
|
case BreakpointColumns::CONDITION:
|
||||||
|
|
|
@ -299,13 +299,13 @@ std::optional<u32> DebugInterface::getStackFrameSize(const ccc::Function& functi
|
||||||
u32 instruction = read32(function.address().value);
|
u32 instruction = read32(function.address().value);
|
||||||
|
|
||||||
if ((instruction & 0xffff0000) == 0x27bd0000)
|
if ((instruction & 0xffff0000) == 0x27bd0000)
|
||||||
stack_frame_size = -(instruction & 0xffff);
|
stack_frame_size = -static_cast<s16>(instruction & 0xffff);
|
||||||
|
|
||||||
if (stack_frame_size < 0)
|
if (stack_frame_size < 0)
|
||||||
return std::nullopt;
|
return std::nullopt;
|
||||||
}
|
}
|
||||||
|
|
||||||
return (u32)stack_frame_size;
|
return static_cast<u32>(stack_frame_size);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool DebugInterface::initExpression(const char* exp, PostfixExpression& dest)
|
bool DebugInterface::initExpression(const char* exp, PostfixExpression& dest)
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
|
|
||||||
#include "SymbolGuardian.h"
|
#include "SymbolGuardian.h"
|
||||||
|
|
||||||
#include <demangle.h>
|
|
||||||
#include <ccc/ast.h>
|
#include <ccc/ast.h>
|
||||||
#include <ccc/elf.h>
|
#include <ccc/elf.h>
|
||||||
#include <ccc/importer_flags.h>
|
#include <ccc/importer_flags.h>
|
||||||
|
@ -19,6 +18,8 @@
|
||||||
#include "Host.h"
|
#include "Host.h"
|
||||||
#include "VMManager.h"
|
#include "VMManager.h"
|
||||||
|
|
||||||
|
#include <demangle.h>
|
||||||
|
|
||||||
SymbolGuardian R5900SymbolGuardian;
|
SymbolGuardian R5900SymbolGuardian;
|
||||||
SymbolGuardian R3000SymbolGuardian;
|
SymbolGuardian R3000SymbolGuardian;
|
||||||
|
|
||||||
|
@ -124,20 +125,6 @@ void SymbolGuardian::Reset()
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
static void CreateBuiltInDataType(
|
|
||||||
ccc::SymbolDatabase& database, ccc::SymbolSourceHandle source, const char* name, ccc::ast::BuiltInClass bclass)
|
|
||||||
{
|
|
||||||
ccc::Result<ccc::DataType*> symbol = database.data_types.create_symbol(name, source, nullptr);
|
|
||||||
if (!symbol.success())
|
|
||||||
return;
|
|
||||||
|
|
||||||
std::unique_ptr<ccc::ast::BuiltIn> type = std::make_unique<ccc::ast::BuiltIn>();
|
|
||||||
type->name = name;
|
|
||||||
type->size_bytes = ccc::ast::builtin_class_size(bclass);
|
|
||||||
type->bclass = bclass;
|
|
||||||
(*symbol)->set_type(std::move(type));
|
|
||||||
}
|
|
||||||
|
|
||||||
void SymbolGuardian::ImportElf(std::vector<u8> elf, std::string elf_file_name, const std::string& nocash_path)
|
void SymbolGuardian::ImportElf(std::vector<u8> elf, std::string elf_file_name, const std::string& nocash_path)
|
||||||
{
|
{
|
||||||
ccc::Result<ccc::ElfFile> parsed_elf = ccc::ElfFile::parse(std::move(elf));
|
ccc::Result<ccc::ElfFile> parsed_elf = ccc::ElfFile::parse(std::move(elf));
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <queue>
|
|
||||||
#include <atomic>
|
#include <atomic>
|
||||||
#include <thread>
|
#include <thread>
|
||||||
#include <functional>
|
#include <functional>
|
||||||
|
@ -103,9 +102,6 @@ protected:
|
||||||
|
|
||||||
std::thread m_import_thread;
|
std::thread m_import_thread;
|
||||||
std::atomic_bool m_interrupt_import_thread = false;
|
std::atomic_bool m_interrupt_import_thread = false;
|
||||||
|
|
||||||
std::queue<ccc::SymbolDatabase> m_load_queue;
|
|
||||||
std::mutex m_load_queue_lock;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
extern SymbolGuardian R5900SymbolGuardian;
|
extern SymbolGuardian R5900SymbolGuardian;
|
||||||
|
|
Loading…
Reference in New Issue