Commit Graph

12121 Commits

Author SHA1 Message Date
gdbadmin 980d3eb0c2 *** empty log message *** 2002-07-24 00:00:02 +00:00
Andrew Cagney 2037aebbd7 Mention 5.2.1 on mainline. 2002-07-23 21:28:38 +00:00
Mark Salter 66504d44b9 Fix error check in remote_read_bytes 2002-07-23 18:55:06 +00:00
Kevin Buettner 27bae383c5 * aix-thread.c (language.h): Include.
(ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
	(pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
	Print newlines at end of debug messages.
	(pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
	(pdc_write_data): Use local_hex_string() instead of %llx formats.
2002-07-23 01:06:02 +00:00
Kevin Buettner f1a91342e5 Don't rely on FIRST_UISA_SP_REGNUM or LAST_UISA_REGNUM. 2002-07-23 00:34:29 +00:00
gdbadmin 05f0e97831 *** empty log message *** 2002-07-23 00:00:02 +00:00
Kevin Buettner 206d3d3c1b * aix-thread.c (ops): Rename to aix_thread_ops.
(base_ops): Rename to base_target.
	(ops_attach): Rename to aix_thread_attach.
	(ops_detach): Rename to aix_thread_detach.
	(ops_resume): Rename to aix_thread_detach.
	(ops_wait):   Rename to aix_thread_wait.
	(ops_kill):   Rename to aix_thread_kill.
	(init_ops):   Rename to init_aix_thread_ops.
	(ops_fetch_register): Rename to aix_thread_fetch_register.
	(ops_store_register): Rename to aix_thread_store_register.
	(ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
	(ops_thread_alive):   Rename to aix_thread_thread_alive.
	(ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
	(ops_pid_to_str):  Rename to aix_thread_pid_to_str.
	(ops_xfer_memory): Rename to aix_thread_xfer_memory.
	(fetch_regs_lib):  Rename to fetch_regs_user_thread.
	(fetch_regs_kern): Rename to fetch_regs_kernel_thread.
	(store_regs_lib):  Rename to store_regs_user_thread.
	(store_regs_kern): Rename to store_regs_kernel_thread.
2002-07-22 22:11:03 +00:00
Kevin Buettner cbe92db47b * aix-thread.c (ops_prepare_to_store): Eliminate.
(init_ops): Don't initialize ops.prepare_to_store.
	(store_regs_kern): Pre-fetch register buffers from child,
	because some registers may not be in the cache.  Copy
	regs from register cache only if they are cached.
	(store_regs_lib): Copy regs from register cache only
	if they are cached.
	(fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
	fill_gprs64): Ditto.
2002-07-22 19:56:07 +00:00
Kevin Buettner 61c5da0b4f * aix-thread.c (gdb_assert.h): Include.
(fill_sprs64, fill_sprs32): Add selected asserts to make sure that
	register sizes (from register cache) match size of buffer holding
	register data.
	(fill_sprs32): Change parameter types to match those in the ptrace()
	buffer.
	(store_regs_lib): Likewise, but for 32-bit temporary variables.
	(ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.

	* aix-thread.c (supply_sprs64): Cosmetic change.
	(supply_sprs32): Cosmetic change.
	(fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
	(fill_sprs64): Use regcache_collect instead of read_register.
	(store_regs_lib): Use regcache_collect instead of
	read_register.  Use fill_sprs32 instead of fill_sprs64,
	if debugging a 32-bit architecture.
	(store_regs_kern): Use fill_gprs64 etc. to pull the values
	out of the register cache, instead of passing a pointer into
	the register cache directly to ptrace.  Use regcache_collect
	insteaad of read_register.
	(ops_prepare_to_store): Use target_read_registers instead
	of read_register_bytes.
2002-07-22 19:20:21 +00:00
gdbadmin b587b9ef15 *** empty log message *** 2002-07-22 00:00:31 +00:00
gdbadmin a3029400bd *** empty log message *** 2002-07-21 00:00:32 +00:00
Aidan Skinner 36479eb14b 2002-07-20 Aidan Skinner <aidan@velvet.net>
* MAINTAINERS: Add self under write after approval.
2002-07-20 16:18:07 +00:00
Aidan Skinner 80ae6ee244 2002-07-20 Aidan Skinner <aidan@velvet.net>
* ada-tasks.c: Change k&r style function definitions to prototyped
	form.
2002-07-20 16:08:49 +00:00
gdbadmin 886a9e7358 *** empty log message *** 2002-07-20 00:00:02 +00:00
Daniel Jacobowitz 46c0d5a66e 2002-07-19 Daniel Jacobowitz <drow@mvista.com>
* config/gdbserver.exp (gdb_load): Don't use TCL varargs.
        Improve support for reusing an exec file.  Copy exec file
        to target, and run gdbserver on the target instead of on the host.
2002-07-19 19:40:28 +00:00
Andrew Cagney 8a8ab2b949 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
* x86-64-tdep.c: Include "objfiles.h".
(x86_64_gdbarch_init): Set in_solib_call_trampoline to
in_plt_section.  From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
2002-07-19 18:22:14 +00:00
Michal Ludvig fb16b90083 2002-07-17 Michal Ludvig <michal@suse.cz>
* dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
	(update_context): Initialise cfa variable.
2002-07-19 09:40:51 +00:00
Jim Blandy 0f815cdf7e * gdb.base/ending-run.exp: Don't expect to see the program end in
some orderly fashion when we're running on a real stand-alone
board.
2002-07-19 00:02:34 +00:00
gdbadmin 08dcdf1c0c *** empty log message *** 2002-07-19 00:00:32 +00:00
Jim Blandy eecf4bedc4 * gdb.base/interrupt.exp: Correct logic for skipping tests on
targets that don't support interrupts.
2002-07-18 23:52:49 +00:00
Michael Snyder 0fe7bf7bb4 2002-07-17 Michael Snyder <msnyder@redhat.com>
* aix-thread.c: Shorten some long lines.
	Bring comments into line with code spec.
2002-07-18 19:26:14 +00:00
Joel Brobecker 488f131ba0 * infrun.c: Re-indent using gdb_indent.sh. 2002-07-18 17:53:50 +00:00
Joel Brobecker 46c415d23a * infrun.c (handle_inferior_event): Remove unneeded extra brace.
Leave the indentation temporarily untouched, to minimize the diffs.
2002-07-18 17:51:27 +00:00
Elena Zannoni cdecafbee8 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
* stabsread.c: Make os9k sections of the code obsolete,
	for real this time.
	* stabsread.h: Make os9k sections of the code obsolete.
2002-07-18 17:22:50 +00:00
Michal Ludvig 09ec9b38d6 2002-07-18 Michal Ludvig <mludvig@suse.cz>
* linux-low.c (regsets_store_inferior_registers): Add free()
	at the end of a loop to prevent memory leak.
	* linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
	(X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
2002-07-18 15:18:02 +00:00
Michal Ludvig 4894ac5dcf * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h 2002-07-18 12:12:42 +00:00
Michal Ludvig 7b6aa020af 2002-07-18 Michal Ludvig <mludvig@suse.cz>
* config/sparc/tm-sp64linux.h: Make the rest of #endif
	line a comment.
2002-07-18 10:10:49 +00:00
gdbadmin 876b22d88d *** empty log message *** 2002-07-18 00:00:02 +00:00
Jim Blandy 233282cd3e * macrocmd.c (info_macro_command): Remove newline from error
message.
2002-07-17 21:16:33 +00:00
Joern Rennecke 2f14585c74 include/gdb:
* sim-sh.h: Add enum constants for sh[1-4], sh3e, sh3?-dsp,
	renumbering the sh-dsp registers to use distinct numbers.
sim/sh:
	* Makefile.in (interp.o): Depend on $(srcroot)/include/gdb/sim-sh.h.
	* interp.c: Include "gdb/sim-sh.h".
	(sim_store_register, sim_fetch_register): Use constants defined there.
gdb:
	* sh-tdep.c (sh_dsp_register_sim_regno): New function.
	(sh_gdbarch_init): Use it for sh-dsp.
2002-07-17 18:43:28 +00:00
gdbadmin 8e007cd0fa *** empty log message *** 2002-07-17 00:00:32 +00:00
Kevin Buettner f7ef933922 * dwarf2read.c (read_initial_length): Handle older, non-standard,
64-bit DWARF2 format.
2002-07-16 21:00:43 +00:00
Joel Brobecker 8dd72958e0 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
<sys/proc.h> when not available.
2002-07-16 17:14:38 +00:00
Andrew Cagney a99a9e1bc4 Obsolete i[3456]86-*-os9k. 2002-07-16 15:19:19 +00:00
Andrew Cagney 7a3085c168 Obsolete fr30. 2002-07-16 14:30:14 +00:00
Pierre Muller 28a93f5a7a 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
* blockframe.c (get_pc_function_start): return 0 if the minimal symbol
	found is not inside a section.
2002-07-16 07:42:25 +00:00
Kevin Buettner be006b8b64 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
strerror().
	(pdc_realloc): Use xrealloc() instead of realloc().
2002-07-16 00:22:45 +00:00
gdbadmin 5e319c0058 *** empty log message *** 2002-07-16 00:00:34 +00:00
Kevin Buettner 14fa37513d * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
(ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
	(ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
	macros.
2002-07-15 23:33:09 +00:00
Kevin Buettner 42cc437fb0 * aix-thread.c (ptrace_check): Eliminate goto.
(sync_threadlists): Eliminate gotos.  Also, fix array overrun
	problem.
2002-07-15 20:06:12 +00:00
Kevin Buettner 8e2c28d425 * aix-thread.c (gdbcmd.h): Include.
(DEBUG, DBG, DBG2, dbg): Eliminate.
	(debug_aix_thread): New static global.
	(ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
	(pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
	(fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
	invocations to DBG and DBG2 macros to test against
	``debug_aix_thread'' and call fprintf_unfiltered().
	(_initialize_aix_thread): Add new command "set debug aix-thread".
2002-07-15 18:55:04 +00:00
Andrew Cagney 30413464fd From Gerhard Tonn <TON@de.ibm.com>:
* s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
instead of supply_register.
2002-07-15 16:50:51 +00:00
Andrew Cagney 7c43edc1d2 * dwarf2cfi.c: Include "gdb_assert.h".
(frame_state_for): Use gdb_assert to check that fde->cie_ptr is
non-NULL.
(update_context): Do not use __func__.  Add missing ``break''.
(update_context): Do not use __func__.
2002-07-15 16:01:31 +00:00
Elena Zannoni 9364a0ef8a 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
* rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
        and its setting.  Set gdbarch instruction printing functions
        directly.  For non-rs6000 case use new function
        gdb_print_insn_powerpc.
        (gdb_print_insn_powerpc): New function.
2002-07-15 15:09:55 +00:00
gdbadmin 4ae1a66cff *** empty log message *** 2002-07-15 00:00:32 +00:00
Andrew Cagney 92eb23c54a Mention d30v obsolete in news file. 2002-07-14 00:28:46 +00:00
Andrew Cagney 3fbeef0be8 Obsolete the d30v. 2002-07-14 00:15:20 +00:00
gdbadmin 410eb242a4 *** empty log message *** 2002-07-14 00:00:02 +00:00
Aidan Skinner aacb1f0a62 * ada-tasks.c (add_task_entry): replace calls to
malloc() with xmalloc
	* ada-tasks.c (init_task_list): replace calls to free with xfree()

	* ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
	ada_finish_decode_line_1, all_sals_for_line
	ada_breakpoint_rewrite): replace calls to free() with xfree()
2002-07-13 12:25:16 +00:00
Kevin Buettner c11d79f2b1 From Nicholas Duffek (with minor changes by Martin Hunt,
Louis Hamilton, and Kevin Buettner):
	* aix-thread.c: New file.
2002-07-13 00:29:37 +00:00