Commit Graph

58 Commits

Author SHA1 Message Date
wiz f3f83d5a32 Remove incorrect semicolon at the end of an if-statement.
From OpenBSD via Henning Petersen in PR 41708.
2009-07-13 08:35:24 +00:00
uwe 70eb15d9df Teach gdb about reg::r_gbr. From mjf@
XXX: We should probably properly conditionalize these changes by
introducing HAVE_STRUCT_REG_R_GBR
2008-10-27 00:33:19 +00:00
uwe dd998af85f shnbsd_software_single_step: There's no need to write back next_pc and
it actually messes things up if single step was interrupted with a
signal - we end up skipping the instruction we wanted to step.

There are still some corner cases, but at least it works enough to do
useful debugging in presence of signals.  Discovered while debugging
ntpdate where this problem was triggered by SIGALRM.
2008-08-27 01:05:42 +00:00
skrll 9a2b7df6e3 Apply fix from binutils-current so that sparc gdb can be cross built
on a 64bit host.

Problem reported by mrg.
2008-04-09 10:26:20 +00:00
skrll 482dcc2f35 #include "nbsd-nat.h" 2008-03-17 20:01:12 +00:00
skrll 1c84a0c3c5 Add nbsd_pid_to_exec_file to target ops. 2008-03-17 17:39:15 +00:00
skrll 7fa564a753 strcmp doesn't taken a length argument. 2008-03-15 12:19:41 +00:00
skrll a21274d611 Pull in some updates for NetBSD/sh gdb from wrstuden-fixsa.
- support siginfo trampoline detection/unwind
- modernise wrt core file regsets
- use inf-ptrace
2008-03-14 15:48:59 +00:00
skrll 06c967f126 Modernise NetBSD/alpha gdb - taken from gdb-current.
Add support for siginfo trampolines as well as sigcontext.
2008-03-13 18:18:15 +00:00
skrll ba36d19a6b Catch up with kernel frames on amd64. 2008-02-09 11:43:58 +00:00
christos 99a86a6512 PR/37932: Yakovetsky Vladimir: build distribution with USE_FORT fails
Avoid read redefinition
2008-02-02 17:12:44 +00:00
skrll 572591cbe8 Update some comments. 2008-01-25 12:35:48 +00:00
skrll 78a1d02a15 Catch up with changes so that kernel frame unwinding works again. 2008-01-18 16:07:22 +00:00
skrll 1bd2744b54 Add bsd-kvm.o. 2008-01-13 12:40:26 +00:00
dsl ca99a9496c Add AMD64_R9_REGNUM through AMD64_R14_REGNUM. 2008-01-13 10:54:47 +00:00
skrll 8af98e5f70 Add NetBSD/arm32 kvm support.
Nearly 10 years later... PR/5667 can be closed.
2008-01-12 20:55:12 +00:00
skrll 3410bbd575 Add NetBSD/hppa support to gdb.
Not enabled yet.
2008-01-10 21:43:55 +00:00
skrll 20aefaf533 Improve signal trampoline support by recognising trampolines from previous
releases.
2007-12-04 08:38:14 +00:00
skrll ea7265c03e First cut at hppa gdb support. Not enabled yet. 2007-11-18 12:45:25 +00:00
skrll 8ed58e93b0 Search for void * as the type of the 3rd argument of ptrace. 2007-06-03 14:59:22 +00:00
yamt 68f37fd0aa amd64nbsd_supply_pcb: as dumpsys() was changed to prepare switchframe,
always use switchframe.  fixes a build problem after yamt-idlelwp.
update some comments.  reviewed by Frank van der Linden.
2007-05-25 15:14:21 +00:00
skrll 7b1e89b840 Add LOADLIBES= -lkvm - it's needed when someone(tm) feeds this upstream.
src/gnu/usr.bin/gdb6 and mknative should probably pay attention to
LOADLIBES.... one day.
2007-05-15 17:49:08 +00:00
fvdl cdfcd42972 target kvm support for amd64 2007-05-15 15:40:49 +00:00
skrll 15e7f1810b Pass the LWP of the ptid in PT_{GET,SET}REGS calls.
Pulled across from the changes to gdb5.3.
2007-02-26 23:11:01 +00:00
skrll c0f2a403cd Pass the LWP of the ptid in PT_{GET,SET}REGS calls.
Pulled across from the changes to gdb5.3.
2007-02-24 13:05:18 +00:00
skrll d6172f381e Whitespace 2007-02-24 13:01:34 +00:00
skrll dcad5cdb82 Applies the changes made in gdb 5.3 to support pthread debugging.
Fixes part of PR/35540.
2007-02-24 12:36:27 +00:00
chs ae4967aaae bring over local mods from gdb5:
- use the right LWP ID with ptrace.
 - implement single stepping.
