[PATCH 0/3] bfd cache: tighten match criteria and debug commands.

Eli Zaretskii eliz@gnu.org
Wed Apr 15 16:15:00 GMT 2015


> Date: Wed, 15 Apr 2015 11:09:54 +0100
> From: Andrew Burgess <andrew.burgess@embecosm.com>
> Cc: gdb-patches@sourceware.org
> 
> > The inode/dev info is available right there in the same fstat call
> > you are hooking into to retrieve the file size:
> 
> <snip>
> 
> > That "st" is a "struct stat", which contains:
> >
> >            struct stat {
> >                dev_t     st_dev;     /* ID of device containing file */
> >                ino_t     st_ino;     /* inode number */
> >                ...
> >                off_t     st_size;    /* total size, in bytes */
> >
> > You'd just need to do the exact same you're already doing, but
> > store st_dev/st_ino instead of st_size?  What am I missing?
> 
> It's just my inability to communicate properly, my uncertainty only
> related to how I would implement a windows suitable solution, as was
> discussed in the thread I linked previously.

Windows can use an equivalent information, at least on NTFS.



More information about the Gdb-patches mailing list