Commit Graph

7827 Commits

Author SHA1 Message Date
Keith Seitz 94b66fa77d * varobj.c (c_type_of_child): Use get_target_type instead
of TYPE_TARGET_TYPE.
2002-09-24 18:50:34 +00:00
Fernando Nasser 53cb0458d6 * source.c (get_current_or_default_source_symtab_and_line): Remove
function.
	(set_default_source_symtab_and_line): New function. Attempts to
	determine a source file to list lines from if one is not currently
	defined.
	(get_current_source_symtab_and_line): Initialize sal.pc and
        sal.end fields.
	(set_current_source_symtab_and_line): Mark argument as const.
	* source.h: Update declarations and comments.
	* linespec.c (decode_line_1): Replace call to removed routine above.
	* stack.c (print_frame_info_base): Ditto.
	* cli/cli-cmds.c (edit_command): Ditto.
	(list_command): Ditto.
2002-09-22 22:18:41 +00:00
Fernando Nasser c214a6fd4d * source.c (get_current_source_symtab_and_line): Initialize sal.pc and
sal.end fields.
	(get_current_or_default_source_symtab_and_line): Ditto.
	* breakpoint.c (parse_breakpoint_sals): Use correct accessor function
	so we do not cause a new source symtab to be searched for (reverting an
	unintentional change from the 2002-09-20 patch).
	* scm-lang.c (scm_unpac): Ditto.
