OSDN Git Service

pf3gnuchains/pf3gnuchains4x.git
12 years ago2012-01-10 Tristan Gingold <gingold@adacore.com>
gingold [Tue, 10 Jan 2012 11:59:28 +0000 (11:59 +0000)]
2012-01-10  Tristan Gingold  <gingold@adacore.com>

* mach-o.c (bfd_mach_o_build_commands): Avoid uninitialized false
warning.

12 years ago2012-01-10 Tristan Gingold <gingold@adacore.com>
gingold [Tue, 10 Jan 2012 11:52:27 +0000 (11:52 +0000)]
2012-01-10  Tristan Gingold  <gingold@adacore.com>

* objdump.c (display_object_bfd): Renamed from ...
(display_bfd): ... this.
(display_any_bfd): New function.
(display_file): Split.  Handle nested archives.

12 years ago2012-01-10 Tristan Gingold <gingold@adacore.com>
gingold [Tue, 10 Jan 2012 11:51:08 +0000 (11:51 +0000)]
2012-01-10  Tristan Gingold  <gingold@adacore.com>

* bfdio.c (bfd_tell): Handle nested archives.
(bfd_seek): Ditto.
* cache.c (bfd_cache_lookup_worker): Ditto.
* archive.c (_bfd_get_elt_at_filepos): Remove code dealing with
nested archives.
(bfd_generic_openr_next_archived_file): Likewise.

12 years ago2012-01-10 Tristan Gingold <gingold@adacore.com>
gingold [Tue, 10 Jan 2012 11:48:26 +0000 (11:48 +0000)]
2012-01-10  Tristan Gingold  <gingold@adacore.com>

* struc-symbol.h (struct symbol_flags): New struct, created from...
(struct symbol): ... this one.  Add sy_flags field, remove flag fields.
(struct local_symbol): Replace lsy_marker field by lsy_flags.
Adjust comment.
(local_symbol_resolved_p): Adjust.
(local_symbol_mark_resolved): Likewise.
* symbols.c (LOCAL_SYMBOL_CHECK): Adjust.
(local_symbol_make, local_symbol_convert, colon)
(symbol_clone_if_forward_ref, verify_symbol_chain)
(resolve_symbol_value, snapshot_symbol, S_GET_VALUE)
(S_IS_WEAKREFR, S_IS_WEAKREFD, S_IS_VOLATILE, S_IS_FORWARD_REF)
(S_SET_WEAKREFR, S_CLEAR_WEAKREFR, S_SET_WEAKREFD)
(S_CLEAR_WEAKREFD, S_SET_VOLATILE, S_CLEAR_VOLATILE)
(S_SET_FORWARD_REF, symbol_same_p, symbol_mark_used)
(symbol_clear_used, symbol_used_p, symbol_mark_used_in_reloc)
(symbol_clear_used_in_reloc, symbol_used_in_reloc_p)
(symbol_mark_mri_common, symbol_clear_mri_common)
(symbol_mri_common_p, symbol_mark_written, symbol_clear_written)
(symbol_written_p, symbol_mark_resolved, symbol_resolved_p)
(symbol_equated_reloc_p, dot_symbol_init)
(print_symbol_value_1): Adjust.

12 years agobinutils/
roland [Tue, 10 Jan 2012 00:02:44 +0000 (00:02 +0000)]
binutils/
* configure.in: Use AM_ZLIB.
* configure: Regenerated.

ld/
* configure.in: Use AM_ZLIB.
* configure: Regenerated.

