Remove dead code from py-finishbreakpoint.c
PR python/16324 points out that comparing a frame id to null_frame_id can never succeed, and proposes simply removing the dead code. That is what this patch does. Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=16324
This commit is contained in:
parent
f760c4f299
commit
04ea6b6314
1 changed files with 1 additions and 6 deletions
|
@ -205,12 +205,7 @@ bpfinishpy_init (PyObject *self, PyObject *args, PyObject *kwargs)
|
|||
"be set on a dummy frame."));
|
||||
}
|
||||
else
|
||||
{
|
||||
frame_id = get_frame_id (prev_frame);
|
||||
if (frame_id == null_frame_id)
|
||||
PyErr_SetString (PyExc_ValueError,
|
||||
_("Invalid ID for the `frame' object."));
|
||||
}
|
||||
frame_id = get_frame_id (prev_frame);
|
||||
}
|
||||
}
|
||||
catch (const gdb_exception &except)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue