Commit Graph

12100 Commits

Author SHA1 Message Date
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
gdbadmin c1e188556f *** empty log message *** 2002-07-13 00:00:02 +00:00
Petr Sorfa 8e19ed76b7 2002-07-12 Petr Sorfa <petrs@caldera.com>
*  dwarf2read.c (dwarf2_invalid_attrib_class): New
        complaint for invalid attribute class or form.
        (read_func_scope): DW_AT_frame_base
        better handling of DW_AT_block*.
        (dwarf2_add_member_fn): DW_AT_vtable_elem_location
        better handling of DW_AT_block*.
        (read_common_block): DW_AT_location
        better handling of DW_AT_block*.
        (read_partial_die): DW_AT_location better handling
        of DW_AT_block*.
        (new_symbol): DW_AT_external better handling of
        DW_AT_block*. Proper initialization of variable
        "addr".
        (attr_form_is_block): New function that returns true
        if the attribute's form is of DW_FORM_block*.
2002-07-12 19:55:10 +00:00
Daniel Jacobowitz 295401f78c 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
* valops.c (find_method_list): Remove comment about
        removed STATIC_MEMFUNCP argument.
        (value_find_oload_method_list): Likewise.
2002-07-12 19:15:30 +00:00
Kevin Buettner e42dc924cb From Nicholas Duffek:
* rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
	target_new_objfile_hook.
2002-07-12 18:42:05 +00:00
Kevin Buettner 6904b546a2 From Nicholas Duffek:
* xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
	csect.
2002-07-12 18:30:15 +00:00
Andrew Cagney 53fe934617 * MAINTAINERS: Mention --enable-sim-build-warnings.
(m68hc11-elf): Disable sim build warnings.
(m32r-elf): Mark as broken obsolete candidate.
(x86_64-linux-gnu): Mark as buildable with -Werror.
(arm-elf): Change -w to ``,'' which enables warnings but not
-Werror.
2002-07-12 17:14:32 +00:00
Andrew Cagney af5f3db67c * bcache.h: Update copyright.
(struct bstring, struct bcache): Move definition to "bcache.c".
Replaced by opaque declaration.
(bcache_xfree): Replace free_bcache.
(bcache_xmalloc, bcache_memory_used): Declare.

* bcache.c: Update copyright.
(struct bstring, struct bcache): Moved to here from "bcache.h".
Update comments.
(bcache_xmalloc, bcache_memory_used): New functions.
(bcache_xfree): Replace function free_bcache.

* Makefile.in (objfiles.o): Add $(bcache_h).
(objfiles_h): Remove $(bcache_h).
(symfile.o): Add $(bcache_h).

* symmisc.c: Update copyright.
(print_symbol_bcache_statistics): Pass psymbol_cache by value.
(print_objfile_statistics): Use bcache_memory_used.

* symfile.c: Include "bcache.h".
(reread_symbols): Use bcache_xfree.
(reread_symbols): Use bcache_xmalloc and bcache_xfree.
(add_psymbol_to_list): Pass psymbol_cache by value.
(add_psymbol_with_dem_name_to_list): Ditto.

* objfiles.h: Update copyright.
(struct bcache): Declare opaque.  Do not include "bcache.h".
(struct objfile): Change psymbol_cache and macro_cache to ``struct
bcache'' pointers.
* dwarf2read.c (macro_start_file): Pass macro_cache by value.

* objfiles.c: Include "bcache.h".  Update copyright.
(allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
macro_cache.
(free_objfile): Use bcache_xfree.
2002-07-12 15:23:10 +00:00
gdbadmin 280cf94f94 *** empty log message *** 2002-07-12 00:00:02 +00:00
Grace Sainsbury 444199e7c0 * monitor.c (monitor_fetch_register): Make name a constant.
(monitor_store_register): Same.
2002-07-11 21:00:39 +00:00
Daniel Jacobowitz 261397f84f 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
Based on patch from Daniel Berlin <dberlin@dberlin.org>.
	* buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
	(finish_block) For non-function blocks, hash the symbol table.  For
	function blocks, mark the symbol table as unhashed.
	* minsyms.c (msymbol_hash): Return hash value without taking modulus.
	(msymbol_hash_iw): Likewise.
	(add_minsym_to_hash_table): Take modulus of msymbol_hash's return
	value.
	(add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
	(lookup_minimal_symbol): Likewise for both.
	* symtab.h (struct block): Add `hashtable' flag.  Comment the
	hashtable.
	(BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
	(ALL_BLOCK_SYMBOLS): Update.
	(BLOCK_SHOULD_SORT): Do not sort hashed blocks.
	(struct symbol): Add `hash_next' pointer.
	* symtab.c (lookup_block_symbol): Search using the hash table when
	possible.
	(find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
	(search_symbols, find_addr_symbol): Likewise.

	* dstread.c (process_dst_block): Clear hashtable bit for new block.
	(read_dst_symtab): Likewise.
	* jv-lang.c (get_java_class_symtab): Likewise.
	* mdebugread.c: Include "gdb_assert.h".
	(shrink_block): Assert that the block being modified is not hashed.
	* coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
	* symmisc.c (free_symtab_block): Walk the hash table when freeing
	symbols.
	(dump_symtab): Recognize hashed blocks.
	* printcmd.c (print_frame_args):  Assert that function blocks do not
	have hashed symbol tables.
	* ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
	(fill_in_ada_prototype, debug_print_block): Likewise.
	(ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS.  Handle hash tables.
2002-07-11 20:46:19 +00:00
Corinna Vinschen 6f0eaa018a * stack.c (print_frame): Use result of frame_address_in_block()
instead of fi->pc when evaluating symbols.
	(backtrace_command_1): Ditto.
2002-07-11 19:29:08 +00:00
Andrew Cagney a208b0cb2b * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
Make static.
* arm-tdep.c (arm_register_name): Make return type constant.
2002-07-11 19:25:13 +00:00
Andrew Cagney 5ae5f59288 Fix some K&R isms. 2002-07-11 13:50:50 +00:00
Joel Brobecker 52d309e45f * gdb.base/attach.exp: Add patterns to match output from /proc-based
systems.
       Move comments in expect statements to inside the actions, so that they
       don't get matched against.
2002-07-11 00:51:37 +00:00
gdbadmin 96aea4f7e4 *** empty log message *** 2002-07-11 00:00:02 +00:00
Mark Kettenis ff683d9ee1 * gdb.base/interrupt.exp: Setup xfail for all i386 BSD's on "call
function when asleep" test.
2002-07-10 23:00:57 +00:00
Andrew Cagney a6b6b089bd * wince.c (_initialize_wince): Rename _initialize_inftarg.
* win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
2002-07-10 22:38:05 +00:00
Andrew Cagney b535675370 * gdb.base/page.exp: Rewrite to handle problems with very long
`info set' output.  Update copyright.
2002-07-10 21:57:56 +00:00
Grace Sainsbury a1789893d3 * NEWS: Mention m68k, mcore multi-arching.
* MAINTAINERS: Change status of m68k, mcore to reflect
multi-arching.
2002-07-10 17:34:02 +00:00
Daniel Jacobowitz 02f0d45d87 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
* valops.c (find_overload_match): Free oload_syms.
2002-07-10 17:18:16 +00:00
Joel Brobecker 4a2b4636a2 * gdb.texinfo (Create a release candiate): Add the location
where the proper version of autoconf can be retrieved.
2002-07-10 16:07:19 +00:00