Commit Graph

9661 Commits

Author SHA1 Message Date
jkoshy
d1342fa268 Unbreak the lint build (sync to elftoolchain [r3912]). 2020-11-30 22:26:30 +00:00
yhardy
afb8d88625 Use vn_close to release the vnodes in the error handling blocks, since
the vnodes were opened for writing. Fix proposed on current-users
and improved by hannken@.
2020-11-28 22:53:06 +00:00
roy
5e88f5cfd3 Sync with dhcpcd-9.3.4 2020-11-28 14:27:20 +00:00
roy
5e29b77e59 Upate to dhcpcd-9.3.4 with the following changes:
With the following changes:
 * DHCP: If error adding the address in oneshot, exit with failure
 * DHCP: Only listen to the address if we successfully added it
 * DHCP6: Fix segfault introduced in dhcpcd-9.3.3
 * DHCP6: Abort in test mode when an error is returned by server
 * options: allow --ia_na=1 and --ia_pd=2 on the command line
 * options: Allow duid to take a value
2020-11-28 14:26:16 +00:00
jkoshy
604b08429e Sync libdwarf's manual pages with upstream. 2020-11-26 22:51:35 +00:00
jkoshy
ef39d52e3c Sync with elftoolchain upstream. 2020-11-26 21:52:00 +00:00
jkoshy
fd073023b0 Restore an overlooked 'Id' line. 2020-11-26 21:01:47 +00:00
jkoshy
b16194a2b0 Sync '_elftc.h' with the upstream elftoolchain project. 2020-11-21 21:04:25 +00:00
roy
86988fb56b Sync with dhcpcd-9.3.3 2020-11-20 13:24:58 +00:00
roy
d55488a43d Update to dhcpcd-9.3.3 with the following changes:
* dhcpcd: Don't create a launcher process if keeping in foreground
 * dhcpcd: Add --noconfigure option
 * control: Create an unpriv socket for non master mode
 * options: Don't log unknown ones when printing pidfile location
2020-11-20 13:23:38 +00:00
jkoshy
e40f8f8406 Update 'elfdefinitions.h' to elftoolchain revision [r3891]. 2020-11-19 20:58:30 +00:00
jkoshy
1b4a9ac54c Sync 'utarray.h' and 'uthash.h' with elftoolchain revision [r3891].
This change upgrades these files to UT{HASH,ARRAY}_VERSION 2.1.0.
2020-11-18 22:23:05 +00:00
rin
a8c74629f6 Support aarch64eb in */config.guess.
Cherry-picked from upstream:
https://git.savannah.gnu.org/gitweb/?p=config.git;a=commit;h=1c4398015583eb77bc043234f5734be055e64bea

Everything except external/apache2/llvm/dist/llvm/cmake/config.guess
is patched, which is under vendor tag and cannot be modified. I expect
that this file is not actually used as we use hand-crafted version of
configure script instead of cmake for building LLVM.

Note that external/apache2/llvm/autoconf/autoconf/config.guess has
already been committed on Oct. 20, but commit message disappeared as
cvs aborted due to "permission denied" when trying to modify the file
mentioned above. Sorry for confusing you.

Also note that GMP uses its own config.guess Patch for
external/lgpl3/gmp/dist/config.guess is provided by ryo@. Thanks!
2020-11-17 10:35:10 +00:00
chs
dfa4ab3ed8 Remove a pointless printf. 2020-11-17 03:20:33 +00:00
nia
d953e5e10c system.ctwmrc: Set Cursors to avoid strange default fallbacks 2020-11-16 14:12:46 +00:00
chs
55aacd0e65 Commit the ZFS file that I forgot in this previous commit:
Move the handling of PG_PAGEOUT from uvm_aio_aiodone_pages() to
uvm_page_unbusy() so that all callers of uvm_page_unbusy() don't need to
handle this flag separately.  Split out the pages part of uvm_aio_aiodone()
into uvm_aio_aiodone_pages() in rump just like in the real kernel.
In ZFS functions that can fail to copy data between the ARC and VM pages,
use uvm_aio_aiodone_pages() rather than uvm_page_unbusy() so that we can
handle these "I/O" errors.  Fixes PR 55702.
2020-11-15 00:54:13 +00:00
christos
a7b28dcb09 PR/55802: Andreas Gustafsson: Unbreak reproducible builds.
For reproducible builds to work we need to have a consistent command
line (because the command line gets recorded in dwarf). So we can't
do:

    -ffile-prefix-map=/joe/random/src=/usr/src

because then /joe/random/src gets recorded. We do instead:

    -ffile-prefix-map=\$NETBSDSRCDIR=/usr/src

The patch restores the environment variable parsing that got lost
in the last 2 gcc upgrades.
2020-11-14 21:24:03 +00:00
mrg
239922306a also check MKX11FONTS before installing fonts. 2020-11-14 04:32:44 +00:00
maya
e3ebb0d12b Needs bsd.own.mk for MKX11. 2020-11-13 09:56:53 +00:00
maya
6769572389 add rcsid, make font conditional on MKX11. 2020-11-13 08:33:07 +00:00
maya
b8e4133b8f Hook up font-liberation-ttf to the build.
license ok'd by board.
2020-11-12 22:28:02 +00:00
christos
a7e74f3dc5 Don't use static buffers to store format strings; this is a multi-threaded
program and if we print from multiple threads we can end up overwriting the
formats while printf is formating and that can end up in tears.
2020-11-12 22:11:03 +00:00
nia
a42fc114cd Revert addition of pthread dependency on sqlite.
It is less trivial than expected and introduced some surprising breakage.
2020-11-12 17:53:43 +00:00
rin
087e008143 One more catch up with ``aarch64 is not mips'' change.
Fix evbarm-aarch64 build.
2020-11-12 02:15:56 +00:00
chs
b02dfdd14a kmem_cache_create()'s "name" parameter can be on the stack,
so make a copy of it rather than keeping a pointer to it.
2020-11-11 03:31:04 +00:00
gson
7aeb9b3f9f Delete trailing whitespace 2020-11-10 11:00:02 +00:00
nia
70f54ff57b sqlite: do not build without multithreading support
at least a few pkgsrc packages avoid base sqlite because it fails
this check, and it's probably a surprising performance penalty for
unsuspecting users
2020-11-08 21:56:47 +00:00
nia
ab1f3176ac libepoxy: Only require egl on ports with egl support.
Reported by martin.
2020-11-07 18:12:16 +00:00
tsutsui
73d56d5b0b Cherry-pick Xorg version independent changes from xorg-server.
Reorganize CPPFLAGS.
2020-11-05 16:06:41 +00:00
nia
c9c9883d25 Also deny bitmap Lucida, Utopia from being selected through fontconfig. 2020-11-05 12:13:02 +00:00
khorben
b1a049293e PR/55747: Tobias Nygren: Install manpages for pam-u2f
I have added a Makefile rule, indicating how to generate the manual
pages again. It has no dependency on the original file, in order to
avoid issues when building: the generation depends in asciidoc and
libxslt, which are not in tools or in the base tree anyway. It should
therefore never trigger, but should be used by the maintainer when
updating pam-u2f.

With this, I believe this PR can be closed.

