public inbox for archer-commits@sourceware.org
help / color / mirror / Atom feed
From: jkratoch@sourceware.org
To: archer-commits@sourceware.org
Subject: [SCM]  archer-jankratochvil-autoload: Merge branch 'x-pathvec0-1-secmove-misc2-safepath-debug-warn' into x-pathvec0-1-secmove-misc2-safepath-debug-warn-warnlocal
Date: Wed, 18 Apr 2012 08:20:00 -0000	[thread overview]
Message-ID: <20120418082026.25074.qmail@sourceware.org> (raw)

The branch, archer-jankratochvil-autoload has been updated
       via  35e7f68698003a0e4a5829b23d11ec2a871db3e8 (commit)
       via  542ec3c0be40af3faec8133bb182674d09201408 (commit)
       via  26d76862a97a89a0def83ab04139f6cc96b39db8 (commit)
       via  4af4fb2b54ade651de90ff2c59ecdce74d5e5220 (commit)
       via  b2d20f69410b0a033793bceb7754ab9bb49be634 (commit)
       via  09f9008e2eb38762fbfda8e464ae5edd5bfcef39 (commit)
       via  8de993e913593c01aaba5b154f0ab5c5a8d84512 (commit)
       via  a0a3cb07801254d04f6c4f03114c6fe917dceb56 (commit)
       via  5556e51d07c9f18355e75cacfce18de90feb2c31 (commit)
       via  2f100c1174d54217d9dab89582d6933980e26837 (commit)
       via  47dd2061619730e7aebb4d3bcbe42638adfa9c6c (commit)
       via  c149f8fe9692c413c8399779dd2be96a6f784d13 (commit)
       via  003127c06ae6d278797d1b9cbb52e0d022e215b7 (commit)
       via  6388f952b8db5b542d0fc3341e79401046d0822b (commit)
       via  cb5de33dd14e8327d44c75cb41ae3189230991ec (commit)
       via  546a08ddc72650ec560d510e52d706bba9b1acce (commit)
       via  86f0d8d5bf1baceaf64c5caa481b6fba33241764 (commit)
       via  31a54d666f4bacdaf2f9eaaadf8ee32168e1e40f (commit)
       via  6967f47519e220af61bc18a67736040793dc0c0f (commit)
       via  1e20d6a28a174d91cfb851925764e1947acaf052 (commit)
       via  253b0509388a097b446d818ead7b528d46a99886 (commit)
       via  dfd32e4e7ae35a6e083c81b33dc0e4022c492be6 (commit)
       via  bee9e486b2a5452a7848638900d9995e4ce68dd4 (commit)
       via  5699dd65012ac6ff62e07d6fefa14176251889e6 (commit)
       via  b5c483d78be895a978a69ea8459b489444ae361f (commit)
       via  55d46db483658a880473a96de19c5d84ab771c45 (commit)
       via  16b461160ce7c7e46303eb69ab3d5a009c01b8de (commit)
       via  d01cf71fd928aebea93fd6edfc72e29b14fb77f3 (commit)
       via  051deafb93866d0145be7a02b561ea1a39caa2f2 (commit)
       via  308a1847562142d68f6a174ca0eccae72490c651 (commit)
       via  bbfa7b50eaffc627954a53d3d1aa3b10258f308f (commit)
       via  46d2a9917828eac10fcce472962b6a1c25a7cf3e (commit)
       via  042a04674bc66cccebf9f86eb706a0d841c27ad1 (commit)
       via  2721fb590810ec202f4d96448d86d52539b2d65e (commit)
       via  5b6f9393cfbab8bc012ea4adc729f7944eb726da (commit)
       via  f120985591fcde3eb530a59eb014ac372ce14e60 (commit)
       via  0acff7a79e754ba90c7d1622ad2c10debab3c732 (commit)
       via  0c4f1245d79b822f306dc2b7d2edefe4f67ed0a2 (commit)
       via  262d0bbf6bec25981bb6472164f06310247075e6 (commit)
       via  f28d9fe47a02e0387b0f5429e54c22707ca124f4 (commit)
      from  1b9ddccb5cf8f411848e756876b97acbe87971f6 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email.

- Log -----------------------------------------------------------------
commit 35e7f68698003a0e4a5829b23d11ec2a871db3e8
Merge: 1b9ddcc 542ec3c
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Wed Apr 18 10:18:07 2012 +0200

    Merge branch 'x-pathvec0-1-secmove-misc2-safepath-debug-warn' into x-pathvec0-1-secmove-misc2-safepath-debug-warn-warnlocal

commit 542ec3c0be40af3faec8133bb182674d09201408
Merge: 7a13c6e 26d7686
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Wed Apr 18 10:18:06 2012 +0200

    Merge branch 'x-pathvec0-1-secmove-misc2-safepath-debug' into x-pathvec0-1-secmove-misc2-safepath-debug-warn

commit 26d76862a97a89a0def83ab04139f6cc96b39db8
Merge: 47dd206 4af4fb2
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Wed Apr 18 10:18:06 2012 +0200

    Merge branch 'x-pathvec0-1-secmove-misc2-safepath' into x-pathvec0-1-secmove-misc2-safepath-debug

commit 4af4fb2b54ade651de90ff2c59ecdce74d5e5220
Merge: b2d20f6 09f9008
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Wed Apr 18 10:18:06 2012 +0200

    Merge branch 'x-pathvec0-1-secmove-misc2' into x-pathvec0-1-secmove-misc2-safepath

commit b2d20f69410b0a033793bceb7754ab9bb49be634
Merge: c149f8f 31a54d6
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Wed Apr 18 10:18:02 2012 +0200

    Merge branch 'master' into x-pathvec0-1-secmove-misc2-safepath

commit 09f9008e2eb38762fbfda8e464ae5edd5bfcef39
Merge: 8de993e a0a3cb0
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Wed Apr 18 10:17:47 2012 +0200

    Merge branch 'x-pathvec0-1-secmove' into x-pathvec0-1-secmove-misc2

commit 8de993e913593c01aaba5b154f0ab5c5a8d84512
Merge: 003127c 31a54d6
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Wed Apr 18 10:17:40 2012 +0200

    Merge branch 'master' into x-pathvec0-1-secmove-misc2

commit a0a3cb07801254d04f6c4f03114c6fe917dceb56
Merge: 6388f95 5556e51
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Wed Apr 18 10:12:06 2012 +0200

    Merge branch 'x-pathvec0-1' into x-pathvec0-1-secmove

commit 5556e51d07c9f18355e75cacfce18de90feb2c31
Merge: cb5de33 2f100c1
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Wed Apr 18 10:12:06 2012 +0200

    Merge branch 'x-pathvec0' into x-pathvec0-1

commit 2f100c1174d54217d9dab89582d6933980e26837
Merge: 546a08d 86f0d8d
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Wed Apr 18 10:12:06 2012 +0200

    Merge branch 'x' into x-pathvec0

commit 47dd2061619730e7aebb4d3bcbe42638adfa9c6c
Merge: bc8a378 5b6f939
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Wed Apr 18 10:11:51 2012 +0200

    Merge commit '5b6f9393cfbab8bc012ea4adc729f7944eb726da' into x-pathvec0-1-secmove-misc2-safepath-debug

commit c149f8fe9692c413c8399779dd2be96a6f784d13
Merge: afe10a5 f120985
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Wed Apr 18 10:11:38 2012 +0200

    Merge commit 'f120985591fcde3eb530a59eb014ac372ce14e60' into x-pathvec0-1-secmove-misc2-safepath