12 years ago*** empty log message ***
gdbadmin [Tue, 10 Jan 2012 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***

12 years agodaily update
amodra [Mon, 9 Jan 2012 23:00:05 +0000 (23:00 +0000)]
daily update

12 years ago * libc/include/sys/unistd.h [__CYGWIN__] (get_current_dir_name):
yselkowitz [Mon, 9 Jan 2012 22:49:19 +0000 (22:49 +0000)]
* libc/include/sys/unistd.h [__CYGWIN__] (get_current_dir_name):
Declare.

12 years ago * libc/include/complex.h: Fix "/*" within comment warning.
yselkowitz [Mon, 9 Jan 2012 22:46:33 +0000 (22:46 +0000)]
* libc/include/complex.h: Fix "/*" within comment warning.

12 years ago * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
devans [Mon, 9 Jan 2012 22:31:37 +0000 (22:31 +0000)]
* gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
* varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.

12 years ago * breakpoint.c (wrapper.h): Don't include.
kseitz [Mon, 9 Jan 2012 20:47:46 +0000 (20:47 +0000)]
* breakpoint.c (wrapper.h): Don't include.

12 years ago * Makefile.in (SFILES): Remove wrapper.c.
kseitz [Mon, 9 Jan 2012 20:27:41 +0000 (20:27 +0000)]
* Makefile.in (SFILES): Remove wrapper.c.
(HFILES_NO_SRCDIR): Remove wrapper.h.
(COMMON_OBS): Remove wrapper.o.
* cli/cli-interp.c: Don't inlude wrapper.h.
* corelow.c: Likewise.
(core_open): Replace gdb_target_find_new_threads with
TRY_CATCH around target_find_new_threads.
* eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
* gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
* varobj.c (varobj_create): Likewise for parse_exp_1 and
evaluate_expression.
(varobj_set_value): Likewise for evaluate_expression and
value_assign.
(install_new_variable): Likewise for value_fetch_lazy.
(adjust_value_for_child_access): Likewise for value_ind.
(c_describe_child): Likewise for value_subscript and
value_ind.
(c_value_of_root): Likewise for evaluate_expression.
* wrapper.c: Remove.
* wrapper.h: Remove.

12 years agoInitial x32 support in gold
hjl [Mon, 9 Jan 2012 17:42:34 +0000 (17:42 +0000)]
Initial x32 support in gold

2012-01-09  H.J. Lu  <hongjiu.lu@intel.com>

* x86_64.cc: Initial support for x32.

12 years ago * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
devans [Mon, 9 Jan 2012 17:40:04 +0000 (17:40 +0000)]
* dwarf2read.c (read_and_check_comp_unit_head): Renamed from
partial_read_comp_unit_head.  Replace "buffer", "buffer_size" and
"abfd" args with "section".  All callers updated.
Error checking code moved ...
(error_check_comp_unit_head): ... here.  New function.
(read_and_check_type_unit_head): Renamed from read_type_unit_head.
Delete arg "abfd".  New arg "type_offset".  All callers updated.
(create_debug_types_hash_table): Simplify by using
read_and_check_type_unit_head.

12 years ago * parser-defs.h (namecopy): Delete.
devans [Mon, 9 Jan 2012 17:27:15 +0000 (17:27 +0000)]
* parser-defs.h (namecopy): Delete.
* parse.c (namecopy, namecopy_size): Move into copy_name.

12 years ago * server.c (start_inferior): Set last_ptid in --wrapper case.
devans [Mon, 9 Jan 2012 17:17:50 +0000 (17:17 +0000)]
* server.c (start_inferior): Set last_ptid in --wrapper case.

12 years ago * libc/include/process.h: Remove Cygwin-only header.
corinna [Mon, 9 Jan 2012 17:06:19 +0000 (17:06 +0000)]
* libc/include/process.h: Remove Cygwin-only header.

12 years ago * include/cygwin/process.h: Move here from newlib.
corinna [Mon, 9 Jan 2012 17:03:33 +0000 (17:03 +0000)]
* include/cygwin/process.h: Move here from newlib.
* exec.cc: Change include of process.h to reflect the fact that it's
now in the include/cygwin subfolder.
* spawn.cc: Ditto.
* syscalls.cc: Ditto.

12 years agogdb/
jkratoch [Mon, 9 Jan 2012 15:21:07 +0000 (15:21 +0000)]
gdb/
Partially fix duplicate .o files after omitting libbfd.a.
* config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
* config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
* config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
* config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
* config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
* config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
* config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.

12 years ago * miscfuncs.cc (thread_wrapper): Make sure stack is 16 byte aligned
corinna [Mon, 9 Jan 2012 14:19:56 +0000 (14:19 +0000)]
* miscfuncs.cc (thread_wrapper): Make sure stack is 16 byte aligned
to make gcc-3 compiled pthread applications happy.

12 years agoadd symbol qualifiers for mach-o to bfd/gas
iains [Mon, 9 Jan 2012 10:47:45 +0000 (10:47 +0000)]
add symbol qualifiers for mach-o to bfd/gas

bfd:

* mach-o.c (bfd_mach_o_bfd_copy_private_symbol_data): Implement.
(bfd_mach_o_write_symtab): Remove handling for indirect syms.
(bfd_mach_o_primary_symbol_sort_key): Likewise.
(bfd_mach_o_cf_symbols): Likewise.
(bfd_mach_o_sort_symbol_table): Remove.
(bfd_mach_o_mangle_symbols): Adjust arguments, remove handling
for indirect and dysymtab counts.  Do the symbol sorting here.
(bfd_mach_o_build_dysymtab_command): Count the symbol types here.
Make the indirect symbols a TODO.
(bfd_mach_o_build_commands): Adjust call to bfd_mach_o_mangle_symbols.
(bfd_mach_o_make_empty_symbol): Specifically flag unset symbols with
a non-zero value.
(bfd_mach_o_read_symtab_symbol): Record the symbol index.
(bfd_mach_o_read_symtab_symbol): Adjust recording of global status.
* mach-o.h (mach_o_data_struct): Remove indirect and dysymtab entries.
(IS_MACHO_INDIRECT): Remove.
(SYM_MACHO_FIELDS_UNSET, SYM_MACHO_FIELDS_NOT_VALIDATED): New.

gas:

* config/obj-macho.c (obj_mach_o_weak): Remove.
(obj_mach_o_common_parse): Set symbol qualifiers.
(LAZY, REFE): New macros.
(obj_mach_o_symbol_type): New enum.
(obj_mach_o_set_symbol_qualifier): New.
(obj_mach_o_sym_qual): New.
(mach_o_pseudo_table): Add symbol qualifiers, set indirect_symbol to
a dummy function.
(obj_mach_o_type_for_symbol): New.
(obj_macho_frob_label): New.
(obj_macho_frob_symbol): New.
* config/obj-macho.h (S_SET_ALIGN): Amend temorary var name.
(obj_frob_label, obj_macho_frob_label): Declare.
(obj_frob_symbol, obj_macho_frob_symbol): Declare.

gas/testsuite:

* gas/mach-o/err-syms-1.s: New.
* gas/mach-o/err-syms-2.s: New.
* gas/mach-o/err-syms-3.s: New.
* gas/mach-o/symbols-2.d: New.
* gas/mach-o/symbols-2.s: New.
* gas/mach-o/symbols-3.s: New.
* gas/mach-o/symbols-4.s: New.
* gas/mach-o/symbols-5.d: New.
* gas/mach-o/symbols-5.s: New.

12 years ago2012-01-09 Pedro Alves <palves@redhat.com>
palves [Mon, 9 Jan 2012 10:07:26 +0000 (10:07 +0000)]
2012-01-09  Pedro Alves  <palves@redhat.com>

* MAINTAINERS: Update my email address.

12 years ago * Makefile.common (MINGW_LDFLAGS): Correctly use -L rather than -B here.
corinna [Mon, 9 Jan 2012 09:50:43 +0000 (09:50 +0000)]
* Makefile.common (MINGW_LDFLAGS): Correctly use -L rather than -B here.

12 years ago*** empty log message ***
gdbadmin [Mon, 9 Jan 2012 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

12 years agodaily update
amodra [Sun, 8 Jan 2012 23:00:06 +0000 (23:00 +0000)]
daily update

12 years ago * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
devans [Sun, 8 Jan 2012 22:20:16 +0000 (22:20 +0000)]
* dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
n_type_units.  Rename type_comp_units to all_type_units.
All uses updated.
(add_signatured_type_cu_to_table): Renamed from
add_signatured_type_cu_to_list.  All callers updated.

12 years ago * gdbtypes.h (struct cplus_struct_type): Delete member
devans [Sun, 8 Jan 2012 21:02:39 +0000 (21:02 +0000)]
* gdbtypes.h (struct cplus_struct_type): Delete member
nfn_fields_total.  All uses removed.

12 years agogas/
rsandifo [Sun, 8 Jan 2012 12:33:53 +0000 (12:33 +0000)]
gas/
* config/tc-mips.c (s_tls_rel_directive): Call mips_clear_insn_labels.

gas/testsuite/
* gas/mips/tls-relw.s, gas/mips/tls-relw.d: New test.
* gas/mips/mips.exp: Run it.

12 years agogas/
rsandifo [Sun, 8 Jan 2012 12:11:39 +0000 (12:11 +0000)]
gas/
2011-01-08  Andrew Pinski  <andrew.pinski@caviumnetworks.com>
    Richard Sandiford  <rdsandiford@googlemail.com>

* config/tc-mips.c (mips_move_labels): Take the list of labels and
textness as parameters.
(mips_move_text_labels): New function.
(append_insn): Use it instead of mips_move_labels.
(mips_emit_delays, start_noreorder): Likewise.
(mips_align): Take the labels rather than just one label.
Move all labels to after the .align.
(s_align): Change the last argument to mips_align.
(s_cons): Likewise.
(s_float_cons): Likewise.
(s_gpword): Likewise.
(s_gpdword): Likewise.

gas/testsuite/
* gas/mips/align3.s, gas/mips/align3.d: New testcase.
* gas/mips/mips.exp: Run it.

12 years ago* dtable.cc (dtable::stdio_init): Always initialize console when we have one.
cgf [Sun, 8 Jan 2012 06:24:15 +0000 (06:24 +0000)]
* dtable.cc (dtable::stdio_init): Always initialize console when we have one.
* fhandler_termios.cc (fhandler_termios::tcsetpgrp): Use a better method to
print tty name for debugging.
(fhandler_termios::bg_check): Ditto.
* pinfo.cc (_pinfo::set_ctty): Remove leftover debugging stuff.  Simplify
behavior when setting tty's sid and pgid to avoid overwriting previously set
values.
* spawn.cc (ch_spawn): Cosmetic change.

12 years agoAdd my recent API additions.
yselkowitz [Sun, 8 Jan 2012 01:32:17 +0000 (01:32 +0000)]
Add my recent API additions.

12 years ago*** empty log message ***
gdbadmin [Sun, 8 Jan 2012 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***

12 years agodaily update
amodra [Sat, 7 Jan 2012 23:00:06 +0000 (23:00 +0000)]
daily update

12 years agomerge from gcc
jason [Sat, 7 Jan 2012 02:53:16 +0000 (02:53 +0000)]
merge from gcc

12 years ago*** empty log message ***
gdbadmin [Sat, 7 Jan 2012 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

12 years agodaily update
amodra [Fri, 6 Jan 2012 23:00:06 +0000 (23:00 +0000)]
daily update

12 years agomerge from gcc
dj [Fri, 6 Jan 2012 22:04:39 +0000 (22:04 +0000)]
merge from gcc

12 years agoEnsure Makefile.comm source is included in distribution tarballs.
keithmarshall [Fri, 6 Jan 2012 22:01:15 +0000 (22:01 +0000)]
Ensure Makefile.comm source is included in distribution tarballs.

12 years ago2012-01-06 Chris Sutcliffe <ir0nh34d@users.sf.net>
ironhead [Fri, 6 Jan 2012 18:51:32 +0000 (18:51 +0000)]
2012-01-06  Chris Sutcliffe  <ir0nh34d@users.sf.net>

        * include/windef.h (WINVER): Back off to 0x0500.

12 years ago * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
devans [Fri, 6 Jan 2012 18:13:21 +0000 (18:13 +0000)]
* dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
to top of file.
(dwarf2_find_comp_unit): Delete.
(process_psymtab_comp_unit): Make result "void".
Delete args buffer, info_ptr, buffer_size, and replace with
"section".  All callers updated.
(dwarf2_build_psymtabs_hard): Simplify.

12 years ago2012-01-06 Tristan Gingold <gingold@adacore.com>
gingold [Fri, 6 Jan 2012 16:23:38 +0000 (16:23 +0000)]
2012-01-06  Tristan Gingold  <gingold@adacore.com>

* config/tc-i386.c: Update copyright year.
(lex_got): Also defined for Mach-O.
Add a guard for non-ELF configuration.
(md_longopts): Also handle -64 for Mach-O.
(md_parse_option): Likewise.
(i386_target_format): Adjust for x86_64-darwin.

12 years ago PR binutils/13121
nickc [Fri, 6 Jan 2012 15:44:28 +0000 (15:44 +0000)]
PR binutils/13121
* reloc.c (bfd_generic_lookup_section_flags): Rename 'finfo' to
'flaginfo' to avoid conflicts with AIX system headers.

12 years ago2012-01-06 Tristan Gingold <gingold@adacore.com>
gingold [Fri, 6 Jan 2012 11:43:50 +0000 (11:43 +0000)]
2012-01-06  Tristan Gingold  <gingold@adacore.com>

* bfdio.c (bfd_bread): Use arelt_size macro.

12 years ago2012-01-06 Tristan Gingold <gingold@adacore.com>
gingold [Fri, 6 Jan 2012 11:41:27 +0000 (11:41 +0000)]
2012-01-06  Tristan Gingold  <gingold@adacore.com>

* config.bfd (i[3-7]86-*-darwin*): Define targ64_selvecs.

12 years ago * po/ru.po: Updated Russian translation.
nickc [Fri, 6 Jan 2012 10:29:56 +0000 (10:29 +0000)]
* po/ru.po: Updated Russian translation.

12 years ago * new-features.sgml (ov-new1.7.10): Document pthread_sigqueue.
yselkowitz [Fri, 6 Jan 2012 07:13:11 +0000 (07:13 +0000)]
* new-features.sgml (ov-new1.7.10): Document pthread_sigqueue.

12 years ago * cygwin.din (pthread_sigqueue): Export.
yselkowitz [Fri, 6 Jan 2012 07:12:15 +0000 (07:12 +0000)]
* cygwin.din (pthread_sigqueue): Export.
* posix.sgml (std-gnu): Add pthread_sigqueue.
* thread.cc (pthread_sigqueue): New function.
* include/thread.h (pthread_sigqueue): New function.
* include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump.

12 years agosim: headers: use abs_srcdir to find helper scripts
vapier [Fri, 6 Jan 2012 06:43:47 +0000 (06:43 +0000)]
sim: headers: use abs_srcdir to find helper scripts

Trying to run `headers` in an out-of-tree build fails atm due to the
relative srcdir paths being used in a location other than where they
were setup to be used from.  Get abs_srcdir from configure and use
that instead where applicable.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
12 years ago * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
qiyao [Fri, 6 Jan 2012 05:58:28 +0000 (05:58 +0000)]
* tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
defined.
[IN_PROCESS_AGENT] (debug_agent): New global variable.

12 years ago2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
sergiodj [Fri, 6 Jan 2012 03:34:44 +0000 (03:34 +0000)]
2012-01-06  Sergio Durigan Junior  <sergiodj@redhat.com>
    Thiago Jung Bauermann  <bauerman@br.ibm.com>

* ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
before `struct gdb_exception'.
* breakpoint.c (update_global_location_list_nothrow)
(update_breakpoint_locations, enable_breakpoint_disp): Likewise.
* cp-abi.c (value_rtti_type): Likewise.
* cp-support.c (cp_validate_operator): Likewise.
* infrun.c (insert_exception_resume_breakpoint)
(check_exception_resume, keep_going): Likewise.
* mi-interp.c (mi_breakpoint_created)
(mi_breakpoint_modified): Likewise.
* rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
* solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
(ia64_hpux_handle_dld_breakpoint_1): Likewise.

12 years ago*** empty log message ***
gdbadmin [Fri, 6 Jan 2012 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

12 years agodaily update
amodra [Thu, 5 Jan 2012 23:00:06 +0000 (23:00 +0000)]
daily update

12 years ago * dwarf2read.c (statement_prologue): Delete, unused.
devans [Thu, 5 Jan 2012 21:56:37 +0000 (21:56 +0000)]
* dwarf2read.c (statement_prologue): Delete, unused.

12 years ago * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
devans [Thu, 5 Jan 2012 21:53:12 +0000 (21:53 +0000)]
* dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
* dwarf2loc.h (dwarf2_per_cu_addr_size): Update.

12 years ago * dwarf2read.c (comp_unit_header): Delete, unused.
devans [Thu, 5 Jan 2012 20:17:49 +0000 (20:17 +0000)]
* dwarf2read.c (comp_unit_header): Delete, unused.

12 years ago2012-01-05 Chris Sutcliffe <ir0nh34d@users.sf.net>
ironhead [Thu, 5 Jan 2012 19:39:01 +0000 (19:39 +0000)]
2012-01-05  Chris Sutcliffe  <ir0nh34d@users.sf.net>

        * include/windef.h (WINVER): Bump to 0x0501.

12 years ago * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
uweigand [Thu, 5 Jan 2012 17:06:59 +0000 (17:06 +0000)]
* configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
* config/s390/s390.mh (NATDEPFILES): Remove corelow.o.

12 years ago * ld-x86-64/x86-64.exp: Add test of linking mixed 32-bit and
nickc [Thu, 5 Jan 2012 15:17:17 +0000 (15:17 +0000)]
* ld-x86-64/x86-64.exp: Add test of linking mixed 32-bit and
64-bit objects when the 32-bit object (loaded first) contains 32+
local symbols, all referenced by relocs and the 64-bit object
contains a reloc that uses a symbol in the 32-bit object.
* 32bit.s: New source file.
* 64bit.s: New source file.
* incompatible.l: New expected linker output file.

12 years ago2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
palves [Thu, 5 Jan 2012 13:11:29 +0000 (13:11 +0000)]
2012-01-05  Khoo Yit Phang  <khooyp@cs.umd.edu>

* infrun.c (normal_stop): Don't skip calling the normal_stop
observers if the thread was doing a multi-step, but stopped for
some reason other than stepping.

gdb/testsuite/
2012-01-05  Pedro Alves  <alves.ped@gmail.com>

* gdb.mi/mi-stepn.c, gdb.mi/mi-stepn.exp: New files.
* gdb.python/py-events.c (first): Add bits for new "step N" test.
* gdb.python/py-events.exp: Test that "step N" tripping on a
breakpoint emits a breakpoint event.

12 years ago2012-01-05 Pedro Alves <alves.ped@gmail.com>
palves [Thu, 5 Jan 2012 11:39:30 +0000 (11:39 +0000)]
2012-01-05  Pedro Alves  <alves.ped@gmail.com>

* cli/cli-decode.h: Add comments.
(CMD_LIST_AMBIGUOUS): Moved to command.h
(add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
(set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
(set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
(deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
(add_com, add_com_alias, add_info, add_info_alias)
(complete_on_cmdlist, complete_on_enum, help_list): Remove
declarations.
* command.h: Add and adjust comments.
(CMD_LIST_AMBIGUOUS): Moved here.
(help_cmd, help_cmd_list): Delete declarations.

12 years agoRotate ChangeLogs
nickc [Thu, 5 Jan 2012 10:09:33 +0000 (10:09 +0000)]
Rotate ChangeLogs

12 years ago PR ld/12161
nickc [Thu, 5 Jan 2012 09:57:18 +0000 (09:57 +0000)]
PR ld/12161
* elf32-avr.c (elf32_avr_relax_delete_bytes): Read in relocs if
necessary.

12 years agoDocument new procedure for updating copyright years
brobecke [Thu, 5 Jan 2012 09:41:03 +0000 (09:41 +0000)]
Document new procedure for updating copyright years

We now use a different script to perform the update.  This patch
updates the procedure in our documentation

gdb/doc/ChangeLog:

        * gdbint.texinfo (Start of New Year Procedure): Update
        to replace use of copyright.sh by use of copyright.py.

12 years agobfd/
jkratoch [Thu, 5 Jan 2012 07:50:43 +0000 (07:50 +0000)]
bfd/
Fix zero registers core files when built by gcc-4.7.
* elf64-x86-64.c (elf_x86_64_write_core_note): Remove variables p and
size.  Call elfcore_write_note for the local variables.  Remove the
final elfcore_write_note call.  Add NOTREACHED comments.

12 years ago*** empty log message ***
gdbadmin [Thu, 5 Jan 2012 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

12 years ago * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
devans [Wed, 4 Jan 2012 19:49:41 +0000 (19:49 +0000)]
* dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
All callers updated.
(load_full_type_unit): Renamed from read_signatured_type_at_offset.
Replace all arguments with "per_cu".  All callers updated.

12 years ago * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
devans [Wed, 4 Jan 2012 19:16:14 +0000 (19:16 +0000)]
* dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.

12 years ago * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
devans [Wed, 4 Jan 2012 19:07:35 +0000 (19:07 +0000)]
* dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
New arg "per_cu".  All callers updated.

12 years ago Delete #if 0'd out code.
devans [Wed, 4 Jan 2012 18:56:58 +0000 (18:56 +0000)]
Delete #if 0'd out code.
* language.c (binop_result_type): Delete.
(simple_type, ordered_type, same_type, integral_type): Delete.
(numeric_type, character_type, string_type, boolean_type): Delete.
(float_type, structured_type): Delete.
* language.h: Update.

12 years ago * python/py-value.c (valpy_binop): Initialize 'res_val'.
tromey [Wed, 4 Jan 2012 16:15:08 +0000 (16:15 +0000)]
* python/py-value.c (valpy_binop): Initialize 'res_val'.

12 years agoGet rid of corefile.c:close_exec_file
brobecke [Wed, 4 Jan 2012 15:13:25 +0000 (15:13 +0000)]
Get rid of corefile.c:close_exec_file

The body of this function has been commented out since Jul 1999, and
thus seems unnecessary. While at it, remove some commented out code
that seems to be related to the function being deleted.

gdb/ChangeLog:

* corefile.c (close_exec_file): Delete.
(reopen_exec_file): Remove commented out code that seems related
to close_exec_file, which is being deleted here.
* inferior.h (close_exec_file): Delete.
* fork-child.c (fork_inferior): Remove call to fork_inferior.

12 years agoUse skip_spaces and skip_to_space in ada-lang.c
brobecke [Wed, 4 Jan 2012 14:55:07 +0000 (14:55 +0000)]
Use skip_spaces and skip_to_space in ada-lang.c

This is just a minor cleanup that reduces a bit the code in ada-lang.c
by using skip_spaces or skip_to_space, instead of doing the skipping
ourselves.

gdb/ChangeLog:

        * ada-lang.c: #include "cli/cli-utils.h".
        (get_selections): Use skip_spaces.
        (ada_get_next_arg): Use skip_spaces and skip_to_space.
        (catch_ada_exception_command_split): Use skip_spaces.
        (ada_decode_assert_location): Likewise.

12 years agogdb/gdbserver/
qiyao [Wed, 4 Jan 2012 14:39:12 +0000 (14:39 +0000)]
gdb/gdbserver/
* tracepoint.c (cmd_qtdp): Print debug message
for static tracepoint.

12 years agogdb/gdbserver/
qiyao [Wed, 4 Jan 2012 14:34:49 +0000 (14:34 +0000)]
gdb/gdbserver/
* tracepoint.c (trace_vdebug): Differentiate debug message
between gdbserver and IPA.

12 years agodo not call decode_compound with Ada expressions.
brobecke [Wed, 4 Jan 2012 14:24:55 +0000 (14:24 +0000)]
do not call decode_compound with Ada expressions.

Trying to insert a breakpoint on `ops."<"', we get the following error:

    (gdb) b ops."<"
    malformed template specification in command

This is because locate_first_half skips the linespec until the dot,
and the decode_line_internal thinks that the dot might mean that
we have C++ or Java compound.  It then tries calling decode_compound
which errors out because it sees the opening angle bracket but not
the closing one (I am guessing).

This patch short-circuits this part of the code when the current
language is Ada.

gdb/ChangeLog:

        * linespec.c (decode_line_internal): Check for C++ or Java
        compound constructs only if the current language is C, C++
        or Java.

12 years agogdb/
jkratoch [Wed, 4 Jan 2012 13:51:35 +0000 (13:51 +0000)]
gdb/
Revert:
2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
    Joel Brobecker  <brobecker@adacore.com>
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.

12 years ago2012-01-04 Tristan Gingold <gingold@adacore.com>
gingold [Wed, 4 Jan 2012 13:31:27 +0000 (13:31 +0000)]
2012-01-04  Tristan Gingold  <gingold@adacore.com>

* mach-o.c (bfd_mach_o_fat_stat_arch_elt): New function.
(bfd_mach_o_generic_stat_arch_elt): Adjust.

12 years ago2012-01-04 Tristan Gingold <gingold@adacore.com>
gingold [Wed, 4 Jan 2012 13:22:21 +0000 (13:22 +0000)]
2012-01-04  Tristan Gingold  <gingold@adacore.com>

* mach-o.c (bfd_mach_o_fat_member_init): New function.
(bfd_mach_o_openr_next_archived_file): Reindent.
Adjust to call bfd_mach_o_fat_member_init.
(bfd_mach_o_fat_extract): Adjust to call bfd_mach_o_fat_member_init.

12 years agolinespec: keep function descriptors during minimal symbol search
brobecke [Wed, 4 Jan 2012 13:15:16 +0000 (13:15 +0000)]
linespec: keep function descriptors during minimal symbol search

When discarding data (minimal) symbols, we need to be careful to
not throw away the function descriptors.  This makes a difference
on platforms where these descriptors are used and live in a data
section.

gdb/ChangeLog:

        * linespec.c (add_minsym): Preserve function descriptors.

12 years ago2012-01-04 Tristan Gingold <gingold@adacore.com>
gingold [Wed, 4 Jan 2012 12:59:23 +0000 (12:59 +0000)]
2012-01-04  Tristan Gingold  <gingold@adacore.com>

* mach-o-x86-64.c (bfd_mach_o_x86_64_swap_reloc_out): Handle
BFD_RELOC_32, BFD_RELOC_MACH_O_X86_64_PCREL32_1,
BFD_RELOC_MACH_O_X86_64_PCREL32_2,
BFD_RELOC_MACH_O_X86_64_PCREL32_4,
BFD_RELOC_MACH_O_X86_64_BRANCH32,
BFD_RELOC_MACH_O_X86_64_SUBTRACTOR32,
BFD_RELOC_MACH_O_X86_64_GOT.

12 years ago * breakpoint.c (all_locations_are_pending): Consider locations
uweigand [Wed, 4 Jan 2012 12:31:45 +0000 (12:31 +0000)]
* breakpoint.c (all_locations_are_pending): Consider locations
in program spaces executing during startup pending as well.

12 years agogas/testsuite:
iains [Wed, 4 Jan 2012 11:25:11 +0000 (11:25 +0000)]
gas/testsuite:

* gas/mach-o/zerofill-2.d: New.

12 years agoadd .zerofill to mach-o GAS.
iains [Wed, 4 Jan 2012 10:59:53 +0000 (10:59 +0000)]
add .zerofill to mach-o GAS.

gas:

* config/obj-macho.c (obj_mach_o_segT_from_bfd_name): Tidy definition.
(obj_mach_o_get_section_names): New (split from obj_mach_o_section).
(obj_mach_o_make_or_get_sect): Likewise.
(obj_mach_o_section): Split out the functionality shared with zerofill.
(obj_mach_o_zerofill): New.
(obj_mach_o_common_parse): Ensure whitespace is skipped.
(mach_o_pseudo_table): Add .zerofill.

gas/testsuite:

* gas/mach-o/zerofill-1.d: New.
* gas/mach-o/zerofill-1.s: New.

12 years agobfd/
gingold [Wed, 4 Jan 2012 10:37:34 +0000 (10:37 +0000)]
bfd/
2012-01-04  Tristan Gingold  <gingold@adacore.com>

* mach-o.h (bfd_mach_o_fvmlib_command): New structure.
(bfd_mach_o_load_command): Add fvmlib field.

* mach-o.c (bfd_mach_o_read_fvmlib): New function.
(bfd_mach_o_read_command): Handle fvmlib.

binutils/
2012-01-04  Tristan Gingold  <gingold@adacore.com>

* od-macho.c (dump_load_command): Handle fvmlib.

include/mach-o/
2012-01-04  Tristan Gingold  <gingold@adacore.com>

* external.h (mach_o_fvmlib_command_external): New structure.

12 years agobfd/
gingold [Wed, 4 Jan 2012 10:25:11 +0000 (10:25 +0000)]
bfd/
2012-01-04  Tristan Gingold  <gingold@adacore.com>

* mach-o.c (bfd_mach_o_convert_architecture): Reindent.
Decode msubtype for ARM.

include/mach-o/
2012-01-04  Tristan Gingold  <gingold@adacore.com>

* loader.h: Update copyright year.
(bfd_mach_o_cpu_subtype): Add ARM subtypes.

12 years agobfd/
gingold [Wed, 4 Jan 2012 10:14:24 +0000 (10:14 +0000)]
bfd/
2012-01-04  Tristan Gingold  <gingold@adacore.com>

* mach-o.c (bfd_mach_o_get_synthetic_symtab): Add comments.

12 years agobfd/
gingold [Wed, 4 Jan 2012 09:58:52 +0000 (09:58 +0000)]
bfd/
2012-01-04  Tristan Gingold  <gingold@adacore.com>

* mach-o.h: Reindent header.
(bfd_mach_o_encryption_info_command): New structure.
(bfd_mach_o_load_command): Add encryption_info field.

* mach-o.c (bfd_mach_o_read_encryption_info): New function.
(bfd_mach_o_read_command): Handle BFD_MACH_O_LC_ENCRYPTION_INFO.
(bfd_mach_o_read_command): Adjust error message.

binutils/
2012-01-04  Tristan Gingold  <gingold@adacore.com>

* od-macho.c: Update copyright year.
(dump_load_command): Handle BFD_MACH_O_LC_ENCRYPTION_INFO.

include/mach-o/
2012-01-04  Tristan Gingold  <gingold@adacore.com>

* external.h: Update copyright year.
(mach_o_symtab_command_external): Add comments.
(mach_o_encryption_info_command_external): New structure.

12 years ago2012-01-04 Shinichiro Hamaji <shinichiro.hamaji@gmail.com>
gingold [Wed, 4 Jan 2012 08:44:03 +0000 (08:44 +0000)]
2012-01-04  Shinichiro Hamaji  <shinichiro.hamaji@gmail.com>

* dwarf2.c (_bfd_dwarf2_slurp_debug_info): Factor out the part
which reads DWARF2 and stores in stash from find_line.
(find_line) Call _bfd_dwarf2_slurp_debug_info.
* libbfd-in.h (_bfd_dwarf2_slurp_debug_info): Add declaration.
* libbfd.h (_bfd_dwarf2_slurp_debug_info): Regenerate.
* mach-o.c (dsym_subdir): The name of subdir where debug
information may be stored.
(bfd_mach_o_lookup_uuid_command): New. Lookup a load command whose
type is UUID.
(bfd_mach_o_dsym_for_uuid_p): New. Check if the specified BFD is
corresponding to the executable.
(bfd_mach_o_find_dsym): New. Find a debug information BFD in the
specified binary file.
(bfd_mach_o_follow_dsym): New. Find a debug information BFD for
the original BFD.
(bfd_mach_o_find_nearest_line): Check dSYM files for Mach-O
executables, dylibs, and bundles.
(bfd_mach_o_close_and_cleanup): Clean up BFDs for the dSYM file.
* mach-o.h (dsym_bfd): The BFD of the dSYM file.

12 years agoCopyright year update in most files of the GDB Project.
brobecke [Wed, 4 Jan 2012 08:27:48 +0000 (08:27 +0000)]
Copyright year update in most files of the GDB Project.

gdb/ChangeLog:

        Copyright year update in most files of the GDB Project.

12 years agoCopyright year update in most files of the GDB Project.
brobecke [Wed, 4 Jan 2012 08:16:51 +0000 (08:16 +0000)]
Copyright year update in most files of the GDB Project.

gdb/ChangeLog:

        Copyright year update in most files of the GDB Project.

12 years agouse gnulib's update-copyright script to update copyright years
brobecke [Wed, 4 Jan 2012 07:55:48 +0000 (07:55 +0000)]
use gnulib's update-copyright script to update copyright years

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.

12 years agoImport gnulib's update-copyright script
brobecke [Wed, 4 Jan 2012 07:55:11 +0000 (07:55 +0000)]
Import gnulib's update-copyright script

gdb/ChangeLog:

        * gnulib/extra/update-copyright: New file, imported from gnulib.

12 years ago[README] Add note about copyright and license notices
brobecke [Wed, 4 Jan 2012 04:11:33 +0000 (04:11 +0000)]
[README] Add note about copyright and license notices

Also explain the use of year ranges in copyright notices.

gdb/ChangeLog:

        * README (Copyright and License Notices): New section.

12 years ago2012-01-03 Chris Sutcliffe <ir0nh34d@users.sf.net>
ironhead [Wed, 4 Jan 2012 02:32:07 +0000 (02:32 +0000)]
2012-01-03  Chris Sutcliffe  <ir0nh34d@users.sf.net>

        Return value, identified by 'make test'.

        * include/gdiplus/gdiplustypes.h (Gdiplus::GdiplusAbort::Abort()): Return
        NO_ERROR in virtual definition.

12 years ago2012-01-03 Chris Sutcliffe <ir0nh34d@users.sf.net>
ironhead [Wed, 4 Jan 2012 01:32:06 +0000 (01:32 +0000)]
2012-01-03  Chris Sutcliffe  <ir0nh34d@users.sf.net>

        Remove duplicate definitions, identified by 'make test'.

        * include/wincrypt.h (CRYPT_NEWKEYSET, CRYPT_DELETEKEYSET,
        CRYPT_MACHINE_KEYSET, CRYPT_SILENT, CRYPT_EXPORTABLE, CRYPT_USER_PROTECTED,
        CRYPT_CREATE_SALT, CRYPT_UPDATE_KEY, CRYPT_NO_SALT, CRYPT_PREGEN,
        CRYPT_RECIPIENT, CRYPT_INITIATOR, CRYPT_ONLINE, CRYPT_SF, CRYPT_CREATE_IV,
        CRYPT_KEK, CRYPT_DATA_KEY, CRYPT_VOLATILE, CRYPT_SGCKEY): Remove duplicate
        definitions.
        * include/winerror.h (CRYPT_E_REVOKED): Removed - already defined in
        wincrypt (which is where it should be defined according to MSDN).

12 years ago * gold/incremental.cc (Sized_incremental_binary::do_process_got_plt):
ccoutant [Wed, 4 Jan 2012 00:18:22 +0000 (00:18 +0000)]
* gold/incremental.cc (Sized_incremental_binary::do_process_got_plt):
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.

12 years ago*** empty log message ***
gdbadmin [Wed, 4 Jan 2012 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

12 years agodaily update
amodra [Tue, 3 Jan 2012 23:00:05 +0000 (23:00 +0000)]
daily update

12 years ago PR python/12533:
tromey [Tue, 3 Jan 2012 19:27:51 +0000 (19:27 +0000)]
PR python/12533:
* 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.

12 years ago2012-01-03 Viachaslau Kulakouski <Viachaslau.Kulakouski@oracle.com>
jjohnstn [Tue, 3 Jan 2012 19:13:57 +0000 (19:13 +0000)]
2012-01-03  Viachaslau Kulakouski  <Viachaslau.Kulakouski@oracle.com>

        * libc/stdlib/__atexit.c: Refer to __atexit_lock instead of lock.