]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
hurd: document that gcc&gdb look at the trampoline code
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Mon, 8 Jun 2020 12:41:57 +0000 (14:41 +0200)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Mon, 8 Jun 2020 12:41:57 +0000 (14:41 +0200)
* sysdeps/mach/hurd/i386/trampoline.c (rpc_wait_trampoline): Document
which gcc and gdb files look at the code of the trampoline.

sysdeps/mach/hurd/i386/trampoline.c

index e7eb316fcefc6cb3fe1d8b3d8b4f94542e292a18..8c7976919c5b16931309563dbb0994ccf2ec1a32 100644 (file)
@@ -227,7 +227,11 @@ _hurd_setup_sighandler (struct hurd_sigstate *ss, __sighandler_t handler,
 }
 
 /* The trampoline code follows.  This used to be located inside
-   _hurd_setup_sighandler, but was optimized away by gcc 2.95.  */
+   _hurd_setup_sighandler, but was optimized away by gcc 2.95.
+
+   If you modify this, update
+   - in gcc: libgcc/config/i386/gnu-unwind.h x86_gnu_fallback_frame_state,
+   - in gdb: gdb/i386-gnu-tdep.c gnu_sigtramp_code.  */
 
 asm ("rpc_wait_trampoline:\n");
   /* This is the entry point when we have an RPC reply message to receive