diff options
author | Greentime Hu <greentime@andestech.com> | 2017-10-25 02:32:12 -0400 |
---|---|---|
committer | Greentime Hu <greentime@andestech.com> | 2018-02-21 21:44:34 -0500 |
commit | e9d0704aa134de05b21085e6e9dab863e7ab38f7 (patch) | |
tree | 9097860150f2f4c12024a108b5dc7d8ef83e64ac /arch/nds32/include | |
parent | ace02e2badd12e34d781780517614c42dbbf8068 (diff) |
nds32: Debugging support
This patch adds ptrace support.
Signed-off-by: Vincent Chen <vincentc@andestech.com>
Signed-off-by: Greentime Hu <greentime@andestech.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'arch/nds32/include')
-rw-r--r-- | arch/nds32/include/uapi/asm/ptrace.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/arch/nds32/include/uapi/asm/ptrace.h b/arch/nds32/include/uapi/asm/ptrace.h new file mode 100644 index 000000000000..358c99e399d0 --- /dev/null +++ b/arch/nds32/include/uapi/asm/ptrace.h | |||
@@ -0,0 +1,25 @@ | |||
1 | // SPDX-License-Identifier: GPL-2.0 | ||
2 | // Copyright (C) 2005-2017 Andes Technology Corporation | ||
3 | |||
4 | #ifndef __UAPI_ASM_NDS32_PTRACE_H | ||
5 | #define __UAPI_ASM_NDS32_PTRACE_H | ||
6 | |||
7 | #ifndef __ASSEMBLY__ | ||
8 | |||
9 | /* | ||
10 | * User structures for general purpose register. | ||
11 | */ | ||
12 | struct user_pt_regs { | ||
13 | long uregs[26]; | ||
14 | long fp; | ||
15 | long gp; | ||
16 | long lp; | ||
17 | long sp; | ||
18 | long ipc; | ||
19 | long lb; | ||
20 | long le; | ||
21 | long lc; | ||
22 | long syscallno; | ||
23 | }; | ||
24 | #endif | ||
25 | #endif | ||