This is the mail archive of the insight@sources.redhat.com mailing list for the Insight project.


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

Re: [RFA] more 64-bit patches


On Mon, 29 Oct 2001, Martin M. Hunt wrote:

> Well, it is very small, of course.  Only way around that is to set some
> limits.  Perhaps we should force either 32 or 64-bit displays?   To do that,
> we just change the following in srcbar.itcl:
>
>  # This holds the text that is shown in the address label.
>   public variable address {} {
>     if {[string length $address] > 10} {
>       # 64-bit address plus "0x"
>       set width 18
>     } else {
>       # 32-bit address plus "0x"
>       set width 10
>     }
>     $Tool itemconfigure addr -text $address -font src-font -width $width
>   }
>
> So if you start insight with no inferior, the address width will be 10.  Then
> if you load a 64-bit binary, it will expand to 18.  OK?

Yeah, that's perfect. Even better than what I had in mind.

Thanks! (And it's good to see you back into Insight again!)
Keith



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