| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
When XSAVE support was added on amd64, the FPU save area was moved
out of 'struct pcb' and into a variable-sized region after the
structure. The kgdb code currently only reads the pcb. It does not
read in the FPU save area but instead passes stack garbage as the
FPU's saved context. Fixing this would mean determining the proper
size of the area and fetching it. However, this state is not saved
for running CPUs in stoppcbs[], so the callback would also have to
know to ignore those pcbs. Instead, just remove the call since it is
of limited usefulness. It results in kgdb reporting the state of the
FPU/SIMD registers in userland, not their current values in the kernel.
In particular, it does not report the correct state for any code in
the kernel which does use the FPU and would report incorrect values
in that case.
Notes:
svn path=/stable/9/; revision=290413
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add a new knob WITH_DEBUG_FILES to control the building of standalone
debug files for userland programs and libraries. The "-g" debug flag
is automatically applied when WITH_DEBUG_FILES is set.
The debug files are named ${prog}.debug and ${shlib}.debug for consistency with other systems and documentation. In addition they are
installed under /usr/lib/debug, to simplify the process of installing
them if needed after a crash. Users of bsd.{prog,lib}.mk outside of the
base system place the standalone debug files in a .debug subdirectory.
GDB automatically searches both of these directories for standalone
debug files.
Notes:
svn path=/stable/9/; revision=252827
|
| |
|
|
|
|
|
| |
Pointy hat to: me
Notes:
svn path=/stable/9/; revision=241193
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
Fix pseudo checksum calculation.
This fixes ipfilter w/ network controllers that implement only
partial rx csum offloading.
PR: 106438
Obtained from: upstream
Notes:
svn path=/stable/9/; revision=241192
|
| |
|
|
|
|
|
|
|
|
|
| |
Add missing -w to kgdb(1)'s usage().
Sponsored by: Adara Networks, Inc.
Approved by: re (kib)
Notes:
svn path=/stable/9/; revision=238283
|
| |
|
|
|
|
|
|
|
| |
General mdoc(7) and typo fixes.
PR: 167696
Notes:
svn path=/stable/9/; revision=235570
|
| |
|
|
|
|
|
| |
Adopt to new layout of struct pcb.
Notes:
svn path=/stable/9/; revision=231980
|
| |
|
|
|
|
|
|
|
|
| |
used anyway, and it breaks the build, since sys/ptrace.h now includes
<machine/reg.h>
Approved by: re
Notes:
svn path=/head/; revision=225190
|
| |
|
|
|
|
|
|
|
|
|
|
| |
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
Notes:
svn path=/head/; revision=225017
|
| |
|
|
|
|
|
|
|
|
|
| |
kgdb(1).
Reviewed by: marcel
Approved by: re (kib)
MFC after: 1 week
Notes:
svn path=/head/; revision=224687
|
| |
|
|
|
|
|
| |
correct.
Notes:
svn path=/projects/largeSMP/; revision=222547
|
| |
|
|
|
|
|
|
|
| |
rets.
Requested by: kib
Notes:
svn path=/projects/largeSMP/; revision=222363
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
Notes:
svn path=/projects/largeSMP/; revision=221499
|
| |
|
|
|
|
|
|
| |
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Notes:
svn path=/head/; revision=220043
|
| |\
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
Notes:
svn path=/head/; revision=218822
|
| | |\
| | |
| | |
| | | |
Notes:
svn path=/projects/binutils-2.17/; revision=215710
|
| | |\ \
| | | |
| | | |
| | | | |
Notes:
svn path=/projects/binutils-2.17/; revision=215320
|
| | |\ \ \
| | | | |
| | | | |
| | | | | |
Notes:
svn path=/projects/binutils-2.17/; revision=215143
|
| | | | | |
| | | | |
| | | | |
| | | | | |
Notes:
svn path=/projects/binutils-2.17/; revision=214645
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
contrib/gdb/include, since that contains newer versions of the same
files.
Notes:
svn path=/projects/binutils-2.17/; revision=214644
|
| | | | | |
| | | | |
| | | | |
| | | | | |
Notes:
svn path=/head/; revision=217749
|
| | |_|_|/
|/| | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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.
Notes:
svn path=/head/; revision=217123
|
| | |_|/
|/| |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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
Notes:
svn path=/head/; revision=215679
|
| | | |
| | |
| | |
| | | |
Notes:
svn path=/head/; revision=215292
|
| | |/
|/|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
this code in the first place).
Also MACHINE_ARCH powerpc is 32-bit, not MACHINE_CPUARCH == powerpc.
Submitted by: nathanw
Notes:
svn path=/head/; revision=215276
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
Notes:
svn path=/head/; revision=215082
|
| | |
| |
| |
| | |
Notes:
svn path=/head/; revision=214962
|
| | |
| |
| |
| |
| |
| |
| | |
be called before _initialize_thread_db
Notes:
svn path=/head/; revision=214960
|
| | |
| |
| |
| |
| |
| |
| | |
- Minor clean-up
Notes:
svn path=/head/; revision=214952
|
| |/
|
|
| |
Notes:
svn path=/head/; revision=214951
|
| |
|
|
|
|
|
|
| |
avoids spinning in an infinite loop for some (possibly corrupt?) core
files at work.
Notes:
svn path=/head/; revision=213013
|
| |
|
|
|
|
|
|
| |
Prefer MACHNE_CPUARCH to MACHINE_ARCH in most contexts where you want
to test of all the CPUs of a given family conform.
Notes:
svn path=/head/; revision=211725
|
| |
|
|
|
|
|
|
|
|
| |
read-only by default, meaning files copied can't be overwritten next time.
Reviewed by: imp
Approved by: ken (mentor)
Notes:
svn path=/head/; revision=211243
|
| |
|
|
| |
Notes:
svn path=/head/; revision=210852
|
| |
|
|
| |
Notes:
svn path=/head/; revision=210778
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
Notes:
svn path=/head/; revision=210424
|
| |
|
|
|
|
|
|
|
|
|
| |
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
Notes:
svn path=/head/; revision=209867
|
| |
|
|
|
|
|
|
|
|
| |
available.
Suggested by: davidxu
MFC after: 2 weeks
Notes:
svn path=/head/; revision=209690
|
| |
|
|
|
|
|
|
|
|
| |
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.
Notes:
svn path=/head/; revision=206624
|
| |
|
|
|
|
|
|
|
|
|
| |
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)
Notes:
svn path=/head/; revision=206622
|
| |
|
|
|
|
|
| |
the MD files exist, compile it, otherwise omit it.
Notes:
svn path=/head/; revision=206530
|
| |
|
|
| |
Notes:
svn path=/head/; revision=205711
|
| |
|
|
| |
Notes:
svn path=/head/; revision=205710
|
| |
|
|
| |
Notes:
svn path=/head/; revision=205310
|
| |
|
|
| |
Notes:
svn path=/head/; revision=204335
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
Notes:
svn path=/head/; revision=204138
|
| |
|
|
| |
Notes:
svn path=/head/; revision=203960
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
Notes:
svn path=/head/; revision=203823
|
| |
|
|
|
|
|
| |
Obtained from: Juniper Networks, Semihalf
Notes:
svn path=/head/; revision=188941
|
| |
|
|
|
|
|
| |
Obtained from: Juniper Networks, Semihalf
Notes:
svn path=/head/; revision=185023
|