Commit Graph

12704 Commits

Author SHA1 Message Date
Daniel Jacobowitz 6d12fc3d08 * gdbint.texinfo (CPLUS_MARKER): Remove item. 2002-10-11 14:01:04 +00:00
gdbadmin cf4e23066f *** empty log message *** 2002-10-11 00:00:02 +00:00
Marko Mlinar 967c0d836c Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C 2002-10-10 07:41:37 +00:00
gdbadmin 6bfb5a1c9d *** empty log message *** 2002-10-10 00:00:32 +00:00
Marko Mlinar f74fa174bf Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C 2002-10-09 11:59:54 +00:00
Jim Blandy 57349743d5 2002-10-08 Petr Sorfa <petrs@caldera.com>
Revised and re-submitted by John Wolfe <jlw@caldera.com>

Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
so we can work on more than one compilation unit at a time.  This
helps prepare GDB to handle inter-CU die references.
* dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
the code to be defined before struct comp_unit_head.
(comp_unit_head): Added new members - offset, cu_head,
begin_die, next and dwarf2_abbrevs.
(dwarf2_abbrevs): Removed single static var; now member of
struct comp_unit_head.
dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
members.
(psymtab_to_symtab_1): Changed to work with the new
struct comp_unit_head.
(dwarf2_read_abbrevs): Now accepts a cu_header parameter and
constructs the dwarf2_abbrevs[] inside the cu_header.
(dwarf2_empty_abbrev_table): Now expects a ptr to a
dwarf2_abbrev table to clean up.
(dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
handling of dwarf2_abbrevs inside the cu_header.
(read_partial_die): Now supports the call to the new
dwarf2_lookup_abbrev.
(read_full_die): Now supports the call to the new
dwarf2_lookup_abbrev.
2002-10-09 04:43:49 +00:00
gdbadmin 3820f9c969 *** empty log message *** 2002-10-09 00:00:02 +00:00
gdbadmin d8ac458a38 *** empty log message *** 2002-10-08 00:00:32 +00:00
gdbadmin 33d77d9173 *** empty log message *** 2002-10-07 00:00:32 +00:00
Christopher Faylor 4092aadbf4 * Makefile.in (install-gdbtk): Add missing continuation backslash to insure
that shell variables, such as "transformed_name" are propagated to later shell
statements in rule.
2002-10-06 19:53:52 +00:00
Mark Kettenis af0b251250 * config/i386/nm-i386sco.h: Add protection against
multiple-inclusion.  Include "i386/nm-i386v.h".
(REGISTER_U_ADDR): Remove define.
(i386_register_u_addr): Remove prototype.
2002-10-06 18:37:13 +00:00
gdbadmin cace1e4b25 *** empty log message *** 2002-10-06 00:00:32 +00:00
gdbadmin bda09c6aa5 *** empty log message *** 2002-10-05 00:00:31 +00:00
Michael Snyder d6020d455d 2002-10-04 Michael Snyder <msnyder@redhat.com>
* m32r-stub.c (handle_exception): Make sure exception is "trap"
	before treating it as a single-step event.
2002-10-04 22:17:36 +00:00
Adam Fedor 7248f48e57 2002-10-03 Adam Fedor <fedor@gnu.org>
* objc-lang.c: ARI fixes.  Change string.h to gdb_string.h.
	(objc_demangle): Remove assignment in if statements, Replace
	free with xfree.
	(add_msglist): Likewise.
	(end_msglist): Likewise.
	(complare_selectors): Likewise.
	(selectors_info): Likewise.
	(compare_classes): Likewise.
	(classes_info): Likewise.
	(print_object_command): Likewise.
	(find_objc_msgcall_submethod): Replace PTR with void *.
	* objc-lang.h: Remove check for __STDC__.
2002-10-04 01:18:48 +00:00
gdbadmin 62823d4d45 *** empty log message *** 2002-10-04 00:00:32 +00:00
Jeff Johnston 52c6a6ac2d 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
* ui-out.h (ui_out_field_fmt_int): New prototype.
        * ui-out.c (ui_out_field_fmt_int): New function allowing specification
        of field width and alignment.
        * stack.c (print_frame_info_base): When printing frame level, use
        ui_out_field_fmt_int with a width of 2 and left alignment.  Fix for
        PR gdb/192
2002-10-03 22:34:58 +00:00
Jeff Johnston c18008c5d8 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
* mi-return.exp: Change expected frame output to remove extraneous
        space in level field when frame level is single digit.  Part of
        fix for PR gdb/192.
        * mi-stack.exp: Ditto.
        * mi1-return.exp: Ditto.
        * mi1-stack.exp: Ditto.
2002-10-03 22:33:15 +00:00
Jeff Johnston 9f2aab2d0a 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
* gdbmi.texinfo: Fix examples that show frames to remove
        extraneous blank in level field.  Part of fix for PR gdb/192.
2002-10-03 22:31:31 +00:00
Jeff Johnston 8d19fbd261 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
* gdbint.texinfo (Item Output Functions): Add new ui_out_field_fmt_int
        interface definition.
2002-10-03 22:30:01 +00:00
Jeff Johnston 7e3cec1774 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
* MAINTAINERS: Add self to Write After Approval list.
2002-10-03 20:23:56 +00:00
Jeff Johnston 93cae4bfd9 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
* mi-var-block.exp: Change expected output from -var-update
        command to expect list format for "changelist".  Fix for
        PR gdb/672.
        * mi-var-cmd.exp: Ditto.
        * mi-var-child: Ditto.
2002-10-03 20:03:55 +00:00
Jeff Johnston 3a387118eb 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
* mi-cmd-var.c (mi_cmd_var_update): Fix for PR gdb/672.  For m2,
        output list begin and end for "changelist" rather than tuple begin/end.
        (varobj_update_one): For m2, add tuple begin and end for varobj
        update output.
2002-10-03 20:02:13 +00:00
Marko Mlinar a37295f900 add target specific commands; add myself to contributors list 2002-10-03 05:56:40 +00:00
Elena Zannoni a58dd3735c 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
* infcmd.c (interrupt_target_command_wrapper): Delete.
	(interrupt_target_command): Make non static.
	(nofp_registers_info): Make static.
	* stack.c (return_command_wrapper): Delete.
	(return_command): Make non static.
2002-10-03 02:34:07 +00:00
Elena Zannoni cee6ddebfc 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
* event-top.c (gdb_setup_readline): New function. Code moved from
	_initialize_event_loop().
	(_initialize_event_loop): Call gdb_setup_readline().
2002-10-03 01:23:50 +00:00
gdbadmin 6f6573ce7e *** empty log message *** 2002-10-03 00:00:32 +00:00
Andrew Cagney c4ed33b99b 2002-10-02 Andrew Cagney <ac131313@redhat.com>
* infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
	* gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
	* gdbarch.h, gdbarch.c: Re-generate.
2002-10-02 23:28:54 +00:00
Daniel Jacobowitz cef4f5dd72 Fix PR gdb/778
* gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
        before recursing.
        * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
        of fill_in_vptr_fieldno.
2002-10-02 22:01:53 +00:00
Jim Blandy 10abb1d48f * gdb.c++/casts.cc, gdb.c++/casts.exp: New test. 2002-10-02 21:46:56 +00:00
Elena Zannoni 36dc181bba 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
* inferior.h (registers_info, stepi_command, nexti_command,
        continue_command, interrupt_target_command): Export from infcmd.c.
        * frame.h (args_info, selected_frame_level_changed_hook,
        return_command): Export from stack.c.
        * v850ice.c (stepi_command, nexti_command, continue_command): use
        prototypes from inferior.h.
        * tracepoint.c (registers_info, args_info, locals_info): Use
        prototypes from frame.h and inferior.h.
        * Makefile.in (mi-main.o): Add dependency on frame.h.

2002-10-02  Elena Zannoni  <ezannoni@redhat.com>

        * mi-main.c (mi_cmd_exec_return): Don't use
        return_command_wrapper, use return_command instead.
        (mi_cmd_exec_interrupt): Don't use
        interrupt_target_command_wrapper, use interrupt_target_command
        instead.
        (return_command_wrapper, interrupt_target_command_wrapper):
        Delete.
        Include frame.h.

2002-10-02  Elena Zannoni  <ezannoni@redhat.com>

        * tui-hooks.c (selected_frame_level_changed_hook): Use the one
        exported from frame.h.
2002-10-02 21:33:59 +00:00
Andrew Cagney da3eff4919 2002-10-02 Andrew Cagney <ac131313@redhat.com>
* rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
	value in register 3 adjusted by ppc_gp0_regnum.
2002-10-02 21:21:47 +00:00
Andrew Cagney 6f99cb26f2 2002-10-02 Andrew Cagney <ac131313@redhat.com>
* rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
2002-10-02 21:18:57 +00:00
Marko Mlinar da615bee0d add myself to the Write After Approval list. 2002-10-02 06:06:06 +00:00
Alexandre Oliva 62a49b2cf4 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
of the section for the N64 ABI, fixed.
2002-10-02 01:28:55 +00:00
Alexandre Oliva d154bee237 * config/mips/tm-irix6.h: Include solib.h. 2002-10-02 01:27:59 +00:00
gdbadmin 389e69e944 *** empty log message *** 2002-10-02 00:00:13 +00:00
Elena Zannoni ed348accac 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
* dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
	GNU operators.
2002-10-01 23:51:43 +00:00
Andrew Cagney da0f9dcdbe 2002-10-01 Andrew Cagney <ac131313@redhat.com>
* NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
        and that "mi0" syntax has been removed.

2002-10-01  Andrew Cagney  <ac131313@redhat.com>

        * gdb.texinfo (Mode Options): Update --interpreter option.  "mi2"
        and "mi1" instead of "mi1" and "mi0".

2002-10-01  Andrew Cagney  <ac131313@redhat.com>

        * mi-main.c (mi2_command_loop): New function.
        (mi0_command_loop): Delete function.
        (_initialize_mi_main): Recognize, and default to, "mi2".  Do not
        recognize "mi0".
        * mi-out.c (mi_table_begin): Remove mi0 code.
        (mi_table_body, mi_table_end): Ditto.
        (mi_table_header, mi_open, mi_close): Ditto.
2002-10-01 21:15:43 +00:00
David Carlton bdf64bacd5 2002-09-30 David Carlton <carlton@math.stanford.edu>
* Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
	* ppc-sysv-tdep.c: #include "gdb_string.h".
	* remote-sds.c (getmessage): Add semicolon after 'retry' label to
	pacify GCC.
2002-10-01 19:26:05 +00:00
Andrew Cagney 1f609b42e3 2002-10-01 Andrew Cagney <ac131313@redhat.com>
* mi1-basics.exp: Copy of mi1-basics.exp MIFLAGS set "-i=mi1".
	* mi1-break.exp, mi1-console.exp, mi1-disassemble.exp: Ditto.
	* mi1-eval.exp, mi1-hack-cli.exp, mi1-pthreads.exp: Ditto.
	* mi1-read-memory.exp, mi1-regs.exp, mi1-return.exp: Ditto.
	* mi1-simplerun.exp, mi1-stack.exp, mi1-stepi.exp: Ditto.
	* mi1-until.exp, mi1-var-block.exp, mi1-var-child.exp: Ditto.
	* mi1-var-cmd.exp, mi1-var-display.exp, mi1-watch.exp: Ditto.
2002-10-01 16:01:37 +00:00
Andrew Cagney 54c2a1e693 2002-10-01 Andrew Cagney <ac131313@redhat.com>
* rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
	"vrsave"'s register number.
2002-10-01 14:57:55 +00:00
Andrew Cagney cedea778f2 2002-09-30 Andrew Cagney <ac131313@redhat.com>
* mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
	use frame_unwind_signed_register to obtain the PC.
	(mips_frame_chain): Handle a generic dummy frame.
	(mips_init_extra_frame_info): When a generic dummy frame, don't
	re-compute the frame base.
	(mips_pop_frame): Handle generic dummy frames.
	(mips_gdbarch_init): When generic dummy frames, set
	use_generic_dummy_frames, push_dummy_frame to
	generic_push_dummy_frame, pc_in_call_dummy to
	generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
	generic_save_dummy_frame_tos.
2002-10-01 01:30:10 +00:00
Andrew Cagney 68315eb83a 2002-09-30 Andrew Cagney <ac131313@redhat.com>
* blockframe.c (generic_find_dummy_frame): Rewrite.  Only test
	against TOP when TOP was explictly set.
	(generic_push_dummy_frame): Set TOP to zero.
2002-10-01 01:24:01 +00:00
gdbadmin ccc8590d3a *** empty log message *** 2002-10-01 00:00:32 +00:00
Elena Zannoni 3b8630c3eb 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
* event-loop.c (start_event_loop): Rename variable 'result' to
	'gdb_result', to avoid conflicts with upcoming intepreters changes.
2002-09-30 21:25:47 +00:00
Andrew Cagney c7ec4050c5 2002-09-29 Andrew Cagney <ac131313@redhat.com>
* mi-out.c (mi_version): New function.
	* mi-out.h (mi_version): Declare.
2002-09-30 20:18:52 +00:00
Keith Seitz 28ee05e924 * gdb-events.sh (selected_thread_changed): New event.
* gdb-events.c: Regenerated.
        * gdb-events.h: Regenerated.
2002-09-30 20:06:53 +00:00
Hans-Peter Nilsson 6eecb1c8dd * MAINTAINERS: Add self to Write After Approval list. 2002-09-30 16:05:31 +00:00
Fernando Nasser 92df71f044 * disasm.c: New file.
* disasm.h: New file.
	* mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
	(compare_lines): Ditto.
	(dump_insns): Ditto.
	(do_mixed_source_and_assembly): Moved to disasm.c. Added uiout argument.	(do_assembly_only): Ditto.
	(do_disassembly): Renamed to gdb_disassembly and moved to disasm.c.
	Sdded uiout argument.
	* Makefile.in: Add new files.  Reorder SFILES list. Update dependencies.	Include libgdb.a later in the insight executable.
2002-09-30 15:57:26 +00:00