Commit Graph

13228 Commits

Author SHA1 Message Date
Jan Kratochvil f5db87141a * NEWS: Mention the build-id .debug files verification. 2007-09-02 19:56:05 +00:00
Jan Kratochvil d99148ef73 * linux-nat.c (linux_nat_make_corefile_notes): Fixed a buffer overflow. 2007-09-02 14:04:31 +00:00
Jan Kratochvil 77069918ac * Makefile.in (symfile.o): Update dependencies.
* symfile.c (symbol_file_add_with_addrs_or_offsets): Initialize the
	DEBUGFILE variable.  FIND_SEPARATE_DEBUG_FILE called only if !PSYMTABS.
	(struct build_id): New structure.
	(build_id_bfd_get, build_id_verify, build_id_to_debug_filename): New.
	(find_separate_debug_file): New variable BUILD_ID.
	Call BUILD_ID_BFD_GET with BUILD_ID_TO_DEBUG_FILENAME as the first try.
2007-09-01 08:18:15 +00:00
Vladimir Prus 202ddcaa09 * varobj.c (struct varobj): Fix comment
for the type member not to lie when it can be
	NULL.
2007-08-31 19:01:17 +00:00
Vladimir Prus 02142340a0 Implement -var-info-path-expression.
* mi/mi-cmds.h (mi_cmd_var_info_path_expression):
	Declare.
	* mi/mi-cmds.c (mi_cmds): Register var-info-path-expression.
	* mi/mi-cmd-var.c (mi_cmd_var_info_path_expression): New.
	* varobj.c (struct varobj): New field 'path_expr'.
	(c_path_expr_of_child, cplus_path_expr_of_child)
	(java_path_expr_of_child): New.
	(struct language_specific): New field path_expr_of_child.
	(varobj_create): Initialize the path_expr field.
	(varobj_get_path_expr): New.
	(new_variable): Initialize the path_expr field.
	(free_variable): Free the path_expr field.
	(adjust_value_for_children_access): New parameter
	WAS_TYPE.
	(c_number_of_children): Adjust.
	(c_describe_child): New parameter CFULL_EXPRESSION.
	Compute full expression.
	(c_value_of_child, c_type_of_child): Adjust.
	(cplus_number_of_children): Adjust.
	(cplus_describe_child): New parameter CFULL_EXPRESSION.
	Compute full expression.
	(cplus_name_of_child, cplus_value_of_child)
	(cplus_type_of_child): Adjust.
	* varobj.h (varobj_get_path_expr): Declare.
