Commit Graph

20528 Commits

Author SHA1 Message Date
Joel Brobecker c7ba131ee0 * gdb.texinfo (Maintenance Commands): Add documentation for
the new "maint print target-stack" command.
2007-01-29 16:37:34 +00:00
Joel Brobecker 87680a1410 * target.c (maintenance_print_target_stack): New function.
(initialize_targets): Add new "maintenance print target-stack"
        command.
2007-01-29 16:36:01 +00:00
Daniel Jacobowitz 704a4f78bb * gdb.base/commands.exp: Call if_commands_test.
(gdb_test_no_prompt, if_commands_test): New.
2007-01-29 16:22:36 +00:00
Daniel Jacobowitz 0f48aa010e * remote-utils.c [USE_WIN32API] (read, write): Define.
(putpkt_binary, input_interrupt, readchar, getpkt): Use read and
	write.
2007-01-29 13:22:09 +00:00
gdbadmin 69554603f0 *** empty log message *** 2007-01-29 00:00:32 +00:00
Mark Kettenis e741bf94ae * gdb.threads/sigthread.c (NSIGS): Make bigger. 2007-01-28 16:45:35 +00:00
Mark Kettenis 1c3d648d5a * dwarf2read.c (new_symbol): Handle DW_AT_decl_file being zero. 2007-01-28 14:42:12 +00:00
Mark Kettenis 4590cfcbee Wrap long line. 2007-01-28 14:23:13 +00:00
Daniel Jacobowitz 607269ae71 * dwarf2loc.h (struct dwarf2_locexpr_baton): Change size to a long.
(struct dwarf2_loclist_baton): Likewise.
2007-01-28 01:38:40 +00:00
gdbadmin aab432b0ca *** empty log message *** 2007-01-28 00:00:03 +00:00
Eli Zaretskii 40c03ae8b3 * cli/cli-script.c: Include breakpoint.h.
(build_command_line): Require arguments only for if and while commands.
	(get_command_line, execute_user_command, execute_control_command):
	Fix wording of warning messages.
	(print_command_lines): Print breakpoint commands.
	(execute_control_command): Call commands_from_control_command to
	handle the `commands' command inside a body of a flow-control command.
	(read_next_line): Recognize the `commands' command and build a
	command line structure for it.
	(recurse_read_control_structure, read_command_lines): Handle
	`commands' similarly to `if' and `while'.

	* breakpoint.c (get_number_trailer): Document the special meaning
	of NULL as the first argument PP.
	(commands_from_control_command): New function.

	* breakpoint.h (commands_from_control_command): Add prototype.

	* defs.h (commands_control): New enumerated value for enum
	command_control_type.
2007-01-27 12:30:46 +00:00
Andreas Schwab 474d0ad39b * gdb.dwarf2/dw2-basic.S: Use .2byte/.4byte/.8byte instead of
.short/.int/.quad in the dwarf sections.
	* gdb.dwarf2/dw2-intercu.S: Likewise.
	* gdb.dwarf2/dw2-intermix.S: Likewise.
2007-01-27 11:09:35 +00:00
gdbadmin a0cd56b3ba *** empty log message *** 2007-01-27 00:00:03 +00:00
Joel Brobecker 4b9eee8cc6 * ada-lang.c (ada_exception_breakpoint_ops): Fix typo in function name.
(ada_exception_sal): Update accordingly.
2007-01-26 21:31:06 +00:00
Jan Kratochvil e1f48eadc1 * c-valprint.c (c_val_print): Require strings to be of no-signed CHARs.
* NEWS: Describe CHAR array vs. string identifcation rules.
2007-01-26 20:54:16 +00:00
Jan Kratochvil 3a60f64edd * gdb.texinfo: Describe CHAR array vs. string identifcation rules. 2007-01-26 20:53:52 +00:00
Jan Kratochvil e784b426e6 * gdb.base/charsign.exp, gdb.base/charsign.c: New files.
* gdb.arch/i386-sse.exp: Check $xmm.v16_int8 printing as a number array.
	* gdb.base/printcmds.exp: Sign-provided CHARs now became arrays.
	* gdb.base/setvar.exp: Likewise.
