public inbox for archer-commits@sourceware.org
help / color / mirror / Atom feed
From: jkratoch@sourceware.org
To: archer-commits@sourceware.org
Subject: [SCM]  master: Merge remote branch 'gdb/master'
Date: Fri, 20 Aug 2010 17:49:00 -0000	[thread overview]
Message-ID: <20100820174927.32516.qmail@sourceware.org> (raw)

The branch, master has been updated
       via  e3d3070b314e3740b2028e887b0ca7f1145199c9 (commit)
       via  24a68699c98d5a3d4e6f35e061bdd46051ce0ef1 (commit)
       via  f6cfef01ca569c76882c57b4abd5328230c25834 (commit)
       via  c6363eaa219db43ab9bc1a84ae0fadd15c2f81a5 (commit)
       via  1432e8d74f46976512653d8799d7ed6da2e86b25 (commit)
       via  671285e33baeccbd6ccc0a08871ffaf02f9c5fdd (commit)
       via  8dc45a55e666af250ff5ed0217d753e16a655652 (commit)
       via  4faa658db05ec40e2d1c7456596b2bb27e3d3bea (commit)
       via  135ac82a029af8c6d2e5de354cd4fad68047dd8c (commit)
       via  724d4482b9db1aced5ae391ad624f76877991232 (commit)
       via  f1dbee9626f22f5ed6433a7b3eb928e46f4c0c28 (commit)
       via  105c933eb72039680ac0ee8d03508a2b218d5c88 (commit)
       via  53998427eeb52f2f16bd75962f2ef2198922030f (commit)
       via  e9f28d52cde2d81629b2784b3782731158b8bb69 (commit)
       via  5da6e2c3898d33868e57e135736fdf8a20a13de3 (commit)
       via  cf5764ad1be1132fcfcc6189027467f54cecadd5 (commit)
       via  56ac3a0fab6bc82b7e8eeb280181cdb51f2ad1b2 (commit)
       via  0a78bf390d585703fd18cfaa8a29c7cb0aa61c90 (commit)
       via  932984d6160cee42e7ff478f69d3500d1caa319f (commit)
       via  862e2ad21b37a4d019d6636b594c9a6dcc1f314e (commit)
       via  de97dcfa84c8d23d0c755988cc7676e4c14ed91f (commit)
       via  5815370ed6ef1ccff78ee7fea7e25976b5b1147b (commit)
       via  f0d798c8797e9ed98c1174956a12ae8aa2b82012 (commit)
       via  86c443d037a6c35e79dd23b3313e1eaa9b15648f (commit)
       via  c24602fe78164c370b84486dfcbe7ebb45f8764b (commit)
       via  c82ada6043ef5bb264e314a3e140da8ac7210156 (commit)
       via  d8ab61e63785e8c999a8ca6f5b1f7e4de155cbff (commit)
       via  f6759e82e98662d33afdb5b339f5ebf55ee64e69 (commit)
       via  d945166c000a50d6765b5fdd4d2d0e780322bdac (commit)
       via  68f4600ddb7a288e31df06a3da5de7aa866f920d (commit)
       via  c21afd50919a0a082e44083fca4693402b6194f5 (commit)
       via  f8b3620a572c7afb73fd46e49d06540b0e8db597 (commit)
       via  043822a615f37ecb759463136ee557720c4a9fac (commit)
       via  6617d8b04045dfc090242a5e4c3e486664ce5aa9 (commit)
       via  ad5ca54c4186f7b7e9d72aa3c3663e43e7fc0abb (commit)
       via  f868031edee5a5f511c6708abdced9a9292f27b9 (commit)
       via  1e88746f6532ebfdd77f59314cef8c1dbcf94130 (commit)
       via  9076507f0fe9994752285c246445364c2dd3cb81 (commit)
       via  e265b24b8ef087a3440f8cdf1dd029a3d7000316 (commit)
       via  3e06230a605ff3aa18120d86554fd9e2d679632a (commit)
       via  ca5a787de620fa149a6a5f2f161b6ea20bd74f4d (commit)
       via  70f9e111de897927cdb841b688771a4296dd151d (commit)
       via  27e2f81dc801e4c94b36a7160619350fc90fcee2 (commit)
       via  d24e2b1c50748d55a66b46d0b910fd751ba93cd9 (commit)
       via  6144e1ba37bc8837d4cbebac933e1af8ab7acde7 (commit)
       via  8c14d1ec5627bf3ad1f77ffc925c3d2a676d34f1 (commit)
       via  8e890f62d09f3578a01972ab3ce630d89c4026fb (commit)
       via  9598cd35f8e1939aadc6b1e4b0bda5b3a59f7864 (commit)
       via  42fca9ebb9b268c5eae978c2d4a5ec4c04911aba (commit)
       via  49dc52d54d94ddb7ef479f2c1a97544287d92b72 (commit)
       via  eb5bb75603df50cbfd31651cdebe64064d514153 (commit)
       via  589b38aaab27482977d59f190db97b6e60065114 (commit)
       via  2c009df0760d9d081de7dac27412a2a5007e27d8 (commit)
       via  b0ee4b352cead35cb4fd8f528000dbcdb502d303 (commit)
       via  a8450836d6b035eba242772b905fab66551b2df9 (commit)
       via  7b3fbd65ce43cb0b04b247c1f9628cec61f31d85 (commit)
       via  a8dd3249418b044de6e8b1b791092aff4381b31b (commit)
       via  39f47d3a439f6e0255b1c8007a0573cc72ac3471 (commit)
       via  657d609272c806417ea6f583b882d9825830da53 (commit)
       via  a6fd945df789f31425f55b71c92d7a9e84c74bbd (commit)
       via  4a50992f02873a9f8350be9f69f6d93b00109594 (commit)
       via  fc65b379db56751361debc759395a1bbeeace628 (commit)
       via  81442b75d06e89b0ebd4aefc7c7bc4c7b60876b0 (commit)
       via  eb33c8040b5544daf145a10a4aff969ef71c4642 (commit)
      from  ae16d6874610a1dcb937d7cdeec82b505db7c553 (commit)

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

- Log -----------------------------------------------------------------
commit e3d3070b314e3740b2028e887b0ca7f1145199c9
Merge: ae16d68 24a6869
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Fri Aug 20 19:49:10 2010 +0200

    Merge remote branch 'gdb/master'

commit 24a68699c98d5a3d4e6f35e061bdd46051ce0ef1
Author: Nick Clifton <nickc@redhat.com>
Date:   Fri Aug 20 14:41:47 2010 +0000

            * merge.c (sec_merge_emit): Do not zero pad sections that do not
            have an alignment.

commit f6cfef01ca569c76882c57b4abd5328230c25834
Author: Alan Modra <amodra@bigpond.net.au>
Date:   Fri Aug 20 00:00:05 2010 +0000

    daily update

commit c6363eaa219db43ab9bc1a84ae0fadd15c2f81a5
Author: gdbadmin <gdbadmin@sourceware.org>
Date:   Fri Aug 20 00:00:03 2010 +0000

    *** empty log message ***

commit 1432e8d74f46976512653d8799d7ed6da2e86b25
Author: Stan Shebs <shebs@apple.com>
Date:   Thu Aug 19 23:43:30 2010 +0000

    	* NEWS: Mention some additional changes.

commit 671285e33baeccbd6ccc0a08871ffaf02f9c5fdd
Author: Tom Tromey <tromey@redhat.com>
Date:   Thu Aug 19 18:40:46 2010 +0000

    	* Makefile.in (install-python): Add DESTDIR.

commit 8dc45a55e666af250ff5ed0217d753e16a655652
Author: Thiago Jung Bauermann <bauerman@br.ibm.com>
Date:   Thu Aug 19 17:52:49 2010 +0000

    	* gdb.arch/vsx-regs.exp: Remove wrong comment about testing AltiVec
    	registers.  Update data sets with the new v2_double element in the
    	VSX register union.  Add vector_register3_vr data set for the AltiVec
    	registers.  Use gdb_test_no_output instead of send_gdb.

commit 4faa658db05ec40e2d1c7456596b2bb27e3d3bea
Author: Pedro Alves <pedro@codesourcery.com>
Date:   Thu Aug 19 17:00:56 2010 +0000

    	* gdb.python/py-shared.exp: New file, factored out from
    	python.exp.
    	* gdb.python/py-shared.c: New file.
    	* gdb.python/py-shared-sl.c: New file.
    	* gdb.python/python-1.c: New file.
    	* gdb.python/python-sl.c: Delete.
    	* gdb.python/python.c: Mention python-1.c.
    	* gdb.python/python.exp: Move shared library tests to
    	py-shared.exp.
    	* gdb.python/Makefile.in (EXECUTABLES): Add py-shared and python.
    	(MISCELLANEOUS): New.
    	(clean mostlyclean): Also remove $MISCELLANEOUS.

commit 135ac82a029af8c6d2e5de354cd4fad68047dd8c
Author: Doug Evans <dje@google.com>
Date:   Thu Aug 19 13:33:10 2010 +0000

    	PR exp/11926
    	* parser-defs.h (parse_float, parse_c_float): Declare.
    	* parse.c (parse_float, parse_c_float): New function.
    	* c-exp.y (parse_number): Call parse_c_float.
    	* objc-exp.y (parse_number): Ditto.
    	* p-exp.y (parse_number): Ditto.  Use ANSI/ISO-style definition.
    	* jv-exp.y (parse_number): Call parse_float, fix suffix handling.
    
    	testsuite/
    	* gdb.base/printcmds.exp (test_float_accepted): New function.
    	Move existing float tests there.  Add tests for floats with suffixes.
    	(test_float_rejected): New function.
    	* gdb.java/jv-print.exp (test_float_accepted): New function.
    	(test_float_rejected): New function.
    	* gdb.objc/print.exp: New file.
    	* gdb.pascal/print.exp: New file.
    	* lib/objc.exp: New file.

