Commit 45f63999 authored by hjk's avatar hjk Committed by Eike Ziller

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>
(cherry picked from commit dbc84d8c)
parent 02609847
...@@ -1334,7 +1334,13 @@ class Dumper: ...@@ -1334,7 +1334,13 @@ class Dumper:
return return
if type.code == TypedefCode: 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) self.putBetterType(typeName)
return return
......
...@@ -3634,6 +3634,22 @@ namespace cp42895 { ...@@ -3634,6 +3634,22 @@ namespace cp42895 {
} // namespace cp } // 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 { namespace varargs {
void test(const char *format, ...) void test(const char *format, ...)
...@@ -3778,6 +3794,7 @@ int main(int argc, char *argv[]) ...@@ -3778,6 +3794,7 @@ int main(int argc, char *argv[])
bug5106::test5106(); bug5106::test5106();
bug5184::test5184(); bug5184::test5184();
bug5799::test5799(); bug5799::test5799();
bug6465::test6465();
application::testApplicationStart(argc, argv); 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