Home
last modified time | relevance | path

Searched refs:readp (Results 1 – 16 of 16) sorted by relevance

/external/elfutils/src/libdw/
Ddwarf_getpubnames.c51 unsigned char *readp = startp; in get_offsets() local
52 unsigned char *endp = readp + dbg->sectiondata[IDX_debug_pubnames]->d_size; in get_offsets()
54 while (readp + 14 < endp) in get_offsets()
75 Dwarf_Off len = read_4ubyte_unaligned_inc (dbg, readp); in get_offsets()
78 len = read_8ubyte_unaligned_inc (dbg, readp); in get_offsets()
89 mem[cnt].set_start = readp + 2 + 2 * len_bytes - startp; in get_offsets()
99 uint16_t version = read_2ubyte_unaligned (dbg, readp); in get_offsets()
108 readp + 2, len_bytes, in get_offsets()
125 readp += len; in get_offsets()
191 unsigned char *readp = startp + offset; local
[all …]
Ddwarf_getaranges.c88 const unsigned char *readp = dbg->sectiondata[IDX_debug_aranges]->d_buf; local
90 = readp + dbg->sectiondata[IDX_debug_aranges]->d_size;
92 while (readp < readendp)
94 const unsigned char *hdrstart = readp;
113 Dwarf_Word length = read_4ubyte_unaligned_inc (dbg, readp);
117 length = read_8ubyte_unaligned_inc (dbg, readp);
124 unsigned int version = read_2ubyte_unaligned_inc (dbg, readp);
141 IDX_debug_aranges, &readp,
145 unsigned int address_size = *readp++;
150 unsigned int segment_size = *readp++;
[all …]
Ddwarf_getmacros.c145 const unsigned char *readp, in get_table_for_offset() argument
149 const unsigned char *startp = readp; in get_table_for_offset()
152 if (readp + 3 > endp) in get_table_for_offset()
159 uint16_t version = read_2ubyte_unaligned_inc (dbg, readp); in get_table_for_offset()
166 uint8_t flags = *readp++; in get_table_for_offset()
172 line_offset = read_addr_unaligned_inc (is_64bit ? 8 : 4, dbg, readp); in get_table_for_offset()
173 if (readp > endp) in get_table_for_offset()
212 unsigned count = *readp++; in get_table_for_offset()
215 unsigned opcode = *readp++; in get_table_for_offset()
218 if (readp >= endp) in get_table_for_offset()
[all …]
Ddwarf_child.c47 const unsigned char *readp; in __libdw_find_attr() local
50 Dwarf_Abbrev *abbrevp = __libdw_dieabbrev (die, &readp); in __libdw_find_attr()
89 return (unsigned char *) readp; in __libdw_find_attr()
95 size_t len = __libdw_form_val_len (die->cu, attr_form, readp); in __libdw_find_attr()
98 readp = NULL; in __libdw_find_attr()
103 readp += len; in __libdw_find_attr()
113 return (unsigned char *) readp; in __libdw_find_attr()
Ddwarf_ranges.c112 unsigned char *readp; in dwarf_ranges() local
124 if ((readp = __libdw_formptr (attr, IDX_debug_ranges, in dwarf_ranges()
160 readp = d->d_buf + offset; in dwarf_ranges()
165 if (readendp - readp < die->cu->address_size * 2) in dwarf_ranges()
172 &readp, die->cu->address_size, in dwarf_ranges()
188 return readp - (unsigned char *) d->d_buf; in dwarf_ranges()
Ddwarf_getlocation.c658 unsigned char *readp = locs->d_buf + offset; local
662 if (readendp - readp < attr->cu->address_size * 2)
673 &readp, attr->cu->address_size,
686 if (readendp - readp < 2)
691 block.length = read_2ubyte_unaligned_inc (attr->cu->dbg, readp);
692 block.data = readp;
693 if (readendp - readp < (ptrdiff_t) block.length)
695 readp += block.length;
707 return readp - (unsigned char *) locs->d_buf;
Ddwarf_formudata.c80 unsigned char *readp = d->d_buf + offset; in __libdw_formptr() local
82 if (unlikely (readp >= endp)) in __libdw_formptr()
93 return readp; in __libdw_formptr()
DlibdwP.h470 __libdw_dieabbrev (Dwarf_Die *die, const unsigned char **readp) in __libdw_dieabbrev() argument
473 if (die->abbrev == NULL || readp != NULL) in __libdw_dieabbrev()
479 if (readp != NULL) in __libdw_dieabbrev()
480 *readp = addr; in __libdw_dieabbrev()
/external/elfutils/src/src/
Dreadelf.c4478 unsigned char **readp, unsigned char *endp) in skip_listptr_hole() argument
4489 || p->offset >= (Dwarf_Off) (endp - *readp + offset)) in skip_listptr_hole()
4491 *readp = endp; in skip_listptr_hole()
4499 *readp += p->offset - offset; in skip_listptr_hole()
4683 const unsigned char *readp = data->d_buf; in print_debug_aranges_section() local
4684 const unsigned char *readendp = readp + data->d_size; in print_debug_aranges_section()
4686 while (readp < readendp) in print_debug_aranges_section()
4688 const unsigned char *hdrstart = readp; in print_debug_aranges_section()
4692 if (readp + 4 > readendp) in print_debug_aranges_section()
4700 Dwarf_Word length = read_4ubyte_unaligned_inc (dbg, readp); in print_debug_aranges_section()
[all …]
DChangeLog47 (print_cfa_program): Likewise and add more readp bounds checks.
/external/squashfs-tools/squashfs-tools/
Dcaches-queues-lists.c55 queue->readp = queue->writep = 0; in queue_init()
71 while((nextp = (queue->writep + 1) % queue->size) == queue->readp) in queue_put()
88 while(queue->readp == queue->writep) in queue_get()
91 data = queue->data[queue->readp]; in queue_get()
92 queue->readp = (queue->readp + 1) % queue->size; in queue_get()
107 empty = queue->readp == queue->writep; in queue_empty()
120 queue->readp = queue->writep; in queue_flush()
132 queue->readp <= queue->writep ? queue->writep - queue->readp : in dump_queue()
133 queue->size - queue->readp + queue->writep, in dump_queue()
134 queue->readp == queue->writep ? " (EMPTY)" : in dump_queue()
[all …]
Dunsquashfs.c185 queue->readp = queue->writep = 0; in queue_init()
200 while((nextp = (queue->writep + 1) % queue->size) == queue->readp) in queue_put()
215 while(queue->readp == queue->writep) in queue_get()
218 data = queue->data[queue->readp]; in queue_get()
219 queue->readp = (queue->readp + 1) % queue->size; in queue_get()
232 queue->readp <= queue->writep ? queue->writep - queue->readp : in dump_queue()
233 queue->size - queue->readp + queue->writep, in dump_queue()
234 queue->readp == queue->writep ? " (EMPTY)" : in dump_queue()
235 ((queue->writep + 1) % queue->size) == queue->readp ? in dump_queue()
Dunsquashfs.h155 int readp; member
Dcaches-queues-lists.h133 int readp; member
/external/tremolo/Tremolo/
Dvorbisfile.c554 int readp, in _fetch_and_process_packet() argument
632 if(!readp){ in _fetch_and_process_packet()
/external/libvorbis/lib/
Dvorbisfile.c674 int readp, in _fetch_and_process_packet() argument
771 if(!readp)return(0); in _fetch_and_process_packet()