commit 724d4482b9db1aced5ae391ad624f76877991232
Author: Joel Brobecker <brobecker@gnat.com>
Date:   Thu Aug 19 09:04:10 2010 +0000

    Fix regression in -file-list-exec-source-files command.
    
    See http://sourceware.org/ml/gdb/2010-07/msg00118.html for
    a description of the problem. Namely, the file and fullname
    fields are inverted in the output of the -file-list-exec-source-files
    GDB/MI command:
    
        (gdb) interpreter-exec mi -file-list-exec-source-files
        ^done,files=[{file="/takamaka.a/brobecke/ex/list-exec-source-files/foo.c",fullname="foo.c"},{file="/takamaka.a/brobecke/ex/list-exec-source-files/foo.c",fullname="foo.c"},{file="",fullname="init.c"},{file="",fullname="../sysdeps/x86_64/elf/start.S"},{file="",fullname="../sysdeps/x86_64/elf/start.S"}]
    
    It turns out to be a silly thinko: The map_symbol_filenames function
    calls the psymtab version of map_symbol_filenames routine, and this
    version called the callback function with filename and fullname
    in the wrong order (fullname/filename instead of filename/fullname).
    
    The routine description in symfile.h confirst that expected order for
    the FUN callback parameters:
    
        /* Call a callback for every file defined in OBJFILE.  FUN is the
           callback.  It is passed the file's name, the file's full name,
           and the DATA passed to this function.  */
        void (*map_symbol_filenames) (struct objfile *objfile,
                                      void (*fun) (const char *, const char *,
                                                   void *),
                                      void *data);
    
    Fixing this error uncovered another location where the arguments
    were reversed: maybe_add_partial_symtab_filename.  Once the first
    error was fixed, the debugger would crash while attempting to do
    completion, because it was given a NULL fullname instead of the
    non-NULL filename.
    
    gdb/ChangeLog:
    
            * psymtab.c (map_symbol_filenames_psymtab): Call FUN with
            the arguments in the correct order.
            * symtab.c (maybe_add_partial_symtab_filename): Declare
            the arguments in the correct order.

commit f1dbee9626f22f5ed6433a7b3eb928e46f4c0c28
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Thu Aug 19 07:34:26 2010 +0000

    gdb/
    	* varobj.c (varobj_create): Replace variable old_fi with old_id,
    	initialize it by null_frame_id, wrap its usage by get_frame_id,
    	frame_id_p and frame_find_by_id.

commit 105c933eb72039680ac0ee8d03508a2b218d5c88
Author: Pierre Muller <muller@ics.u-strasbg.fr>
Date:   Thu Aug 19 07:05:56 2010 +0000

    	* gdb.base/default.exp (info set): Avoid full buffer error and force
    	reading up to final gdb prompt.
    	(show): Likewise.

commit 53998427eeb52f2f16bd75962f2ef2198922030f
Author: gdbadmin <gdbadmin@sourceware.org>
Date:   Thu Aug 19 00:00:35 2010 +0000

    *** empty log message ***

commit e9f28d52cde2d81629b2784b3782731158b8bb69
Author: Alan Modra <amodra@bigpond.net.au>
Date:   Thu Aug 19 00:00:06 2010 +0000

    daily update

commit 5da6e2c3898d33868e57e135736fdf8a20a13de3
Author: Tom Tromey <tromey@redhat.com>
Date:   Wed Aug 18 22:57:45 2010 +0000

    	PR python/11900:
    	* configure: Rebuild.
    	* configure.ac: Add install-python to CONFIG_INSTALL.
    	* Makefile.in (install-python): New.

commit cf5764ad1be1132fcfcc6189027467f54cecadd5
Author: Doug Evans <dje@google.com>
Date:   Wed Aug 18 19:13:32 2010 +0000

    	* gdb_assert.h (gdb_assert_not_reached): New macro.
    	(gdb_assert_fail): Fix typo in comment.
    	* avr-tdep.c (avr_return_value): Use gdb_assert_not_reached instead of
    	gdb_assert (0).
    	* darwin-nat.c (darwin_check_new_threads): Ditto.
    	* dwarf2read.c (dwarf2_get_section_info): Ditto.
    	(munmap_section_buffer): Ditto.
    	* m32c-tdep.c (make_types): Ditto.
    	(m32c_decode_srcdest4, m32c_decode_sd23, m32c_frame_base): Ditto.
    	* macroexp.c (get_character_constant): Ditto.
    	(get_string_literal): Ditto.
    	* mep-tdep.c (mep_pseudo_cr_size): Ditto.
    	(mep_pseudo_cr_index, mep_register_type): Ditto.
    	(mep_pseudo_register_read, mep_pseudo_register_write): Ditto.
    	(mep_get_insn, mep_analyze_prologue): Ditto.
    	* objfiles.c (qsort_cmp): Ditto.
    	* prologue-value.c (pv_is_identical): Ditto.
    	* record.c (record_get_loc): Ditto.
    	* value.c (value_static_field): Ditto.
    	* xtensa-tdep.c (call0_track_op): Ditto.

commit 56ac3a0fab6bc82b7e8eeb280181cdb51f2ad1b2
Author: Tom Tromey <tromey@redhat.com>
Date:   Wed Aug 18 19:02:32 2010 +0000

    gdb
    	PR symtab/11919:
    	* gdbtypes.c (lookup_struct_elt_type): Clean up error emission.
    	* parse.c (parse_field_expression): Use RETURN_MASK_ERROR.  Move
    	name-copying lower.  Document exception behavior.
    	* completer.c (expression_completer): Catch exceptions from
    	parse_field_expression.
    gdb/testsuite
    	PR symtab/11919:
    	* gdb.base/completion.exp: Add test.

commit 0a78bf390d585703fd18cfaa8a29c7cb0aa61c90
Author: Thiago Jung Bauermann <bauerman@br.ibm.com>
Date:   Wed Aug 18 17:58:48 2010 +0000

    	* gdb.texinfo (PowerPC Embedded): Mention support for the DVC register.

commit 932984d6160cee42e7ff478f69d3500d1caa319f
Author: Doug Evans <dje@google.com>
Date:   Wed Aug 18 16:37:21 2010 +0000

    	* gdb.base/call-ar-st.exp (set_lang_c): Delete, unused.
    	* gdb.base/callfuncs.exp (set_lang_c): Delete, set c language directly.
    	* gdb.base/printcmds.exp (set_lang_c): Delete, set c language directly.
    	Simplify, early exit if runto_main fails.
    	* gdb.fortran/exprs.exp: load_lib fortran.exp.
    	(set_lang_fortran): Moved to lib/fortran.exp.
    	* gdb.fortran/types.exp: load_lib fortran.exp.
    	(set_lang_fortran): Moved to lib/fortran.exp.
    	* gdb.java/jmisc.exp (set_lang_java): Moved to lib/java.exp.
    	* gdb.java/jprint.exp (set_lang_java): Ditto.
    	* gdb.java/jv-exp.exp: load_lib java.exp.
    	If set_lang_java fails, issue a warning instead of failure to be
    	consistent with other set_lang_foo uses.
    	(set_lang_java): Moved to lib/java.exp.
    	* gdb.java/jv-print.exp (set_lang_java): Moved to lib/java.exp.
    	If set_lang_java fails, issue a warning instead of failure to be
    	consistent with other set_lang_foo uses.
    	* gdb.pascal/types.exp: load_lib pascal.exp.
    	(set_lang_pascal): Moved to lib/pascal.exp.
    	* lib/fortran.exp: New file.
    	* lib/java.exp (set_lang_java): New function.
    	* lib/pascal.exp (set_lang_pascal): New function.

commit 862e2ad21b37a4d019d6636b594c9a6dcc1f314e
Author: Pedro Alves <pedro@codesourcery.com>
Date:   Wed Aug 18 12:25:48 2010 +0000

    	PR corefile/8210
    
    	* linux-thread-db.c (add_thread_db_info): Skip glibc/BZ5983
    	workaround on core files.
    	(try_thread_db_load_1): Don't try enabling thread event reporting
    	on core files.
    	(thread_db_load): Allow thread_db on core files.
    	(attach_thread): Don't check thread signals on core files, nor try
    	really attaching to the thread, nor enabling thread event event
    	reporting.
    	(thread_db_detach): Don't try disabing thread event reporting or
    	removing thread event breakpoints when debugging a core file.
    	(find_new_threads_callback): Don't try enabling thread event
    	reporting on core files.
    	(thread_db_find_new_threads_2): Don't look for a stopped lwp when
    	debugging a core file.
    	(thread_db_find_new_threads): Don't update thread
    	cores (processors) when debugging a core (dump).

