Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* GDB Python - gdb.execute() - with a timeout?
@ 2015-07-27 12:23 Duane Ellis
  2015-07-28 10:09 ` Ofir Cohen
  0 siblings, 1 reply; 3+ messages in thread
From: Duane Ellis @ 2015-07-27 12:23 UTC (permalink / raw)
  To: gdb

Hi, am trying to script some times using GDB/Python specifically some test cases

The general format of my GDB_PY scripts are:

	import	gdb
	gdb.execute(“load foobar”)
	
	gdb.execute(“break test_breakpoint”)

	gdb.execute(“run”)
	gdb.execute(“set  test_flag=0x1234”)

	gdb.execute(“cont”)	 <— HERE Is where I want a timeout

	# At this point, we should eventually hit the “test_breakpoint”
	# However in some cases we do not.

the timeout needs to be ‘reasonably programable’ - i.e.:  1 second,  10 seconds, an hour would in some use cases be reasonable.

In other words, if my test case is running properly -  I should hit the breakpoint. 

I need a means to detect when things go wrong.

This problem is *NOT* limited to the TEST case

Is there some way to do this? 

Thanks.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-07-28 12:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-27 12:23 GDB Python - gdb.execute() - with a timeout? Duane Ellis
2015-07-28 10:09 ` Ofir Cohen
2015-07-28 12:14   ` Duane Ellis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox