aboutsummaryrefslogtreecommitdiff
path: root/gdb
AgeCommit message (Collapse)AuthorFilesLines
2011-03-07 * Makefile.in (TAGS): Rewrite.Tom Tromey2-2/+6
2011-03-07gdb/testsuite/Jan Kratochvil2-7/+20
* gdb.trace/report.exp (12.1: trace report #1): New match for the initial commands echo. New match for `Found trace'. Anchor all the other matches. Anchor and match for `No trace frame found' the final match.
2011-03-07gdb/gdbserver/Jan Kratochvil2-1/+5
* remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
2011-03-072011-03-04 Michael Snyder <msnyder@vmware.com>Michael Snyder2-0/+3
* dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
2011-03-072011-03-05 Michael Snyder <msnyder@vmware.com>Michael Snyder2-1/+6
* ser-unix.c (hardwire_get_tty_state): Stop memory leak.
2011-03-072011-03-05 Michael Snyder <msnyder@vmware.com>Michael Snyder2-0/+3
* mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
2011-03-072011-03-05 Michael Snyder <msnyder@vmware.com>Michael Snyder2-0/+5
* elfread.c (elf_symtab_read): Stop memory leak.
2011-03-072011-03-06 Michael Snyder <msnyder@vmware.com>Michael Snyder2-5/+12
* main.c (captured_main): Fix memory leak.
2011-03-07* ada-lang.c (compare_names): Call is_name_suffix with string1Andreas Schwab2-1/+6
instead of string2.
2011-03-07 * Makefile.in (TAGS): New target.Tom Tromey2-0/+8
2011-03-07 * xcoffread.c (xcoff_sym_fns): Update.Tom Tromey16-37/+214
* symfile.h (struct sym_fns) <sym_read_psymbols>: New field. (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant. * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ. (symbol_file_add_with_addrs_or_offsets): Likewise. (reread_symbols): Handle OBJF_PSYMTABS_READ. * somread.c (som_sym_fns): Update. * psymtab.h (require_partial_symbols): Declare. * psymtab.c (require_partial_symbols): New function. (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro. (ALL_OBJFILE_PSYMTABS): Undef. (ALL_PSYMTABS): Move from psympriv.h. (lookup_partial_symtab, find_pc_sect_psymtab) (lookup_symbol_aux_psymtabs, relocate_psymtabs) (find_last_source_symtab_from_partial) (forget_cached_source_info_partial) (print_psymtab_stats_for_objfile, read_symtabs_for_function) (expand_partial_symbol_tables, read_psymtabs_with_filename) (map_symbol_names_psymtab, map_symbol_filenames_psymtab) (find_symbol_file_from_partial, map_matching_symbols_psymtab) (expand_symtabs_matching_via_partial, maintenance_info_psymtabs): Use ALL_OBJFILE_PSYMTABS_REQUIRED. * psympriv.h (ALL_PSYMTABS): Move to psymtab.c. * objfiles.h (OBJF_PSYMTABS_READ): New macro. * objfiles.c (objfile_has_partial_symbols): Handle lazily-read psymtabs. * mipsread.c (ecoff_sym_fns): Update. * machoread.c (macho_sym_fns): Update. * elfread.c (elf_symfile_read): Set up for lazy psymtab reading. (read_psyms): New function. (elf_sym_fns, elf_sym_fns_gdb_index): Update. (elf_sym_fns_lazy_psyms): New global. * dwarf2read.c (dwarf2_initialize_objfile): Don't call dwarf2_build_psymtabs. * dbxread.c (aout_sym_fns): Update. * coffread.c (coff_sym_fns): Update.
2011-03-07gdbTom Tromey45-110/+182
* infrun.c (print_exited_reason): Include inferior id and pid in message. gdb/testsuite * lib/opencl.exp (skip_opencl_tests): Update for exit message change. * lib/mi-support.exp (mi_gdb_test): Update for exit message change. * lib/gdb.exp (gdb_test_multiple): Update comment. Update for exit message change. (skip_altivec_tests): Update for exit message change. (skip_vsx_tests): Likewise. (gdb_continue_to_end): Likewise. Add 'command' argument. * lib/cell.exp (skip_cell_tests): Update for exit message change. * gdb.threads/tls.exp: Update for exit message change. * gdb.threads/thread-unwindonsignal.exp: Use gdb_continue_to_end. * gdb.threads/step.exp (step_it): Update for exit message change. (continue_all): Likewise. * gdb.threads/print-threads.exp (test_all_threads): Update for exit message change. * gdb.threads/interrupted-hand-call.exp: Use gdb_continue_to_end. * gdb.threads/execl.exp: Use gdb_continue_to_end. * gdb.python/py-prettyprint.exp (run_lang_tests): Use gdb_continue_to_end. * gdb.hp/gdb.objdbg/objdbg02.exp: Use gdb_continue_to_end. * gdb.hp/gdb.objdbg/objdbg01.exp: Use gdb_continue_to_end. * gdb.hp/gdb.defects/solib-d.exp: Update for exit message change. * gdb.cp/method.exp: Update for exit message change. * gdb.cp/mb-templates.exp: Update for exit message change. * gdb.cp/mb-inline.exp: Use gdb_continue_to_end. * gdb.cp/annota3.exp: Update for exit message change. * gdb.cp/annota2.exp: Update for exit message change. * gdb.cell/fork.exp: Use gdb_continue_to_end. * gdb.base/term.exp: Update for exit message change. * gdb.base/step-test.exp (test_i): Update for exit message change. * gdb.base/sigstep.exp (advance): Update for exit message change. (advancei): Likewise. * gdb.base/siginfo.exp: Update for exit message change. * gdb.base/shlib-call.exp: Use gdb_continue_to_end. * gdb.base/reread.exp: Use gdb_continue_to_end. * gdb.base/langs.exp: Use gdb_continue_to_end. * gdb.base/interrupt.exp: Update for exit message change. * gdb.base/gdb1555.exp: Update for exit message change. * gdb.base/exe-lock.exp: Use gdb_continue_to_end. * gdb.base/ending-run.exp: Update for exit message change. * gdb.base/chng-syms.exp: Update for exit message change. * gdb.base/checkpoint.exp: Update for exit message change. * gdb.base/catch-syscall.exp (check_for_program_end): Use gdb_continue_to_end. (test_catch_syscall_with_wrong_args): Likewise. * gdb.base/call-signal-resume.exp: Use gdb_continue_to_end. * gdb.base/break-interp.exp (test_ld): Update for exit message change. * gdb.base/bang.exp: Update for exit message change. * gdb.base/attach.exp (do_attach_tests): Use gdb_continue_to_end. (do_call_attach_tests): Likewise. * gdb.base/a2-run.exp: Update for exit message change. * gdb.arch/ppc-dfp.exp: Update for exit message change. * gdb.ada/tasks.exp: Use gdb_continue_to_end. * gdb.ada/catch_ex.exp: Use gdb_continue_to_end.
2011-03-07 * target.h (struct target_ops) <to_has_execution>: Add ptid_tTom Tromey6-25/+57
parameter. (target_has_execution_1): Update. (target_has_execution_current): Declare. (target_has_execution): Call target_has_execution_current. (default_child_has_execution): Update. * target.c (default_child_has_execution): Add 'the_ptid' parameter. (target_has_execution_1): Likewise. (target_has_execution_current): New function. (add_target): Update. (init_dummy_target): Update. * remote-m32r-sdi.c (m32r_has_execution): New function. (init_m32r_ops): Use it. * record.c (record_core_has_execution): Now static. Add 'the_ptid' parameter. * inferior.c (have_live_inferiors): Don't save current thread. Use target_has_execution_1.
2011-03-072011-03-07 Yao Qi <yao@codesourcery.com>Yao Qi2-1/+4
* Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
2011-03-07Minor reformatting in elfread.c:elf_symtab_readJoel Brobecker2-2/+5
gdb/ChangeLog: * elfread.c (elf_symtab_read): Minor reformatting.
2011-03-07minor reformatting in objc-lang.c:selectors_infoJoel Brobecker2-5/+9
gdb/ChangeLog: * objc-lang.c (selectors_info): Minor reformatting.
2011-03-07add FALLTHROUGH comment in ada-lang.c:compare_namesJoel Brobecker2-0/+5
gdb/ChangeLog: * ada-lang.c (compare_names): Add FALLTHROUGH comment.
2011-03-07simplify ada-valprint.c:ada_val_print_arrayJoel Brobecker2-10/+19
Two things: - Move the declaration of a couple of variables inside the block where they are actually used; - Remove some code that checks against NULL/zero, because the condition should always be false. Add some gdb_asserts to make sure we never fail those assumptions. gdb/ChangeLog: * ada-valprint.c (ada_val_print_array): Move the declaration of "byte_order" and "elttype" inside the block where these variables are actually used. Remove some special handling for the case where "elttype" and "eltlen" are null. Replace by a comment and a couple of assertion checks.
2011-03-07*** empty log message ***gdbadmin1-1/+1
2011-03-06gdbserver: configure + make clean fails (no 'common' subdir)Joel Brobecker2-1/+5
This problem was noticed during the nightly snapshot build, but can be reduced to: % /path/to/gdb/gdbserver/configure % make clean The "make clean" fails, because it tries to do a "make clean" in the common/ subdirectory. But the problem is that this common/ subdirectory is NOT created during the configure phase, but rather during the build phase. The error is fatal because we had put the common subdirectory in the list of REQUIRED_SUBDIRS. This fixes the problem by removing it from the REQUIRED_SUBDIRS list. gdb/gdbserver/ChangeLog: * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
2011-03-062011-03-05 Michael Snyder <msnyder@vmware.com>Michael Snyder3-0/+7
* source.c (add_path): Replace semicolon at end of block. * dwarf2expr.c (execute_stack_op): Ditto.
2011-03-06gdb: blackfin: enable simulator supportMike Frysinger3-0/+10
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-03-06*** empty log message ***gdbadmin1-1/+1
2011-03-052011-03-05 Michael Snyder <msnyder@vmware.com>Michael Snyder7-6/+13
* dwarf2expr.c (execute_stack_op): Delete superfluous semicolon. * mdebugread.c (parse_symbol): Ditto. * parse.c (parse_exp_in_context): Ditto. * source.c (add_path): Ditto. * utils.c (gnu_debuglink_crc32): Ditto. * varobj.c (variable_language): Ditto.
2011-03-052011-03-05 Michael Snyder <msnyder@vmware.com>Michael Snyder2-6/+10
* linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
2011-03-05 * gdb.base/help.exp (help thread find): Fix one forgotten quote.Jan Kratochvil2-1/+5
2011-03-05fix make clean doesn't run in gdbserver/commonJoel Brobecker2-0/+28
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-052011-03-04 Michael Snyder <msnyder@vmware.com>Michael Snyder2-1/+3
* linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
2011-03-052011-03-04 Michael Snyder <msnyder@vmware.com>Michael Snyder2-9/+21
* symfile.c (simple_overlay_update): Check for null return value from lookup_minimal_symbol.
2011-03-052011-03-04 Michael Snyder <msnyder@vmware.com>Michael Snyder2-1/+3
* gdbserver/server.c (queue_stop_reply): Call xmalloc not malloc.
2011-03-05*** empty log message ***gdbadmin1-1/+1
2011-03-042011-03-04 Michael Snyder <msnyder@vmware.com>Michael Snyder2-0/+5
* xml-syscall.c (syscall_start_syscall): Assert name is non null.
2011-03-04 * eval.c (parse_and_eval_address_1): Remove function.Thiago Jung Bauermann4-19/+8
* 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-042011-03-04 Michael Snyder <msnyder@vmware.com>Michael Snyder2-0/+5
* remote.c (putpkt_binary): Document that case stmt falls through.
2011-03-04 * breakpointc (print_it_typical): Move NULL check from here...Thiago Jung Bauermann2-7/+11
(print_bp_stop_message): ... to here.
2011-03-042011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>Michael Snyder2-4/+12
* breakpoint.c (enable_command): Use break instead of continue, and fill in a missing break. (disable_command): Ditto.
2011-03-04 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.Ulrich Weigand11-5/+85
(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-042011-03-04 Michael Snyder <msnyder@vmware.com>Michael Snyder2-0/+3
* breakpoint.c (create_breakpoint): Add missing break statement.
2011-03-042011-03-04 Michael Snyder <msnyder@vmware.com>Michael Snyder2-2/+3
Reverting this patch: * infcall.c (call_function_by_hand): Add break statements for lint.
2011-03-042011-03-04 Michael Snyder <msnyder@vmware.com>Michael Snyder2-1/+5
Reverting this patch: * cli/cli-script.c (script_from_file): Add break for lint.
2011-03-042011-03-04 Michael Snyder <msnyder@vmware.com>Michael Snyder2-0/+5
* solib.c (reload_shared_libraries_1): Close memory leak.
2011-03-042011-03-04 Yao Qi <yao@codesourcery.com>Yao Qi2-1/+5
* Makefile.in: Remove GNU make feature --directory.
2011-03-04*** empty log message ***gdbadmin1-1/+1
2011-03-032011-03-03 Michael Snyder <msnyder@vmware.com>Michael Snyder2-6/+4
* remote-fileio.c (remote_fileio_func_fstat): Initialize all fields of struct 'st' to zero.
2011-03-03 PR gdb/12538:Tom Tromey2-1/+12
* dwarf2read.c (process_psymtab_comp_unit): Handle case where DW_STRING is NULL.
2011-03-032011-03-03 Michael Snyder <msnyder@vmware.com>Michael Snyder2-0/+7
* tui/tui-winsource.c (tui_update_source_window_as_is): Initialize sal.pspace before calling set_current_source_symtab_and_line.
2011-03-03 * gdb.hp/gdb.aCC/Makefile.in (Makefile): Remove.Tom Tromey27-23953/+60
* 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-032011-03-03 Yao Qi <yao@codesourcery.com>Yao Qi2-23/+6
* Makefile.in (configure-common): Remove. Let Makefile in dir common to rebuild itself. (common/Makefile): Likewise.
2011-03-03py-inferior.exp: Avoid searching pattern beyond bufferJoel Brobecker2-5/+10
gdb/testsuite/ChangeLog: * gdb.python/py-inferior.exp: Avoid searching pattern beyond end of buffer.
2011-03-03add i18n markup in error message (utils.c:parse_escape)Joel Brobecker2-2/+6
gdb/ChangeLog: * utils.c (parse_escape): Add i18n markup in error message.