[rfc] Print MI fullname even for non-existing files
Jan Kratochvil
jan.kratochvil@redhat.com
Mon Dec 17 18:36:00 GMT 2012
On Mon, 17 Dec 2012 17:12:23 +0100, Andrew Burgess wrote:
> On 17/12/2012 3:58 PM, Jan Kratochvil wrote:
> > Is there a serious reason why fullname was suppressed for non-existing files?
>
> I added the fullname field in source.c, there was no good reason then
> for dropping the field if we got NULL back except that (1) it matched
> the behaviour in stack.c, and (2) if we got null back then I'd have just
> left the field empty which didn't feel very useful.
Thanks; although I was more curious why symtab_to_fullname itself returns NULL
for non-existing files, ignoring possibly present symtab->dirname.
> > While it breaks MI compatibility in some way I find it an acceptable change.
>
> I agree.
Thanks for this confirmation.
Jan
More information about the Gdb-patches
mailing list