public inbox for insight@sourceware.org
 help / color / mirror / Atom feed
From: "Martin M. Hunt" <hunt@redhat.com>
To: Insight Mailing List <insight@sources.redhat.com>
Subject: [patch] tweek display of multiple BPs on same line
Date: Thu, 07 Mar 2002 13:55:00 -0000	[thread overview]
Message-ID: <200203072154.g27LsSc06113@localhost.localdomain> (raw)

checked in.

-- 
Martin Hunt
GDB Engineer
Red Hat, Inc.

2002-03-07  Martin M. Hunt  <hunt@redhat.com>

	* library/srctextwin.itb (SrcTextWin::showBPBalloon): Put 
	linefeeds between multiple breakpoints.

Index: library/srctextwin.itb
===================================================================
RCS file: /cvs/src/src/gdb/gdbtk/library/srctextwin.itb,v
retrieving revision 1.33
diff -u -p -r1.33 srctextwin.itb
--- srctextwin.itb	2002/03/07 20:22:42	1.33
+++ srctextwin.itb	2002/03/07 21:53:11
@@ -2310,6 +2310,7 @@ body SrcTextWin::showBPBalloon {win x y}
   }
 
   set str ""
+  set need_lf 0
   foreach b $bps {
     set bpinfo [gdb_get_breakpoint_info $b]
     lassign $bpinfo file func linenum addr type enabled disposition \
@@ -2321,6 +2322,8 @@ body SrcTextWin::showBPBalloon {win x y}
       set enabled "DIS"
     }
 
+    if {$need_lf} {append str \n}
+
     append str [format "breakpoint %d at %s:%d (%#x)\n   %s %s %s" \
 		  $b $file $linenum $addr $enabled $type $disposition]
 
@@ -2343,6 +2346,7 @@ body SrcTextWin::showBPBalloon {win x y}
 	append str "\n   commands: $commands"
       }
     }
+    set need_lf 1
   }
 
   # Scope out which break type is set here, and use the tag to get

                 reply	other threads:[~2002-03-07 21:55 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200203072154.g27LsSc06113@localhost.localdomain \
    --to=hunt@redhat.com \
    --cc=insight@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).