summaryrefslogtreecommitdiff
path: root/gdb
Commit message (Collapse)AuthorAgeFilesLines
* remove subdir_do recursive make command in gdbserver/Makefile.inJoel Brobecker2011-03-102-1/+5
| | | | | | | | | | | | | | | | | | | This fixes: % [...]/gdbserver/configure % make distclean [...] rm -f amd64-avx.c amd64-avx-linux.c rm -f i386-mmx.c i386-mmx-linux.c make[1]: Entering directory `/[...]' make[1]: *** No rule to make target `subdir_do'. Stop. make[1]: Leaving directory `[...]' make: *** [distclean] Error 2 gdb/gdbserver/ChangeLog: * Makefile.in (maintainer-clean realclean distclean): Remove "make ... subdir_do" command.
* 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>Maxim Grigoriev2011-03-102-11/+28
| | | | | | | | | | * xtensa-tdep.c (xtensa_read_register: Add comment. (xtensa_write_register): Likewise. (xtensa_hextochar): Add comment and update to match coding conventions. (xtensa_frame_cache, xtensa_return_value): Follow coding conventions. (execute_l32e, execute_s32e, execute_code): Update comments. (xtensa_exception_handler_t): Update to match coding conventions. (xtensa_insn_kind): Likewise.
* *** empty log message ***gdbadmin2011-03-101-1/+1
|
* 2011-03-09 Michael Snyder <msnyder@vmware.com>Michael Snyder2011-03-092-0/+8
| | | | * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
* * gdb.ada/catch_ex.exp: Use explicit gdb_test rather thanTom Tromey2011-03-092-1/+8
| | | | gdb_continue_to_end.
* * gdb.base/memattr.exp: Adjust regexps to accept spaces as well asMark Kettenis2011-03-092-40/+45
| | | | tabs.
* 2011-03-09 Michael Snyder <msnyder@vmware.com>Michael Snyder2011-03-091-1/+1
| | | | * gdbserver/tracepoint.c: Fix small comment typo.
* gdb/Pedro Alves2011-03-092-1/+6
| | | | * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
* * thread.c (restore_selected_frame): Handle frame_level == -1.Tom Tromey2011-03-094-1/+34
| | | | | | | (make_cleanup_restore_current_thread): Use get_selected_frame_if_set. * frame.h (get_selected_frame_if_set): Declare. * frame.c (get_selected_frame_if_set): New function.
* * lib/gdb.exp (inferior_exited_re): Match. leading `['. Wrap inTom Tromey2011-03-099-17/+43
| | | | | | | | | | | | | | | | | parentheses. (gdb_continue_to_end): Add "allow_extra" parameter. Use $command. * gdb.threads/thread-unwindonsignal.exp: Pass "allow_extra" argument to gdb_continue_to_end. * gdb.threads/interrupted-hand-call.exp: Pass "allow_extra" argument to gdb_continue_to_end. * gdb.cp/annota3.exp: Fix regex. * gdb.cp/annota2.exp: Fix regex. * gdb.base/shlib-call.exp: Pass "allow_extra" argument to gdb_continue_to_end. * gdb.base/call-signal-resume.exp: Revert earlier patch. * gdb.ada/tasks.exp: Pass "allow_extra" argument to gdb_continue_to_end.
* * cli/cli-cmds.c (shell_escape): Use lbasename.Pedro Alves2011-03-0910-53/+40
| | | | | | | | | | | | | | | | | | * coffread.c (coff_start_symtab): Constify parameter. (complete_symtab): Constify `name' parameter. (coff_symtab_read): Constify `filestring' local. (coff_getfilename): Constify return and `result' local. Use lbasename. * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename. * linux-fork.c (info_checkpoints_command): Use lbasename. * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename. * minsyms.c (lookup_minimal_symbol): Use lbasename. * nto-tdep.c (nto_find_and_open_solib): Use lbasename. * procfs.c (procfs_make_note_section): Use lbasename. * tui/tui-io.c (printable_part): Constity return and parameter. Use lbasename. (print_filename): Constify parameters, and local `s'. (tui_rl_display_match_list): Constify local `temp'.
* gdb/Jan Kratochvil2011-03-092-18/+14
| | | | | | | | Revert: 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com> Fix DWARF-3+ DW_AT_accessibility default assumption. * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for cu->header.version >= 3.
* gdb/qiyao2011-03-094-4304/+6
| | | | | | | | 2011-03-09 Yao Qi <yao@codesourcery.com> * common/Makefile.in: Remove. * common/configure: Remove. * common/configure.ac: Remove.
* gdb/qiyao2011-03-098-167/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2011-03-09 Yao Qi <yao@codesourcery.com> Revert: 2011-02-11 Yao Qi <yao@codesourcery.com> * common/Makefile.in: Add copyright header. 2011-02-11 Yao Qi <yao@codesourcery.com> * Makefile.in: Remove signals.o from COMMON_OBS. Link libcommon.a. * configure.ac: Add common to sub dir. * configure: Regenerate. gdb/gdbserver/ 2011-03-09 Yao Qi <yao@codesourcery.com> Revert: 2011-03-04 Yao Qi <yao@codesourcery.com> * Makefile.in: Remove GNU make feature --directory. 2011-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-02-11 Yao Qi <yao@codesourcery.com> * configure.ac: Call AC_PROG_RANLIB. * Makefile.in: Remove signals.o from OBS. Link libcommon.a. * configure: Regenerate.
* 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>Maxim Grigoriev2011-03-092-6/+85
| | | | | * xtensa-tdep.c (call0_ret): New function. (xtensa_skip_prologue): Speed up analysis.
* 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>Maxim Grigoriev2011-03-092-3/+11
| | | | | * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers while executing MI command -data-list-changed-registers.
* 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>Maxim Grigoriev2011-03-092-20/+398
| | | | | | | | | | | | | | | | | | | | | * xtensa-tdep.c (xtensa_read_register): New function. (xtensa_write_register): New function. (xtensa_find_register_by_name): New function. (xtensa_windowed_frame_cache): Update comments in type description. (xtensa_frame_cache): Likewise. (xtensa_window_interrupt_insn): New function. (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames. (xtensa_insn_kind): Add new instructions. (rwx_special_register): New function. (call0_classify_opcode): Add new instructions to the analysis. (a0_saved, a7_saved, a11_saved): New variables. (a0_was_saved, a7_was_saved, a11_was_saved): New variables. (execute_l32e): New function. (execute_s32e): New function. (xtensa_exception_handler_t): New type. (execute_code): New function. (xtensa_window_interrupt_frame_cache): New function to conduct frame analysis for Xtensa Window Exception handlers.
* 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>Maxim Grigoriev2011-03-092-24/+52
| | | | | | | | * xtensa-tdep.c (TX_PS): New. (windowing_enabled): Update to count for Call0 ABI. (xtensa_hextochar): New. (xtensa_init_reggroups): Make algorithm generic. (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
* *** empty log message ***gdbadmin2011-03-091-1/+1
|
* 2011-03-08 Michael Snyder <msnyder@vmware.com>Michael Snyder2011-03-082-18/+53
| | | | | | | | | | | | | * i386-tdep.c (i386_follow_jump): Check return value of target_read_memory. (i386_analyze_struct_return): Ditto. (i386_skip_probe): Ditto. (i386_match_insn): Ditto. (i386_skip_noop): Ditto. (i386_analyze_frame_setup): Ditto. (i386_analyze_register_saves): Ditto. (i386_skip_prologue): Ditto. (i386_skip_main_prologue): Ditto.
* 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>Maxim Grigoriev2011-03-082-1/+5
| | | | * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR) Update.
* 2011-02-27 Michael Snyder <msnyder@vmware.com>Michael Snyder2011-03-082-1/+7
| | | | * target.c (read_whatever_is_readable): Fix memory leak.
* 2011-03-02 Michael Snyder <msnyder@vmware.com>Michael Snyder2011-03-082-1/+7
| | | | * i386-tdep.c (i386_process_record): Document fall through.
* gdb/Jan Kratochvil2011-03-082-6/+24
| | | | | | Fix DWARF-3+ DW_AT_accessibility default assumption. * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for cu->header.version >= 3.
* gdb/Pedro Alves2011-03-084-1/+25
| | | | | | | | | | | | | 2011-03-08 Pedro Alves <pedro@codesourcery.com> * remote.c (remote_check_symbols): Skip if the target has no execution. gdb/testsuite/ 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com> * gdb.server/ext-run.exp (load new file without any gdbserver inferior): New test.
* minor reformatting for target.c:read_whatever_is_readableJoel Brobecker2011-03-082-22/+28
| | | | | | | gdb/ChangeLog: * target.c (read_whatever_is_readable): Reformat comment, with a minor typo fix. Minor reformatting of the code.
* 2011-03-08 Yao Qi <yao@codesourcery.com>qiyao2011-03-084-93/+95
| | | | | | | | | | | | | | | | | | * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode. (displaced_read_reg): Add `dsc' parameter, remove `from' parameter. Use cached result instead of calling displaced_in_arm_mode again. (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter. (displaced_write_reg, copy_preload, copy_preload_reg): Callers update. (cleanup_copro_load_store, copy_copro_load_store): Likewise. (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise. (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise. (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise. (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise. (cleanup_block_load_all, cleanup_block_store_pc): Likewise. (cleanup_block_load_pc, copy_block_xfer): Likewise. * arm-linux-tdep.c (arm_linux_copy_svc): Callers update. (arm_catch_kernel_helper_return): Likewise. * gdb/arm-tdep.h : Update function declarations.
* *** empty log message ***gdbadmin2011-03-081-1/+1
|
* * Makefile.in (TAGS): Rewrite.Tom Tromey2011-03-072-2/+6
|
* gdb/testsuite/Jan Kratochvil2011-03-072-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.
* gdb/gdbserver/Jan Kratochvil2011-03-072-1/+5
| | | | * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
* 2011-03-04 Michael Snyder <msnyder@vmware.com>Michael Snyder2011-03-072-0/+3
| | | | * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
* 2011-03-05 Michael Snyder <msnyder@vmware.com>Michael Snyder2011-03-072-1/+6
| | | | * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
* 2011-03-05 Michael Snyder <msnyder@vmware.com>Michael Snyder2011-03-072-0/+3
| | | | * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
* 2011-03-05 Michael Snyder <msnyder@vmware.com>Michael Snyder2011-03-072-0/+5
| | | | * elfread.c (elf_symtab_read): Stop memory leak.
* 2011-03-06 Michael Snyder <msnyder@vmware.com>Michael Snyder2011-03-072-5/+12
| | | | * main.c (captured_main): Fix memory leak.
* * ada-lang.c (compare_names): Call is_name_suffix with string1Andreas Schwab2011-03-072-1/+6
| | | | instead of string2.
* * Makefile.in (TAGS): New target.Tom Tromey2011-03-072-0/+8
|
* * xcoffread.c (xcoff_sym_fns): Update.Tom Tromey2011-03-0716-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.
* gdbTom Tromey2011-03-0745-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.
* * target.h (struct target_ops) <to_has_execution>: Add ptid_tTom Tromey2011-03-076-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-07 Yao Qi <yao@codesourcery.com>qiyao2011-03-072-1/+4
| | | | * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
* Minor reformatting in elfread.c:elf_symtab_readJoel Brobecker2011-03-072-2/+5
| | | | | | gdb/ChangeLog: * elfread.c (elf_symtab_read): Minor reformatting.
* minor reformatting in objc-lang.c:selectors_infoJoel Brobecker2011-03-072-5/+9
| | | | | | gdb/ChangeLog: * objc-lang.c (selectors_info): Minor reformatting.
* add FALLTHROUGH comment in ada-lang.c:compare_namesJoel Brobecker2011-03-072-0/+5
| | | | | | gdb/ChangeLog: * ada-lang.c (compare_names): Add FALLTHROUGH comment.
* simplify ada-valprint.c:ada_val_print_arrayJoel Brobecker2011-03-072-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.
* *** empty log message ***gdbadmin2011-03-071-1/+1
|
* gdbserver: configure + make clean fails (no 'common' subdir)Joel Brobecker2011-03-062-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-05 Michael Snyder <msnyder@vmware.com>Michael Snyder2011-03-063-0/+7
| | | | | * source.c (add_path): Replace semicolon at end of block. * dwarf2expr.c (execute_stack_op): Ditto.
* gdb: blackfin: enable simulator supportMike Frysinger2011-03-063-0/+10
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>