aboutsummaryrefslogtreecommitdiff
path: root/gdb/stack.c
diff options
context:
space:
mode:
authorAndrew Burgess <andrew.burgess@embecosm.com>2019-11-08 15:15:29 +0000
committerAndrew Burgess <andrew.burgess@embecosm.com>2019-11-10 21:00:13 +0000
commit621377757c83ccc8573cc2e979e1d4ba55335c13 (patch)
tree599bb50fa6f286df1ef03c1c04adb70b61c9ac1c /gdb/stack.c
parentcf57ad6d61771f608079f31db10a93872a4553c5 (diff)
downloadfsf-binutils-gdb-621377757c83ccc8573cc2e979e1d4ba55335c13.zip
fsf-binutils-gdb-621377757c83ccc8573cc2e979e1d4ba55335c13.tar.gz
fsf-binutils-gdb-621377757c83ccc8573cc2e979e1d4ba55335c13.tar.bz2
gdb: Convert frame_show_address to return a bool
Just a clean up, should be no user visible changes after this commit. gdb/ChangeLog: * stack.c (frame_show_address): Convert return type to bool. * stack.h (frame_show_address): Likewise, and update header comment. Change-Id: Iaaa9ebd4ff6534db19c5329f1c604932c747bd7f
Diffstat (limited to 'gdb/stack.c')
-rw-r--r--gdb/stack.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/stack.c b/gdb/stack.c
index fa057db..5af00c7 100644
--- a/gdb/stack.c
+++ b/gdb/stack.c
@@ -252,7 +252,7 @@ static int last_displayed_line = 0;
/* See stack.h. */
-int
+bool
frame_show_address (struct frame_info *frame,
struct symtab_and_line sal)
{
@@ -267,7 +267,7 @@ frame_show_address (struct frame_info *frame,
gdb_assert (inline_skipped_frames (inferior_thread ()) > 0);
else
gdb_assert (get_frame_type (get_next_frame (frame)) == INLINE_FRAME);
- return 0;
+ return false;
}
return get_frame_pc (frame) != sal.pc;