Commit Graph

28004 Commits

Author SHA1 Message Date
Michael Snyder e3aa49afd5 2011-03-05 Michael Snyder <msnyder@vmware.com>
* linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
2011-03-05 21:21:32 +00:00
Jan Kratochvil dd19bd7059 * gdb.base/help.exp (help thread find): Fix one forgotten quote. 2011-03-05 13:15:02 +00:00
Joel Brobecker 64794aa4b4 fix make clean doesn't run in gdbserver/common
011-03-05  Yao Qi  <yao@codesourcery.com>
        * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
        (subdir_do): New make target.  Copied from gdb/Makefile.
        (maintainer-clean, realclean, distclean, clean): Call corresponding
        make targets in common/Makefile.
2011-03-05 03:45:26 +00:00
Michael Snyder da3ecdc664 2011-03-04 Michael Snyder <msnyder@vmware.com>
* linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
2011-03-05 01:12:05 +00:00
Michael Snyder 9cc8966527 2011-03-04 Michael Snyder <msnyder@vmware.com>
* symfile.c (simple_overlay_update): Check for null return value
	from lookup_minimal_symbol.
2011-03-05 00:52:41 +00:00
Michael Snyder cfdee94ab4 2011-03-04 Michael Snyder <msnyder@vmware.com>
* gdbserver/server.c (queue_stop_reply): Call xmalloc not malloc.
2011-03-05 00:21:10 +00:00
gdbadmin 6546fb77b8 *** empty log message *** 2011-03-05 00:00:33 +00:00
Michael Snyder 154f592e0c 2011-03-04 Michael Snyder <msnyder@vmware.com>
* xml-syscall.c (syscall_start_syscall): Assert name is non null.
2011-03-04 21:55:45 +00:00
Thiago Jung Bauermann 63ffa6eea3 * eval.c (parse_and_eval_address_1): Remove function.
* linespec.c (decode_indirect): Call parse_to_comma_and_eval
	instead of parse_and_eval_address_1.
	* value.h (parse_and_eval_address_1): Remove prototype.
2011-03-04 20:07:22 +00:00
Michael Snyder a17d146e2e 2011-03-04 Michael Snyder <msnyder@vmware.com>
* remote.c (putpkt_binary): Document that case stmt falls through.
2011-03-04 20:02:50 +00:00
Thiago Jung Bauermann 1a6a67de74 * breakpointc (print_it_typical): Move NULL check from here...
(print_bp_stop_message): ... to here.
2011-03-04 20:00:34 +00:00
Michael Snyder 488919c487 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
* breakpoint.c (enable_command): Use break instead of continue,
	and fill in a missing break.
	(disable_command): Ditto.
2011-03-04 19:57:31 +00:00
Ulrich Weigand 1e182ce8c3 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
(terminal_save_ours): Remove misleading comment.
	(inflow_inferior_data_cleanup): Free ttystate.
	(inflow_inferior_exit): Likewise.
	(copy_terminal_info): Copy ttystate.

	* serial.c (serial_copy_tty_state): New function.
	* serial.h (serial_copy_tty_state): Add prototype.
	(struct serial_ops): Add copy_tty_state callback.
	* ser-base.c (ser_base_copy_tty_state): New function.
	* ser-base.h (ser_base_copy_tty_state): Add prototype.
	* ser-go32.c (dos_copy_tty_state): New function.
	(dos_ops): Install copy_tty_state callback.
	* ser-mingw.c (_initialize_ser_windows): Likewise.
	* ser-pipe.c (_initialize_ser_pipe): Likewise.
	* ser-unix.c (hardwire_copy_tty_state): New function.
	(_initialize_ser_hardwire): Install it.
2011-03-04 19:23:42 +00:00
Michael Snyder 2abae99411 2011-03-04 Michael Snyder <msnyder@vmware.com>
* breakpoint.c (create_breakpoint): Add missing break statement.
2011-03-04 18:58:22 +00:00
Michael Snyder 7f5936f9fe 2011-03-04 Michael Snyder <msnyder@vmware.com>
Reverting this patch:
	* infcall.c (call_function_by_hand): Add break statements for lint.
2011-03-04 18:31:22 +00:00
Michael Snyder b2c5f112fe 2011-03-04 Michael Snyder <msnyder@vmware.com>
Reverting this patch:
	* cli/cli-script.c (script_from_file): Add break for lint.
2011-03-04 18:20:43 +00:00
Michael Snyder 42b1321cc8 2011-03-04 Michael Snyder <msnyder@vmware.com>
* solib.c (reload_shared_libraries_1): Close memory leak.
2011-03-04 18:02:54 +00:00
Yao Qi 7a76282913 2011-03-04 Yao Qi <yao@codesourcery.com>
* Makefile.in: Remove GNU make feature --directory.
2011-03-04 06:31:54 +00:00
gdbadmin b6977ef1bd *** empty log message *** 2011-03-04 00:00:32 +00:00
Michael Snyder 2e3fd7679d 2011-03-03 Michael Snyder <msnyder@vmware.com>
* remote-fileio.c (remote_fileio_func_fstat): Initialize all
	fields of struct 'st' to zero.
