This is the mail archive of the gdb-patches@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] |
I committed the following patch. Basically, I wanted to update hppa_gdbarch_init to setup the gdbarch vector when debugging on a hppa target, and wrap the corresponding macros between "#if !GDB_MULTI_ARCH ... #endif" conditionalization. I found a few other nits that I fixed along the way (most notably, I added hppa_ prefixes to certain non-static functions to avoid the namespace pollution). For tm-hppa.h, we have 2 macros that will need some rework: PUSH_DUMMY_FRAME, and FIX_CALL_DUMMY. I won't be able to set GDB_MULTI_ARCH to partial until they are properly implemented. Will investigate. The following patch has been tested on hppa2.0w-hp-hpux11.00. 2002-12-26 J. Brobecker <brobecker@gnat.com> Continuing work to convert the hppa targets to multiarch partil. * hppa-tdep.c: Add some missing forward declarations. (frameless_function_invocation): Prefix the function name by "hppa_" to avoid polluting the namespace. Update all calls to use the new function name. (saved_pc_after_call): Ditto. (init_extra_frame_info): Ditto. (frame_chain): Ditto. (push_dummy_frame): Ditto. (target_read_pc): Ditto. (target_write_pc): Ditto. (in_solib_call_trampoline): Ditto. (in_solib_return_trampoline): Ditto. (skip_trampoline_code): Ditto. (hppa_read_fp): New function, renamed from target_read_fp. (hppa_target_read_fp): New function, using hppa_read_fp. This function conforms to the function profile for the READ_FP gdbarch method. (hppa_extract_struct_value_address): New function, extracted from the definition of the DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS macro. (hppa_frame_num_args): New function. (hppa_gdbarch_init): Setup the gdbarch vector for the hppa target. * config/pa/tm-hppa.h: Wrap around all gdbarch-eligible macros inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation for the switch to multiarch partial. Update some of the macros definitions to match some changes described above in the name of the function they are calling. (PUSH_DUMMY_FRAME): Add a FIXME explaining why this macro will not be straightforward to convert. Do now wrap it inside "#if !... #endif" to remember that this macro has still not been taken care of. (FIX_CALL_DUMMY): Likewise. -- Joel
Attachment:
hppa-ma.diff
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |