File: SystemPacket.h

package info (click to toggle)
pose 3.0a3-3
  • links: PTS
  • area: contrib
  • in suites: potato
  • size: 15,500 kB
  • ctags: 20,548
  • sloc: ansic: 72,579; cpp: 50,198; perl: 1,336; python: 1,242; sh: 363; makefile: 290
file content (44 lines) | stat: -rw-r--r-- 1,436 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/* -*- mode: C++; tab-width: 4 -*- */
/* ================================================================================== */
/* Copyright (c) 1998-1999 3Com Corporation or its subsidiaries. All rights reserved. */
/* ================================================================================== */

#ifndef SYSTEMPACKET_H_
#define SYSTEMPACKET_H_

#include "ErrorHandling.h"		// ErrCode

class SLP;

class SystemPacket
{
	public:
		static ErrCode			SendState			(SLP&);
		static ErrCode			ReadMem 			(SLP&);
		static ErrCode			WriteMem			(SLP&);
		static ErrCode			SendRoutineName 	(SLP&);
		static ErrCode			ReadRegs			(SLP&);
		static ErrCode			WriteRegs			(SLP&);
		static ErrCode			Continue			(SLP&);
		static ErrCode			RPC 				(SLP&);
		static ErrCode			RPC2 				(SLP&);
		static ErrCode			GetBreakpoints		(SLP&);
		static ErrCode			SetBreakpoints		(SLP&);
		static ErrCode			ToggleBreak 		(SLP&);
		static ErrCode			GetTrapBreaks		(SLP&);
		static ErrCode			SetTrapBreaks		(SLP&);
		static ErrCode			Find				(SLP&);
		static ErrCode			GetTrapConditions	(SLP&);
		static ErrCode			SetTrapConditions	(SLP&);

		static ErrCode			SendMessage			(SLP&, const char*);

	private:
		static ErrCode			SendResponse		(SLP&, Byte code);
		static ErrCode			SendPacket			(SLP&, const void* body, long bodySize);

		static void 			GetRegs 			(M68KRegsType&);
		static void 			SetRegs 			(const M68KRegsType&);
};

#endif	// SYSTEMPACKET_H_