Commit Graph

266 Commits

Author SHA1 Message Date
christos 7a47f15696 gcc 4 outputs AT_location attributes which are not blocks. Prevent core-dumping
by not trying to dereference non block attributes as block.
2006-11-26 04:45:39 +00:00
cbiere 4b14bb6309 Changed error message of ENOPROTOOPT to "Protocol option not available". 2006-10-31 00:38:06 +00:00
uwe 8514c96f9a Recognize SH2E from new binutils (map to sh3e vector). 2006-10-14 22:20:06 +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
mrg 20e25ea492 consolidate the sh*netbsd* targets into sh*l* and sh*. 2006-06-26 22:33:42 +00:00
dogcow 444e690921 Remove various dotfiles that wandered their way in. 2006-06-18 08:59:39 +00:00
mrg 512fbc0a03 - include <stdlib.h> and <string.h> where appropriate
- s/void volatile/void/ for a funtion return type
2006-05-23 20:11:10 +00:00
mrg c7dc676533 cast the functions assignments for gnu_v3_abi_ops.is_destructor_name
and gnu_v3_abi_ops.is_constructor_name as appropriate.
2006-05-11 00:32:21 +00:00
skrll 7dd5787d48 Pulls over the changes from gdb mainline to fix the cast lvalues. 2006-05-10 06:18:01 +00:00
christos 6bd51d8bb0 PR/32683: Dieter Baron: gdb/i386 cannot single step of shared library functions.
Indicate that we are in the solib trampoline is when we are in the plt section
(from uwe).
2006-04-03 17:09:58 +00:00
uwe ff265b0443 In binutils 2.16 new SuperH flags were introduced. Since we still use
old gdb, teach it new flags, so that it can recognize binaries compiled
with new binutils.  For new flags set arch to an approximate superset
that this version of bfd knows about.  This is good enough for gdb.

PR port-sh3/32972
2006-03-07 02:16:23 +00:00
skrll 6003e126de Fix PR 32076 by using procfs to get details of the file when attaching
to a process.

Discussed (briefly) on tech-toolchain and OK'ed by thorpej.
2006-02-17 07:58:58 +00:00
uwe 4224340c16 Handle the case when control transfer instruction jumps to its own
delay slot (e.g. PLT entries use such code).  We can not set the
breakpoint there, as trapa is illegal in the delay slot.  Set the
breakpoint to the next instruction instead.  We are guaranteed to
arrive there, as control transfers are illegal in the delay slot.
2006-01-02 17:35:55 +00:00
nathanw 55bd561796 nbsd_thread_resume(): make sure that we've been passed a thread ID in
ptid before invoking the suspend-all-but-this-thread logic. Otherwise,
when passed an LWP (as a result of 1.15 making LWPs the primary
identifier of live execution contexts), we try to suspend everything,
which goes poorly.
2005-08-16 22:07:12 +00:00
agc b67ff462a3 Now that rl_callback_handler_install's argument has been fixed to conform
to the readline interface, no need to cast it erroneously for libedit.
2005-05-27 15:34:16 +00:00
drochner a35023d9c5 add a comment telling that i386bsd_sigcontext_addr() returns
the address of a ucontext_t on NetBSD
(this is a hack of course)
2005-01-13 12:51:04 +00:00
drochner c578ca7bb1 wire in the right offsets of eip/esp within a ucontext_t
(which we use now instead of "struct sigcontext")
2005-01-13 12:31:09 +00:00
drochner da4342c647 Signal handlers don't get passed a "struct sigcontext"
anymore. Look in the ucontext_t for the next frame
instead. Backtrace through a signal handler invocation
works now.
(Since this change is NetBSD specific, this code shouldn't
be in a file which is shared among BSDs.)
2005-01-13 12:29:41 +00:00
christos 31154055b9 PR/28781: OBATA Akio: gdb -write would core-dump if the executable did not
have a string table. Check if the string table has been passed to us before
we attempt writing it.
2004-12-26 16:55:00 +00:00
cube b5856520ff Back out previous commit. PIDGET() must be used with a ptid_t, and the
functions that were modified by the previous commit were already passed
the result of PIDGET.  Whatever was intended, it must be re-done
correctly.
2004-10-16 21:17:51 +00:00
mycroft 2c0f3d7d9b Two changes for better handling of blocked threads with LWPs:
1) When looking up the active thread, do not convert it to a thread ID; use the
   LWP ID instead.  This causes us to go through the ptrace(2) interface to
   modify registers -- using the kernel state -- rather than through the
   thread library.
2) Do not add blocked threads to the thread list.  These are represented by
   LWPs and will be seen that way instead.
