- Updated libstdc++ pretty printers to - Remove gdb-libstdc++-v3-python-6.3.1-20170212.tar.bz2 as unused in SUSE. - Add patches for s390x z14 feates [fate #321514, fate #322272] gdb-s390x-1b63490.patch gdb-s390x-289e23a.patch gdb-s390x-8fe09d7.patch gdb-s390x-96235dc.patch gdb-s390x-ad33963.patch - Adjust some patches: gdb-ppc-power7-test.patch gdb-rhbz795424-bitpos-20of25.patch gdb-rhbz795424-bitpos-21of25.patch gdb-vla-intel-fortran-vla-strings.patch - Add some patches from Fedora: gdb-rhbz1420304-s390x-01of35.patch gdb-rhbz1420304-s390x-02of35.patch gdb-rhbz1420304-s390x-03of35.patch gdb-rhbz1420304-s390x-04of35.patch gdb-rhbz1420304-s390x-05of35.patch gdb-rhbz1420304-s390x-06of35.patch gdb-rhbz1420304-s390x-07of35.patch gdb-rhbz1420304-s390x-08of35.patch gdb-rhbz1420304-s390x-09of35.patch gdb-rhbz1420304-s390x-10of35.patch gdb-rhbz1420304-s390x-11of35.patch gdb-rhbz1420304-s390x-12of35.patch gdb-rhbz1420304-s390x-13of35.patch gdb-rhbz1420304-s390x-14of35.patch OBS-URL: https://build.opensuse.org/package/show/devel:gcc/gdb?expand=0&rev=167
75 lines
2.5 KiB
Diff
75 lines
2.5 KiB
Diff
commit 840989c113433c069f54872d7e051e1572202326
|
|
Author: Andreas Arnez <arnez@linux.vnet.ibm.com>
|
|
Date: Tue Jun 13 15:20:30 2017 +0200
|
|
|
|
read/write_pieced_value: Drop 'buffer_size' variable
|
|
|
|
When the variable 'buffer_size' in read_pieced_value and
|
|
write_pieced_value was introduced, it was needed for tracking the buffer's
|
|
allocated size. Now that the buffer's data type has been changed to a
|
|
std::vector, the variable is no longer necessary; so remove it.
|
|
|
|
gdb/ChangeLog:
|
|
|
|
* dwarf2loc.c (read_pieced_value): Remove buffer_size variable.
|
|
(write_pieced_value): Likewise.
|
|
|
|
### a/gdb/ChangeLog
|
|
### b/gdb/ChangeLog
|
|
## -1,5 +1,10 @@
|
|
2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
|
|
|
|
+ * dwarf2loc.c (read_pieced_value): Remove buffer_size variable.
|
|
+ (write_pieced_value): Likewise.
|
|
+
|
|
+2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
|
|
+
|
|
* dwarf2loc.c (write_pieced_value): When writing to a bit-field,
|
|
transfer the source value's least significant bits, instead of its
|
|
lowest-addressed ones. Rename type_len to max_offset.
|
|
--- a/gdb/dwarf2loc.c
|
|
+++ b/gdb/dwarf2loc.c
|
|
@@ -1761,7 +1761,6 @@ read_pieced_value (struct value *v)
|
|
gdb_byte *contents;
|
|
struct piece_closure *c
|
|
= (struct piece_closure *) value_computed_closure (v);
|
|
- size_t buffer_size = 0;
|
|
std::vector<gdb_byte> buffer;
|
|
int bits_big_endian
|
|
= gdbarch_bits_big_endian (get_type_arch (value_type (v)));
|
|
@@ -1806,12 +1805,8 @@ read_pieced_value (struct value *v)
|
|
this_size_bits = max_offset - offset;
|
|
|
|
this_size = (this_size_bits + source_offset_bits % 8 + 7) / 8;
|
|
+ buffer.reserve (this_size);
|
|
source_offset = source_offset_bits / 8;
|
|
- if (buffer_size < this_size)
|
|
- {
|
|
- buffer_size = this_size;
|
|
- buffer.reserve (buffer_size);
|
|
- }
|
|
intermediate_buffer = buffer.data ();
|
|
|
|
/* Copy from the source to DEST_BUFFER. */
|
|
@@ -1929,7 +1924,6 @@ write_pieced_value (struct value *to, struct value *from)
|
|
const gdb_byte *contents;
|
|
struct piece_closure *c
|
|
= (struct piece_closure *) value_computed_closure (to);
|
|
- size_t buffer_size = 0;
|
|
std::vector<gdb_byte> buffer;
|
|
int bits_big_endian
|
|
= gdbarch_bits_big_endian (get_type_arch (value_type (to)));
|
|
@@ -1988,11 +1982,7 @@ write_pieced_value (struct value *to, struct value *from)
|
|
}
|
|
else
|
|
{
|
|
- if (buffer_size < this_size)
|
|
- {
|
|
- buffer_size = this_size;
|
|
- buffer.reserve (buffer_size);
|
|
- }
|
|
+ buffer.reserve (this_size);
|
|
source_buffer = buffer.data ();
|
|
need_bitwise = 1;
|
|
}
|