commit de97dcfa84c8d23d0c755988cc7676e4c14ed91f
Author: Pedro Alves <pedro@codesourcery.com>
Date:   Wed Aug 18 12:24:02 2010 +0000

    2010-08-18  Pedro Alves  <pedro@codesourcery.com>
    
    	PR corefile/8210
    
    	bfd/
    	* bfd-in2.h: Regenerate.
    	* corefile.c (bfd_core_file_pid): New.
    
    	* targets.c (BFD_JUMP_TABLE_CORE): Add NAME##_core_file_pid.
    	(struct bfd_target) <_core_file_pid>: New.
    
    	* libbfd-in.h (_bfd_nocore_core_file_pid): Declare.
    	* libbfd.c (_bfd_nocore_core_file_pid): New.
    
    	* elf-bfd.h (bfd_elf32_core_file_pid, bfd_elf64_core_file_pid):
    	Declare.
    	* elfcode.h (elf_core_file_pid): New define.
    	* elfcore.h (elf_core_file_pid): New function.
    
    	* elf.c (elfcore_make_pid): Rewrite.
    	(elfcore_grok_prstatus): Only set core_pid if not set yet.
    	(elfcore_grok_prstatus) [!HAVE_PRSTATUS_T_PR_WHO]: Fallback to
    	getting the lwpid from prstat.pr_pid.
    
    	* elf64-x86-64.c (elf64_x86_64_grok_prstatus): Write the LWPID to
    	elf_tdata's core_lwpid instead of to core_pid.
    	(elf64_x86_64_grok_psinfo): Extract the the main process's PID,
    	and store it in elf_tdata's core_pid field.
    	* elf32-i386.c (elf_i386_grok_prstatus): Write the LWPID to
    	elf_tdata's core_lwpid instead of to core_pid.
    	(elf_i386_grok_psinfo): Extract the the main process's PID, and
    	store it in elf_tdata's core_pid field.
    
    	* elf32-am33lin.c (elf32_am33lin_grok_prstatus): Write the LWPID
    	to elf_tdata's core_lwpid instead of to core_pid.
    	* elf32-arm.c (elf32_arm_nabi_grok_prstatus): Write the LWPID to
    	elf_tdata's core_lwpid instead of to core_pid.
    	* elf32-cris.c (cris_elf_grok_prstatus): Write the LWPID to
    	elf_tdata's core_lwpid instead of to core_pid.
    	* elf32-frv.c (elf32_frv_grok_prstatus): Write the LWPID to
    	elf_tdata's core_lwpid instead of to core_pid.
    	* elf32-hppa.c (elf32_hppa_grok_prstatus): Write the LWPID to
    	elf_tdata's core_lwpid instead of to core_pid.
    	* elf32-mips.c (elf32_mips_grok_prstatus): Write the LWPID to
    	elf_tdata's core_lwpid instead of to core_pid.
    	* elf32-ppc.c (ppc_elf_grok_prstatus): Write the LWPID to
    	elf_tdata's core_lwpid instead of to core_pid.
    	* elf32-s390.c (elf_s390_grok_prstatus): Write the LWPID to
    	elf_tdata's core_lwpid instead of to core_pid.
    	* elf32-score.c (s3_bfd_score_elf_grok_prstatus): Write the LWPID
    	to elf_tdata's core_lwpid instead of to core_pid.
    	* elf32-score7.c (s7_bfd_score_elf_grok_prstatus): Write the LWPID
    	to elf_tdata's core_lwpid instead of to core_pid.
    	* elf32-sh.c (elf32_shlin_grok_prstatus): Write the LWPID to
    	elf_tdata's core_lwpid instead of to core_pid.
    	* elf32-xtensa.c (elf_xtensa_grok_prstatus): Write the LWPID to
    	elf_tdata's core_lwpid instead of to core_pid.
    	* elf64-hppa.c (elf64_hppa_grok_prstatus): Write the LWPID to
    	elf_tdata's core_lwpid instead of to core_pid.
    	* elf64-mips.c (elf64_mips_grok_prstatus): Write the LWPID to
    	elf_tdata's core_lwpid instead of to core_pid.
    	* elf64-ppc.c (ppc64_elf_grok_prstatus): Write the LWPID to
    	elf_tdata's core_lwpid instead of to core_pid.
    	* elfn32-mips.c (elf32_mips_grok_prstatus): Write the LWPID to
    	elf_tdata's core_lwpid instead of to core_pid.
    
    	* plugin.c (bfd_plugin_core_file_pid): New function.
    	* aout-target.h (MY_core_file_pid): Define.
    	* aout-tic30.c (MY_core_file_pid, MY_core_file_p): New defines.
    	* coff-rs6000.c (coff_core_file_pid): New define.
    	(rs6000coff_vec, pmac_xcoff_vec): Use BFD_JUMP_TABLE_CORE.
    	* coff64-rs6000.c (coff_core_file_pid): New define.
    	(rs6000coff64_vec): Use BFD_JUMP_TABLE_CORE.
    	(xcoff64_core_file_pid): New define.
    	(aix5coff64_vec): Use BFD_JUMP_TABLE_CORE.
    	* mach-o-target.c (bfd_mach_o_core_file_pid): New define.
    	* aix386-core.c (aix386_core_file_pid): New define.
    	* hppabsd-core.c (hppabsd_core_core_file_pid): New define.
    	* hpux-core.c (hpux_core_core_file_pid): New define.
    	* irix-core.c (irix_core_core_file_pid): New define.
    	* lynx-core.c (lynx_core_file_pid): New define.
    	* osf-core.c (osf_core_core_file_pid): New define.
    	* ptrace-core.c (ptrace_unix_core_file_pid): New define.
    	* sco5-core.c (sco5_core_file_pid): New define.
    	* xcoff-target.h (coff_core_file_pid): New define.
    	* netbsd-core.c (netbsd_core_core_file_pid): New define.
    
    gdb/
    2010-08-18  Pedro Alves  <pedro@codesourcery.com>
    
    	PR corefile/8210
    
    	gdb/
    	* corelow.c (add_to_thread_list): Don't use
    	gdbarch_core_reg_section_encodes_pid.  Use bfd_core_file_pid.
    	(get_core_register_section): Don't use
    	gdbarch_core_reg_section_encodes_pid.
    
    	* gdbarch.sh (core_reg_section_encodes_pid): Delete.
    	* gdbarch.h, gdbarch.c: Regenerate.
    	* amd64-sol2-tdep.c (amd64_sol2_init_abi): Don't set
    	gdbarch_core_reg_section_encodes_pid.
    	* i386-sol2-tdep.c (i386_sol2_init_abi): Ditto.
    	* sparc-sol2-tdep.c (sparc32_sol2_init_abi): Ditto.
    	* sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Ditto.

commit 5815370ed6ef1ccff78ee7fea7e25976b5b1147b
Author: qiyao <qiyao>
Date:   Wed Aug 18 03:20:46 2010 +0000

    Forget to check in ChangeLog in my previous commit.
    http://sourceware.org/ml/gdb-cvs/2010-08/msg00098.html

commit f0d798c8797e9ed98c1174956a12ae8aa2b82012
Author: qiyao <qiyao>
Date:   Wed Aug 18 03:16:05 2010 +0000

    In order to fix a checkin mistake in dw2-ref-missing-frame-func.c:r1.2,
    revert it back, and re-apply the correct patch again.
    
    2010-08-18  Yao Qi  <yao@codesourcery.com
    
    	* gdb.dwarf2/dw2-ref-missing-frame-func.c: Add .p2align 4 for labels
    	func_nofb_start and func_loopfb_start, so that address of functions
    	is equal to these labels on Thumb.

commit 86c443d037a6c35e79dd23b3313e1eaa9b15648f
Author: qiyao <qiyao>
Date:   Wed Aug 18 03:06:38 2010 +0000

    revert back to previous revision

commit c24602fe78164c370b84486dfcbe7ebb45f8764b
Author: qiyao <qiyao>
Date:   Wed Aug 18 02:44:01 2010 +0000

    2010-08-18  Yao Qi  <yao@codesourcery.com
    
    	* gdb.dwarf2/dw2-ref-missing-frame-func.c: Add .p2align 4 for labels
    	func_nofb_start and func_loopfb_start, so that address of functions
    	is equal to these labels on Thumb.

commit c82ada6043ef5bb264e314a3e140da8ac7210156
Author: qiyao <qiyao>
Date:   Wed Aug 18 02:30:07 2010 +0000

    2010-08-18  Yao Qi  <yao@codesourcery.com>
    
    	* gdb.gdb/selftest.exp (do_steps_and_nexts): Update test case
    	to reflect latest c source file.

commit d8ab61e63785e8c999a8ca6f5b1f7e4de155cbff
Author: qiyao <qiyao>
Date:   Wed Aug 18 02:24:47 2010 +0000

    2010-08-18  Yao Qi  <yao@codesourcery.com>
    
    	* MAINTAINERS : Add myself under Write After Approval.

commit f6759e82e98662d33afdb5b339f5ebf55ee64e69
Author: gdbadmin <gdbadmin@sourceware.org>
Date:   Wed Aug 18 00:00:34 2010 +0000

    *** empty log message ***

commit d945166c000a50d6765b5fdd4d2d0e780322bdac
Author: Alan Modra <amodra@bigpond.net.au>
Date:   Wed Aug 18 00:00:06 2010 +0000

    daily update

commit 68f4600ddb7a288e31df06a3da5de7aa866f920d
Author: Tom Tromey <tromey@redhat.com>
Date:   Tue Aug 17 21:34:12 2010 +0000

    	* NEWS: Mention template parameter support.

commit c21afd50919a0a082e44083fca4693402b6194f5
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Tue Aug 17 21:31:12 2010 +0000

    gdb/testsuite/
    	* gdb.cp/infcall-dlopen.exp: New file.
    	* gdb.cp/infcall-dlopen.cc: New file.
    	* gdb.cp/infcall-dlopen-lib.cc: New file.

commit f8b3620a572c7afb73fd46e49d06540b0e8db597
Author: Pedro Alves <pedro@codesourcery.com>
Date:   Tue Aug 17 21:12:32 2010 +0000

    	* breakpoint.c (decref_bp_location): Assert the reference count is
    	sane.

commit 043822a615f37ecb759463136ee557720c4a9fac
Author: Pedro Alves <pedro@codesourcery.com>
Date:   Tue Aug 17 20:59:01 2010 +0000

    gdb/
    2010-08-17  Pedro Alves  <pedro@codesourcery.com>
    
    	PR breakpoints/11371
    
    	* breakpoint.c (breakpoint_init_inferior): Decrement the
    	location's reference count instead of deleting right away.
    	(bpstat_free): Decrement the location's reference count.  Make
    	static.
    	(bpstat_copy): Increment the location's reference count.
    	(bpstat_find_breakpoint): Adjust.
    	(bpstat_num): Adjust.
    	(print_it_typical): Adjust.  Use the breakpoint pointer in the
    	bpstat instead of the location's owner.
    	(bpstat_alloc): Remove const qualifier from the 'bl' parameter.
    	Adjust to record the location's owner in the bpstat.
    	(watchpoint_check): Use the breakpoint pointer in the bpstat
    	instead of the location's owner.
    	(bpstat_check_breakpoint_conditions): Don't handle
    	bp_watchpoint_scope here.  Use the breakpoint pointer in the
    	bpstat instead of the location's owner.
    	(bpstat_stop_status): Defer inferior function calls to after
    	building the bpstat list.  Handle bp_watchpoint_scope here.  Use
    	the breakpoint pointer in the bpstat instead of the location's
    	owner.
    	(bpstat_what): Use the breakpoint pointer in the bpstat instead of
    	the location's owner.
    	(free_bp_location): Don't walk bpstats clearing locations.
    	(incref_bp_location): New.
    	(decref_bp_location): New.
    	(breakpoint_auto_delete): Use the breakpoint pointer in the bpstat
    	instead of the location's owner.
    	(update_global_location_list): Clear the location's owner, and
    	decrement the location's reference count instead of deleting it
    	right away.
    	(breakpoint_retire_moribund): Decrement the location's reference
    	count instead of deleting it right away.
    	(bpstat_remove_bp_location): Delete.
    	(bpstat_remove_breakpoint): New.
    	(bpstat_remove_bp_location_callback): Delete.
    	(bpstat_remove_breakpoint_callback): New.
    	(delete_breakpoint): Iterate over all threads' stop_bpstat's
    	clearing references to the breakpoint that is being deleted.
    
    	* breakpoint.h (struct bp_location) <refc>: New field.
    	<owner>: Update comments.
    	(bpstat_free): Delete declaration.
    	(struct bpstats): Change the type of the breakpoint_at field to
    	struct breakpoint point, from struct bp_location pointer.  Add new
    	field bp_location_at.
    
    gdb/testsuite/
    2010-08-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
    	    Pedro Alves  <pedro@codesourcery.com>
    
    	PR breakpoints/11371
    
    	* gdb.base/watch-cond-infcall.exp: New file.
    	* gdb.base/watch-cond-infcall.c: New file.

