From 67caecd7f590743f3581412f3077d0e287308c10 Mon Sep 17 00:00:00 2001 From: fnasser Date: Mon, 12 Jun 2000 14:39:14 +0000 Subject: [PATCH] 2000-06-12 Fernando Nasser * valops.c (value_assign): Adjust the length to take into consideration that we are not starting from the beginning. --- gdb/ChangeLog | 5 +++++ gdb/valops.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index ade4f40819..59b1a43791 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2000-06-12 Fernando Nasser + + * valops.c (value_assign): Adjust the length to take into + consideration that we are not starting from the beginning. + 2000-06-12 Elena Zannoni * symfile.c (add_symbol_file_command): Properly reformat "else if" diff --git a/gdb/valops.c b/gdb/valops.c index c84e7a7c6d..16241bfa2c 100644 --- a/gdb/valops.c +++ b/gdb/valops.c @@ -660,7 +660,8 @@ value_assign (toval, fromval) if (VALUE_BITSIZE (toval)) { char buffer[sizeof (LONGEST)]; - int len = REGISTER_RAW_SIZE (VALUE_REGNO (toval)); + int len = + REGISTER_RAW_SIZE (VALUE_REGNO (toval)) - VALUE_OFFSET (toval); if (len > (int) sizeof (LONGEST)) error ("Can't handle bitfields in registers larger than %d bits.", -- 2.11.0