aboutsummaryrefslogtreecommitdiff
path: root/gdb/frame.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/frame.c')
-rw-r--r--gdb/frame.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/frame.c b/gdb/frame.c
index cc44a04..5ae8611 100644
--- a/gdb/frame.c
+++ b/gdb/frame.c
@@ -1653,7 +1653,7 @@ get_current_frame (void)
have registers is very confusing. Besides, "printcmd.exp"
explicitly checks that ``print $pc'' with no registers prints "No
registers". */
- if (!target_has_registers)
+ if (!target_has_registers ())
error (_("No registers."));
if (!target_has_stack ())
error (_("No stack."));
@@ -1692,7 +1692,8 @@ static struct frame_info *selected_frame;
bool
has_stack_frames ()
{
- if (!target_has_registers || !target_has_stack () || !target_has_memory ())
+ if (!target_has_registers () || !target_has_stack ()
+ || !target_has_memory ())
return false;
/* Traceframes are effectively a substitute for the live inferior. */