summaryrefslogtreecommitdiffstats
path: root/gnu/usr.bin/gdb
Commit message (Collapse)AuthorAgeFilesLines
* Do not include <sys/ptrace.h> if we're building a cross-debugger, ptrace isn'tcognet2011-08-261-1/+1
| | | | | | | used anyway, and it breaks the build, since sys/ptrace.h now includes <machine/reg.h> Approved by: re
* Walk the zombproc list as well as the allproc list when enumerating threadsjhb2011-08-191-33/+48
| | | | | | | | | and processes in a kernel image. This allows examination of threads that have exited or are in the late stages of exiting. Tested by: avg Approved by: re (kib) MFC after: 1 week
* Compile fbsd-threads.c. Amongst others this is necessary for a workingmarius2011-08-062-0/+3
| | | | | | | | kgdb(1). Reviewed by: marcel Approved by: re (kib) MFC after: 1 week
* Revert r222363, as bde@ pointed out the initial solution was far moreattilio2011-05-311-1/+1
| | | | correct.
* Style fix: cast to size_t rather than u_long when comparing to sizeof()attilio2011-05-271-1/+1
| | | | | | rets. Requested by: kib
* Commit the support for removing cpumask_t and replacing it directly withattilio2011-05-051-7/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | cpuset_t objects. That is going to offer the underlying support for a simple bump of MAXCPU and then support for number of cpus > 32 (as it is today). Right now, cpumask_t is an int, 32 bits on all our supported architecture. cpumask_t on the other side is implemented as an array of longs, and easilly extendible by definition. The architectures touched by this commit are the following: - amd64 - i386 - pc98 - arm - ia64 - XEN while the others are still missing. Userland is believed to be fully converted with the changes contained here. Some technical notes: - This commit may be considered an ABI nop for all the architectures different from amd64 and ia64 (and sparc64 in the future) - per-cpu members, which are now converted to cpuset_t, needs to be accessed avoiding migration, because the size of cpuset_t should be considered unknown - size of cpuset_t objects is different from kernel and userland (this is primirally done in order to leave some more space in userland to cope with KBI extensions). If you need to access kernel cpuset_t from the userland please refer to example in this patch on how to do that correctly (kgdb may be a good source, for example). - Support for other architectures is going to be added soon - Only MAXCPU for amd64 is bumped now The patch has been tested by sbruno and Nicholas Esborn on opteron 4 x 12 pack CPUs. More testing on big SMP is expected to came soon. pluknet tested the patch with his 8-ways on both amd64 and i386. Tested by: pluknet, sbruno, gianni, Nicholas Esborn Reviewed by: jeff, jhb, sbruno
* 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-182-3/+7
|\ | | | | | | | | | | | | | | | | 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-142-2/+2
| | |
| * | Sync: merge r214895 through r215140 from ^/head.dim2010-11-116-23/+51
| |\ \
| * | | Fix warnings in fbsd-threads.c.dim2010-11-011-2/+6
| | | |
| * | | For stuff under gnu/usr.bin/gdb, search contrib/binutils/include beforedim2010-11-011-1/+1
| | | | | | | | | | | | | | | | | | | | contrib/gdb/include, since that contains newer versions of the same files.
* | | | Use string literal format strings to quiet clang warnings.emaste2011-01-231-2/+2
| | | |
* | | | Retire TARGET_ABI.imp2011-01-072-2/+2
| |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-142-2/+2
| | |
* | | We need to add powerpc64->powerpc translations (I knew I hated copyingimp2010-11-142-2/+2
| |/ |/| | | | | | | | | | | | | 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-103-5/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | Fix cross-debugger buildgonzo2010-11-071-0/+8
| |
* | Fix initialization order:_initialize_svr4_solib shouldgonzo2010-11-071-2/+2
| | | | | | | | be called before _initialize_thread_db
* | - Use proper constant for accessing PCB intead of hardcoded numbersgonzo2010-11-071-15/+18
| | | | | | | | - Minor clean-up
* | Link threads support to the buildgonzo2010-11-072-1/+2
|/
* Move test for zero bufp or size before rseq and wseq calculation. Thisemaste2010-09-221-1/+3
| | | | | avoids spinning in an infinite loop for some (possibly corrupt?) core files at work.
* MFtbemd:imp2010-08-232-5/+3
| | | | | Prefer MACHNE_CPUARCH to MACHINE_ARCH in most contexts where you want to test of all the CPUs of a given family conform.
* Fix buildworld -DNO_CLEAN when using with Perforce, which marks files aswill2010-08-121-2/+2
| | | | | | | read-only by default, meaning files copied can't be overwritten next time. Reviewed by: imp Approved by: ken (mentor)
* Change kgdb_lookup() to resolve symbols via GDB instead of via libkvm(3).jhb2010-08-043-29/+23
|
* Give kgdb(1) a chance to take a look at FPU state.jkim2010-08-021-0/+1
|
* kgdb: correctly map sections to addresses in elf object modules (amd64)avg2010-07-231-6/+28
| | | | | | | | | | | | | Unlike for modules with dso type, in elf object modules all the sections have virtual address of zero. So, it is insufficient to add module base address to section virtual address (as recorded in section header) to get section address in kernel memory. Instead, we should apply the same calculations that are performed by kernel loaders (in boot code and in kernel) when they lay out sections in memory. Discussed with: jhb, np MFC after: 3 weeks
* Teach our toolchain how to generate 64-bit PowerPC binaries. This fixesnwhitehorn2010-07-104-0/+989
| | | | | | | | a variety of bugs in binutils related to handling of 64-bit PPC ELF, provides a GCC configuration for 64-bit PowerPC on FreeBSD, and associated build systems tweaks. Obtained from: projects/ppc64
* For "thread signal" command, print some information from siginfo whenkib2010-07-041-0/+37
| | | | | | | available. Suggested by: davidxu MFC after: 2 weeks
* Make this directory more regular. Since it is one we control, use theimp2010-04-144-14/+3
| | | | | | | freebsd-based names for filenames. This allows us to eliminate almost all of the uses of ${MACHINE_ARCH} here to do special things, and instead we use it to include filenames. This makes new architectures easier to support.
* mdoc: order prologue macros consistently by Dd/Dt/Osuqs2010-04-141-1/+1
| | | | | | | | Although groff_mdoc(7) gives another impression, this is the ordering most widely used and also required by mdocml/mandoc. Reviewed by: ru Approved by: philip, ed (mentors)
* Simplify how we select which architectures to add gdbserver for. Ifimp2010-04-121-2/+1
| | | | the MD files exist, compile it, otherwise omit it.
* Allow building a cross-kgdb for ia64.marcel2010-03-262-1/+8
|
* Handle cross-builds for gdbserver.marcel2010-03-261-1/+3
|
* Fix typo in commentimp2010-03-191-1/+1
|
* Initial gdbserver support for amd64.jkim2010-02-254-3/+319
|
* These contain JC's patch to get gdb sort of workingrrs2010-02-203-14/+17
| | | | | | | | | | | | on mips. Its not fully done yet but its a start. Obtained from: JC - c.jayachandran@gmail.com M gnu/usr.bin/gdb/kgdb/trgt_mips.c M gnu/usr.bin/gdb/arch/mips/init.c M gnu/usr.bin/gdb/arch/mips/Makefile M gnu/usr.bin/Makefile M contrib/gdb/gdb/mips-tdep.h
* Compile fbsd-threads.c. Threading & TLS support is working just fine.marcel2010-02-162-1/+3
|
* kgdb: initialize n_type field of nlist entry for kvm_nlist callavg2010-02-131-0/+1
| | | | | | | | | | | kvm_nlist skips lookup for entries that have n_type != N_UNDF. N_UNDF happens to be zero, so n_type typically has a correct value by accident, but not always. Note: jhb has a patch that replaces kvm_nlist use with direct gdb parsing. MFC after: 5 days X-MFC-Note: unless jhb commits kvm_nlist => kgdb_parse change
* Initial gdbserver support for PowerPC.raj2009-02-234-1/+274
| | | | Obtained from: Juniper Networks, Semihalf
* Initial gdbserver support for ARM.raj2008-11-174-4/+226
| | | | Obtained from: Juniper Networks, Semihalf
* Document what the sed trick is for.obrien2008-10-162-4/+5
| | | | Remove an embedded <TAB>, and use same style for both files.
* Oops, initialize sections and sections_end to NULL.jhb2008-10-021-1/+1
| | | | | Submitted by: Navdeep Parhar MFC after: 1 week
* Differentiate between interrupt frames, trap interrupt frames and timerkib2008-09-271-3/+33
| | | | | | | | | frame in the kgdb, to allow it to properly backtrace over the interrupt stacks. Noted and reviewed by: tegge Tested by: pho MFC after: 1 week
* Use existing GDB routines for parsing the section table of klds injhb2008-09-251-36/+23
| | | | | | the 'add-kld' command instead of doing it more by hand. MFC after: 1 week
* 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.
* Unbreak the arm build, by spelling LIBSRCS correctly.cognet2008-08-021-1/+1
|
* Do not build fbsd-threads.c if we're building a cross-debugger.cognet2008-08-021-1/+4
| | | | MFC after: 3 days
OpenPOWER on IntegriCloud