diff options
author | Martin Hunt <hunt@redhat.com> | 2002-03-07 21:53:39 +0000 |
---|---|---|
committer | Martin Hunt <hunt@redhat.com> | 2002-03-07 21:53:39 +0000 |
commit | 9353a858a99847baa1e4b1d4bf70c7bf4c13f837 (patch) | |
tree | 0488f533d245afd1c2396205d604422194903435 /gdb/gdbtk | |
parent | 8dffc8d19ef5a06cdefd08fc054105f888f8a0b5 (diff) | |
download | gdb-9353a858a99847baa1e4b1d4bf70c7bf4c13f837.tar.gz |
2002-03-07 Martin M. Hunt <hunt@redhat.com>
* library/srctextwin.itb (SrcTextWin::showBPBalloon): Put
linefeeds between multiple breakpoints.
Diffstat (limited to 'gdb/gdbtk')
-rw-r--r-- | gdb/gdbtk/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/gdbtk/library/srctextwin.itb | 4 |
2 files changed, 9 insertions, 0 deletions
diff --git a/gdb/gdbtk/ChangeLog b/gdb/gdbtk/ChangeLog index b13a8f1a7f3..cb88c159ff5 100644 --- a/gdb/gdbtk/ChangeLog +++ b/gdb/gdbtk/ChangeLog @@ -1,3 +1,8 @@ +2002-03-07 Martin M. Hunt <hunt@redhat.com> + + * library/srctextwin.itb (SrcTextWin::showBPBalloon): Put + linefeeds between multiple breakpoints. + 2002-03-06 Martin M. Hunt <hunt@redhat.com> * library/srctextwin.itb (SrcTextWin::showBPBalloon): diff --git a/gdb/gdbtk/library/srctextwin.itb b/gdb/gdbtk/library/srctextwin.itb index 758895539a1..b5dbaadd3c9 100644 --- a/gdb/gdbtk/library/srctextwin.itb +++ b/gdb/gdbtk/library/srctextwin.itb @@ -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 |