We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d2442d commit 8ad9cf8Copy full SHA for 8ad9cf8
src/rt/rust_task.cpp
@@ -732,6 +732,11 @@ rust_task::config_notify(chan_handle chan) {
732
notify_chan = chan;
733
}
734
735
+// This is the function that switches stacks by calling another function with
736
+// a single void* argument while changing the stack pointer. It has a funny
737
+// name because gdb doesn't normally like to backtrace through split stacks
738
+// (thinks it indicates a bug), but has a special case to allow functions
739
+// named __morestack to move the stack pointer around.
740
extern "C" void __morestack(void *args, void *fn_ptr, uintptr_t stack_ptr);
741
742
static uintptr_t
0 commit comments