mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-06 06:45:56 +08:00
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.
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user