This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


  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)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]