2007-01-26 20:53:15 +00:00
Andreas Schwab 9a01813aed * gdb.base/corefile.exp: Allow non-empty argument list in reinit
test.
2007-01-26 14:55:27 +00:00
Andreas Schwab 37f08e0480 * gdb.base/multi-forks.exp ("restart $i"): Also match
__kernel_syscall_via_break.
2007-01-26 14:53:10 +00:00
Eli Zaretskii c582f8b627 *** empty log message *** 2007-01-26 08:57:09 +00:00
Eli Zaretskii e22ea45271 * gdb.texinfo (Compilation, Files, Bootstrapping, Bug Reporting):
Use @value{NGCC} instead of @value{GCC}.
2007-01-26 08:54:01 +00:00
gdbadmin 7cc7335ab6 *** empty log message *** 2007-01-26 00:00:34 +00:00
Paul Brook e150acc778 2007-01-25 Paul Brook <paul@codesourcery.com>
gdb/
	* arm-tdep.c (arm_get_next_pc): Fix bitfield off-by-one error.
2007-01-25 20:17:26 +00:00
gdbadmin c88fa7e550 *** empty log message *** 2007-01-25 00:00:02 +00:00
Jim Blandy 10fb19b6ab 2007-01-24 Jim Blandy <jimb@codesourcery.com>
* dwarf2loc.c (dwarf2_evaluate_loc_desc): When the location
	expression is empty, bother to return the 'optimized out' value we
	construct.  (Thanks to Carl Burch.)
2007-01-24 22:04:48 +00:00
Vladimir Prus 85d93f1df0 * varobj.c (c_value_of_root, c_value_of_child)
(cplus_describe_child): Don't call release_value.
2007-01-24 19:54:13 +00:00
Thiemo Seufer fcbd8a5cb7 * mips-linux-tdep.c (mips_linux_n64_rt_sigframe): Fix struct
initialization.
2007-01-24 13:37:07 +00:00
Vladimir Prus 2024f65ab8 Refactor getting children name, value and type access
for varobjs in C++.
        * varobj.c (get_type_deref): Remove.
        (adjust_value_for_child_access): New.
        (c_number_of_children): Use the above.
        (c_describe_child): Likewise.
        (enum accessibility): New.
        (match_accessibility): New function.
        (cplus_describe_child): New function.
        (cplus_name_of_child, cplus_value_of_child)
        (cplus_type_of_child): Reimplement in terms
        of cplus_describe_child.
        (cplus_number_of_children): Use
        adjust_value_for_child_access.
2007-01-24 11:08:47 +00:00
Vladimir Prus 6e2a9270a0 Fix computation of the 'editable' attribute and
value changeability for for references.
        * varobj.c (get_value_type): New function.
        (c_variable_editable): Use get_value_type.
        (varobj_value_is_changeable): Likewise.
2007-01-24 10:49:31 +00:00
Joel Brobecker 56163ce1d3 * source.c (find_and_open_source): Try rewriting the source
path inside filename if dirname is NULL.
2007-01-24 00:03:15 +00:00
gdbadmin 3ba257ccb2 *** empty log message *** 2007-01-24 00:00:34 +00:00
Joel Brobecker 8c6860bbe0 * dwarf2read.c (add_partial_symbol): Create an extra partial
symbol in the VAR_DOMAIN for Ada structures, unions or enums.
        (new_symbol): Likewise for symbols.
2007-01-23 23:57:47 +00:00
Nick Roberts e23110bbe4 (mi_cmd_execute): Call free_all_values. 2007-01-23 20:27:58 +00:00
Nick Roberts 6db6d2ca95 *** empty log message *** 2007-01-23 20:27:26 +00:00
Daniel Jacobowitz e515b47028 * Makefile.in (ALL_SUBDIRS): Add gdb.xml.
* configure: Regenerated.
	* configure.ac (AC_OUTPUT): Add gdb.xml/Makefile.
	* gdb.xml/Makefile.in, gdb.xml/tdesc-arch.exp,
	gdb.xml/tdesc-bogus.xml, gdb.xml/tdesc-errors.exp,
	gdb.xml/trivial.xml, gdb.xml/tdesc-unknown.xml: New files.
	* lib/gdb.exp (gdb_skip_xml_test): New function.
2007-01-23 17:11:55 +00:00
Vladimir Prus 7d85ee0220 * value.c (value_primitive_field): Copy the full 'location'
contents, instead of assuming that copying ADDRESS will
        bring over everything in the union.  Remove obsolete comment.
2007-01-23 13:13:03 +00:00
Daniel Jacobowitz f79b9530c6 * m32c-tdep.c (make_regs, m32c_analyze_prologue)
(m32c_skip_trampoline_code, m32c_m16c_address_to_pointer)
	(m32c_m16c_pointer_to_address): Separate code from declarations.
