diff options
Diffstat (limited to 'gdb/jit.c')
-rw-r--r-- | gdb/jit.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/jit.c b/gdb/jit.c index e6b3cc25ca4..9ae5d4a908c 100644 --- a/gdb/jit.c +++ b/gdb/jit.c @@ -1464,7 +1464,8 @@ free_objfile_data (struct objfile *objfile, void *data) if (ps_data != NULL && ps_data->objfile == objfile) { ps_data->objfile = NULL; - delete_breakpoint (ps_data->jit_breakpoint); + if (ps_data->jit_breakpoint != NULL) + delete_breakpoint (ps_data->jit_breakpoint); ps_data->cached_code_address = 0; } } |