Commit Graph

12780 Commits

Author SHA1 Message Date
Andrew Cagney 8f9cbe0185 2002-10-25 Andrew Cagney <cagney@redhat.com>
* MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
2002-10-25 14:08:44 +00:00
gdbadmin d257524c51 *** empty log message *** 2002-10-25 00:00:02 +00:00
Martin Hunt e8d96a5d56 2002-10-24 Martin M. Hunt <hunt@redhat.com>
* utils.c (string_to_core_addr): Revert patch from 11 Oct.
2002-10-24 23:46:09 +00:00
Elena Zannoni fe39c6533d 2002-10-24 Elena Zannoni <ezannoni@redhat.com>
* symtab.h (INIT_SAL): Delete macro.
	(init_sal): Export.
	* symtab.c (init_sal): New function.

	* ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
	to init_sal function call.
	(find_sal_from_funcs_and_line): Ditto.
	(all_sals_for_line): Ditto.
	* breakpoint.c (create_internal_breakpoint): Ditto.
	(create_fork_vfork_event_catchpoint): Ditto.
	(create_exec_event_catchpoint): Ditto.
	(parse_breakpoint_sals): Ditto.
	(watch_command_1): Ditto.
	(handle_gnu_4_16_catch_command): Ditto.
	(clear_command): Ditto.
	* hppa-tdep.c (child_enable_exception_callback): Ditto.
	* infcmd.c (run_stack_dummy): Ditto.
	* infrun.c (process_event_stop_test): Ditto.
	(check_sigtramp2): Ditto.
	(step_over_function): Ditto.
	* linespec.c (decode_line_2): Ditto.
	(decode_line_1): Ditto.
	* source.c (line_info): Ditto.
	* symtab.c (find_pc_sect_line): Ditto.
