aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
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 * gold/incremental.cc (Sized_incremental_binary::do_process_got_plt):Cary Coutant6-17/+50
Use abstract base class for GOT. * gold/output.h (class Output_data_got_base): New abstract base class. (class Output_data_got): Derive from new base class, adjust ctors. (Output_data_got::reserve_slot): Make virtual; rename to do_reserve_slot; Adjust callers. * gold/target.h (Sized_target::init_got_plt_for_update): Return pointer to abstract base class. * gold/x86_64.cc (Target_x86_64::init_got_plt_for_update): Likewise.
2012-01-04*** empty log message ***gdbadmin1-1/+1
2012-01-03daily updateAlan Modra1-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-03merge from gccDJ Delorie2-5/+29
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-03support stabs on mach-o GAS.Iain Sandoe5-17/+77
bfd: * mach-o.c (bfd_mach_o_mangle_symbols): Put in the section index for stabd symbols. (bfd_mach_o_primary_symbol_sort_key): Adjust for stabs. (bfd_mach_o_cf_symbols): Likewise. gas: * config/obj-macho.c (obj_macho_process_stab): New. * config/obj-macho.h (OBJ_PROCESS_STAB): Define. (obj_macho_process_stab): Declare.
2012-01-03correct typo in previous commit.Iain Sandoe2-1/+5
bfd: * mach-o.c (bfd_mach_o_mangle_symbols): Correct typo.
2012-01-03add dysymtab write support to bfd/mach-o.Iain Sandoe10-105/+1164
bfd: * mach-o.c (bfd_mach_o_write_symtab): Fill in the string table index as the value of an indirect symbol. Keep the string table index in non-indirect syms for reference. (bfd_mach_o_write_dysymtab): New. (bfd_mach_o_primary_symbol_sort_key): New. (bfd_mach_o_cf_symbols): New. (bfd_mach_o_sort_symbol_table): New. (bfd_mach_o_mangle_symbols): Return early if no symbols. Sort symbols. If we are emitting a dysymtab, process indirect symbols and count the number of each other kind. (bfd_mach_o_mangle_sections): New. (bfd_mach_o_write_contents): Split out some pre-requisite code into the command builder. Write dysymtab if the command is present. (bfd_mach_o_count_sections_for_seg): New. (bfd_mach_o_build_seg_command): New. (bfd_mach_o_build_dysymtab_command): New. (bfd_mach_o_build_commands): Reorganize to support the fact that some commands are optional and should not be emitted if there are no sections or symbols. (bfd_mach_o_set_section_contents): Amend comment. * mach-o.h: Amend and add to comments. (mach_o_data_struct): Add fields for dysymtab symbols counts and a pointer to the indirects, when present. (bfd_mach_o_should_emit_dysymtab): New macro. (IS_MACHO_INDIRECT): Likewise. gas/testsuite: * gas/mach-o/dysymtab-1-64.d: New. * gas/mach-o/dysymtab-1.d: New. * gas/mach-o/symbols-1-64.d: New. * gas/mach-o/symbols-1.d: New. * gas/mach-o/symbols-base-64.s: New. * gas/mach-o/symbols-base.s: New.
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-02daily updateAlan Modra1-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 Brobecker52-55/+88
... 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-01daily updateAlan Modra1-1/+1
2012-01-01*** empty log message ***gdbadmin1-1/+1
2011-12-31daily updateAlan Modra1-1/+1
2011-12-31 * dwarf2read.c (read_typedef): Guard against self-referential typedefs.Doug Evans2-2/+18
2011-12-31sim: erc32: fix linking against local readline on modern (ncurses) systemsMike Frysinger3-21/+52
The current erc32 configure script only searches for -ltermcap to provide any termcap funcs (which readlines needs). When building against a local readline (which is static), we hit link failures like so: gcc ...-I/-D flags... -o sis \ sis.o exec.o erc32.o func.o help.o float.o \ ../../bfd/libbfd.a ../../opcodes/libopcodes.a \ ../../libiberty/libiberty.a -lz -lnsl \ ../../readline/libreadline.a -lm ../../readline/libreadline.a(display.o): In function 'cr': .../readline/display.c:2486: undefined reference to 'tputs' collect2: ld returned 1 exit status make[2]: *** [sis] Error 1 Use AC_SEARCH_LIBS from gdb's configure.ac as suggested by Joel Brobecker to check for additional termcap providers. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-12-31*** empty log message ***gdbadmin1-1/+1
2011-12-30daily updateAlan Modra1-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-30sim: cr16: add ifdefs around undefined syscallsMike Frysinger2-0/+17
The cr16 libgloss port does not define these syscall numbers, so trying to use them results in build failures [1]. The cr16 code already uses ifdefs around a bunch of syscalls, so extend that style to cover the ones that are currently missing. Now we can at least compile. [1] http://sourceware.org/ml/gdb-patches/2011-06/msg00118.html Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-12-30*** empty log message ***gdbadmin1-1/+1
2011-12-29daily updateAlan Modra1-1/+1
2011-12-29adjust mach-o default GAS sections.Iain Sandoe7-8/+69
gas: * as.c (perform_an_assembly_pass): Do not create text, data and bss sections for MACH-O. Do not switch to the text section. * config/obj-macho.c (obj_mach_o_segT_from_bfd_name): Forward decl. (mach_o_begin): Startup with only text section unless suppressed. * config/obj-macho.h (obj_begin): define to mach_o_begin (). gas/testsuite: * gas/mach-o/sections-1.d: Amend to recognize that bss is not emitted by default. * gas/mach-o/sections-2.d: New.
2011-12-29 * dwarf.c (read_and_display_attr_value): Handle DW_LANG_Go.Ian Lance Taylor2-0/+6
2011-12-29*** empty log message ***gdbadmin1-1/+1