2004-10-12 22:16:34 +00:00
reinoud 3f13770b97 Finally x86-64
WARNING: i can't be 100% sure that this patch will work due to the x86-64
code being different from all other archs... maybe it ought to be
streamlined to the other archs?
2004-10-12 02:38:56 +00:00
reinoud d1b2149022 Forgot NetBSD/alpha in my ptrace() fix. 2004-10-12 02:31:35 +00:00
reinoud c90013b67b Pass the LWP id to the ptrace() calls. Passing a zero as it did meant that
gdb could end up with the wrong registers... all other NetBSD archs
allready did this....
2004-10-12 01:38:47 +00:00
mycroft 03c7b67710 If we can't read the switchframe from the core dump, fake it, rather than
just failing.
2004-10-08 17:17:45 +00:00
ian ca1f4aea74 Bring in current sim/ppc sources which fix configury to work with
NetBSD-current, in which statfs() exists but struct statfs does not.
2004-09-29 06:31:36 +00:00
rearnsha 8cd9c1ad76 Add Thumb breakpoints 2004-08-23 13:54:29 +00:00
nathanw fd8dc4c93f Remove some unused variables. 2004-08-09 22:39:32 +00:00
nathanw 0ef0b5bfc2 nbsd_thread_unsuspend() doesn't need to get or look at the thread
info.
2004-08-09 20:14:22 +00:00
nathanw 82c8abbad2 Fix up a few error messages to correctly report what function they're
in.
2004-08-09 20:13:53 +00:00
nathanw 417df974b7 Add rwlock support to "thread sync" command, and clean up some
whitespace printing.
2004-07-29 17:57:40 +00:00
nathanw bb1c6b93e5 Enable scheduler_lock mode. 2004-07-20 21:39:04 +00:00
nathanw 066d05318f Jumbo update to address several issues.
Go back to activating thread debugging in new_objfile(), as well as
several other places, so that thread operations such as wait() can be
handled inside of the child_ops.create_inferior(). This addresses
spurious SIGTRAPs at the start of debugging threaded programs.

Make use of the libpthread_dbg suspend/resume interface to implement
single-thread stepping.

Be a little more sensible about the way IS_LWP and IS_THREAD work.

Don't try to look up mutex data for a spinlock sync object (ugh,
unions).
2004-07-20 21:33:44 +00:00
uwe ae04b1322a Fix the calculation of next_pc for braf/bsrf instructions. 2004-05-28 22:04:36 +00:00
nathanw 411bc3c814 Failure to fetch FP registers from the thread debugging library isn't
necessairly a problem; the thread may in fact have no FP state.
2004-05-27 19:15:10 +00:00
matt 3df46d6c37 Fix stack backtracing so not refer to the initial entry frame.
Default to getting the LR out of the stack if no other way works.

This makes backtraces work on stripped programs.
2004-05-07 00:07:10 +00:00
nathanw e30c25106f Remove an extraneous use of a 'retval'. 2004-04-15 19:26:58 +00:00
mrg d7919c9c21 +TM_FILE= tm-x86-64nbsd.h
this lets MKCROSSGDB work for ./build.sh -m amd64.
2004-04-12 07:19:16 +00:00
matt e5795ee03a Add libraries needed for configure 2004-04-04 20:17:27 +00:00
mrg df1f7747e1 #endif /* MUST NOT HAVE TOKENS AFTER IT */ 2004-04-02 13:36:24 +00:00
mrg dd567aa2f5 - (required) const poison
- fix some function argument type issues (struct _bfd vs bfd)
2004-04-02 13:34:50 +00:00
mrg 80a13c7a72 labels must have statements:; 2004-04-02 13:33:04 +00:00
matt 5132bfefdc Add support for traversing through signal handler frames. 2004-03-10 01:22:29 +00:00
nathanw 240c6ac9cf Re-implement fetch_kcore_registers() for alpha. 2004-01-02 22:41:17 +00:00
nathanw 243cf32568 Alpha uses software single-step. Lost in the 5.0->5.3 conversion.
Addresses PR toolchain/23672.
2003-12-11 21:06:27 +00:00
nathanw de13a4e603 Catch up alpha_software_single_step() prototype with reality. 2003-12-11 21:02:24 +00:00
matt 4e90dd053f Add kcore and netbsd thread support. 2003-11-14 19:10:00 +00:00
matt 8056b67d49 Add kcore & netbsd thread support 2003-11-14 19:08:49 +00:00
briggs 5e0fd052da Fix from Ian Lance Taylor to allow building a cross-gdb with arm--netbsdelf
target.  Patch as seen on tech-toolchain@.
2003-11-14 15:06:15 +00:00