Commit Graph

121 Commits

Author SHA1 Message Date
Marius Strobl
6055164bb1 Implement functions necessary for compiling fbsd-threads.c.
Reviewed by:	marcel
Approved by:	re (kib)
MFC after:	1 week
2011-08-06 17:52:25 +00:00
Andreas Tobler
c81c8b1a46 - Check on target wordsize instead of compile time define if we build on
64-bit PowerPC or 32-bit PowerPC.
- Make gdb work on powerpc64, the code for this is obtained from
  ppc-linux-tdep.c.
- Remove non-elf core read functionality. Implement core read functionality
  similar like other FreeBSD targets.
- Set long double limitations.
2011-06-14 15:20:30 +00:00
Ed Maste
bdbd7b1333 Remove stray semicolon. This fix appears in later upstream gdb versions.
Submitted by:	eadler
2011-03-09 02:23:21 +00:00
Dimitry Andric
ce8fb93178 Merge binutils 2.17.50 to head. This brings a number of improvements to
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
2011-02-18 20:54:12 +00:00
Dimitry Andric
a35d3535ee Sync: merge r215464 through r215708 from ^/head. 2010-11-22 20:52:18 +00:00
Attilio Rao
7f08176ee8 Add the ability for GDB to printout the thread name along with other
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
2010-11-22 14:42:13 +00:00
Dimitry Andric
1170f3d12e Sync: merge r214895 through r215140 from ^/head. 2010-11-11 20:52:24 +00:00
Oleksandr Tymoshenko
db09d96dcb Change register numbers according to current struct reg and
struct fpreg in src/sys/mips/include/reg.h
2010-11-07 20:40:00 +00:00
Oleksandr Tymoshenko
8d4844f1ab Calculate offset from frame top for registers saved on a stack frame. 2010-11-07 20:37:25 +00:00
Dimitry Andric
eef8b03ca0 Sync: merge r214649 through r214894 from ^/head. 2010-11-06 18:36:21 +00:00
Oleksandr Tymoshenko
ea84fab2ce - Add ELF core for FreeBSD/mips
- Register all known cores in init function
2010-11-02 01:26:21 +00:00
Oleksandr Tymoshenko
6c412cffd0 Fix reading of .debug_line on MIPS64, big-endian:
read_initial_length detects pointer size by checking first
    4 bytes of .debug_line and stores it in struct comp_unit_head *
    passed to it as second argument. By passing NULL to a
    read_initial_length we ignore actual pointer size (8 bytes) and
    use default (4 bytes) which results in wrong offsets of header fields.
2010-11-02 01:24:49 +00:00
Dimitry Andric
8a8595146e Fix gdb compilation with new binutils:
bfd_get_section_size_before_reloc() has been renamed to
bfd_get_section_size().
2010-10-22 18:08:37 +00:00
Nathan Whitehorn
2cf64c8006 Teach our toolchain how to generate 64-bit PowerPC binaries. This fixes
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
2010-07-10 02:29:22 +00:00
Randall Stewart
3b070a8864 Adds the missing mips gdb files that I
foobar'd on my last commit.. Sorry about
that JC.. my fault.

Obtained from:	JC
2010-02-21 17:25:00 +00:00
Randall Stewart
7e1f32462d These contain JC's patch to get gdb sort of working
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
2010-02-20 17:29:27 +00:00
Andriy Gapon
84056e4e85 gdb: make 'thread apply all bt' always work on all threads
even if some appear to have (partially) corrupted stack traces.
E.g. kernel crashdumps typically have stack weirdness at
userland-kernel boundary.

Obtained from:	vendor/upstream (CVS rev 1.118 of stack.c)
Reviewed by:	emaste
Approved by:	jhb
2009-06-12 14:27:50 +00:00
Ed Maste
bf2d1caf3c - Use gdb-* glob instead of gdb-6.1.1, to simplify future imports.
- Add a few entries for additional files from later gdb releases that
  should also be ignored.
2009-04-07 20:15:51 +00:00
Rafal Jaworowski
f6d2be2556 gdb: Remove arm_pc_is_thumb_dummy() and related code.
This is basically an import of the following gdb change:
http://sourceware.org/ml/gdb-cvs/2005-03/msg00143.html (which in effect fixes
problems with gracefully closing down the non-Thumb program being debugged).
2008-11-17 16:37:04 +00:00
David E. O'Brien
df2c0c36a5 This commit was generated by cvs2svn to compensate for changes in r173619,
which included commits to RCS files with non-trunk default branches.
2007-11-14 22:58:36 +00:00
David E. O'Brien
36e24f40f9 Bring in FSF revision 1.9 (Change type of ps_strings from int to u_long).
This fixes a situation where GDB gives incorrect backtraces when a signal
handler is in the call chain.

