tron
5939d9ebbc
Remove ".gitignore" files which blacklist some files that actually are
...
in the NetBSD sources. This should fix build problems for people using
GIT to track current.
Problem reported by Evgeniy Ivanov on "current-users" mailing list.
2011-12-05 10:43:24 +00:00
macallan
4aeefed6a9
actually pass $COPTS to the compiler
...
ok mrg@
2011-12-02 22:28:47 +00:00
skrll
a273c995fc
Pull across the fix for target/50691
...
ok'ed by mrg@
2011-12-02 09:44:48 +00:00
skrll
fd5c19ebdc
Revert
...
http://sourceware.org/ml/binutils/2010-01/msg00594.html
which broken TLS relocations for DSOs - the relocation wasn't being
adjusted wrt the GP.
A proper fix is in the pipeline.
2011-12-02 09:40:18 +00:00
skrll
a058087d27
Provide some more registers.
2011-12-01 09:16:28 +00:00
christos
324a1c22f5
Only set symbols not provided from the linker script as regular so
...
that we can find their version from verdef not vertree. This bug
showed up on the hp700 build of heimdal's libkrb5, where we got
the "end" symbol with a bad version from libhx509. The hp700 linker
script defines that end symbol.
2011-11-26 15:59:34 +00:00
skrll
28126bca61
Slight merge mistake. Now no difference to verndor branch.
2011-11-26 15:54:02 +00:00
matt
a52d311628
Add mips64*-netbsd* clauses
2011-11-23 19:41:50 +00:00
mlelstv
329d131575
Fix passing of floating point registers.
2011-11-19 13:00:38 +00:00
chs
7411e1d619
include builtins.md in vax.md so that ffs is defined.
...
update for conditional branch changes in gcc.
2011-11-10 17:16:30 +00:00
yamt
128f443a4a
add a crude dependency on tm_p.h. build.sh -j128 fails for me without this.
2011-11-10 09:28:25 +00:00
christos
d87651d3f4
Somehow emacs tries to unregister frame info for a symbol it did not register.
...
Don't abort for now. This worked before because the previous version of gcc
did not bother unregistering. Adding debugging printfs makes emacs core
dump, where other programs work fine.
2011-11-08 23:08:11 +00:00
njoly
aa8703ce6a
Adjust dependencies for alpha.
2011-11-07 23:21:32 +00:00
christos
09b48f4059
more dependencies needed for the other texinfo files.
2011-11-04 17:52:19 +00:00
uwe
f3172edb09
sh_frame_cache always tries to read FPSCR. Since frame.c uses gdb
...
exceptions now, there's an unplesant side effect that when FPSCR is
unavailable, your last display will get disabled just in case, "to
avoid infinite recursion". That happens directly in throw_exception,
so even catching that NOT_AVAILABLE_ERROR doesn't help.
Tweak the code a bit so that sh_analyze_prologue only reads FPSCR as
needed, when an FMOV instruction is encountered in the prologue.
XXX: I'm not sure if this is the right thing to do, but it seems
minimally intrusive.
2011-11-01 21:47:53 +00:00
uwe
f60e8996ed
Hook back into sh-tdep.c infrastructure for handling registers and
...
discard old code brought over from gdb6.
Add regmap for FPU regs. We don't support it now but it's irrelevant
here (though we effectively commit to using the same layout as Linux
and OpenBSD).
Define GDB_OSABI_NETBSD_CORE like sparc does to be forward compatible
with upstream.
2011-11-01 21:37:08 +00:00
uwe
cac1691902
elfcore_grok_netbsd_note: sync SuperH PT_GETREGS value with reality.
...
Recognize PT_GETFPREGS that we don't yet actually have, but for which
the number is now reserved.
2011-11-01 00:31:38 +00:00
uwe
b25f483145
Minor cosmetics to minimize diffs with vendor branch.
2011-10-31 23:30:27 +00:00
uwe
4ae94fd668
Since sh3 has got PT_STEP, nuke software single-stepping entirely.
2011-10-31 23:23:52 +00:00
uwe
4d93ce832f
shnbsd_software_single_step: fix logic botch. Now that removal of
...
software single step breakpoints is handled by the caller we no longer
need to keep static next_pc around.
2011-10-31 23:10:16 +00:00
uwe
264117e445
struct reg has GBR since NetBSD 5, so bump up SHNBSD_SIZEOF_GREGS.
...
It would be nice to detect this dynamically, but gdb7 wouldn't work on
NetBSD 4 anyway.
2011-10-31 21:00:39 +00:00
uwe
10230b2353
get_netbsd_elfcore_note_type: sync SuperH PT_GETREGS value with
...
reality. Recognize old PT___GETREGS40 (for struct __reg40 without
GBR). Recognize PT_GETFPREGS that we don't yet actually have, but for
which the number is now reserved.
2011-10-31 19:12:48 +00:00
christos
f7e24ebe94
We need to allocate an inferior with our fake pid so that kernel core dumps
...
work.
2011-10-31 18:41:17 +00:00
christos
d5be487c28
enable kernel stack frames now that I have tested them.
2011-10-31 18:40:40 +00:00
mrg
c23dc553e9
obsolete now useless (and wrongly set to "219" :-) HAVE_BINUTILS.
...
switch the sense of the gdb and gcc tests to list the platforms not
switched to gcc 4.5 or gdb 7, which is now:
GCC 4.1:
.if ${MACHINE_ARCH} == "alpha" || \
${MACHINE_CPU} == "arm" || \
${MACHINE_CPU} == "m68k" || \
${MACHINE_CPU} == "vax"
GDB 6:
.if ${MACHINE_ARCH} == "alpha" || \
${MACHINE_ARCH} == "hppa" || \
${MACHINE_CPU} == "mips" || \
${MACHINE_CPU} == "sh3" || \
${MACHINE_ARCH} == "vax"
let's go, people! (-:
2011-10-31 08:14:43 +00:00
mrg
e65408a5af
regenerate without sim support for now. (the rest isn't setup.)
...
mips64el can't debug n32 at all and n64 can't "run" any app.
2011-10-30 21:33:40 +00:00
christos
cdaa6f2f55
add mips64el, the last one
2011-10-30 01:06:43 +00:00
mrg
891af21ee2
expand the POWERPC_LINUX checks to also apply to POWERPC_NETBSD.
2011-10-30 00:28:26 +00:00
mrg
6dc4203514
"regenerate" after fixing link-time issues.
2011-10-30 00:27:52 +00:00
christos
d0b4489282
a copy of the ppc one.
2011-10-30 00:15:24 +00:00
christos
da671615f0
add ppc64 and armeb
2011-10-30 00:14:18 +00:00
christos
891159770f
psim on ppc64 needs libz
2011-10-30 00:11:28 +00:00
mrg
c9b7c8c664
add support for powerpc64-netbsd.
...
fix support for sh*-netbsd.
2011-10-29 23:42:45 +00:00
uwe
2e3791a6b1
shnbsd_get_next_pc: declare displacement as LONGEST and use
...
regcache_cooked_read_signed() to fetch displacement for braf/bsrf.
2011-10-29 21:18:28 +00:00
christos
f34aa33dec
Make the mips softloat special case the same as in the libgcc Makefile.
2011-10-29 17:14:12 +00:00
mrg
f54a3a20a7
regenerate binutils for powerpc64.
2011-10-29 11:05:45 +00:00
mrg
971b6107c6
remove the duplicated -mcall-netbsd.
...
adjust the __PIC__ definition to match common.opt.
2011-10-29 10:51:16 +00:00
mrg
2035f6bf12
mknative-gcc for powerpc64.
2011-10-29 09:21:31 +00:00
christos
d2f5c5ab00
Treat emips specially as we did with libgcc. Needs some of the softfloat
...
functions, even if it does not MKSOFTFLOAT.
XXX: still bad text relocations in eh_frame.
2011-10-28 02:28:01 +00:00
christos
9533da6ae4
regen powerpc64!
2011-10-27 20:18:54 +00:00
christos
ba6b4c93b2
add mips64eb
2011-10-26 00:14:12 +00:00
christos
7cf4600db1
add mc68000
2011-10-25 23:13:56 +00:00
christos
712cd4af5b
Add mipseb,mipsel,sh3el
2011-10-25 15:16:19 +00:00
christos
6fdc2528a1
make sh3 compile.
2011-10-24 23:58:01 +00:00
mrg
a0b9888bdf
add nbsd-nat.o to NATDEPFILES. fixes gdb link issues.
...
normalise with sparc64 version.
2011-10-24 18:42:41 +00:00
christos
b1aac1fecf
Add sparc and vax.
2011-10-24 16:12:23 +00:00
tron
84030af9c0
Fix build with stack smash protection enabled.
2011-10-22 10:41:50 +00:00
chs
c310f94f3a
when linking with "-shared" and "-shared-libgcc", also link against
...
the static libgcc.a after the shared libgcc_s.so. this is needed
on hppa and sh to get the millicode, which is not in the shared version.
2011-10-17 14:27:10 +00:00
chs
02dd92991a
do not build profiling versions of libgcc or libgcc_eh.
...
they are not used, and they don't build on arm with gcc 4.5.
2011-10-17 14:20:54 +00:00
joerg
397948e99a
Don't rename xfree to xfree_readline, it breaks the build.
2011-10-17 13:08:51 +00:00
christos
ee52b40a07
make this compile again.
2011-10-16 19:45:47 +00:00
christos
6b70d9b294
add necessary headers for this to compile without warnings
2011-10-16 19:41:30 +00:00
christos
13bf21c56c
make this compile.
2011-10-16 19:41:07 +00:00
christos
dc0f26b327
fix core dump handling. In essence remove all the custom code that dealt with
...
it, and use the gdb standard code.
2011-10-13 21:11:57 +00:00
matt
fb19a9fd0f
Regen.
2011-10-13 19:51:58 +00:00
christos
464319bdbd
Deal with core file initialization. The code is till wrong: all the core_ops
...
are unused and adding the core target does not work.
2011-10-13 16:00:37 +00:00
mrg
2c45186ad3
fix the paths to libsim.
2011-10-12 03:57:45 +00:00
dholland
0b9f907571
Improve the output of gcc when a subprogram gets a signal. When OOMing
...
it gets signal 9, which prints "Killed" -- that this is actually
signal 9 and not a generic message is never clear and causes people to
file PRs unnecessarily.
Suggested by followups to PR 44096.
2011-10-11 23:05:48 +00:00
christos
36efe015ea
make this compile.
2011-10-11 23:04:20 +00:00
christos
ac8695a91e
mknative m68k
2011-10-11 23:04:12 +00:00
joerg
3990e5f3ce
Disable format string validation with clang, it doesn't like gettext too
...
much.
2011-10-11 15:18:09 +00:00
joerg
e88c6d8036
Fix memset usage.
2011-10-11 15:13:08 +00:00
christos
c1a250a123
don't forget to subtract the offset; found by clang -Warray-bounds
2011-10-11 15:11:59 +00:00
christos
e9f7791ec5
fix some empty bodies.
2011-10-11 15:10:17 +00:00
mrg
58ea3a282e
force on -DPIC and re-apply the old .pico rules again.
...
i'd expect this to help hppa/sh3 builds, but it doesn't entirely.
it does get the related command lines much closer though.
2011-10-11 03:10:26 +00:00
christos
c6bacb34f2
regen arm
2011-10-10 23:14:48 +00:00
christos
7b0e9de91a
make this compile
2011-10-10 23:13:25 +00:00
christos
71f924834e
make alpha compile.
2011-10-10 22:18:08 +00:00
christos
fdf8f3b19f
mknative for sparc64 and alpha
2011-10-10 22:18:00 +00:00
christos
33c386138b
add missing file
2011-10-10 14:07:16 +00:00
chs
24dea3d577
in emit_push_insn(), ignore alignment if we don't have a type.
...
works around a gcc ICE on m68k. from mrg.
2011-10-09 21:17:33 +00:00
christos
e6afcfa146
fix and re-enable the texinfo targets
2011-10-09 18:17:53 +00:00
christos
cfa2879daa
add arm and hppa
2011-10-09 17:19:03 +00:00
christos
d824ea3fab
don't forget to set bindir.
2011-10-09 13:58:27 +00:00
christos
c8d7cb163f
fix powerpc support.
2011-10-09 02:07:24 +00:00
christos
1138a3c397
add powerpc support
2011-10-09 02:03:19 +00:00
christos
cee1519fd9
Add psim
2011-10-09 01:59:31 +00:00
christos
4ad34de5ac
Descent into gdb if we support it yet.
2011-10-08 21:52:15 +00:00
christos
eabd2ad9ba
- Don't use the unwind register get functions; you end up in an assertion
...
trying to unwind while unwinding; plus the sniffer is not allowed to unwind.
- Return the outer frame to terminate not the null frame.
This fixes the kernel track unwinder, so enable it.
2011-10-08 21:47:52 +00:00
christos
2851a42220
pass the thread id.
2011-10-08 21:43:35 +00:00
christos
6ee25ca9b9
use cleantags, instead of home grown copy.
2011-10-08 19:28:38 +00:00
christos
1d3d0af5a7
gnu style.
2011-10-07 23:24:14 +00:00
christos
b2a67858d2
Fix broken logic that created R_SPARC_64 relocations when -Bsymbolic.
...
When -Bsymbolic, all resolved symbols need to be created with relative
relocations. The dynamic linker depends on that because it only
knows how to perform relative relocations in the first pass to
relocate itself. This bug ended up creating R_SPARC_64 symbols for
12 relocation symbols in ld.elf_so, one of them dlopen(), which
ended up breaking things using dlopen(), most notably PAM.
2011-10-07 22:30:56 +00:00
christos
5cb8c25793
disable building the .info file
2011-10-07 20:22:59 +00:00
mrg
e8dd307ab6
remove NETBSD_LIBGCC_SPEC that is no longer necessary with ligcc
...
already doing pic code properly.
2011-10-07 09:16:27 +00:00
mrg
4a9d1308c3
obsolete libgcc_pic and friends. all libgcc's are supposed to be pic
...
for platforms with shlibs already (and are.)
this obsoletes our hacks for the libgcc specs to use libgcc_pic, and
fixes a couple of other issues reported to me directly.
2011-10-07 09:15:21 +00:00
christos
b7c50fc18d
enable thread debugging support.
2011-10-02 18:16:06 +00:00
christos
ce760d083b
Enable thread debugging support (not completely working yet).
2011-10-02 18:15:23 +00:00
christos
0ef3cdf303
- add objfile hook.
...
- constify.
- we cannot run things, so don't lie.
2011-10-02 18:14:24 +00:00
christos
bc3b670f7d
The arm .arm.atpcs section does not have segment information, so skip it.
2011-10-01 19:25:24 +00:00
macallan
c608916b4f
put -mfixloongson2f-btb back in the command line options list
2011-09-30 01:23:00 +00:00
christos
c236fd95c0
mknative for i386
2011-09-27 15:05:56 +00:00
christos
b642776f19
disable kernel trap frame crawling on i386 until it is fixed.
2011-09-27 15:04:19 +00:00
christos
d3f9240343
Provide regset functions and gut parts that the new debugging thread library
...
does not provide yet, so that we can link. As expected this does not work
yet.
2011-09-26 20:38:54 +00:00
christos
a6ca113b40
Resurrect old thread debugging code. Not hooked in, compiles.
2011-09-26 18:55:56 +00:00
christos
09d11d2f8f
use gstdint.h from libdecnumber.
2011-09-26 14:31:25 +00:00
mrg
5f7fcf61d3
mknative files for armeb / binutils 2.21.1a
2011-09-26 09:33:45 +00:00
mrg
8f6ce38a21
mknative files for arm / binutils 2.21.1a
...
(built with a hack to gas/config/tc-arm.c.)
2011-09-26 09:26:58 +00:00
christos
605c6d89d1
Build glue for x86_64. This is working gdb for amd64 minus kernel stacktrace
...
support. It is disabled for now because it breaks user program traces.
2011-09-26 03:02:44 +00:00
christos
3e93b50f82
Disable our custom stack unwinder for now. It is completely broken now because
...
gdb asserts when a frame returns 0. In previous versions of gdb, it just
printed 0, and stopped scanning. Our unwinder produces the same results in
both versions of gdb, i.e. it is broken and worse than the current gdb
default. We will need to revisit this for kernel debugging.
2011-09-26 02:35:33 +00:00
christos
5ecf4f1c7e
#define _KMEMUSER so that the struct lwp test works.
2011-09-25 20:26:04 +00:00
christos
b5a43e29a1
- fix missing argument
...
- expose struct lwp by #define _KMEMUSER
2011-09-25 20:25:08 +00:00
christos
2aaaf67e44
disable .y.c rule.
2011-09-25 20:23:51 +00:00
apb
1bc22d31ed
Disable rebuilding of elfedit.1
2011-09-25 19:40:36 +00:00
christos
a83ee50668
make amd64 compile.
2011-09-25 19:09:31 +00:00
christos
acd0381cfc
Apply the diffs that are relevant from our old gdb6 source tree.
2011-09-25 16:30:24 +00:00
chs
623ee27088
m68k needs fpgnulib.c just like m68000 does.
2011-09-25 13:34:16 +00:00
chs
a9fd72b06c
define PREFERRED_STACK_BOUNDARY to be the same as STACK_BOUNDARY,
...
gcc 4.5 wants them both.
2011-09-25 13:33:43 +00:00
chs
9f1b54794a
libgcc is big enough to need the equivalent of -fPIC here now.
2011-09-25 13:33:11 +00:00
chs
bdcbc7d337
don't try to define LINK_EH_SPEC if it's already set,
...
netbsd.h already set it to what we want.
2011-09-25 13:32:17 +00:00
mrg
aa6f331642
mknative files for vax / binutils 2.21.1a
2011-09-25 11:10:45 +00:00
mrg
95deb5109b
make this build again.
...
gimpy, please check the #if 0'd code that may or may not be useful? :)
2011-09-25 11:07:32 +00:00
mrg
175e62a9ff
mknative files for m68* / binutils 2.21.1a
2011-09-25 10:55:04 +00:00
mrg
60fbfc044d
mknative files for powerpc / binutils 2.21.1a
2011-09-25 10:27:01 +00:00
mrg
bd754ea449
mknative files for hppa / binutils 2.21.1a
2011-09-25 10:15:32 +00:00
mrg
2157e9516b
mknative files for alpha / binutils 2.21.1a
2011-09-25 10:09:30 +00:00
mrg
cb8d4d4a13
mknative files for mips64eb / binutils 2.21.1a
2011-09-25 10:02:45 +00:00
mrg
68c15c8ed6
mknative files for mips64el / binutils 2.21.1a
2011-09-25 09:52:59 +00:00
mrg
47221e6236
add OPTION_FIX_LOONGSON2F_BTB and OPTION_NO_FIX_LOONGSON2F_BTB
...
options back to the enum.
2011-09-25 09:44:54 +00:00
mrg
a84ac1a7a0
mknative files for mipsel / binutils 2.21.1a
2011-09-25 09:42:48 +00:00
mrg
0f3608f275
mknative files for mipseb / binutils 2.21.1a
2011-09-25 09:37:28 +00:00
mrg
68db3a43ca
mknative files for sh3eb / binutils 2.21.1a
2011-09-25 09:29:26 +00:00
mrg
34dc7e97c3
mknative files for sh3el / binutils 2.21.1a
2011-09-25 09:25:33 +00:00
mrg
88584aaf21
mknative-binutils for sparc64 / binutils 2.21.1a.
2011-09-25 08:01:41 +00:00
mrg
1a51c49807
mknative files for sparc / binutils 2.21.1a
2011-09-25 07:53:27 +00:00
mrg
7838ec379b
mknative-binutils for i386 / binutils 2.21.1a.
2011-09-25 06:48:52 +00:00
christos
32998b1cb8
Merge new binutils. Only x86_64 works now; the rest will need to run mknative
...
again (at least).
2011-09-25 04:32:33 +00:00
christos
31799520c4
from ftp.gnu.org
2011-09-24 22:40:46 +00:00
christos
be12b8bcaf
from ftp.gnu.org
2011-09-24 22:30:45 +00:00
christos
45548106ec
from ftp.gnu.org
2011-09-24 22:20:22 +00:00
christos
be9ac0ea6d
from ftp.gnu.org
2011-09-24 22:10:17 +00:00
christos
7dfc761b33
Add the rcs keyword chomper.
2011-09-24 20:52:37 +00:00
christos
7813712d29
make this compile.
2011-09-24 20:51:04 +00:00
christos
5af5d48181
fix stray rcsid files
2011-09-24 20:47:37 +00:00
christos
4e98e3e176
import 7.3.1
2011-09-24 19:57:51 +00:00
christos
98b9484c67
import 7.3.1
2011-09-24 19:47:50 +00:00
christos
473931cbb4
Initial revision
2011-09-24 19:47:49 +00:00
christos
597410b885
import 7.3.1
2011-09-24 19:41:43 +00:00
christos
00a6b36997
import 7.3.1
2011-09-24 19:41:36 +00:00
tron
b8b5c88370
Fix build with stack smash protection enabled.
2011-09-23 09:36:37 +00:00
mrg
8b0b8ab146
build and install libgomp, as needed by "cc -fopenmp", and its
...
suplimentary files like libgomp.spec and omp.h.
2011-09-23 06:47:54 +00:00
mrg
de7f28c14f
only install libgomp.spec for the native build. look in the archdir
...
for libgomp.spec.
XXX: FILES/FILESDIR isn't working here for me yet. no idea why.
2011-09-22 20:55:17 +00:00
mrg
23f1423382
regenerate.
2011-09-22 04:22:17 +00:00
mrg
e2bf07a38a
use GOMP_MACHINE_ARCH, so we can build compat libs.
2011-09-21 02:12:00 +00:00
mrg
53e8c72cbd
libgomp mknative-gcc files for everyone else.
2011-09-21 02:00:55 +00:00
mrg
ac21230aad
makefile to build libgomp, as needed by "gcc -fopenmp".
...
needs a full mknative-gcc run before it can be properly enabled.
2011-09-20 02:28:03 +00:00
mrg
5bf1411760
mknative-gcc files for libgomp.
2011-09-20 02:26:40 +00:00
apb
3cc8722d9f
Don't include .depend.* files during "make clean" or "make cleandir"
2011-09-10 19:26:18 +00:00
bouyer
90a13a6073
Hide instructions added by -mfix-loongson2f-jump in the same way as
...
-mfix-loongson2f-btb, to avoid a gas warning "macro expanded into
multiple instructions" (which cause GDIUM kernel build failure
as it's built with -Wa,-mfix-loongson2f-jump -Wa,--fatal-warnings).
2011-08-29 18:30:52 +00:00
bouyer
0c15c4be25
Add a fix-loongson2f-btb option to gas, from OpenBSD.
...
This works around a bug in the branch prediction logic of the
CPU which can cause a hard hang. The existing fix-loongson2f-jump
works around the same bug, but by 'fixing' the jump target to be within the
same 256MB region as the kernel. This will (silently) cause a jump
to the wrong address if the jump is intentionally to some other
region (e.g. a call to pmon).
fix-loongson2f-btb instead works around the issue by adding an explicit flush
of the branch target buffer (via a write to a cop0 register) before every
jump register instruction.
2011-08-27 13:19:39 +00:00