Tested with "build.sh release" on amd64.
2020-11-04 13:46:46 +00:00
tnn
78c2a58449 tmux.h: annotate file_vprint() as printflike 2020-11-03 10:52:58 +00:00
christos
358fc34e52 From wajap at github:
- eat whitespace in infnan checks
- set fval to 0 if we are not a floating point number
2020-11-02 22:58:51 +00:00
khorben
4e356941bc PR/55747: Tobias Nygren: Install manpages for pam-u2f
I have generated the manual pages and referenced them into the sets.
It would probably help to add a Makefile rule, indicating how to
generate the manual pages again.

Tested with "build.sh release" on amd64.

Reviewed by Tobias Nygren before the commit.
2020-11-02 06:40:11 +00:00
mrg
fe57d61999 ensure PLATFORM_HAS_EGL and ENABLE_EGL are set consistently. 2020-11-02 06:25:24 +00:00
mrg
4bb3cafea8 adjust for libepoxy 1.5.4. 2020-11-02 04:48:54 +00:00
mrg
335b7a1bb8 transform @xkb_base@ instead of __xkb_base__ now.
should fix build issues reported on -current.
2020-11-02 00:25:46 +00:00
christos
68e6ba8497 merge conflicts 2020-11-01 15:16:04 +00:00
christos
aa83ff61b0 CHANGED FROM 3.1b TO 3.1c
* Do not write after the end of the array and overwrite the stack when
  colon-separated SGR sequences contain empty arguments.

CHANGES FROM 3.1a TO 3.1b

* Fix build on systems without sys/queue.h.

* Fix crash when allow-rename is on and an empty name is set.

CHANGES FROM 3.1 TO 3.1a

* Do not close stdout prematurely in control mode since it is needed to print
  exit messages. Prevents hanging when detaching with iTerm2.

CHANGES FROM 3.0a TO 3.1

* Only search the visible part of the history when marking (highlighting)
  search terms. This is much faster than searching the whole history and solves
  problems with large histories. The count of matches shown is now the visible
  matches rather than all matches.

* Search using regular expressions in copy mode. search-forward and
  search-backward use regular expressions by default; the incremental versions
  do not.

* Turn off mouse mode 1003 as well as the rest when exiting.

* Add selection_active format for when the selection is present but not moving
  with the cursor.

* Fix dragging with modifier keys, so binding keys such as C-MouseDrag1Pane and
  C-MouseDragEnd1Pane now work.

* Add -a to list-keys to also list keys without notes with -N.

* Do not jump to next word end if already on a word end when selecting a word;
  fixes select-word with single character words and vi(1) keys.

* Fix top and bottom pane calculation with pane border status enabled.

* Add support for adding a note to a key binding (with bind-key -N) and use
  this to add descriptions to the default key bindings. A new -N flag to
  list-keys shows key bindings with notes. Change the default ? binding to use
  this to show a readable summary of keys. Also extend command-prompt to return
  the name of the key pressed and add a default binding (/) to show the note
  for the next key pressed.

* Add support for the iTerm2 DSR 1337 sequence to get the terminal version.

* Treat plausible but invalid keys (like C-BSpace) as literal like any other
  unrecognised string passed to send-keys.

* Detect iTerm2 and enable use of DECSLRM (much faster with horizontally split
  windows).

* Add -Z to default switch-client command in tree mode.

* Add ~ to quoted characters for %%%.

* Document client exit messages in the manual page.

* Do not let read-only clients limit the size, unless all clients are
  read-only.

* Add a number of new formats to inspect what sessions and clients a window is
  present or active in.

* Change file reading and writing to go through the client if necessary. This
  fixes commands like "tmux loadb /dev/fd/X". Also modify source-file to
  support "-" for standard input, like load-buffer and save-buffer.

* Add ~/.config/tmux/tmux.conf to the default search path for configuration
  files.

* Bump the escape sequence timeout to five seconds to allow for longer
  legitimate sequences.

* Make a best effort to set xpixel and ypixel for each pane and add formats for
  them.

* Add push-default to status-left and status-right in status-format[0].

* Do not clear search marks on cursor movement with vi(1) keys.

* Add p format modifier for padding to width and allow multiple substitutions
  in a single format.

* Add -f for full size to join-pane (like split-window).

* Do not use bright when emulating 256 colours on an 8 colour terminal because
  it is also bold on some terminals.

* Make select-pane -P set window-active-style also to match previous behaviour.

* Do not truncate list-keys output.

* Turn automatic-rename back on if the \033k rename escape sequence is used
  with an empty name.

* Add support for percentage sizes for resize-pane ("-x 10%"). Also change
  split-window and join-pane -l to accept similar percentages and deprecate the
  -p flag.

* Add -F flag to send-keys to expand formats in search-backward and forward
  copy mode commands and copy_cursor_word and copy_cursor_line formats for word
  and line at cursor in copy mode. Use for default # and * binding with vi(1)
  keys.

* Add formats for word and line at cursor position in copy mode.

* Add formats for cursor and selection position in copy mode.

* Support all the forms of RGB colour strings in OSC sequences rather than
  requiring two digits.

* Limit lazy resize to panes in attached sessions only.

* Add an option to set the key sent by backspace for those whose system uses ^H
  rather than ^?.

* Change new-session -A without a session name (that is, no -s option also) to
  attach to the best existing session like attach-session rather than a new
  one.

* Add a "latest" window-size option which tries to size windows based on the
  most recently used client. This is now the default.

* Add simple support for OSC 7 (result is available in the pane_path format).

* Add push-default and pop-default for styles which change the colours and
  attributes used for #[default]. These are used in status-format to restore
  the behaviour of window-status-style being the default for
  window-status-format.

* Add window_marked_flag.

* Add cursor-down-and-cancel in copy mode.

* Default to previous search string for search-forward and search-backward.

* Add -Z flag to rotate-window, select-pane, swap-pane, switch-client to
  preserve zoomed state.

* Add -N to capture-pane to preserve trailing spaces.

* Add reverse sorting in tree, client and buffer modes.
2020-11-01 14:52:00 +00:00
roy
8790575961 Sync with dhcpcd-9.3.2 2020-11-01 14:24:01 +00:00
roy
545ab76352 Update to dhcpcd-9.3.2 with the following changes:
* DHCP: Add support for IPv6-Only Preferred option, RFC 8925.
 * BSD: `LINK_STATE_UNKNOWN` is treated as UP once again
 * privsep: pass logging to the privileged actioneer
 * privsep: allow logfile re-opening to work
 * privsep: close BPF socket on ENXIO
 * privsep: don't leave a BOOTP BPF listener rebooting in non master mode
2020-11-01 14:23:02 +00:00
mrg
3448802146 merge new xkeyboard-config 2.31 parts. 2020-11-01 12:07:09 +00:00
macallan
fc217a59c2 recognize some more G4 model names produced by config.guess
now native tools builds on ppc7447 and ppc7455 work again
2020-10-31 21:48:06 +00:00
nia
87a23a2dff mesa: re-enable GLX TLS to help i386
mesa's assembly code for i386 only seems to be position independent
when compiled with ELF TLS, so having it disabled causes worse problems
than the edge cases ELF TLS causes.

potentially the assembly code could be fixed (it looks like it not
being safe is a bug), it could also be disabled, but i don't currently
have the means to measure the impact of that.
2020-10-31 13:28:22 +00:00
maya
209c610114 Use the same macro used before for avoiding too large floats on vax.
This has the advantage of not changing the number for non-vax, so is a
safer change for those architectures.
(Might not actually matter).
2020-10-30 12:32:04 +00:00
martin
5d507f2d93 libsqlite3 now requires -lm 2020-10-30 08:41:58 +00:00
martin
f0c967c0ae Instead of a random 'prohibitively high' value, use DBL_MAX so it builds on VAX 2020-10-30 06:02:05 +00:00
nia
7a30d56279 sqlite: fts5 extension requires we link with -lm 2020-10-29 16:35:33 +00:00
nia
8ecfd670fa sqlite3: Turn on extensions that default-on using the configure script
Includes json1 and fts5, which are both needed by various things in pkgsrc
2020-10-29 12:38:06 +00:00
nia
bf99f1741c xorg: retire XTrap library and sample clients
the DEC-XTRAP extension is deprecated since 1994, so modern X servers do
not support it

