On 11/06/13 13:01, Tom Tromey wrote:
"Jeff" == Jeff Law <l...@redhat.com> writes:
Jeff> ISTM that one liner belongs in GCC's .gdbinit. Until then, I'm adding
Jeff> it to my own :-)
Yeah, I think that would be reasonable.
It seems like it isn't appropriate in many cases, so we left it off by
default.
Here's the patch I installed for GCC. Thanks for the suggestion!
Jeff
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index dfaf4e3..43ebbda 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2013-11-06 Jeff Law <l...@redhat.com>
+ Tom Tromey <tro...@redhat.com>
+
+ * gdbinit.in: Disable strict type checking.
+
2013-11-06 Vladimir Makarov <vmaka...@redhat.com>
* tree-pass.h (make_pass_live_range_shrinkage): New external.
diff --git a/gcc/gdbinit.in b/gcc/gdbinit.in
index 503ef24..c60cab1 100644
--- a/gcc/gdbinit.in
+++ b/gcc/gdbinit.in
@@ -205,6 +205,11 @@ set complaints 0
b exit
b abort
+# Disable strict type checking. This allows developers to (for example)
+# make inferior calls without casting absolute address to a suitable
+# pointer type.
+set check type off
+
# Skip all inline functions in tree.h.
# These are used in accessor macros.
# Note that this is added at the end because older gdb versions