'잡동사니'에 해당되는 글 12932건

  1. 2010.05.18 gdb / gdbserver 접속명령어
  2. 2010.05.18 insight(gdb) 아키텍쳐별 차이점(?)
  3. 2010.05.18 gdb cross compile 관련
  4. 2010.05.18 cross compile 초기화 하기
  5. 2010.05.18 2009년 SW 기술자 노임 단가 2
  6. 2010.05.18 5.18
  7. 2010.05.18 2010.05.17 시끌벅적한 하루
  8. 2010.05.17 6월 2일 선거준비! 2
  9. 2010.05.17 달, 별
  10. 2010.05.16 보헤미안 안녕~ 12
gdbserver는 gdb를 돌릴만한 사정이 안되는 시스템을 위한 프로그램으로
단순하게 gdb의 앞단에서 데이터를 TCP나 시리얼 등으로 전송해 주는 역활을 한다.
그런 이유로 gdbserver 만으로는 아무런 것도 할수 없으며

크로스 컴파일 환경이라면, 내부적으로 크로스 환경에 맞추어진 gdb가 별도로 존재해야 한다.
gdbserver는 아래와 같이 host:port 식으로 선언을 하는데 현재까지는 host는 무시를 하고 port만을 받아들인다고 한다.

To use a TCP connection instead of a serial line:

     target> gdbserver host:2345 emacs foo.txt

The only difference from the previous example is the first argument, specifying that you are communicating with the host gdb via TCP. The `host:2345' argument means that gdbserver is to expect a TCP connection from machine `host' to local TCP port 2345. (Currently, the `host' part is ignored.)

