summaryrefslogtreecommitdiffstats
path: root/gnu/usr.bin/gdb
Commit message (Collapse)AuthorAgeFilesLines
* Reconnect gdb info file to the build.sheldonh2002-07-011-2/+2
| | | | Submitted by: Szilveszter Adam <sziszi@bsd.hu>
* Upgrade for readline 4.2ache2001-04-111-45/+29
|
* A bandaid to try and make this buildable. This should probably bepeter2000-03-201-4/+27
| | | | | rechecked by somebody who knows what is meant to happen here. The new libreadline rluser.texinfo file duplicates the '@defcodeindex bt' entry.
* Remove old bmake framework for gdb. It has moved to live next to binutils.dfr1999-05-0223-5425/+0
|
* Make gdb work with kernel after the SMP vmspace sharing changes.luoqi1999-04-282-15/+74
|
* echo -> ${ECHO}.bde1999-04-031-2/+2
|
* Fixed breakage of gdbreplay's and gdbserver's BINDIR in previous commit.bde1998-10-152-8/+4
| | | | | | | They may belong in /usr/libexec/{aout,elf}, but objformat doesn't support that. Fixed bogus `?=' assignments for BINDIR.
* Install gdb in /usr/lib/aout or /usr/lib/elf depending on format.peter1998-10-151-1/+7
|
* Fix GDB so that it can handle ELF core dumps.jdp1998-09-144-7/+48
|
* Missed some BINFORMATs. Fingers! Can't live with 'em. Can't live without 'em.jb1998-08-301-4/+4
|
* BINFORMAT -> OBJFORMAT ready for E-day. I tossed a coin to decide thisjb1998-08-301-2/+2
| | | | one. We'll probably need to revisit gdb after E-day.
* Fixed printf format errors.bde1998-06-301-2/+2
|
* Don't attempt to read process context from the kernel when (thebde1998-05-121-2/+2
| | | | | | kernel's) curproc is null. This fixes endless recursion in xfer_umem() for attempts to read from user addresses, in particular for attempts to read %fs and %gs from the pcb for `info reg'.
* Simplified using new yacc rules. This is cosmetic - the old rulesbde1998-05-041-5/+4
| | | | | | worked because .ORDER prevented problems from concurrent generation of multiple parsers (and their headers), and there were no missing dependencies because the generated headers were not actually used.
* Inherit BINDIR properly.bde1998-05-012-4/+2
|
* Fixed apparent bitrot (`=' changed to `?=') in the definition of BINDIRbde1998-05-011-2/+1
| | | | | in the previous commit. Just don't define it here at all. This works now that the default is inherited properly.
* Removed self-inclusion-prevention ifdef. It is unnecessary now thatbde1998-05-011-12/+5
| | | | | | | | | | | | bsd.man.mk doesn't include ${.CURDIR}/../Makefile.inc. Removed GDBDIR-redefinition-prevention ifdef. It hasn't done anothing for a long time, if ever. The directory is defined to the same value in each subdir and had the same value because all subdirs are at the same level. Keep defining it in the subdirs since that is more flexible and no more verbose. Prepare to inherit BINDIR by including ../Makefile.inc.
* Oops, This should have been committed with the Makefile change thatbde1998-05-013-433/+24
| | | | | | | | | | requires the new file. Fixed stale near-copy of contrib/libreadline/doc/hsuser.texinfo. Patch it at build ntime, and only keep the patch for it here. Don't keep a copy of contrib/gdb/gdb/doc/all-cfg.texi here. Link to it at build time.
* Fixed dependencies.bde1998-05-011-3/+17
| | | | | | | | Fixed stale near-copy of contrib/libreadline/doc/hsuser.texinfo. Patch it at build ntime, and only keep the patch for it here. Don't keep a copy of contrib/gdb/gdb/doc/all-cfg.texi here. Link to it at build time.
* Add support for ELF shared libraries. Also use bfd from the binutils in thatdfr1998-04-302-3/+37
| | | | case rather than gdb's own copy.
* Removed vestiges of use of beforedepend target.bde1998-03-191-3/+3
|
* Use `foo/bar.a' instead of `-Lfoo -lbar' for linking to static internalbde1998-03-071-22/+9
| | | | | libraries, so that `ld -f' in can create correct dependencies for yet-to-be-built libraries.
* Fixed printing of %fs and %gs for live kernels.bde1998-02-131-6/+8
| | | | | Only print the current pcb on startup. Printing it every time a utility routine was called messed up the register dump for live kernels.
* Fixed accesses to addresses between VM_MAXUSER_ADDRESS (normallybde1998-01-191-12/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | 0xefbfe000) and kernel_start (normally 0xf0100000). Things are unnecessarily (?) difficult because procfs is used to access user addresses in the live-kernel case although we must have access to /dev/mem to work at all, and whatever works for the dead-kernel case should work in all cases (modulo volatility of live kernel variables). We used the wrong range [0, kernel_start) for user addresses. Procfs should only work up to VM_MAXUSER_ADDRESS, but it bogusly works for reads up to the address 2 pages higher (the user area, including the kernel stack, is mapped to where the user area used to be (WTUAUTB)). Procfs can not work at all for addresses between WTUAUTB and kernel_start. Now we use procfs only to access addresses up to VM_MAXUSER_ADDRESS. Higher addresses are translated normally using kvtophys(), so the user ptd is used for addresses below the real kernel start (0xf0000000; see INKERNEL()) and nothing is found WTUAUTB. Strange accesses that cross the user-kernel boundary are now handled, but such ranges are currently always errors because they necessarily overlap the hole WTUAUTB. Short reads are still not handled.
* Removed `kstack' and associated mistranslations in kvtophys().bde1998-01-191-18/+1
| | | | | | | | | | | | | | | Correct translations would have been null. However, kstack was the top of the kernel stack instead of the base of the kernel stack like it was when the kernel exported it, so the area above the kernel stack was mistranslated and the kernel stack was not translated. This bug was depended on to compensate for the wrong value of kstack - to read the pcb, instead of just using the address of the pcb, we used the mistranslated address of kstack, which happened to be the same (curpcb = kstack - 0x2000). This area is simpler than it used to be now that the kernel stack address is per-process. The code still seems to be more complicated than necessary - the `found_pcb == 0' case seems to be unused.
* Fixed endless loop for `p/x *(int *)0xf0000000'. kvm_uread() inbde1998-01-181-7/+10
| | | | | | | | | | gdb was cloned from the buggy version of kvm_uread() in libkvm and had the same bugs. It looped endlessly on EOF and checked errno without setting it in the lseek() error check. The first bug caused gdb to loop endlessly for reads from addresses between the end of the user area and the start of the kernel text. kvm_uread() should not be used for addresses beyond the end of the user area, but is due to bugs elsewhere.
* Don't override FRAME_CHAIN(). If the current frame is valid, thenbde1998-01-182-53/+0
| | | | | | | | | | | | | | | | | | the previous frame is in the usual place even for traps, interrupts and syscalls in the kernel, because the assembly language stubs don't change the frame pointer. The previous frame is just not for the calling function. We may as well depend on this as on magic to determine the trap frame address. The magic is in FRAME_SAVED_PC() which elides the correct number of stubs (1) to go back to a pc that matches the previous frame. Removing fbsd_kern_frame_chain() fixes bugs in it. Xsyscall was misspelled as _Xsyscall (gdb removes one leading underscore), so the tf_syscall frame type was never found. This was harmless because tf_normal works in all cases in fbsd_kern_frame_chain() and Xsyscall is spelled correctly in fbsd_kern_frame_saved_pc() where it matters. There were style bugs on almost every line, starting with a primary indent of 7.
* Fixed sloppy definitions of SIGTRAMP_START and SIGTRAMP_END. The oldbde1998-01-181-4/+7
| | | | range was a little too large.
* Pass the system name to dmesg. Rev.1.7 only works when the symbols inbde1998-01-171-2/+9
| | | | /kernel aren't too different form those in the kernel being debugged.
* Exec dmesg and awk to print everything in the message bufferbde1997-12-191-1/+10
| | | | | | | | following "panic:" or "Fatal trap". `panicstr' is still printed, although it is redundant if there is a valid message buffer and incomplete if it contains `%'s. I think the awk command belongs here and not in a script since a standard format with complete messages is good for bug reports.
* Implemented "info float" for core files.bde1997-11-231-36/+65
| | | | | | | | | | | Implemented reading of %fs and %gs from core files. Print weird floating point values better. We have to convert long doubles to doubles here because of limitations and bugs in printf() and floatformat_to_double() (long doubles aren't really supported and naive converion to double causes exceptions). Conversion loses information about weird formats (everything becomes a quiet NaN), and printf() doesn't know about different types of NaNs anyway.
* #include <machine/tss.h> explicitlypeter1997-10-101-0/+1
|
* Changes to support full make parallelism (-j<n>) in the worldjkh1997-10-051-2/+3
| | | | | | target. Reviewed by: <many different folks> Submitted by: Nickolay N. Dudorov" <nnd@nnd.itfs.nsk.su>
* Support 4MB pages.bde1997-07-271-8/+23
|
* Don't define HOST_DATA_START_ADDR, since gdb works without it thebde1997-07-131-2/+3
| | | | | previous definition doesn't work on BSD4.4Lite[2] derived systems without the changes in rev.1.27 of kern_proc.c.
* Removed -I path to gdb's readline. This didn't do much in -currentbde1997-06-301-1/+0
| | | | | | because the -I path to config/libreadline had precedence, but in 2.2 it help hide the bug that the -I path to the non-contrib libreadline was garbage.
* gdb.info still needs a near-copy of hsuser.texinfo to avoid thebde1997-06-301-0/+313
| | | | | | reference to the programming manual. Use this near-copy of the version of hsuser.texinfo in contrib/libreadline instead of the stale near-copy in contrib/gdb.
* Don't depend upon the user structure having been aligned on a 8 KB boundary.tegge1997-06-271-1/+12
| | | | Reviewed by: Peter Wemm <peter@spinner.dialix.com.au>
* Zap some unused debugging printfs that I accidently left in.peter1997-06-271-5/+0
|
* Support reading and writing of %fs and %gs (except from core files).bde1997-06-073-5/+27
|
* delete kcorelow.c, it didn't produce any code and broke init.cgj1997-05-022-365/+2
| | | | | | | because 2 references to _initialize_kcorelow (the other one from kvm-fbsd.c) resulted. This prevented gdb from working correectly. delete kcorelow.c from XSRCS in the Makefile.
* Clean up merge from 2.2 (without spamming peter's changes)pst1997-05-011-7/+4
|
* Patch up init.c generation so that it works in -current.. It was tryingpeter1997-05-011-11/+10
| | | | to use files that do not exist here. Also, fix(?) ${.OBJDIR}/init.c hack.
* Fix include of <sys/dir.h> to <dirent.h> - it hits a #warningpeter1997-05-011-1/+1
|
* Fix up a spurious '@' I added at the last secondpst1997-05-011-4/+4
|
* Merge from 2.2: auto-gen init.c and add ser-tcp.cpst1997-05-012-64/+53
|
* Fetch the registers from struct members in the pcb instead ofbde1997-04-301-28/+19
| | | | | | | | | | | | | | | punning the pcb to an array of ints and using magic indices to access values in it. This should prevent silent breakage from changes in the pcb. Supply 0 for unavailable registers instead of punning the tss to an array of ints and using magic indices to access garbage values in it. (The registers are in the pcb; there is nothing interesting in the tss. This should change someday. At least for dumps, all the registers should be saved, and common_tss is a good place to put them.) Removed ancient wrong (disabled) method for reading eip.
* Backed out previous change. It just gave a more verbose Makefile bybde1997-04-301-3/+1
| | | | repeating the default for MAN1.
* change kvm-fbsd.c so that kernel debugging works again.gj1997-04-273-9/+407
| | | | | | document the -k and -wcore options in the manpage. change Makefile to use a local copy of the manpage.
* Activate gdbserver and gdbreplaypst1997-04-264-7/+7
|
OpenPOWER on IntegriCloud