From fbdbf38ba7661a7c147f0693566a6b119dada237 Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Sat, 13 Aug 2005 22:37:08 +0000 Subject: [PATCH] * solib-som.c (som_current_sos): Cast to 'gdb_byte *' where appropriate. --- gdb/ChangeLog | 3 +++ gdb/solib-som.c | 11 ++++++----- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 558f5e33a6e..520342ee74a 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,8 @@ 2005-08-14 Mark Kettenis + * solib-som.c (som_current_sos): Cast to 'gdb_byte *' where + appropriate. + * inf-ptrace.c (inf_ptrace_him) [PT_GET_PROCESS_STATE]: Move code... (inf_ptrace_post_startup_inferior): ...here. New function. diff --git a/gdb/solib-som.c b/gdb/solib-som.c index 1342e0b9ed3..3727fb811a7 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); -- 2.30.2