This is the mail archive of the insight-prs@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]
Other format: [Raw text]

insight/169: tk.ico used instead of gdbtool.ico when building under Cygwin


>Number:         169
>Category:       insight
>Synopsis:       tk.ico used instead of gdbtool.ico when building under Cygwin
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jul 09 08:33:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Martin J. O'Riordan,  Silaria Ltd., Dublin, Ireland
>Release:        insight-5.1 and insight-5.2
>Organization:
>Environment:
Windows 2000 Professional
Cygwin - latest as of 7 July 2002
>Description:
I have ported the Gnu development tools including Insight to our processor, and I had noticed that in Insight 5.1, the icon in the top left corner of each window displayed the Cygnus icon (cygnus.ico) instead of the expected 'gdbtool.ico'.  When I moved to Insight-5.2, I noticed that this changed to the Tk icon 'tk.ico'.  The reason for this is that the Windows resource files 'tk*.ico' now refer to 'tk.ico' instead of 'cygnus.ico'.

Either way, they should be referring to the GDBTK icon 'gdbtool.ico'.

The reason this seems to be the case, is that the resource files for Tk contain a definition for many symbols other than "tk", whereas 'gdb.rc' only defines "tk".  The linker overrides the "gdbres.o" definition and the intended icon is not correctly bound.
>How-To-Repeat:
Build GDB-Insight 5.2 for a cross development target under Windows 2000 Professional using Cygwin.  Run this version of GDB and notice the icon on the title bar is not the expected one.
>Fix:
I think that the Tk resources need to be broken out into separate files so that the "tk" icon is on its own in a separate '.o' file.  However, I do not understand the Tk library well enough to be confident about this.
>Release-Note:
>Audit-Trail:
>Unformatted:


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