commit 003127c06ae6d278797d1b9cbb52e0d022e215b7
Merge: a9f019c 0acff7a
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Wed Apr 18 10:11:27 2012 +0200

    Merge commit '0acff7a79e754ba90c7d1622ad2c10debab3c732' into x-pathvec0-1-secmove-misc2

commit 6388f952b8db5b542d0fc3341e79401046d0822b
Merge: 327113a 0c4f124
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Wed Apr 18 10:11:11 2012 +0200

    Merge commit '0c4f1245d79b822f306dc2b7d2edefe4f67ed0a2' into x-pathvec0-1-secmove

commit cb5de33dd14e8327d44c75cb41ae3189230991ec
Merge: 1e85da0 262d0bb
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Wed Apr 18 10:11:01 2012 +0200

    Merge commit '262d0bbf6bec25981bb6472164f06310247075e6' into x-pathvec0-1

commit 546a08ddc72650ec560d510e52d706bba9b1acce
Merge: e0ae2d5 f28d9fe
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Wed Apr 18 10:10:52 2012 +0200

    Merge commit 'f28d9fe47a02e0387b0f5429e54c22707ca124f4' into x-pathvec0

commit 86f0d8d5bf1baceaf64c5caa481b6fba33241764
Merge: 38de72c 31a54d6
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Wed Apr 18 10:09:27 2012 +0200

    Merge branch 'master' into x

commit 31a54d666f4bacdaf2f9eaaadf8ee32168e1e40f
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Wed Apr 18 07:03:57 2012 +0000

    gdb/doc/
    	* gdb.texinfo (Auto-loading verbose mode): Fix smallexample typo.

commit 6967f47519e220af61bc18a67736040793dc0c0f
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Wed Apr 18 07:00:24 2012 +0000

    Fix up comment to match reality.

