Closed bgirard closed 12 years ago
You're using the new build system, so
I've seen that now. The problem is I was following the setup in 'https://wiki.mozilla.org/B2G/gdb' which are wrong instead of 'https://developer.mozilla.org/en/Mozilla/Boot_to_Gecko/Debugging_on_Boot_to_Gecko'. The problem is there's inconsistent information which made me lost a bunch of time.
Trying to run 'make attach-gdb' I get this error:
/Volumes/MacintoshHD/Users/benoitgirard/mozilla/b2g/tree> make adb-attach GNUmakefile:2: *\ Must source setup.sh or build/envsetup.sh to use make directly. Stop.
after 'source build/envsetup.sh ' I still get the same error above.
When I run 'source load-config.sh' I get the following error: dirname: illegal option -- b
This is because '$0' when sourcing on mac is '-bash' giving 'dirname -bash'. B2G_DIR=$(cd
dirname $0
; pwd)