2007-02-19 18:22:04 +00:00
skrll fb3b023826 Correct a comment. 2007-01-20 10:54:44 +00:00
skrll ba85386518 Apply an iffy heuristic to detect a valid switchframe on the stack and
extract the register state from this for the live kernel case. If there
is no switchframe then use the frame pointer to get enough state for crash
dump case.

More information needs to be saved by savectx to avoid this mess.

Should fix PR/35118
2007-01-18 18:15:02 +00:00
skrll 3677759599 Deal with lex and yacc generated files for gdb in the same way as gcc.
That is, use the files supplied with the distribution and never attempt
to rebuild them.

Should fix PR/35271
2007-01-12 13:24:30 +00:00
drochner 46a07fd83d Update code for recognition of signal trampolines to the new "setcontext"
type, and update register offsets for ucontext/mcontext.
Now a backtrace crossing a signal handler invocation works.
Approved by christos.
2006-12-07 13:38:19 +00:00
skrll a85304c52e Add a pid to filename conversion routine for all non-i386 platforms and
create the mknative output in some instances.  arm, ppc, and sparc64 are
the only other ones using GDB 6 at this point.

Compile tested only.
2006-12-06 18:25:29 +00:00
uwe 7ec58a9280 Do not include sh64 support into sh*-netbsdelf* targets unless
specifically requested with sh5* or sh64*.
2006-12-02 01:16:34 +00:00
uwe 0c5111b125 Hide sh5 stuff under #ifdef BFD64, so that we can build with 32-bit
support only.
2006-12-02 01:13:53 +00:00
christos 3254d721de - add kernel frame unwinding support (copied from i386obsd-tdep.c)
- add a nasty hack to recognize elf kernels which do not have a PT_NOTE
  as NetBSD binaries.
2006-12-02 00:46:06 +00:00
christos f54257e103 fetch kcore registers correctly. 2006-11-26 05:40:07 +00:00
skrll f509028063 Provide a nbsd_pid_to_exec_file to assist with attach in a similar way
to the change I made to gdb 5.3.

Use on i386. Others to follow.
2006-11-25 16:38:51 +00:00
uwe 6718552664 "Regenerate" by propagating configure.ac chanages:
Recognize sh64*- and sh*- targets instead of just sh64- and sh- to
accomodate little-endian (e.g. "shle").  While here, recognize sh5*- too.

Makes cross-gdb compile for hpcsh (shle target) withought forcing
--disable-sim.
2006-11-25 04:59:01 +00:00
uwe 0b48c1fd38 Recognize sh64*- and sh*- targets instead of just sh64- and sh- to
accomodate little-endian (e.g. "shle").  While here, recognize sh5*- too.

Makes cross-gdb compile for hpcsh (shle target) withought forcing
--disable-sim.
2006-11-25 04:57:51 +00:00
cbiere 4b14bb6309 Changed error message of ENOPROTOOPT to "Protocol option not available". 2006-10-31 00:38:06 +00:00
bjh21 b78535679e Use ADDR_BITS_REMOVE on return addresses pulled from stack frames un
arm_unwind_pc().  This makes stack backtraces on acorn26 work correctly
(assuming you've done "set arm apcs32 0" first).
2006-10-14 10:42:53 +00:00
apb 0de1d80a7e Use ${HOST_SH} instead of the host system's /bin/sh wherever possible:
* Use ${CONFIG_SHELL:-/bin/sh} ${rootdir}/move-if-change
  instead of just ${rootdir}/move-if-change.
2006-09-29 20:12:32 +00:00
apb f90c5ef1d5 Use ${HOST_SH} instead of the host system's /bin/sh wherever possible:
* Explicitly use $(SHELL) to run shell scripts.

* Use SHELL = @SHELL@, not SHELL = /bin/sh.  @SHELL@ will be substituted
  by associated configure scripts, and will actually refer to the
  environment variable ${CONFIG_SHELL}.
2006-09-29 20:08:36 +00:00
ross a19b59e14b include <string.h> if available 2006-07-10 22:34:32 +00:00
ross c2a38ad59c fix LP64 issue in os_time 2006-07-10 22:32:48 +00:00
ross d4e54ee4f4 map host info into gdb_host for powerpc64-*-netbsd 2006-07-10 22:31:24 +00:00
nathanw 91bd36a208 Merge local changes and removed files. 2006-07-02 21:04:40 +00:00
nathanw 668a234ead Import GDB 6.5 2006-07-02 20:21:54 +00:00
nathanw c8002faec9 Import GDB 6.5 2006-07-02 20:11:53 +00:00