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



Just FYI, the last UI patch I submitted removes the address method.
I'll rewrite it at some point but move the address method in the
SrcWin class and submit the patch again.

 Ian.

"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?
> 
> --
> Martin Hunt
> GDB Engineer
> Red Hat, Inc.


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