diff options
author | Klee Dienes <kdienes@apple.com> | 2002-10-12 01:48:17 +0000 |
---|---|---|
committer | Klee Dienes <kdienes@apple.com> | 2002-10-12 01:48:17 +0000 |
commit | 0d540cdfe73cd76ebf5f3b855a4962e590052728 (patch) | |
tree | 8721de060b2170d3be9fedbd30d8c1dad32a50d0 /gdb/gdbcore.h | |
parent | 52019e89e2a84debee68874bc1c6d5014e537c1a (diff) | |
download | gdb-0d540cdfe73cd76ebf5f3b855a4962e590052728.zip gdb-0d540cdfe73cd76ebf5f3b855a4962e590052728.tar.gz gdb-0d540cdfe73cd76ebf5f3b855a4962e590052728.tar.bz2 |
2002-10-11 Klee Dienes <kdienes@apple.com>
* findvar.c (read_memory_typed_address): New function.
* gdbcore.h (read_memory_typed_address): Add prototype.
* blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
to read a value destined for a CORE_ADDR, not read_memory_integer.
* f-valprint.c (f77_get_dynamic_upperbound): Ditto.
(f77_get_dynamic_lowerbound): Ditto.
Diffstat (limited to 'gdb/gdbcore.h')
-rw-r--r-- | gdb/gdbcore.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gdb/gdbcore.h b/gdb/gdbcore.h index 8859455..5c10c58 100644 --- a/gdb/gdbcore.h +++ b/gdb/gdbcore.h @@ -64,8 +64,15 @@ extern ULONGEST read_memory_unsigned_integer (CORE_ADDR memaddr, int len); /* Read a null-terminated string from the debuggee's memory, given address, * a buffer into which to place the string, and the maximum available space */ + extern void read_memory_string (CORE_ADDR, char *, int); +/* Read the pointer of type TYPE at ADDR, and return the address it + represents. */ + +CORE_ADDR +read_memory_typed_address (CORE_ADDR addr, struct type *type); + /* This takes a char *, not void *. This is probably right, because passing in an int * or whatever is wrong with respect to byteswapping, alignment, different sizes for host vs. target types, |