X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2Fbcache.h;h=da69a2da4244300cd020d74716da2d11bb6707fc;hb=53a71c068156f7c35e07ddd5c0cce97bf98c025c;hp=15a297c9c1ebff6cad70e2784d02948676e13ddf;hpb=a9762ec78a53fbe9209fe1654db42df0cd328d50;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/bcache.h b/gdb/bcache.h index 15a297c9c1..da69a2da42 100644 --- a/gdb/bcache.h +++ b/gdb/bcache.h @@ -2,7 +2,8 @@ Written by Fred Fish Rewritten by Jim Blandy - Copyright (C) 1999, 2000, 2002, 2003, 2007 Free Software Foundation, Inc. + Copyright (C) 1999, 2000, 2002, 2003, 2007, 2008, 2009, 2010 + Free Software Foundation, Inc. This file is part of GDB. @@ -144,11 +145,15 @@ struct bcache; either case, return a pointer to BCACHE's copy of that string. Since the cached value is ment to be read-only, return a const buffer. */ -extern void *deprecated_bcache (const void *addr, int length, - struct bcache *bcache); extern const void *bcache (const void *addr, int length, struct bcache *bcache); +/* Like bcache, but if ADDED is not NULL, set *ADDED to true if the + bytes were newly added to the cache, or to false if the bytes were + found in the cache. */ +extern const void *bcache_full (const void *addr, int length, + struct bcache *bcache, int *added); + /* Free all the storage used by BCACHE. */ extern void bcache_xfree (struct bcache *bcache);