diff options
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/coffread.c | 4 | ||||
-rw-r--r-- | gdb/valops.c | 6 |
3 files changed, 11 insertions, 4 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 2d820d2..83c1de9 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2021-01-21 Luis Machado <luis.machado@linaro.org> + + * coffread.c (enter_linenos): Passing string to complaint. + * valops.c (value_assign): Make array view. + 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca> * auto-load.h (debug_auto_load): Move here. diff --git a/gdb/coffread.c b/gdb/coffread.c index 3b59ba9..77752bc 100644 --- a/gdb/coffread.c +++ b/gdb/coffread.c @@ -1410,8 +1410,8 @@ enter_linenos (file_ptr file_offset, int first_line, return; if (file_offset < linetab_offset) { - complaint (_("Line number pointer %ld lower than start of line numbers"), - file_offset); + complaint (_("Line number pointer %s lower than start of line numbers"), + plongest (file_offset)); if (file_offset > linetab_size) /* Too big to be an offset? */ return; file_offset += linetab_offset; /* Try reading at that linetab diff --git a/gdb/valops.c b/gdb/valops.c index 882f6e7..d0d5628 100644 --- a/gdb/valops.c +++ b/gdb/valops.c @@ -1246,10 +1246,12 @@ value_assign (struct value *toval, struct value *fromval) } else { + gdb::array_view<const gdb_byte> contents + = gdb::make_array_view (value_contents (fromval), + TYPE_LENGTH (type)); put_frame_register_bytes (frame, value_reg, value_offset (toval), - {value_contents (fromval), - TYPE_LENGTH (type)}); + contents); } } |