Commit Graph

3348 Commits

Author SHA1 Message Date
jmc 8e9f3cf335 Account for possible alignment space before the exception table pointer when
dealing with the "eh" frames
2001-12-07 02:41:13 +00:00
jmc 39faa9cf1e Make sure the reloc for __EXCEPTION_TABLE__ in the "eh" exception frames is
fully aligned for the given arch. The sparc64 ld can't handle unaligned
relocs.
2001-12-07 02:40:36 +00:00
fredette 3ec17be693 Applied a strength-reduction patch from gcc-current. The patch
is in their revision 1.186, from schwab@suse.de, and said:

  Don't call reg_used_between_p if the insn from BL2 is after
  the insn from BL.

This fixes a cc1 SEGV on sys/dev/scsipi/ch.c rev 1.48 under -O2 or -Os,
seen on m68k and vax.
2001-12-06 18:50:34 +00:00
rafal b28234c5b3 Catch up to the thorpe-o-tiller:
| Move solib.o from TDEPFILES to NATDEPFILES (solib.c requires target
| headers, namely <link_elf.h>).
|
| Fixes build of cross-gdb.
2001-12-06 12:31:16 +00:00
thorpej 4cac6e8609 * Overhaul:
* move the code that supplies the integer and FP registers into
    separate functions, rather than duplicating the code for the
    ptrace and core file cases.
  * Use supply_register() rather than just copying directly into
    the register array and calling registers_fetched().  This way,
    only the registers actually supplied are marked as valid within
    the debugger.
* Add support for SSE/SSE2 registers via the PT_{GET,SET}XMMREGS
  ptrace(2) request.

(Blocked on the FSF assignment clerk for feeding this back to
the master GDB sources.)
2001-12-06 02:07:03 +00:00
rafal af3c956093 Make sure to strip {,_}[A-Z]* from NetBSD release names as well, so we get
OS as netbsd and not netbsdZ or netbsd_ALPHA.
2001-12-05 22:37:40 +00:00
rafal 7919399e4a Since gprof builds on mips platforms happily, add a mips*-*-netbsd* case
that doesn't add it to noconfigdirs.
2001-12-05 05:56:57 +00:00
rafal 9307d1bdb2 Add toolchain2netbsd generated files for gdb build on mipseb. 2001-12-05 05:50:43 +00:00
rafal 9b61c2acc2 Fix up `netbsdY' or `netbsdZ' in various places where toolchain2netbsd
stripped netbsd1.5[YZ] to netbsd[YZ].  toolchain2netbsd should probably
be whacked to DTRT as well.
2001-12-05 05:49:41 +00:00
rafal 49df24a942 Add MIPS (both target and host) support to the NEW_TOOLCHAIN GDB, based on
the 4.17 NetBSD support from our tree.  Original port by Chris Sekiya, with
minimal tweaks and cleanups by me (mainly: build bi-endian by default, add
NetBSD kcore support back).
2001-12-05 05:31:44 +00:00
martin 9bf1f40cf9 Back out replacing gawk by nawk - James Chacon already fixed gawk for
sparc64.

Sorry, next time I'll catch up with mails first.
2001-12-03 22:28:19 +00:00
martin ea1d800137 Hack: do not build gawk on sparc64 - it is known to not work when compiled
with the new toolchain.
2001-12-03 22:14:09 +00:00
jmc d08eaff246 While gcc may automatically add -fexecptions to c++ code it will only do that
for files named .cc or .C. _eh gets generated into a .c file so we need
explicit rules for it's targets (.o .po and .so) to compile it correctly.

Without this exceptions just plain don't work. Nothing ever gets caught.
2001-12-02 12:23:52 +00:00
jmc dad5e6ef6d Add ${CONFIG_SHELL-/bin/sh} in front of all calls to $ac_config_sub.
Makes sure things don't break when execute permission doesn't exist
2001-12-02 04:52:41 +00:00
jmc e134e4e037 Add sh in front of all calls to move-if-change as it might no have execute
permission turned on
2001-12-02 04:10:11 +00:00
jmc 3508f7583d Need -msoft-quad-float on sparc64 as double->int promote to quad math. 2001-12-02 03:06:55 +00:00
jmc 23e8627939 Fix test -r to test -x typo. 2001-12-02 02:58:51 +00:00
thorpej b4b165d516 Add _initialize_ser_tcp 2001-11-29 18:02:00 +00:00
msaitoh 6da382e0f0 add "-big" options for little endian 2001-11-29 09:24:24 +00:00
thorpej c32284d957 Add ser-tcp.o (manually; it was a simple change). 2001-11-29 08:36:14 +00:00
thorpej 642335f1b2 Add i386nbsd-tdep.o (added manually; it was a simple change). 2001-11-29 08:35:09 +00:00
thorpej 20241f1e3d Add ser-tcp.o to XDEPFILES so that "target remote host:port" works,
like GDB on other NetBSD hosts.
2001-11-29 08:24:21 +00:00
thorpej 5715014189 Move solib.o from TDEPFILES to NATDEPFILES (solib.c requires target
headers, namely <link_elf.h>).

Fixes build of cross-gdb.
2001-11-29 08:23:26 +00:00
thorpej 3de3b8c207 - Split some target-dependent stuff for i386-netbsd out of i386nbsd-nat.c
and place it in i386nbsd-tdep.c (new file).
- Move solib.o from TDEPFILES to NATDEPFILES (solib.c requires target
  headers, namely <link_elf.h>).

