This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: dwarf2-frame.c question for maintainers



How come extract_typed_address, in read_reg, doesn't sign extend?


I should have explained that. It does.  However extract_typed_address is
incorrect because it makes the invalid assumption that sizeof(address)
== sizeof(register).  So that has to go and be replaced with something
like
extract_signed_integer (buf, register_size (current_gdbarch, regnum));

You mean the builtin_type_void_data_ptr parameter to extract_typed_address? Ah.


I see builtin_type_void_data_ptr dates back to 1.1 (Mark?). It could instead use the register's type?

Andrew



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]