Commit Graph

2072 Commits

Author SHA1 Message Date
mrg
36ac495d2b merge gcc 7.4 into gcc.old part 3 (last?) 2019-09-26 08:02:28 +00:00
mrg
1debfc3d3f merge gcc 7.4 into gcc.old part 2. 2019-09-26 05:55:33 +00:00
mrg
ac10021d3f merge gcc 7.4 into gcc.old. 2019-09-26 05:51:13 +00:00
mrg
3ad841b2f6 import GCC 7.4 as gcc.old 2019-09-26 05:45:16 +00:00
kamil
7c33168b4c Add LSan and UBSan specific preprocessor macros
__SANITIZE_LEAK__ patch:
https://gcc.gnu.org/ml/gcc-patches/2019-09/msg01270.html

__SANITIZE_UNDEFINED__
https://gcc.gnu.org/ml/gcc-patches/2019-09/msg01286.html

GCC upstream does not see value in feature parity with LLVM sanitizers.
For the time being this will be a NetBSD specific extension.

__SANITIZE_LEAK__ is needed for __NO_LEAKS in <sys/cdefs.h>
__SANITIZE_UNDEFINED__ is planned to be reused in the kernel headers.
2019-09-22 23:34:13 +00:00
maya
fe084afe4c Initialize the mode before accessing the move costs.
This matches the code of the rest of the file, and might be acceptable
by upstream.

PR toolchain/53176.
2019-09-14 15:02:47 +00:00
maya
4f2290cb73 Revert ira-color.c r1.2.
"VAX does not fully populate the register move costs table, so do not
access it w/o checks.
Hack to work around PR toolchain/53176."

Will commit a more upstream-friendly variant shortly.
2019-09-14 15:00:04 +00:00
kamil
1d6035aaec Cherry-pick upstream GDB patch to fix SIGTTOU handling
Fixes toolchain/54508 by Tobias Ulmer

