diff options
author | Alan Modra <amodra@gmail.com> | 2000-02-21 12:01:27 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2000-02-21 12:01:27 +0000 |
commit | f6af82bd4470673eef9562d4ed3a2717c1d749ab (patch) | |
tree | 049fedd33d8bf74259017f441ef55ee8920b9cc2 /opcodes | |
parent | 2403ff6fdb9d23ee79863d2b2aacac46a2d8283d (diff) | |
download | gdb-f6af82bd4470673eef9562d4ed3a2717c1d749ab.zip gdb-f6af82bd4470673eef9562d4ed3a2717c1d749ab.tar.gz gdb-f6af82bd4470673eef9562d4ed3a2717c1d749ab.tar.bz2 |
This lot mainly cleans up `comparison between signed and unsigned' gcc
warnings. One usused var, and a macro parenthesis fix too. Also check
input sections are elf when doing gc in elflink.h.
Diffstat (limited to 'opcodes')
-rw-r--r-- | opcodes/ChangeLog | 5 | ||||
-rw-r--r-- | opcodes/dis-buf.c | 10 |
2 files changed, 10 insertions, 5 deletions
diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index 2c7e9f5..6c3815c 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -1,3 +1,8 @@ +2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au> + + * dis-buf.c (buffer_read_memory): Change `length' param and all int + vars to unsigned. + Thu Feb 17 00:18:12 2000 J"orn Rennecke <amylaar@cygnus.co.uk> * sh-dis.c (print_movxy, print_insn_ddt, print_dsp_reg): New functions. diff --git a/opcodes/dis-buf.c b/opcodes/dis-buf.c index 65b1edb..b828206 100644 --- a/opcodes/dis-buf.c +++ b/opcodes/dis-buf.c @@ -26,13 +26,13 @@ int buffer_read_memory (memaddr, myaddr, length, info) bfd_vma memaddr; bfd_byte *myaddr; - int length; + unsigned int length; struct disassemble_info *info; { - int opb = info->octets_per_byte; - int end_addr_offset = length / opb; - int max_addr_offset = info->buffer_length / opb; - int octets = (memaddr - info->buffer_vma) * opb; + unsigned int opb = info->octets_per_byte; + unsigned int end_addr_offset = length / opb; + unsigned int max_addr_offset = info->buffer_length / opb; + unsigned int octets = (memaddr - info->buffer_vma) * opb; if (memaddr < info->buffer_vma || memaddr - info->buffer_vma + end_addr_offset > max_addr_offset) |