This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[RFC] pascal: also handle Free Pascal longjump function.
- From: "Pierre Muller" <pierre dot muller at ics-cnrs dot unistra dot fr>
- To: <gdb-patches at sourceware dot org>
- Date: Fri, 13 Dec 2013 22:52:52 +0100
- Subject: [RFC] pascal: also handle Free Pascal longjump function.
- Authentication-results: sourceware.org; auth=none
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)