Re: New feature "source-id"

Doug Evans
2014-03-16T16:22:22Z

On Sat, Mar 15, 2014 at 7:34 PM, Doug Evans <dje@google.com> wrote:
>
> Note that one concern I have is that it may be that some sites will
> want to have some of gdb's state updated when source files are
> automagically fetched. E.g., maybe one would want to update the
> source search path. Maybe not, but at any rate I don't want this
> feature to preclude doing things like that, and one can't do that if
> the feature works by running an external program via popen.

As a data point,
another way to go is to just have a convention for some global
variables in the binary.
With the debug info gdb can access them, and they could contain
everything that would be in the .note section.

I don't have a preference, per se.
I just mention it as a possibility, and if one went that route then
doing this in Python/Guile would be while perhaps not required
certainly easy.