[링크 : http://sourceware.org/gdb/current/onlinedocs/gdb/Server.html#Server]

그리고 gdb 쪽에서는 target remote 라는 명령어를 통해 접속이 가능하며, 기본값으로는 TCP로 접속하도록 되어있다.

target remote host:port
target remote tcp:host:port
    Debug using a TCP connection to port on host. The host may be either a host name or a numeric IP address; port must be a decimal number. The host could be the target machine itself, if it is directly connected to the net, or it might be a terminal server which in turn has a serial line to the target.

target remote udp:host:port
    Debug using UDP packets to port on host. For example, to connect to UDP port 2828 on a terminal server named manyfarms:
              target remote udp:manyfarms:2828
    When using a UDP connection for remote debugging, you should keep in mind that the `U' stands for “Unreliable”. UDP can silently drop packets on busy or unreliable networks, which will cause havoc with your debugging session.

[링크 : http://sourceware.org/gdb/current/onlinedocs/gdb/Connecting.html#Connecting]


음.. 그런데 gdb/insight 에서 보이는
GDBserver/TCP , remote/TCP는 멀까?
Posted by 구차니
테스트 환경
SH4 target board / i686 linux machine

아래의 화면은
./configure --build=i686-linux --host=i686-linux --target=sh4-linux
옵션으로 크로스컴파일된 insight의 Run 메뉴화면이다.


아래의 화면은
./configure
옵션으로 i686용으로 컴파일된 insight의 Run 메뉴화면이다.


음.. 크로스 컴파일 된녀석만 메뉴상에 별도로 Connect to target이 생기고
로컬용으로 컴파일 된녀석은 메뉴상에 Attach to process가 생기는 것으로 보인다.


About GDB 다이얼로그 차이점

<< sh4 , i686 >>
About 다이얼로그의 내용은 gdb 에서 show version으로 나오는 정보이며

가장 아래줄의
This GDB was configured as "i686-pc-linux-gnu".
This GDB was configured as "--host=i686-linux --target=sh4-linux".
만 다르게 나온다.


Attach to Process 메뉴화면

Posted by 구차니
검색을 해보니, arm 용으로 크로스 컴파일 하는 문서가 있다.

# ./configure --build=i686-linux --host=arm-linux --target=arm-linux --prefix=/nfsroot/gdb
# ./configure --build=i686-linux --host=i686-linux --target=arm-linux --prefix=$PWD/build
[링크 : http://blog.daum.net/joell/11772014]

일단 gdb는 두번을 컴파일 해야 한다.
target 에서 native 하게 돌아갈 gdb와 (위)
host 에서 target architecture에 맞추어 돌아갈 gdb. (아래)

그리고 prefix 경로는 /usr 을 넣어주는게 좋을듯 하다. (설치를 하면서 보니 prefix가 usr 경로를 의미하는 것으로 보인다)

--- gdb/gdbserver
# ./configure --build=i686-linux --host=sh4-linux --target=sh4-linux --prefix=/home/morpheuz/st7109/target
# make
# make install
n=`echo gdbserver | sed 's,^,sh4-linux-,'`; \
        if [ x$n = x ]; then n=gdbserver; else true; fi; \
        /bin/sh ./../../mkinstalldirs /home/morpheuz/st7109/target/bin; \
        /usr/bin/install -c gdbserver /home/morpheuz/st7109/target/bin/$n; \
        /bin/sh ./../../mkinstalldirs /home/morpheuz/st7109/target/man/man1; \
        /usr/bin/install -c -m 644 ./gdbserver.1 /home/morpheuz/st7109/target/man/man1/$n.1

Posted by 구차니
드물게(?) 크로스컴파일을 시도하려다 다시 지우고 컴파일을 하려고 하면 안되는 경우가 있다.
아래는 gdb/insight의 경우인데, 특이하게도 하라는대로 해도 안된다. ㄱ-

configure: loading cache ./config.cache
configure: error: `target_alias' has changed since the previous run:
configure:   former value:  sh4-linux
configure:   current value: i686-pc-linux-gnu
configure: error: changes in the environment can compromise the build
configure: error: run `make distclean' and/or `rm ./config.cache' and start over

이녀석은 make distclean 해도 하위 디렉토리의 config.cache를 개별로 지우지 않기 때문이다.
(음... 알려줘서 원 소스에 넣도록 해야하나?)

미봉책으로는
# make distclean
# find ./ -name config.cache -exec {} \;
를 하면 하위 디렉토리에서 config.cache를 찾아 지우므로 해결된다.

'프로그램 사용 > make, configure' 카테고리의 다른 글

make를 조용하게  (0) 2014.09.12
cmake 사용  (0) 2011.10.07
cmake - cross make  (0) 2010.04.06
makefile 에서 컴파일할 목록 생성하기  (0) 2010.04.03
makefile 정렬하기  (2) 2010.03.31
Posted by 구차니
조건상으로는 이래저래 중급기술자이다.
기사 자격증을 취득했고(졸업하면서) 일한지 4년이 되어가니 말이다.
중급기술자의 경우 하루에 19만 248원이 기준 단가라고 한다.
시간당 7927원(일=24시간) 으로 계산이 되는군.

근데.. 이거대로 받는 사람이 과연 얼마나 될까?
이표대로만 받으면 완전 부자되겠네 ㄱ-


[링크 : http://www.sw.or.kr/notice/view.asp?masteridx=1&idx=3940]



[링크 : http://www.sw.or.kr/pds/view.asp?idx=4481&masteridx=27]

Posted by 구차니
30년전 광주에서 5.18이 있었다.

이제와서는 누가 나쁜놈인지 누가 착한넘인지 조차 모호하게 되어

결국은 남 등쳐먹는데 당연하고,
사기치는게 부자되는 지름길이 된 현재의 대한민국에서
잊혀져버린. 그리고 잊혀져야 하는 과거가 되어버린 이야기

[링크 : http://cartoon.media.daum.net/series/list/kangfull26] << 강풀 26년




결론 : 6. 2일 선거하러 갑시다! 꼭!
Posted by 구차니
어제하루 세계적으로나 (한국)사회적으로나 시끌벅적한 기사들만 나왔다.
세계적인거야 그렇다손 치더라도.. 이런 시기에 이런 기사들이 쏟아지는건.. 6월 2일 선거와는 아무런 연관이 없는걸까?


경희대 패륜녀(?) 사건
[링크 : http://media.daum.net/primary/total/view.html?cateid=100044&newsid=20100517225207629&p=newsis]
[링크 : http://media.daum.net/primary/total/view.html?cateid=100044&newsid=20100517160914285&p=yonhap]

보은을 배신으로 - 돌봐준 은인 딸 성폭행
[링크 : http://media.daum.net/society/others/view.html?cateid=1067&newsid=20100517123203998&p=yonhap]

친딸 성폭행
[링크 : http://media.daum.net/society/affair/view.html?cateid=1010&newsid=20100517101807542&p=nocut]

천안함. 증거는 없으나 정황상 북한의 소행
[링크 : http://tvnews.media.daum.net/cp/imbc/view.html?cateid=100000&cpid=98&newsid=20100517221218760&p=imbc]
[링크 : http://media.daum.net/politics/others/view.html?cateid=1020&newsid=20100517182730096&p=khan]



파국으로 치닫는 태국
[링크 : http://media.daum.net/foreign/view.html?cateid=1046&newsid=20100517184210202&p=kukminilbo]

원유 차단 실패
[링크 : http://media.daum.net/primary/total/view.html?cateid=100044&newsid=20100517164329275&p=seouleconomy]


Posted by 구차니
후보들 검색해볼려고 들어갔더니 선거구라는 생소한 게 나왔다.
결론 : 악! 선거구 왜케 복잡해!!!! ㅠ.ㅠ


서울시 교육의원의 선거구 명칭 및 선거구역

선거구명

관할위원회명

선거구역

서울특별시제1선거구

종로구선거관리위원회

종로구, 중구, 강북구, 성북구

서울특별시제2선거구

마포구선거관리위원회

은평구, 용산구, 서대문구, 마포구

서울특별시제3선거구

도봉구선거관리위원회

도봉구, 노원구, 중랑구

서울특별시제4선거구

동대문구선거관리위원회

성동구, 광진구, 동대문구

서울특별시제5선거구

양천구선거관리위원회

양천구, 강서구, 영등포구

서울특별시제6선거구

관악구선거관리위원회

구로구, 금천구, 관악구

서울특별시제7선거구

서초구선거관리위원회

동작구, 서초구, 강남구

서울특별시제8선거구

강동구선거관리위원회

송파구, 강동구

원문출처 조사필요
[링크 : http://cafe.daum.net/cleanROK/IYXT/383] 서울특별시 교육의원 선거구

[링크 : http://epol.nec.go.kr/information/status.jsp] 선거구 명단(중선관위)
[링크 : http://info.nec.go.kr/main/showDocument.xhtml] 후보자 명부
Posted by 구차니

해가 진 직후. 아직 어스름한 하늘에 달이떳다.


2010.05.18 추가

헐! 금성과 달이라니!!!!
[링크 : http://photo.media.daum.net/photogallery/digital/spaceman/view.html?photoid=2773]

Posted by 구차니


잘 익어 주었구나~ 안녕~ (우리누나 배속으로!)
어제 찍은 녀석이랑 비교 하자니 놀랍다.


요녀석이 어제 찍은 동일한 녀석. 하루 만에 저렇게 빨갛게 변하다니!




보헤미안과 이별하는 날이라 노을도 졌다.(응?)

'개소리 왈왈 > 사진과 수다' 카테고리의 다른 글

보헤미안 안녕~ 2  (0) 2010.05.21
달, 별  (0) 2010.05.17
한강, 노을 그리고 구름  (6) 2010.05.15
리눅스마스터 1급 2차 + 암사유적지  (2) 2010.05.15
보헤미안 자식들이 달렸어요!!!  (2) 2010.05.15
Posted by 구차니