summaryrefslogtreecommitdiffstats
path: root/gnu/usr.bin/gdb/libgdb
Commit message (Collapse)AuthorAgeFilesLines
* Fold in frame-unwind patchemaste2013-06-172-35/+2
| | | | | After moving to svn there's no need to avoid pulling files off a vendor branch.
* Merging of projects/armv6, part 3gonzo2012-08-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | r238211: Support TARGET_ARCH=armv6 and TARGET_ARCH=armv6eb This adds a new TARGET_ARCH for building on ARM processors that support the ARMv6K multiprocessor extensions. In particular, these processors have better support for TLS and mutex operations. This mostly touches a lot of Makefiles to extend existing patterns for inferring CPUARCH from ARCH. It also configures: * GCC to default to arm1176jz-s * GCC to predefine __FreeBSD_ARCH_armv6__ * gas to default to ARM_ARCH_V6K * uname -p to return 'armv6' * make so that MACHINE_ARCH defaults to 'armv6' It also changes a number of headers to use the compiler __ARM_ARCH_XXX__ macros to configure processor-specific support routines. Submitted by: Tim Kientzle <kientzle@freebsd.org>
* Print key value, an index, otherwise we don't know which key is allocated.davidxu2012-05-211-1/+1
|
* Assume a big-endian default on MIPS and drop the "eb" suffix from MACHINE_ARCH.jmallett2012-03-291-1/+1
| | | | | | | | | | | | | | | This makes our naming scheme more closely match other systems and the expectations of much third-party software. MIPS builds which are little-endian should require and exhibit no changes. Big-endian TARGET_ARCHes must be changed: From: To: mipseb mips mipsn32eb mipsn32 mips64eb mips64 An entry has been added to UPDATING and some foot-shooting protection (complete with warnings which should become errors in the near future) to the top-level base system Makefile.
* Print the raw value of si_code, that is esp. useful for undecoded values.kib2011-03-261-3/+4
| | | | | Sponsored by: The FreeBSD Foundation MFC after: 1 week
* Merge binutils 2.17.50 to head. This brings a number of improvements todim2011-02-181-2/+6
|\ | | | | | | | | | | | | | | | | x86 CPU support, better support for powerpc64, some new directives, and many other things. Bump __FreeBSD_version, and add a note to UPDATING. Thanks to the many people that have helped to test this. Obtained from: projects/binutils-2.17
| * Sync: merge r215464 through r215708 from ^/head.dim2010-11-221-3/+44
| |\
| * | Sync: merge r215273 through r215318 from ^/head.dim2010-11-141-1/+1
| | |
| * | Sync: merge r214895 through r215140 from ^/head.dim2010-11-111-1/+9
| |\ \
| * | | Fix warnings in fbsd-threads.c.dim2010-11-011-2/+6
| | | |
* | | | Retire TARGET_ABI.imp2011-01-071-1/+1
| |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement MACHINE_ARCH=mips64e[lb] to build N64 images. This replaces MACHINE_ARCH=mipse[lb] TARGET_ABI=n64. MACHINE_ARCH=mipsn32e[lb] has been added, but currently requires WITHOUT_CDDL due to atomic issues in libzfs. I've not investigated this much, but implemented this to preserve as much of the TARGET_ABI functionality that I could. Since its presence doesn't affect the working cases, I've kept it in for now. Added mips64e[lb] to make universe, so more kernels build. And I think this (finally) closes the curtain on the tbemd tree.
* | | Add the ability for GDB to printout the thread name along with otherattilio2010-11-221-3/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | thread specific informations. In order to do that, and in order to avoid KBI breakage with existing infrastructure the following semantic is implemented: - For live programs, a new member to the PT_LWPINFO is added (pl_tdname) - For cores, a new ELF note is added (NT_THRMISC) that can be used for storing thread specific, miscellaneous, informations. Right now it is just popluated with a thread name. GDB, then, retrieves the correct informations from the corefile via the BFD interface, as it groks the ELF notes and create appropriate pseudo-sections. Sponsored by: Sandvine Incorporated Tested by: gianni Discussed with: dim, kan, kib MFC after: 2 weeks
* | | Add missing '/'.nyan2010-11-141-1/+1
| | |
* | | We need to add powerpc64->powerpc translations (I knew I hated copyingimp2010-11-141-1/+1
| |/ |/| | | | | | | | | | | | | this code in the first place). Also MACHINE_ARCH powerpc is 32-bit, not MACHINE_CPUARCH == powerpc. Submitted by: nathanw
* | Complete the integration of tbemd branch into head.imp2010-11-101-1/+9
|/ | | | | | | | | | | | | | | | TARGET_BIG_ENDIAN is now completely dead, except where it was originally supposed to be used (internally in the toolchain building). TARGET_ARCH has changed in three cases: (1) Little endian mips has changed to mipsel. (2) Big endian mips has changed to mipseb. (3) Big endian arm has changed to armeb. Some additional changes are needed to make 'make universe' work on arm and mips after this change, so those are commented out for now. UPDATING information will be forthcoming. Any remaining rough edges will be hammered out in -current.
* For "thread signal" command, print some information from siginfo whenkib2010-07-041-0/+37
| | | | | | | available. Suggested by: davidxu MFC after: 2 weeks
* Widen psaddr_t from uintptr_t to uint64_t. This results in anmarcel2008-09-141-6/+7
| | | | | | | | | | | | | | | ABI change on ILP32 platforms and relating to events. However it's harmless on little-endian ILP32 platforms in the sense that it doesn't cause breakages. Old ILP32 thread libraries write a 32-bit th_p and new thread libraries write a 64-bit th_p. But due to the fact that we have an unused 32-bit data field right after th_p and that field is always initialized to zero, little-endian ILP32 machines effectively have a valid 64-bit th_p by accident. Likewise for new thread libraries and old libthread_db: little endian ILP32 is unaffected. At this time we don't support big-endian threaded applications in GDB, so the breakage for the ILP32 case goes unnoticed.
* - Add a global variable 'fbsdcoreops_suppress_target' that can be set tojhb2008-04-291-2/+11
| | | | | | | | | | | | | | force the FreeBSD multithreaded core target to not register any target for handling core dumps. This is analogous to the 'coreops_suppress_target' variable that GDB provides for suppressing the default core dump target. KGDB will use this new variable so it can provide its own core dump target that uses libkvm to work with vmcore files. - Adjust the long name and documentation of the FreeBSD multithreaded core dump target so it better matches what GDB's core dump target uses. MFC after: 1 week Reviewed by: davidxu, marcel
* Avoid writing uninitialized stack data into a thread's MMX/SSE state byemaste2007-02-201-7/+12
| | | | | | | | | | | | | first getting the current state with td_thr_getxmmregs_p. Without this, debugging a threaded app that uses libthr resulted in kernel panics or spurious SIGFPEs for me. (As of revision 1.6, sys/i386/i386/ptrace_machdep.c masks off the reserved bits in the mxcsr register, which prevents the kernel panics.) Architectures without PT_GETXMMREGS are not affected. MFC after: 1 week
* Clean the product of patch(1).ru2006-04-101-0/+2
|
* Introduce a new proc service routine ps_linfo() to get LWP info.davidxu2006-02-071-0/+14
|
* 1. Eliminate compile warnings.davidxu2006-02-061-8/+60
| | | | | 2. Add command 'thread signal' to print out current thread's signal mask and pending signals.
* Add a kluge to allow kgdb(1) to inject its own frame sniffer in themarcel2005-09-102-2/+33
| | | | | | | | | | | | | | | | | list of frame sniffers so that trapframes can be detected. The kluge is needed because this version of gdb only supports appending a sniffer to the list of sniffers and the moment kgdb gets a chance to add its own frame sniffer, the target's default frame sniffer is already in the list. Since the default frame sniffer claims any frame thrown at it, kgdb's frame sniffer never gets to smell (a process much akin to tasting, but with lesser chance of hurling :-) This commit adds dummy frame sniffers that never claim a frame and as such don't fix anything yet. However, we now have frame sniffers and they are being called, so it's just a matter of adding meat to the bones and we'll be able to properly unwind across trapframes. MFC after: 1 week
* Add support for XMM registers in GDB for x86 processors that supportdfr2005-05-311-11/+111
| | | | | | | SSE (or its successors). Reviewed by: marcel, davidxu MFC After: 2 weeks
* Don't try to enable event reporting for core file, it is not writable.davidxu2005-05-061-0/+2
|
* Report events from thread library.davidxu2005-04-121-16/+210
|
* Print thread address.davidxu2005-04-051-4/+4
| | | | PR: threads/76821
* Use the system gnuregex library vs. building GNU regex bits into libibertyobrien2005-02-141-0/+5
| | | | | | | and using them. Reviewed by: marcel,imp Desired by: ache
* When grabbing registers for an lwp, fake the inferior's pid using thepeadar2005-01-111-2/+6
| | | | | | | | | | | | | lwp ID before invoking the underlying target operation. For corefiles, we rely on gdb internals to do this, and it uses the pid as an index, rather than the lwpid, so previously, backtraces for multithreaded core files wasn't working correctly. For processes, we currently use ptrace directly, so fixup that code to also use the pid directly. Discussed With: marcel, davidxu MFC After: 4 days
* Source changes to allow building a cross-debugger. Move solib.c andmarcel2004-12-051-3/+2
| | | | | | | | solib-svr4.c to the MD makefiles because they are native files for alpha and sparc64, but target files for amd64, i386 and ia64. Note that kgdb(1) does not yet build as a cross-debugger due to libkvm.
* Fix previous commit. GDB_CROSS_DEBUGGER needs to be defined for allmarcel2004-12-051-9/+1
| | | | subdirectories.
* Makefile (only) changes to allow building a cross debugger.marcel2004-11-301-6/+18
|
* Always set current thread when activating thread debugger,davidxu2004-11-151-1/+1
| | | | | the current thread may already be added by fbsd_find_new_threads, this can result that current thread is not set correctly.
* Prepare for a subsequent import: If the first letter of the filenamemarcel2004-11-091-35/+43
| | | | | | | | | | | changes, start on a new line. Insertion of a filename will keep the diff limited to the block of filenames that have the same first letter instead of creating a huge diff. While here, move remote.c after the remote-*.c files and move tui.c after the tui-*.c files. This matches the order of ls(1) and makes it easier to compare object files created by a stock gdb(1) build with the list of files we have here. This is a non-functional change only.
* For variables that are only checked with defined(), don't provideru2004-10-241-1/+1
| | | | any fake value.
* Only compile fbsd-thread.c on amd64 and i386, other architecturesdavidxu2004-08-221-1/+5
| | | | have not been tested yet.
* Fix comments, most are style fix.davidxu2004-08-221-21/+11
|
* Fix some text messages.davidxu2004-08-221-2/+2
|
* Add code to support statically linked binary and .core file of threadeddavidxu2004-08-221-177/+367
| | | | program.
* 1. Add some code check if thread suspending or resuming is failed.davidxu2004-08-082-4/+80
| | | | 2. Add code to retrieve thread tls address.
* o ps_pd{read|write} and ps_pt{read|write} are obsolete interfacemarcel2004-07-171-22/+2
| | | | | functions. Only ps_p{read|write} remains. o Remove ps_getpid. We don't need it now.
* ptrace's first parameter is command not pid. pointy hat to me.davidxu2004-07-161-2/+6
|
* Add libthread_db assisted debugging support module.davidxu2004-07-151-0/+1095
|
* Add bmake glue for gdb 6.1.1. Supports alpha, amd64, i386, ia64marcel2004-06-251-0/+52
and sparc64. Note that the debugger doesn't support threading, nor kernel debugging yet.
OpenPOWER on IntegriCloud