2002-09-22 20:29:52 +00:00
Andrew Cagney cc3b68a5c7 2002-09-21 Andrew Cagney <cagney@redhat.com>
* complaints.c (symfile_explanations): Remove new-line from
	``isolated_message''.
	(vcomplaint): When ISOLATED_MESSAGE, force a line break.
	(clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
2002-09-21 16:36:33 +00:00
Nick Clifton 5835abe726 NEWS: Announce that V850EA ISA is no longer supported.
v850-tdep.c: Remove reference to bfd_mach_v850ea.
2002-09-21 11:55:17 +00:00
David Carlton 06ba1b39d7 2002-09-20 David Carlton <carlton@math.stanford.edu>
* Makefile.in (c-lang.o): Correct dependencies.
	(utils.o): Gather dependencies.
	(charset.o): Move.
2002-09-20 18:14:49 +00:00
David Carlton a15ef5f5e3 2002-09-20 David Carlton <carlton@math.stanford.edu>
* c-lang.c: #include "gdb_string.h"
2002-09-20 17:37:11 +00:00
Fernando Nasser 878854263f From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
* cli/cli-cmds.c (list_command): New function.  Implements the new
        cli edit command.
        (_init_cli_cmds): Add new command definition.
        * gdb.1: Document edit command.
        * doc/gdb.texinfo: Document edit command.
2002-09-20 15:07:15 +00:00
Fernando Nasser 0378c33231 * source.c: Make global variables current_source_symtab and
current_source_line static.
        (list_command): Moved to cli/cli-cmds.c.
        (ambiguous_line_spec): Moved to cli/cli-cmds.c.
        (get_first_line_listed): New accessor function.
        (get_lines_to_list): New accessor function.
        (get_current_source_symtab_and_line): New function. Retrieves the
        position in the source code that we consider current.
        (get_current_or_default_source_symtab_and_line): New function.
        Like the above but attempts to determine a default position if one
        is not currently defined.
        (set_current_source_symtab_and_line): New function. Sets the source
        code position considered current and returns the previously set one.
        (clear_current_source_symtab_and_line): Reset stored information about
        a current source line.
        (_initialize_source): Remove registration for the "list" command and
        its alias.
        * source.h: Add declarations for the new functions above.
        * symtab.h: Remove declarations for the global variables mentioned
        above.
        * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
        obtain current source line.
        * linespec.c (decode_line_1): Ditto.
        * macroscope.c (default_macro_scope): Ditto.
        * scm-lang.c (scm_unpac): Ditto.
        * stack.c (print_frame_info_base): Ditto.
        * symfile.c (clear_symtab_users): Ditto.
        * symtab.c (decode_line_spec): Ditto.
        * cli/cli-cmds.c (list_command): Moved here from source.c.
        (ambiguous_line_spec): Moved here from source.c.
        (_init_cli_cmds): Add definition for "list" and its alias.
        * Makefile.in: Update dependencies.
2002-09-20 14:58:59 +00:00
Corinna Vinschen ddd216eaca * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
with what gcc thinks is correct.
2002-09-20 14:22:44 +00:00
Corinna Vinschen 6d30505267 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
multiple register push instruction.
2002-09-20 12:08:37 +00:00
Kevin Buettner 234b45d446 Add support for distinct host and target character sets. 2002-09-20 00:24:01 +00:00
Joel Brobecker 525d6a611f * ada-exp.y: Add missing semicolons to end rules. Fixes a
bison 1.35 warning.
2002-09-19 13:59:26 +00:00
Richard Earnshaw 3ed93867e8 * gdb_mbuild.sh: New file. 2002-09-19 10:11:41 +00:00
Andrew Cagney 5fb2031a06 Credit Apple and AdamF for their part in the objective C patches. 2002-09-19 04:26:26 +00:00
Andrew Cagney 437666f82f Fix (C) and credit Michael Snyder with objc-lang.c. 2002-09-19 04:12:10 +00:00
Andrew Cagney 389e51db10 Revert previous change. Not obvious. 2002-09-19 03:58:41 +00:00
Michael Snyder 3b4efeaa2d 2002-09-18 Michael Snyder <msnyder@redhat.com>
Preliminary support for Objective-C:
	* defs.h (language_objc): New enum value.
	(puts_filtered_tabular): Declaration only, exported from utils.c.
	(skip_quoted): Delete, declared in completer.h.
	* c-exp.y: Include completer.h.
	* p-exp.y: Ditto.
	* jv-exp.y: Ditto.
	* expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
	New operator enum values.
	* language.h (CAST_IS_CONVERSION): Test for language_objc.
	* language.c (binop_result_type): Handle language_objc case.
	(integral_type, character_type, string_type, boolean_type,
	structured_type, binop_type_check): Ditto.
	* symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
	(struct objc_specific): Add to general_symbol_info.
	(SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
	(SYMBOL_DEMANGLED_NAME): Handle objc case.
	* parser-defs.h (struct objc_class_str): New struct type.
	(start_msglist, end_msglist, add_msglist): Declaration only,
	exported from objc-lang.c.
	* value.h (value_of_local, value_nsstring,
	call_function_by_hand_expecting_type): Exported from valops.c.
	* valops.c (find_function_addr): Export.
	(call_function_by_hand_expecting_type): New function.
	(value_of_local): New function.
	* symfile.c (init_filename_language_table): Add ".m" extension
	for Objective-C.
	* utils.c (puts_filtered_tabular): New function.
	(fprintf_symbol_filtered): Add objc demangling support (disabled).
	(set/show demangle): Extend help-string to refer to ObjC.
	* elfread.c (elf_symtab_read): Skip Objective-C special symbols.
	* stabsread.c (symbol_reference_defined): Objective-C symbols
	may contain colons: make allowances when scanning stabs strings
	for colons.
	(objc_find_colon): New function.
	* printcmd.c (address_info): If language == objc then print
	"self" instead of "this".
	* parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
	OP_NSSTRING, and OP_SELF.
	(prefixify_subexp): Ditto.
	* source.c (print_source_lines): Mention objc in comment.
	* breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
	method names.
2002-09-19 01:34:51 +00:00
Andrew Cagney b9caf5053f 2002-09-18 Andrew Cagney <ac131313@redhat.com>
* complaints.h: Update copyright.
	(struct complaints): Declare.
	(struct complaint): Make `message' constant.
	(internal_complaint): Declare.
	(complaint): Declare.
	(complaint_root): Delete declaration.
	(symfile_complaints): Delete declaration.
	(struct complaints): Add opaque declaration.
	(clear_complaints): Add a complaints parameter.
	* complaints.c: Update copyright.
	(enum complaint_series): Define.
	(complaint_root): Delete.
	(struct complaints): Define.
	(complaint_sentinel, symfile_complaint_book): New variables.
	(symfile_explanations, symfile_complaints): New variables.
	New variables.
	(get_complaints): New function.
	(vcomplaint): New function.
	(complaint): New function.
	(internal_complaint): New function.
	(complain): Call vcomplain with symfile_complaint.
	(clear_complaints): Rewrite.
	(_initialize_complaints): Use add_setshow_command.
	* Makefile.in (complaints.o): Update dependencies.
	* symfile.c (syms_from_objfile): Add symfile_complaints parameter
	to call to clear_complaints.
	(new_symfile_objfile, reread_symbols): Ditto.
	(oldsyms_complaint): Delete.
	(empty_symtab_complaint, unknown_option_complaint): Delete.
	(free_named_symtabs): Use complaint instead of complain.
2002-09-19 00:42:41 +00:00
Michael Snyder d2e6263c4a 2002-09-18 Michael Snyder <msnyder@redhat.com>
* objc-lang.c: First clean-up round: comments, indentation.
	* objc-lang.h: Ditto.
	* objc-lang.y: Ditto.
2002-09-19 00:39:38 +00:00
Andrew Cagney dec43320d9 2002-09-18 Andrew Cagney <ac131313@redhat.com>
* maint.c (maintenance_internal_error): Print the parameter as the
	error message.
	(maintenance_internal_warning): New function.
	(_initialize_maint_cmds): Add command `maint internal-warning'.

	* defs.h (internal_warning, internal_vwarning): Declare.
	* utils.c (struct internal_problem): Define.
	(internal_vproblem): New function.
	(internal_warning): New function.
	(internal_vwarning): New function.
	(internal_warning_problem, internal_error_problem): New variables.
	(internal_verror): Just call internal_vproblem.

Index: testsuite/ChangeLog
2002-09-18  Andrew Cagney  <ac131313@redhat.com>

	* gdb.base/maint.exp: Check `help maint internal-warning'.
2002-09-18 23:53:52 +00:00
Michael Snyder b81654f1c0 2002-09-18 Michael Snyder <msnyder@redhat.com>
* objc-lang.c: New file, support for Objective-C.
	Preliminary check-in, not yet integrated into gdb.
        * objc-lang.h: New file.
        * objc-exp.y:  New file.
2002-09-18 23:29:20 +00:00
Andrew Cagney 7bda5e4ae2 2002-09-18 Andrew Cagney <ac131313@redhat.com>
* infrun.c (signal_stop_update): Convert definition to ISO C.
	(signal_print_update): Ditto.
	(signal_pass_update): Ditto.
	* inflow.c (terminal_save_ours): Ditto.
2002-09-18 22:44:31 +00:00
Andrew Cagney 5247b4187f 2002-09-18 Andrew Cagney <ac131313@redhat.com>
* h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
	comments.
2002-09-18 22:17:41 +00:00
Andrew Cagney fc60962c86 2002-09-18 Andrew Cagney <ac131313@redhat.com>
* config/djgpp/fnchange.lst: Handle name clashes between
	bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
	bfd/coff-tic80.c.
2002-09-18 22:09:21 +00:00
Andrew Cagney 0542c38179 Fix GNU/Linux tipo. 2002-09-18 22:00:22 +00:00
Adam Fedor 5b924b9bda Add myself to the Write After Approval list. 2002-09-18 21:52:55 +00:00
Jim Blandy 5afc051b4b * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
texthigh and textlow to reader-specific structs caused
objfile_relocate to miss them.  This is fixable, but the work that
the change was supposed to prepare GDB for never got done anyway.
2002-09-18 20:47:39 +00:00
David Carlton eb9443807a 2002-09-18 David Carlton <carlton@math.stanford.edu>
* MAINTAINERS: Alphabetize Write After Approval list.
2002-09-18 17:56:59 +00:00
Daniel Jacobowitz 948e66d973 Fix PR gdb/709
* values.c (value_static_field): Call read_var_value.
2002-09-18 15:43:47 +00:00
Andrew Cagney dc60453953 2002-09-18 Andrew Cagney <ac131313@redhat.com>
* valops.c (hand_function_call): Align the initial stack pointer
	and STRUCT_ADDR using frame_align.  When STRUCT_RETURN and
	FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
	return value.
	* mips-tdep.c (mips_frame_align): New function.
	(mips_gdbarch_init): Set frame_align.
	* gdbarch.sh (FRAME_ALIGN): New method.
	* gdbarch.h, gdbarch.c: Re-generate.
2002-09-18 15:37:18 +00:00
Michal Ludvig cb7e422f1e 2002-09-18 Michal Ludvig <mludvig@suse.cz>
* x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
	registers.
2002-09-18 11:24:02 +00:00
Andrew Cagney a094c6fb43 2002-09-17 Andrew Cagney <ac131313@redhat.com>
* NEWS: Mention that MIPS $fp behavior changed.
	* mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
 	reference to FP_REGNUM.
	(mipsnbsd_cannot_store_register): Ditto.
	* mips-linux-nat.c: Update copyright.
 	(mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
	(mips_linux_cannot_store_register): Ditto.
	* mips-linux-tdep.c (supply_gregset): Ditto.  Update copyright.
	* config/mips/tm-mips.h: Update copyright.
 	(FP_REGNUM): Delete macro.
	(MIPS_REGISTER_NAMES): Replace "fp" with "".
	* config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
	* mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
	(mips_r3041_reg_names, mips_r3051_reg_names)
 	(mips_r3081_reg_names): Replace "fp" with "".
	Fix PR gdb/480.
2002-09-17 23:26:02 +00:00
Theodore A. Roth 45cf40d1cf * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
generic_read_register_dummy() (PR gdb/703).
(avr_push_return_address): #if 0 out unused vars.
(avr_gdbarch_init): Enable use of avr_push_return_address().
2002-09-17 23:08:45 +00:00
Michael Snyder d76ba2a58e Fix thinko: m32r, not mips! 2002-09-17 23:00:31 +00:00
Michael Snyder c7e701b54b 2002-09-17 Michael Snyder <msnyder@redhat.com>
* mips-stub.c (restore_and_return): Postpone restoring of PSW.
        RTE will take care of it.
2002-09-17 22:58:01 +00:00
Andrew Cagney 20bcf01c7a 2002-09-17 Andrew Cagney <ac131313@redhat.com>
* arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
	invalid, return SP_REGNUM.
2002-09-17 21:18:54 +00:00
Andrew Cagney 009a997142 fix date. 2002-09-17 21:01:01 +00:00
Michael Snyder 21f87145aa 2002-08-13 Michael Snyder <msnyder@redhat.com>
* mips-tdep.c (mips_pop_frame): Read saved values of floating
	point registers without sign extension.
2002-09-17 20:54:02 +00:00
Andrew Cagney 135c175f57 2002-09-17 Andrew Cagney <cagney@redhat.com>
* h8300-tdep.c (h8300_frame_chain):
	(h8300_frame_saved_pc):

	* blockframe.c (deprecated_read_register_dummy): Rename
	generic_read_register_dummy.
	* frame.c (frame_unwind_signed_register): New function.
	(frame_unwind_unsigned_register): New function.
	* frame.h (frame_unwind_signed_register): Declare.
	(frame_unwind_unsigned_register): Declare.
	(deprecated_read_register_dummy): Rename
	generic_read_register_dummy.

	* xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
	* rs6000-tdep.c (rs6000_frame_saved_pc): Update.
	* s390-tdep.c (s390_frame_saved_pc_nofix): Update.
	(s390_frame_chain): Update.
	* v850-tdep.c (v850_find_callers_reg): Update.
	(v850_frame_saved_pc): Update.
	* m32r-tdep.c (m32r_init_extra_frame_info): Update.
	(m32r_find_callers_reg): Update.
	(m32r_frame_saved_pc): Update.
	* sh-tdep.c (sh_find_callers_reg): Update.
	(sh64_get_saved_pr): Update.
	(sh_init_extra_frame_info): Update.
	(sh_init_extra_frame_info): Update.
	(sh64_init_extra_frame_info): Update.
	(sh64_init_extra_frame_info): Update.
	* mcore-tdep.c (mcore_find_callers_reg): Update.
	(mcore_frame_saved_pc): Update.
	(mcore_init_extra_frame_info): Update.
	* i386-tdep.c (i386_frame_saved_pc): Update.
	* ia64-tdep.c (ia64_frame_saved_pc): Update.
	(ia64_init_extra_frame_info): Update.
	(ia64_init_extra_frame_info): Update.
	* d10v-tdep.c (d10v_frame_saved_pc): Update.
	* cris-tdep.c (cris_init_extra_frame_info): Update.
	* avr-tdep.c (avr_frame_chain): Update.
	(avr_init_extra_frame_info): Update.
	(avr_frame_saved_pc): Update.
	* arm-tdep.c (arm_find_callers_reg): Update.
	(arm_init_extra_frame_info): Update.
	(arm_frame_saved_pc): Update.
2002-09-17 20:42:01 +00:00
Tom Tromey a741e51424 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
is "'".
2002-09-17 17:01:47 +00:00
Corinna Vinschen d1a8e808fa * MAINTAINERS: Remove "non multi-arched" text from h8300.
* h8300-tdep.c (h8300_next_prologue_insn) Renamed from
	NEXT_PROLOGUE_INSN.
	(h8300_examine_prologue): Call h8300_next_prologue_insn instead of
	NEXT_PROLOGUE_INSN.
2002-09-17 15:54:26 +00:00
Joel Brobecker d9025a1885 * osfsolib.c: Remove file, replaced by solib-osf.c.
* Makefile.in: Remove compilation rules for osfsolib.c.
2002-09-17 04:45:50 +00:00
David Carlton 1b2ef1b64f 2002-09-16 David Carlton <carlton@math.stanford.edu>
* cp-valprint.c (cp_print_class_method): Correct args to
	check_stub_method_group.
2002-09-16 22:02:46 +00:00
Corinna Vinschen 928e48af4f * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
`set architecture'.  Unify naming convention of functions.
	(h8300_skip_prologue): Improve prologue analysis.
	(h8300_push_arguments): Rewritten to more closely match GCC's
	bizarre argument-passing behavior, along with the comment describing
	said behavior.
	* remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
	* config/h8300/tm-h8300.h: Multiarch.  Just keep stuff needed by
	sim, remote-e7000.c, remote-hms.c and remote.c
2002-09-16 15:03:17 +00:00
Mark Kettenis 5e3397bbf7 * i386-tdep.c (gdb_print_insn_i386): Removed.
(i386_print_insn): New function.
(i386_gdbarch_init): Set print_insn to i386_print_insns.
(_initialize_i386_tdep): Don't initialize tm_print_insn and
tm_print_insn_info.
2002-09-15 13:53:36 +00:00
Mark Kettenis f710f4fc2c * gdbtypes.c (check_stub_method_group): Initialize found_stub to
zero.
2002-09-14 15:39:52 +00:00
Corinna Vinschen db54fef427 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
for IN_SIGTRAMP to here.  Use IN_SIGTRAMP only if it's defined.
	Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
2002-09-14 09:40:36 +00:00
Christopher Faylor 2becadeece * win32-nat.c (child_create_inferior): Honor 'tty' command. 2002-09-14 03:28:23 +00:00
Daniel Jacobowitz de17c821b3 * gdbtypes.c (check_stub_method): Make static.
(check_stub_method_group): New function.
        * gdbtypes.h: Update prototypes.
        * cp-support.c: New file.
        * cp-support.h: New file.

        * stabsread.c: Include "cp-abi.h" and "cp-support.h".
        (update_method_name_from_physname): New function.
        (read_member_functions): Correct method names for operators
        and v3 constructors/destructors.  Separate v2 constructors and
        destructors.
        * Makefile.in (stabsread.o): Update dependencies.
        (SFILES): Add cp-support.c.
        (COMMON_OBS): Add cp-support.o.
        (cp_support_h, cp-support.o): Add.

        * cp-valprint.c (cp_print_class_method): Call
        check_stub_method_group instead of check_stub_method.  Remove
        extraneous QUITs.
        * p-valprint.c (pascal_object_print_class_method): Likewise.
        * valops.c (search_struct_method): Likewise.
        (find_method_list, value_struct_elt_for_reference): Likewise.
2002-09-14 02:09:39 +00:00