aboutsummaryrefslogtreecommitdiff
path: root/gdb/solib-som.c
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2005-08-13 22:37:08 +0000
committerMark Kettenis <kettenis@gnu.org>2005-08-13 22:37:08 +0000
commitfbdbf38ba7661a7c147f0693566a6b119dada237 (patch)
tree3ff072dbe7b3a7225ed20cc4fbc630df8bae6fb4 /gdb/solib-som.c
parent4ea4748e62dd8ef4479991f8f6894d1ddfbb977f (diff)
downloadgdb-fbdbf38ba7661a7c147f0693566a6b119dada237.zip
gdb-fbdbf38ba7661a7c147f0693566a6b119dada237.tar.gz
gdb-fbdbf38ba7661a7c147f0693566a6b119dada237.tar.bz2
* solib-som.c (som_current_sos): Cast to 'gdb_byte *' where
appropriate.
Diffstat (limited to 'gdb/solib-som.c')
-rw-r--r--gdb/solib-som.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/gdb/solib-som.c b/gdb/solib-som.c
index 1342e0b..3727fb8 100644
--- a/gdb/solib-som.c
+++ b/gdb/solib-som.c
@@ -1,6 +1,6 @@
-/* Handle SOM shared libraries for GDB, the GNU Debugger.
+/* Handle SOM shared libraries.
- Copyright 2004 Free Software Foundation, Inc.
+ Copyright 2004, 2005 Free Software Foundation, Inc.
This file is part of GDB.
@@ -601,9 +601,10 @@ som_current_sos (void)
new->lm_info = xmalloc (sizeof (struct lm_info));
make_cleanup (xfree, new->lm_info);
- read_memory (lm, (char *)&dbuf, sizeof (struct dld_list));
+ read_memory (lm, (gdb_byte *)&dbuf, sizeof (struct dld_list));
- addr = extract_unsigned_integer (&dbuf.name, sizeof (dbuf.name));
+ addr = extract_unsigned_integer ((gdb_byte *)&dbuf.name,
+ sizeof (dbuf.name));
target_read_string (addr, &namebuf, SO_NAME_MAX_PATH_SIZE - 1, &errcode);
if (errcode != 0)
warning (_("Can't read pathname for load map: %s."),
@@ -624,7 +625,7 @@ som_current_sos (void)
lmi->lm_addr = lm;
#define EXTRACT(_fld) \
- extract_unsigned_integer (&dbuf._fld, sizeof (dbuf._fld));
+ extract_unsigned_integer ((gdb_byte *)&dbuf._fld, sizeof (dbuf._fld));
lmi->text_addr = EXTRACT (text_addr);
tmp = EXTRACT (info);