commit 6617d8b04045dfc090242a5e4c3e486664ce5aa9
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Tue Aug 17 20:37:26 2010 +0000

    Replace Eb with Mb on prefetch and prefetchw.
    
    2010-08-17  H.J. Lu  <hongjiu.lu@intel.com>
    
    	* i386-dis.c (reg_table): Replace Eb with Mb on prefetch and
    	prefetchw.

commit ad5ca54c4186f7b7e9d72aa3c3663e43e7fc0abb
Author: Alan Modra <amodra@bigpond.net.au>
Date:   Tue Aug 17 00:00:05 2010 +0000

    daily update

commit f868031edee5a5f511c6708abdced9a9292f27b9
Author: gdbadmin <gdbadmin@sourceware.org>
Date:   Tue Aug 17 00:00:03 2010 +0000

    *** empty log message ***

commit 1e88746f6532ebfdd77f59314cef8c1dbcf94130
Author: Tom Tromey <tromey@redhat.com>
Date:   Mon Aug 16 21:19:29 2010 +0000

    	* NEWS: Fix typo.

commit 9076507f0fe9994752285c246445364c2dd3cb81
Author: Tom Tromey <tromey@redhat.com>
Date:   Mon Aug 16 21:15:46 2010 +0000

    	* NEWS: Mention watch -location.

commit e265b24b8ef087a3440f8cdf1dd029a3d7000316
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Mon Aug 16 19:53:04 2010 +0000

    gdb/
    	* breakpoint.c (update_watchpoint): Add source empty line.  Prefer
    	EXP_STRING_REPARSE to EXP_STRING.
    	(watch_command_1): Set also EXP_STRING_REPARSE.
    	(delete_breakpoint): Free also EXP_STRING_REPARSE.
    	* breakpoint.h (struct breakpoint): New field exp_string_reparse.
    	Update comment for exp_string.

commit 3e06230a605ff3aa18120d86554fd9e2d679632a
Author: Tom Tromey <tromey@redhat.com>
Date:   Mon Aug 16 19:19:20 2010 +0000

    gdb
    	* value.c (release_value): Clear 'next' pointer.
    	* breakpoint.c (watch_command_1): Add 'just_location' argument.
    	(watch_command_wrapper): Update.
    	(watch_maybe_just_location): New function.
    	(watch_command): Update.
    	(rwatch_command_wrapper): Update.
    	(rwatch_command): Update.
    	(awatch_command_wrapper): Update.
    	(awatch_command): Update.
    	(check_for_argument): New function.
    	(_initialize_breakpoint): Update help text.
    gdb/testsuite
    	* gdb.base/help.exp: Update.
    	* gdb.base/watchpoint.exp (test_watchpoint_and_breakpoint): Delete
    	watchpoint.
    	(test_watch_location): New proc.
    	(test_watchpoint_in_big_blob): Delete watchpoint.
    	* gdb.base/watchpoint.c (func5): New function.
    	(main): Call it.
    gdb/doc
    	* gdb.texinfo (Set Watchpoints): Document -location option.

commit ca5a787de620fa149a6a5f2f161b6ea20bd74f4d
Author: Doug Evans <dje@google.com>
Date:   Mon Aug 16 18:01:40 2010 +0000

    	* gdb.python/python.exp: Fix syntax in "post event insertion" test.

commit 70f9e111de897927cdb841b688771a4296dd151d
Author: gdbadmin <gdbadmin@sourceware.org>
Date:   Mon Aug 16 00:00:33 2010 +0000

    *** empty log message ***

commit 27e2f81dc801e4c94b36a7160619350fc90fcee2
Author: Alan Modra <amodra@bigpond.net.au>
Date:   Mon Aug 16 00:00:05 2010 +0000

    daily update

commit d24e2b1c50748d55a66b46d0b910fd751ba93cd9
Author: gdbadmin <gdbadmin@sourceware.org>
Date:   Sun Aug 15 00:00:33 2010 +0000

    *** empty log message ***

commit 6144e1ba37bc8837d4cbebac933e1af8ab7acde7
Author: Alan Modra <amodra@bigpond.net.au>
Date:   Sun Aug 15 00:00:05 2010 +0000

    daily update

commit 8c14d1ec5627bf3ad1f77ffc925c3d2a676d34f1
Author: Ulrich Weigand <uweigand@de.ibm.com>
Date:   Sat Aug 14 00:45:38 2010 +0000

    	* arm-tdep.c (arm_push_dummy_call): Handle pointers to
    	typedef'ed function types correctly.

commit 8e890f62d09f3578a01972ab3ce630d89c4026fb
Author: Alan Modra <amodra@bigpond.net.au>
Date:   Sat Aug 14 00:00:05 2010 +0000

    daily update

commit 9598cd35f8e1939aadc6b1e4b0bda5b3a59f7864
Author: gdbadmin <gdbadmin@sourceware.org>
Date:   Sat Aug 14 00:00:04 2010 +0000

    *** empty log message ***

commit 42fca9ebb9b268c5eae978c2d4a5ec4c04911aba
Author: Tom Tromey <tromey@redhat.com>
Date:   Fri Aug 13 20:50:45 2010 +0000

    	* python/python-internal.h (gdbpy_get_hook_function): Don't
    	declare.

commit 49dc52d54d94ddb7ef479f2c1a97544287d92b72
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Fri Aug 13 20:50:25 2010 +0000

    Check if .got.plt section is discarded before using it.
    
    bfd/
    
    2010-08-13  H.J. Lu  <hongjiu.lu@intel.com>
    
    	PR ld/11913
    	* elf32-i386.c (elf_i386_finish_dynamic_sections): Check if
    	 .got.plt section is discarded.
    	 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_sections): Likewise.
    
    ld/testsuite/
    
    2010-08-13  H.J. Lu  <hongjiu.lu@intel.com>
    
    	PR ld/11913
    	* ld-i386/discarded1.d: New.
    	* ld-i386/discarded1.s: Likewise.
    	* ld-i386/discarded1.t: Likewise.
    	* ld-x86-64/discarded1.d: Likewise.
    	* ld-x86-64/discarded1.s: Likewise.
    	* ld-x86-64/discarded1.t: Likewise.
    
    	* ld-i386/i386.exp: Run discarded1.
    	* ld-x86-64/x86-64.exp: Likewise.

commit eb5bb75603df50cbfd31651cdebe64064d514153
Author: Doug Evans <dje@google.com>
Date:   Fri Aug 13 20:39:09 2010 +0000

    	* gdb.texinfo (.debug_gdb_scripts section): Fix typo.

commit 589b38aaab27482977d59f190db97b6e60065114
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Fri Aug 13 17:35:36 2010 +0000

    gdb/
    	* cli-logging.c (logging_overwrite, logging_redirect): Make them
    	static.

commit 2c009df0760d9d081de7dac27412a2a5007e27d8
Author: kwerner <kwerner>
Date:   Fri Aug 13 16:19:47 2010 +0000

    gdb:
    * python/python.c (gdbpy_solib_name): Remove the const qualifier of
    the format strings to be compatible with Python 2.4.

commit b0ee4b352cead35cb4fd8f528000dbcdb502d303
Author: Vladimir Prus <vladimir@codesourcery.com>
Date:   Fri Aug 13 13:22:39 2010 +0000

    	Easier and more stubborn MI memory read commands.
    
    	* mi/mi-cmds.c (mi_cmds): Register data-read-memory-bytes
    	and data-write-memory-bytes.
    	* mi/mi-cmds.h (mi_cmd_data_read_memory_bytes)
    	(mi_cmd_data_write_memory_bytes): New.
    	* mi/mi-main.c (mi_cmd_data_read_memory): Use regular target_read.
    	(mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory_bytes):
    	New.
    	(mi_cmd_list_features): Add "data-read-memory-bytes" feature.
    	* target.c (target_read_until_error): Remove.
    	(read_whatever_is_readable, free_memory_read_result_vector)
    	(read_memory_robust): New.
    	* target.h (target_read_until_error): Remove.
    	(struct memory_read_result, free_memory_read_result_vector)
    	(read_memory_robust): New.

commit a8450836d6b035eba242772b905fab66551b2df9
Author: Nathan Sidwell <nathan@codesourcery.com>
Date:   Fri Aug 13 13:03:44 2010 +0000

    	bfd/
    	* elf32-m69k.c (elf32_m68k_print_private_bfd_data): Detect EMAC_B
    	variant.
    
    	binutils/
    	* readelf.c (get_machine_flags): Detect CF ISA C and EMAC_B
    	variants.

commit 7b3fbd65ce43cb0b04b247c1f9628cec61f31d85
Author: Nick Clifton <nickc@redhat.com>
Date:   Fri Aug 13 11:36:10 2010 +0000

            * argv.c (expandargv): Limit the number of times that response
            files are opened in order to prevent infinite recursion.

commit a8dd3249418b044de6e8b1b791092aff4381b31b
Author: Hui Zhu <teawater@gmail.com>
Date:   Fri Aug 13 03:14:01 2010 +0000

    2010-08-13  Hui Zhu  <teawater@gmail.com>
    
    	* dwarf2read.c (load_partial_comp_unit): Initialize free_cu_cleanup.
    	(read_comp_unit): Initialize back_to.

commit 39f47d3a439f6e0255b1c8007a0573cc72ac3471
Author: gdbadmin <gdbadmin@sourceware.org>
Date:   Fri Aug 13 00:00:33 2010 +0000

    *** empty log message ***

commit 657d609272c806417ea6f583b882d9825830da53
Author: Alan Modra <amodra@bigpond.net.au>
Date:   Fri Aug 13 00:00:05 2010 +0000

    daily update

