mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-28 10:00:51 +00:00
Turn value_type into method
This changes value_type to be a method of value. Much of this patch was written by script. Approved-By: Simon Marchi <simon.marchi@efficios.com>
This commit is contained in:
@@ -457,7 +457,7 @@ read_fat_string_value (char *dest, struct value *val, int max_len)
|
||||
to extract the string from the fat string. */
|
||||
if (initialize_fieldnos)
|
||||
{
|
||||
struct type *type = value_type (val);
|
||||
struct type *type = val->type ();
|
||||
struct type *bounds_type;
|
||||
|
||||
array_fieldno = ada_get_field_index (type, "P_ARRAY", 0);
|
||||
@@ -784,7 +784,7 @@ read_atcb (CORE_ADDR task_id, struct ada_task_info *task_info)
|
||||
value_subscript (entry_calls_value,
|
||||
value_as_long (atc_nesting_level_value));
|
||||
called_task_fieldno =
|
||||
ada_get_field_index (value_type (entry_calls_value_element),
|
||||
ada_get_field_index (entry_calls_value_element->type (),
|
||||
"called_task", 0);
|
||||
task_info->called_task =
|
||||
value_as_address (value_field (entry_calls_value_element,
|
||||
|
||||
Reference in New Issue
Block a user