This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug gdb/18051] gdb hang in "start" command w/ remote target


https://sourceware.org/bugzilla/show_bug.cgi?id=18051

--- Comment #2 from Ake <ake.rehnman at gmail dot com> ---
Same result when issuing run cmd. Possibly missing "clear_proceed_status (0)"
in run_command_1 before calling proceed.

I have tested adding clear_proceed_status (0) before call to proceed with good
result.

gdb version 7.12.1

LOG BEFORE CHANGE:
=====================================

(gdb) b main
Breakpoint 1 at 0x82c6: file led.c, line 121.
(gdb) run
The program being debugged has been started already.
Start it from the beginning? (y or n) y
Starting program: /cygdrive/c/temp/test1/led.elf
infrun: infrun_async(1)
infrun: proceed (addr=0x6000, signal=GDB_SIGNAL_0)
infrun: resume (step=0, signal=GDB_SIGNAL_0), trap_expected=0, current thread
[Remote target] at 0x6000
infrun: prepare_to_wait
infrun: target_wait (-1.0.0, status) =
infrun:   -1.0.0 [Thread 0],
infrun:   status->kind = ignore
infrun: TARGET_WAITKIND_IGNORE
infrun: prepare_to_wait
infrun: target_wait (-1.0.0, status) =
infrun:   42000.0.0 [Remote target],
infrun:   status->kind = stopped, signal = GDB_SIGNAL_TRAP
infrun: TARGET_WAITKIND_STOPPED
infrun: stop_pc = 0x82c6
infrun: quietly stopped
infrun: stop_waiting
infrun: clear_step_over_info
infrun: infrun_async(0)


AFTER ADDING clear_proceed_status(0):
==========================================

(gdb) b main
Breakpoint 1 at 0x82c6: file led.c, line 121.
(gdb) run
The program being debugged has been started already.
Start it from the beginning? (y or n) y
Starting program: /cygdrive/c/temp/test1/led.elf
infrun: infrun_async(1)
infrun: clear_proceed_status_thread (Remote target)
infrun: proceed (addr=0x6000, signal=GDB_SIGNAL_0)
infrun: resume (step=0, signal=GDB_SIGNAL_0), trap_expected=0, current thread
[Remote target] at 0x6000
infrun: prepare_to_wait
infrun: target_wait (-1.0.0, status) =
infrun:   -1.0.0 [Thread 0],
infrun:   status->kind = ignore
infrun: TARGET_WAITKIND_IGNORE
infrun: prepare_to_wait
infrun: target_wait (-1.0.0, status) =
infrun:   42000.0.0 [Remote target],
infrun:   status->kind = stopped, signal = GDB_SIGNAL_TRAP
infrun: TARGET_WAITKIND_STOPPED
infrun: stop_pc = 0x82c6
infrun: BPSTAT_WHAT_STOP_NOISY
infrun: stop_waiting
infrun: clear_step_over_info

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]