Target 보드 GDB 사용법

Buildroot설정BR2_PACKAGE_HOST_GDB=yBR2_PACKAGE_HOST_GDB_PYTHON=yBR2_PACKAGE_GDB_SERVER=y

2. Target 보드 설정 1) WiFi 연결(터미널에서 실행) #wpa_supplicant-iwlan 0-Dnl 80211-c/etc/wpa_supplicant_user.conf-dd&#ifupwlan 0udhcpc: started, v1.32.0udhcpc: sending discoverudhcpc: sending select for 192.168.1.178 udhcase, 20000 letime.

2) 2) gdbserver #gdbserver 192.168.178:2345 / app/bin/krecorderProcess/app/bin/krecorder created; pid=1165 Listening on port2345

3. Host Linux PC1)/buildroot/output/platform/test/host/usr/bin/arm-buildroot-lix-musleabihf-gdb./krecorder * 빌드한 앱은 strip을 하지 않은 파일을 사용하고 target 보드 앱은 strip한 파일을 사용한다.

2) (gdb) targetremote 192.168.1.178:2345 (입력하다) Remotedebuggingusing 192.168.178:2345 warning: Unabletofinddynamiclinkerbreakpointfunction. GDBwillbeunabletodebugsharedliinitializers and trackexplicitlyloadeddynamic code.0xb6f63c60in? ( )

3) setsysroot/buildroot-oasis/output/platform/test/staging/(sysroot 경로 지정)

4) (gdb) continue (앱이 실행됨)

5) Segmentationfault 발생 Thread1″krecorder” receivedsignal SIGSEGV, Segmentationfault.0x000d0ad8 intimeout_callback (arg=”optimizedout”) at/home/ksi/study/krecorder/example/recorder/main.cpp: 121121*(int*)0;//forcecrash(Backpoint)bile/0000000000000086f534 in TimerManager::handleTimerEvent (this=0xb6d7cd10) at /home/ksi/study/krecorder/source/net/Timer.cpp:155#2 0x0006e8bc in IOEvent::handleEvent (this=0xb6e02d60) at /home/ksi/study/krecorder/source/net/Event.cpp:81#3 0x0006e618 in SelectPoller::handleEvent (this=0xb6f3cc20) at /home/ksi/study/krecorder/source/net/poller/SelectPoller.cpp:132#4 0x0006ece8 in EventScheduler: loop (this=this@entry=0xb6dedd00) at/home/ksi/study/krecorder/source/net/EventSceduler.cpp: 139 #50x0001b0c8 in main (argc= <optimized out>, argv= <optimized out>) at/home/ksi/study/example/227/main.

error: Content is protected !!