This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[RFA]: pending breakpoint cosmetic change


I noticed recently that my attempt to put in spaces after the <PENDING> address in an info breakpoint is not needed. It actually adds extra spaces because gdb gets the field alignment right.

Ok to commit?

-- Jeff J.

2004-02-19 Jeff Johnston <jjohnstn@redhat.com>

        * breakpoint.c (print_one_breakpoint): Do not output spaces
        after printing <PENDING> for a pending breakpoint.

Index: breakpoint.c
===================================================================
RCS file: /cvs/src/src/gdb/breakpoint.c,v
retrieving revision 1.158
diff -u -p -r1.158 breakpoint.c
--- breakpoint.c	3 Feb 2004 22:47:40 -0000	1.158
+++ breakpoint.c	20 Feb 2004 01:12:34 -0000
@@ -3471,13 +3471,7 @@ print_one_breakpoint (struct breakpoint 
 	  {
 	    annotate_field (4);
 	    if (b->pending)
-	      {
-		ui_out_field_string (uiout, "addr", "<PENDING>");
-		if (TARGET_ADDR_BIT <= 32)
-		  ui_out_spaces (uiout, 2);
-		else
-		  ui_out_spaces (uiout, 8);
-	      }
+	      ui_out_field_string (uiout, "addr", "<PENDING>");
 	    else
 	      ui_out_field_core_addr (uiout, "addr", b->loc->address);
 	  }

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]