[PATCH 11/15] Don't check $ after gdb_prompt.

Yao Qi yao@codesourcery.com
Tue Apr 17 01:39:00 GMT 2012


On 04/17/2012 01:54 AM, Doug Evans wrote:
> I tried to recreate the problem in cvs head so that I could better
> understand the issue myself, but I can't recreate it, I see a
> different problem: gdb hangs after doing "target remote ...".
> Dejagnu then sends a ^c and tries "target remote ..." again but by
> this time gdbserver has detected the EOF and exits.

That is the same problem or the same cause of problems.

in testsuite/lib/gdbserver-support.exp:proc gdb_target_cmd {}, if the
output doesn't match any of "-re", it will send "^C" to GDB because of
timeout.

	send_gdb "target $targetname $serialport\n"
	gdb_expect 60 {
	   -re ....
	    }
	    timeout {
		send_gdb "^C"
		break
	    }

-- 
Yao (齐尧)



More information about the Gdb-patches mailing list