| Commit message (Collapse) | Author | Age | Files | Lines |
| ... | |
| | |\ \
| | | |
| | | |
| | | | |
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
|
| |
|
|
|
|
|
| |
Remove an embedded <TAB>, and use same style for both files.
Notes:
svn path=/head/; revision=183957
|
| |
|
|
|
|
|
|
| |
Submitted by: Navdeep Parhar
MFC after: 1 week
Notes:
svn path=/head/; revision=183556
|
| |
|
|
|
|
|
|
|
|
|
|
| |
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
Notes:
svn path=/head/; revision=183414
|
| |
|
|
|
|
|
|
|
| |
the 'add-kld' command instead of doing it more by hand.
MFC after: 1 week
Notes:
svn path=/head/; revision=183359
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
Notes:
svn path=/head/; revision=183023
|
| |
|
|
| |
Notes:
svn path=/head/; revision=181167
|
| |
|
|
|
|
|
| |
MFC after: 3 days
Notes:
svn path=/head/; revision=181148
|
| |
|
|
|
|
|
|
|
|
|
| |
- Use ptid_get_pid() rather than ptid_get_tid() (part of the changes to
let 'tid' work for remote kgdb).
- Add a stub kgdb_trgt_new_objfile() hook.
Silence from: obrien, mips@
Notes:
svn path=/head/; revision=179859
|
| |
|
|
| |
Notes:
svn path=/head/; revision=179162
|
| |
|
|
|
|
|
| |
Obtained from: Juniper Networks.
Notes:
svn path=/head/; revision=179161
|
| |
|
|
| |
Notes:
svn path=/head/; revision=178880
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
now only use the TID and ignore the PID and use pid_to_ptid() to build a
ptid treating the TID as a PID. The benefit of this is that the vmcore
target now uses the same scheme as GDB's remote targets. As a result,
the 'tid' command now works for remote targets (however, it only accepts
TIDs and not addresses of 'struct thread' objects).
- Use gdb_thread_select() to do the actual thread switch for the 'tid' and
'proc' commands. This now gives the same UI feedback when switching
threads as the GDB 'thread' command rather than providing no visual
output at all.
MFC after: 1 week
Notes:
svn path=/head/; revision=178713
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
so that kgdb can be used more like a normal gdb:
- Load the kernel via the standard 'exec' target and allow it to be changed
via the 'file' command.
- Instead of explicitly loading the kernel file as the mail symbol file
during startup, just pass it to gdb_main() as the executable file.
- Change the kld support (via shared libraries) to cache the address of
the linker_files and linker_kernel_file variables in addition to the
offsets of various members in 'struct linker_file'.
- When a new symbol file is loaded, recompute the addresses and offsets
used by the kld support code.
- When a new symbol file is loaded, recalculate the ofs_fix variable to
account for the different ways a trapframe can be passed to trap
frame handlers in i386. This is done by adding a MD
kgdb_trgt_new_objfile() hook that is empty on all but i386.
- Don't use the directory name of the kernel specified on the command
line to find kernel modules in the kld support code. Instead,
extract the filename of the current executable via exec_bfd. Now
the 'kernel' variable is private to main.c again.
- Make the 'add-kld' command explicitly fail if no executable is loaded.
- Make the support for vmcores a real core-dump target that opens the
kernel and vmcore on open and closes the kvm connection when closed, etc.
- The 'core' command can now be used to select a vmcore to use, either
a crash dump file or /dev/mem for live debugging.
- The 'detach' command can be used to detach from a vmcore w/o attaching
to a new one.
- kgdb no longer explicitly opens a core dump during startup and no longer
has to use an atexit() hook to close the kvm connection on shutdown.
- Symbols for kld's are automatically loaded anytime a core is opened.
Also, the unread portion of dmesg is dumped just as it was done on kgdb
startup previously.
- Don't require either a remote target or core dump if a kernel is specified.
You can now just run 'kgdb kernel' similar to running gdb on an executable
and later connect to a remote target or core dump.
- Use a more relaxed way to verify remote targets specified via -r.
Instead of explicitly allowing a few non-file target specifications,
just assume that if stat() on the arg and on "/dev/" + arg both fail
that is some non-file target and pass it to gdb.
- Don't use a custom interpreter. The existing kgdb_init() hook and the
target_new_objfile() hook give us sufficient hooks during startup to
setup kgdb-specific behavior now.
- Always add the 'proc', 'tid', and 'add-kld' commands on startup and not
just if we have a core dump. Currently the 'proc' and 'tid' commands do
not work for remote targets (I will fix at least 'tid' in the next round
of changes though). However, the 'add-kld' command works fine for
loading symbols for a kernel module on a remote target.
- Always setup the 'kld' shared library target operations instead of just
if we have a core dump. Although symbols for kernel modules are not
automatically loaded when connecting to a remote target, you can do
'info sharedlibrary' after connecting to the remote target and kgdb will
find all the modules. You can then use the 'sharedlibrary' command to
load symbols from the module files.
- Change kthr_init() to free the existing list of kthr objects before
generating a new one. This allows it to be invoked multiple times
w/o leaking memory.
MFC after: 1 week
Notes:
svn path=/head/; revision=178670
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
Notes:
svn path=/head/; revision=178666
|
| |
|
|
|
|
|
|
|
|
| |
"calltrap" to see which method is used to pass trap frames. This seg
faulted on remote gdb connections (where libkvm isn't used).
MFC after: 3 days
Notes:
svn path=/head/; revision=178638
|
| |
|
|
|
|
|
|
|
|
| |
the auto-loading of kld's switched to hooking into gdb's shared library
support.
MFC after: 1 week
Notes:
svn path=/head/; revision=178634
|