# gdbserver --debug :50000 /usr/bin/wifimgr my_waitpid (922, 0x0) my_waitpid (922, 0x0): status(137f), 922 my_waitpid (922, 0x0) my_waitpid (922, 0x0): status(1057f), 922 my_waitpid (923, 0x0) my_waitpid (923, 0x0): status(137f), 923 my_waitpid (923, 0x0) my_waitpid (923, 0x0): status(9), 923 my_waitpid (922, 0x0) my_waitpid (922, 0x0): status(117f), 922 my_waitpid (922, 0x0) my_waitpid (922, 0x0): status(9), 922 new_argv[0] = "/usr/bin/wifimgr" Process /usr/bin/wifimgr created; pid = 924 sigchld_handler linux_wait: [Process 924] linux_wait_for_lwp: my_waitpid (-1, 0x40000000) my_waitpid (-1, 0x1): status(57f), 924 Got an event from 924 (57f) pc is 0x48001030 stop pc is 0x48001030 linux_wait_for_lwp: pc is 0x48001030 Hit a non-gdbserver trap event. wait_for_sigstop: LWP 924 already stopped Checking whether LWP 924 needs to move out of the jump pad...no linux_wait ret = LWP 924.924, 1, 5 Listening on port 50000 handling possible accept event Remote debugging from host 172.16.1.1 linux_async (0), previous=0 linux_async (0), previous=0 wait_for_sigstop: LWP 924 already stopped Checking whether LWP 924 needs to move out of the jump pad...no Writing resume reply for LWP 924.924:1 Trying host libthread_db library: libthread_db.so.1. Host libthread_db.so.1 resolved to: /lib/libthread_db.so.1. td_ta_new(): application not linked with libthread thread_db_load_search returning 0 Trying host libthread_db library: libthread_db.so.1. Host libthread_db.so.1 resolved to: /lib/libthread_db.so.1. td_ta_new(): application not linked with libthread thread_db_load_search returning 0 Writing 0 to 0x10000d74 Writing 7d821008 to 0x10000d74 Writing 7d821008 to 0x10004428 Need step over [LWP 924]? No pc is 0x48001030 Need step over [LWP 924]? No, no breakpoint found at 0x48001030 Resuming, no pending status or step over needed resuming LWP 924 pc is 0x48001030 Resuming lwp 924 (continue, signal 0, stop not expected) resuming from pc 0x48001030 linux_wait: [] linux_wait_for_lwp: my_waitpid (-1, 0x40000000) blocking sigchld_handler my_waitpid (-1, 0x1): status(57f), 924 Got an event from 924 (57f) pc is 0x10000d74 stop pc is 0x10000d74 linux_wait_for_lwp: pc is 0x10000d74 Hit a non-gdbserver trap event. wait_for_sigstop: LWP 924 already stopped Checking whether LWP 924 needs to move out of the jump pad...no linux_wait ret = LWP 924.924, 1, 5 Writing resume reply for LWP 924.924:1 Trying host libthread_db library: libthread_db.so.1. Host libthread_db.so.1 resolved to: /lib/libthread_db.so.1. td_ta_new(): application not linked with libthread thread_db_load_search returning 0 Writing 7c290b78 to 0x10000d74 Writing 38000000 to 0x10004428 Need step over [LWP 924]? No pc is 0x10000d74 Need step over [LWP 924]? No, no breakpoint found at 0x10000d74 Resuming, no pending status or step over needed resuming LWP 924 pc is 0x10000d74 Resuming lwp 924 (step, signal 0, stop not expected) resuming from pc 0x10000d74 linux_wait: [] linux_wait_for_lwp: LWP 924.924 my_waitpid (924, 0x40000000) blocking sigchld_handler my_waitpid (924, 0x1): status(57f), 924 Got an event from 924 (57f) pc is 0x480cd3cc stop pc is 0x480cd3cc linux_wait_for_lwp: pc is 0x480cd3cc GDB wanted to single-step, reporting event. Hit a non-gdbserver trap event. wait_for_sigstop: LWP 924 already stopped linux_wait ret = LWP 924.924, 1, 5 Writing resume reply for LWP 924.924:1 Writing 7d821008 to 0x10000d74 Writing 7d821008 to 0x10004428 Need step over [LWP 924]? No pc is 0x480cd3cc Need step over [LWP 924]? No, no breakpoint found at 0x480cd3cc Resuming, no pending status or step over needed resuming LWP 924 pc is 0x480cd3cc Resuming lwp 924 (continue, signal 0, stop not expected) resuming from pc 0x480cd3cc sigchld_handler linux_wait: [] linux_wait_for_lwp: my_waitpid (-1, 0x40000000) my_waitpid (-1, 0x1): status(117f), 924 Got an event from 924 (117f) pc is 0x480cd3cc stop pc is 0x480cd3cc linux_wait_for_lwp: pc is 0x480cd3cc Ignored signal 17 for LWP 924. pc is 0x480cd3cc Resuming lwp 924 (continue, signal 17, stop not expected) resuming from pc 0x480cd3cc sigchld_handler linux_wait_for_lwp: my_waitpid (-1, 0x40000000) my_waitpid (-1, 0x1): status(0), 924 Got an event from 924 (0) LWP 924 exiting LWP 924 is last lwp of process Child exited with retcode = 0 Child exited with status 0 Writing resume reply for LWP 924.924:0 GDBserver exiting #