Bug 558825 - run-mozilla.sh does not work with -d native-gdb. r=ted.mielczarek

--HG--
extra : rebase_source : 764ca82339869411c4a3fa402f3060de17d7f768
This commit is contained in:
Oleg Romashin 2010-05-11 13:23:59 -04:00
Родитель 6f8be21d42
Коммит 7c443c0265
1 изменённых файлов: 5 добавлений и 1 удалений

Просмотреть файл

@ -103,7 +103,7 @@ moz_test_binary()
##########################################################################
moz_get_debugger()
{
debuggers="ddd gdb dbx bdb"
debuggers="ddd gdb dbx bdb native-gdb"
debugger="notfound"
done="no"
for d in $debuggers
@ -169,6 +169,10 @@ moz_debug_program()
# If you are not using ddd, gdb and know of a way to convey the arguments
# over to the prog then add that here- Gagan Saksena 03/15/00
case `basename $debugger` in
native-gdb) echo "$debugger $moz_debugger_args --args $prog" ${1+"$@"}
exec "$debugger" $moz_debugger_args --args "$prog" ${1+"$@"}
exitcode=$?
;;
gdb) echo "$debugger $moz_debugger_args --args $prog" ${1+"$@"}
exec "$debugger" $moz_debugger_args --args "$prog" ${1+"$@"}
exitcode=$?