2007-01-23 13:06:32 +00:00
Daniel Jacobowitz 08d8bcd7cf From Nick Hudson:
* target.c (update_current_target): Correct typo.

	* gdb.base/sigrepeat.exp: Correct error message.
2007-01-23 13:03:20 +00:00
gdbadmin 4f96803ce2 *** empty log message *** 2007-01-23 00:00:03 +00:00
Corinna Vinschen 57fdbbbe8f * xstormy16-tdep.c (xstormy16_skip_prologue): Separate code from a
declaration.
2007-01-22 10:08:33 +00:00
gdbadmin dd029bc9d6 *** empty log message *** 2007-01-22 00:00:02 +00:00
Jan Kratochvil 58894217ea * dwarf2-frame.c (execute_cfa_program): New support of
`DW_CFA_GNU_negative_offset_extended'.
2007-01-21 22:42:09 +00:00
Jan Kratochvil 43a9b631fc * gdb.arch/i386-gnu-cfi.exp, gdb.arch/i386-gnu-cfi.c,
gdb.arch/i386-gnu-cfi-asm.S: New files.
2007-01-21 22:41:41 +00:00
Jan Kratochvil 97c3f1f3a2 * lib/gdb.exp: Abort on missing `site.exp'. 2007-01-21 22:25:34 +00:00
Daniel Jacobowitz 9ebce043d5 * NEWS: Mention flash support for "load" and new remote packets. 2007-01-21 17:48:53 +00:00
Daniel Jacobowitz 973d738b82 2007-01-21 Markus Deuling <deuling@de.ibm.com>
* breakpoint.c (delete_command): Skip redundant loop iterations.
2007-01-21 17:43:12 +00:00
Daniel Jacobowitz 7b9ee6a806 * gdbarch.sh (register_type): Update comment.
* gdbarch.h: Regenerated.
	* arch-utils.c (generic_register_size): Call register_type.
	* ia64-tdep.c (ia64_extract_return_value): Likewise.
	* m32c-tdep.c (check_for_saved): Likewise.
	* mips-tdep.c (mips_print_register, print_gp_register_row)
	(mips_print_registers_info): Likewise.
	* sh-tdep.c (sh_pseudo_register_read, sh_pseudo_register_write):
	Likewise.
	* sh64-tdep.c (sh64_pseudo_register_read, sh64_pseudo_register_write)
	(sh64_do_register, sh64_print_register)
	(sh64_media_print_registers_info): Likewise.
	* tui/tui-regs.c (tui_register_format): Likewise.
2007-01-21 17:37:51 +00:00
Daniel Jacobowitz 1130965767 * objfiles.h (ALL_PRIMARY_SYMTABS): Define.
* ada-lang.c (symtab_for_sym, ada_lookup_symbol_list)
	(ada_lookup_symbol): Use ALL_PRIMARY_SYMTABS.
	* cp-support.c (make_symbol_overload_list_qualified): Likewise.
	* symtab.c (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
	(basic_lookup_transparent_type, find_pc_sect_symtab, search_symbols)
	(make_symbol_completion_list): Likewise.
2007-01-21 16:55:49 +00:00
Daniel Jacobowitz cb1df416fb 2007-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
Daniel Jacobowitz  <dan@codesourcery.com>

	* buildsym.c (end_symtab): Use preallocated symtab if available.
	Fill in SYMBOL_SYMTAB.
	* buildsym.h (struct subfile): Add symtab member.
	* dwarf2read.c (struct dwarf2_cu): Add line_header.
	(struct file_entry): Add symtab.
	(free_cu_line_header): New function.
	(read_file_scope): Use it.  Save line_header in the cu.  Process
	lines before DIEs.
	(add_file_name): Initialize new symtab member.
	(dwarf_decode_lines): Create symtabs for included files.
	(new_symbol): Set SYMBOL_SYMTAB.
	* symtab.c (lookup_symbol): Use SYMBOL_SYMTAB.
	(search_symbols): Likewise.
	* symtab.h (struct symbol): Add symtab member.
	(SYMBOL_SYMTAB): Define.

	* gdb.base/included.c, gdb.base/included.exp,
	gdb.base/included.h: New files.
2007-01-21 16:49:40 +00:00
Daniel Jacobowitz 727da90068 * symfile.c (allocate_symtab): Remove INIT_EXTRA_SYMTAB_INFO. 2007-01-21 01:02:03 +00:00