The address provided in the memory window is now verified to prevent crash
[clinton/Virtual-Jaguar-Rx.git] / src / debugger / localbrowser.h
CommitLineData
0203b5fd
JPM
1//\r
2// localbrowser.h: All Watch\r
3//\r
4// by Jean-Paul Mari\r
5//\r
6\r
7#ifndef __LOCALBROWSER_H__\r
8#define __LOCALBROWSER_H__\r
9\r
10#include <QtWidgets>\r
11#include <stdint.h>\r
12\r
13class LocalBrowserWindow: public QWidget\r
14{\r
15 Q_OBJECT\r
16\r
17 //\r
18 struct WatchInfo\r
19 {\r
20 //size_t TypeEncoding;\r
21 //size_t TypeByteSize;\r
22 size_t Op;\r
23 size_t Adr;\r
24 int Offset;\r
25 size_t TypeTag;\r
26 size_t TypeEncoding;\r
27 size_t TypeByteSize;\r
28 char *PtrVariableName;\r
29 char *PtrVariableBaseTypeName;\r
e857856a 30 char *PtrCPURegisterName;\r
0203b5fd
JPM
31 }S_WatchInfo;\r
32\r
33 public:\r
34 LocalBrowserWindow(QWidget *parent = 0);\r
35 ~LocalBrowserWindow(void);\r
36\r
37 public slots:\r
38// void DefineAllKeys(void);\r
39 void RefreshContents(void);\r
40 bool UpdateInfos(void);\r
41// void GoToAddress(void);\r
42\r
43 protected:\r
44// void keyPressEvent(QKeyEvent *);\r
45\r
46 private:\r
47 QVBoxLayout *layout;\r
48// QTextBrowser * text;\r
49// QLabel *text;\r
50 QTextBrowser *text;\r
51// QPushButton *refresh;\r
52// QLineEdit *address;\r
53// QPushButton *go;\r
54 WatchInfo *LocalInfo;\r
55// int32_t memBase;\r
56 size_t NbLocal;\r
57 char *FuncName;\r
58};\r
59\r
60#endif // __LOCALBROWSER_H__\r