commit a6fd945df789f31425f55b71c92d7a9e84c74bbd
Author: Pedro Alves <pedro@codesourcery.com>
Date:   Thu Aug 12 19:55:38 2010 +0000

    2010-08-12  Daniel Jacobowitz  <dan@codesourcery.com>
    	    Pedro Alves  <pedro@codesourcery.com>
    
    	* dwarf2read.c: Include "c-lang.h" and "valprint.h".
    	(struct dwarf2_per_objfile) <reading_partial_symbols>: New field.
    	(struct partial_die_info) <has_template_arguments>: New field.
    	<num_attrs>: Change type to unsigned char.
    	<building_fullname>: New field.
    	(dwarf2_build_psymtabs_hard): Set reading_partial_symbols.  Only
    	allocate a CU if we don't have one already.  Add a cleanup for the
    	CU.
    	(partial_die_full_name): Handle template arguments not in
    	DW_AT_name.
    	(dwarf2_psymtab_to_symtab): Clear reading_partial_symbols.
    	(load_full_comp_unit): Only allocate a CU if we don't have one
    	already.
    	(do_ui_file_peek_last): New.
    	(dwarf2_compute_name): Handle template parameters not in
    	DW_AT_name.
    	(read_comp_unit): Read and free abbrevs if not read yet.
    	(load_partial_dies): Handle template arguments not in DW_AT_name.
    	(find_partial_die): If we have a CU, but no a partial dies yet,
    	also read in the CU.
    	(dwarf2_const_value_attr): New, abstracted out from
    	dwarf2_const_value.
    	(dwarf2_const_value, dwarf2_const_value_data): Adjust to use
    	dwarf2_const_value_attr.
    	(determine_prefix): Detect and break loops created by RCVT's debug
    	info.
    	(maybe_queue_comp_unit): Bail out early if reading partial
    	symbols.
    	(follow_die_offset): Load full CU if we have no dies.
    	* dwarf2loc.c (dwarf2_evaluate_loc_desc): Make public.
    	* dwarf2loc.h (dwarf2_evaluate_loc_desc): Declare.

commit 4a50992f02873a9f8350be9f69f6d93b00109594
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Thu Aug 12 17:53:17 2010 +0000

    Mention Makefile.in in ChangeLog.

commit fc65b379db56751361debc759395a1bbeeace628
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Thu Aug 12 17:49:41 2010 +0000

    Disable -Werror on coff-tic4x.lo and coff-tic54x.lo.
    
    2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
    
    	PR binutils/11909
    	* Makefile.am (coff-tic4x.lo): New.  Disable -Werror.
    	(coff-tic54x.lo): Likewise.

commit 81442b75d06e89b0ebd4aefc7c7bc4c7b60876b0
Author: Nick Clifton <nickc@redhat.com>
Date:   Thu Aug 12 16:23:30 2010 +0000

            PR ld/11843
            * elflink.c (compute_bucket_count): Avoid futile long searches for
            the best bucket size.

commit eb33c8040b5544daf145a10a4aff969ef71c4642
Author: Pedro Alves <pedro@codesourcery.com>
Date:   Thu Aug 12 15:16:12 2010 +0000

    Really commit server.c bits of 2010-08-09's change...

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

Summary of changes:
 bfd/ChangeLog                                      |  116 ++++
 bfd/Makefile.am                                    |   16 +
 bfd/Makefile.in                                    |   16 +
 bfd/aix386-core.c                                  |    2 +
 bfd/aout-target.h                                  |    3 +
 bfd/aout-tic30.c                                   |    3 +
 bfd/bfd-in2.h                                      |   10 +-
 bfd/coff-rs6000.c                                  |   12 +-
 bfd/coff64-rs6000.c                                |   14 +-
 bfd/corefile.c                                     |   25 +
 bfd/elf-bfd.h                                      |    4 +
 bfd/elf.c                                          |   22 +-
 bfd/elf32-am33lin.c                                |    2 +-
 bfd/elf32-arm.c                                    |    2 +-
 bfd/elf32-cris.c                                   |    4 +-
 bfd/elf32-frv.c                                    |    2 +-
 bfd/elf32-hppa.c                                   |    2 +-
 bfd/elf32-i386.c                                   |   13 +-
 bfd/elf32-m68k.c                                   |    3 +
 bfd/elf32-mips.c                                   |    2 +-
 bfd/elf32-ppc.c                                    |    2 +-
 bfd/elf32-s390.c                                   |    2 +-
 bfd/elf32-score.c                                  |    2 +-
 bfd/elf32-score7.c                                 |    2 +-
 bfd/elf32-sh.c                                     |    2 +-
 bfd/elf32-xtensa.c                                 |    2 +-
 bfd/elf64-hppa.c                                   |    2 +-
 bfd/elf64-mips.c                                   |    2 +-
 bfd/elf64-ppc.c                                    |    2 +-
 bfd/elf64-x86-64.c                                 |   11 +-
 bfd/elfcode.h                                      |    1 +
 bfd/elfcore.h                                      |    6 +
 bfd/elflink.c                                      |    6 +
 bfd/elfn32-mips.c                                  |    2 +-
 bfd/hppabsd-core.c                                 |    1 +
 bfd/hpux-core.c                                    |    1 +
 bfd/irix-core.c                                    |    1 +
 bfd/libbfd-in.h                                    |    2 +
 bfd/libbfd.c                                       |   10 +
 bfd/libbfd.h                                       |    2 +
 bfd/lynx-core.c                                    |    1 +
 bfd/mach-o-target.c                                |    1 +
 bfd/merge.c                                        |    4 +
 bfd/netbsd-core.c                                  |    1 +
 bfd/osf-core.c                                     |    1 +
 bfd/plugin.c                                       |    7 +
 bfd/ptrace-core.c                                  |    1 +
 bfd/sco5-core.c                                    |    1 +
 bfd/targets.c                                      |    4 +-
 bfd/trad-core.c                                    |    1 +
 bfd/version.h                                      |    2 +-
 bfd/xcoff-target.h                                 |    1 +
 gdb/ChangeLog                                      |  283 +++++++++
 gdb/MAINTAINERS                                    |    1 +
 gdb/Makefile.in                                    |    2 +
 gdb/NEWS                                           |   68 +++
 gdb/amd64-sol2-tdep.c                              |    4 -
 gdb/arm-tdep.c                                     |    2 +-
 gdb/avr-tdep.c                                     |    2 +-
 gdb/breakpoint.c                                   |  354 ++++++++----
 gdb/breakpoint.h                                   |   53 ++-
 gdb/c-exp.y                                        |   39 +--
 gdb/cli/cli-logging.c                              |    4 +-
 gdb/completer.c                                    |   11 +-
 gdb/configure                                      |    1 +
 gdb/configure.ac                                   |    1 +
 gdb/corelow.c                                      |   38 +--
 gdb/darwin-nat.c                                   |    2 +-
 gdb/doc/ChangeLog                                  |   17 +
 gdb/doc/gdb.texinfo                                |  157 +++++-
 gdb/dwarf2loc.c                                    |    2 +-
 gdb/dwarf2loc.h                                    |   10 +
 gdb/dwarf2read.c                                   |  604 ++++++++++++++++----
 gdb/gdb_assert.h                                   |   13 +-
 gdb/gdbarch.c                                      |   23 -
 gdb/gdbarch.h                                      |    9 -
 gdb/gdbarch.sh                                     |    7 -
 gdb/gdbserver/server.c                             |   20 +-
 gdb/gdbtypes.c                                     |   20 +-
 gdb/i386-sol2-tdep.c                               |    4 -
 gdb/jv-exp.y                                       |   33 +-
 gdb/linux-thread-db.c                              |   85 ++-
 gdb/m32c-tdep.c                                    |    8 +-
 gdb/macroexp.c                                     |    4 +-
 gdb/mep-tdep.c                                     |   15 +-
 gdb/mi/mi-cmds.c                                   |    2 +
 gdb/mi/mi-cmds.h                                   |    2 +
 gdb/mi/mi-main.c                                   |  127 ++++-
 gdb/objc-exp.y                                     |   22 +-
 gdb/objfiles.c                                     |    6 +-
 gdb/p-exp.y                                        |   32 +-
 gdb/parse.c                                        |   83 +++-
 gdb/parser-defs.h                                  |    6 +
 gdb/prologue-value.c                               |    2 +-
 gdb/psymtab.c                                      |    2 +-
 gdb/python/python-internal.h                       |    1 -
 gdb/python/python.c                                |    5 +-
 gdb/record.c                                       |    2 +-
 gdb/sparc-sol2-tdep.c                              |    4 -
 gdb/sparc64-sol2-tdep.c                            |    4 -
 gdb/symtab.c                                       |    2 +-
 gdb/target.c                                       |  239 ++++++--
 gdb/target.h                                       |   21 +-
 gdb/testsuite/ChangeLog                            |  109 ++++
 gdb/testsuite/gdb.arch/vsx-regs.exp                |   20 +-
 gdb/testsuite/gdb.base/call-ar-st.exp              |   24 -
 gdb/testsuite/gdb.base/callfuncs.exp               |   27 +-
 gdb/testsuite/gdb.base/completion.exp              |   19 +-
 gdb/testsuite/gdb.base/default.exp                 |   57 ++-
 gdb/testsuite/gdb.base/help.exp                    |    2 +-
 gdb/testsuite/gdb.base/printcmds.exp               |  120 ++--
 .../python-sl.c => gdb.base/watch-cond-infcall.c}  |   15 +-
 gdb/testsuite/gdb.base/watch-cond-infcall.exp      |   61 ++
 gdb/testsuite/gdb.base/watchpoint.c                |   13 +
 gdb/testsuite/gdb.base/watchpoint.exp              |   19 +
 .../python-sl.c => gdb.cp/infcall-dlopen-lib.cc}   |   10 -
 .../python-sl.c => gdb.cp/infcall-dlopen.cc}       |   17 +-
 gdb/testsuite/gdb.cp/infcall-dlopen.exp            |   46 ++
 .../gdb.dwarf2/dw2-ref-missing-frame-func.c        |    2 +
 gdb/testsuite/gdb.fortran/exprs.exp                |   20 +-
 gdb/testsuite/gdb.fortran/types.exp                |   20 +-
 gdb/testsuite/gdb.gdb/selftest.exp                 |    8 +-
 gdb/testsuite/gdb.java/jmisc.exp                   |   19 +-
 gdb/testsuite/gdb.java/jprint.exp                  |   19 +-
 gdb/testsuite/gdb.java/jv-exp.exp                  |   19 +-
 gdb/testsuite/gdb.java/jv-print.exp                |   43 +-
 gdb/testsuite/gdb.objc/print.exp                   |   68 +++
 gdb/testsuite/gdb.pascal/print.exp                 |   64 ++
 gdb/testsuite/gdb.pascal/types.exp                 |   18 +-
 gdb/testsuite/gdb.python/Makefile.in               |    7 +-
 .../gdb.python/{python-sl.c => py-shared-sl.c}     |    0
 gdb/testsuite/gdb.python/{python.c => py-shared.c} |    2 +-
 gdb/testsuite/gdb.python/py-shared.exp             |   77 +++
 .../gdb.python/{python-sl.c => python-1.c}         |    0
 gdb/testsuite/gdb.python/python.c                  |    2 +-
 gdb/testsuite/gdb.python/python.exp                |   27 +-
 gdb/testsuite/lib/fortran.exp                      |   30 +
 gdb/testsuite/lib/java.exp                         |   14 +
 gdb/testsuite/lib/objc.exp                         |   30 +
 gdb/testsuite/lib/pascal.exp                       |   13 +
 gdb/value.c                                        |    4 +-
 gdb/varobj.c                                       |    8 +-
 gdb/version.in                                     |    2 +-
 gdb/xtensa-tdep.c                                  |    2 +-
 libiberty/ChangeLog                                |    5 +
 libiberty/argv.c                                   |   11 +-
 opcodes/ChangeLog                                  |    5 +
 opcodes/i386-dis.c                                 |    4 +-
 148 files changed, 2978 insertions(+), 941 deletions(-)
 copy gdb/testsuite/{gdb.python/python-sl.c => gdb.base/watch-cond-infcall.c} (84%)
 create mode 100644 gdb/testsuite/gdb.base/watch-cond-infcall.exp
 copy gdb/testsuite/{gdb.python/python-sl.c => gdb.cp/infcall-dlopen-lib.cc} (92%)
 copy gdb/testsuite/{gdb.python/python-sl.c => gdb.cp/infcall-dlopen.cc} (77%)
 create mode 100644 gdb/testsuite/gdb.cp/infcall-dlopen.exp
 create mode 100644 gdb/testsuite/gdb.objc/print.exp
 create mode 100644 gdb/testsuite/gdb.pascal/print.exp
 copy gdb/testsuite/gdb.python/{python-sl.c => py-shared-sl.c} (100%)
 copy gdb/testsuite/gdb.python/{python.c => py-shared.c} (96%)
 create mode 100644 gdb/testsuite/gdb.python/py-shared.exp
 rename gdb/testsuite/gdb.python/{python-sl.c => python-1.c} (100%)
 create mode 100644 gdb/testsuite/lib/fortran.exp
 create mode 100644 gdb/testsuite/lib/objc.exp

