aboutsummaryrefslogtreecommitdiff
path: root/gdb
AgeCommit message (Collapse)AuthorFilesLines
2012-01-04Copyright year update in most files of the GDB Project.Joel Brobecker359-509/+398
gdb/ChangeLog: Copyright year update in most files of the GDB Project.
2012-01-04Copyright year update in most files of the GDB Project.Joel Brobecker2180-3226/+2444
gdb/ChangeLog: Copyright year update in most files of the GDB Project.
2012-01-04use gnulib's update-copyright script to update copyright yearsJoel Brobecker3-757/+262
This patch now retires the old copyright.sh script which was using emacs to perform the copyright update. It also completely rewrite copyright.py to call update-copyright with the appropriate list of files. In addition to calling update-copyright, the new script also performs a sanity-check on all the files that update-copyright could not update, and sees whether the file might contain a copyright notice that the script could not decipher. gdb/ChangeLog: * copyright.sh: Delete. * copyright.py: Rewrite.
2012-01-04Import gnulib's update-copyright scriptJoel Brobecker2-0/+271
gdb/ChangeLog: * gnulib/extra/update-copyright: New file, imported from gnulib.
2012-01-04[README] Add note about copyright and license noticesJoel Brobecker2-0/+24
Also explain the use of year ranges in copyright notices. gdb/ChangeLog: * README (Copyright and License Notices): New section.
2012-01-04*** empty log message ***gdbadmin1-1/+1
2012-01-03 PR python/12533:Tom Tromey2-24/+86
* python/py-value.c (valpy_dereference, valpy_get_address valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast) (valpy_getitem, valpy_call, valpy_binop, valpy_negative) (valpy_absolute, valpy_richcompare): Free intermediate values.
2012-01-03more copyright notice reformatting.Joel Brobecker4-6/+13
gdb/ChangeLog: * ada-lang.c: Reformat the copyright notice. gdb/testsuite/ChangeLog: * gdb.base/auxv.exp: Reformat the copyright notice.
2012-01-03gdb/testsuite/Yao Qi3-0/+171
* gdb.trace/strace.exp (strace_trace_on_same_addr): New. (strace_trace_on_diff_addr): New. * gdb.trace/strace.c: (main): Add two local variables.
2012-01-03gdb/gdbserver/Yao Qi2-2/+11
* tracepoint.c (tracepoint_was_hit): Don't collect for static tracepoint.
2012-01-03*** empty log message ***gdbadmin1-1/+1
2012-01-02 * gdb.cell/fork.exp: Delete breakpoints after reaching main.Ulrich Weigand4-9/+19
* gdb.cell/gcore.exp: Likewise. * gdb.cell/solib-symbol.exp: Use "info symbol" instead of "break" to verify the correct instance of main is selected.
2012-01-02gdb/Jan Kratochvil3-10/+20
* Makefile.in (ALL_TARGET_OBS): Remove solib-target.o. * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*) (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*) (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o. Revert this part of: 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com> Build gdb directly from *.o files not using libgdb.a. * Makefile.in (COMMON_OBS): Remove solib-target.o.
2012-01-02Update the copyright header of various files...Joel Brobecker40-47/+63
... to follow the correct syntax (according to the gospel of gnulib's update-copyright). In other words: - no comma after the last year; - FSF spelled exactly "Free Software Foundation, Inc.", with the comma and the period at the end. sim/common/ChangeLog: * dv-sockser.h, sim-assert.h, sim-fpu.c: Reformat the copyright header. sim/m32c/ChangeLog: * blinky.S, gloss.S, sample.S: Reformat copyright header. sim/mn10300/ChangeLog: * sim-main.h: Reformat copyright header. sim/ppc/ChangeLog: * dp-bit.c: Reformat copyright header. gdb/ChangeLog: * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c, gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c: Reformat the copyright header. gdb/gdbserver/ChangeLog: * terminal.h: Reformat copyright header. gdb/testsuite/ChangeLog: * dg-extract-results.sh, gdb.arch/gcore.c, gdb.arch/gdb1558.c, gdb.arch/i386-gnu-cfi.c, gdb.base/complex.c, gdb.base/cvexpr.c, gdb.base/gcore.c, gdb.base/gdb1555-main.c, gdb.base/gdb1555.c, gdb.base/gdb1821.c, gdb.base/long_long.c, gdb.base/restore.c, gdb.base/sepdebug.c, gdb.base/type-opaque-lib.c, gdb.base/type-opaque-main.c, gdb.cp/maint.exp, gdb.cp/namespace1.cc, gdb.cp/pr9631.cc, gdb.cp/psmang1.cc, gdb.cp/psmang2.cc, gdb.cp/try_catch.cc, gdb.cp/virtfunc.cc, gdb.hp/gdb.base-hp/reg.exp, gdb.mi/basics.c, gdb.mi/mi-stack.c, gdb.mi/mi-var-child.c, gdb.mi/mi2-var-child.exp, gdb.mi/var-cmd.c, gdb.threads/thread_check.c: Reformat copyright header.
2012-01-02gdb/Jan Kratochvil4-1/+12
Revert this part of: 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com> Remove the gdbtui binary. * gdb.c (main): Remove args.interpreter_p initialization. * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE. * main.h (struct captured_main_args): Remove interpreter_p.
2012-01-02Add fnchange.lst entry for gdb/ChangeLog-2011.Joel Brobecker2-0/+5
gdb/ChangeLog: * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
2012-01-02gdb/gdbserver/gdbreplay: Update copyright year in version outJoel Brobecker5-3/+12
gdb/ChangeLog: * top.c (print_gdb_version): Update copyright year. gdb/gdbserver/ChangeLog: * server.c (gdbserver_version): Update copyright year. * gdbreplay.c (gdbreplay_version): Likewise.
2012-01-02Rotate GDB ChangeLog for 2012.Joel Brobecker2-12650/+12659
2012-01-02 gdb/Yao Qi2-1/+5
* inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
2012-01-02gdb/Jan Kratochvil4-17/+47
Fix regression for gdb.cp/gdb2495.exp with gcc-4.7. * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to 3 times. * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and fall through into AT_ENTRY_POINT. (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust DUMMY_ADDR with it. * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase PPC_INSN_SIZE skip to 3 times.
2012-01-02gdb/Jan Kratochvil3-0/+8
* amd64-linux-nat.c (update_debug_registers_callback): New comment on the return value. * i386-linux-nat.c (update_debug_registers_callback): Likewise.
2012-01-02gdb/Jan Kratochvil3-80/+113
Build gdb directly from *.o files not using libgdb.a. * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o. (COMMON_OBS): Remove solib-target.o. (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule. (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS). (LIBGDB_OBS, libgdb.a): Move it above. * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*) (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu) (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe) (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu) (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*) (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*) (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu) (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*) (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*) (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*) (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*) (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*) (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*) (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*) (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*) (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*) (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*) (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*) (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*) (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu) (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*) (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*) (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*) (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*) (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu) (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*) (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
2012-01-02gdb/Jan Kratochvil14-108/+38
Remove the gdbtui binary. * .gitignore (/gdbtui): Remove. * Makefile.in (TUI): Remove. (SUBDIR_TUI_OBS): Remove tui-main.o. (SUBDIR_TUI_SRCS): Remove tui/tui-main.c. (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui) (tui-main.o): Remove. (all_object_files): Remove tui-main.o. * NEWS: New note for the gdbtui removal. * configure: Rebuilt. * configure.ac: No longer add all-tui, clean-tui, install-tui and uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and CONFIG_UNINSTALL respectively. * gdb.c (main): Remove args.interpreter_p initialization. * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE. * main.h (struct captured_main_args): Remove interpreter_p. * tui/tui-main.c: Remove. gdb/doc/ Remove the gdbtui binary. * all-cfg.texi (GDBTUI): Remove. * gdb.texinfo (Mode Options): Remove the GDBTUI reference. (TUI): Remove GDBTUI pindex. Remove the GDBTUI reference. * gdbint.texinfo (Testsuite): Replace `gdbtui' by `gdb -tui'.
2012-01-02 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.Doug Evans2-54/+75
(dwarf2_physname, read_import_statement): Ditto. (read_call_site_scope, dwarf2_record_block_ranges): Ditto. (process_structure_scope read_subroutine_type): Ditto. (read_typedef, load_partial_dies, read_partial_die): Ditto. (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto. (dwarf2_fetch_die_location_block): Ditto. (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
2012-01-02 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.Doug Evans2-46/+46
All callers updated. (load_full_comp_unit, queue_comp_unit, process_queue): Ditto. (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto. (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
2012-01-02 * dwarf2read.c (load_cu): Move assert to more useful location.Doug Evans2-2/+4
2012-01-02 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.Doug Evans2-8/+11
All callers updated.
2012-01-02 * dwarf2read.c (dwarf2_per_objfile): Add comment.Doug Evans2-11/+28
(dwarf2_elf_names): Minor reformat. (dwarf2_per_cu_data): Tweak comment. (dwarf2_read_section): Fix comment. (create_all_comp_units): Fix comment. (load_full_comp_unit): Fix comment. (process_full_comp_unit): Fix comment. (read_signatured_type): Fix comment.
2012-01-02*** empty log message ***gdbadmin1-1/+1
2012-01-01*** empty log message ***gdbadmin1-1/+1
2011-12-31 * dwarf2read.c (read_typedef): Guard against self-referential typedefs.Doug Evans2-2/+18
2011-12-31*** empty log message ***gdbadmin1-1/+1
2011-12-30Fixing previous Changelog entry (removing the unnecessary "gdb/testsuite/" lineEdjunior Barbosa Machado1-2/+1
and adding the missing period)
2011-12-302011-12-30 Edjunior Machado <emachado@linux.vnet.ibm.com>Edjunior Barbosa Machado3-1/+12
gdb/testsuite/ * gdb.python/py-finish-breakpoint.exp: Add `.' prefix for ppc64 * gdb.python/py-finish-breakpoint2.exp: Skip testcase if python support is not enabled.
2011-12-30*** empty log message ***gdbadmin1-1/+1
2011-12-29*** empty log message ***gdbadmin1-1/+1
2011-12-28gdb/Jan Kratochvil3-2/+7
* gdbarch.sh (max_insn_length): Extend the comment by unit. * gdbarch.h: Regenerate.
2011-12-28varobj.c:varobj_update minor reformattingJoel Brobecker2-1/+7
gdb/ChangeLog: * varobj.c (varobj_update): Minor reformatting, putting the function name at the start of the next line.
2011-12-28*** empty log message ***gdbadmin1-1/+1
2011-12-27 * dwarf2read.c (struct dwarf2_cu): Delete members first_fn, last_fn,Doug Evans2-98/+11
cached_fn. (struct function_range): Delete. (initialize_cu_func_list, add_to_cu_func_list): Delete. All callers updated. (check_cu_functions): Ditto.
2011-12-272011-12-27 Mark Kettenis <kettenis@gnu.org>Mark Kettenis2-0/+65
* inf-ptrace.c [PT_IO && PIOD_READ_AUXV] (inf_ptrace_xfer_partial): Implement TARGET_OBJECT_AUXV. (inf_ptrace_auxv_parse): New function. (inf_ptrace_target): Initialize to_auxv_parse field.
2011-12-27gdb/testsuite/Jan Kratochvil3-6/+18
* gdb.python/py-finish-breakpoint.c (test_exec_exit): Change the parameter to self_exec, adjust the function. (main): Check for argv[1] "exit". Use argv[0] for test_exec_exit. * gdb.python/py-finish-breakpoint.exp (set var self_exec = 0): New test. (set var do_exit = 0): Remove test. (newline at end of file): Add one.
2011-12-27New function ada-lang.c:should_use_wild_match...Joel Brobecker2-10/+30
... to avoid code duplication. gdb/ChangeLog: * ada-lang.c (should_use_wild_match): New function. (ada_lookup_simple_minsym): Use should_use_wild_match. Minor simplification. Add comment. (ada_lookup_symbol_list): Use should_use_wild_match. Minor simplification.
2011-12-27remove use of sprintf in py-finishbreakpoint.c...Joel Brobecker2-1/+6
... and replace it with call to xsnprintf, following GDB's coding rules. gdb/ChangeLog: * py-finishbreakpoint.c (bpfinishpy_init): Replace call to sprintf by call to xsnprintf.
2011-12-27Ignore data minimal symbols for breakpoint linespecsJoel Brobecker6-0/+176
gdb/ChangeLog: * linespec.c (struct collect_minsyms) [list_mode]: New field. (add_minsym): Ignore data symbols if not in list mode. (search_minsyms_for_name): Set local.list_mode. gdb/testsuite/ChangeLog: * gdb.base/dmsym.c, gdb.base/dmsym_main.c, gdb.base/dmsym.exp: New files.
2011-12-27Improve gdb_realpath for Windows hostsJoel Brobecker2-0/+23
On Windows hosts, gdb_realpath is just an xstrdup. This makes filename comparisons on Windows very chancy. Normally, we would normalize both paths, and then compare. But since the normalization doesn't do anything, two equivalent names on Windows might not match. This can happen when trying to insert a breakpoint using the fullpath of a file. For instance, if the compiler generated debug info that says that the compilation directory is: `c:\\some\\double\\slashes\\dir', then trying to insert a breakpoint on `c:/some/double/slashes/dir/foo.c:4' does not work: (gdb) b c:/some/double/slashes/dir/foo.c:4 No source file named c:/some/double/slashes/dir/foo.c:4. (gdb) b c:\some\double\slashes\dir\foo.c:4 No source file named c:\some\double\slashes\dir\foo.c:4. This fixes the problem by enhancing gdb_realpath on Windows hosts. The code is inspired from libiberty's lrealpath. gdb/ChangeLog: * utils.c (gdb_realpath): Add better support for Windows hosts.
2011-12-27*** empty log message ***gdbadmin1-1/+1
2011-12-26gdb/testsuite/Jan Kratochvil2-0/+15
Fix racy FAILs. * gdb.threads/fork-thread-pending.c (barrier): New variable. (thread_function, thread_forker): Call pthread_barrier_wait for it. (main): Call pthread_barrier_init for it.
2011-12-26gdb/testsuite/Jan Kratochvil6-23/+23
Fix double send_gdb leading to racy FAILs. * gdb.base/break.exp (set silent break bp_location1): Replace 3x send_gdb and gdb_expect by gdb_test. * gdb.base/fileio.exp: Replace 2x send_gdb by gdb_exit and sleep. * gdb.base/foll-vfork.exp (vfork_and_exec_child_follow_to_main_bp) (vfork_and_exec_child_follow_through_step): Use gdb_test_no_output instead of send_gdb. Twice. * gdb.base/sepdebug.exp (set silent break bp_location1): Replace 3x send_gdb and gdb_expect by gdb_test. * gdb.mi/mi-nsmoribund.exp: Replace 3x send_gdb by mi_gdb_test.
2011-12-26*** empty log message ***gdbadmin1-1/+1