Make process_lookup_symbol() return a string. Delete

2006-08-20  Soren Sandmann  <sandmann@daimi.au.dk>

	* process.h: Make process_lookup_symbol() return a string. Delete
	process_lookup_symbol_with_filename().

	* process.c (struct Process): Make "undefined" a string
	(lookup_kernel_symbol): Return a string
	(process_lookup_symbol): Return a string, not a symbol

	* collector.c (unique_dup): Take a string instead of a
	Symbol.
	(lookup_symbol): Make sym a string instead of a Symbol.

	* binfile.c (bin_symbol_get_name): New function.

	* binfile.[ch] (struct BinSymbol): Rename Symbol to BinSymbol and
	make it an opaque structure.

	* binfile.[ch]: Remove unused symbol operations
This commit is contained in:
Soren Sandmann
2006-08-21 02:33:38 +00:00
committed by Søren Sandmann Pedersen
parent 7d8f3c232d
commit a880ee7f60
6 changed files with 67 additions and 105 deletions

View File

@ -51,12 +51,7 @@ Process * process_get_from_pid (int pid);
void process_ensure_map (Process *process,
int pid,
gulong address);
const Symbol *process_lookup_symbol (Process *process,
gulong address);
const Symbol *process_lookup_symbol_with_filename (Process *process,
int pid,
gulong map_start,
const char *filename,
const char * process_lookup_symbol (Process *process,
gulong address);
const char * process_get_cmdline (Process *process);
void process_flush_caches (void);