[RFC] pascal: also handle Free Pascal longjump function.

Pierre Muller pierre.muller@ics-cnrs.unistra.fr
Fri Dec 13 21:53:00 GMT 2013


  Free pascal uses fpc_longjmp internal name
for the long jump function.

  I would like to know two things:

- Where is this internal long jump breakpoint really used in the code?
- Is this kind of patch likely to be accepted?
I would perfectly understand that it would be not acceptable as is,
but maybe some language specific version of the
longjmp name would be useful, no?

  Comments most welcome.

Pierre Muller


ChangeLog entry:

2013-12-13  Pierre Muller  <muller@sourceware.org>

      Also accept Free Pascal name for longjmp function.

--- a/gdb/breakpoint.c
+++ b/gdb/breakpoint.c
@@ -3086,7 +3086,7 @@ create_internal_breakpoint (struct gdbarch *gdbarch,

 static const char *const longjmp_names[] =
   {
-    "longjmp", "_longjmp", "siglongjmp", "_siglongjmp"
+    "longjmp", "_longjmp", "siglongjmp", "_siglongjmp", "fpc_longjmp"
   };
 #define NUM_LONGJMP_NAMES ARRAY_SIZE(longjmp_names)



More information about the Gdb-patches mailing list