First 500 lines of diff:
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 528fa3c..9a52165 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,119 @@
+2010-08-20  Nick Clifton  <nickc@redhat.com>
+
+	* merge.c (sec_merge_emit): Do not zero pad sections that do not
+	have an alignment.
+
+2010-08-18  Pedro Alves  <pedro@codesourcery.com>
+
+	PR corefile/8210
+
+	* bfd-in2.h: Regenerate.
+	* corefile.c (bfd_core_file_pid): New.
+
+	* targets.c (BFD_JUMP_TABLE_CORE): Add NAME##_core_file_pid.
+	(struct bfd_target) <_core_file_pid>: New.
+
+	* libbfd-in.h (_bfd_nocore_core_file_pid): Declare.
+	* libbfd.c (_bfd_nocore_core_file_pid): New.
+
+	* elf-bfd.h (bfd_elf32_core_file_pid, bfd_elf64_core_file_pid):
+	Declare.
+	* elfcode.h (elf_core_file_pid): New define.
+	* elfcore.h (elf_core_file_pid): New function.
+
+	* elf.c (elfcore_make_pid): Rewrite.
+	(elfcore_grok_prstatus): Only set core_pid if not set yet.
+	(elfcore_grok_prstatus) [!HAVE_PRSTATUS_T_PR_WHO]: Fallback to
+	getting the lwpid from prstat.pr_pid.
+
+	* elf64-x86-64.c (elf64_x86_64_grok_prstatus): Write the LWPID to
+	elf_tdata's core_lwpid instead of to core_pid.
+	(elf64_x86_64_grok_psinfo): Extract the the main process's PID,
+	and store it in elf_tdata's core_pid field.
+	* elf32-i386.c (elf_i386_grok_prstatus): Write the LWPID to
+	elf_tdata's core_lwpid instead of to core_pid.
+	(elf_i386_grok_psinfo): Extract the the main process's PID, and
+	store it in elf_tdata's core_pid field.
+
+	* elf32-am33lin.c (elf32_am33lin_grok_prstatus): Write the LWPID
+	to elf_tdata's core_lwpid instead of to core_pid.
+	* elf32-arm.c (elf32_arm_nabi_grok_prstatus): Write the LWPID to
+	elf_tdata's core_lwpid instead of to core_pid.
+	* elf32-cris.c (cris_elf_grok_prstatus): Write the LWPID to
+	elf_tdata's core_lwpid instead of to core_pid.
+	* elf32-frv.c (elf32_frv_grok_prstatus): Write the LWPID to
+	elf_tdata's core_lwpid instead of to core_pid.
+	* elf32-hppa.c (elf32_hppa_grok_prstatus): Write the LWPID to
+	elf_tdata's core_lwpid instead of to core_pid.
+	* elf32-mips.c (elf32_mips_grok_prstatus): Write the LWPID to
+	elf_tdata's core_lwpid instead of to core_pid.
+	* elf32-ppc.c (ppc_elf_grok_prstatus): Write the LWPID to
+	elf_tdata's core_lwpid instead of to core_pid.
+	* elf32-s390.c (elf_s390_grok_prstatus): Write the LWPID to
+	elf_tdata's core_lwpid instead of to core_pid.
+	* elf32-score.c (s3_bfd_score_elf_grok_prstatus): Write the LWPID
+	to elf_tdata's core_lwpid instead of to core_pid.
+	* elf32-score7.c (s7_bfd_score_elf_grok_prstatus): Write the LWPID
+	to elf_tdata's core_lwpid instead of to core_pid.
+	* elf32-sh.c (elf32_shlin_grok_prstatus): Write the LWPID to
+	elf_tdata's core_lwpid instead of to core_pid.
+	* elf32-xtensa.c (elf_xtensa_grok_prstatus): Write the LWPID to
+	elf_tdata's core_lwpid instead of to core_pid.
+	* elf64-hppa.c (elf64_hppa_grok_prstatus): Write the LWPID to
+	elf_tdata's core_lwpid instead of to core_pid.
+	* elf64-mips.c (elf64_mips_grok_prstatus): Write the LWPID to
+	elf_tdata's core_lwpid instead of to core_pid.
+	* elf64-ppc.c (ppc64_elf_grok_prstatus): Write the LWPID to
+	elf_tdata's core_lwpid instead of to core_pid.
+	* elfn32-mips.c (elf32_mips_grok_prstatus): Write the LWPID to
+	elf_tdata's core_lwpid instead of to core_pid.
+	
+	* plugin.c (bfd_plugin_core_file_pid): New function.
+	* aout-target.h (MY_core_file_pid): Define.
+	* aout-tic30.c (MY_core_file_pid, MY_core_file_p): New defines.
+	* coff-rs6000.c (coff_core_file_pid): New define.
+	(rs6000coff_vec, pmac_xcoff_vec): Use BFD_JUMP_TABLE_CORE.
+	* coff64-rs6000.c (coff_core_file_pid): New define.
+	(rs6000coff64_vec): Use BFD_JUMP_TABLE_CORE.
+	(xcoff64_core_file_pid): New define.
+	(aix5coff64_vec): Use BFD_JUMP_TABLE_CORE.
+	* mach-o-target.c (bfd_mach_o_core_file_pid): New define.
+	* aix386-core.c (aix386_core_file_pid): New define.
+	* hppabsd-core.c (hppabsd_core_core_file_pid): New define.
+	* hpux-core.c (hpux_core_core_file_pid): New define.
+	* irix-core.c (irix_core_core_file_pid): New define.
+	* lynx-core.c (lynx_core_file_pid): New define.
+	* osf-core.c (osf_core_core_file_pid): New define.
+	* ptrace-core.c (ptrace_unix_core_file_pid): New define.
+	* sco5-core.c (sco5_core_file_pid): New define.
+	* xcoff-target.h (coff_core_file_pid): New define.
+	* netbsd-core.c (netbsd_core_core_file_pid): New define.
+
+2010-08-13  H.J. Lu  <hongjiu.lu@intel.com>
+
+	PR ld/11913
+	* elf32-i386.c (elf_i386_finish_dynamic_sections): Check if
+	 .got.plt section is discarded.
+	 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_sections): Likewise.
+
+2010-08-13  Nathan Sidwell  <nathan@codesourcery.com>
+
+	* elf32-m69k.c (elf32_m68k_print_private_bfd_data): Detect EMAC_B
+	variant.
+
+2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
+
+	PR binutils/11909
+	* Makefile.am (coff-tic4x.lo): New.  Disable -Werror.
+	(coff-tic54x.lo): Likewise.
+	* Makefile.in: Regenerated.
+
+2010-08-12  Todd Veldhuizen  <todd.veldhuizen@logicblox.com>
+
+	PR ld/11843
+	* elflink.c (compute_bucket_count): Avoid futile long searches for
+	the best bucket size.
+
 2010-08-09  Richard Henderson  <rth@redhat.com>
 
 	PR ld/11891
diff --git a/bfd/Makefile.am b/bfd/Makefile.am
index f2ee38f..03c5fc7 100644
--- a/bfd/Makefile.am
+++ b/bfd/Makefile.am
@@ -960,3 +960,19 @@ bfdver.h: $(srcdir)/version.h $(srcdir)/Makefile.in
 	    -e "s,@report_bugs_to@,$$report_bugs_to," \
 	    < $(srcdir)/version.h > $@; \
 	echo "$${bfd_soversion}" > libtool-soversion
+
+# Disable -Werror, if it has been enabled, since coffswap.h won't
+# compile with gcc 4.5 and above.
+coff-tic4x.lo: coff-tic4x.c
+@am__fastdepCC_TRUE@	$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< $(NO_WERROR)
+@am__fastdepCC_TRUE@	$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
+@AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@	$(LTCOMPILE) -c -o $@ $< $(NO_WERROR)
+
+coff-tic54x.lo: coff-tic54x.c
+@am__fastdepCC_TRUE@	$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< $(NO_WERROR)
+@am__fastdepCC_TRUE@	$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
+@AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@	$(LTCOMPILE) -c -o $@ $< $(NO_WERROR)
diff --git a/bfd/Makefile.in b/bfd/Makefile.in
index 7f67714..7d3dfab 100644
--- a/bfd/Makefile.in
+++ b/bfd/Makefile.in
@@ -1990,6 +1990,22 @@ bfdver.h: $(srcdir)/version.h $(srcdir)/Makefile.in
 	    < $(srcdir)/version.h > $@; \
 	echo "$${bfd_soversion}" > libtool-soversion
 
