From 2e618c13af17f36d0f0173786d49abea7308dc24 Mon Sep 17 00:00:00 2001 From: Aleksandar Ristovski Date: Thu, 5 Jun 2008 19:21:55 +0000 Subject: * bcache.c (bcache_data): Call deprecated_bcache_added function. (deprecated_bcache_added): New function name. Body of function bcache_data is used here with the addition of 'added' argument. * bcache.h (deprecated_bcache_added): New function. * symfile.c (add_psymbol_to_bcache): New helper function, takes part of work from add_psymbol_to_list - initialises partial symbol and stashes it in objfile's cache. (append_psymbol_to_list): New helper function, takes other part of work from add_psymbol_to_list - adds partial symbol to the given list. (add_psymbol_to_list): Call helper functions instead of doing work here. If adding to global list, do not duplicate partial symbols in the partial symtab. --- gdb/bcache.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gdb/bcache.h') diff --git a/gdb/bcache.h b/gdb/bcache.h index f4c7d9d657..a49d729a30 100644 --- a/gdb/bcache.h +++ b/gdb/bcache.h @@ -150,6 +150,8 @@ extern void *deprecated_bcache (const void *addr, int length, extern const void *bcache (const void *addr, int length, struct bcache *bcache); +extern void *deprecated_bcache_added (const void *addr, int length, + struct bcache *bcache, int *added); /* Free all the storage used by BCACHE. */ extern void bcache_xfree (struct bcache *bcache); -- cgit v1.2.3