2007-08-31 18:52:05 +00:00
Vladimir Prus bccc275a13 * mi/mi-cmd-var.c (print_varobj): If a varobj
type is NULL, don't try to print it.
2007-08-31 18:41:50 +00:00
Alan Modra f2db237aa1 * ppc-linux-nat.c (right_fill_reg): Delete.
(supply_gregset): Use ppc_supply_gregset.
	(supply_fpregset): Use ppc_supply_fpregset.
	(fill_gregset): Use ppc_collect_gregset.
	(fill_fpregset): Use ppc_collect_fpregset.
	* ppc-linux-tdep.c (PPC_LINUX_PT_*): Don't define.
	(right_supply_register, ppc_linux_supply_gregset): Delete.
	(ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): Delete.
	(ppc_linux_supply_fpregset): Delete.
	(ppc_linux_collect_gregset): New function.
	(ppc32_linux_reg_offsets, ppc64_linux_reg_offsets): New.
	(ppc32_linux_gregset, ppc64_linux_gregset): Update to use reg offsets,
	ppc_linux_supply_gregset, and ppc_collect_gregset.
	(ppc_linux_fpregset): Rename to ppc32_linux_fpregset and update.
	(ppc_linux_gregset, ppc_linux_fpregset): New functions.
	(ppc_linux_regset_from_core_section): Update.
	* ppc-tdep.h (ppc_linux_gregset, ppc_linux_fpregset): Declare.
	(ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Delete.
	(struct ppc_reg_offsets): Add gpr_size, xr_size, fpscr_size fields.
	* ppcobsd-tdep.c (ppcobsd_supply_gregset): Delete FIXME and assert.
	(ppcobsd_collect_gregset): Likewise.
	(_initialize_ppcnbsd_tdep): Init gpr_size, xr_size, fpscr_size.
	* ppcnbsd-tdep.c (_initialize_ppcobsd_tdep): Likewise.
	* ppcobsd-nat.c (_initialize_ppcobsd_nat): Likewise.
	* rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Likewise.
	(rs6000_aix64_reg_offsets): Likewise.
	(rs6000_aix_supply_regset): Call ppc_supply_fpregset without testing
	ppc_floating_point_unit_p.
	(rs6000_aix_collect_regset): Similarly.
	* rs6000-tdep.c (ppc_supply_reg): Add regsize param.  Adjust offset
	when regsize is larger than regcache register size.
	(ppc_collect_reg): Similarly zero pad when regsize is larger than
	regcache register size.
	(ppc_greg_offset): New function, split out from..
	(ppc_supply_gregset): ..here.  Separate code handling all regs from
	single reg case.  Correct xer offset.
	(ppc_fpreg_offset): New function, split out from..
	(ppc_supply_fpregset): ..here.  Separate code handling all regs from
	single reg case.
	(ppc_collect_gregset, ppc_collect_fpregset): Likewise.
	(ppc_supply_fpregset, ppc_collect_fpregset): Don't assert we have
	a fp unit, instead return if no fp.
2007-08-30 13:13:59 +00:00
Jim Blandy fe5aea2e5f * breakpoint.c (watch_command_1): Remove '#ifdef HPUXHPPA' block;
this code has not been compiled for two years.
2007-08-29 22:07:47 +00:00
Michael Snyder 13ce713376 2007-08-29 Michael Snyder <msnyder@access-company.com>
* event-top.c (gdb_readline2): Return after EOF.
2007-08-29 22:04:15 +00:00
Joel Brobecker fd4a0f2fbb * symtab.c: Remove a function that has been commented out 3 years ago. 2007-08-29 18:34:47 +00:00
Carlos O'Donell d037d08851 2007-08-29 Randolph Chung <tausq@debian.org>
* hppa-tdep.c (hppa32_cannot_fetch_register)
	(hppa64_cannot_fetch_register): New functions.
	(hppa_gdbarch_init): Set cannot_fetch_register appropriately.
	* hppa-tdep.h (hppa_regnum): Add HPPA_CR26_REGNUM.
2007-08-29 04:11:06 +00:00
Michael Snyder 57cdecd25d 2007-08-28 Michael Snyder <msnyder@access-company.com>
* mi/mi-cmd-var.c (mi_print_value_p): No longer necessary to
	check for null before calling check_typedef.
2007-08-28 20:34:18 +00:00
Michael Snyder 19d378fc13 2007-08-28 Michael Snyder <msnyder@access-company.com>
* NEWS: Mention Coverity bug fixes.
2007-08-28 19:57:11 +00:00
Ulrich Weigand 36acd84edc ChangeLog gdb/:
* spu-tdep.c (spu_pointer_to_address): New function.
	(spu_integer_to_address): Likewise.
	(spu_gdbarch_init): Add spu_pointer_to_address and
	spu_integer_to_address to gdbarch.


ChangeLog gdb/testsuite/:

	* gdb.cp/cp-relocate.exp (add-symbol-file): Change addresses
	to fit into SPU Local Store memory.
2007-08-27 14:31:46 +00:00
Pedro Alves 8ad7c2b9e6 * arm-wince-tdep.c (ARM_WINCE_JB_PC): Change to 10. 2007-08-26 13:42:40 +00:00
Joel Brobecker 4de6a07ed0 * Makefile.in (copying.c): Use the top-level COPYING3 as the file
that contains the GDB license.
        * copying.awk: Adjust to the GPLv3 wording.
        * copying.c: Regenerate.
2007-08-23 20:33:48 +00:00
Joel Brobecker 01d4100f86 Spelling fix. 2007-08-23 20:21:52 +00:00
Joel Brobecker 07aed0ebe2 * copying.awk: Protoization, and I18n markup. 2007-08-23 20:19:32 +00:00
Joel Brobecker 50efebf80c * config/djgpp/djconfig.sh: Switch license to GPLv3.
* copyright.sh: Likewise.
        * gdb-events.sh: Likewise.
        * gdb_gcore.sh: Likewise.
        * gdb_mbuild.sh: Likewise.
        * gdbarch.sh: Likewise.
        * observer.sh: Likewise.
        * features/feature_to_c.sh: Likewise.
        * regformats/regdat.sh: Likewise.
2007-08-23 18:19:51 +00:00
Joel Brobecker a9762ec78a Switch the license of all .c files to GPLv3.
Switch the license of all .h files to GPLv3.
        Switch the license of all .cc files to GPLv3.
2007-08-23 18:08:50 +00:00
Joel Brobecker 5a0e3bd0ac * configure.ac: Switch license to GPLv3. 2007-08-23 17:58:44 +00:00
Daniel Jacobowitz 609ca2b957 * mips-tdep.c (mips_gdbarch_init): Use Tag_GNU_MIPS_ABI_FP to
determine the file's FPU type.
2007-08-22 15:16:56 +00:00
Daniel Jacobowitz 8d26208a1e gdb/testsuite/
* gdb.base/callfuncs.exp (do_function_calls): Use t_double_int
	and t_int_double.
	* gdb.base/callfuncs.c (t_double_int, t_int_double): New.

	gdb/
	* mips-tdep.c (mips_n32n64_fp_arg_chunk_p): New.
	(mips_n32n64_push_dummy_call): Always increment float_argreg along
	with argreg.  Use mips_n32n64_fp_arg_chunk_p.
2007-08-22 15:13:04 +00:00
Daniel Jacobowitz 65728c2698 * solib-svr4.c (scan_dyntag): Only read target memory when necessary.
Fix formatting.
	(elf_locate_base): Look for DT_MIPS_RLD_MAP first.  Expand comments.
	(elf_lookup_lib_symbol): Fix formatting.
2007-08-22 14:22:02 +00:00
Michael Snyder 6b2d86bda4 2007-08-21 Michael Snyder <msnyder@access-company.com>
* dbxread.c (read_dbx_symtab): Guard null deref.
	Break up long line.
2007-08-22 01:57:05 +00:00
Michael Snyder a2ca50ae64 2007-08-21 Michael Snyder <msnyder@access-company.com>
* valops.c (find_overload_match): Guard against NULL.
2007-08-22 01:53:19 +00:00
Daniel Jacobowitz 54e116dd35 * MAINTAINERS (Patch Champions): Remove self. 2007-08-22 01:21:45 +00:00
Daniel Jacobowitz f429d7d03d 2007-08-21 Chris Smith <chris.smith@st.com>
* cli/cli-script.c (read_command_lines): Call dont_repeat for each
	line.
2007-08-21 13:35:00 +00:00
Michael Snyder 31e9f6b6be 2007-08-18 Michael Snyder <msnyder@svkmacdonelllnx>
* stabsread.c (dbx_lookup_type): Memory leak.
2007-08-18 20:22:27 +00:00
Michael Snyder 32107cd542 2007-08-18 Michael Snyder <msnyder@access-company.com>
* event-loop.c (delete_async_signal_handler): Move pointer null
	test to before pointer dereference.
2007-08-18 20:05:48 +00:00
Michael Snyder 44db85f8e2 2007-08-18 Michael Snyder <msnyder@svkmacdonelllnx>
* ui-out.c (append_header_to_list): Possible cut and paste error.
2007-08-18 19:45:48 +00:00
Michael Snyder a287cea675 2007-08-18 Michael Snyder <msnyder@svkmacdonelllnx>
* MAINTAINERS: white space tweak.
2007-08-18 19:39:45 +00:00
Michael Snyder f91162e199 2007-08-17 Michael Snyder <msnyder@access-company.com>
* stack.c (print_frame): Memory leak.
2007-08-18 00:21:03 +00:00
Michael Snyder 1e8189fbb5 2007-08-17 Michael Snyder <msnyder@access-company.com>
* completer.c (filename_completer): Avoid memory leak.
	Remove unnecessary nested block.
2007-08-18 00:17:08 +00:00
Michael Snyder 348038cd50 2007-08-17 Michael Snyder <msnyder@access-company.com>
* c-exp.y (parse_number): Memory leak.
2007-08-17 23:27:42 +00:00
Michael Snyder 1f20ed9160 2007-08-17 Michael Snyder <msnyder@access-company.com>
* completer.c (location_completer): Must free 'fn_list', except
	in the one case where it is returned (as 'list').
2007-08-17 23:24:18 +00:00
Michael Snyder 74dddad306 2007-08-17 Michael Snyder <msnyder@access-company.com>
* varobj.c (value_of_root): Memory leak.
2007-08-17 23:17:30 +00:00
Michael Snyder 0bd9908d01 2007-08-17 Michael Snyder <msnyder@access-company.com>
* gdbtypes.h (virtual_base_list): Remove export decl.
	* gdbtypes.c (virtual_base_list): Make static.  Not called outside.
	(virtual_base_index): Memory leak.
	(virtual_base_index_skip_primaries): Ditto.
2007-08-17 23:12:47 +00:00
Maxim Grigoriev bdb4c075a2 2007-08-17 Maxim Grigoriev <maxim2405@gmail.com>
* xtensa-tdep.c (ARG_NOF, ARG_1ST, PS_WOE, PS_EXC, C0_MAXOPDS)
	(C0_NREGS, C0_CLESV, C0_SP, C0_FP, C0_RA, C0_ARGS, C0_NARGS)
	(C0_CONST, C0_INEXP, C0_NOSTK): New macros.
	(xtensa_read_register): New function.
	(xtensa_windowed_frame_cache, xtensa_call0_frame_cache, xtensa_c0reg)
	(xtensa_insn_kind): New types.
	(xtensa_frame_cache, xtensa_alloc_frame_cache, xtensa_frame_cache)
	(xtensa_frame_prev_register, xtensa_return_value, xtensa_skip_prologue)
	(xtensa_verify_config, xtensa_pseudo_register_read)
	(xtensa_pseudo_register_write, xtensa_extract_return_value)
	(xtensa_store_return_value)
	(xtensa_push_dummy_call): Extended to support Xtensa Call0 ABI.
	(windowing_enabled, extract_call_winsize, xtensa_unwind_dummy_id)
	(xtensa_frame_this_id, xtensa_frame_prev_register)
	(xtensa_register_type, xtensa_reg_to_regnum): Cosmetic changes.
	(call0_frame_cache, call0_frame_get_reg_at_entry)
	(call0_classify_opcode, call0_track_op)
	(call0_analyze_prologue, call0_frame_cache): New functions.
2007-08-17 21:53:29 +00:00
Vladimir Prus 198757a8b1 * breakpoint.c (bpstat_free): New.
(bpstat_clear): Use bpstat_free.
	(delete_breakpoint): Document why we cannot
	remove bpstats from stop_bpstat.
	* breakpoint.h (bpstat_free): Declare.
2007-08-17 17:06:04 +00:00
Michael Snyder dc66ab8ae2 event-loop.c (gdb_wait_for_event): Move statement into if block. 2007-08-16 14:51:22 +00:00
Joel Brobecker 40c8aaa9fe * ada-lang.c (resolve_subexp): Correct arity of binary operators. 2007-08-15 18:43:15 +00:00
Joel Brobecker ee90b9ab36 * ada-lang.c (possible_user_operator_p): Alternative fix to last
checkin guarding against NULL.
2007-08-15 18:36:37 +00:00
Michael Snyder e5908723e5 2007-08-14 Michael Snyder <msnyder@access-company.com>
* tui-command.c, tui-data.c, tui-disasm.c, tui-file.c, tui-io.c,
	tui-layout.c, tui-regs.c, tui-source.c, tui-win.c, tui-windata.c,
	tui-wingeneral.c, tui-winsource.c: Coding standard, && and ||
	go at beginning of new line.
2007-08-15 00:19:44 +00:00
Michael Snyder 08ef48c5ac 2007-08-14 Michael Snyder <msnyder@access-company.com>
* tui-data.c, tui-data.h, tui-disasm.c, tui-disasm.h, tui-hooks.c,
	tui-io.c, tui-layout.c, tui-layout.h, tui-out.c, tui-regs.c,
	tui-source.c, tui-source.h, tui-stack.c, tui-win.c, tui-win.h,
	tui-windata.c, tui-windata.h, tui-wingeneral.c, tui-winsource.c,
	tui-winsource.h, tui.c, tui.h: Function declarations and
	definitions, wrap long lines.
2007-08-14 23:50:39 +00:00
Michael Snyder ef5eab5a0f 2007-08-14 Michael Snyder <msnyder@access-company.com>
* tui-command.c, tui-data.c, tui-disasm.c, tui-layout.c,
	tui-regs.c, tui-win.c, tui-windata.c, tui-winsource.c, tui.c:
	Reformat block comments to GNU standard.
2007-08-14 21:39:22 +00:00
Michael Snyder 1cc6d956c1 2007-08-14 Michael Snyder <msnyder@access-company.com>
* tui-command.c, tui-data.c, tui-data.h, tui-disasm.c, tui-file.c,
	tui-hooks.c, tui-interp.c, tui-io.c, tui-layout.c, tui-out.c,
	tui-regs.c, tui-regs.h, tui-source.c, tui-stack.c, tui-win.c,
	tui-windata.c, tui-wingeneral.c, tui-winsource.c, tui-winsource.h,
	tui.c, tui.h: Comment reformatting to coding standard (capitals,
	spaces after periods, etc).
2007-08-14 21:20:09 +00:00
Michael Snyder 5b6fe301a1 2007-08-14 Michael Snyder <msnyder@access-company.com>
* tui-data.c, tui-data.h, tui-disasm.c, tui-hooks.c, tui-layout.c,
	tui-regs.c, tui-source.c, tui-stack.c, tui-win.c, tui-windata.c,
	tui-wingeneral.c, tui-wingeneral.h, tui-winsource.c, tui.c,
	tui-winsource.h: Whitespace changes, fix pointer declarations
	to be consistant.
2007-08-14 20:23:29 +00:00
Joel Brobecker 64a1bf1957 * ada-lang.c (field_alignment): Guard against NULL. 2007-08-14 20:16:18 +00:00
Joel Brobecker e933291e4c * MAINTAINERS (Global Maintainers): Add self. 2007-08-14 20:10:47 +00:00