From ce2f21b2cd3c23f8ce9c8b56baf0028ecc36ec48 Mon Sep 17 00:00:00 2001 From: Jim Kingdon Date: Tue, 8 Mar 1994 15:01:55 +0000 Subject: [PATCH] * irix5-nat.c (find_solib): Cast o_path to CORE_ADDR when using it as one. --- gdb/ChangeLog | 5 +++++ gdb/irix5-nat.c | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 887b5ea2d7..f7813ff198 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +Tue Mar 8 06:56:13 1994 Jim Kingdon (kingdon@lioth.cygnus.com) + + * irix5-nat.c (find_solib): Cast o_path to CORE_ADDR when using it + as one. + Mon Mar 7 13:00:50 1994 Jim Kingdon (kingdon@lioth.cygnus.com) * alpha-tdep.c: Change value to value_ptr. diff --git a/gdb/irix5-nat.c b/gdb/irix5-nat.c index 73382cd9c9..55d6d3e361 100644 --- a/gdb/irix5-nat.c +++ b/gdb/irix5-nat.c @@ -547,9 +547,10 @@ find_solib (so_list_ptr) sizeof (struct obj_list)); read_memory ((CORE_ADDR) new->ll.data, (char *) &(new -> lm), sizeof (struct obj)); - target_read_string (new->lm.o_path, &buffer, INT_MAX, &errcode); + target_read_string ((CORE_ADDR)new->lm.o_path, &buffer, + INT_MAX, &errcode); if (errcode != 0) - memory_error (errcode, new->lm.o_path); + memory_error (errcode, (CORE_ADDR)new->lm.o_path); new->lm.o_path = buffer; solib_map_sections (new); }