the library was removed from pkgsrc last year and is not required by
anything not-sample-client related in src

if you try to query the protocol on netbsd, you get the following:

$ xtrapproto
Display:  :0.0
Warning: Can't load DEC-XTRAP extension
xtrapproto: could not initialize extension
2020-10-28 08:10:08 +00:00
nia
4640ade553 xorg: obsolete libXevie
this is a library for an X server extension that the modern Xorg server
does not have.

it no longer has any users in src or pkgsrc.
2020-10-27 13:42:22 +00:00
nia
714022aa67 xdm(8): fix definitions of truetype fonts in the default resource file
we don't ship with a truetype helvetica.
2020-10-26 16:24:09 +00:00
nia
07022a1965 Unhook libglut (MesaGLUT) from the build.
The GL Utility Library was formerly a core part of most OpenGL
distributions.

Originally, this version of libglut was developed as part of Mesa (the
primary OpenGL implementation used in NetBSD) before it was mostly abandoned
and work moved to the freeglut fork. It provides a platform-neutral way of
creating OpenGL contexts, something that many other libraries can also do
today (e.g. SDL, glfw).

All users in pkgsrc have been switched to the freeglut fork and there are no
remaining users of this library in src. If having a GLUT implementation in
base turns out to be particularly useful outside of compatibility with
previous NetBSD versions, we can import freeglut (which, AFAIK, is also
ABI compatible with MesaGLUT).
2020-10-25 16:59:27 +00:00
christos
82c4abc314 Now that we are adding the thread in the bsd_kvm_ops target namespace,
make sure that the inferior's top namespace is that too.
2020-10-24 23:06:15 +00:00
kamil
fe62285e60 Install the NetBSD XML syscall definitions 2020-10-24 05:01:57 +00:00
kre
d1074dc951 Merge tzdata2020d 2020-10-22 08:24:04 +00:00
kre
baffb74b0a Import tzdata2020d from ftp://ftp.iana.org/tz/releases/tzdata2020d.tar.gz
Summary of changes in tzdata2020d (2020-10-21 11:24:13 -0700):

	Palestine ends DST earlier than predicted, on 2020-10-24.
2020-10-22 08:23:32 +00:00
maya
d7187d6c73 Build fixes for freetype 2.10.4 2020-10-21 15:12:15 +00:00
rin
06f9eb9427 Add NetBSD/aarch64eb support to */config.guess for self-building and mknative.
XXX
Instead of patching each file, it would be better to maintain single
config.*'s as done in pkgsrc...

Patch provided by ryo@.
OK mrg@.
2020-10-20 10:41:49 +00:00
rin
9f4a23d06a Fix assembling "isb sy" for aarch64{,eb} on LP64BE architectures.
Cherry-picked from upstream:

https://sourceware.org/git/?p=binutils-gdb.git;a=commitdiff;h=05cfb0d8cc9b7f8676f5ae55a93642f091d5405f;hp=0ec992e6647c00fc234cdf4c11732b6711b024af

Now, working kernel can be self-built on aarch64eb.

Thanks to ryo@ for fixing and upstreaming this!
2020-10-19 12:47:53 +00:00
maya
2256753ef0 Remove unused local diff. Pointed out by htodd. 2020-10-19 07:44:52 +00:00
christos
00a4973a0c include <bsd.own.mk> where missing. 2020-10-18 15:20:13 +00:00
kre
a1976634c3 Merge tzdata2020c 2020-10-17 08:27:56 +00:00
kre
c83f58ef80 Import tzdata2020c from ftp://ftp.iana.org/tz/releases/tzdata2020c.tar.gz
News for the tz database

Release 2020c - 2020-10-16 11:15:53 -0700

    Fiji starts DST later than usual, on 2020-12-20.
2020-10-17 08:27:22 +00:00
nia
f00cc4dd89 Hook up xcompmgr to the build 2020-10-16 08:28:17 +00:00
kamil
375c406271 Limit the switch_to_thread() calls in startup_inferior()
Do not jump over the threads during the startup unless we encounter
TARGET_WAITKIND_STOPPED with SIGTRAP or TARGET_WAITKIND_EXECD.

Otherwise whenever a startup-with-shell processes signals on the
startup stage, it might indicate to switch to a non-existing
thread or a special-thread number (target lwp=0 on NetBSD means
that a signal was directed to all threads within a process).

This caused a crash with tcsh on NetBSD, where the tcsh shell
runs startup detection of the hostname. This action involves
spwaning a new process through fork.