Fixes build of cross-gdb pointed at i386--netbsd target.
2001-11-29 08:21:48 +00:00
tv 8eb663859b Make the .cc->NULL transform do nothing (so that "exception.cc" doesn't
get compiled into "exception" during "make includes").
2001-11-28 14:29:13 +00:00
tv d5533f8e6c PIC me! PIC me! (libgcc_pic.a)
...And while we're at it, add a profiled libgcc too.

Use the "generate .c files and let <bsd.lib.mk> sort it out" method
for compiling these libraries.  Only one real divergence (-fexceptions)
existed, but exceptions are turned on for C++ code by default in gcc
2.95.3, so this option was redundant anyway.
2001-11-28 04:39:55 +00:00
jmc 0aba719980 A few things to make r/o source trees work that might have timestamps on the
dist .y and .c files reversed.

1. Move the .y.c and other assorted implicit rule overrides out of Makefile.inc
   and into local Makefile's. The system Makefile (bsd.sys.mk) sets up .l.c and
   .y.c rules so unless these come after all inclusions they just get ignored.

2. Add @true as the command for any of the rule overrides. Otherwise make
   still bails complaining about not knowing how to build the requisite .c or
   .h file.

This obviously wasn't tested before as it couldn't have worked as-is.
2001-11-26 18:19:47 +00:00
thorpej 84392553e1 Remove special-case for ARM. 2001-11-26 00:02:40 +00:00
thorpej 87bbb48244 Put solib.o back in NATDEPFILES; gdb really drives me crazy sometimes. 2001-11-23 22:08:20 +00:00
wiz 1fd7eeefcd "than" instead of "then". 2001-11-21 19:14:19 +00:00
itojun 68c998d0d9 sync with 20010228-pl08 2001-11-20 03:58:40 +00:00
itojun 4f1d006b34 postfix-20010228-pl08 2001-11-20 03:52:29 +00:00
itojun 273a0d13f3 cleanup leftover of IPv6 patch 2001-11-20 03:50:49 +00:00
thorpej 21abbf17cd Add _initialize_armnbsd_nat() (didn't bother re-running the script;
this was a pretty simple manual change).
2001-11-20 02:59:46 +00:00
thorpej 06cf8784f0 Add _initialize_armnbsd_nat(), which registers our core file
handlers.  Whee, can fetch registers from core files now.
2001-11-20 02:58:31 +00:00
thorpej 4a4183056d Back out part of previous; needs more thought as to what to do
wrt. 26 vs 32 bit for kcore.
2001-11-20 02:41:14 +00:00
thorpej 5bf7d42e9c Move solib.o to TDEPFILES. Add kcore-nbsd.o to NATDEPFILES, -lkvm
to NAT_CLIBS.
2001-11-19 22:17:42 +00:00
perry 2d02e3afad UNPRIVILEGED->UNPRIVED 2001-11-19 05:05:06 +00:00
simonb 23be609b8c New toolchain files for mipsel.
From Rafal's commit for mipseb (which applies here too):
 WARNING: Binutils 2.11.2 (maybe earlier) changed the MIPS ABI, so any
 shared libs built by this toolchain WILL NOT WORK without either a whack
 to BFD to fix that or a patch to ld_elf.so to work around it.  I need to
 chase the binutils folks on this issue still.
2001-11-17 04:41:44 +00:00
tv f8e299ca7c Merge alpha support from src/gnu/dist. Doesn't necessarily build or work
yet, but enough to get "configure" working at this stage.
2001-11-16 15:58:47 +00:00
tv 811d7372d5 Add a gdb_host=nbsd line for alpha hosts. 2001-11-16 15:55:39 +00:00
bjh21 868c7b3592 sim works for ARM targets again now (since sim/arm/Makefile.in 1.2). 2001-11-16 14:42:19 +00:00
msaitoh d7367c00ef apply gcc original rev. 1.198 (as rev. 1.116)
> combine.c (simplify_comparison): Fix typo.

GTU, LTU, GEU, "GEU" -> GTU, LTU, GEU, "LEU"
2001-11-16 07:25:18 +00:00
skrll 9b3e60238e Pull up code from binutils 2.11.3 to fix a problem when linking against
libraries that have their dependencies recorded via NEEDED/RPATH so
that the location of the dependent libraries doesn't have to be supplied.

This closes bin/14583 by myself.

OK'd by Todd Vierling <tv@netbsd.org>
2001-11-15 20:06:27 +00:00
christos d751d184e1 Apply fix from Wietse:
The Postfix SMTP server maintains a record of SMTP conversations
for debugging purposes. Depending on local configuration details
this record is mailed to the postmaster whenever an SMTP session
terminates with errors.

During code maintenance, a stupid error was introduced into the
code due to which the SMTP session log could grow to an unreasonable
size. This stupid error made Postfix vulnerable to a memory
exhaustion attack.
2001-11-15 18:18:51 +00:00
bjh21 a25491ad73 Don't use $< in non-implicit rules. Instead, name the source explicitly.
This should help with PR 14588, and has been submitted upstream.
2001-11-15 15:21:53 +00:00
tv 9f77222197 Move noconfigdirs=gdb for alpha from host to target block.
Set noconfigdirs=sim for ARM NetBSD targets; the ARM sim isn't building.
2001-11-15 01:00:12 +00:00
tv b24bb409e3 Put solib support in native files, as gdb build will bomb on cross otherwise.
Put longjmp target function in the native .h, since it only works natively.
2001-11-15 00:58:29 +00:00
tv 4402226ec5 Allow $M4 to contain command line options. 2001-11-14 23:48:33 +00:00
tv bf1762d391 Remove hooks to doc subdir. 2001-11-14 20:00:40 +00:00