This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Assuming types for PC
- From: Luis Machado <lgustavo at codesourcery dot com>
- To: "gdb at sourceware dot org" <gdb at sourceware dot org>
- Date: Mon, 10 Jun 2013 16:19:22 +0200
- Subject: Assuming types for PC
- Reply-to: lgustavo at codesourcery dot com
Hi,
I see gdb.base/ptype.exp assuming PC needs to be of type void (*)().
# Test ptype of user register
gdb_test "ptype \$pc" "void \\(\\*\\)\\(\\)" "ptype \$pc"
Is there any reason we should assume that? Some targets use "long long"
or "int32_t" for PC.
If PC should not have a fixed type, i think it would be best to remove
this check.