This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Call i386_frame_p() only for 32bits
- From: Michal Ludvig <mludvig at suse dot cz>
- To: Andrew Cagney <ac131313 at redhat dot com>
- Cc: Mark Kettenis <kettenis at chello dot nl>, gdb at sources dot redhat dot com
- Date: Fri, 21 Mar 2003 11:08:35 +0100
- Subject: Call i386_frame_p() only for 32bits
- Organization: SuSE CR
Hi all,
I have this problem with i386newframe-branch on x86-64:
In i386-tdep.c:i386_gdbarch_init() there is always called the line
frame_unwind_append_predicate (gdbarch, i386_frame_p);
regardless if the inferior is 32b or 64b (of course, it isn't yet known
at this time). This is obviously wrong, because what i386_frame_p()
gives out doesn't make sense for 64b processes.
How can I achieve that i386_frame_p() is registered only for 32b
processes and x86_64_frame_p() only for 64b ones?
Michal Ludvig
--
* SuSE CR, s.r.o * mludvig at suse dot cz
* (+420) 296.545.373 * http://www.suse.cz