2002-10-24 21:02:53 +00:00
Michal Ludvig b64bbf8c48 Reindented. 2002-10-24 01:37:40 +00:00
Michal Ludvig baed091b2b 2002-10-24 Michal Ludvig <mludvig@suse.cz>
* dwarf2cfi.c (struct context)
	(struct context_reg): Moved to dwarf2cfi.h
	(context_alloc, frame_state_alloc, context_cpy):
	Made extern instead of static, removed prototypes.
	* dwarf2cfi.h (struct context)
	(struct context_reg): New, moved from dwarf2cfi.c
	(context_alloc, frame_state_alloc, context_cpy):
	New prototypes.
	* x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
	Changed from static to extern.
	(LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
	(LINUX_SIGCONTEXT_FP_OFFSET)
	(LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
	(x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
	(x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
	* x86-64-tdep.c (x86_64_gdbarch_init): Several
	set_gdbarch_*() calls now use x86-64 specific functions
	instead of DWARF2 CFI ones.
	* x86-64-tdep.h (x86_64_linux_in_sigtramp)
	(x86_64_linux_frame_chain, x86_64_init_frame_pc)
	(x86_64_init_extra_frame_info): New prototypes.
2002-10-24 01:27:43 +00:00
David Carlton c38da1aff1 2002-10-23 David Carlton <carlton@math.stanford.edu>
* linespec.c: #include "parser-defs.h".
	Delete prototype for find_template_name_end.
	* Makefile.in (linespec.o): Depend on $(parser_defs_h).
2002-10-24 00:13:57 +00:00
gdbadmin 1796d04a7c *** empty log message *** 2002-10-24 00:00:02 +00:00
Jeff Johnston 7b8e064773 2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
* mi-var-cmd.exp: Add tests to verify that a -var-assign that changes
        a value shows up in the changelist of a -var-update.  Part of fix
	for gdb/702.
        * mi1-var-cmd.exp: Ditto.
2002-10-23 23:57:28 +00:00
Jeff Johnston fb9b6b359f 2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
* NEWS: add recent mi fixes.
        * varobj.c (struct varobj): Add new "updated" flag.
        (new_variable): Default "updated" flag to 0.
        (varobj_set_value): Set "updated" flag to 1 if value
        changes.
        (varobj_update): Check varobj "updated" flag before
        comparing old and refreshed values.  Fix for
        PR gdb/702.
2002-10-23 23:54:33 +00:00
David Carlton 8da065d53c 2002-10-23 David Carlton <carlton@math.stanford.edu>
* parse.c (parse_exp_1): Use BLOCK_START.
	* x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
	SYMBOL_BLOCK_VALUE.
	* objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
2002-10-23 23:37:33 +00:00
David Carlton 87f2f08c7f 2002-10-23 David Carlton <carlton@math.stanford.edu>
* symtab.c: Delete cplusplus_hint.
	Delete prototype for find_template_name_end.
2002-10-23 23:36:16 +00:00
Elena Zannoni 88cda038b7 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
* symtab.h: Update comment.
2002-10-23 23:28:17 +00:00
Michael Snyder 2625d86c46 2002-10-23 Michael Snyder <msnyder@redhat.com>
* printcmd.c (address_info): Restore quotes in output.
	* valops.c (value_of_local): Restore quotes in error message.
2002-10-23 21:33:07 +00:00
Jeff Johnston 6ad4a2cfb3 2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
* mi-cmd-var.c: Change all remaining occurrences of ui_out_tuple_begin
        to make_cleanup_ui_out_tuple_begin_end.  Change all remaining
        occurrences of ui_out_list_begin to make_cleanup_ui_out_list_begin_end.         Use do_cleanups instead of ui_out_list_end or ui_out_tuple_end.  This
        is a fix for PR gdb/680.
        * mi-cmd-stack.c: Ditto.
        * mi-main.c: Ditto.
2002-10-23 21:17:51 +00:00
Elena Zannoni 9cc0d196fc 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
* symtab.c (symbol_demangled_name): New function.
	* symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
	turning most of it into a function.
	(symbol_demangled_name): Export.
2002-10-23 20:09:28 +00:00
Michael Snyder 19de93d0c6 2002-10-23 Michael Snyder <msnyder@redhat.com>
* valops.c (value_of_local): Restore quotes in error message.
2002-10-23 19:22:28 +00:00
Elena Zannoni 89aad1f99e 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
* symtab.c (symbol_init_language_specific): New function.
	* symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
	turning most of it into a function.
	(symbol_init_language_specific): Export.
2002-10-23 18:16:44 +00:00
David Carlton d9fa45febb 2002-10-23 David Carlton <carlton@math.stanford.edu>
* dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
	(dwarf_attr_name): Ditto.
	(dwarf_type_encoding_name): Ditto.
	(scan_partial_symbols): Descend into DW_TAG_namespace entries.
	(process_die): Handle DW_TAG_namespace,
	DW_TAG_imported_declaration, DW_TAG_imported_module.
	(read_namespace): New function.
2002-10-23 16:40:55 +00:00
Daniel Jacobowitz 322b3f65ca * gdb.threads/schedlock.c (args): Make unsigned. 2002-10-23 03:22:56 +00:00
gdbadmin fa6ae5ffb4 *** empty log message *** 2002-10-23 00:00:06 +00:00
Joel Brobecker 1045b512db * configure.in: Define NEW_PROC_API on Interix too.
* configure: Regenerate.
2002-10-22 20:21:56 +00:00
Keith Seitz 99615eb88f * mi-main.c (mi_cmd_thread_select): Only return MI_CMD_CAUGHT_ERROR
when we really did catch an error(). If we got GDB_RC_FAIL, return
        MI_CMD_ERROR instead.
2002-10-22 17:53:42 +00:00
Joel Brobecker 8ec413174a * configure: Regenerate using the proper version of autoconf. 2002-10-22 03:54:20 +00:00
Daniel Jacobowitz 8b1d7e37a4 * gdb.asm/asm-source.exp: Add "mips*-*" pattern. Update line
numbers.  Allow "foo2|selected stack frame".
        * gdb.asm/asmsrc1.s: Use gdbasm_declare and gdbasm_end.
        * gdb.asm/asmsrc2.s: Likewise.
        * gdb.asm/common.inc: Define gdbasm_declare and gdbasm_end.  Update
        comments.
        * gdb.asm/mips.inc: New file.
2002-10-22 01:43:37 +00:00
gdbadmin d1c1eb3f72 *** empty log message *** 2002-10-22 00:00:02 +00:00
Elena Zannoni 3987b9d413 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
* findvar.c (read_var_value): Temporarily disable TLS code, until
	complete TLS support is added.
2002-10-21 20:12:56 +00:00
Elena Zannoni 9d774e4455 2002-10-21 Jim Blandy <jimb@redhat.com>
Elena Zannoni  <ezannoni@redhat.com>

	* symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
	for thread local storage locations.
	(struct symbol): Add objfile field.
	(SYMBOL_OBJFILE): Define.
	* dwarf2read.c (is_thread_local): New static variable.
	(new_symbol): If variable is in thread local fill in address class
	and objfile appropriately.
	(decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
	stack operation.
	* printcmd.c (address_info): Print the information for thread
	local storage variable.
	* findvar.c (read_var_value): In case of thread local variable,
	defer to the target vector code to compute address.
2002-10-21 19:11:50 +00:00
Elena Zannoni 550633cbb1 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
* solib-svr4.c (svr4_fetch_objfile_link_map): New function.
        * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
2002-10-21 18:53:38 +00:00
Elena Zannoni bc4a16aedd 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
* solib-svr4.c (svr4_fetch_objfile_link_map): New function.
        * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
2002-10-21 18:42:40 +00:00
Elena Zannoni 407caf07a4 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
* symtab.h (address_class):  Rename
	LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
	* hpread.c (hpread_process_one_debug_symbol): Ditto.
	* printcmd.c (address_info): Ditto.
	* findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
2002-10-21 14:55:18 +00:00
gdbadmin b0b05254fc *** empty log message *** 2002-10-21 00:00:33 +00:00
Mark Kettenis afdb036ab6 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
DBREG_DRX macro to acces debug registers.
2002-10-20 21:18:59 +00:00
Mark Kettenis ca02e098c5 * Makefile.in (i386obsd-tdep.o): New target. 2002-10-20 20:27:19 +00:00
Mark Kettenis 03cc47f70c * solib-sunos.c: Include "bcache.h" and "regcache.h".
* Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
2002-10-20 14:38:26 +00:00
Mark Kettenis 005328e342 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
* config/i386/obsd.mt: New file.
* i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
* i386obsd-nat.c (_initialize_i386obsd_nat): Set
i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
* i386obsd-tdep.c: New file.
2002-10-20 11:54:40 +00:00
David O'Brien 05e17ccd8e 2002-10-19 David O'Brien <obrien@FreeBSD.org>
* configure.tgt (alpha*-*-freebsd*, i[3456]86-*-freebsd*,
	sparc64-*-freebsd*): Combine to make *-*-freebsd* with gdb_target set
	to fbsd.  Removes need for additional freebsd tupples.
2002-10-20 05:37:33 +00:00
Adam Fedor 9c96f9f287 (name_not_typename): Fix invalid comment. 2002-10-20 01:38:40 +00:00
gdbadmin 1343a4e4c4 *** empty log message *** 2002-10-20 00:00:32 +00:00
Mark Kettenis ce1ed4854e * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
to allocate partial syms and macro byte caches.
2002-10-19 23:05:27 +00:00
gdbadmin a311d50c16 *** empty log message *** 2002-10-19 00:00:34 +00:00
David Carlton 1efc7aaaba 2002-10-18 David Carlton <carlton@math.stanford.edu>
* symtab.h: Delete 'struct source' and 'struct sourcevector'.

(Also, I fixed up a date reference for an earlier ChangeLog entry of
mine; sorry about that.)
2002-10-18 23:47:53 +00:00
Adam Fedor 7e1d63ec94 stabsread.c (find_name_end): New function.
(define_symbol): Use it.
2002-10-18 22:49:42 +00:00
Daniel Jacobowitz 6e8d29a92c * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
* config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
        * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
        * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2002-10-18 19:34:39 +00:00
Adam Fedor 5e2fe5b8f8 gdb.base/default.exp: Update expected output to include 'ObjC'.
gdb.base/help.exp: Likewise.
2002-10-18 18:54:55 +00:00
Kevin Buettner f2abfe65b6 * gdbint.texinfo (Address Classes): Fix problems with insertion
of ``{'' and ``}'' in example.
2002-10-18 18:50:43 +00:00
gdbadmin 8ba91e1718 *** empty log message *** 2002-10-18 00:00:04 +00:00
David Carlton 63ca651f75 2002-10-09 David Carlton <carlton@math.stanford.edu>
* symfile.h: Add opaque declaration for struct obstack.
	Declare obsavestring to take a const char *.
	* symfile.c (obsavestring): Make first argument a const char *.
2002-10-17 21:16:12 +00:00
Kevin Buettner abe1a5d0ef * gdb.base/constvars.c (struct crass, struct crisp): New structs.
* gdb.base/constvars.exp (ptype crass, ptype crisp): New tests.
2002-10-17 20:22:58 +00:00
Kevin Buettner b5b0480a10 Address Class documentation. 2002-10-17 18:33:36 +00:00