Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] "Attach Process" dialog for gdb running remotely ?

Hi Marc,

> > Do you think it would be possible to receive the original file path
> > from the remote, apply a single object path mapping ( / -->
> > /mirror/of/targetfs) and try find the file there, then only show the 
> > "find binary" dialog if that  fails ?
> > Ideally have all object path probing / handling through the gdb/mi 
> > channel and not access the file system locally at all.

> I like that.
> I actually had a similar discussion not too long ago about this in the hopes of avoiding the prompting.
>
> Could you write an enhancement bug for this?

I've filed enhancement request
    https://bugs.eclipse.org/bugs/show_bug.cgi?id=400033 
after some more investigation. I'd ideally propose an extension point to contribute
a "remote process path converter" which takes the remote path or filename from
the process picker and either returns null (cannot convert, please ask by dialog) or
an absolute path on the local host (or the gdb-host if gdb is executed through ssh)
if conversion succeeds.

The issue is easy to reproduce even on a single local Linux system (compile 
gdb-7.5.1 from source, run "gdbserver --multi :2345" on local host, attach to 
it through the gdbserver method).

I think it would be a huge improvement for debugging processes on remote systems.

Thanks,
Martin
--
Martin Oberhuber, SMTS / Product Architect – Development Tools, Wind River
direct +43.662.457915.85  fax +43.662.457915.6

Back to the top