diff options
author | Daniel Jacobowitz <dan@debian.org> | 2006-07-24 22:04:13 +0000 |
---|---|---|
committer | Daniel Jacobowitz <dan@debian.org> | 2006-07-24 22:04:13 +0000 |
commit | f5a89c8441d57bd02db4b837bb045435e9d55534 (patch) | |
tree | 032f464c90498ac86841e2f5d14ef6ec17a5dc3d | |
parent | 9a02efa83b2be6acb61aea72ab485e5e9ad4c022 (diff) | |
download | gdb-f5a89c8441d57bd02db4b837bb045435e9d55534.tar.gz |
* solib-irix.c (gdb_int32_bytes): Use gdb_byte instead of char.
(gdb_int64_bytes): Likewise.
(fetch_lm_info): Use .b fields of gdb_int32_bytes and gdb_int64_bytes
as first argument to extract_unsigned_integer to silence compiler
warnings.
-rw-r--r-- | gdb/ChangeLog | 9 | ||||
-rw-r--r-- | gdb/solib-irix.c | 14 |
2 files changed, 16 insertions, 7 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 5d582da4024..ee15e0361ba 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,12 @@ +2006-07-24 Roger Sayle <roger@eyesopen.com> + Daniel Jacobowitz <dan@codesourcery.com> + + * solib-irix.c (gdb_int32_bytes): Use gdb_byte instead of char. + (gdb_int64_bytes): Likewise. + (fetch_lm_info): Use .b fields of gdb_int32_bytes and gdb_int64_bytes + as first argument to extract_unsigned_integer to silence compiler + warnings. + 2006-07-24 Frederic Riss <frederic.riss@st.com> * dwarf2read.c (struct dwarf2_per_objfile): Add has_section_at_zero diff --git a/gdb/solib-irix.c b/gdb/solib-irix.c index 994953ab702..013c4cd5466 100644 --- a/gdb/solib-irix.c +++ b/gdb/solib-irix.c @@ -62,12 +62,12 @@ struct lm_info typedef struct { - char b[4]; + gdb_byte b[4]; } gdb_int32_bytes; typedef struct { - char b[8]; + gdb_byte b[8]; } gdb_int64_bytes; @@ -152,7 +152,7 @@ fetch_lm_info (CORE_ADDR addr) being at the end of a page or the like.) */ read_memory (addr, (char *) &buf, sizeof (buf.ol32)); - if (extract_unsigned_integer (&buf.magic, sizeof (buf.magic)) != 0xffffffff) + if (extract_unsigned_integer (buf.magic.b, sizeof (buf.magic)) != 0xffffffff) { /* Use buf.ol32... */ char obj_buf[432]; @@ -168,7 +168,7 @@ fetch_lm_info (CORE_ADDR addr) - extract_mips_address (&obj_buf[248], 4); } - else if (extract_unsigned_integer (&buf.oi32.oi_size, + else if (extract_unsigned_integer (buf.oi32.oi_size.b, sizeof (buf.oi32.oi_size)) == sizeof (buf.oi32)) { @@ -188,11 +188,11 @@ fetch_lm_info (CORE_ADDR addr) sizeof (buf.oi32.oi_orig_ehdr)); li.pathname_addr = extract_mips_address (&buf.oi32.oi_pathname, sizeof (buf.oi32.oi_pathname)); - li.pathname_len = extract_unsigned_integer (&buf.oi32.oi_pathname_len, + li.pathname_len = extract_unsigned_integer (buf.oi32.oi_pathname_len.b, sizeof (buf.oi32. oi_pathname_len)); } - else if (extract_unsigned_integer (&buf.oi64.oi_size, + else if (extract_unsigned_integer (buf.oi64.oi_size.b, sizeof (buf.oi64.oi_size)) == sizeof (buf.oi64)) { @@ -212,7 +212,7 @@ fetch_lm_info (CORE_ADDR addr) sizeof (buf.oi64.oi_orig_ehdr)); li.pathname_addr = extract_mips_address (&buf.oi64.oi_pathname, sizeof (buf.oi64.oi_pathname)); - li.pathname_len = extract_unsigned_integer (&buf.oi64.oi_pathname_len, + li.pathname_len = extract_unsigned_integer (buf.oi64.oi_pathname_len.b, sizeof (buf.oi64. oi_pathname_len)); } |