2011-03-03 18:35:32 +00:00
Tom Tromey 3e2a0cee55 PR gdb/12538:
* dwarf2read.c (process_psymtab_comp_unit): Handle case where
	DW_STRING is NULL.
2011-03-03 17:33:40 +00:00
Michael Snyder 58397cb744 2011-03-03 Michael Snyder <msnyder@vmware.com>
* tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
	sal.pspace before calling set_current_source_symtab_and_line.
2011-03-03 17:28:45 +00:00
Tom Tromey 30e6268931 * gdb.hp/gdb.aCC/Makefile.in (Makefile): Remove.
* gdb.hp/gdb.aCC/configure (Makefile): Remove.
	* gdb.hp/gdb.aCC/configure.ac: Remove.
	* gdb.hp/gdb.base-hp/Makefile.in (Makefile): Remove.
	* gdb.hp/gdb.base-hp/configure (Makefile): Remove.
	* gdb.hp/gdb.base-hp/configure.ac: Remove.
	* gdb.hp/gdb.compat/Makefile.in (Makefile): Remove.
	* gdb.hp/gdb.compat/configure (Makefile): Remove.
	* gdb.hp/gdb.compat/configure.ac: Remove.
	* gdb.hp/gdb.defects/Makefile.in (Makefile): Remove.
	* gdb.hp/gdb.defects/configure (Makefile): Remove.
	* gdb.hp/gdb.defects/configure.ac: Remove.
	* gdb.hp/gdb.objdbg/Makefile.in (Makefile): Remove.
	* gdb.hp/gdb.objdbg/configure (Makefile): Remove.
	* gdb.hp/gdb.objdbg/configure.ac: Remove.
	* gdb.hp/configure.ac: Remove.
	* gdb.hp/configure: Remove.
	* gdb.hp/Makefile.in (SUBDIRS): No longer a configure
	substitution.
	(Makefile): Remove rule.
	* gdb.cell/configure.ac: Remove.
	* gdb.cell/configure: Remove.
	* gdb.stabs/Makefile.in (Makefile): Remove.
	(distclean): Don't remove config.status or config.log.
	* gdb.stabs/configure (Makefile): Remove.
	* gdb.stabs/configure.ac: Remove.
	* configure: Rebuild.
	* configure.ac: Don't AC_CONFIG_SUBDIRS in gdb.hp or gdb.stabs.
	Remove stabs- and cell-specific logic.  Test for existence of
	../gdbtk before configuring gdb.gdbtk.  Build Makefiles in gdb.hp
	subdirectories, gdb.cell, and and gdb.stabs.
	* Makefile.in (ALL_SUBDIRS): Add gdb.hp and gdb.stabs.
2011-03-03 16:57:58 +00:00
Yao Qi ced54c8ff8 2011-03-03 Yao Qi <yao@codesourcery.com>
* Makefile.in (configure-common): Remove.  Let Makefile
	in dir common to rebuild itself.
	(common/Makefile): Likewise.
2011-03-03 04:16:33 +00:00
Joel Brobecker c171f8549c py-inferior.exp: Avoid searching pattern beyond buffer
gdb/testsuite/ChangeLog:

        * gdb.python/py-inferior.exp: Avoid searching pattern beyond
        end of buffer.
2011-03-03 03:55:31 +00:00
Joel Brobecker 3351ea09d2 add i18n markup in error message (utils.c:parse_escape)
gdb/ChangeLog:

       * utils.c (parse_escape): Add i18n markup in error message.
