target remote를 이용하여 접속을 할때 사용하는 명령인데
target remote 이후에 포트를 적어주면 된다.
(gdb) help target Connect to a target machine or process. The first argument is the type or protocol of the target machine. Remaining arguments are interpreted by the target protocol. For more information on the arguments for a particular protocol, type `help target ' followed by the protocol name. List of target subcommands: target core -- Use a core file as a target. target ctf -- (Use a CTF directory as a target. target exec -- Use an executable file as a target. target extended-remote -- Use a remote computer via a serial line, using a gdb-specific protocol. target native -- Native process (started by the "run" command). target record-btrace -- Collect control-flow trace and provide the execution history. target record-core -- Log program while executing and replay execution from log. target record-full -- Log program while executing and replay execution from log. target remote -- Use a remote computer via a serial line, using a gdb-specific protocol. target tfile -- Use a trace file as a target. Type "help target" followed by target subcommand name for full documentation. Type "apropos word" to search for commands related to "word". Type "apropos -v word" for full documentation of commands related to "word". Command name abbreviations are allowed if unambiguous. (gdb) help target remote Use a remote computer via a serial line, using a gdb-specific protocol. Specify the serial device it is connected to (e.g. /dev/ttyS0, /dev/ttya, COM1, etc.). (gdb) help monitor Send a command to the remote monitor (remote targets only). |
monitor는 remote로 붙었을때만 보내는 명령인데 reset은 검색되진 않는다.
(gdb) file C:/temp/Blinky.elf
Reading symbols from C:/temp/Blinky.elf...done.
(gdb) target remote localhost:2331
Remote debugging using localhost:2331
0x00000000 in ?? ()
(gdb) monitor reset
Resetting target
(gdb) load
'프로그램 사용 > gdb & insight' 카테고리의 다른 글
gdb conditional break (0) | 2023.07.19 |
---|---|
gdb 디버깅 타겟을 인자와 함께 실행하기 (0) | 2022.10.17 |
gdb break (0) | 2021.04.09 |
gdb/insight target window (0) | 2010.05.19 |
insight/gdb 우분투에서 컴파일하기 실패 - insight/gdb compiling on ubuntu failed (2) | 2010.05.18 |