[RFA,6/6] Remove a use of is_mi_like_p from darwin-nat-info.c

Message ID 20180430140732.21601-7-tom@tromey.com
State New
Headers show
Series
  • Remove some uses of is_mi_like_p
Related show

Commit Message

Tom Tromey April 30, 2018, 2:07 p.m.
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.

2018-04-29  Tom Tromey  <tom@tromey.com>

	* darwin-nat-info.c (darwin_debug_regions_recurse): Remove use of
	is_mi_like_p.
---
 gdb/ChangeLog         | 5 +++++
 gdb/darwin-nat-info.c | 3 +--
 2 files changed, 6 insertions(+), 2 deletions(-)

-- 
2.13.6

Patch

diff --git a/gdb/darwin-nat-info.c b/gdb/darwin-nat-info.c
index 31086b17dd..e68637fc0d 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++;