* valops.c (value_cast_structs): New function. Cast related
authorAleksandar Ristovski <aristovski@qnx.com>
Tue, 1 Apr 2008 16:12:49 +0000 (16:12 +0000)
committerAleksandar Ristovski <aristovski@qnx.com>
Tue, 1 Apr 2008 16:12:49 +0000 (16:12 +0000)
commit6af87b034856eae3d77416c5b2a67bdd60072946
treea890f6e3b304773f2edf103f87173359c95a744a
parent6c2d1a6bc97ac98486be4689e3a1fa054dcd4f01
* valops.c (value_cast_structs): New function. Cast related
STRUCT types up/down and return cast value. The body of this
function comes mostly from value_cast_pointers.
(value_cast_pointers): Code for actual cast STRUCT-STRUCT moved
to value_cast_structs. Now value_cast_pointers needs only create
appropriate reference after using value_cast_structs for actual
casting.
(value_cast): Handle references.
gdb/ChangeLog
gdb/valops.c