Files
Kevin Buettner 50a82723c4 Support buffer objects as handles in Inferior.thread_from_thread_handle()
InferiorThread.handle() returns a python bytes object.  We'd like to
be able to pass the output of this function, a thread handle, to
Inferior.thread_from_thread_handle().  Up to now,
thread_from_thread_handle() expects to receive a gdb.Value input.
This commit adds support to also allow a python buffer object to be
passed as the handle.

infpy_thread_from_thread_handle() calls find_thread_by_handle() which
has the obvious functionality.  It used to pass the thread handle via
a struct value pointer.  I've revised this interface to instead pass a
gdb::array_view<const gdb_byte> object.  (Thanks to Tom Tromey for
suggesting this data structure over an earlier version which passed a
gdb_byte pointer and length.)

gdb/ChangeLog:

	* gdbthread.h (find_thread_by_handle): Revise declaration.
	* thread.c (find_thread_by_handle): Likewise.  Adjust
	implementation too.
	* python/py-inferior.c (infpy_thread_from_thread_handle): Add
	support for buffer objects as handles.
2019-04-08 20:14:26 -07:00
..
2019-04-08 09:05:40 -06:00
2019-04-08 09:05:40 -06:00
2019-04-08 09:05:40 -06:00
2019-02-07 03:27:23 -07:00
2019-02-07 03:27:23 -07:00
2019-04-08 09:05:40 -06:00
2019-04-08 09:05:40 -06:00
2019-04-08 09:05:40 -06:00
2019-04-08 09:05:40 -06:00
2019-04-08 09:05:40 -06:00
2019-04-08 09:05:40 -06:00
2019-04-08 09:05:40 -06:00
2019-04-08 09:05:40 -06:00
2019-04-08 09:05:40 -06:00
2019-04-08 09:05:40 -06:00
2019-04-08 09:05:40 -06:00
2019-02-07 03:27:23 -07:00
2019-02-07 03:27:23 -07:00
2019-02-07 03:27:23 -07:00
2019-04-08 09:05:40 -06:00
2019-03-24 23:32:08 -06:00
2019-04-08 09:05:40 -06:00
2019-04-08 09:05:40 -06:00
2019-04-08 09:05:40 -06:00
2019-04-08 09:05:40 -06:00
2019-04-08 09:05:40 -06:00
2019-02-07 03:27:23 -07:00