2004-12-27 H.J. Lu * dwarf2read.c (read_signed_leb128): Support 64bit host. --- gdb/dwarf2read.c.leb 2004-12-21 14:24:06.000000000 -0800 +++ gdb/dwarf2read.c 2004-12-27 10:55:02.912450066 -0800 @@ -6098,7 +6098,7 @@ read_signed_leb128 (bfd *abfd, char *buf result = 0; shift = 0; - size = 32; + size = 8 * sizeof (result); num_read = 0; i = 0; while (1) @@ -6115,7 +6115,7 @@ read_signed_leb128 (bfd *abfd, char *buf } if ((shift < size) && (byte & 0x40)) { - result |= -(1 << shift); + result |= -(1L << shift); } *bytes_read_ptr = num_read; return result;