This is the mail archive of the gdb-cvs@sourceware.org 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]

[binutils-gdb] Remove a use of is_mi_like_p from darwin-nat-info.c


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=767619365467fd825c6f3906a49d97a7a6afafd6

commit 767619365467fd825c6f3906a49d97a7a6afafd6
Author: Tom Tromey <tom@tromey.com>
Date:   Sun Apr 29 20:53:38 2018 -0600

    Remove a use of is_mi_like_p from darwin-nat-info.c
    
    This removes a use of is_mi_like_p from darwin-nat-info.c.
    This is not needed because MI already ignores ui_out::text.
    
    ChangeLog
    2018-04-30  Tom Tromey  <tom@tromey.com>
    
    	* darwin-nat-info.c (darwin_debug_regions_recurse): Remove use of
    	is_mi_like_p.

Diff:
---
 gdb/ChangeLog         | 5 +++++
 gdb/darwin-nat-info.c | 3 +--
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index f1da8fb..9c2264b 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
 2018-04-30  Tom Tromey  <tom@tromey.com>
 
+	* darwin-nat-info.c (darwin_debug_regions_recurse): Remove use of
+	is_mi_like_p.
+
+2018-04-30  Tom Tromey  <tom@tromey.com>
+
 	* breakpoint.c (mention): Remove use of is_mi_like_p.
 	(print_mention_ranged_breakpoint): Likewise.
 	* break-catch-throw.c (print_it_exception_catchpoint): Remove use
diff --git a/gdb/darwin-nat-info.c b/gdb/darwin-nat-info.c
index 31086b1..e68637f 100644
--- a/gdb/darwin-nat-info.c
+++ b/gdb/darwin-nat-info.c
@@ -676,8 +676,7 @@ darwin_debug_regions_recurse (task_t task)
 	  uiout->field_int ("tag", r_info.user_tag);
       }
 
-      if (!uiout->is_mi_like_p ())
-	uiout->text ("\n");
+      uiout->text ("\n");
 
       if (r_info.is_submap)
 	r_depth++;


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