mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2025-02-04 16:18:18 +00:00
2011-09-06 Luis Machado <lgustavo@codesourcery.com>
* frame.c (has_stack_frames): Check for currently selected traceframe.
This commit is contained in:
parent
27e78320b0
commit
861152be0e
@ -1,3 +1,8 @@
|
||||
2011-09-06 Luis Machado <lgustavo@codesourcery.com>
|
||||
|
||||
* frame.c (has_stack_frames): Check for currently selected
|
||||
traceframe.
|
||||
|
||||
2011-09-06 Pedro Alves <pedro@codesourcery.com>
|
||||
|
||||
* event-top.h (MAXPROMPTS, struct prompts): Delete.
|
||||
|
22
gdb/frame.c
22
gdb/frame.c
@ -1328,17 +1328,21 @@ has_stack_frames (void)
|
||||
if (!target_has_registers || !target_has_stack || !target_has_memory)
|
||||
return 0;
|
||||
|
||||
/* No current inferior, no frame. */
|
||||
if (ptid_equal (inferior_ptid, null_ptid))
|
||||
return 0;
|
||||
/* Traceframes are effectively a substitute for the live inferior. */
|
||||
if (get_traceframe_number () < 0)
|
||||
{
|
||||
/* No current inferior, no frame. */
|
||||
if (ptid_equal (inferior_ptid, null_ptid))
|
||||
return 0;
|
||||
|
||||
/* Don't try to read from a dead thread. */
|
||||
if (is_exited (inferior_ptid))
|
||||
return 0;
|
||||
/* Don't try to read from a dead thread. */
|
||||
if (is_exited (inferior_ptid))
|
||||
return 0;
|
||||
|
||||
/* ... or from a spinning thread. */
|
||||
if (is_executing (inferior_ptid))
|
||||
return 0;
|
||||
/* ... or from a spinning thread. */
|
||||
if (is_executing (inferior_ptid))
|
||||
return 0;
|
||||
}
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user