Commit Graph

66 Commits

Author SHA1 Message Date
rin f97ac75017 gdb/mknative: Preset yes to rename(2) checks
It must be better to have this workaround here, rather than in external.
(Thanks uwe@ for suggestion!)

Confirmed that the same files generated as before.
2023-08-20 02:30:58 +00:00
rin 4ff1013c35 tools/gdb: Drop working dir for mknative from generated files
Migrate -I${.OBJDIR}/.native/include from CPPFLAGS to CCADDFLAGS for
this purpose.

No binary changes for native binaries as far as I can see.
2023-08-17 07:54:10 +00:00
rin ab9092b155 tools/gdb: Sprinkle --enable-obsolete for ia64 :( 2023-08-17 05:35:09 +00:00
christos 95f204a973 override the override 2023-08-15 19:56:07 +00:00
christos 37060aa12c backout previous; cross build needs native gmp 2023-08-14 22:41:34 +00:00
christos 982170f0be fix cross-gdb 2023-08-14 16:45:26 +00:00
christos c7cb6a1257 jump through hoops to make the native build find gmp for gdb. 2023-08-09 18:57:04 +00:00
christos 9eceabbe08 mknative support for gdb-13.2 2023-07-31 17:09:59 +00:00
skrll baf487ef7a Set ac_cv_func_sigprocmask=yes as the symbol renaming confuses the
configure script on architectures that don't provide a compatibilty
symbol, e.g. RISC-V
2023-05-08 09:47:20 +00:00
christos 575adc5486 Don't bother with gdbserver for archs that don't build it. 2020-12-05 21:27:31 +00:00
rin 6053aa6ca7 Correct target directory; src/external/gpl3/gdb.old not gdb. 2020-10-09 23:48:42 +00:00
rin 547879b380 Nowadays, mknative-gdb puts files into external/gpl3/gdb/lib,
instead of external/gpl3/gdb/bin/gdb.

Also, we need to nbmake-MACHINE in external/gpl3/gdb in order to
build dependent libraries correctly.
2020-10-09 23:44:46 +00:00
christos 254454c5af grab the gdbserver version 2020-09-24 14:53:17 +00:00
christos 833251feb8 Add gdbserver 2020-09-23 23:21:29 +00:00
christos cfd59bbc53 put gnulib stuff under gnulib/ because things import "gnulib/config.h" 2020-09-17 16:54:31 +00:00
christos 6b8c077795 remove obsolete 2020-09-17 16:07:39 +00:00
christos 576200d14e refine 2020-09-17 16:05:34 +00:00
christos d377601318 Save the mknative-gdb for 8.3 and prepare the mknative-gdb for 10.x 2020-09-17 02:14:48 +00:00
maya 874624a318 Update to working instructions.
thx mrg for the build_install suggestion.
2019-06-21 07:05:02 +00:00
christos d299b579b0 force libexpat since the autoconfig test are not cross-compile friendly
(they try to link with /usr/lib/libexpat.so in the compiler invocation).
2019-06-02 23:28:32 +00:00
christos b077f17d15 Disable mpfr to make MKCROSSGDB work again. The problem is that the default
(auto) finds the mpfr library in tools, but then when it tries to build using
the proper headers it does not find it anymore since we don't install it
(like the native build does not find it).
2019-06-01 17:02:59 +00:00
christos dad3d2d152 adjust for gdb-8.3 2019-05-29 01:56:06 +00:00
christos bf7113376a Create a new bsd.hostinit.mk file and put the build definitions for all host
programs there; make all Makefiles that use bsd.hostprog.mk include it.
Namely turn off MKREPRO and don't make lint, man pages, info files etc.
Remove the Makefile.inc files that contained these same settings, and
remove the settings from Makefile.host
2018-05-01 19:59:42 +00:00
christos b2a8932dbe PR/53238: Robert Elz: Disable MKREPRO in tools; the host compiler might
not support the necessary options. This is done thusly:

1. Set MKREPRO=no in Makefile.host. This handles all the Makefiles that
   use it and don't include bsd.own.mk.
2. Create Makefile.inc and set MKREPRO=no in it. Change the Makefiles that
   include bsd.own.mk, to include bsd.init.mk which includes Makefile.inc
   first. This will also allow us to control other tools options from a
   single location if we need to.

XXX: pullup-8
2018-05-01 00:04:34 +00:00
christos 273109cafb we want no-iconv for the tools build, but we want iconv for mknative. 2017-11-29 04:24:35 +00:00
christos 3e9314d067 Changes for gdb-8.0.1 2017-11-29 03:33:01 +00:00
christos c4e49a61b5 Adjust to gdb-8.0.1 which uses c++
XXX: quoting of variables that contain paths and versions is broken.
2017-11-28 22:25:16 +00:00
jmcneill 055f044508 --disable-nls does not work in gdb subdir, so add am_cv_func_iconv=no to
configure env. Fixes build on FreeBSD.
2017-07-01 12:23:09 +00:00
mrg 4141e03cf9 pass GDB_MACHINE_ARCH to mknative-gdb and use that as the subdir.
obtain GDB_MACHINE_ARCH from the new gdb Makefile.gdb_arch.
2016-10-16 04:37:42 +00:00
christos 17fc55e9e9 Fix the host build of aarch64 with clang 2016-10-14 14:41:59 +00:00
christos 60788873f5 Define __STDC_{LIMIT,CONSTANT,FORMAT}_MACROS in CXXFLAGS.
The problem is that the gnulib interception of <stdint.h> and <inttypes.h>
does not really work because we implement those internally with
<sys/inttypes.h> and <sys/stdint.h> and those internal headers are used
by other internal headers *before* they get a chance to be intercepted
(where the __STDC_ macros are defined).

Another way to fix this is to move the inclusion of the other headers
in <stdint.h> and <inttypes.h> outside multiple inclusion protection.
2016-10-12 18:43:40 +00:00
christos 7f2bcc7a02 use EXTERNAL_GDB_SUBDIR 2016-01-26 17:48:31 +00:00
skrll a9a1ce9deb gdb.old is no more. 2015-09-17 09:34:20 +00:00
christos c51dc1d472 add double quotes for consistency 2015-08-16 09:17:49 +00:00
christos d0e1037b7b handle gdb-7.9.1 2015-08-16 09:14:53 +00:00
mrg 5414ce041b for now, use gdb.old. 2015-08-15 21:12:28 +00:00
christos ff5462c4ef more files needed 2013-10-03 18:58:37 +00:00
bouyer 63a0d054cf At last on some linux distros, gmake is needed to build the cross-gdb. 2012-10-01 19:27:04 +00:00
skrll b7196e474c Disable the sim on mips for next person running gdb7 mknative. 2012-02-09 15:15:58 +00:00
christos 96f71ed699 mkdir the proper sim dirs! 2011-11-06 19:46:12 +00:00
christos 494dd6b7c3 add psim support 2011-10-09 02:03:30 +00:00
christos be84a9917e remove pre-gcc-4.5 mknative remnants that have long ceased to function. 2011-09-26 21:16:14 +00:00
christos 97417a67ca mknative for gdb7 2011-09-26 02:36:19 +00:00
njoly deb4c35e46 Adjust LDFLAGS handling to fix curses detection for mknative-gdb. 2010-12-24 13:12:09 +00:00
hans 31b20c1266 Fix tools build on Solaris with MKCROSSGDB=YES. 2010-05-08 23:18:44 +00:00
mrg 8c0cbe863f revert the previous; not intended to be part of that commit, or any commit 2009-12-23 20:17:13 +00:00
mrg 3fa4bcf59c rework the main SUBDIR list here as suggested by enami. put .WAIT on
the same line as the target that needs to wait, but before the target,
rather than on the previous line, which led to confusion and an error
being introduced in the previous change.
2009-12-23 20:15:21 +00:00
uebayasi 6d1f240d45 Fix parallel build. Analyzed & patch provided by enami@, thanks! 2009-12-15 11:39:05 +00:00
christos a31812a3a1 disable only parallel make. 2009-12-14 14:13:16 +00:00
uebayasi 0d144fa114 Disable parallel build, which always fails at compiling itable.c / interp.c.
Only affect MKCROSSGDB=yes.
2009-12-14 08:51:31 +00:00