[rfc] Use trad_frame_alloc_saved_regs everywhere
Markus Deuling
deuling@de.ibm.com
Thu Nov 15 08:51:00 GMT 2007
Hi,
there were still 3 places (1 in unused source in score-tdep.c) where frame_obstack_zalloc was used
instead of trad_frame_alloc_saved_regs. SIZEOF_FRAME_SAVED_REGS was only used with this 3 functions
and thus is removed by this patch also.
I tried to port alpha target to use trad_frame_alloc_saved_regs correctly but I'm not sure I covered
everything. I'd appreciate it very much if someone with access to an alpha machine could run the testsuite.
What about that unused source part in score-tdep.c? Is it ok to delete it?
Tested by building score and alpha target. Is this ok ?
ChangeLog:
* score-tdep.c: Remove unused source parts.
* frame.h (SIZEOF_FRAME_SAVED_REGS): Remove.
* alpha-tdep.c (trad-frame.h): Add new include.
(alpha_heuristic_frame_unwind_cache): Use trad_frame_alloc_saved_regs
instead of frame_obstack_zalloc.
* alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
(alpha_heuristic_unwind_cache): Use trad_frame_saved_reg as
saved_regs.
(alpha_heuristic_frame_prev_register): Likewise.
* Makefile.in (alpha-tdep.o): Add dependency to trad_frame_h.
Regards,
Markus
--
Markus Deuling
GNU Toolchain for Linux on Cell BE
deuling@de.ibm.com
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: diff-SIZEOF_FRAME_SAVED_REGS
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20071115/74d7d7e8/attachment.ksh>
More information about the Gdb-patches
mailing list