2019-12-25 00:41:20 +00:00
|
|
|
/****************************************************************************
|
|
|
|
* *
|
|
|
|
* Project64 - A Nintendo 64 emulator. *
|
|
|
|
* http://www.pj64-emu.com/ *
|
|
|
|
* Copyright (C) 2012 Project64. All rights reserved. *
|
|
|
|
* *
|
|
|
|
* License: *
|
|
|
|
* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html *
|
|
|
|
* *
|
|
|
|
****************************************************************************/
|
|
|
|
|
2019-01-17 09:34:24 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <stdafx.h>
|
|
|
|
#include "DebuggerUI.h"
|
|
|
|
|
|
|
|
|
|
|
|
class CDebugExcBreakpoints :
|
|
|
|
public CDebugDialog<CDebugExcBreakpoints>
|
|
|
|
{
|
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
WORD ctrlId;
|
|
|
|
int exc;
|
|
|
|
} ExcCheckboxMeta;
|
|
|
|
|
|
|
|
public:
|
|
|
|
enum { IDD = IDD_Debugger_ExceptionBP };
|
|
|
|
|
|
|
|
CDebugExcBreakpoints(CDebuggerUI * debugger);
|
|
|
|
virtual ~CDebugExcBreakpoints(void);
|
|
|
|
|
|
|
|
private:
|
|
|
|
static ExcCheckboxMeta ExcCheckboxMap[];
|
2019-08-20 22:20:49 +00:00
|
|
|
static ExcCheckboxMeta FpExcCheckboxMap[];
|
|
|
|
static ExcCheckboxMeta IntrCheckboxMap[];
|
|
|
|
static ExcCheckboxMeta RcpIntrCheckboxMap[];
|
|
|
|
|
|
|
|
void InitCheckboxes(ExcCheckboxMeta* checkboxMap, SettingID settingID, bool bShift = false);
|
|
|
|
void UpdateBpSetting(ExcCheckboxMeta* checkboxMap, SettingID settingID, WORD wID, bool bChecked, bool bShift = false);
|
|
|
|
void EnableCheckboxes(ExcCheckboxMeta* checkboxMap, bool bEnable);
|
2019-01-17 09:34:24 +00:00
|
|
|
|
|
|
|
LRESULT OnInitDialog(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/);
|
|
|
|
LRESULT OnClicked(WORD wNotifyCode, WORD wID, HWND /*hWndCtl*/, BOOL& bHandled);
|
|
|
|
|
|
|
|
void OnExitSizeMove(void);
|
|
|
|
LRESULT OnDestroy(void);
|
|
|
|
|
|
|
|
BEGIN_MSG_MAP_EX(CDebugExcBreakpoints)
|
|
|
|
MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog)
|
|
|
|
COMMAND_CODE_HANDLER(BN_CLICKED, OnClicked)
|
|
|
|
MSG_WM_EXITSIZEMOVE(OnExitSizeMove)
|
|
|
|
MSG_WM_DESTROY(OnDestroy)
|
|
|
|
END_MSG_MAP()
|
|
|
|
};
|