Re: [PATCH] Display full file path in MI style disassembly listing

Pedro Alves
2012-10-18T10:17:33Z

On 10/18/2012 10:48 AM, Andrew Burgess wrote:

>>> I think we should
>>> output a "fullname" field for MI, like we do for breakpoints.
>
> I would be happy to take this approach as a compromise.

IMO, it's not really a compromise. It's all about giving all the data
to the frontend, so it can do whatever it pleases.

- the file path as recorded in the compilation. This is useful to have
so the user can identify issues with fullpath mappings.
- the file path gdb thinks that maps to in the filesystem, using the current
settings of "directory/set directories/etc".

I'd even argue that the backtrace path in question should not change the "file"
field in MI, but instead it would add a new field to the output, if that's
also useful for MI.

--
Pedro Alves