On 22.11.2019 03:40, Christos Zoulas wrote: > And why copy the structs? Doesn't #include <i386/foo.h> work? > http://mail-index.netbsd.org/tech-toolchain/2019/06/22/msg003508.html 1. mknative does not include i386 files for x86_64 mode _initialize_i386nbsd_tdep() and associated i386 GDB files are not includes in the build 2. i386 C files are not buildable for amd64 environment as they pull headers from machine/ and that is amd64/, not i386/. If we manually include i386/ headers, they still pick machine/ files. Including these files on amd64/ certainly never worked. And passing types like void* cannot work as-is anyway. > christos > >> On Nov 21, 2019, at 9:37 PM, Christos Zoulas <christos%zoulas.com@localhost> wrote: >> >> That's for kernel debugging? >> I still have not been touching kgdb. It was for building the i386 file on amd64 host only. >> christos >> >>> On Nov 21, 2019, at 9:35 PM, Kamil Rytarowski <n54%gmx.com@localhost> wrote: >>> >>> On 22.11.2019 02:52, Christos Zoulas wrote: >>>> Module Name: src >>>> Committed By: christos >>>> Date: Fri Nov 22 01:52:20 UTC 2019 >>>> >>>> Modified Files: >>>> src/external/gpl3/gdb/lib/libgdb/arch/x86_64: config.h defs.mk init.c >>>> >>>> Log Message: >>>> regen x86_64 for i386 support >>>> >>> >>> For the reference, here is a patch that I shared few months back: >>> >>> http://netbsd.org/~kamil/patch-00130-32bit-tracee-64bit-gdb.txt >>> >>> <sanitizer.log> >
Attachment:
signature.asc
Description: OpenPGP digital signature