Andrew Cagney
457174f645
Enable PowerPC simulator on native linux and netbsd.
2001-10-20 00:16:44 +00:00
Andrew Cagney
4bb5d56713
* README: Mention problems with HP/UX.
2001-10-18 04:35:35 +00:00
Andrew Cagney
03dd37c302
Functions to convert to/from CORE_ADDR and a string. Use in Insight.
2001-10-17 20:35:31 +00:00
Jason Molenda
1ba7c32c23
* symtab.c (lookup_block_symbol): Break out of linear search
...
if we're past the range of possible matches.
Original patch submission, with links to history/background behind it,
here:
http://sources.redhat.com/ml/gdb-patches/2001-09/msg00120.html
2001-10-17 07:12:57 +00:00
Christopher Faylor
7470a420fc
* win32-nat.c (safe_symbol_file_add_stub): Improve logic for avoiding load of
...
already loaded DLL.
(register_loaded_dll): Convert loaded DLL name to "posix" format or it will
confuse subsequent opening of the filename due to dos paths.
(dll_symbol_command): Pass from_tty parameter to safe_symbol_file_add.
2001-10-16 04:50:21 +00:00
Elena Zannoni
8cc1c88238
2001-10-15 Elena Zannoni <ezannoni@redhat.com>
...
* symtab.c (lookup_block_symbol): Update comment.
2001-10-16 03:23:35 +00:00
Andrew Cagney
1aa20aa88f
* value.h (value_as_address): Rename value_as_pointer.
...
* eval.c, findvar.c, gnu-v2-abi.c, gnu-v3-abi.c, jv-lang.c,
jv-valprint.c, printcmd.c, stack.c, top.c, valarith.c, valops.c,
values.c: Update.
2001-10-16 01:58:07 +00:00
Andrew Cagney
dbbd9c57ff
202001-10-15 Jim Ingham <jingham@inghji.apple.com>
...
* valarith.c (value_sub): Don't pass a raw type to
value_from_pointer, it has to go through check_typedef first.
2001-10-16 01:19:09 +00:00
Andrew Cagney
73d3c16e21
Provide a valid non-multi-arch default for INTEGER_TO_ADDRESS.
2001-10-15 21:38:44 +00:00
Andrew Cagney
fc0c74b114
Add INTEGER_TO_ADDRESS to hadle nasty harvard architectures that do
...
funnies to integer to address conversions.
2001-10-15 18:18:30 +00:00
Mark Kettenis
3902478264
* config/s390/nm-linux.h: Don't include <signal.h>.
...
(lin_lwp_attach_lwp, ATTACH_LWP, lin_thread_get_thread_signals,
GET_THREAD_SIGNAL): Remove.
2001-10-14 21:04:05 +00:00
Mark Kettenis
dc17571df2
* config/nm-linux.h (struct objfile): Remove forward declaration.
...
(linuxthreads_new_objfile): Remove prototype.
(linuxthreads_pid_to_str): Remove prototype.
(PREPARE_TO_PROCEED): Redefine in terms of
lin_lwp_prepare_to_proceed.
(struct target_waitstatus): Forward declaration.
(child_wait): New prototype.
(CHILD_WAIT): Define.
(lin_lwp_attach_lwp, ATTACH_LWP, lin_thread_get_thread_signals,
GET_THREAD_SIGNAL): Moved here from arch-specific files.
* config/alpha/nm-linux.h, config/arm/nm-linux.h,
config/ia64/nm-linux.h, config/mips/nm-linux.h,
config/powerpc/nm-linux.h: Don't include <signal.h>.
(lin_lwp_attach_lwp, ATTACH_LWP, lin_thread_get_thread_signals,
GET_THREAD_SIGNAL): Remove.
* config/i386/nm-linux.h: Likewise.
(struct target_waitstatus, child_wait, CHILD_WAIT): Remove.
* config/m68k/linux.mh, config/sparc/linux.mh (NATDEPFILES):
Remove linux-thread.o. Add proc-service.o, thread-db.o and
lin-lwp.o.
(LOADLIBES): New variable.
2001-10-14 20:59:23 +00:00
Mark Kettenis
8e4d17db0e
* sparc-nat.c (fetch_core_registers): Remove redundant prototype.
2001-10-14 17:15:14 +00:00
Mark Kettenis
c987d8c09d
* proc-service.c (BUILD_LWP): Redefine in terms of ptid_build.
2001-10-14 11:50:39 +00:00
Mark Kettenis
cacab7c477
Fix attaching to cloned processes. This fixes PR gdb/61.
...
* lin-lwp.c (struct lwp_info): Add new member `cloned'.
(is_cloned) Removed.
(lin_lwp_attach_lwp): Don't call stop_wait_callback. Instead call
waitpid explicitly. Mark the LWP as cloned if waitpid fails and
retry with __WCLONE flag.
(lin_lwp_attach): Likewise. Warn if attaching to a cloned process.
(detach_callback): Replace use of is_cloned with explicit check on
LWP id and process id.
(stop_wait_callback): Replace use of is_cloned with check if LWP
is marked as cloned.
[CHILD_WAIT] (child_wait): New function.
(lin_lwp_wait): Replace use of is_cloned with check if LWP is
marked as cloned. Mark newly detected LWPs as cloned if detected
by waitpid with __WCLONE flag.
(kill_wait_callback): Replace use of is_cloned with check if LWP
is marked as cloned.
* config/i386/nm-linux.h (struct target_waitstatus): Add forward
declaration.
(child_wait): Add prototype.
(CHILD_WAIT): Define.
2001-10-14 11:30:37 +00:00
Andrew Cagney
5769d3cd7d
S/390 31 & 64 bit target and GNU/Linux native support.
...
Contributed by D.J. Barrow <djbarrow@de.ibm.com> of IBM.
* s390-nat.c, s390-tdep.c: New file.
* config/s390/nm-linux.h, config/s390/s390.mh: New file.
* config/s390/s390.mt, config/s390/s390x.mt: New file.
* config/s390/tm-linux.h, config/s390/tm-s390.h: New file.
* config/s390/xm-linux.h: New file.
* NEWS: Update.
* MAINTAINERS: Update.
2001-10-13 22:13:35 +00:00
Andrew Cagney
83e6b173e7
From 2001-07-09 D.J. Barrow <djbarrow@de.ibm.com>:
...
* gdbarch.sh: Fixed CALL_DUMMY_BREAKPOINT_OFFSET to check
CALL_DUMMY_BREAKPOINT_OFFSET_P.
* gdbarch.c: Regenerate.
2001-10-13 19:40:31 +00:00
Mark Kettenis
21bf60feee
* thread-db.c: Fix a few formatting mistakes.
2001-10-13 15:04:02 +00:00
Christopher Faylor
d60dc82aca
Fix capitalization.
2001-10-13 04:15:40 +00:00
Christopher Faylor
fefd0a378f
* win32-nat.c (safe_symbol_file_add_stub): Properly initialize linked list
...
pointer to beginning rather than one beyond beginning.
2001-10-13 01:20:29 +00:00
Daniel Jacobowitz
e88c90f2c5
2001-10-12 Daniel Jacobowitz <drow@mvista.com>
...
* symtab.h (struct block): (ALL_BLOCK_SYMBOLS): New macro.
* symtab.c (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
(make_symbol_completion_list): Likewise.
(make_symbol_overload_list): Likewise.
* buildsym.c (finish_block): Likewise.
* breakpoint.c (get_catch_sals): Likewise.
* mdebugread.c (mylookup_symbol): Likewise.
* objfiles.c (objfile_relocate): Likewise.
* printcmd.c (print_frame_args): Likewise.
* stack.c (print_block_frame_locals): Likewise.
(print_block_frame_labels): Likewise.
(print_frame_arg_vars): Likewise.
* symmisc.c (dump_symtab): Likewise.
* tracepoint.c (add_local_symbols): Likewise.
(scope_info): Likewise.
2001-10-12 Daniel Jacobowitz <drow@mvista.com>
* mi-cmd-stack.c (list_args_or_locals): Use ALL_BLOCK_SYMBOLS.
2001-10-12 Daniel Jacobowitz <drow@mvista.com>
* generic/gdbtk-cmds.c (gdb_listfuncs): Use ALL_BLOCK_SYMBOLS.
* generic/gdbtk-stack.c (gdb_block_vars): Likewise.
(gdb_get_blocks): Likewise.
(gdb_get_vars_command): Likewise.
5~
2001-10-12 23:51:30 +00:00
Daniel Jacobowitz
375f3d864b
* minsyms.c (msymbol_hash): Use better hash function.
...
(msymbol_hash_iw): Likewise. Terminate loop at '(' properly.
* objfiles.h: Increase MINIMAL_SYMBOL_HASH_SIZE to match modern
binaries.
2001-10-12 19:07:07 +00:00
Daniel Jacobowitz
5515947148
* printcmd.c (print_frame_args): Move symbol iteration explicitly
...
inside the func != NULL block.
2001-10-12 17:15:34 +00:00
Fernando Nasser
30ef99d1a8
2001-10-12 Fernando Nasser <fnasser@redhat.com>
...
* MAINTAINERS (Misc): Add Ian Roxborough as tcl/, tk/ and itcl/
maintainer.
2001-10-12 15:59:11 +00:00
Christopher Faylor
02e423b9b2
* config/i386/tm-cygwin.h: include tm-i386.h instead of tm-i386v.h. This fixes
...
errors in "long long" handling for 'finish' and 'return' commands.
* win32-nat.c (safe_symbol_file_add_stub): Avoid adding a shared library if it
has already been loaded.
(safe_symbol_file_add_cleanup): Don't mess with stderr or we won't see any
error messages.
(safe_symbol_file_add): Ditto.
(solib_symbols_add): Make static. Accept 'from_tty' parameter. Pass it to
safe_symbol_file_add.
(core_dll_symbols_add): Accomodate extra solib_symbols_add parameter.
(child_solib_add): Ditto.
* win32-nat.c (handle_exception): Don't print "first chance" exceptions.
(get_child_debug_event): Continue from exceptions if !handle_exception.
2001-10-12 04:32:16 +00:00
Tom Tromey
1b15f1fad9
* symtab.c (lookup_symtab): Removed.
...
(lookup_symtab_1): Renamed to lookup_symtab.
2001-10-12 03:38:12 +00:00
Christopher Faylor
700b351bda
* win32-nat.c (get_child_debug_event): Close file handles created after process
...
creation and DLL load.
(child_create_inferior): Close unneeded process/thread handle after thread
creation.
2001-10-11 01:55:58 +00:00
Jim Blandy
4eab1e18e9
* mn10300-tdep.c (mn10300_analyze_prologue): Doc fixes.
2001-10-10 21:22:44 +00:00
Keith Seitz
4abb499edb
* varobj.c (cplus_value_of_child): Deal with a failure
...
to dereference a pointer object.
2001-10-10 17:01:52 +00:00
Joel Brobecker
8b2797db31
Document changes to hpux-thread.c.
2001-10-08 20:44:38 +00:00
Nicholas Duffek
420effb8ac
* MAINTAINERS (powerpc, SCO/Unixware, Solaris/x86): Remove my
...
entries.
2001-10-08 19:05:00 +00:00
Mark Kettenis
3eb970a80b
* config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Define.
2001-10-06 19:19:27 +00:00
Tom Tromey
78f495860c
* main.c (enable_external_editor): Don't declare.
...
(captured_main): Don't set enable_external_editor.
2001-10-04 15:04:27 +00:00
Kevin Buettner
ab31aa69b9
Split SVR4/SunOS solib support.
2001-10-02 23:11:24 +00:00
Elena Zannoni
39ae698d7d
2001-10-01 Elena Zannoni <ezannoni@redhat.com>
...
* Makefile.in (mipsread.o): Remove old dependency on partial-stab.h.
2001-10-02 02:53:48 +00:00
Elena Zannoni
d5d0a62f69
2001-10-01 Elena Zannoni <ezannoni@redhat.com>
...
* xcoffread.c (N_UNDF, N_ABS, N_TEXT, N_DATA, N_BSS, N_COMM, N_FN,
N_EXT, N_INDR, N_SETA, N_SETT, N_SETD, N_SETB, N_SETV,
CUR_SYMBOL_TYPE, CUR_SYMBOL_VALUE, START_PSYMTAB, END_PSYMTAB,
SET_NAMESTRING): Delete definitions.
Don't include language.h any more.
Don't include partial-stab.h any more.
(scan_xcoff_symtab): Don't jump through hoops to reuse code in
partial-stab.h, include the code directly, instead.
* Makefile.in (xcoffread.o): Remove dependency on partial-stab.h.
2001-10-02 02:39:48 +00:00
Andrew Cagney
447aa9a61f
* infcmd.c (do_registers_info): Delete code dumping large
...
registers. Handled by val_print.
2001-10-01 18:11:19 +00:00
Andrew Cagney
85de96271b
* gdbarch.sh (gdbarch_alloc): Name the new architecture
...
``current_gdbarch'' so that it, and not the identically named
global is refered to by macros.
* gdbarch.c: Regenerate.
2001-09-30 16:54:28 +00:00
Andrew Cagney
f3796e2657
* cli/cli-decode.c (add_set_boolean_cmd): Define.
...
* cli/cli-decode.h (add_set_boolean_cmd): Declare.
* command.h (add_set_boolean_cmd): Ditto.
* remote.c (_initialize_remote): Use add_set_boolean_cmd for "set
remotebreak"
2001-09-30 16:16:16 +00:00
Andrew Cagney
08e45a405b
* gdbarch.sh (gdbarch_dump): Sort output.
...
* gdbarch.c: Regenerate.
2001-09-29 22:35:53 +00:00
Andrew Cagney
e712c1cf79
* rs6000-tdep.c (rs6000_gdbarch_init): Don't use the previous
...
architecture to infer the wordsize. Previous architecture may not
be a PowerPC.
2001-09-29 21:32:01 +00:00
Michael Snyder
56e2d25ab5
2001-09-20 Michael Snyder <msnyder@redhat.com>
...
Changes by Daniel Berlin <dan@cgsoftware.com>, to support
better parsing of const and volatile type expressions.
* c-exp.y (const_and_volatile, const_or_volatile_noopt,
const_or_volatile): New non-terminals.
(ptype): Use new rule for const_or_volatile.
(typebase): Use new rule for const_or_volatile_noopt.
* parser-defs.h (enum type_pieces): New values tp_const, tp_volatile.
* parse.c (follow_types): Handle tp_const and tp_volatile on the
type stack: call make_cv_type to create new const/volatile type.
2001-09-27 21:16:43 +00:00
Michael Snyder
3e9986d221
2001-09-21 Michael Snyder <msnyder@redhat.com>
...
* c-exp.y (typebase): Accept (signed long long) as a type expr.
2001-09-27 21:14:48 +00:00
Joel Brobecker
d68f31a9f3
Document changes in infttrace.c (for HPUX 11.00).
2001-09-27 13:32:17 +00:00
Andrew Cagney
e3abfe1d65
Add framework for ``set/show serial ...''.
2001-09-26 23:27:39 +00:00
Andrew Cagney
ff1da24e18
* CONTRIBUTE: Update.
2001-09-26 20:52:56 +00:00
Kevin Buettner
e5e2b9ff10
Use gdbarch data mechanism instead of gdbarch swap mechanism to manage
...
the fetching of architecture specific link map offsets.
2001-09-26 07:03:13 +00:00
Jiri Smid
86ed34a902
fix of my email address
2001-09-25 11:52:54 +00:00
Jiri Smid
c74ae012f5
* x86-64-linux-tdep.c (LINUX_SIGINFO_SIZE): Add.
...
(x86_64_linux_sigcontext_addr): Replace `sizeof (struct siginfo)'
by LINUX_SIGINFO_SIZE.
2001-09-25 10:37:17 +00:00
Andrew Cagney
4f3379724d
* maint.c (maintenance_set_cmdlist, maintenance_show_cmdlist): New
...
variables.
(maintenance_set_profile_cmd): New function.
(maintenance_show_cmd, maintenance_set_cmd): New functions.
(_initialize_maint_cmds): Add "maintenance set" and "maintenance
show" and, commented out, "maintenance set/show profile" commands.
2001-09-25 02:31:51 +00:00