From mboxrd@z Thu Jan 1 00:00:00 1970 From: Raja Gobi To: Fernando Nasser Cc: Raja Gobi , insight@sources.redhat.com Subject: Re: Resolving same named files Date: Sun, 25 Mar 2001 21:45:00 -0000 Message-id: <3ABED76A.902674D@netergynet.com> References: <3ABD96DC.DE7E8D8A@netergynet.com> <3ABE22EA.F6A11B67@redhat.com> X-SW-Source: 2001-q1/msg00365.html Hi Fernando, Thanks for the reply. Here are some suggestions. I have been working with Insight and Tcl/Tk for only a month or so. So, please bear with me if some of the ideas are ludicrous. gdb_listfiles() should return the full name of the files. A Tcl array should map the index in the combobox to the full name. Then the basename of files can be displayed in the combobox (of the source window) or the scrolledlistbox (of the function browser). This will have duplicate file names. To resolve this, a balloon should be registered which will display the full name of a file when the mouse is on top of the corresponding name in the combobox or the scrolledlistbox. Do you think this is possible? Another idea would be to have a button which would open something like a "fileselectiondialog". The nice thing about this is the user gets a good picture of the entire work area. But I am not sure how this can be contructed using the symbol table and what would be the appropriate widget to use. Another problem I have encountered is the presence of asm files. In our development, we have hand-coded assembly files which do not generate a stabs entry for the filename. So, it is impossible to get to the functions in asm files and set breakpoints (other than the GDB console). In these cases, it will be nice to have a "fileselectiondialog" which does not constrain the user to stabs entries. But, the problem is gracefully handling cases where the user roams to somewhere outside of the work area which was used to build the executable. Thanks, -Raja. Fernando Nasser wrote: > Raja Gobi wrote: > > > > Hi all, > > > > I have run into a problem where Insight-5.0 does not handle > > duplicate file names (basename()) properly (in the source > > window combobox and function browser file list). The > > "gdb_listfiles()" function ignores duplicate basenames. So, trying > > to display source of the file picks out only one source from the > > symbol table and displays it. > > > > I also downloaded the snapshot 20010325. Although I have > > not tried it, there seems to be change in this area. Can anybody > > clarify if this is the expected behavior? If yes, can we add it to > > the TODO list of gdbtk? > > > > Yes, Raja, it should allow you to select the different files (and should > be added to the TODO list). > > Any suggestions on how we should distinguish the two files in the > combobox display? > > -- > Fernando Nasser > Red Hat Canada Ltd. E-Mail: fnasser@redhat.com > 2323 Yonge Street, Suite #300 > Toronto, Ontario M4P 2C9