diff options
author | Arvid Ephraim Picciani <arvid.picciani@nokia.com> | 2010-09-07 12:29:29 (GMT) |
---|---|---|
committer | Arvid Ephraim Picciani <arvid.picciani@nokia.com> | 2010-09-07 12:44:14 (GMT) |
commit | e5e15f366f60968cdb511feb5681cb33fc10ea44 (patch) | |
tree | 7239b58b05ba42ec4e78f4fab21587f0a1027565 | |
parent | 4028ff35c7bcef0137272a3b8b4b4d6436067eab (diff) | |
download | Qt-e5e15f366f60968cdb511feb5681cb33fc10ea44.zip Qt-e5e15f366f60968cdb511feb5681cb33fc10ea44.tar.gz Qt-e5e15f366f60968cdb511feb5681cb33fc10ea44.tar.bz2 |
Do not > /dev/null gdb output.
Trust that gdb --quiet works.
Gdb 7.1 asks the user for confirmation on stdin, regardless of --batch,
when it loads a corrupt binary. As a result, the build process halts.
At least provide evidence why it does that, by not redirecting output.
Reviewed-by: hjk
-rw-r--r-- | mkspecs/features/unix/gdb_dwarf_index.prf | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mkspecs/features/unix/gdb_dwarf_index.prf b/mkspecs/features/unix/gdb_dwarf_index.prf index 7c0ca2f..264edc2 100644 --- a/mkspecs/features/unix/gdb_dwarf_index.prf +++ b/mkspecs/features/unix/gdb_dwarf_index.prf @@ -1,7 +1,7 @@ !CONFIG(separate_debug_info):CONFIG(debug, debug|release):!staticlib:!static:!contains(TEMPLATE, subdirs):!isEmpty(QMAKE_OBJCOPY) { QMAKE_GDB_INDEX = { test -z \"$(DESTDIR)\" || cd \"$(DESTDIR)\"; } && \ - gdb -silent -ex \'set confirm off\' -ex \'save gdb-index .\' -ex quit \'$(TARGET)\' >/dev/null 2>&1 && \ + gdb --nx --batch --quiet -ex \'set confirm off\' -ex \'save gdb-index .\' -ex quit \'$(TARGET)\' && \ test -f $(TARGET).gdb-index && \ $$QMAKE_OBJCOPY --add-section \'.gdb_index=$(TARGET).gdb-index\' --set-section-flags \'.gdb_index=readonly\' \'$(TARGET)\' \'$(TARGET)\' && \ $$QMAKE_DEL_FILE $(TARGET).gdb-index || true |