2012-05-13 Siva Chandra Reddy <sivachandra@google.com>

Add a new function gdb.find_pc_line to the Python API.
	* NEWS (Python Scripting): Add entry about the new function.
	* python/python.c (gdbpy_find_pc_line): New function which
	implements gdb.find_pc_line.
	(GdbMethods): Add entry for the new function.

	doc/
	* gdb.texinfo (Basic Python): Add description about the function
	gdb.find_pc_line

	testsuite/
	* gdb.python/python.c: Add a new breakpoint comment.
	* gdb.python/python.exp: Add tests to test gdb.find_pc_line.
This commit is contained in:
Siva Chandra Reddy
2012-05-13 11:33:44 +00:00
parent 02277eae00
commit 7efc75aaf9
8 changed files with 72 additions and 1 deletions

View File

@ -23,6 +23,6 @@ int
main (int argc, char *argv[])
{
func1 ();
func2 ();
func2 (); /* Break at func2 call site. */
return 0; /* Break to end. */
}