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 0/3] bfd cache: tighten match criteria and debug commands.


> 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.


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