aboutsummaryrefslogtreecommitdiff
path: root/src/rtos/rtos.h
diff options
context:
space:
mode:
authorTim Newsome <tim@sifive.com>2023-09-12 12:55:10 -0700
committerTim Newsome <tim@sifive.com>2023-09-12 12:55:10 -0700
commit8c1f1b77d33b4134fdf196df00c9896cd606221a (patch)
tree94be292a28a52a4453ceb9ac4f357833a2cc8a2d /src/rtos/rtos.h
parent67c2835997c206ddeba58cfc0fad76789db7474b (diff)
parentee31f1578a333a75737bc5b183cd4ae98cdaf798 (diff)
downloadriscv-openocd-8c1f1b77d33b4134fdf196df00c9896cd606221a.zip
riscv-openocd-8c1f1b77d33b4134fdf196df00c9896cd606221a.tar.gz
riscv-openocd-8c1f1b77d33b4134fdf196df00c9896cd606221a.tar.bz2
Merge commit 'ee31f1578a333a75737bc5b183cd4ae98cdaf798' into from_upstream
Conflicts: Makefile.am jimtcl src/helper/Makefile.am src/rtos/rtos.c src/rtos/rtos.h src/rtos/rtos_standard_stackings.c Change-Id: I00c98d20089558744988184370a8cb7f95f03329
Diffstat (limited to 'src/rtos/rtos.h')
-rw-r--r--src/rtos/rtos.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/rtos/rtos.h b/src/rtos/rtos.h
index 6695915..f36288d 100644
--- a/src/rtos/rtos.h
+++ b/src/rtos/rtos.h
@@ -126,7 +126,15 @@ struct rtos_register_stacking {
/* Total number of registers on the stack, including the general ones. This
* may be 0 if there are no additional registers on the stack beyond the
* general ones. */
- unsigned total_register_count;
+ unsigned int total_register_count;
+
+ /* Optional field for targets which may have to implement their own stack read function.
+ * Because stack format can be weird or stack data needed to be edited before passing to the gdb.
+ */
+ int (*read_stack)(struct target *target,
+ int64_t stack_ptr,
+ const struct rtos_register_stacking *stacking,
+ uint8_t *stack_data);
};
#define GDB_THREAD_PACKET_NOT_CONSUMED (-40)