Commit Graph

174 Commits

Author SHA1 Message Date
Ruslan Ermilov
83c7ade90a NOSHARED -> NO_SHARED 2004-12-21 09:59:45 +00:00
David E. O'Brien
e223c68bfc Updated Bmake framework for Binutils 2.15. 2004-06-16 07:09:44 +00:00
David E. O'Brien
9232e635e0 Sperate out the MD parts of kvm-fbsd to get rid of the #ifdef maze.
Also quiet some warnings by tweaking the included headers.
2004-06-11 16:09:38 +00:00
David E. O'Brien
c337dbb2f2 Use pcbp->pcb_ufp for UltraSparc vs. ->pcb_fp. 2004-05-10 17:45:51 +00:00
David E. O'Brien
77047bb3e7 Avoid the whole -I${DESTDIR}/usr/include/gnu issue by including
<gnu/regex.h> vs. just <regex.h>.
2004-03-17 07:40:42 +00:00
Andrey A. Chernov
7e433f006b Back out attempt to bypass contrib's getopt.h on the way,
it makes cross-build fail.
Prefer invisible incorrect -current build to visible failure.
2004-03-05 16:12:31 +00:00
Andrey A. Chernov
a11a407515 Move -I${DESTDIR}/usr/include/gnu up, before
-I${DESTDIR}/usr/include to pick correct regex.h
2004-03-05 01:47:03 +00:00
Johan Karlsson
7ff8c436d3 style.Makefile(5):
Use WARNS?= instead of WARNS=

For this to work properly for all part is the subdirectories
the WARNS assignments in Makefile.inc0 are moved to the correspondning
Makefile.inc.

Approved by:	obrien (binutils maintainer)
Tested by:	make universe
2004-02-24 19:23:33 +00:00
Andrey A. Chernov
49b4df9afb Oops, use -I${DESTDIR}/usr/include/gnu instead of ... /../../include/gnu 2004-02-17 05:38:45 +00:00
Andrey A. Chernov
d43efc232b Remove old explicit -I${DESTDIR}/usr/include/readline
it is no longer needed
2004-02-17 00:06:33 +00:00
Andrey A. Chernov
850f4391cd Switch back to regex.h 2004-02-16 23:46:39 +00:00
David E. O'Brien
b7300254ae Discontinuation of an action that now fits on one. 2004-01-27 05:01:08 +00:00
David E. O'Brien
bd064b9335 Fix problem where kgdb misses trap frames.
Reported by:	iedowse
2004-01-26 09:18:47 +00:00
David E. O'Brien
014256a1e7 Use proper name. 2004-01-26 09:17:26 +00:00
David E. O'Brien
a7376656a5 style.Makefile(5) 2004-01-26 06:10:26 +00:00
David E. O'Brien
74483bd440 Follow existing GDB style for frame_info vars. 2004-01-26 06:07:33 +00:00
David E. O'Brien
1099ecff4c Remove trailing white space. 2004-01-26 06:05:04 +00:00
David E. O'Brien
febc611cfa FBSDID style nit. 2003-11-12 08:33:18 +00:00
Hidetoshi Shimokawa
3c0173a666 Implement gdb_solib_create_inferior_hook().
This function is used for autoloading kld module symbols for remote kgdb.
We still need a patch(*) for src/contrib/gdb/gdb/solib-svr4.c to enable
this function.

(*) http://people.freebsd.org/~simokawa/gdb/patch-solib-svr4.c
2003-10-29 14:40:59 +00:00
David E. O'Brien
5abd21e1e6 Enable '--interpreter=mi' support.
Submitted by:	Rui Lopes <rui@ruilopes.com>
2003-09-07 20:38:23 +00:00
David E. O'Brien
f230755006 s/x86-64/amd64/ 2003-09-07 20:21:14 +00:00
David E. O'Brien
c234256ec5 style.Makefile(5) 2003-09-07 20:19:32 +00:00
Ian Dowse
ea0d04f36e Attempt to automatically read in kernel module symbols when a live
or dead kernel core is loaded into gdb. This extends gdb's existing
shared library support, so the "info sharedlibrary", "sharedlibrary"
and "nosharedlibrary" commands can be used to view and change the
list of loaded symbol files.

The current implementation is more than a kludge however, and it
will not always manage to find the .ko.debug file corresponding to
the loaded module. In particular, for modules whose build directory
cannot be easily guessed from the module name such as all the
netgraph modules, the debug version of the .ko will not be found
automatically.

The logic for finding the module file first attempts to guess at
the module build directory by parsing the version[] string. Then
using that directory ($DIR), it tries the following paths in turn:

	./<module>.ko.debug		./<module>.ko
	$DIR/<module>.ko.debug		$DIR/<module>.ko
	/boot/kernel/<module>.ko.debug	/boot/kernel/<module>.ko

