martin
7d1d8fc18d
replace "(CORE_ADDR) (uintptr_t) NULL" by a simple "0" - avoids the dance
...
with HAVE_STDINT_H and fixes the tool build for me.
Idea from dsl, OK: mrg.
2011-07-11 18:47:01 +00:00
mrg
fc24f81836
apply a couple of (int) before r_type switch usage.
2011-07-07 07:47:11 +00:00
mrg
55bcf9d074
cast to int as the fake relocs are not in enum elf_ppc_reloc_type, and
...
GCC 4.5 complains about values not in the enum as part of a switch block.
2011-07-06 09:01:35 +00:00
mrg
67d3860982
apply some (uintptr_t) between pointers, ints and other casts.
2011-07-03 15:26:06 +00:00
joerg
af600442cc
Fix cast
2011-05-23 22:30:14 +00:00
christos
fdb4cc3dfa
include headers to get proper prototypes visible.
2011-05-15 16:16:08 +00:00
dyoung
444d8f7fa7
I've been using this patch (which comes from Matt Thomas, maybe?) for
...
about a year. It make MKCROSSGDB=yes work for macppc, at least.
2011-04-04 22:33:32 +00:00
skrll
5463956946
Rename some registers to reflect reality.
2011-03-10 10:06:33 +00:00
skrll
59f75205eb
Provide more regsiters including CR27.
2011-03-03 09:43:27 +00:00
uwe
9d18d32a41
Branch with delay slot executes delay slot even if branch is not
...
taken, so adjust next_pc logic accordingly. Fixes SIGILL
(breakpoint's "trapa" causes an illegal slot instruction exception)
when stepping through such branches.
2011-02-04 00:05:29 +00:00
matt
6038a89b0e
Change to reflect switchframe/callframe changes.
2011-01-18 01:28:19 +00:00
njoly
c196326bfe
Add support for 32bit (i386) binaries on amd64.
2010-12-24 14:46:02 +00:00
njoly
deb4c35e46
Adjust LDFLAGS handling to fix curses detection for mknative-gdb.
2010-12-24 13:12:09 +00:00
joerg
a64143b682
PT_STEP historically ignores the argument. Indepent of whether this
...
behavior will be restored, pass down 0 for now to unbreak single
stepping after the thread changes.
2010-08-20 15:34:13 +00:00
christos
c48dffd069
perhaps this fixes the build issue?
2010-06-03 14:32:31 +00:00
uebayasi
fdee31b059
Make this build.
2010-04-21 12:58:38 +00:00
christos
765fc163a7
don't pretend to have do_fstatvfs
2010-04-07 17:13:10 +00:00
christos
2446060385
fix syntax errors
2010-04-07 12:58:33 +00:00
christos
66aa934e53
update system call table to reflect reality.
2010-04-06 23:02:10 +00:00
joerg
7780622b8d
Use HUGE_VAL on VAX as INFINITY requires a warning according to ISO C99
...
on VAX. Use the less intrusive approach of a conditional here.
2010-03-01 00:15:47 +00:00
dsl
02b1580f48
Fix check for old trap frame layout.
2010-02-22 08:19:38 +00:00
uebayasi
6d1f240d45
Fix parallel build. Analyzed & patch provided by enami@, thanks!
2009-12-15 11:39:05 +00:00
enami
72ec821622
Lookup lwp0.l_addr instead of proc0paddr to locate PCB.
2009-11-27 02:51:15 +00:00
uebayasi
a8e69e8330
Don't build sh64 code even if BFD64 as suggested by uwe@ (privately). We
...
don't need sh64 at all. This fixes sh3 MKCROSSGDB=yes build.
2009-11-26 06:34:22 +00:00
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