This is the mail archive of the
insight@sources.redhat.com
mailing list for the Insight project.
[PATCH] breakpoint table left-justify
- From: "Martin M. Hunt" <hunt at redhat dot com>
- To: Insight Mailing List <insight at sources dot redhat dot com>
- Date: Wed, 6 Mar 2002 22:08:27 -0800
- Subject: [PATCH] breakpoint table left-justify
- Organization: Red Hat Inc
I'm calling this an obvious patch because not many people
like right-justified tables, especially when some function
names are very long and some very short.
--
Martin Hunt
GDB Engineer
Red Hat, Inc.
2002-03-06 Martin M. Hunt <hunt@redhat.com>
* library/bpwin.itb: Left-justify the labels in
the table.
Index: library/bpwin.itb
===================================================================
RCS file: /cvs/src/src/gdb/gdbtk/library/bpwin.itb,v
retrieving revision 1.11
diff -u -p -r1.11 bpwin.itb
--- bpwin.itb 2002/03/05 22:22:19 1.11
+++ bpwin.itb 2002/03/07 06:05:54
@@ -238,9 +238,9 @@ body BpWin::bp_add {bp_event {tracepoint
}
if {$tracepoints} {
- label $twin.num$i -text "$number " -relief flat -anchor e -font global/fixed -bg $bg1
+ label $twin.num$i -text "$number " -relief flat -anchor w -font global/fixed -bg $bg1
}
- label $twin.addr$i -text "[$bp_event get address] " -relief flat -anchor e -font global/fixed -bg $bg1
+ label $twin.addr$i -text "[$bp_event get address] " -relief flat -anchor w -font global/fixed -bg $bg1
if {[info exists _files(short,$file)]} {
set file $_files(short,$file)
} else {
@@ -249,13 +249,13 @@ body BpWin::bp_add {bp_event {tracepoint
}
if {$show_threads} {
if {$thread == "-1"} {set thread "ALL"}
- label $twin.thread$i -text "$thread " -relief flat -anchor e -font global/fixed -bg $bg1
+ label $twin.thread$i -text "$thread " -relief flat -anchor w -font global/fixed -bg $bg1
}
- label $twin.file$i -text "$file " -relief flat -anchor e -font global/fixed -bg $bg1
- label $twin.line$i -text "[$bp_event get line] " -relief flat -anchor e -font global/fixed -bg $bg1
- label $twin.func$i -text "[$bp_event get function] " -relief flat -anchor e -font global/fixed -bg $bg1
+ label $twin.file$i -text "$file " -relief flat -anchor w -font global/fixed -bg $bg1
+ label $twin.line$i -text "[$bp_event get line] " -relief flat -anchor w -font global/fixed -bg $bg1
+ label $twin.func$i -text "[$bp_event get function] " -relief flat -anchor w -font global/fixed -bg $bg1
if {$tracepoints} {
- label $twin.pass$i -text "[$bp_event get pass_count] " -relief flat -anchor e -font global/fixed -bg $bg1
+ label $twin.pass$i -text "[$bp_event get pass_count] " -relief flat -anchor w -font global/fixed -bg $bg1
}
if {$mbar} {