diff options
| author | Shicheng Chu <[email protected]> | 2023-04-04 21:06:27 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-04-04 09:06:27 -0400 |
| commit | 93f3cb30e48d5de341bda09fa806120e2bc3f3ad (patch) | |
| tree | b23b2343674fecbc3fdfbcd49220488da21472ed /libcpu/risc-v/virt64/backtrace.c | |
| parent | 8a52e65013d1abb7cfc032409000533000ccd0c2 (diff) | |
[kernel] 将rt_thread结构体改为显式继承rt_object (#7131)
Diffstat (limited to 'libcpu/risc-v/virt64/backtrace.c')
| -rw-r--r-- | libcpu/risc-v/virt64/backtrace.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libcpu/risc-v/virt64/backtrace.c b/libcpu/risc-v/virt64/backtrace.c index c10d9f3522..0bcfa0b9d9 100644 --- a/libcpu/risc-v/virt64/backtrace.c +++ b/libcpu/risc-v/virt64/backtrace.c @@ -131,7 +131,7 @@ extern struct rt_thread *rt_current_thread; static char *_get_elf_name(size_t sepc) { - return IN_USERSPACE ? rt_current_thread->name : "rtthread.elf"; + return IN_USERSPACE ? rt_current_thread->parent.name : "rtthread.elf"; } #endif /* RT_USING_SMART */ |