commit 766f883622ef008230250aa5aecef9fb9b29f233
Author: Alan Hayward <alan.hayward@arm.com>
Date:   Tue May 28 10:07:54 2019 +0100

    Suppress SIGTTOU when handling errors

    Calls to error () can cause SIGTTOU to send gdb to the background.

    For example, on an Arm build:
      (gdb) b main
      Breakpoint 1 at 0x10774: file /build/gdb/testsuite/../../../src/binutils-gdb/gdb/testsuite/gdb.base/watchpoint.c, line 174.
      (gdb) r
      Starting program: /build/gdb/testsuite/outputs/gdb.base/watchpoint/watchpoint

      [1]+  Stopped                 ../gdb ./outputs/gdb.base/watchpoint/watchpoint
      localhost$ fg
      ../gdb ./outputs/gdb.base/watchpoint/watchpoint
      Cannot parse expression `.L1199 4@r4'.
      warning: Probes-based dynamic linker interface failed.
      Reverting to original interface.

    The SIGTTOU is raised whilst inside a syscall during the call to tcdrain.
    Fix is to use scoped_ignore_sigttou to ensure SIGTTOU is blocked.

    In addition fix include comments - job_control is not included via terminal.h

    gdb/ChangeLog:

            * event-top.c: Remove include comment.
            * inflow.c (class scoped_ignore_sigttou): Move from here...
            * inflow.h (class scoped_ignore_sigttou): ...to here.
            * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
            * top.c:  Remove include comment.
2019-09-06 14:37:00 +00:00
skrll
f24a6747bb Restore the kvm support 2019-08-31 20:16:25 +00:00
maya
5dd22a92f0 Don't keep our local modifications as ifdef __NetBSD__.
When we build netbsd on another OS, we produce a cross compiler without
these definitions.

Fixes some compiler crashes when building netbsd/vax on linux.
2019-08-29 11:45:29 +00:00
rjs
c50f68c427 Fix to PR port-arm/54159.
From:

<http://mail-index.netbsd.org/tech-toolchain/2019/08/26/msg003596.html>

Pullup -9
2019-08-27 19:23:22 +00:00
mrg
1db21b1df3 fix MKCXX=no:
- don't build GDB
- don't build sanitizers
- don't build GCC commands
- fix some set lists
2019-08-23 08:17:26 +00:00
kamil
c208434299 Ship with sanitizer/lsan_interface.h for GCC 7
Leak Sanitizer is there.
2019-08-15 16:01:27 +00:00
christos
c599e3d1b6 On NetBSD the auxv tag is always 32 bits long. Gdb assumes it is 64 on _LP64.
This works most of the time, except for 64 bit big endian (sparc64 eg).
2019-08-12 05:40:42 +00:00
mrg
952758b2ca regen mknative for everyone after:
- NETBSD_ENABLE_PTHREADS removed (default always)
- HAVE_GNU_INDIRECT_FUNCTION enabled for some platforms
- switch to dragondfly bsd locale routines after christos made them work for us
2019-08-01 21:29:39 +00:00
christos
2d6048637c Manually patch the locale configuration to use the dragonfly code instead
of generic.
2019-07-31 16:40:25 +00:00
christos
062a414ce2 Use the dragonfly locale code for NetBSD too. 2019-07-31 16:39:02 +00:00
christos
00ecc5eae9 Add a forward declaration for the specialized __timepunct<wchar_t> destructor
that the dragonfly code needs to avoid "instantiation before specialization",
and an empty implementation for the generic code.
2019-07-30 20:28:50 +00:00
christos
6afa7d32cf There is no specialized constructor for ctype<char> so the
destructor ends up trying to free uninitialized memory for
_M_c_locale_ctype.
2019-07-30 20:24:58 +00:00
christos
a0d7985299 Arrange so that the Makefile works for both the generic and the dragonfly
locale code.
2019-07-30 20:19:18 +00:00
christos
f5ca8a60e2 Remove extra paren 2019-07-29 08:03:47 +00:00
christos
648d051fe8 remove extra paren 2019-07-29 07:59:47 +00:00
christos
813c7a947a Factor out the uselocale() calls by providing the _l missing functions as
inlines in xlocale_port.h except in c_locale.{cc,h} because the header gets
installed.
2019-07-28 17:41:21 +00:00
christos
f9b8013d85 PR/54375: Andreas Gustafsson: gdb attached to running process shows extra
thread. When attaching to a process that has threads make sure that we
mutate the inferior_ptid (that currently has lwpid == 0 to the first thread
we encounter.
2019-07-14 18:50:58 +00:00
christos
870d594d5a Use ULONGEST_MAX instead of (ULONGEST)-1 2019-07-13 21:55:52 +00:00
christos
5625e95427 Add (ULONGEST) to prevent narrowing warnings. 2019-07-13 21:53:48 +00:00
christos
a8a9d504b1 Regen mips 2019-07-12 22:45:07 +00:00
christos
8c59d46439 remove ancient and unused regset_t definitions 2019-07-12 22:44:33 +00:00
christos
e81dba3600 remove dup solib-svr4 defs 2019-07-12 22:44:11 +00:00
christos
434b3c9777 put back the kvm stuff lost in previous merge. 2019-07-12 22:43:15 +00:00
christos
ca881224bd add the bfd ntrad vectors so that core files are recognized on mips64 2019-07-12 22:42:45 +00:00
mlelstv
e810f82151 Don't sign-extend bytes when dumping description data. 2019-07-06 12:30:36 +00:00
kamil
e81678c69d Sync (c) note in GDB:sh-nbsd-tdep.c with upstream
This file is now GPLv3+, not GPLv2+.
2019-06-21 19:20:18 +00:00
mrg
4d79f33340 delete GCC 6.5. every platform has been on GCC 7 for a while now. 2019-06-20 10:29:53 +00:00
mrg
0f3896e83f fix cross gdb build on sh and ppc:
- gdb_assert.h has moved into common/gdb_assert.h.
- force promotion to avoid compile errors

XXX why aren't these files built into the native binary, and
triggered normal build failures.
2019-06-17 06:33:53 +00:00
kamil
93c1a1e955 Enhance the GDB support for NetBSD
- Enable VFORK events
- Add syscall number for SCE/SCX events
- Add commented out posix_spawn(3) events
2019-06-14 01:00:52 +00:00
maya
eb9b74df38 Remove unused macro 2019-06-12 17:04:35 +00:00
christos
edd36b2506 fix format 2019-06-09 15:39:18 +00:00
mrg
293a231ba2 make this compile. now arm64 gdb works again. yay. 2019-06-08 14:59:01 +00:00
christos
c2e5191aa6 add a section for arch64-nbsd and regen. 2019-06-08 12:47:43 +00:00
christos
54eac751dd regen with forcing libexpat presence. 2019-06-02 23:27:19 +00:00
christos
1956f0abc1 put back script deleted during merge. 2019-06-02 16:07:58 +00:00
christos
6257d8c636 Don't require procfs to be mounted with linux so that <pid>/task is available
and explain why.
2019-06-01 17:24:20 +00:00
christos
7c126d09e2 Add defines so this compiles. 2019-06-01 17:23:29 +00:00
christos
db1852c7eb Do as FreeBSD does now (I have not checked that the offsets are correct) 2019-06-01 17:22:58 +00:00
christos
b231d39ade remove unused variable 2019-05-30 21:43:23 +00:00
christos
5a254e06b6 fix ppc 2019-05-30 21:27:58 +00:00
christos
b455aee1e6 need arch-utils.h 2019-05-30 21:23:52 +00:00
christos
2e708c9633 let's do things in the order everyone else does (I don't think it matters) 2019-05-30 21:16:03 +00:00
christos
98da7af653 set the architecture of the inferior. 2019-05-30 21:15:47 +00:00