Commit Graph

57 Commits

Author SHA1 Message Date
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
mrg c4cf5842aa MACHINE_CPU is "mips" not "xxmips". 2008-12-05 05:12:02 +00:00
chs 13bb388148 disable sim for mips until someone adds the rest of the build framework for it. 2007-02-19 18:26:22 +00:00
skrll c27514b676 Fix the logic for --disable-sym. Hi uwe!
Use CPPFLAG_ISYSTEM.
2006-11-25 16:06:04 +00:00
uwe 964935dc72 Disable sim for mknative unless it's known to work (configure's
default is to enable sim if there's support for the cpu).

The current list of "known to work" contains arches with G_SIM_OBS
already set: powerpc, powerpc64 and mips.

There's arm support in sim, but committed configs for arm do not have
G_SIM_OBS set, so I'm not enabling it here.

There's SH support in sim, but it fails to build out of the box, and
since we didn't build SH sim support for gdb 5.3, we keep it disabled.

Other arches shouldn't be affected, as there's no support for them in sim.
2006-11-24 02:09:01 +00:00
uwe 65e0d788c7 Pass preset configure "cache" vars in the environment not only to the
top-level configure, but to ${MAKE} configure-host as well.

Add more vars (for readline mostly) so that there's no configure
warnings about tests skipped b/c of cross-compilation.
2006-11-24 01:48:57 +00:00
uwe 4e48d71604 Note that nbmake-MACHINE native-gdb writes files under src, so this
step needs to be done in a writable src tree.
2006-11-23 23:33:56 +00:00
uwe f8e9ad465b Wrap overlong line to fit. 2006-11-23 23:31:00 +00:00
uwe 2770a4453e Use -isystem to add ${DESTDIR}/usr/include to the search path.
gdb comes with its own copy of GNU readline 5.x, but
-I${DESTDIR}/usr/include stuffed at the beginning of the command line
makes it find our compat readline/readline.h (emulating readline 2.x)
that conflicts with the readline 5.x includes.

Makes README.mknative instructions actually work instead of failing
midway b/c of conflicting tilde_expand() prototypes.
2006-11-23 22:41:10 +00:00
mrg 3bb37666dd s/gcc3/gcc4/. 2006-10-19 08:18:45 +00:00