GDB crashes this way:
$ SHELL=tcsh /usr/bin/gdb echo
(gdb) r
Starting program: /bin/echo
/usr/src/external/gpl3/gdb/lib/libgdb/../../dist/gdb/thread.c:1309:
internal-error: void switch_to_thread(thread_info*):
Assertion `thr != NULL' failed.
A problem internal to GDB has been detected,
further debugging may prove unreliable.

This patch has been submitted upstream for review:

https://sourceware.org/pipermail/gdb-patches/2020-October/172558.html
2020-10-14 14:02:43 +00:00
rin
f49c44d3a6 Fix previous; do not override SCRIPTS so that ctwm_app_menu gets installed. 2020-10-13 09:10:38 +00:00
rin
5919239d7d Reduce diff with upstream a bit.
No functional changes.
2020-10-13 07:12:00 +00:00
nia
f476d77f98 xclock also gets AlwaysOnTop 2020-10-12 15:24:16 +00:00
roy
0a9e4e74f0 Sync withn dhcpcd-9.3.1 2020-10-12 14:09:03 +00:00
roy
597ffba2d5 Update to dhcpcd-9.3.1 with the following changes:
* dhcpcd: carrier handling issue fixed from 9.3.0
 * dhcpcd: log if interface type is unsupported in debug
 * duid: memory leak fixed if UUID wanted but none available
 * privsep: fix receiving inet and no BPF running
 * privsep: allow gettimeofday for SECCOMP
 * privsep: fix stderr redirection again
2020-10-12 14:07:55 +00:00
nia
92a6612581 define xsetroot in the right place 2020-10-12 11:43:11 +00:00
nia
ad94c89804 Automatic font scaling based on screen size in the default ctwm config.
Based on a shell script which gets the DPI from the X server, and if this
fails, attempts to guess based on resolution. Taking advantage of M4 macros
in the ctwmrc, we can also scale the workspace manager and window list.

The following sizes are supported: 6x12 (<800x600) 8x16 12x24 (4k and higher)
16x32 32x64

Also makes Spleen the default font in ctwm
2020-10-12 11:07:23 +00:00
hannken
ce6d7dcd35 Stub groupmember() has to test both group list and current group id.
Fixes kern/55675: ZFS mounts do not work with setuid programs
2020-10-12 08:21:21 +00:00
nia
369baf1326 Generate oldschool Latin-1 variants of Spleen fonts.
Needed so ctwm can load them. ctwm uses XCreateFontSet which for some
reason seems adverse to returning UTF-8 fonts...
2020-10-11 17:49:07 +00:00
nia
adf31424df slightly lower workspace manager size
this works nicely on a 12.5" FHD screen
2020-10-11 10:12:53 +00:00
nia
d201bbfa3c allow xsetroot to be used in default xinitrc 2020-10-11 10:08:26 +00:00
nia
0a5b11edd2 allow the root window to be freely painted with e.g. xsetroot
it came up during initial review that it may be confusing that xsetroot
doesn't work by default
2020-10-11 10:02:51 +00:00
nia
d8abfc1173 mute binding is annoying when there's hardware mute 2020-10-11 07:08:29 +00:00
rin
428b4e25bc Fix build; clean manpages only if they are generated automatically. 2020-10-11 07:07:31 +00:00
christos
64014ae499 PR/55710: Kimmo Suominen: Delete manual pages so that they get copy from the
imported, already generated ones.
2020-10-10 14:25:21 +00:00
christos
25e0134e2d Use .PARSEDIR 2020-10-10 14:23:48 +00:00
christos
8cd1dd28ab Add rules for manual pages builds, remove including Makefile.inc 2020-10-10 14:23:34 +00:00
christos
663d916a0c include bsd.own.mk so that ../../Makefile.inc does not do it... 2020-10-10 14:23:05 +00:00
christos
b65092432b Wait for the asynchronous dns resolver child to be done (and close the
socket descriptors) before returning. Otherwise we might get bind errors.
Reported by kim@, fixed by mlelstv@.
2020-10-10 13:41:14 +00:00
nia
f46a751696 xeyes should be AlwaysOnTop - requested by a user 2020-10-10 10:36:16 +00:00
nia
bf28d37d16 Bump up the dark contrast a bit 2020-10-10 10:33:37 +00:00
nia
6c12084399 Make it easier to identify the current active window (red border highlight) 2020-10-10 10:28:08 +00:00
nia
922a346a2e Switch to the same hack in pkgsrc for avoiding bitmap fonts on the web
Just for consistency's sake, and making it easier to disable this if
someone wants to do that.
2020-10-10 09:17:33 +00:00
nia
4f713b22cd hook up X11 "Spleen" fonts to the build 2020-10-10 08:33:29 +00:00
nia
0d3c2dfaf5 Add Makefile for X11 Spleen fonts. Not integrated yet. 2020-10-10 07:28:04 +00:00
rin
271d6b3e72 Adjust for aarch64eb; it needs elf32-aarch64.c. 2020-10-09 23:55:48 +00:00
rin
11eeaade86 mknative-gdb.old for aarch64eb 2020-10-09 23:54:12 +00:00
macallan
252d2a5c18 build ppc_video.c etc. on hppa 2020-10-09 17:01:29 +00:00
kardel
75839df013 PR kern/55705:
don't attempt to sleep for negative time, we are late anyway - avoids DIAGNOSTIC panic
2020-10-09 08:18:01 +00:00
macallan
06b5bd8add build some potentially useful drivers on hppa 2020-10-09 04:28:38 +00:00
kre
e10e0d0745 tzdata 2020b: the ancient systemv and pacificnew zone files are gone,
as is the yearistype.sh script (2020b zic, if/when that gets included
in NetBSD won't support it).,
2020-10-08 13:44:36 +00:00
rin
c4b815a64a Apply hack for GDB 8.3 on arm to GDB 11.
XXX
Not tested as GDB 11 does not build for arm at the moment.

Note that dist/gdb/dwarf2foo.c was renamed to dist/gdb/dwarf2/foo.c.
2020-10-08 08:32:57 +00:00
rin
75fa0b3cd9 GCC 9.3 miscompiles dwarf2{expr,loc}.c with -O2 for earmv5hf{,eb}
(-O1 is fine). This is a new regression introduced in GCC9.

For everyone's safety, extend -O0 hack to dwarf2{expr,loc}.c for
all arm variants with GCC >= 8.
2020-10-08 08:31:37 +00:00
kre
2e991c1622 Merge tzdata2020b 2020-10-08 04:28:00 +00:00
kre
b3ad27c8c8 Import tzdata2020b from ftp://ftp.iana.org/tz/releases/tzdata2020b.tar.gz
Summary of changes in tzdata2020b (2020-10-06 18:35:04 -0700):

     Revised predictions for Morocco's changes starting in 2023.
     Canada's Yukon changes to -07 on 2020-11-01, not 2020-03-08.
     Macquarie Island has stayed in sync with Tasmania since 2011.
     Casey, Antarctica is at +08 in winter and +11 in summer.
2020-10-08 04:27:22 +00:00
rin
dbe4bf45a3 PR port-alpha/54307
GCC 9.3 seems to be able to compile rtree.c with -O2:

- No new regressions in ATF.
- System survives over a night, at least, under heavy loads.

On the other hand, unfortunately, GCC 9.3 still miscompiles tcache.c
with -O2 or -O1. For example, even ``gcc -g hello.c'' fails with ICE
if tcache.c is compiled with -O[12] in libc.
2020-10-07 07:35:28 +00:00
kamil
933fb81256 Replace local patches adding NetBSD/aarch64 support with the upstream one
Cherry-pick:

From c0b313441717b65569edb01bf9984d2066d899de Mon Sep 17 00:00:00 2001
From: Nick Clifton <nickc@redhat.com>
Date: Mon, 5 Oct 2020 14:56:42 +0100
Subject: [PATCH] Add NetBSD AArch64 Little Endian and Big Endian BFD support.

bfd      * config.bfd (aarch64-*-netbsd*, aarch64_be-*-netbsd*): Add target.
2020-10-06 23:28:13 +00:00
kamil
c19751a211 Undo local patches
They are no longer needed (and are wrong).
2020-10-06 23:14:47 +00:00
kamil
6a134d1bf9 Remove NFC local delta 2020-10-06 22:17:42 +00:00
kamil
33673ac57c Fix typo
Remove delta with upstream.
2020-10-06 22:14:41 +00:00
kamil
cc2fb38879 Replace local patch with fix from upstream
Cherry-pick:

From e2a2a24a8e78427ff8667d625f5befbe88c328bb Mon Sep 17 00:00:00 2001
From: Kamil Rytarowski <n54@gmx.com>
Date: Wed, 23 Sep 2020 04:20:05 +0200
Subject: [PATCH] Preinitialize the sockaddr_un variable to zero

Don't pass random sun_len for the BSD's,
zero the whole structure as recommended for portability.

Reported by Coverity.

gdbsupport/ChangeLog:

	* agent.cc (gdb_connect_sync_socket): Preinitialize addr with zeros.
2020-10-06 22:04:09 +00:00
kamil
95bfe6ceb7 Undo local NFC patch 2020-10-06 21:54:01 +00:00
kamil
543accdbd7 Undo local patch having no impact
/tmp is picked from P_tmpdir earlier.
2020-10-06 21:49:22 +00:00
kamil
fef5fe3a2a Undo local NFC patch 2020-10-06 21:39:53 +00:00
roy
be38669a3c Sync with dhcpcd-9.3.0 2020-10-05 16:02:15 +00:00
roy
32fe301ab8 Update to dhcpcd-9.3.0 with the following changes:
* dhcpcd: Backticks have been removed from quoting filenames
 * dhcpcd: Only manipulate stdin, stdout and stderr if they are valid
 * duid: Adjust option so the type can be specified
 * logerr: Don't leak logfile fd to scripts
 * privsep: Run the launcher process in the sandbox
 * BSD: Use `ifi_link_state` as the single source of truth about carrier
 * BSD: Ignore vether(4) devices by default
2020-10-05 16:01:13 +00:00
nia
7014504d2e fix indentation 2020-10-05 09:16:53 +00:00
nia
81cc2aabb6 Adjust the default fontconfig fonts.conf to avoid selecting bitmap
fonts included as part of X11 that are also included as scalable fonts
as part of macOS.

Many websites will attempt to select these fonts, which results in
very strange, poor quality rendering.

This should keep legacy X11 applications that want the old "Helvetica"
and "Times" fonts working, but prevent them from being selected by
applications that want scalable fonts.

It should not prevent "Helvetica" or "Times" from being selected
if the user installs a scalable version.
2020-10-05 09:16:26 +00:00
christos
67dafae820 Apply by hand a patch to fix http://r6.ca/blog/20200929T023701Z.html
aka "the memcmp bug", from a patch for gcc-10 in
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95189
Tested on x86_64 by running a full build, install and running it.
Testing that the problem has been fixed with one of the unit tests provided.
2020-10-04 14:44:47 +00:00
kamil
4d7b5ca9b5 Do not assume that _lwp_getprivate() returns unbiased private pointer
Cherry-pick and adapt:

From 2a9ce60de98e53198047daaeeec3cf09ece4e693 Mon Sep 17 00:00:00 2001
From: Kamil Rytarowski <n54@gmx.com>
Date: Fri, 2 Oct 2020 16:13:09 +0200
Subject: [PATCH] [compiler-rt] [netbsd] Improve the portability of
 ThreadSelfTlsTcb

Use __lwp_gettcb_fast() and __lwp_getprivate_fast(), as _lwp_getprivate()
can be a biased pointer and invalid for use in this function on all CPUs.
2020-10-02 14:36:54 +00:00
nia
aa47858fae xterm: Enable SIXEL graphics support.
could also enable REGIS, it will require -lm and i suppose isn't
a default upstream yet(?)

test with "-ti vt340".
2020-10-02 13:08:07 +00:00
nia
618a5a1ff2 xeyes: Enable anti-aliasing with XRENDER
If you prefer the "classic" look, "xeyes +render"
2020-10-01 21:22:47 +00:00
nia
9c6c6fa2f4 unbreak. bsd.files.mk needs to have an includes target, see also
share/wscons/fonts/Makefile
2020-09-28 06:04:08 +00:00
mrg
63c24fdcdf re-run native-gmp for gmp 6.2.0 and arm: run with a v4 toolchain
instead of a v7 toolchain, so it works on all.

should fix latest build mess.

future: test the speed of this vs armv[567] specific on armv[567].
2020-09-27 21:19:36 +00:00
mrg
bc89ad3318 mknative-gmp output for GMP 6.2.0. 2020-09-27 00:31:51 +00:00
mrg
41f3ac3e09 merge gmp 6.2.0. 2020-09-27 00:30:26 +00:00
mrg
72c7faa4db initial import of GMP 6.2.0. changes include:
- Bug fixes to gmp_snprintf, conversion to double, mpz_powm,
  and mpf_set_str.
- New functions for factorial, primorial, fibonacci, mpz_2fac_ui,
  and mpz_mfac_uiui.
- MIPS r6 cores are now supported.
- Various speeds ups.
2020-09-27 00:27:02 +00:00
mrg
3169bf0d27 update slightly to enable 'native-gmp' target from tools/gmp to work.
call the awk script on 'config.log', which has (almost) the same output
as the stdout of ./configure, and automatically store it as 'srcs.mk'.
2020-09-26 20:58:48 +00:00
mlelstv
16a709a022 Moving pointers could fail if realloc() allocates a new memory region
where the difference between old and new address exceeds an int. Use
ptrdiff_t for calculations instead.
2020-09-26 11:39:17 +00:00
mrg
4874f8c7fe updates for mpc 1.2.0. 2020-09-26 07:57:56 +00:00
mrg
90a8ff2142 initial import of mpc 1.2.0. main changes are:
New functions:
  mpc_sum
  mpc_dot

Several functions are more robust with a reduced exponent range (for
example corresponding to IEEE 754 binary formats).
2020-09-26 07:54:54 +00:00
mrg
555a5a053b updates for mpfr 4.0.1. 2020-09-26 07:50:41 +00:00
mrg
2b532294c7 empty PATCHES is needed. revert a local change that is wrong now. 2020-09-26 07:40:50 +00:00
mrg
76abf2fb07 merge mpfr 4.1.0 2020-09-26 07:29:57 +00:00
mrg
2ba2404b55 GNU mpfr 4.1.0. main changes from 4.0:
Changed __float128 to the type _Float128 specified in ISO/IEC TS 18661.
__float128 is used as a fallback if _Float128 is not supported.
New function mpfr_get_str_ndigits about conversion to a string of digits.
New function mpfr_dot for the dot product (incomplete, experimental).
New functions mpfr_get_decimal128 and mpfr_set_decimal128 (available
only when MPFR has been built with decimal float support).
New function mpfr_cmpabs_ui.
New function mpfr_total_order_p for the IEEE 754 totalOrder predicate.
The mpfr_out_str function now accepts bases from -2 to -36, in order to
follow mpfr_get_str and GMP's mpf_out_str functions (these cases gave an
assertion failure, as with other invalid bases).
Shared caches: cleanup; really detect lock failures (abort in this case).
Improved mpfr_add and mpfr_sub when all operands have a precision
equal to twice the number of bits per word, e.g., 128 bits on a 64-bit
platform.
Optimized the tuning parameters for various architectures.
2020-09-26 07:25:38 +00:00
mrg
e7604a0c6a we don't have a patch version for a while now. 2020-09-26 07:01:39 +00:00
christos
ca734aa17e Add one more place to notify blocklistd 2020-09-25 12:52:59 +00:00
christos
f4fce374ab Notify blacklistd about smtp auth failures (Jeff Rizzo) 2020-09-25 12:52:12 +00:00
christos
5093c1f669 Add the generated version file 2020-09-24 14:54:03 +00:00
christos
bc11a54ebd Add version.cc 2020-09-24 14:53:35 +00:00
nia
499b49590d revert; use system.ctwmrc from xsrc until I understand why the build fails 2020-09-24 06:52:48 +00:00
nia
9bc66ce6c3 move the new ctwmrc here so it doesn't conflict with the upstream one 2020-09-24 05:43:29 +00:00
kamil
2c7c316aa6 Make gdbserver almost work
The only missing thing is the lack of generated version.c.
2020-09-24 03:06:01 +00:00
christos
70699dff37 Add build glue (does not link) 2020-09-23 23:36:59 +00:00
nia
499e9f4300 add a script for dynamically generating a menu in the ctwm desktop
this parses the files in /usr/pkg/share/applications and provides a
submenu for launching applications.

TODO: make /usr/pkg configurable somehow?
2020-09-23 15:30:36 +00:00
mrg
4cb0ef6be7 fix missing deps for cow-fs_dir* and cow-fs_ops*.
should fix build issues reported on current-users.
2020-09-21 20:00:44 +00:00
nia
edc3c85277 also allow uxterm to be used in the default xinitrc 2020-09-21 13:51:55 +00:00
nia
be7cf8f824 Define CTWM when building xinit
This will allow ctwm to eventually be used in the default xinitrc.
2020-09-21 08:20:04 +00:00
mrg
e9f99204c3 make depend files also depend on the generated headers.
fixes build issues.
2020-09-21 06:48:48 +00:00
christos
d2c8b54685 zero out the sockaddr, so that the length it guaranteed to be 0. 2020-09-20 21:18:45 +00:00
christos
eceb233b9b regen 2020-09-20 20:34:42 +00:00
christos
4d342c046e regen 2020-09-20 16:54:16 +00:00
christos
853ce42ed3 disable -Wstack-usage since some targets like vax don't support it 2020-09-20 16:41:25 +00:00
christos
ad295f62b7 undo previous, it was correct 2020-09-20 16:00:56 +00:00
christos
f80dfe5994 Don't read data from sections without contents on NetBSD. We end up reading
0's and svr4_exec_displacement read phdrs_target successfully, and we
end up in the rabbit-hole of 0 displacement for pie binaries and then we
can't load our shared libaries from the core file.
2020-09-20 14:39:26 +00:00
christos
10aefa730d remove mis-merged code and make the auxv core offset 0. Now loading auxv
from core files works.
2020-09-19 21:47:03 +00:00
christos
8ac0bbd165 The lid of the main thread == pid now. Should we fix the kernel to return
this? Now debugging live programs work.
2020-09-19 21:45:45 +00:00
christos
43893e6090 Provide better guesses for bsd systems, otherwise we end up calling
recursively opendir and gettimeofday until we run out of stack...
2020-09-18 17:46:47 +00:00
christos
e6d52d512c fix build. 2020-09-17 20:26:22 +00:00
christos
808b1dd7da commit generated man pages 2020-09-17 20:13:20 +00:00
christos
eff0df4904 Generate ctf-error.h 2020-09-17 16:45:35 +00:00
christos
c14ca8fd28 Add new libraries 2020-09-17 16:38:10 +00:00
christos
19ad82eb24 Add new libraries, adjust old ones 2020-09-17 16:36:38 +00:00
christos
6b8c077795 remove obsolete 2020-09-17 16:07:39 +00:00
christos
7ea3f33ef5 Avoid name conflict 2020-09-17 16:06:27 +00:00
christos
fbd0cba2e1 Avoid re-definitions 2020-09-17 16:05:14 +00:00
kamil
e849e4aef2 Use internal_ptrace() instead of ptrace()
Cherry-pick:

commit 0008fb343704bafc3469703be930b8a65d7c47fa
Author: Kamil Rytarowski <n54@gmx.com>
Date:   Mon Sep 14 10:10:49 2020 +0200

    [compiler-rt] [netbsd] Use internal_ptrace() instead of ptrace()
2020-09-17 15:43:24 +00:00
kamil
81809f8a14 Undo setting _KERNTYPES
The sparc ptrace(2) headers were fixed to work without defined _KERNTYPES.
2020-09-17 15:42:17 +00:00
christos
58eb0ebe66 regen for x86_64 and start fixing the Makefiles (does not link yet) 2020-09-17 02:17:51 +00:00
christos
2536a35811 Add back accidentally missed file 2020-09-17 02:12:31 +00:00
mrg
4102322db0 fix dependencies for bits/largefile-config.h. the .cc files don't
depend on it, the outputs of those do.  should fix build issue
reported by otis@.
2020-09-16 21:24:30 +00:00
nia
23e44aaebe disable use of ELF TLS in Mesa/libGL
this is an optimization that primarily benefits linux/glibc -
most other systems have this disabled. in netbsd we've tried to
patch around it to make things work, but there still appears to be
some edge cases where libGL mysteriously crashes.

discussed on tech-x11 some time ago. already in place in pkgsrc.
2020-09-16 18:19:23 +00:00
nia
a9881f8037 someone pointed out it makes sense to load the exact libXcursor version 2020-09-16 10:02:22 +00:00
nia
557ebd95e6 libx11: Dynamically load unversioned libxcursor shared object
the version number is wrong for NetBSD, should be libXcursor.so.2
2020-09-15 23:34:16 +00:00
mrg
aa4e3817c0 switch sparc* and mips* to GCC 9. 2020-09-15 09:27:25 +00:00
mrg
d6c9d56cbc all mips and powerpc and sh3 build now.
sparc64 seems ok.
2020-09-15 08:44:02 +00:00
mrg
ebc1bdaad3 actually, disable tsan on everything but amd64.
it fails to build on mips64 and arm64 for me as well as others..
2020-09-15 07:00:03 +00:00
mrg
1137d45026 powerpc64, sh3 and vax builds now work.
sh3 and vax now works (workarounds commited.)
2020-09-15 05:21:46 +00:00
mrg
37f5d06eba make build and work on sh3 and vax. 2020-09-15 05:19:34 +00:00
mrg
785df279ef avoid ICE on sh3. 2020-09-15 05:14:19 +00:00
mrg
af229fff5a merge generic changes in eg rs6000/freebsd64.h into netbsd64.h 2020-09-15 05:06:56 +00:00
martin
911eea2386 Do not build libtsan on sparc64 2020-09-15 04:55:23 +00:00
christos
db9b8011e5 merge conflicts 2020-09-15 02:05:15 +00:00
christos
8dffb485a1 Import head of gdb as of 2020-09-14 requested by Kamil
2020-07-24  Aaron Merey  <amerey@redhat.com>

	* configure: Rebuild.
	* configure.ac: Remove AC_DEBUGINFOD.

2020-07-04  Nick Clifton  <nickc@redhat.com>

	Binutils 2.35 branch created.

2020-04-21  Stephen Casner  <casner@acm.org>

	PR 25830
	* configure.ac (noconfigdirs): Exclude gdb & gprof for pdp11.
	* configure: Rebuild.

2020-03-12  Tom Tromey  <tom@tromey.com>

	* Makefile.in: Rebuild.
	* Makefile.def (gdbserver): Depend on gdbsupport.

2020-03-12  Tom Tromey  <tom@tromey.com>

	* Makefile.in: Rebuild.
	* Makefile.def (gdbsupport): Don't depend on bfd.

2020-03-12  Tom Tromey  <tom@tromey.com>

	* Makefile.in: Rebuild.
	* Makefile.def (gdbsupport): Depend on intl.

2020-02-17  Tom Tromey  <tom@tromey.com>

	* configure: Rebuild.
	* configure.ac (configdirs): Add gnulib and gdbsupport when building
	gdbserver.

2020-02-14  Tom Tromey  <tom@tromey.com>

	* Makefile.in: Rebuild.
	* Makefile.def: Make gdbserver require gnulib and libiberty.

2020-02-07  Tom Tromey  <tom@tromey.com>
	    Pedro Alves  <palves@redhat.com>

	* src-release.sh (GDB_SUPPORT_DIRS): Add gdbserver.
	* gdbserver: New directory, moved from gdb/gdbserver.
	* configure.ac (host_tools): Add gdbserver.
	Only build gdbserver on certain systems.
	* Makefile.in, configure: Rebuild.
	* Makefile.def (host_modules, dependencies): Add gdbserver.
	* MAINTAINERS: Add gdbserver.

2020-01-28  Sergio Durigan Junior  <sergiodj@redhat.com>

	* src-release.sh (getver): Look for gdbsupport's
	create-version.sh script at the current directory if tool is
	"gdb".

2020-01-19  Simon Marchi  <simon.marchi@polymtl.ca>

	* remote-sim.c (gdbsim_target::wait): Return
	sim_data->remote_sim_ptid instead of inferior_ptid.

2020-01-18  Nick Clifton  <nickc@redhat.com>

	Binutils 2.34 branch created.

2020-01-18  Nick Clifton  <nickc@redhat.com>

	Synchronize top level configure files with master version:

	2020-01-01  Ben Elliston  <bje@gnu.org>

	* config.guess: Update copyright years.
	* config.sub: Likewise.

	2019-12-21  Ben Elliston  <bje@gnu.org>

	* config.guess (set_cc_for_build): Prevent multiple calls by
	checking if $tmp is already set. We can't check CC_FOR_BUILD as
	the user may set it externally. Thanks to Torbjörn Granlund for
	the bug report.

	2019-12-21  Torbjörn Granlund  <tg@gmplib.org>

	* config.guess (alpha:Linux:*:*): Guard against missing
	/proc/cpuinfo by redirecting standard error to /dev/null.

	2019-09-12  Daniel Bittman  <danielbittman1@gmail.com>

	* config.guess (*:Twizzler:*:*): New.
	* config.sub (-twizzler*): New.

	2019-07-24  Ben Elliston  <bje@gnu.org>

	* config.guess (mips:OSF1:*.*): Whitespace cleanup.

	2019-06-30  Ben Elliston  <bje@gnu.org>

	* config.sub (case $os): Match nsk* and powerunix. Don't later
	match nsk* and set os=nsk which removes the OS version number.

	2019-06-30  Ben Elliston  <bje@gnu.org>

	* config.sub: Recognise os108*.

	2019-06-26  Ben Elliston  <bje@gnu.org>

	* config.sub (hp300): Set $os to hpux.

	2019-06-26  Ben Elliston  <bje@gnu.org>

	* config.sub (vsta): Move into alphabetical order.

	2019-06-10  Ben Elliston  <bje@gnu.org>

	* config.guess (*:OS108:*:*): Recognise new OS.

	2019-05-28  Ben Elliston  <bje@gnu.org>

	* config.guess (*:Darwin:*:*): Run xcode-select to determine if a
	system compiler is installed. If not, do not run set_cc_for_build,
	as the default cc will open a dialog box asking to install
	Xcode. If no C compiler is available, guess based on uname -p and
	uname -m.

	2019-05-28  Ben Elliston  <bje@gnu.org>

	* config.guess (*:Darwin:*:*): Simplify UNAME_PROCESSOR.

2020-01-17  Simon Marchi  <simon.marchi@efficios.com>

	* Makefile.def: Add dependencies of all-gdbsupport on all-bfd.
	* Makefile.in: Re-generate.

2020-01-14  Tom Tromey  <tom@tromey.com>

	* src-release.sh (GDB_SUPPORT_DIRS): Add gdbsupport.
	* MAINTAINERS: Add gdbsupport.
	* configure: Rebuild.
	* configure.ac (configdirs): Add gdbsupport.
	* gdbsupport: New directory, move from gdb/gdbsupport.
	* Makefile.def (host_modules, dependencies): Add gnulib.
	* Makefile.in: Rebuild.

2020-01-09  Aaron Merey  <amerey@redhat.com>

        * config/debuginfod.m4: New file. Add macro AC_DEBUGINFOD. Adds
        new configure option --with-debuginfod.
        * configure: Regenerate.
        * configure.ac: Call AC_DEBUGINFOD.

2019-12-26  Christian Biesinger  <cbiesinger@google.com>

	* .gitignore: Add perf.data and perf.data.old.

2019-10-17  Sergio Durigan Junior  <sergiodj@redhat.com>

	* src-release.sh (GDB_SUPPORT_DIRS): Add libctf.

2019-10-17  Alan Modra  <amodra@gmail.com>

	PR 29
	* src-release.sh (getver): Replace "head -1" with "head -n 1".

2019-07-30  Nick Alcock  <nick.alcock@oracle.com>

	* Makefile.def (host_modules): libctf is no longer no_install.
	* Makefile.in: Regenerated.

2019-07-13  Nick Alcock  <nick.alcock@oracle.com>

	* Makefile.def (dependencies): all-ld depends on all-libctf.
	* Makefile.in: Regenerated.

2019-09-09  Phil Blundell  <pb@pbcl.net>

	binutils 2.33 branch created

2019-08-19  Tom Tromey  <tom@tromey.com>

	* configure: Rebuild.
	* configure.ac: Add --with-static-standard-libraries.

2019-08-09  Nick Clifton  <nickc@redhat.com>

	* libiberty: Sync with gcc.  Bring in:
	2019-08-08  Martin Liska  <mliska@suse.cz>

	PR bootstrap/91352
	* lrealpath.c (is_valid_fd): New function.

	2019-07-24  Martin Liska  <mliska@suse.cz>

	PR lto/91228
	* simple-object-elf.c (simple_object_elf_copy_lto_debug_sections):
	Find first '\0' starting from gnu_lto + 1.

	2019-07-12  Ren Kimura  <rkx1209dev@gmail.com>

	* simple-object-elf.c (simple_object_elf_match): Check zero value shstrndx.
	This fixes a Bug 90924.

	2019-07-22  Martin Liska  <mliska@suse.cz>

	* simple-object-elf.c (simple_object_elf_copy_lto_debug_sections):
	Do not search for gnu_lto_v1, but search for first '\0'.

	2019-07-18  Eduard-Mihai Burtescu  <eddyb@lyken.rs>

	* cplus-dem.c: Include rust-demangle.h.
	* rust-demangle.c: Include rust-demangle.h.
	* rust-demangle.h: New file.

	2019-05-31  Michael Forney  <mforney@mforney.org>

	* cp-demangle.c: Don't define CP_DYNAMIC_ARRAYS if __STDC_NO_VLA__
	is non-zero.

	2019-04-30  Ben L  <bobsayshilol@live.co.uk>

	* d-demangle.c (dlang_parse_assocarray): Correctly handle error result.
	* testsuite/d-demangle-expected: Add testcase.

	* d-demangle.c (dlang_parse_tuple): Correctly handle error result.
	* testsuite/d-demangle-expected: Add testcase.

	* d-demangle.c (dlang_parse_structlit): Correctly handle error result.
	* testsuite/d-demangle-expected: Add testcase.

	* d-demangle.c (dlang_parse_arrayliteral): Correctly handle error result.
	* testsuite/d-demangle-expected: Add testcase.

	* d-demangle.c (dlang_parse_integer): Fix stack underflow.
	* testsuite/d-demangle-expected: Add testcase.

	* cp-demangle (d_print_comp_inner): Guard against a NULL 'typed_name'.
	* testsuite/demangle-expected: Add testcase.

	* cp-demangle.c (d_encoding): Guard against NULL return values from
	d_right (dc).
	* testsuite/demangle-expected: Add testcase.

	2019-04-29  Ben L  <bobsayshilol@live.co.uk>

	* cp-demangle.c (d_expression_1): Don't peek ahead unless the current
	char is valid.
	* testsuite/demangle-expected: Add testcase.

	2019-04-10  Nick Clifton  <nickc@redhat.com>

	PR 89394
	* cp-demangle.c (cplus_demangle_fill_name): Reject negative
	lengths.
	(d_count_templates_scopes): Replace num_templates and num_scopes
	parameters with a struct d_print_info pointer parameter.  Adjust
	body of the function accordingly.  Add recursion counter and check
	that the recursion limit is not reached.
	(d_print_init): Pass dpi parameter to d_count_templates_scopes.
	Reset recursion counter afterwards, unless the recursion limit was
	reached.

2019-07-13  Joel Brobecker  <brobecker@adacore.com>

	* src-release (getver): If $tool/gdbsupport/create-version.sh
	exists, use that to determine the version number.

2019-06-21  Andreas Schwab  <schwab@linux-m68k.org>

	* src-release.sh (GDB_SUPPORT_DIRS): Add gnulib.

2019-06-14  Tom Tromey  <tom@tromey.com>

	* MAINTAINERS: Add gnulib.
	* gnulib: New directory, move from gdb/gnulib.
	* configure.ac (host_libs): Add gnulib.
	* configure: Rebuild.
	* Makefile.def (host_modules, dependencies): Add gnulib.
	* Makefile.in: Rebuild.

2019-06-03  Nick Clifton  <nickc@redhat.com>

	Revert:
	2019-05-29  Nick Clifton  <nickc@redhat.com>

	* configure.ac (noconfigdirs): Add libctf if the target does not use
	the ELF file format.
	* configure: Regenerate.

2019-05-29  Nick Clifton  <nickc@redhat.com>

	* src-release.sh (do_proto_toplev): Add libctf to list of
	directories that can be disabled.

2019-05-29  Nick Clifton  <nickc@redhat.com>

	* configure.ac (noconfigdirs): Add libctf if the target does not use
	the ELF file format.
	* configure: Regenerate.

2019-05-28  Nick Alcock  <nick.alcock@oracle.com>

	* Makefile.def (dependencies): configure-libctf depends on all-bfd
	and all its deps.
	* Makefile.in: Regenerated.

2019-05-28  Nick Alcock  <nick.alcock@oracle.com>

	* MAINTAINERS: Add libctf.

2019-05-28  Nick Alcock  <nick.alcock@oracle.com>

	* Makefile.def (host_modules): Add libctf.
	* Makefile.def (dependencies): Likewise.
	libctf depends on zlib, libiberty, and bfd.
	* Makefile.in: Regenerated.
	* configure.ac (host_libs): Add libctf.
	* configure: Regenerated.

2019-05-23  Jose E. Marchesi  <jose.marchesi@oracle.com>

	* config.guess: Synchronize with config project master sources.
	* config.sub: Likewise.
	* readline/support/config.guess: Likewise.
	* readline/support/config.sub: Likewise.

2019-04-10  Nick Clifton  <nickc@redhat.com>

	* libiberty: Sync with gcc.  Bring in:
	2019-04-10  Nick Clifton  <nickc@redhat.com>

	PR 89394
	* cp-demangle.c (cplus_demangle_fill_name): Reject negative
	lengths.
	(d_count_templates_scopes): Replace num_templates and num_scopes
	parameters with a struct d_print_info pointer parameter.  Adjust
	body of the function accordingly.  Add recursion counter and check
	that the recursion limit is not reached.
	(d_print_init): Pass dpi parameter to d_count_templates_scopes.
	Reset recursion counter afterwards, unless the recursion limit was
	reached.

2018-06-24  Nick Clifton  <nickc@redhat.com>

	2.32 branch created.

2019-01-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>

	Merge from GCC:
	PR target/88535
	* config.guess: Import upstream version 2019-01-03.
	* config.sub: Import upstream version 2019-01-01.

2019-01-10  Nick Clifton  <nickc@redhat.com>

	* libiberty: Sync with gcc.  Bring in:
	2019-01-09  Sandra Loosemore  <sandra@codesourcery.com>

	PR other/16615

	* cp-demangle.c: Mechanically replace "can not" with "cannot".
	* floatformat.c: Likewise.
	* strerror.c: Likewise.

	2018-12-22  Jason Merrill  <jason@redhat.com>

	Remove support for demangling GCC 2.x era mangling schemes.
	* cplus-dem.c: Remove cplus_mangle_opname, cplus_demangle_opname,
	internal_cplus_demangle, and all subroutines.
	(libiberty_demanglers): Remove entries for ancient GNU (pre-3.0),
	Lucid, ARM, HP, and EDG demangling styles.
	(cplus_demangle): Remove 'work' variable.  Don't call
	internal_cplus_demangle.

2019-01-03  Дилян Палаузов  <dilyan.palauzov@aegee.org>

	* configure.ac: Don't configure readline if --with-system-readline is
	used.
	* configure: Re-generate.
2020-09-15 01:41:53 +00:00
skrll
c922664953 hppa status 2020-09-14 19:51:54 +00:00
kamil
84a821fc01 Consistently, always link sanitizer runtime with libm and libpthread
This reflects the behavior from LLVM and avoids issues with dlsym(3) APIs.
2020-09-14 15:01:57 +00:00
kamil
0d08acfb76 Undo local patch adding GNU-stack
This is unneeded on NetBSD.
2020-09-14 14:56:43 +00:00
kamil
1dee2ebd2c Avoid using dummy tsan_rtl_unimpl.cc
Instead of providing broken support, error during build to catch the
problem quickly.
2020-09-14 14:33:01 +00:00
kamil
9f140fc4da Catch unsupported LONG_JMP_SP_ENV_SLOT
A variation of this patch is pending upstream: https://reviews.llvm.org/D87602
2020-09-14 11:56:01 +00:00
rin
379e44a136 Sync with external/gpl3/gdb/dist/gdb by removing unused files:
- rust-exp.c is generated file.
- x86bsd-nat.[ch] were replaced by x86-bsd-nat.[ch] when 8.0.1 was merged.
2020-09-14 06:50:31 +00:00
mrg
eaf57fb942 fixed armv7-eb build issue; as not gcc related. 2020-09-14 01:19:50 +00:00
christos
47c37bc275 merge conflicts 2020-09-14 00:40:04 +00:00
christos
e148fee9e4 merge conflicts 2020-09-14 00:40:02 +00:00
christos
ae1832950f merge conflicts 2020-09-14 00:40:02 +00:00
christos
815e1b14f3 merge conflicts 2020-09-14 00:39:47 +00:00
mrg
c51a5adcd2 switch riscv and ia64 to GCC 9.
switch riscv to binutils 2.34.
2020-09-13 23:32:04 +00:00
mrg
08422490a2 riscv64 vs xorg-server is solved (non-gcc specific issue.) 2020-09-13 23:23:00 +00:00
mrg
7fcbece421 remove additional -DHAVE_DIX_CONFIG_H.
add ${X11FLAGS.DIX} ${X11INCS.DIX} to record.  fixes build on riscv64.
2020-09-13 23:01:02 +00:00
christos
7f2ac4106a Import gdb-8.3 from the latest HEAD of the NetBSD tree with our local
modifications.
2020-09-13 21:44:03 +00:00
mrg
ed0af92660 note some platforms switched and some are ready to switch. 2020-09-13 21:21:04 +00:00
mrg
0d31d1b3fe regen for riscv32/riscv64 target emulation list. 2020-09-13 21:18:50 +00:00
mrg
5aa87be48b merge riscv*-netbsd* target support. 2020-09-13 21:14:01 +00:00
martin
7799f82205 Add missing dkbad.h include and define _KERNTYPES so we get all internal
types (like register_t) that we need for ptrace.
Fixes the build on sparc64.
2020-09-13 08:51:58 +00:00
kamil
e94bb09cf6 Sync netbsd_syscall_hooks.h with LLVM r. 74760bb00fb9b78a
Update the syscall definitionss from a snapshot 2.5 years old to the
current one.
2020-09-13 03:00:12 +00:00