프로그램 사용/gdb & insight

sh4-linux-gdb 의 load 명령어

구차니 2009. 2. 16. 13:53
load 라는 명령어가 gdb에 존재한다.
(gdb) help load
Dynamically load FILE into the running program, and record its symbols
for access from GDB.
A load OFFSET may also be given.

stlinux.com 에서 gdb를 이용하는 방법은, u-boot가 없을때
JTAG을 이용해서 u-boot 실행 파일을 메모리로 외부에서 올려 실행 시킬때만 사용한다.

그래서 혹시나 하는 마음에 다른 파일을 올려 볼려고 했더니..
(gdb) load /tftpboot/uImage 0xA4000000
"/tftpboot/uImage" is not an object file: File format not recognized
uImage는 커널이미지인데.. 인식을 못하고는 배째버린다.

에헤라디야. 시리얼이나 써서 느긋하게 파일을 올려야 하나.

[참고 : http://www.delorie.com/gnu/docs/gdb/gdb_171.html]