-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMIDisassembly.h
43 lines (37 loc) · 1.49 KB
/
MIDisassembly.h
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
/*******************************************************************************
* Copyright (c) 2008 IBM Corporation.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Corporation - Initial API and implementation
*
* Copyright 2012-2014 Cray Inc. All Rights Reserved.
*
*******************************************************************************/
#ifndef _MIDISASSEMBLY_H_
#define _MIDISASSEMBLY_H_
#include "MIList.h"
#include "MICommand.h"
#include "MIValue.h"
struct MIDisassemblyInfo {
char * addr;
char * func_name;
long offset;
char * inst;
};
typedef struct MIDisassemblyInfo MIDisassemblyInfo;
struct MIDataReadDisassemblyInfo {
MIList *asm_insns;
};
typedef struct MIDataReadDisassemblyInfo MIDataReadDisassemblyInfo;
extern MIDisassemblyInfo * MIDisassemblyInfoNew(void);
extern MIDataReadDisassemblyInfo * MIDataReadDisassembleInfoNew(void);
extern void MIDisassemblyInfoFree(MIDisassemblyInfo *info);
extern void MIDataReadDisassemblyInfoFree(MIDataReadDisassemblyInfo *info);
extern MIDisassemblyInfo * MIDisassemblyInfoParse(MIValue *tuple);
extern MIDataReadDisassemblyInfo * MIGetDataReadDisassemblyInfo(MICommand *cmd);
extern MIList * MIGetDisassemblyList(MIValue *miValue);
#endif /* _MIDISASSEMBLY_H_ */