Fix internal error when saving fast tracepoint definitions
When trying to save fast tracepoints to file, gdb returns internal failure: gdb/breakpoint.c:13446: internal-error: unhandled tracepoint type 27 A problem internal to GDB has been detected, further debugging may prove unreliable. And no file including the fast tracepoints definition is created. The patch also extends save-trace.exp to test saving tracepoint with a fast tracepoint in there. Note that because this test doesn't actually inserts the tracepoints in the program, we can run it with targets that don't actually support fast tracepoints (or tracepoints at all). gdb/ChangeLog: * breakpoint.c (tracepoint_print_recreate): Fix logic error if -> else if. gdb/testsuite/ChangeLog: * gdb.trace/actions.c: Include trace-common.h. (main): Add a location for a fast tracepoint. * gdb.trace/save-trace.exp: Set a fast tracepoint in addition to the normal tracepoints. (gdb_verify_tracepoints): Adjust number of expected tracepoints.
This commit is contained in:
parent
045ccf910b
commit
c93e8391bf
5 changed files with 23 additions and 2 deletions
|
@ -13506,7 +13506,7 @@ tracepoint_print_recreate (struct breakpoint *self, struct ui_file *fp)
|
|||
|
||||
if (self->type == bp_fast_tracepoint)
|
||||
fprintf_unfiltered (fp, "ftrace");
|
||||
if (self->type == bp_static_tracepoint)
|
||||
else if (self->type == bp_static_tracepoint)
|
||||
fprintf_unfiltered (fp, "strace");
|
||||
else if (self->type == bp_tracepoint)
|
||||
fprintf_unfiltered (fp, "trace");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue