mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-10-13 10:55:46 +08:00
Make function fixed_point_scaling_factor a method of struct type
This logically connects this function to the object it inspects. gdb/ChangeLog: * gdbtypes.h (struct type) <fixed_point_scaling_factor>: New method, replacing fixed_point_scaling_factor. All callers updated throughout this project. (fixed_point_scaling_factor): Delete declaration. * gdbtypes.c (type::fixed_point_scaling_factor): Replaces fixed_point_scaling_factor. Adjust implementation accordingly.
This commit is contained in:
@ -667,7 +667,7 @@ print_type_scalar (struct type *type, LONGEST val, struct ui_file *stream)
|
||||
void
|
||||
print_type_fixed_point (struct type *type, struct ui_file *stream)
|
||||
{
|
||||
std::string small_img = fixed_point_scaling_factor (type).str ();
|
||||
std::string small_img = type->fixed_point_scaling_factor ().str ();
|
||||
|
||||
fprintf_filtered (stream, "%s-byte fixed point (small = %s)",
|
||||
pulongest (TYPE_LENGTH (type)), small_img.c_str ());
|
||||
|
Reference in New Issue
Block a user