commit 1e20d6a28a174d91cfb851925764e1947acaf052
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Wed Apr 18 06:52:25 2012 +0000

    gdb/
    	Fix 64-bit constants on 32-bit hosts.
    	* dwarf2read.c (read_unsigned_leb128): Change declaration return type
    	from unsigned long to ULONGEST.
    	(read_signed_leb128): Change declaration return type from long to
    	LONGEST.
    	(dwarf2_const_value_attr): Change declaration parameter value from long
    	to LONGEST.
    	(dwarf2_compute_name): Change variable value from long to LONGEST.
    	(read_unsigned_leb128): Change return type, variable result and some
    	casts from unsigned long to ULONGEST.
    	(read_signed_leb128): Change return type, variable result and some
    	casts from long to LONGEST.
    	(dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
    	value from long to LONGEST.
    	(dwarf2_const_value): Change variable value from long to LONGEST.
    	* symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
    	plongest and hex_string.
    	* symtab.h (struct general_symbol_info): Change ivalue from long to
    	LONGEST, remove the comment.
    	* tracepoint.c (validate_actionline, collect_symbol, scope_info):
    	Change SYMBOL_VALUE format strings to use plongest and hex_string.

commit 253b0509388a097b446d818ead7b528d46a99886
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Wed Apr 18 06:51:05 2012 +0000

    Forgotten commit for:
    gdb/testsuite/
    	PR symtab/7259:
    	* gdb.base/enumval.c: New test case.
    	* gdb.base/enumval.exp: New test case.

commit dfd32e4e7ae35a6e083c81b33dc0e4022c492be6
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Wed Apr 18 06:46:45 2012 +0000

    gdb/
    	PR symtab/7259:
    	* ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
    	* ada-lang.c (ada_discrete_type_high_bound)
    	(ada_discrete_type_low_bound): Use TYPE_FIELD_ENUMVAL for
    	TYPE_CODE_ENUM.
    	(ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
    	(pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
    	* ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
    	Use TYPE_FIELD_ENUMVAL.
    	* ada-valprint.c (print_optional_low_bound, ada_print_scalar)
    	(ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
    	* c-typeprint.c (c_type_print_base): Move variable lastval to inner
    	block, change it to LONGEST.  Use TYPE_FIELD_ENUMVAL for
    	TYPE_CODE_ENUM.
    	* coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
    	* dwarf2read.c (process_enumeration_scope): Likewise.
    	* gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
    	field.bitpos.
    	(class StructMainTypePrettyPrinter): Support also
    	FIELD_LOC_KIND_ENUMVAL.
    	* gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
    	TYPE_CODE_ENUM.
    	(recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
    	(copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
    	* gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
    	(struct main_type.flds_bnds.fields.loc): Adjust bitpos comment.  New
    	field enumval.
    	(struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
    	accommodate enumval.
    	(struct call_site): Adjust loc_kind to accommodate enumval.
    	(FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
    	(TYPE_FIELD_ENUMVAL): New macros.
    	* m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
    	* mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
    	TYPE_CODE_ENUM.
    	* p-typeprint.c (pascal_type_print_base): Likewise.
    	* python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
    	enumval.
    	* python/lib/gdb/types.py (make_enum_dict): Likewise.
    	* python/py-type.c (convert_field): New variable addrstring.  Use
    	TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
    	(check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
    	* stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
    	* typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
    	TYPE_CODE_ENUM.
    	* valprint.c (generic_val_print): Likewise.
    
    gdb/testsuite/
    	PR symtab/7259:
    	* gdb.base/enumval.c: New test case.
    	* gdb.base/enumval.exp: New test case.
    	* gdb.python/py-type.exp (test_enums): Use field.enumval instead of
    	field.bitpos.

commit bee9e486b2a5452a7848638900d9995e4ce68dd4
Author: Doug Evans <dje@google.com>
Date:   Wed Apr 18 06:24:48 2012 +0000

    	* dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.

commit 5699dd65012ac6ff62e07d6fefa14176251889e6
Author: Doug Evans <dje@google.com>
Date:   Wed Apr 18 06:21:04 2012 +0000

    	* dwarf2read.c: Whitespace fixes.
    	(lookup_signatured_type): Tweak comment.
    	(get_die_type_at_offset): Fix comment.

commit b5c483d78be895a978a69ea8459b489444ae361f
Author: Joel Brobecker <brobecker@gnat.com>
Date:   Wed Apr 18 00:25:08 2012 +0000

    pspace != NULL failed assertion on ppc-aix
    
    This patch fixes the following problem:
    
        % gdb foo
        (gdb) b main
        /[...]/progspace.c:216: internal-error: set_current_program_space: Assertion `pspace != NULL' failed.
        A problem internal to GDB has been detected,
        further debugging may prove unreliable.
        Quit this debugging session? (y or n)
    
    The problem happens when we try to get the program space from
    a minimal symbol.  For that, we go through the minimal symbol's
    obj_section->objfile->pspace.  But the minimal symbol's obj_section
    is not set, and thus we somehow get a NULL program space. And
    the reason why the obj_section is not set is because the XCOFF
    reader did not pass the bfd_section when calling minsyms.c's
    prim_record_minimal_symbol_and_info.
    
    gdb/ChangeLog:
    
            * xcoffread.c (xcoff_secnum_to_sections): New function.
            (secnum_to_section, secnum_to_bfd_section): Reimplement
            using xcoff_secnum_to_sections.  Rename "secnum" parameter
            into "n_scnum".
            (RECORD_MINIMAL_SYMBOL): Delete.
            (record_minimal_symbol): New function.
            (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
            by call to record_minimal_symbol and set misc_func_recorded
            to 1.  Set last_csect_sec to the XCOFF section index instead
            of GDB's section_offset index.  Update calls to
            prim_record_minimal_symbol_and_info to pass the BFD section
            as well.

commit 55d46db483658a880473a96de19c5d84ab771c45
Author: Joel Brobecker <brobecker@gnat.com>
Date:   Wed Apr 18 00:24:56 2012 +0000

    Unused local variables in xcoffread.c:read_xcoff_symtab
    
    gdb/ChangeLog:
    
            * xcoffread.c (read_xcoff_symtab): Delete variables
            last_csect_val and last_csect_sec and associated code.

commit 16b461160ce7c7e46303eb69ab3d5a009c01b8de
Author: Alan Modra <amodra@bigpond.net.au>
Date:   Wed Apr 18 00:00:05 2012 +0000

    daily update

commit d01cf71fd928aebea93fd6edfc72e29b14fb77f3
Author: gdbadmin <gdbadmin@sourceware.org>
Date:   Wed Apr 18 00:00:02 2012 +0000

    *** empty log message ***

commit 051deafb93866d0145be7a02b561ea1a39caa2f2
Author: Kaz Kojima <kkojima@rr.iij4u.or.jp>
Date:   Tue Apr 17 21:58:50 2012 +0000

    	* elf32-sh.c (allocate_dynrelocs): Don't allocate dynamic
    	relocations when LE conversion happens on the IE tls symbol.

commit 308a1847562142d68f6a174ca0eccae72490c651
Author: Doug Evans <dje@google.com>
Date:   Tue Apr 17 21:24:46 2012 +0000

    	* cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
    	(discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
    	* cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
    	(discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.

commit bbfa7b50eaffc627954a53d3d1aa3b10258f308f
Author: Doug Evans <dje@google.com>
Date:   Tue Apr 17 21:13:17 2012 +0000

    	* cleanups.h: New file.
    	* cleanups.c: New file.
    	* Makefile.in (SFILES): Add cleanups.c.
    	(HFILES_NO_SRCDIR): Add cleanups.h.
    	(COMMON_OBS): Add cleanups.o.
    	* defs.h (struct cleanup): Moved to cleanups.h.
    	(do_cleanups,do_final_cleanups): Ditto.
    	(discard_cleanups,discard_final_cleanups): Ditto
    	(make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
    	(save_cleanups,save_final_cleanups): Ditto.
    	(restore_cleanups,restore_final_cleanups): Ditto.
    	(null_cleanup): Ditto.
    	(make_my_cleanup,make_my_cleanup2): Ditto.
    	(discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
    	* utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
    	(do_cleanups,do_final_cleanups): Ditto.
    	(discard_cleanups,discard_final_cleanups): Ditto
    	(make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
    	(save_cleanups,save_final_cleanups): Ditto.
    	(restore_cleanups,restore_final_cleanups): Ditto.
    	(null_cleanup): Ditto.
    	(make_my_cleanup,make_my_cleanup2): Ditto.
    	(discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.

commit 46d2a9917828eac10fcce472962b6a1c25a7cf3e
Author: Doug Evans <dje@google.com>
Date:   Tue Apr 17 20:48:17 2012 +0000

    	* utils.c (make_cleanup_freeargv): Use make_cleanup instead of
    	make_my_cleanup.
    	(make_cleanup_dyn_string_delete): Ditto.
    	(make_cleanup_ui_file_delete): Ditto.
    	(make_cleanup_ui_out_redirect_pop): Ditto.
    	(make_cleanup_free_section_addr_info): Ditto.
    	(make_cleanup_restore_integer): Ditto.
    	(make_cleanup_unpush_target): Ditto.
    	(make_cleanup_value_free_to_mark): Ditto.
    	(make_cleanup_value_free): Ditto.
    	(make_cleanup_free_so): Ditto.

commit 042a04674bc66cccebf9f86eb706a0d841c27ad1
Author: Roland McGrath <roland@gnu.org>
Date:   Tue Apr 17 19:53:18 2012 +0000

    * elf64-x86-64.c (elf_x86_64_nacl_plt0_entry): Fix nop padding
    so that 32-byte boundary is a proper instruction boundary.

commit 2721fb590810ec202f4d96448d86d52539b2d65e
Author: Pedro Alves <pedro@codesourcery.com>
Date:   Tue Apr 17 17:43:10 2012 +0000

    2012-04-17  Pedro Alves  <palves@redhat.com>
    
    	* Makefile.in (site.exp): Make site.exp source
    	$srcdir/lib/append_gdb_boards_dir.exp.
    	* lib/append_gdb_boards_dir.exp: New file.

commit 5b6f9393cfbab8bc012ea4adc729f7944eb726da
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Tue Apr 17 15:56:20 2012 +0000

    gdb/
    	New option "set debug auto-load".
    	* NEWS: New commands "set debug auto-load" and "show debug auto-load".
    	* auto-load.c (debug_auto_load, show_debug_auto_load: New.
    	(auto_load_safe_path_vec_update)
    	(filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
    	if DEBUG_AUTO_LOAD.
    	(file_is_auto_load_safe): New parameters debug_fmt and ....
    	Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
    	(source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
    	caller by explanatory string.
    	(_initialize_auto_load): Register "set debug auto-load".
    	* auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
    	and ....
    	* linux-thread-db.c (try_thread_db_load_from_pdir_1)
    	(try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
    	by explanatory string.
    	* main.c (captured_main): Likewise.
    	* python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
    	(source_section_scripts): Likewise.
    
    gdb/doc/
    	New option "set debug auto-load".
    	* gdb.texinfo (Auto-loading): New menu item for auto-load verbose mode.
    	(auto-load verbose mode): New node.

commit f120985591fcde3eb530a59eb014ac372ce14e60
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Tue Apr 17 15:54:28 2012 +0000

    gdb/
    	New option "set auto-load safe-path".
    	* NEWS: New commands "set auto-load safe-path"
    	and "show auto-load safe-path".
    	* auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
    	(auto_load_safe_path, auto_load_safe_path_vec)
    	(auto_load_safe_path_vec_update, set_auto_load_safe_path)
    	(show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
    	(filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
    	(source_gdb_script_for_objfile): New variable is_safe.  Call
    	file_is_auto_load_safe.  Return if it is not.
    	(struct loaded_script): New field loaded.
    	(maybe_add_script): Add parameter loaded.  Initialize SLOT with it.
    	(print_script): Use LOADED indicator instead of FULL_PATH.  Change
    	output "Missing" to "No".
    	(_initialize_auto_load): New variable cmd.  Initialize
    	auto_load_safe_path.  Register "set auto-load safe-path",
    	"show auto-load safe-path" and "add-auto-load-safe-path".
    	* auto-load.h (maybe_add_script): Add parameter loaded.
    	(file_is_auto_load_safe): New declaration.
    	* config.in: Regenerate.
    	* configure: Regenerate.
    	* configure.ac: New parameters --with-auto-load-safe-path
    	and --without-auto-load-safe-path.
    	* linux-thread-db.c (try_thread_db_load_from_pdir_1)
    	(try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
    	* main.c (captured_main): Check file_is_auto_load_safe for
    	LOCAL_GDBINIT.
    	* python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
    	variable is_safe.  Call file_is_auto_load_safe.  Return if it is not.
    	(source_section_scripts): Call file_is_auto_load_safe.  Return if it is
    	not.
    
    gdb/doc/
    	New option "set auto-load safe-path".
    	* gdb.texinfo (Auto-loading): Extend the "show auto-load"
    	and "info auto-load" examples for safe-path.  Put there also references
    	for "set auto-load safe-path" and "show auto-load safe-path".
    	New menu item for Auto-loading safe path.
    	(Auto-loading safe path): New node.
    	(Python Auto-loading): Update the expected output from "Missing"
    	to "No".
    
    gdb/testsuite/
    	New option "set auto-load safe-path".
    	* gdb.python/py-objfile-script.exp (set auto-load safe-path): New.
    	* gdb.python/py-section-script.exp (set auto-load safe-path): New.

commit 0acff7a79e754ba90c7d1622ad2c10debab3c732
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Tue Apr 17 15:51:41 2012 +0000

    gdb/
    	auto-load: Implementation.
    	* NEWS: New descriptions for "info auto-load",
    	"info auto-load gdb-scripts", "info auto-load python-scripts",
    	"info auto-load local-gdbinit" and "info auto-load libthread-db".
    	Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
    	and "show auto-load-scripts".  New description for "set auto-load",
    	"show auto-load", "set auto-load gdb-scripts",
    	"show auto-load gdb-scripts", "set auto-load python-scripts",
    	"show auto-load python-scripts", "set auto-load local-gdbinit",
    	"show auto-load local-gdbinit", "set auto-load libthread-db" and
    	"show auto-load libthread-db".
    	* auto-load.c: Remove include python/python-internal.h.  Add includes
    	exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
    	cli/cli-setshow.h.
    	(GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
    	(auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
    	(gdbpy_global_auto_load): Rename to ...
    	(global_auto_load): ... here.
    	(auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
    	(auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
    	(script_language_gdb, source_gdb_script_for_objfile): New.
    	(struct loaded_script): New field language.
    	(hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
    	LANGUAGE.
    	(maybe_add_script): Add parameter language.  Drop redundant
    	entry.full_path initialization.  Initialize entry.language and
    	(*slot)->language.
    	(auto_load_objfile_script): Change parameter suffix to language.
    	Remove the call of maybe_add_script.
    	Call language->source_script_for_objfile.
    	(load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
    	New.
    	(collect_matching_scripts): Adjust it for
    	struct collect_matching_scripts_data.
    	(auto_load_info_scripts_pattern_nl): New variable.
    	(info_auto_load_scripts): Rename to ...
    	(auto_load_info_scripts): ... here, add parameter language.  Adjust it
    	for struct collect_matching_scripts_data.
    	(info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
    	(set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
    	(auto_load_show_cmdlist_get, info_auto_load_cmd)
    	(auto_load_info_cmdlist_get): New.
    	(_initialize_auto_load): Move add_info of "auto-load-scripts" to
    	python/py-auto-load.c.  New installment for "set auto-load gdb-scripts",
    	"info auto-load gdb-scripts", "set auto-load local-gdbinit" and
    	"info auto-load local-gdbinit".
    	* auto-load.h (struct script_language): New.
    	(gdbpy_global_auto_load): Rename to ...
    	(global_auto_load): ... here.
    	(auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
    	(auto_load_local_gdbinit_loaded): New declarations.
    	(maybe_add_script): New parameter language.
    	(auto_load_objfile_script): Change parameter suffix to language.
    	(load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
    	(auto_load_info_scripts, auto_load_set_cmdlist_get)
    	(auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
    	declarations.
    	* linux-thread-db.c: Include auto-load.h and ctype.h.
    	(auto_load_thread_db, show_auto_load_thread_db): New.
    	(struct thread_db_info): New field filename.
    	(delete_thread_db_info): Call xfree for FILENAME.
    	(try_thread_db_load): Initialize FILENAME.
    	(try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
    	if !AUTO_LOAD_THREAD_DB.
    	(info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
    	(_initialize_thread_db): Install auto_load_thread_db
    	as "set auto-load libthread-db" and install info_auto_load_libthread_db
    	as "info auto-load libthread-db".
    	* main.c (captured_main): Rename gdbpy_global_auto_load to
    	global_auto_load.  Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
    	AUTO_LOAD_LOCAL_GDBINIT_LOADED.
    	(print_gdb_help): Extend the help for 'local init file'.
    	* python/py-auto-load.c: Remove a comment about gdb scripts extension.
    	(GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
    	(auto_load_scripts): Rename to ...
    	(auto_load_python_scripts): ... here, update the comment.
    	(gdbpy_load_auto_script_for_objfile): New declaration.
    	(show_auto_load_python_scripts, script_language_python)
    	(gdbpy_load_auto_script_for_objfile): New.
    	(source_section_scripts): Refactor the code.
    	(load_auto_scripts_for_objfile): Rename to ...
    	(gdbpy_load_auto_scripts_for_objfile): ... here, update the
    	auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
    	(info_auto_load_python_scripts): New.
    	(gdbpy_initialize_auto_load): New variables cmd and cmd_name.
    	Rename "set auto-load-scripts" to "set auto-load python-scripts".
    	Register "set auto-load-scripts" as its deprecated alias.  Register
    	"info auto-load python-scripts".  Register "info auto-load-scripts" as
    	its deprecated alias.
    	(load_auto_scripts_for_objfile): Rename to ...
    	(gdbpy_load_auto_scripts_for_objfile): ... here.
    	* python/python.h (load_auto_scripts_for_objfile): Rename to ...
    	(gdbpy_load_auto_scripts_for_objfile): ... here.
    
    gdb/doc/
    	auto-load: Implementation.
    	* gdb.texinfo (Mode Options): New anchor for -nx.
    	(Startup): New anchors for Option -init-eval-command,
    	Home Directory Init File
    	and Init File in the Current Directory during Startup.
    	Mention set auto-load local-gdbinit with a reference.
    	Change the sample code to "set auto-load python-scripts".
    	(Threads): New anchor set libthread-db-search-path.
    	Provide references to libthread_db.so.1 file.
    	(Controlling GDB): New menu item for Auto-loading.
    	(Auto-loading, Init File in the Current Directory)
    	(libthread_db.so.1 file, objfile-gdb.gdb file): New nodes.
    	(Python): Rename the menu item Auto-loading to Python Auto-loading.
    	(Writing a Pretty-Printer, Objfiles In Python): Update the renamed
    	reference.
    	(Auto-loading): Rename to ...
    	(Python Auto-loading): ... here.  Change "set auto-load-scripts" to
    	"set auto-load python-scripts", new anchor for it.  Change
    	"show auto-load-scripts" to "show auto-load python-scripts", new anchor
    	for it.  Change "info auto-load-scripts"
    	to "info auto-load python-scripts", new anchor for it.  Change "scripts"
    	to "Python scripts".
    
    gdb/testsuite/
    	auto-load: Implementation.
    	* gdb.base/help.exp (test set height): Increase the height.
    	* gdb.python/py-objfile-script.exp (info auto-load-scripts): Change
    	to ...
    	(info auto-load python-scripts): ... here.
    	* gdb.python/py-section-script.exp (info auto-load-scripts *): Change
    	to ...
    	(info auto-load python-scripts *): ... here.

commit 0c4f1245d79b822f306dc2b7d2edefe4f67ed0a2
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Tue Apr 17 15:49:11 2012 +0000

    gdb/
    	auto-load: Move files.
    	* Makefile.in (SFILES): Add auto-load.c.
    	(HFILES_NO_SRCDIR): Add auto-load.h.
    	(COMMON_OBS): Add auto-load.o.
    	(distclean): Change .gdbinit for gdb-gdb.gdb.
    	* auto-load.c: New file, with parts from python/py-auto-load.c.
    	* auto-load.h: New file, with parts from python/python.h.
    	* configure: Regenerate.
    	* configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
    	* gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
    	* gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
    	* main.c: Include auto-load.h.
    	* python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
    	command.h, observer.h and progspace.h to auto-load.c.  Add include
    	auto-load.h.
    	(gdbpy_global_auto_load, struct auto_load_pspace_info)
    	(struct loaded_script, auto_load_pspace_data)
    	(auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
    	(hash_loaded_script_entry, eq_loaded_script_entry)
    	(init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
    	(maybe_add_script): Move to auto-load.c.
    	(source_section_scripts): Change maybe_add_script parameters passing,
    	use script_not_found_warning_print.
    	(clear_section_scripts, auto_load_objfile_script)
    	(auto_load_new_objfile, loaded_script_ptr)
    	(DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
    	(sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
    	(gdbpy_initialize_auto_load): Move auto_load_pspace_data,
    	auto_load_new_objfile and info_auto_load_scripts initizations to
    	auto-load.c.
    	* python/python.h (gdbpy_global_auto_load): Move to auto-load.h.

commit 262d0bbf6bec25981bb6472164f06310247075e6
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Tue Apr 17 15:47:08 2012 +0000

    gdb/
    	Code cleanup.
    	* charset.c (find_charset_names): Remove variables ix and elt.
    	Use free_char_ptr_vec.
    	* elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
    	back_to and ix.  Use dirnames_to_char_ptr_vec.  Remove variable
    	debugdir_end.  New variable debugdir_len.
    	* gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
    	(dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
    	declarations.
    	* progspace.c (clear_program_space_solib_cache): Remove variables ix
    	and elt.  Use free_char_ptr_vec.
    	* source.c (add_path): Remove variables argv, arg and argv_index.
    	New variables dir_vec, back_to, ix and name.
    	Use dirnames_to_char_ptr_vec_append.  Use freeargv instead of
    	make_cleanup_freeargv.  Remove variable separator.  Simplify the code
    	no longer expecting DIRNAME_SEPARATOR.
    	(openp): Remove variable p, p1 and len.  New variables dir_vec,
    	back_to, ix and dir.  Use dirnames_to_char_ptr_vec.  Simplify the code
    	no longer expecting DIRNAME_SEPARATOR.
    	* symfile.c (find_separate_debug_file): New variables debugdir_vec,
    	back_to and ix.  Use dirnames_to_char_ptr_vec.  Remove variable
    	debugdir_end.
    	* utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
    	(make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
    	(dirnames_to_char_ptr_vec): New functions.

commit f28d9fe47a02e0387b0f5429e54c22707ca124f4
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Tue Apr 17 15:45:05 2012 +0000

    gdb/
    	Code cleanup.
    	* source.c (add_path): Remove always true conditional 'p == 0' and
    	unindent its code block.

-----------------------------------------------------------------------

Summary of changes:
 bfd/ChangeLog                               |   10 +
 bfd/elf32-sh.c                              |    3 +
 bfd/elf64-x86-64.c                          |    9 +-
 bfd/version.h                               |    2 +-
 gdb/ChangeLog                               |  364 +++++++++++++++++++++++++++
 gdb/Makefile.in                             |    6 +-
 gdb/ada-exp.y                               |    2 +-
 gdb/ada-lang.c                              |   12 +-
 gdb/ada-typeprint.c                         |   10 +-
 gdb/ada-valprint.c                          |    6 +-
 gdb/c-typeprint.c                           |   12 +-
 gdb/cleanups.c                              |  245 ++++++++++++++++++
 gdb/cleanups.h                              |   85 +++++++
 gdb/coffread.c                              |    2 +-
 gdb/defs.h                                  |   63 +-----
 gdb/doc/ChangeLog                           |   46 ++++
 gdb/doc/gdb.texinfo                         |    2 +-
 gdb/dwarf2read.c                            |   41 ++--
 gdb/gdb-gdb.py                              |    6 +-
 gdb/gdbtypes.c                              |   27 ++-
 gdb/gdbtypes.h                              |   19 +-
 gdb/m2-typeprint.c                          |    7 +-
 gdb/mdebugread.c                            |    2 +-
 gdb/p-typeprint.c                           |    7 +-
 gdb/python/lib/gdb/printing.py              |    4 +-
 gdb/python/lib/gdb/types.py                 |    4 +-
 gdb/python/py-type.c                        |   20 ++-
 gdb/stabsread.c                             |    2 +-
 gdb/symmisc.c                               |   27 ++-
 gdb/symtab.h                                |    5 +-
 gdb/testsuite/ChangeLog                     |   32 +++
 gdb/testsuite/Makefile.in                   |    1 +
 gdb/testsuite/gdb.base/enumval.c            |   30 +++
 gdb/testsuite/gdb.base/enumval.exp          |   31 +++
 gdb/testsuite/gdb.python/py-type.exp        |    4 +-
 gdb/testsuite/lib/append_gdb_boards_dir.exp |   48 ++++
 gdb/tracepoint.c                            |   25 +-
 gdb/typeprint.c                             |    2 +-
 gdb/utils.c                                 |  195 +-------------
 gdb/valprint.c                              |    6 +-
 gdb/version.in                              |    2 +-
 gdb/xcoffread.c                             |  158 +++++++-----
 42 files changed, 1163 insertions(+), 421 deletions(-)
 create mode 100644 gdb/cleanups.c
 create mode 100644 gdb/cleanups.h
 create mode 100644 gdb/testsuite/gdb.base/enumval.c
 create mode 100644 gdb/testsuite/gdb.base/enumval.exp
 create mode 100644 gdb/testsuite/lib/append_gdb_boards_dir.exp

First 500 lines of diff:
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 7871002..dacde6d 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,13 @@
+2012-04-17  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
+
+	* elf32-sh.c (allocate_dynrelocs): Don't allocate dynamic
+	relocations when LE conversion happens on the IE tls symbol.
+
+2012-04-17  Roland McGrath  <mcgrathr@google.com>
+
+	* elf64-x86-64.c (elf_x86_64_nacl_plt0_entry): Fix nop padding
+	so that 32-byte boundary is a proper instruction boundary.
+
 2012-04-17  Tristan Gingold  <gingold@adacore.com>
 
 	* vms-lib.c (_bfd_vms_lib_get_module): Append .obj extension to
diff --git a/bfd/elf32-sh.c b/bfd/elf32-sh.c
index 9bc2dd5..87d4e4f 100644
--- a/bfd/elf32-sh.c
+++ b/bfd/elf32-sh.c
@@ -3104,6 +3104,9 @@ allocate_dynrelocs (struct elf_link_hash_entry *h, void *inf)
 	      && (got_type == GOT_NORMAL || got_type == GOT_FUNCDESC))
 	    htab->srofixup->size += 4;
 	}
+      /* No dynamic relocations required when IE->LE conversion happens.  */
+      else if (got_type == GOT_TLS_IE && !h->def_dynamic && !info->shared)
+	;
       /* R_SH_TLS_IE_32 needs one dynamic relocation if dynamic,
 	 R_SH_TLS_GD needs one if local symbol and two if global.  */
       else if ((got_type == GOT_TLS_GD && h->dynindx == -1)
diff --git a/bfd/elf64-x86-64.c b/bfd/elf64-x86-64.c
index 8ca811c..3b1c0cc 100644
--- a/bfd/elf64-x86-64.c
+++ b/bfd/elf64-x86-64.c
@@ -5134,13 +5134,16 @@ static const bfd_byte elf_x86_64_nacl_plt0_entry[NACL_PLT_ENTRY_SIZE] =
     0x4d, 0x01, 0xfb,             	/* add %r15, %r11		*/
     0x41, 0xff, 0xe3,             	/* jmpq *%r11			*/
 
-    /* 41 bytes of nop to pad out to the standard size.  */
+    /* 9-byte nop sequence to pad out to the next 32-byte boundary.  */
+    0x2e, 0x0f, 0x1f, 0x84, 0, 0, 0, 0, 0, /* nopl %cs:0x0(%rax,%rax,1)	*/
+
+    /* 32 bytes of nop to pad out to the standard size.  */
     0x66, 0x66, 0x66, 0x66, 0x66, 0x66,    /* excess data32 prefixes	*/
     0x2e, 0x0f, 0x1f, 0x84, 0, 0, 0, 0, 0, /* nopw %cs:0x0(%rax,%rax,1)	*/
     0x66, 0x66, 0x66, 0x66, 0x66, 0x66,    /* excess data32 prefixes	*/
     0x2e, 0x0f, 0x1f, 0x84, 0, 0, 0, 0, 0, /* nopw %cs:0x0(%rax,%rax,1)	*/
-    0x66, 0x66,                            /* excess data32 prefixes	*/
-    0x2e, 0x0f, 0x1f, 0x84, 0, 0, 0, 0, 0, /* nopw %cs:0x0(%rax,%rax,1)	*/
+    0x66,                                  /* excess data32 prefix	*/
+    0x90                                   /* nop */
   };
 
 static const bfd_byte elf_x86_64_nacl_plt_entry[NACL_PLT_ENTRY_SIZE] =
diff --git a/bfd/version.h b/bfd/version.h
index 4fb1340..7a26b8f 100644
--- a/bfd/version.h
+++ b/bfd/version.h
@@ -1,4 +1,4 @@
-#define BFD_VERSION_DATE 20120417
+#define BFD_VERSION_DATE 20120418
 #define BFD_VERSION @bfd_version@
 #define BFD_VERSION_STRING  @bfd_version_package@ @bfd_version_string@
 #define REPORT_BUGS_TO @report_bugs_to@
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index baf556b..d4e5235 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,367 @@
+2012-04-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+	Fix 64-bit constants on 32-bit hosts.
+	* dwarf2read.c (read_unsigned_leb128): Change declaration return type
+	from unsigned long to ULONGEST.
+	(read_signed_leb128): Change declaration return type from long to
+	LONGEST.
+	(dwarf2_const_value_attr): Change declaration parameter value from long
+	to LONGEST.
+	(dwarf2_compute_name): Change variable value from long to LONGEST.
+	(read_unsigned_leb128): Change return type, variable result and some
+	casts from unsigned long to ULONGEST.
+	(read_signed_leb128): Change return type, variable result and some
+	casts from long to LONGEST.
+	(dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
+	value from long to LONGEST.
+	(dwarf2_const_value): Change variable value from long to LONGEST.
+	* symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
+	plongest and hex_string.
+	* symtab.h (struct general_symbol_info): Change ivalue from long to
+	LONGEST, remove the comment.
+	* tracepoint.c (validate_actionline, collect_symbol, scope_info):
+	Change SYMBOL_VALUE format strings to use plongest and hex_string.
+
+2012-04-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
+
+	PR symtab/7259:
+	* ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
+	* ada-lang.c (ada_discrete_type_high_bound)
+	(ada_discrete_type_low_bound): Fix function comment.  Use
+	TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
+	(ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
+	(pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
+	* ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
+	Use TYPE_FIELD_ENUMVAL.
+	* ada-valprint.c (print_optional_low_bound, ada_print_scalar)
+	(ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
+	* c-typeprint.c (c_type_print_base): Move variable lastval to inner
+	block, change it to LONGEST.  Use TYPE_FIELD_ENUMVAL for
+	TYPE_CODE_ENUM.
+	* coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
+	* dwarf2read.c (process_enumeration_scope): Likewise.
+	* gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
+	field.bitpos.
+	(class StructMainTypePrettyPrinter): Support also
+	FIELD_LOC_KIND_ENUMVAL.
+	* gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
+	TYPE_CODE_ENUM.
+	(recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
+	(copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
+	* gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
+	(struct main_type.flds_bnds.fields.loc): Adjust bitpos comment.  New
+	field enumval.
+	(struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
+	accommodate enumval.
+	(struct call_site): Adjust loc_kind to accommodate enumval.
+	(FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
+	(TYPE_FIELD_ENUMVAL): New macros.
+	* m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
+	* mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
+	TYPE_CODE_ENUM.
+	* p-typeprint.c (pascal_type_print_base): Likewise.
+	* python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
+	enumval.
+	* python/lib/gdb/types.py (make_enum_dict): Likewise.
+	* python/py-type.c (convert_field): New variable addrstring.  Use
+	TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
+	(check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
+	* stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
+	* typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
+	TYPE_CODE_ENUM.
+	* valprint.c (generic_val_print): Likewise.
+
+2012-04-17  Doug Evans  <dje@google.com>
+
+	* dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
+
+	* dwarf2read.c: Whitespace fixes.
+	(lookup_signatured_type): Tweak comment.
+	(get_die_type_at_offset): Fix comment.
+
+2012-04-17  Joel Brobecker  <brobecker@adacore.com>
+
+	* xcoffread.c (xcoff_secnum_to_sections): New function.
+	(secnum_to_section, secnum_to_bfd_section): Reimplement
+	using xcoff_secnum_to_sections.  Rename "secnum" parameter
+	into "n_scnum".
+	(RECORD_MINIMAL_SYMBOL): Delete.
+	(record_minimal_symbol): New function.
+	(scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
+	by call to record_minimal_symbol and set misc_func_recorded
+	to 1.  Set last_csect_sec to the XCOFF section index instead
+	of GDB's section_offset index.  Update calls to
+	prim_record_minimal_symbol_and_info to pass the BFD section
+	as well.
+
+2012-04-17  Joel Brobecker  <brobecker@adacore.com>
+
+	* xcoffread.c (read_xcoff_symtab): Delete variables
+	last_csect_val and last_csect_sec and associated code.
+
+2012-04-17  Doug Evans  <dje@google.com>
+
+	* cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
+	(discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
+	* cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
+	(discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
+
+	* cleanups.h: New file.
+	* cleanups.c: New file.
+	* Makefile.in (SFILES): Add cleanups.c.
+	(HFILES_NO_SRCDIR): Add cleanups.h.
+	(COMMON_OBS): Add cleanups.o.
+	* defs.h (struct cleanup): Moved to cleanups.h.
+	(do_cleanups,do_final_cleanups): Ditto.
+	(discard_cleanups,discard_final_cleanups): Ditto
+	(make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
+	(save_cleanups,save_final_cleanups): Ditto.
+	(restore_cleanups,restore_final_cleanups): Ditto.
+	(null_cleanup): Ditto.
+	(make_my_cleanup,make_my_cleanup2): Ditto.
+	(discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
+	* utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
+	(do_cleanups,do_final_cleanups): Ditto.
+	(discard_cleanups,discard_final_cleanups): Ditto
+	(make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
+	(save_cleanups,save_final_cleanups): Ditto.
+	(restore_cleanups,restore_final_cleanups): Ditto.
+	(null_cleanup): Ditto.
+	(make_my_cleanup,make_my_cleanup2): Ditto.
+	(discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
+
+	* utils.c (make_cleanup_freeargv): Use make_cleanup instead of
+	make_my_cleanup.
+	(make_cleanup_dyn_string_delete): Ditto.
+	(make_cleanup_ui_file_delete): Ditto.
+	(make_cleanup_ui_out_redirect_pop): Ditto.
+	(make_cleanup_free_section_addr_info): Ditto.
+	(make_cleanup_restore_integer): Ditto.
+	(make_cleanup_unpush_target): Ditto.
+	(make_cleanup_value_free_to_mark): Ditto.
+	(make_cleanup_value_free): Ditto.
+	(make_cleanup_free_so): Ditto.
+
+2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+	New option "set debug auto-load".
+	* NEWS: New commands "set debug auto-load" and "show debug auto-load".
+	* auto-load.c (debug_auto_load, show_debug_auto_load: New.
+	(auto_load_safe_path_vec_update)
+	(filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
+	if DEBUG_AUTO_LOAD.
+	(file_is_auto_load_safe): New parameters debug_fmt and ....
+	Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
+	(source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
+	caller by explanatory string.
+	(_initialize_auto_load): Register "set debug auto-load".
+	* auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
+	and ....
+	* linux-thread-db.c (try_thread_db_load_from_pdir_1)
+	(try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
+	by explanatory string.
+	* main.c (captured_main): Likewise.
+	* python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
+	(source_section_scripts): Likewise.
+
+2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+	New option "set auto-load safe-path".
+	* NEWS: New commands "set auto-load safe-path"
+	and "show auto-load safe-path".
+	* auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
+	(auto_load_safe_path, auto_load_safe_path_vec)
+	(auto_load_safe_path_vec_update, set_auto_load_safe_path)
+	(show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
+	(filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
+	(source_gdb_script_for_objfile): New variable is_safe.  Call
+	file_is_auto_load_safe.  Return if it is not.
+	(struct loaded_script): New field loaded.
+	(maybe_add_script): Add parameter loaded.  Initialize SLOT with it.
+	(print_script): Use LOADED indicator instead of FULL_PATH.  Change
+	output "Missing" to "No".
+	(_initialize_auto_load): New variable cmd.  Initialize
+	auto_load_safe_path.  Register "set auto-load safe-path",
+	"show auto-load safe-path" and "add-auto-load-safe-path".
+	* auto-load.h (maybe_add_script): Add parameter loaded.
+	(file_is_auto_load_safe): New declaration.
+	* config.in: Regenerate.
+	* configure: Regenerate.
+	* configure.ac: New parameters --with-auto-load-safe-path
+	and --without-auto-load-safe-path.
+	* linux-thread-db.c (try_thread_db_load_from_pdir_1)
+	(try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
+	* main.c (captured_main): Check file_is_auto_load_safe for
+	LOCAL_GDBINIT.
+	* python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
+	variable is_safe.  Call file_is_auto_load_safe.  Return if it is not.
+	(source_section_scripts): Call file_is_auto_load_safe.  Return if it is
+	not.
+
+2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+	auto-load: Implementation.
+	* NEWS: New descriptions for "info auto-load",
+	"info auto-load gdb-scripts", "info auto-load python-scripts",
+	"info auto-load local-gdbinit" and "info auto-load libthread-db".
+	Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
+	and "show auto-load-scripts".  New description for "set auto-load",
+	"show auto-load", "set auto-load gdb-scripts",
+	"show auto-load gdb-scripts", "set auto-load python-scripts",
+	"show auto-load python-scripts", "set auto-load local-gdbinit",
+	"show auto-load local-gdbinit", "set auto-load libthread-db" and
+	"show auto-load libthread-db".
+	* auto-load.c: Remove include python/python-internal.h.  Add includes
+	exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
+	cli/cli-setshow.h.
+	(GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
+	(auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
+	(gdbpy_global_auto_load): Rename to ...
+	(global_auto_load): ... here.
+	(auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
+	(auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
+	(script_language_gdb, source_gdb_script_for_objfile): New.
+	(struct loaded_script): New field language.
+	(hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
+	LANGUAGE.
+	(maybe_add_script): Add parameter language.  Drop redundant
+	entry.full_path initialization.  Initialize entry.language and
+	(*slot)->language.
+	(auto_load_objfile_script): Change parameter suffix to language.
+	Remove the call of maybe_add_script.
+	Call language->source_script_for_objfile.
+	(load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
+	New.
+	(collect_matching_scripts): Adjust it for
+	struct collect_matching_scripts_data.
+	(auto_load_info_scripts_pattern_nl): New variable.
+	(info_auto_load_scripts): Rename to ...
+	(auto_load_info_scripts): ... here, add parameter language.  Adjust it
+	for struct collect_matching_scripts_data.
+	(info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
+	(set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
+	(auto_load_show_cmdlist_get, info_auto_load_cmd)
+	(auto_load_info_cmdlist_get): New.
+	(_initialize_auto_load): Move add_info of "auto-load-scripts" to
+	python/py-auto-load.c.  New installment for "set auto-load gdb-scripts",
+	"info auto-load gdb-scripts", "set auto-load local-gdbinit" and
+	"info auto-load local-gdbinit".
+	* auto-load.h (struct script_language): New.
+	(gdbpy_global_auto_load): Rename to ...
+	(global_auto_load): ... here.
+	(auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
+	(auto_load_local_gdbinit_loaded): New declarations.
+	(maybe_add_script): New parameter language.
+	(auto_load_objfile_script): Change parameter suffix to language.
+	(load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
+	(auto_load_info_scripts, auto_load_set_cmdlist_get)
+	(auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
+	declarations.
+	* linux-thread-db.c: Include auto-load.h and ctype.h.
+	(auto_load_thread_db, show_auto_load_thread_db): New.
+	(struct thread_db_info): New field filename.
+	(delete_thread_db_info): Call xfree for FILENAME.
+	(try_thread_db_load): Initialize FILENAME.
+	(try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
+	if !AUTO_LOAD_THREAD_DB.
+	(info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
+	(_initialize_thread_db): Install auto_load_thread_db
+	as "set auto-load libthread-db" and install info_auto_load_libthread_db
+	as "info auto-load libthread-db".
+	* main.c (captured_main): Rename gdbpy_global_auto_load to
+	global_auto_load.  Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
+	AUTO_LOAD_LOCAL_GDBINIT_LOADED.
+	(print_gdb_help): Extend the help for 'local init file'.
+	* python/py-auto-load.c: Remove a comment about gdb scripts extension.
+	(GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
+	(auto_load_scripts): Rename to ...
+	(auto_load_python_scripts): ... here, update the comment.
+	(gdbpy_load_auto_script_for_objfile): New declaration.
+	(show_auto_load_python_scripts, script_language_python)
+	(gdbpy_load_auto_script_for_objfile): New.
+	(source_section_scripts): Refactor the code.
+	(load_auto_scripts_for_objfile): Rename to ...
+	(gdbpy_load_auto_scripts_for_objfile): ... here, update the
+	auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
+	(info_auto_load_python_scripts): New.
+	(gdbpy_initialize_auto_load): New variables cmd and cmd_name.
+	Rename "set auto-load-scripts" to "set auto-load python-scripts".
+	Register "set auto-load-scripts" as its deprecated alias.  Register
+	"info auto-load python-scripts".  Register "info auto-load-scripts" as
+	its deprecated alias.
+	(load_auto_scripts_for_objfile): Rename to ...
+	(gdbpy_load_auto_scripts_for_objfile): ... here.
+	* python/python.h (load_auto_scripts_for_objfile): Rename to ...
+	(gdbpy_load_auto_scripts_for_objfile): ... here.
+
+2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+	auto-load: Move files.
+	* Makefile.in (SFILES): Add auto-load.c.
+	(HFILES_NO_SRCDIR): Add auto-load.h.
+	(COMMON_OBS): Add auto-load.o.
+	(distclean): Change .gdbinit for gdb-gdb.gdb.
+	* auto-load.c: New file, with parts from python/py-auto-load.c.
+	* auto-load.h: New file, with parts from python/python.h.
+	* configure: Regenerate.
+	* configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
+	* gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
+	* gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
+	* main.c: Include auto-load.h.
+	* python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
+	command.h, observer.h and progspace.h to auto-load.c.  Add include
+	auto-load.h.
+	(gdbpy_global_auto_load, struct auto_load_pspace_info)
+	(struct loaded_script, auto_load_pspace_data)
+	(auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
+	(hash_loaded_script_entry, eq_loaded_script_entry)
+	(init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
+	(maybe_add_script): Move to auto-load.c.
+	(source_section_scripts): Change maybe_add_script parameters passing,
+	use script_not_found_warning_print.
+	(clear_section_scripts, auto_load_objfile_script)
+	(auto_load_new_objfile, loaded_script_ptr)
+	(DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
+	(sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
+	(gdbpy_initialize_auto_load): Move auto_load_pspace_data,
+	auto_load_new_objfile and info_auto_load_scripts initizations to
+	auto-load.c.
+	* python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
+
+2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+	Code cleanup.
+	* charset.c (find_charset_names): Remove variables ix and elt.
+	Use free_char_ptr_vec.
+	* elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
+	back_to and ix.  Use dirnames_to_char_ptr_vec.  Remove variable
+	debugdir_end.  New variable debugdir_len.
+	* gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
+	(dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
+	declarations.
+	* progspace.c (clear_program_space_solib_cache): Remove variables ix
+	and elt.  Use free_char_ptr_vec.
+	* source.c (add_path): Remove variables argv, arg and argv_index.
+	New variables dir_vec, back_to, ix and name.
+	Use dirnames_to_char_ptr_vec_append.  Use freeargv instead of
+	make_cleanup_freeargv.  Remove variable separator.  Simplify the code
+	no longer expecting DIRNAME_SEPARATOR.
+	(openp): Remove variable p, p1 and len.  New variables dir_vec,
+	back_to, ix and dir.  Use dirnames_to_char_ptr_vec.  Simplify the code
+	no longer expecting DIRNAME_SEPARATOR.
+	* symfile.c (find_separate_debug_file): New variables debugdir_vec,
+	back_to and ix.  Use dirnames_to_char_ptr_vec.  Remove variable
+	debugdir_end.
+	* utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
+	(make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
+	(dirnames_to_char_ptr_vec): New functions.
+
+2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+	Code cleanup.
+	* source.c (add_path): Remove always true conditional 'p == 0' and
+	unindent its code block.
+
 2012-04-17  Pedro Alves  <palves@redhat.com>
 
 	* gdbtypes.h (FIELD_BITPOS): Rename to ...
diff --git a/gdb/Makefile.in b/gdb/Makefile.in
index 617b59d..5acf5ee 100644
--- a/gdb/Makefile.in
+++ b/gdb/Makefile.in
@@ -690,7 +690,7 @@ SFILES = ada-exp.y ada-lang.c ada-typeprint.c ada-valprint.c ada-tasks.c \
 	bfd-target.c \
 	block.c blockframe.c breakpoint.c buildsym.c \
 	c-exp.y c-lang.c c-typeprint.c c-valprint.c \
-	charset.c cli-out.c coffread.c coff-pe-read.c \
+	charset.c cleanups.c cli-out.c coffread.c coff-pe-read.c \
 	complaints.c completer.c continuations.c corefile.c corelow.c \
 	cp-abi.c cp-support.c cp-namespace.c cp-valprint.c \
 	d-lang.c d-valprint.c \
@@ -783,7 +783,7 @@ objfiles.h vec.h disasm.h mips-tdep.h ser-base.h \
 gdb_curses.h bfd-target.h memattr.h inferior.h ax.h dummy-frame.h \
 inflow.h fbsd-nat.h ia64-libunwind-tdep.h completer.h inf-ttrace.h \
 solib-target.h gdb_vfork.h alpha-tdep.h dwarf2expr.h \
-m2-lang.h stack.h charset.h addrmap.h command.h solist.h source.h \
+m2-lang.h stack.h charset.h cleanups.h addrmap.h command.h solist.h source.h \
 target.h prologue-value.h cp-abi.h tui/tui-hooks.h tui/tui.h \
 tui/tui-file.h tui/tui-command.h tui/tui-disasm.h tui/tui-wingeneral.h \
 tui/tui-windata.h tui/tui-data.h tui/tui-win.h tui/tui-stack.h \
@@ -858,7 +858,7 @@ COMMON_OBS = $(DEPFILES) $(CONFIG_OBS) $(YYOBJ) \
 	auto-load.o auxv.o \
 	agent.o \
 	bfd-target.o \
-	blockframe.o breakpoint.o findvar.o regcache.o \
+	blockframe.o breakpoint.o findvar.o regcache.o cleanups.o \
 	charset.o continuations.o corelow.o disasm.o dummy-frame.o dfp.o \
 	source.o value.o eval.o valops.o valarith.o valprint.o printcmd.o \
 	block.o symtab.o psymtab.o symfile.o symmisc.o linespec.o dictionary.o \
diff --git a/gdb/ada-exp.y b/gdb/ada-exp.y
index 36ef3d4..1a80b0b 100644
--- a/gdb/ada-exp.y
+++ b/gdb/ada-exp.y
@@ -1463,7 +1463,7 @@ convert_char_literal (struct type *type, LONGEST val)
   for (f = 0; f < TYPE_NFIELDS (type); f += 1)
     {
       if (strcmp (name, TYPE_FIELD_NAME (type, f)) == 0)
-	return TYPE_FIELD_BITPOS (type, f);
+	return TYPE_FIELD_ENUMVAL (type, f);
     }
   return val;
 }
diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c
index 2e1df7a..52e1e59 100644
--- a/gdb/ada-lang.c
+++ b/gdb/ada-lang.c
@@ -690,7 +690,7 @@ ada_discrete_type_high_bound (struct type *type)
     case TYPE_CODE_RANGE:
       return TYPE_HIGH_BOUND (type);
     case TYPE_CODE_ENUM:
-      return TYPE_FIELD_BITPOS (type, TYPE_NFIELDS (type) - 1);
+      return TYPE_FIELD_ENUMVAL (type, TYPE_NFIELDS (type) - 1);
     case TYPE_CODE_BOOL:
       return 1;
     case TYPE_CODE_CHAR:
@@ -701,7 +701,7 @@ ada_discrete_type_high_bound (struct type *type)
     }
 }
 
-/* The largest value in the domain of TYPE, a discrete type, as an integer.  */


hooks/post-receive
--
Repository for Project Archer.


             reply	other threads:[~2012-04-18  8:20 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-18  8:20 jkratoch [this message]
  -- strict thread matches above, loose matches on Subject: below --
2012-04-17 15:57 jkratoch

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120418082026.25074.qmail@sourceware.org \
    --to=jkratoch@sourceware.org \
    --cc=archer-commits@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).