05-18 13:45
Recent Posts
Recent Comments
관리 메뉴

너와나의 관심사

gdb 사용 관련 정리 본문

카테고리 없음

gdb 사용 관련 정리

벤치마킹 2011. 8. 17. 00:02

우분투 debianize  

※dbg package: debug symbol을 가진 패키지로 debian/rules 파일에 명시해줌으로 만들어 진다

 

현재  debian 패키지에서 gdb를 사용하려면

1. 해당 dbg  패키지 설치 한후에 gdb 실행후 dir 로 해당 소스코드 dir 를 정해주면  바로 break 를 잡고 debugging 을 할 수 있습니다.

 

 ex )

# gdb /usr/bin/실행 파일
GNU gdb (GDB) 7.1
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "arm-unknown-linux-gnueabi".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from 
done.
(gdb) list
585     ../src/: No such file or directory.
        
(gdb) dir /mnt/nfs/src/
Source directories searched: /mnt/nfs/src:$cdir:$cwd
(gdb) list


Comments