[PATCH 3/3] Per-inferior thread list, thread ranges/iterators, down with ALL_THREADS, etc.

John Baldwin jhb@FreeBSD.org
Wed Oct 3 17:34:00 GMT 2018


On 10/2/18 6:21 AM, Pedro Alves wrote:
> On 10/01/2018 05:33 PM, John Baldwin wrote:
>> On 10/1/18 3:32 AM, Pedro Alves wrote:
>>> As preparation for multi-target, this patch makes each inferior have
>>> its own thread list.
>>
>> The BSD-related bits all look fine to me.  Do you have an existing branch
>> for this on github that I can pull down to do some simple run-time testing?
> 
> I've pushed it now to users/palves/per-inf-thread-list on sourceware.org.

I needed the following patch as a build fix, but it passed some simple
testing of the native target:

diff --git a/gdb/bsd-kvm.c b/gdb/bsd-kvm.c
index 078cd30c05..991b87852d 100644
--- a/gdb/bsd-kvm.c
+++ b/gdb/bsd-kvm.c
@@ -25,7 +25,8 @@
 #include "regcache.h"
 #include "target.h"
 #include "value.h"
-#include "gdbcore.h"           /* for get_exec_file */
+#include "gdbcore.h"
+#include "inferior.h"          /* for get_exec_file */
 #include "gdbthread.h"
 
 #include <fcntl.h>


-- 
John Baldwin

                                                                            



More information about the Gdb-patches mailing list