+# Disable -Werror, if it has been enabled, since coffswap.h won't
+# compile with gcc 4.5 and above.
+coff-tic4x.lo: coff-tic4x.c
+@am__fastdepCC_TRUE@	$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< $(NO_WERROR)
+@am__fastdepCC_TRUE@	$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
+@AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@	$(LTCOMPILE) -c -o $@ $< $(NO_WERROR)
+
+coff-tic54x.lo: coff-tic54x.c
+@am__fastdepCC_TRUE@	$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< $(NO_WERROR)
+@am__fastdepCC_TRUE@	$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
+@AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@	$(LTCOMPILE) -c -o $@ $< $(NO_WERROR)
+
 # Tell versions [3.59,3.63) of GNU make to not export all variables.
 # Otherwise a system limit (for SysV at least) may be exceeded.
 .NOEXPORT:
diff --git a/bfd/aix386-core.c b/bfd/aix386-core.c
index 4438e28..634d997 100644
--- a/bfd/aix386-core.c
+++ b/bfd/aix386-core.c
@@ -211,6 +211,8 @@ aix386_core_file_failing_signal (abfd)
 
 #define aix386_core_file_matches_executable_p generic_core_file_matches_executable_p
 
+#define aix386_core_file_pid _bfd_nocore_core_file_pid
+
 /* If somebody calls any byte-swapping routines, shoot them.  */
 
 static void
diff --git a/bfd/aout-target.h b/bfd/aout-target.h
index fe1d66e..5162494 100644
--- a/bfd/aout-target.h
+++ b/bfd/aout-target.h
@@ -401,6 +401,9 @@ MY_bfd_final_link (bfd *abfd, struct bfd_link_info *info)
 #define	MY_core_file_matches_executable_p	\
 				_bfd_nocore_core_file_matches_executable_p
 #endif
+#ifndef	MY_core_file_pid
+#define	MY_core_file_pid _bfd_nocore_core_file_pid
+#endif
 #ifndef	MY_core_file_p
 #define	MY_core_file_p		_bfd_dummy_target
 #endif
diff --git a/bfd/aout-tic30.c b/bfd/aout-tic30.c
index 05e1a80..5d5c7e2 100644
--- a/bfd/aout-tic30.c
+++ b/bfd/aout-tic30.c
@@ -859,6 +859,9 @@ tic30_aout_set_arch_mach (bfd *abfd,
 #define	MY_core_file_matches_executable_p	\
 				_bfd_nocore_core_file_matches_executable_p
 #endif
+#ifndef	MY_core_file_pid
+#define	MY_core_file_pid  		_bfd_nocore_core_file_pid
+#endif
 #ifndef	MY_core_file_p
 #define	MY_core_file_p			_bfd_dummy_target
 #endif
diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h
index 277d432..0e7b337 100644
--- a/bfd/bfd-in2.h
+++ b/bfd/bfd-in2.h
@@ -1977,8 +1977,8 @@ enum bfd_architecture
 #define bfd_mach_v850          1
 #define bfd_mach_v850e         'E'
 #define bfd_mach_v850e1        '1'
-#define bfd_mach_v850e2        0x4532   /* ('E'<<8|'2') */
-#define bfd_mach_v850e2v3      0x45325633 /* ('E'<<24|'2'<<16|'V'<<8|'3') */
+#define bfd_mach_v850e2        0x4532
+#define bfd_mach_v850e2v3      0x45325633
   bfd_arch_arc,       /* ARC Cores */
 #define bfd_mach_arc_5         5
 #define bfd_mach_arc_6         6
@@ -5412,6 +5412,8 @@ const char *bfd_core_file_failing_command (bfd *abfd);
 
 int bfd_core_file_failing_signal (bfd *abfd);
 
+int bfd_core_file_pid (bfd *abfd);
+
 bfd_boolean core_file_matches_executable_p
    (bfd *core_bfd, bfd *exec_bfd);
 
@@ -5608,11 +5610,13 @@ typedef struct bfd_target
 #define BFD_JUMP_TABLE_CORE(NAME) \
   NAME##_core_file_failing_command, \
   NAME##_core_file_failing_signal, \
-  NAME##_core_file_matches_executable_p
+  NAME##_core_file_matches_executable_p, \
+  NAME##_core_file_pid
 
   char *      (*_core_file_failing_command) (bfd *);
   int         (*_core_file_failing_signal) (bfd *);
   bfd_boolean (*_core_file_matches_executable_p) (bfd *, bfd *);
+  int         (*_core_file_pid) (bfd *);
 
   /* Archive entry points.  */
 #define BFD_JUMP_TABLE_ARCHIVE(NAME) \
diff --git a/bfd/coff-rs6000.c b/bfd/coff-rs6000.c
index 37d668c..7fb20d8 100644
--- a/bfd/coff-rs6000.c
+++ b/bfd/coff-rs6000.c
@@ -112,6 +112,8 @@ extern int rs6000coff_core_file_failing_signal
   rs6000coff_core_file_failing_signal
 #define coff_core_file_matches_executable_p \
   rs6000coff_core_file_matches_executable_p
+#define coff_core_file_pid \
+  _bfd_nocore_core_file_pid
 #else
 #define CORE_FILE_P _bfd_dummy_target
 #define coff_core_file_failing_command \
@@ -120,6 +122,8 @@ extern int rs6000coff_core_file_failing_signal
   _bfd_nocore_core_file_failing_signal
 #define coff_core_file_matches_executable_p \
   _bfd_nocore_core_file_matches_executable_p
+#define coff_core_file_pid \
+  _bfd_nocore_core_file_pid
 #endif
 #define coff_SWAP_sym_in _bfd_xcoff_swap_sym_in
 #define coff_SWAP_sym_out _bfd_xcoff_swap_sym_out
@@ -4182,9 +4186,7 @@ const bfd_target rs6000coff_vec =
     _bfd_generic_bfd_print_private_bfd_data,
 
     /* Core */
-    coff_core_file_failing_command,
-    coff_core_file_failing_signal,
-    coff_core_file_matches_executable_p,
+    BFD_JUMP_TABLE_CORE (coff),
 
     /* Archive */
     _bfd_xcoff_slurp_armap,
@@ -4437,9 +4439,7 @@ const bfd_target pmac_xcoff_vec =
     _bfd_generic_bfd_print_private_bfd_data,
 
     /* Core */
-    coff_core_file_failing_command,
-    coff_core_file_failing_signal,
-    coff_core_file_matches_executable_p,
+    BFD_JUMP_TABLE_CORE (coff),
 
     /* Archive */
     _bfd_xcoff_slurp_armap,
diff --git a/bfd/coff64-rs6000.c b/bfd/coff64-rs6000.c
index 99cbfb7..b154b67 100644
--- a/bfd/coff64-rs6000.c
+++ b/bfd/coff64-rs6000.c
@@ -256,6 +256,8 @@ extern int rs6000coff_core_file_failing_signal
   rs6000coff_core_file_failing_signal
 #define coff_core_file_matches_executable_p \
   rs6000coff_core_file_matches_executable_p
+#define coff_core_file_pid \
+  _bfd_nocore_core_file_pid
 #else
 #define CORE_FILE_P _bfd_dummy_target
 #define coff_core_file_failing_command \
@@ -264,6 +266,8 @@ extern int rs6000coff_core_file_failing_signal
   _bfd_nocore_core_file_failing_signal
 #define coff_core_file_matches_executable_p \
   _bfd_nocore_core_file_matches_executable_p
+#define coff_core_file_pid \
+  _bfd_nocore_core_file_pid
 #endif
 #define coff_SWAP_sym_in _bfd_xcoff64_swap_sym_in
 #define coff_SWAP_sym_out _bfd_xcoff64_swap_sym_out
@@ -2753,9 +2757,7 @@ const bfd_target rs6000coff64_vec =
     _bfd_generic_bfd_print_private_bfd_data,
 
     /* Core */
-    coff_core_file_failing_command,
-    coff_core_file_failing_signal,
-    coff_core_file_matches_executable_p,
+    BFD_JUMP_TABLE_CORE (coff),
 
     /* Archive */
     xcoff64_slurp_armap,
@@ -2835,6 +2837,8 @@ extern char *xcoff64_core_file_failing_command
   PARAMS ((bfd *));
 extern int xcoff64_core_file_failing_signal
   PARAMS ((bfd *));
+#define xcoff64_core_file_pid \
+  _bfd_nocore_core_file_pid
 
 /* AIX 5 */
 static const struct xcoff_backend_data_rec bfd_xcoff_aix5_backend_data =
@@ -3009,9 +3013,7 @@ const bfd_target aix5coff64_vec =
     _bfd_generic_bfd_print_private_bfd_data,
 
     /* Core */
-    xcoff64_core_file_failing_command,
-    xcoff64_core_file_failing_signal,
-    xcoff64_core_file_matches_executable_p,
+    BFD_JUMP_TABLE_CORE (xcoff64),
 
     /* Archive */
     xcoff64_slurp_armap,
diff --git a/bfd/corefile.c b/bfd/corefile.c
index 7802a3a..605be8d 100644
--- a/bfd/corefile.c
+++ b/bfd/corefile.c
@@ -84,6 +84,31 @@ bfd_core_file_failing_signal (bfd *abfd)
 
 /*
 FUNCTION
+	bfd_core_file_pid
+
+SYNOPSIS
+	int bfd_core_file_pid (bfd *abfd);
+
+DESCRIPTION
+
+	Returns the PID of the process the core dump the BFD
+	@var{abfd} is attached to was generated from.
+*/
+
+int
+bfd_core_file_pid (bfd *abfd)
+{
+  if (abfd->format != bfd_core)
+    {
+      bfd_set_error (bfd_error_invalid_operation);
+      return 0;
+    }
+  return BFD_SEND (abfd, _core_file_pid, (abfd));
+}
+
+
+/*
+FUNCTION
 	core_file_matches_executable_p
 
 SYNOPSIS
diff --git a/bfd/elf-bfd.h b/bfd/elf-bfd.h
index 754e733..2220d4d 100644
--- a/bfd/elf-bfd.h
+++ b/bfd/elf-bfd.h
@@ -1989,6 +1989,8 @@ extern int bfd_elf32_core_file_failing_signal
   (bfd *);
 extern bfd_boolean bfd_elf32_core_file_matches_executable_p
   (bfd *, bfd *);
+extern int bfd_elf32_core_file_pid
+  (bfd *);
 
 extern bfd_boolean bfd_elf32_swap_symbol_in
   (bfd *, const void *, const void *, Elf_Internal_Sym *);
@@ -2033,6 +2035,8 @@ extern int bfd_elf64_core_file_failing_signal
   (bfd *);
 extern bfd_boolean bfd_elf64_core_file_matches_executable_p
   (bfd *, bfd *);
+extern int bfd_elf64_core_file_pid
+  (bfd *);
 
 extern bfd_boolean bfd_elf64_swap_symbol_in
   (bfd *, const void *, const void *, Elf_Internal_Sym *);
diff --git a/bfd/elf.c b/bfd/elf.c
index 90fc3d1..f9f2dad 100644
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -7519,13 +7519,19 @@ _bfd_elf_rel_vtable_reloc_fn
 # include <sys/procfs.h>
 #endif
 
-/* FIXME: this is kinda wrong, but it's what gdb wants.  */
+/* Return a PID that identifies a "thread" for threaded cores, or the
+   PID of the main process for non-threaded cores.  */
 
 static int
 elfcore_make_pid (bfd *abfd)
 {
-  return ((elf_tdata (abfd)->core_lwpid << 16)
-	  + (elf_tdata (abfd)->core_pid));
+  int pid;
+
+  pid = elf_tdata (abfd)->core_lwpid;
+  if (pid == 0)
+    pid = elf_tdata (abfd)->core_pid;
+
+  return pid;
 }
 
 /* If there isn't a section called NAME, make one, using
@@ -7615,7 +7621,8 @@ elfcore_grok_prstatus (bfd *abfd, Elf_Internal_Note *note)
 	 has already been set by another thread.  */
       if (elf_tdata (abfd)->core_signal == 0)
 	elf_tdata (abfd)->core_signal = prstat.pr_cursig;
-      elf_tdata (abfd)->core_pid = prstat.pr_pid;
+      if (elf_tdata (abfd)->core_pid == 0)
+	elf_tdata (abfd)->core_pid = prstat.pr_pid;
 
       /* pr_who exists on:
 	 solaris 2.5+
@@ -7625,6 +7632,8 @@ elfcore_grok_prstatus (bfd *abfd, Elf_Internal_Note *note)
 	 */
 #if defined (HAVE_PRSTATUS_T_PR_WHO)
       elf_tdata (abfd)->core_lwpid = prstat.pr_who;
+#else
+      elf_tdata (abfd)->core_lwpid = prstat.pr_pid;
 #endif
     }
 #if defined (HAVE_PRSTATUS32_T)
