public inbox for insight@sourceware.org
 help / color / mirror / Atom feed
* Resolving same named files
@ 2001-03-24 22:57 Raja Gobi
  2001-03-25  8:58 ` Fernando Nasser
  0 siblings, 1 reply; 3+ messages in thread
From: Raja Gobi @ 2001-03-24 22:57 UTC (permalink / raw)
  To: insight

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?

Thanks,
-Raja.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Resolving same named files
  2001-03-24 22:57 Resolving same named files Raja Gobi
@ 2001-03-25  8:58 ` Fernando Nasser
  2001-03-25 21:45   ` Raja Gobi
  0 siblings, 1 reply; 3+ messages in thread
From: Fernando Nasser @ 2001-03-25  8:58 UTC (permalink / raw)
  To: Raja Gobi; +Cc: insight

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Resolving same named files
  2001-03-25  8:58 ` Fernando Nasser
@ 2001-03-25 21:45   ` Raja Gobi
  0 siblings, 0 replies; 3+ messages in thread
From: Raja Gobi @ 2001-03-25 21:45 UTC (permalink / raw)
  To: Fernando Nasser; +Cc: Raja Gobi, insight

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2001-03-25 21:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-03-24 22:57 Resolving same named files Raja Gobi
2001-03-25  8:58 ` Fernando Nasser
2001-03-25 21:45   ` Raja Gobi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).