2000-06-12 Fernando Nasser <fnasser@cygnus.com>
* valops.c (value_assign): Adjust the length to take into consideration that we are not starting from the beginning.
This commit is contained in:
parent
34e924c066
commit
8903de4f9c
|
@ -1,3 +1,8 @@
|
||||||
|
2000-06-12 Fernando Nasser <fnasser@cygnus.com>
|
||||||
|
|
||||||
|
* valops.c (value_assign): Adjust the length to take into
|
||||||
|
consideration that we are not starting from the beginning.
|
||||||
|
|
||||||
2000-06-12 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
|
2000-06-12 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
|
||||||
|
|
||||||
* symfile.c (add_symbol_file_command): Properly reformat "else if"
|
* symfile.c (add_symbol_file_command): Properly reformat "else if"
|
||||||
|
|
|
@ -660,7 +660,8 @@ value_assign (toval, fromval)
|
||||||
if (VALUE_BITSIZE (toval))
|
if (VALUE_BITSIZE (toval))
|
||||||
{
|
{
|
||||||
char buffer[sizeof (LONGEST)];
|
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))
|
if (len > (int) sizeof (LONGEST))
|
||||||
error ("Can't handle bitfields in registers larger than %d bits.",
|
error ("Can't handle bitfields in registers larger than %d bits.",
|
||||||
|
|
Loading…
Reference in New Issue