summaryrefslogtreecommitdiff
path: root/notes/gdb.notes
blob: d2214c877c20c176c4d157464ee6fd7fd75cbae7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
==========
gdb.config:
==========
#!/bin/sh

	CFLAGS="-g3 -O0"                                                      \
	CXXFLAGS="-g3 -O0"                                                    \
	CFLAGS_FOR_TARGET="-g3 -O0 --sysroot=$HOME/midipix/nt64/debug/native" \
	CXX_FOR_TARGET="-g3 -O0 --sysroot=$HOME/midipix/nt64/debug/native"    \
	LDFLAGS_FOR_TARGET="--sysroot=$HOME/midipix/nt64/debug/native"        \
../gdb-7.12/configure                 \
	--with-system-zlib            \
	--with-system-libiberty       \
	--with-system-readline        \
	--host=x86_64-nt64-midipix    \
	--target=x86_64-nt64-midipix  \
	--build=$(cc -dumpmachine)

========
gdb.make:
========
#!/bin/sh

make LIBTOOL=rdlibtool MAKE="make LIBTOOL=rdlibtool" -j8        \
	SYSROOT_FLAGS=--sysroot=$HOME/midipix/nt64/debug/native


===========
gdb.install:
===========
#!/bin/sh

make LIBTOOL=rdlibtool MAKE="make LIBTOOL=rdlibtool" -j8        \
	SYSROOT_FLAGS=--sysroot=$HOME/midipix/nt64/debug/native \
	DESTDIR=destdir install