Commit Graph

1531 Commits

Author SHA1 Message Date
kamil
77d313fc36 Detach libpthread_dbg(3) from gdb(1) and gdbtui (gdb.old)
libpthread_dbg(3) is a remnant library from the M:N thread model
(pre-NetBSD-5.0) API to introspect threads within a process and for use
of debuggers.

Currently in the 1:1 model it's not used in GDB neither in LLDB and it's
not either planned to be used. It's current function to read pthread_t
structures is realizable within a regular debugger capable to
instrospect objects within a tracee (GDB, LLDB...).

pthread_dbg(3) is going to be removed from the base distribution and moved
to pkgsrc.

Patch reviewed by <christos>

Sponsored by <The NetBSD Foundation>
2017-02-08 01:32:37 +00:00
kamil
e361313d33 Detach libpthread_dbg(3) from gdb(1) and gdbtui
libpthread_dbg(3) is a remnant library from the M:N thread model
(pre-NetBSD-5.0) API to introspect threads within a process and for use
of debuggers.

Currently in the 1:1 model it's not used in GDB neither in LLDB and it's
not either planned to be used. It's current function to read pthread_t
structures is realizable within a regular debugger capable to
instrospect objects within a tracee (GDB, LLDB...).

pthread_dbg(3) is going to be removed from the base distribution and moved
to pkgsrc.

Patch reviewed by <christos>

Sponsored by <The NetBSD Foundation>
2017-02-07 22:53:19 +00:00
sevan
cc576e1d8e Update supporting files for components which rely on autoconf to allow systems
introducing since release of software to be recognised. This should hopefully
allow the builds to progress a littles further on systems such as the POWER8
which features a little endian 64-bit PowerPC CPU identified as ppc64le.
2017-02-01 09:26:39 +00:00
christos
e145362bfe use the full attribute syntax 2017-01-17 12:49:26 +00:00
christos
0133d15da2 use the full attribute syntax. 2017-01-17 12:48:39 +00:00
christos
d3da06c622 elide psabi errors on i386 2017-01-15 21:27:38 +00:00
christos
8e7ebb8f8c Handle errors in system headers 2017-01-13 01:14:27 +00:00
christos
78df756bd3 sprinkle __unused 2017-01-12 19:21:09 +00:00
christos
73f4d05a56 revert for now; too many issues. 2017-01-12 19:10:00 +00:00
christos
d0c807d2c9 Our headers are clean, enable warnings caused by them. We want to know
about <ctype_macro>(char) usages.
2017-01-12 17:14:23 +00:00
skrll
3e2d39191a Fix merge botch. arm eabi targets now match properly and we get the
right defaults.
2017-01-11 14:13:05 +00:00
buhrow
d33b37e9a7 Fix problem which prevents cross building on NetBSD systems which predate
NetBSD-6 or non-NetBSD systems.  See discussion on port-arm for details.
2016-12-30 22:40:23 +00:00
kamil
60b1976a76 Revert introduction of FIXME_PR_51139
This change introduced ABI incompatible change with older versions shipped
on NetBSD. This back out code that is currently not working correctly due
to TLS-based std::call_once implementation in GNU libstdc++.

Error when starting gnuchash:

/usr/pkg/lib/libwebkitgtk-1.0.so.0: Undefined symbol "_ZSt15__once_callable" (symnum = 1705)

PR 51139

Reported by <wiz>
2016-12-24 15:48:26 +00:00
kamil
49e3a2363a Add a walkaround for TLS bug in libstdc++ exposed with std::call_once
Currently std::call_once with libstdc++ works only with static linking.
Disable code path using __thread types and introduce FIXME_PR_51139.
Problem discussed in PR 51139

Functional std::call_once is required in LLVM and LLDB codebase.

Example code to test std::call_once:
#include <iostream>
#include <thread>
#include <mutex>
#include <cstdlib>
std::once_flag flag;
int main(int argc, char **argv)
{
        std::call_once(flag, [](){ std::cout << "Simple example: called once\n"; });
        return EXIT_SUCCESS;
}

Sponsored by <The NetBSD Foundation>
2016-12-21 21:55:46 +00:00
rin
36532a0d5a PR port-powerpc/51366 kernel for powerpc/ibm4xx miscompiled by gcc >= 4.8.5
backport fix from upstream:

URL: https://gcc.gnu.org/viewcvs?rev=238789&root=gcc&view=rev
Log:
rs6000: Fix logic for when to emit .machine (PR71216)

The current logic determining whether to use .machine in the generated
asm code puts it there if the compiler is not configured with a default
target cpu, _or_ no -mcpu= was given on the command line.  It should
be "and" instead.

	PR target/71216
	* config/rs6000/rs6000.c (rs6000_file_start): Fix condition for
	when to emit a ".machine" pseudo-op.

Modified:
    branches/gcc-5-branch/gcc/ChangeLog
    branches/gcc-5-branch/gcc/config/rs6000/rs6000.c
