summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/binutils/gdb
Commit message (Collapse)AuthorAgeFilesLines
* MFC: Sync gdb thread support to match recent changes to the threadsDaniel Eischen2000-11-101-26/+39
| | | | | | | | | library. Approved by: jkh Notes: svn path=/stable/4/; revision=68540
* MFC (freebsd-nat.c 1.23, nm.h 1.10): hardware watchpoint support for GDBJoerg Wunsch2000-08-222-0/+256
| | | | | | | | | on the i386 architecture. Since the original implementation has been done on a FreeBSD 4.1 machine, and both files are identical to -current, i feel save to MFC it rather quickly. Notes: svn path=/stable/4/; revision=64935
* MFC: rev 1.44-45 (fix LDADD)David E. O'Brien2000-07-061-21/+25
| | | | | | | | rev 1.46 (debugging support when using libc_r's pthreads) rev 1.47-48 (upgrade to Binutils 2.10.0) Notes: svn path=/stable/4/; revision=62696
* MFC: rev 1.22 (debugging support when using libc_r's pthreads)David E. O'Brien2000-07-061-14/+4
| | | | Notes: svn path=/stable/4/; revision=62695
* MFC: rev 1.3 (debugging support when using libc_r's pthreads)David E. O'Brien2000-07-061-0/+8
| | | | Notes: svn path=/stable/4/; revision=62694
* MFC: 1.13 (debugging support when using libc_r's pthreads)David E. O'Brien2000-07-061-0/+8
| | | | Notes: svn path=/stable/4/; revision=62691
* This commit was manufactured by cvs2svn to create branch 'RELENG_4'.cvs2svn2000-05-281-0/+1126
| | | | Notes: svn path=/stable/4/; revision=60994
* MFC: rev 1.47 (callback.c)David E. O'Brien2000-05-171-1/+1
| | | | Notes: svn path=/stable/4/; revision=60666
* This commit was manufactured by cvs2svn to create branch 'RELENG_4'.cvs2svn2000-03-131-974/+0
| | | | Notes: svn path=/stable/4/; revision=57955
* $Id$ -> $FreeBSD$Peter Wemm1999-08-274-4/+4
| | | | Notes: svn path=/head/; revision=50472
* Live & postmortem kernel debugging support for the alpha platform.Andrew Gallatin1999-06-215-2/+492
| | | | | | | | | This was modeled after NetBSD's kernel debugging support. Reviewed by: Doug Rabson <dfr@nlsystems.com> Notes: svn path=/head/; revision=48075
* Fix placement of signal trampoline.Dmitrij Tejblum1999-06-131-2/+2
| | | | Notes: svn path=/head/; revision=47893
* Fixed some regressions in rev.1.40:Bruce Evans1999-05-111-7/+4
| | | | | | | | | - rev.1.39 was clobbered. - PROG was defined twice, once as nm. - style bugs. Notes: svn path=/head/; revision=46996
* Implement corefiles for FreeBSD/alpha. This requires a separate change toDoug Rabson1999-05-071-81/+23
| | | | | | | the kernel which is awaiting review. Notes: svn path=/head/; revision=46654
* Add core-regset.c to the Makefile to allow debugging elf corefiles.Doug Rabson1999-05-071-2/+2
| | | | Notes: svn path=/head/; revision=46652
* * Add bmake framework for using gdb alongside binutils. The old bmakeDoug Rabson1999-05-0215-181/+704
| | | | | | | | framework was repository copied from gnu/usr.bin/gdb. * Add alpha support. Notes: svn path=/head/; revision=46290
* Make gdb work with kernel after the SMP vmspace sharing changes.Luoqi Chen1999-04-283-27/+147
| | | | Notes: svn path=/head/; revision=46133
* echo -> ${ECHO}.Bruce Evans1999-04-031-2/+2
| | | | Notes: svn path=/head/; revision=45258
* Fixed breakage of gdbreplay's and gdbserver's BINDIR in previous commit.Bruce Evans1998-10-151-1/+3
| | | | | | | | | | They may belong in /usr/libexec/{aout,elf}, but objformat doesn't support that. Fixed bogus `?=' assignments for BINDIR. Notes: svn path=/head/; revision=40391
* Fix GDB so that it can handle ELF core dumps.John Polstra1998-09-143-6/+47
| | | | Notes: svn path=/head/; revision=39199
* Missed some BINFORMATs. Fingers! Can't live with 'em. Can't live without 'em.John Birrell1998-08-301-4/+4
| | | | Notes: svn path=/head/; revision=38634
* BINFORMAT -> OBJFORMAT ready for E-day. I tossed a coin to decide thisJohn Birrell1998-08-301-2/+2
| | | | | | | one. We'll probably need to revisit gdb after E-day. Notes: svn path=/head/; revision=38633
* Fixed printf format errors.Bruce Evans1998-06-302-4/+4
| | | | Notes: svn path=/head/; revision=37314
* Don't attempt to read process context from the kernel when (theBruce Evans1998-05-122-4/+4
| | | | | | | | | 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'. Notes: svn path=/head/; revision=35972
* Simplified using new yacc rules. This is cosmetic - the old rulesBruce Evans1998-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. Notes: svn path=/head/; revision=35697
* Fixed apparent bitrot (`=' changed to `?=') in the definition of BINDIRBruce Evans1998-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. Notes: svn path=/head/; revision=35587
* Add support for ELF shared libraries. Also use bfd from the binutils in thatDoug Rabson1998-04-302-3/+37
| | | | | | | case rather than gdb's own copy. Notes: svn path=/head/; revision=35535
* Removed vestiges of use of beforedepend target.Bruce Evans1998-03-191-3/+3
| | | | Notes: svn path=/head/; revision=34684
* Use `foo/bar.a' instead of `-Lfoo -lbar' for linking to static internalBruce Evans1998-03-071-22/+9
| | | | | | | | libraries, so that `ld -f' in can create correct dependencies for yet-to-be-built libraries. Notes: svn path=/head/; revision=34149
* Fixed printing of %fs and %gs for live kernels.Bruce Evans1998-02-132-12/+16
| | | | | | | | Only print the current pcb on startup. Printing it every time a utility routine was called messed up the register dump for live kernels. Notes: svn path=/head/; revision=33297
* Fixed accesses to addresses between VM_MAXUSER_ADDRESS (normallyBruce Evans1998-01-192-24/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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. Notes: svn path=/head/; revision=32620
* Removed `kstack' and associated mistranslations in kvtophys().Bruce Evans1998-01-192-36/+2
| | | | | | | | | | | | | | | | | | 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. Notes: svn path=/head/; revision=32619
* Fixed endless loop for `p/x *(int *)0xf0000000'. kvm_uread() inBruce Evans1998-01-182-14/+20
| | | | | | | | | | | | | 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. Notes: svn path=/head/; revision=32603
* Don't override FRAME_CHAIN(). If the current frame is valid, thenBruce Evans1998-01-183-91/+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. Notes: svn path=/head/; revision=32602
* Fixed sloppy definitions of SIGTRAMP_START and SIGTRAMP_END. The oldBruce Evans1998-01-181-4/+7
| | | | | | | range was a little too large. Notes: svn path=/head/; revision=32600
* Pass the system name to dmesg. Rev.1.7 only works when the symbols inBruce Evans1998-01-172-4/+18
| | | | | | | /kernel aren't too different form those in the kernel being debugged. Notes: svn path=/head/; revision=32597
* Exec dmesg and awk to print everything in the message bufferBruce Evans1997-12-192-2/+20
| | | | | | | | | | | 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. Notes: svn path=/head/; revision=31867
* Implemented "info float" for core files.Bruce Evans1997-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. Notes: svn path=/head/; revision=31363
* #include <machine/tss.h> explicitlyPeter Wemm1997-10-102-0/+2
| | | | Notes: svn path=/head/; revision=30276
* Changes to support full make parallelism (-j<n>) in the worldJordan K. Hubbard1997-10-051-2/+3
| | | | | | | | | target. Reviewed by: <many different folks> Submitted by: Nickolay N. Dudorov" <nnd@nnd.itfs.nsk.su> Notes: svn path=/head/; revision=30113
* Support 4MB pages.Bruce Evans1997-07-272-14/+44
| | | | Notes: svn path=/head/; revision=27718
* Don't depend upon the user structure having been aligned on a 8 KB boundary.Tor Egge1997-06-271-1/+12
| | | | | | | Reviewed by: Peter Wemm <peter@spinner.dialix.com.au> Notes: svn path=/head/; revision=26992
* Zap some unused debugging printfs that I accidently left in.Peter Wemm1997-06-271-5/+0
| | | | Notes: svn path=/head/; revision=26984
* Support reading and writing of %fs and %gs (except from core files).Bruce Evans1997-06-074-6/+30
| | | | Notes: svn path=/head/; revision=26495
* delete kcorelow.c, it didn't produce any code and broke init.cGary Jennejohn1997-05-021-2/+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. Notes: svn path=/head/; revision=25386
* Clean up merge from 2.2 (without spamming peter's changes)Paul Traina1997-05-011-7/+4
| | | | Notes: svn path=/head/; revision=25355
* Patch up init.c generation so that it works in -current.. It was tryingPeter Wemm1997-05-011-11/+10
| | | | | | | to use files that do not exist here. Also, fix(?) ${.OBJDIR}/init.c hack. Notes: svn path=/head/; revision=25350
* Fix up a spurious '@' I added at the last secondPaul Traina1997-05-011-4/+4
| | | | Notes: svn path=/head/; revision=25331
* Merge from 2.2: auto-gen init.c and add ser-tcp.cPaul Traina1997-05-011-5/+53
| | | | Notes: svn path=/head/; revision=25330
* Fetch the registers from struct members in the pcb instead ofBruce Evans1997-04-302-56/+38
| | | | | | | | | | | | | | | | | | 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. Notes: svn path=/head/; revision=25312