Commit dbc84d8c authored by hjk's avatar hjk Committed by hjk

debugger: workaround for http://sourceware.org/bugzilla/show_bug.cgi?id=13380

Task-number: QTCREATORBUG-6465
Change-Id: I98894cbd247b53e18b86ec997b9087d1f2d511f3
Reviewed-by: default avatarhjk <qthjk@ovi.com>
parent 2f9ff18e
......@@ -1346,7 +1346,13 @@ class Dumper:
return
if type.code == TypedefCode:
self.putItem(value.cast(type.strip_typedefs()))
type = type.strip_typedefs()
# Workaround for http://sourceware.org/bugzilla/show_bug.cgi?id=13380
if type.code == ArrayCode:
value = parseAndEvaluate("{%s}%s" % (type, value.address))
else:
value = value.cast(type.strip_typedefs())
self.putItem(value)
self.putBetterType(typeName)
return
......
......@@ -3651,6 +3651,22 @@ namespace cp42895 {
} // namespace cp
namespace bug6465 {
// https://bugreports.qt.nokia.com/browse/QTCREATORBUG-6465
void test6465()
{
typedef char Foo[20];
Foo foo = "foo";
char bar[20] = "baz";
// BREAK HERE
dummyStatement(&foo, &bar);
}
} // namespace bug6465
namespace varargs {
void test(const char *format, ...)
......@@ -3814,6 +3830,7 @@ int main(int argc, char *argv[])
bug5106::test5106();
bug5184::test5184();
bug5799::test5799();
bug6465::test6465();
application::testApplicationStart(argc, argv);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment