Mozilla likes to build different libs when debug is enabled... patch run-mozilla.sh so that it finds our gdb by default, and amend README.OpenBSD to teach user how to properly debug tb.
32 lines
850 B
Plaintext
32 lines
850 B
Plaintext
$OpenBSD: patch-mozilla_build_unix_run-mozilla_sh,v 1.1 2010/10/27 12:54:34 landry Exp $
|
|
help finding our debugger
|
|
--- mozilla/build/unix/run-mozilla.sh.orig Wed Oct 13 17:40:57 2010
|
|
+++ mozilla/build/unix/run-mozilla.sh Wed Oct 27 12:59:15 2010
|
|
@@ -105,25 +105,7 @@ moz_test_binary()
|
|
##########################################################################
|
|
moz_get_debugger()
|
|
{
|
|
- debuggers="ddd gdb dbx bdb"
|
|
- debugger="notfound"
|
|
- done="no"
|
|
- for d in $debuggers
|
|
- do
|
|
- moz_test_binary /bin/which
|
|
- if [ $? -eq 1 ]
|
|
- then
|
|
- dpath=`which ${d}`
|
|
- else
|
|
- dpath=`LC_MESSAGES=C type ${d} | awk '{print $3;}' | sed -e 's/\.$//'`
|
|
- fi
|
|
- if [ -x "$dpath" ]
|
|
- then
|
|
- debugger=$dpath
|
|
- break
|
|
- fi
|
|
- done
|
|
- echo $debugger
|
|
+ echo "/usr/bin/gdb"
|
|
return 0
|
|
}
|
|
##########################################################################
|