public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [pushed] gdb: remove unnecessary braces
@ 2024-01-15 17:01 Simon Marchi
  0 siblings, 0 replies; only message in thread
From: Simon Marchi @ 2024-01-15 17:01 UTC (permalink / raw)
  To: gdb-patches; +Cc: Simon Marchi

Change-Id: I5e96c0f38aa788462ab19a9becfe22030e913c2a
---
 gdb/stack.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/gdb/stack.c b/gdb/stack.c
index c07e53be35ee..2de3e361c610 100644
--- a/gdb/stack.c
+++ b/gdb/stack.c
@@ -1722,10 +1722,8 @@ info_frame_command_core (frame_info_ptr fi, bool selected_frame_p)
 		gdb_printf ("\n");
 	      }
 	    else if (value->lval () == lval_register)
-	      {
-		gdb_printf (" Previous frame's sp in %s\n",
-			    gdbarch_register_name (gdbarch, value->regnum ()));
-	      }
+	      gdb_printf (" Previous frame's sp in %s\n",
+			  gdbarch_register_name (gdbarch, value->regnum ()));
 
 	    release_value (value);
 	    need_nl = 0;

base-commit: 7bd344dd0e0469a93cbbf50f797155278cb76a0b
-- 
2.43.0


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-01-15 17:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-15 17:01 [pushed] gdb: remove unnecessary braces Simon Marchi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).