This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB 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]

Re: [PATCH] Add a find_source hook for extension languages to locate missing source files.



This is implemented in Python as `gdb.find_source_hook`. If that property exists
and is callable it will be called with the path to the missing source file,
and if the callable returns a string that will be used as the new path
to the source file.

This can be used to fetch missing source files from a VCS or over HTTP,
for example.
---

Thanks to Tom Tromey for pointing me to where to start with this. I'm interested
in using this to provide on-demand source fetching from Mozilla's public
Mercurial server over HTTP for debugging Nightly or Release builds, as well
as post-mortem debugging of crashes from our user population. Microsoft's
debuggers have this functionality built in and it's really useful for those
scenarios.

I've tested this patch and it works well. I'd really like to see it integrated into GDB so that I don't have to maintain/package a patched version of GDB any longer than I have to.

Regards,
Mark


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