This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: pthread_t ids of threads not showed by "thread info"
On Wednesday 04 August 2010 18:14:44, Pedro Alves wrote:
> On Wednesday 04 August 2010 17:53:45, Ulrich Weigand wrote:
>
> > You seem to have missed s390-tdep.c here (note that Linux is the
> > only supported OS on that platform, therefore there is no init_abi.)
>
> Thanks. We can then just call linux_init_abi at the top of
> s390_gdbarch_init, right?
Or rather, a bit further down, where the gdbarch is actually
created, like so?
(tested by building an --enable-targets=all gdb, on x86_64-linux)
--
Pedro Alves
2010-08-04 Pedro Alves <pedro@codesourcery.com>
* s390-tdep.c: Include linux-tdep.h.
(s390_gdbarch_init): Call linux_init_abi.
---
gdb/s390-tdep.c | 2 ++
1 file changed, 2 insertions(+)
Index: src/gdb/s390-tdep.c
===================================================================
--- src.orig/gdb/s390-tdep.c 2010-08-04 18:16:31.000000000 +0100
+++ src/gdb/s390-tdep.c 2010-08-04 18:16:24.000000000 +0100
@@ -2829,6 +2829,8 @@ s390_gdbarch_init (struct gdbarch_info i
tdep->abi = tdep_abi;
gdbarch = gdbarch_alloc (&info, tdep);
+ linux_init_abi (info, gdbarch);
+
set_gdbarch_believe_pcc_promotion (gdbarch, 0);
set_gdbarch_char_signed (gdbarch, 0);