Approved by:	obrien, mp
2003-03-21 00:30:53 +00:00
David E. O'Brien
ceb0f624bc Reformat. 2003-01-04 17:51:59 +00:00
David E. O'Brien
bff2d4022e Add the ability to debug C++ programs using v2 and v3 of the G++ ABI.
Submitted by:	Peter Edwards <pmedwards@eircom.net>
2003-01-04 17:51:48 +00:00
Max Khon
6fd1035190 GC 'char sigmap[]' (it is no longer used)
Approved by:	obrien
MFC after:	3 days
2003-01-04 17:35:54 +00:00
Mark Peek
e059894828 Add support for sparc64 kernel debugging.
Submitted by:	tmm
2002-10-21 21:36:36 +00:00
David E. O'Brien
597e16e012 We HAVE_STPCPY now. 2002-10-20 07:50:20 +00:00
Mark Peek
ef78d1474b Remove dependency on version.in for version information.
Submitted by:	obrien
2002-10-12 21:23:53 +00:00
Mark Peek
884a2981a4 Fix function parameter lists to be correct and eliminate compiler warnings. 2002-10-12 18:08:44 +00:00
David E. O'Brien
c5c7175bd5 Use the new FreeBSD vectors from Binutils 2.13.1. 2002-10-11 19:39:18 +00:00
David E. O'Brien
9ceffc28f3 Fix GNU coding violations. 2002-09-18 16:20:49 +00:00
David E. O'Brien
71791a1d60 Stop using 3 distinct and far varied coding styles in a single file.
Pretend to actually adhere to the GNU coding standards.
2002-09-18 16:14:36 +00:00
Peter Wemm
0f258b75d3 Recognize frames for lcall_syscall and int0x80_syscall.
Reminded by:	bde
2002-07-28 18:46:49 +00:00
David E. O'Brien
e2a86a90af Make our i386 hacks in a less vendor file disturbing manner. 2002-07-10 07:48:45 +00:00
David E. O'Brien
2b1f5a4271 Stop trying to reimplement libkvm on i386. Instead use it directly and
consistently on all platforms.

Submitted by:	gallatin
2002-07-10 06:58:25 +00:00
David E. O'Brien
bad0e574ca Target specific FreeBSD kgdb hacks. 2002-07-10 06:40:03 +00:00
David E. O'Brien
68464ed689 Dike out bits specific to i386. This pretty much means no kgdb for
non-i386 platforms.

I would however like to see a shared file here.  If a function or two cannot
be shared we should create ${TARGET_ARCH}/kvm-fbsd-${TARGET_ARCH}.c.
2002-06-30 04:47:43 +00:00
David E. O'Brien
a9b6be3e9e Bmake bits for GDB 5.2. 2002-06-30 03:24:05 +00:00
David E. O'Brien
c4819db060 I don't see any reason to conditionalize this. 2002-06-29 17:55:17 +00:00
David E. O'Brien
cc5dcb202c Bmake bits for GDB 5.2. 2002-06-29 16:52:15 +00:00
David E. O'Brien
b73f3861c3 Best guess at configurations for our other arches. (totally untested) 2002-06-29 03:18:28 +00:00
David E. O'Brien
2587e03b72 Allow to compile and at least startup on sparc64. 2002-06-29 03:16:40 +00:00
David E. O'Brien
7b726fea14 Bmake bits for GDB 5.2. 2002-06-29 01:16:01 +00:00
David E. O'Brien
b1ae3e66e6 NO! We DON'T wany any libintl action here. 2002-06-28 01:33:53 +00:00
David E. O'Brien
99c8489d5b Things Gdb 5.2 wants to know about us. 2002-06-28 00:34:05 +00:00
David E. O'Brien
22cb25a945 When linking staticaly libtermcap is a postrequisite of libreadline.
Otherwise `tgoto' (only used by libreadline) isn't resolved.

Submitted by:	bde
2002-06-22 17:07:45 +00:00
David E. O'Brien
457170e99c We need to link with libiberty.a before libreadline.so. Both supply
xmalloc() and xrealloc() and the mixed usage of xmalloc in some .c's from
libiberty.a and other .c's from libreadline.so produces an unusable binary
on the Alpha.

While I am here, preventatively move other libs in the link order.

Submitted by:	gallatin
2002-06-21 19:05:20 +00:00
Bruce Evans
6c37e4212e phsyical -> physical
Submitted by:	Andre Guibert de Bruet <andy@siliconlandmark.com>
2002-05-27 13:08:08 +00:00
David E. O'Brien
ecdd3d1cab This is only WARNS=0 clean now. 2002-05-19 18:25:41 +00:00