Submitted by:	Stu Grossman <grossman@juniper.net>
2007-11-14 22:58:36 +00:00
Marcel Moolenaar
712a458010 Define supply_gregset() and supply_fpregset(). They are needed
by our threading support.
2007-05-01 18:26:22 +00:00
Marcel Moolenaar
1e7d5fbfb0 This commit was generated by cvs2svn to compensate for changes in r169185,
which included commits to RCS files with non-trunk default branches.
2007-05-01 18:26:22 +00:00
Marcel Moolenaar
929e506f33 Add support for PowerPC. These files are added onto the FSF branch
to avoid future conflicts.
2006-08-24 02:43:20 +00:00
Marcel Moolenaar
92d95d05b3 This commit was generated by cvs2svn to compensate for changes in r161561,
which included commits to RCS files with non-trunk default branches.
2006-08-24 02:43:20 +00:00
Marcel Moolenaar
d5ae8b19e8 Update for PowerPC support. We need to keep rs6000 related files. 2006-08-23 03:30:33 +00:00
Marcel Moolenaar
0ffcd81703 Import files needed for PowerPC support and not included in the
original GDB 6.1.1 import.
2006-08-23 03:28:37 +00:00
Marcel Moolenaar
7eab377589 This commit was generated by cvs2svn to compensate for changes in r161537,
which included commits to RCS files with non-trunk default branches.
2006-08-23 03:28:37 +00:00
Marcel Moolenaar
78cf5f2fcd Abstract the handling of dirty stacked registers in ia64_read_reg() and
ia64_write_reg() and call these whenever we read or write registers from
and to memory. This way we correctly read registers from addresses in
the register cache and thus fixes backtraces when the saved registers
(such as rp and ar.pfs) are in dirty stacked registers.
2004-09-05 06:17:25 +00:00
David Xu
82552011ab Disable surplus detection of breakpoint event in signal stack, the check
causes a normal breakpoint event in new thread to be ignored unexpectly,
result is process SIGSEGV.

Test on: AMD64, i386
2004-08-15 12:31:30 +00:00
Marcel Moolenaar
4fd6e2a0c9 Various improvements for ia64:
o  s/TARGET_XFER_DIRTY/NATIVE_XFER_DIRTY/g to be conformant,
o  Handle TARGET_OBJECT_DIRTY for core files. Required on Linux,
o  Replace ia64_fbsd_supply_fpregs() and ia64_fbsd_supply_gregs()
   with supply_fpregset() and supply_gregset() resp. Needed to
   support libthread_db.
o  For target_read_partial(), pass the address of bspstore as the
   annex instead of bspstore itself. This fixes crossbuilds. The
   annex is a pointer, while bspstore is a ULONGEST.
o  In ia64_frame_prev_register(), handle dirty stacked registers.
2004-07-27 03:54:16 +00:00
Marcel Moolenaar
a2d5bce4ea This file was not used to import gdb. Remove. 2004-07-19 00:20:33 +00:00
Marcel Moolenaar
9a067406de Remove fbsd-thread.o, it's not for consumption yet. 2004-06-25 22:57:56 +00:00
Marcel Moolenaar
fd10b3fb49 Update HEAD with support for ia64. 2004-06-25 05:37:08 +00:00
Marcel Moolenaar
f8c1b85b49 Add support for ia64. This code will be contributed to GDB as soon
as the legal prerequisites are met. To avoid future merge conflicts,
this is added to the vendor branch. The changes are seperately kept
in FREEBSD-diffs for easy reference.
2004-06-25 05:19:25 +00:00
Marcel Moolenaar
f200cb78cf This commit was generated by cvs2svn to compensate for changes in r131082,
which included commits to RCS files with non-trunk default branches.
2004-06-25 05:19:25 +00:00
Marcel Moolenaar
45d6662f23 Update the upgrade instructions. 2004-06-25 05:04:09 +00:00
Marcel Moolenaar
cb4214d848 Remove from HEAD, that what is not on the vendor branch anymore. 2004-06-20 20:40:44 +00:00
Marcel Moolenaar
47184b5ed9 Revive files which were pulled from the vendor branch only to be
removed on HEAD, but which are part of the GDB 6.1.1 import. This
makes HEAD identical to the vendor branch, for better or for
worse.
2004-06-20 20:36:15 +00:00
Marcel Moolenaar
c07ff117d2 Update to GDB 6.1.1. These files are identical to the vendor branch. 2004-06-20 19:47:29 +00:00
Marcel Moolenaar
18576197aa Update to match the GDB 6.1.1 import. 2004-06-20 19:15:58 +00:00
Marcel Moolenaar
fa833e1ed7 Remove files from the vendor branch that are not part of the GDB 6.1.1
import.
2004-06-20 19:05:30 +00:00
Marcel Moolenaar
281ad6bf75 This commit was generated by cvs2svn to compensate for changes in r130805,
which included commits to RCS files with non-trunk default branches.
2004-06-20 19:05:30 +00:00
Marcel Moolenaar
f759f84884 Import of GDB version 6.1.1 (stripped; see FREEBSD-Xlist rev. 1.6). 2004-06-20 18:26:14 +00:00
Marcel Moolenaar
e8077c0e5b This commit was generated by cvs2svn to compensate for changes in r130803,
which included commits to RCS files with non-trunk default branches.
2004-06-20 18:26:14 +00:00
Marcel Moolenaar
9706b0c96f This file was not part of the GDB 5.2.1 import and should have been
deleted from the vendor branch.
2004-06-20 02:30:48 +00:00
Marcel Moolenaar
4d359ceaf0 This file was not part of the GDB 5.2.1 import and should have been
deleted from the vendor branch.
2004-06-20 01:55:44 +00:00
Marcel Moolenaar
fdedc45ff6 This file was not part of the GDB 5.2.1 import and should have been
deleted from the vendor branch.
2004-06-19 15:43:52 +00:00
Marcel Moolenaar
90184f6712 This file has been removed from HEAD when it should (also) have been
removed from the vendor branch.
2004-06-19 03:39:16 +00:00
Marcel Moolenaar
f2d7e86a8a This file is not part of GDB 5.2.1, but was off the vendor branch. 2004-06-18 06:10:13 +00:00