2011-03-03 03:51:30 +00:00
Yao Qi bf9f652ab6 2011-03-03 Yao Qi <yao@codesourcery.com>
* gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
	ARM_PC_REGNUM.
	(thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
	(displaced_write_reg, displaced_read_reg): Likewise.
	(copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
	(cleanup_block_load_pc, copy_block_xfer): Likewise.
	(cleanup_branch): Replace magic number 14 and 15 with
	ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
2011-03-03 02:18:24 +00:00
Michael Snyder 240f9570d5 2011-03-02 Michael Snyder <msnyder@vmware.com>
* maint.c (maintenance_do_deprecate): No need to check for NULL.
2011-03-03 01:15:45 +00:00
Michael Snyder 10dd8b5466 2011-03-02 Michael Snyder <msnyder@vmware.com>
* cli/cli-script.c (script_from_file): Add break for lint.
2011-03-03 00:14:00 +00:00
gdbadmin e531b607df *** empty log message *** 2011-03-03 00:00:03 +00:00
Michael Snyder b98bd91194 2011-03-02 Michael Snyder <msnyder@vmware.com>
* mdebugread.c (parse_partial_symbols): Fix indent.
2011-03-02 23:54:16 +00:00
Michael Snyder c3e8aadde1 2011-03-02 Michael Snyder <msnyder@vmware.com>
* gdbserver/linux-arm-low.c (arm_arch_setup): Replace malloc
	with xmalloc.
2011-03-02 23:40:42 +00:00
Michael Snyder 3494b66d76 2011-03-02 Michael Snyder <msnyder@vmware.com>
* target-descriptions.c (tdesc_gdb_type): No need to call
	xstrdup, callee saves a copy.
2011-03-02 23:14:32 +00:00
Michael Snyder daac021a6c 2011-03-02 Michael Snyder <msnyder@vmware.com>
* printcmd.c (print_scalar_formatted): Use strncpy for safety.
2011-03-02 22:56:44 +00:00
Michael Snyder c38d16a719 2011-03-02 Michael Snyder <msnyder@vmware.com>
* infcall.c (call_function_by_hand): Add break statements for lint.
2011-03-02 22:21:45 +00:00
Michael Snyder 905b671bb7 2011-03-02 Michael Snyder <msnyder@vmware.com>
* utils.c (parse_escape): Escape the escape char.
2011-03-02 22:11:27 +00:00
Michael Snyder 2d5657570d 2011-03-02 Michael Snyder <msnyder@vmware.com>
* python/py-inferior.c (build_inferior_list): Error out if
	PyList_Append fails.
	(gdbpy_inferiors): Error out if build_inferior_list fails.
2011-03-02 21:19:54 +00:00
Michael Snyder 8c6a60d1e6 2011-03-02 Michael Snyder <msnyder@vmware.com>
* linux-nat.c (linux_nat_xfer_partial): Preserve errno around
	a function call.
2011-03-02 18:27:41 +00:00
Michael Snyder d42de051e7 2011-03-02 Michael Snyder <msnyder@vmware.com>
* record.c (record_restore): Move printf to before error return.
2011-03-02 18:09:11 +00:00
Joel Brobecker 9a5193cb85 use gdb_test_no_output in gdb.python/py-inferior.exp
gdb/testsuite/ChangeLog:

        * gdb.python/py-inferior.exp: Use gdb_test_no_output instead of
        gdb_test when running a test where we expected no output back.
2011-03-02 15:17:01 +00:00
Yao Qi 4db71c0b79 2011-03-02 Yao Qi <yao@codesourcery.com>
* arm-tdep.h (struct displaced_step_closure): Add two new fields
	is_thumb and insn_size.
	* arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
	on both ARM and Thumb mode.
	(arm_process_displaced_insn): Set is_thumb and insn_size.
	(arm_displaced_init_closure): Handle both 16-bit and 32-bit.
	(arm_displaced_step_fixup): Likewise.
2011-03-02 05:33:37 +00:00
Michael Snyder 53624a9319 2011-03-01 Michael Snyder <msnyder@vmware.com>
* cli/cli-dump.c (dump_bfd_file): Check error return and warn.
2011-03-02 01:09:52 +00:00
Michael Snyder 777666697a 2011-03-01 Michael Snyder <msnyder@vmware.com>
* jv-lang.c (evaluate_subexp_java): Conditional can't be true.
2011-03-02 00:42:53 +00:00
Michael Snyder 62d5b8da6a 2011-03-01 Michael Snyder <msnyder@vmware.com>
* dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
2011-03-02 00:37:29 +00:00
gdbadmin 85c378b113 *** empty log message *** 2011-03-02 00:00:02 +00:00
Michael Snyder 5e9e105f92 2011-03-01 Michael Snyder <msnyder@vmware.com>
* cli/cli-dump.c (restore_binary_file): Validate ftell return value.
2011-03-01 23:42:44 +00:00
Michael Snyder dc19db01c1 2011-03-01 Michael Snyder <msnyder@vmware.com>
* ada-lang.c (ada_make_symbol_completion_list): Replace malloc
	with xmalloc.
2011-03-01 23:07:40 +00:00
Michael Snyder 5ce6495039 2011-03-01 Michael Snyder <msnyder@vmware.com>
* ada-lang.c (aggregate_assign_others): Rename inner scope variable
	which shadows function parameter.
2011-03-01 22:42:33 +00:00
Michael Snyder a0aa28782e 2011-03-01 Michael Snyder <msnyder@vmware.com>
* tracepoint.c (create_tsv_from_upload): Superfluous call
	to xstrdup.  Callee already calls xstrdup.
2011-03-01 22:24:30 +00:00
Michael Snyder e325fb69b4 2011-03-01 Michael Snyder <msnyder@vmware.com>
* linespec.c (decode_line_1): Remove unnecessary null check.
2011-03-01 22:16:40 +00:00