diff options
author | Michael Snyder <msnyder@specifix.com> | 2009-11-11 19:27:02 +0000 |
---|---|---|
committer | Michael Snyder <msnyder@specifix.com> | 2009-11-11 19:27:02 +0000 |
commit | 1dc55da8b3553ee969175d929713a20c885c112a (patch) | |
tree | 401f267d77babd80d4b8c5e1af0cd3329682c8ef /gdb/findvar.c | |
parent | 7b76d18d09d72559c9ee38361de193fe2d336e67 (diff) | |
download | gdb-1dc55da8b3553ee969175d929713a20c885c112a.tar.gz |
2009-10-28 Michael Snyder <msnyder@vmware.com>
* findvar.c (top level): Fix and add comments.
Diffstat (limited to 'gdb/findvar.c')
-rw-r--r-- | gdb/findvar.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gdb/findvar.c b/gdb/findvar.c index 8c027c9156a..abfe5bb7751 100644 --- a/gdb/findvar.c +++ b/gdb/findvar.c @@ -36,8 +36,9 @@ #include "block.h" #include "objfiles.h" -/* Basic byte-swapping routines. GDB has needed these for a long time... - All extract a target-format integer at ADDR which is LEN bytes long. */ +/* Basic byte-swapping routines. All 'extract' functions return a + host-format integer from a target-format integer at ADDR which is + LEN bytes long. */ #if TARGET_CHAR_BIT != 8 || HOST_CHAR_BIT != 8 /* 8 bit characters are a pretty safe assumption these days, so we @@ -179,6 +180,8 @@ extract_typed_address (const gdb_byte *buf, struct type *type) return gdbarch_pointer_to_address (get_type_arch (type), type, buf); } +/* All 'store' functions accept a host-format integer and store a + target-format integer at ADDR which is LEN bytes long. */ void store_signed_integer (gdb_byte *addr, int len, |