2016-12-18 03:00:58 +00:00
rin
e31b62ddaa Skip the initial GP load in function prologue when inserting a breakpoint.
GNU ld for alpha is so clever that the redundant GP load in function
entrypoint is skipped. we must therefore skip initial GP loads; otherwise
breakpoints in function entrypoints can also be skipped.

Reported to upstream (Bug 20969):
  https://sourceware.org/bugzilla/show_bug.cgi?id=20969

ok martin
2016-12-15 10:01:16 +00:00
skrll
2e2322c9c0 Remove binutils.old as everything has switched. 2016-12-14 21:47:50 +00:00
mrg
899aca2e24 mknative, binutils 2.27, and ia64. 2016-12-12 19:15:15 +00:00
mrg
42a13a4db0 mknative-binutils 2.27 and hppa. 2016-12-11 02:13:34 +00:00
mrg
16e7be53ca regen binutils mknative files for binutils 2.27 on mipsel, mipseb and aarch64. 2016-12-11 01:53:43 +00:00
mrg
30b9303d3c regen mknative-binutils for ppc64 and binutils 2.27 2016-12-10 22:57:41 +00:00
mrg
de41f27e8a rebuild mkantive for ppc and binutils 2.27. 2016-12-10 21:33:53 +00:00
christos
a582531a1a finish arm regeneration 2016-12-08 19:35:10 +00:00
christos
37fdc90f90 regen sun2, earm, earmeb 2016-12-05 22:59:17 +00:00
christos
e33f4e7ec2 Regen sh3 2016-12-04 18:43:07 +00:00
christos
b1a05e3501 switch alpha/sparc/sparc64 to new binutils 2016-12-03 16:01:18 +00:00
christos
5b0871f5ea regen mips64 2016-12-03 00:40:47 +00:00
christos
787b0418af regen m68k 2016-12-02 17:51:07 +00:00
christos
811931c076 on NetBSD we don't have llvm_symbolizer, so try addr2line... 2016-12-01 18:20:25 +00:00
christos
0833d377e3 use the right sysctl to find the main binary name. We don't really need
this since our dl_iterate_phdr DTRT's for objmain, but...
2016-12-01 18:19:19 +00:00
christos
a6a34af0f6 regen for vax 2016-11-27 18:52:05 +00:00
mrg
38ac2f14f5 regen all gdb platforms. 2016-11-20 00:19:55 +00:00
mrg
98abf92201 s/#/$/ in a $NetBSD$ so it actually expands 2016-11-19 09:46:58 +00:00
skrll
0efd40303c mknative re-run 2016-11-19 09:10:33 +00:00
skrll
8d8621a4bd Real mknative re-run 2016-11-19 08:46:03 +00:00
skrll
56b555c863 Mark the alpha options use_secureplt as false... we don't do secure plt
on alpha (yet)
2016-11-19 07:54:19 +00:00
skrll
c7af765c8e Add in netbsd-core.lo for all arm/mips 2016-11-19 07:52:49 +00:00
skrll
f958ae60d4 (simulate) mknative re-run 2016-11-18 12:42:10 +00:00
skrll
3a5e17dcb9 Provide a generic nbsd_skip_solib_resolver and use it in alpha and arm.
Others should follow suit.

I even tested it.
2016-11-18 09:52:33 +00:00
joerg
c4414c4118 Merge r1.10 from the main in-tree binutils version:
More detailed error messages for text relocations on ppc code. Tested by
joerg@
2016-11-06 23:46:01 +00:00
joerg
d74117acef Merge r1.11 from the main in-tree binutils version:
Tail calls can use the PLT without a nop after the branch. Since the
callee won't return to the next instruction anyway, it wouldn't work
anyway.
2016-11-06 23:44:44 +00:00
christos
096c8b23c8 follow suit (add missing d) 2016-11-04 15:31:45 +00:00
martin
ed3eda7194 Add NODEBUGLIB here as well (sync with binutils directory) 2016-11-04 13:29:38 +00:00
joerg
374e459041 Tail calls can use the PLT without a nop after the branch. Since the
callee won't return to the next instruction anyway, it wouldn't work
anyway.
2016-11-04 00:19:32 +00:00
christos
f47de02583 More detailed error messages for text relocations on ppc code. Tested by joerg@ 2016-11-03 01:22:59 +00:00
christos
3d63ec494e need an = 2016-11-01 15:58:41 +00:00
christos
24c043b8d9 bump both (belatedly) 2016-11-01 14:02:15 +00:00
christos
ed77187f53 Add NODEBUGLIB, perhaps LIBISPRIVATE is better here? 2016-11-01 14:02:01 +00:00
martin
226fa8b9ee Add a skip_solib_resolver, from Rin Okuyama, fixes single stepping for
shared binaries.
2016-10-29 17:02:06 +00:00
christos
6ffca6ccd9 it might not be a breakpoint, so make the message what it actually is. 2016-10-27 14:30:55 +00:00