@@ -7641,7 +7650,8 @@ elfcore_grok_prstatus (bfd *abfd, Elf_Internal_Note *note)
 	 has already been set by another thread.  */
       if (elf_tdata (abfd)->core_signal == 0)
 	elf_tdata (abfd)->core_signal = prstat.pr_cursig;
-      elf_tdata (abfd)->core_pid = prstat.pr_pid;
+      if (elf_tdata (abfd)->core_pid == 0)
+	elf_tdata (abfd)->core_pid = prstat.pr_pid;
 
       /* pr_who exists on:
 	 solaris 2.5+
@@ -7651,6 +7661,8 @@ elfcore_grok_prstatus (bfd *abfd, Elf_Internal_Note *note)
 	 */
 #if defined (HAVE_PRSTATUS32_T_PR_WHO)
       elf_tdata (abfd)->core_lwpid = prstat.pr_who;
+#else
+      elf_tdata (abfd)->core_lwpid = prstat.pr_pid;
 #endif
     }
 #endif /* HAVE_PRSTATUS32_T */
diff --git a/bfd/elf32-am33lin.c b/bfd/elf32-am33lin.c
index c3ec2dc..177a714 100644
--- a/bfd/elf32-am33lin.c
+++ b/bfd/elf32-am33lin.c
@@ -55,7 +55,7 @@ elf32_am33lin_grok_prstatus (bfd *abfd, Elf_Internal_Note *note)
 	elf_tdata (abfd)->core_signal = bfd_get_16 (abfd, note->descdata + 12);
 
 	/* pr_pid */
-	elf_tdata (abfd)->core_pid = bfd_get_32 (abfd, note->descdata + 24);
+	elf_tdata (abfd)->core_lwpid = bfd_get_32 (abfd, note->descdata + 24);
 
 	/* pr_reg */
 	offset = 72;
diff --git a/bfd/elf32-arm.c b/bfd/elf32-arm.c
index f6115bd..0cd1e64 100644
--- a/bfd/elf32-arm.c
+++ b/bfd/elf32-arm.c
@@ -1829,7 +1829,7 @@ elf32_arm_nabi_grok_prstatus (bfd *abfd, Elf_Internal_Note *note)
 	elf_tdata (abfd)->core_signal = bfd_get_16 (abfd, note->descdata + 12);
 
 	/* pr_pid */
-	elf_tdata (abfd)->core_pid = bfd_get_32 (abfd, note->descdata + 24);
+	elf_tdata (abfd)->core_lwpid = bfd_get_32 (abfd, note->descdata + 24);
 
 	/* pr_reg */


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


             reply	other threads:[~2010-08-20 17:49 UTC|newest]

Thread overview: 120+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-20 17:49 jkratoch [this message]
  -- strict thread matches above, loose matches on Subject: below --
2011-02-01 19:25 jkratoch
2011-01-29 16:44 jkratoch
2011-01-25 12:53 pmuldoon
2011-01-25  9:10 jkratoch
2011-01-17 13:31 pmuldoon
2011-01-15 11:35 jkratoch
2011-01-14  8:04 jkratoch
2011-01-10 12:00 pmuldoon
2011-01-10  9:10 jkratoch
2011-01-07  5:57 jkratoch
2011-01-06 12:22 pmuldoon
2011-01-04  4:59 jkratoch
2010-12-31 22:30 jkratoch
2010-12-30  7:22 jkratoch
2010-12-22 20:11 swagiaal
2010-12-14 17:13 jkratoch
2010-12-14  8:27 pmuldoon
2010-12-10 17:16 jkratoch
2010-12-08 15:55 pmuldoon
2010-12-06  6:40 jkratoch
2010-12-04  1:03 jkratoch
2010-12-02 15:47 pmuldoon
2010-11-30  0:15 jkratoch
2010-11-28 18:02 jkratoch
2010-11-28  5:41 jkratoch
2010-11-16  5:04 jkratoch
2010-11-12 11:47 pmuldoon
2010-11-11 11:39 pmuldoon
2010-11-10  9:09 pmuldoon
2010-11-08  9:34 pmuldoon
2010-11-07 18:15 jkratoch
2010-10-22 14:28 pmuldoon
2010-10-20 12:48 pmuldoon
2010-10-19 16:01 pmuldoon
2010-10-17 20:27 jkratoch
2010-10-15 17:07 jkratoch
2010-10-14 20:55 jkratoch
2010-10-13 15:06 jkratoch
2010-10-12 16:45 jkratoch
2010-10-11  9:21 jkratoch
2010-10-11  8:47 pmuldoon
2010-10-06  9:00 pmuldoon
2010-09-30  8:56 pmuldoon
2010-09-27  9:48 jkratoch
2010-09-20 12:34 pmuldoon
2010-09-16 20:49 ratmice
2010-09-04 19:59 jkratoch
2010-09-03  7:26 jkratoch
2010-09-02 15:04 jkratoch
2010-09-01 15:29 swagiaal
2010-08-23 13:54 jkratoch
2010-08-12 15:19 swagiaal
2010-08-06 15:32 jkratoch
2010-07-29 19:17 swagiaal
2010-07-22 16:57 jkratoch
2010-07-22 16:26 jkratoch
2010-07-20 18:51 jkratoch
2010-07-09  8:09 jkratoch
2010-06-24  8:55 jkratoch
2010-06-23 20:56 jkratoch
2010-06-17 12:53 jkratoch
2010-06-07  8:14 jkratoch
2010-06-02 19:03 jkratoch
2010-05-28 21:27 jkratoch
2010-05-26 18:36 swagiaal
2010-05-17 18:02 jkratoch
2010-05-17  1:04 jkratoch
2010-05-10 19:30 swagiaal
2010-05-05 14:24 swagiaal
2010-05-03 13:49 jkratoch
2010-05-03  8:48 jkratoch
2010-05-02 23:10 jkratoch
2010-05-02 15:54 jkratoch
2010-04-30  7:11 jkratoch
2010-04-28 11:44 jkratoch
2010-04-25 20:22 jkratoch
2010-04-09 20:37 jkratoch
2010-04-07  1:41 jkratoch
2010-04-05 10:11 jkratoch
2010-04-04 11:58 jkratoch
2010-03-22 23:58 jkratoch
2010-03-20 17:23 jkratoch
2010-03-18 10:01 jkratoch
2010-03-17 18:04 jkratoch
2010-03-12 18:35 jkratoch
2010-03-04 22:28 jkratoch
2010-03-01 22:16 jkratoch
2010-02-26 22:16 jkratoch
2010-02-26 17:50 jkratoch
2010-02-17 16:01 swagiaal
2010-02-13 22:51 jkratoch
2010-02-11 12:51 jkratoch
2010-02-09 19:01 jkratoch
2010-02-08 21:46 jkratoch
2010-02-03  4:38 jkratoch
2010-01-31 17:25 jkratoch
2010-01-28 19:17 swagiaal
2010-01-28 10:56 jkratoch
2010-01-27 19:21 swagiaal
2010-01-27  8:08 jkratoch
2010-01-26 18:58 swagiaal
2010-01-20 21:48 jkratoch
2010-01-15  2:09 jkratoch
2010-01-15  0:52 jkratoch
2010-01-14 22:23 jkratoch
2010-01-13 20:53 jkratoch
2010-01-10 20:47 jkratoch
2010-01-09 10:03 jkratoch
2010-01-09  8:41 jkratoch
2010-01-08 19:16 jkratoch
2009-12-06 17:43 jkratoch
2009-12-03 16:32 jkratoch
2009-11-30 13:59 jkratoch
2009-11-24 21:21 jkratoch
2009-11-21  9:24 jkratoch
2009-11-20 21:06 jkratoch
2009-11-20 15:57 jkratoch
2009-11-17 19:59 jkratoch
2009-11-16  2:22 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=20100820174927.32516.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).