From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28624 invoked by alias); 3 Feb 2013 15:40:35 -0000 Mailing-List: contact archer-commits-help@sourceware.org; run by ezmlm Sender: Precedence: bulk List-Post: List-Help: List-Subscribe: Received: (qmail 28544 invoked by uid 9674); 3 Feb 2013 15:40:34 -0000 Date: Sun, 03 Feb 2013 15:40:00 -0000 Message-ID: <20130203154034.28529.qmail@sourceware.org> From: jkratoch@sourceware.org To: archer-commits@sourceware.org Subject: [SCM] archer-jankratochvil-absdir: Merge branch 'xfullpath-locsymtab-isabs-expandfullname-tuifullname-config-simple2-tui-psymtab-dw2fullreal-macrorel-mix' into xfullpath-locsymtab-isabs-expandfullname-tuifullname-config-simple2-tui-psymtab-dw2fullreal-macrorel-mix-default X-Git-Refname: refs/heads/archer-jankratochvil-absdir X-Git-Reftype: branch X-Git-Oldrev: 37446680fb3c1bc8927e124024eac061479654c2 X-Git-Newrev: 58e267e759470e2e540a523cd86afd7f633eaf81 X-SW-Source: 2013-q1/txt/msg00038.txt.bz2 List-Id: The branch, archer-jankratochvil-absdir has been updated via 58e267e759470e2e540a523cd86afd7f633eaf81 (commit) via 17c9dfe4a356a7d9658111342e37ea3e9cc056ae (commit) via f4229dd60d2ed41383af2c65498e9ab02918a2a0 (commit) via efa7aa30fa2378bf6bcb684369f2d8b16a3f0ec1 (commit) via 31a022cead5f90dc689b5a562232d05677533108 (commit) via fdbf02832b030513ca7b99c033e98d5ab0306c76 (commit) via eb2abe5549e15f34b16fe5d99c702319bcebc172 (commit) via 6c6977ed0f206afd9914cefa65c963419f6f1a82 (commit) via d3d2f2a71b879676ea0014d07bc552f4e9bf518b (commit) via 138460664b99d93cc53b12d66d988ee8513c7743 (commit) via e97a051d4e09a14594ea81034c4bc8966e277348 (commit) via 190c84e576186e3e872d2516b0234fbf8a7554c1 (commit) via b2d788c3d2b3a1440530fb95b4b4809a26a7e1a9 (commit) via c2f14511388ab029f3bda0f5227eab67e04daac5 (commit) via 8b9474b7ca95b074fc5b7a38b4b1558e33ad6710 (commit) via 0a304c344ffac3df44bbb6252ada1008ddd3e2cd (commit) via 0231f4acfa2825f60d81459171aaa0888e02baef (commit) via 9016dd021e6246f3c9d00db579a82818f37167cb (commit) via d9df84144bca60408763ae2bdf44c66e26f45b9c (commit) via 6337c74b08e2c370fa1d5de33a714c55ef4cc2de (commit) via 739d9f1989cf710612f6fff08799717325fcca7a (commit) via 6fe643e71104ab7a4e62cfa52bb669afd1a668b4 (commit) via 95d0a9ddafdc641b9023033fcaadc6701682c1ce (commit) via 42f03fd670c7a0a5b61d420e3a7b5af01929d178 (commit) via 0cc0f57c977cce646dc3e5bed1a6d1fc8bc8f1bc (commit) via 39c4a08ae546969f9d31219561c93bb4970b583a (commit) via 125a810fe99b6ec77947e4fc09697115adcf5e2e (commit) via 357496d1ae5b540cef822b806e6cce0ee0403a7d (commit) via 8e59ae41ea65827389539a527f0e85a11fe5f2bd (commit) via 05bb5123a57c91f1a06cf828d0db89aaa5391f94 (commit) via 01b293100c8575bf646394d9c5bf42f0c16dfa1c (commit) via 6f315c81b544ded047311e0acbd8d2c89240b58c (commit) via e93f194bd9a82defd9618f8c7920a9029fa8e633 (commit) via 4fcb3b0f7dbdd6230ca430a1ec7dfe10fac2016c (commit) via f596a1c3c52ab891bbeb87b8d6ff4de8c9dd8fa0 (commit) via 6f6a03520777c2efba7bbe5f4a5788cdbe5e8ed2 (commit) via c4dda951d0538c86dd56526ddaf1819f8a012681 (commit) via dc09f343296b59e260d40191e9a586afc03b3e9a (commit) via f8a562ddd90272103b34aa3291db4df00489a235 (commit) via 848a873ee947a94838a68d219f211de23aeea96b (commit) via 9027410698dbc498f44441201784578570a0a6f6 (commit) from 37446680fb3c1bc8927e124024eac061479654c2 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email. - Log ----------------------------------------------------------------- commit 58e267e759470e2e540a523cd86afd7f633eaf81 Merge: 0a304c3 17c9dfe Author: Jan Kratochvil Date: Sun Feb 3 16:40:16 2013 +0100 Merge branch 'xfullpath-locsymtab-isabs-expandfullname-tuifullname-config-simple2-tui-psymtab-dw2fullreal-macrorel-mix' into xfullpath-locsymtab-isabs-expandfullname-tuifullname-config-simple2-tui-psymtab-dw2fullreal-macrorel-mix-default commit 17c9dfe4a356a7d9658111342e37ea3e9cc056ae Merge: 0231f4a f4229dd Author: Jan Kratochvil Date: Sun Feb 3 16:40:16 2013 +0100 Merge branch 'xfullpath-locsymtab-isabs-expandfullname-tuifullname-config-simple2-tui-psymtab-dw2fullreal-macrorel' into xfullpath-locsymtab-isabs-expandfullname-tuifullname-config-simple2-tui-psymtab-dw2fullreal-macrorel-mix commit f4229dd60d2ed41383af2c65498e9ab02918a2a0 Merge: 6337c74 efa7aa3 Author: Jan Kratochvil Date: Sun Feb 3 16:40:16 2013 +0100 Merge branch 'xfullpath-locsymtab-isabs-expandfullname-tuifullname-config-simple2-tui-psymtab-dw2fullreal' into xfullpath-locsymtab-isabs-expandfullname-tuifullname-config-simple2-tui-psymtab-dw2fullreal-macrorel commit efa7aa30fa2378bf6bcb684369f2d8b16a3f0ec1 Merge: 739d9f1 31a022c Author: Jan Kratochvil Date: Sun Feb 3 16:40:15 2013 +0100 Merge branch 'xfullpath-locsymtab-isabs-expandfullname-tuifullname-config-simple2-tui-psymtab' into xfullpath-locsymtab-isabs-expandfullname-tuifullname-config-simple2-tui-psymtab-dw2fullreal commit 31a022cead5f90dc689b5a562232d05677533108 Merge: 95d0a9d fdbf028 Author: Jan Kratochvil Date: Sun Feb 3 16:40:15 2013 +0100 Merge branch 'xfullpath-locsymtab-isabs-expandfullname-tuifullname-config-simple2-tui' into xfullpath-locsymtab-isabs-expandfullname-tuifullname-config-simple2-tui-psymtab commit fdbf02832b030513ca7b99c033e98d5ab0306c76 Merge: 42f03fd eb2abe5 Author: Jan Kratochvil Date: Sun Feb 3 16:40:15 2013 +0100 Merge branch 'xfullpath-locsymtab-isabs-expandfullname-tuifullname-config-simple2' into xfullpath-locsymtab-isabs-expandfullname-tuifullname-config-simple2-tui commit eb2abe5549e15f34b16fe5d99c702319bcebc172 Merge: 0cc0f57 6c6977e Author: Jan Kratochvil Date: Sun Feb 3 16:40:15 2013 +0100 Merge branch 'xfullpath-locsymtab-isabs-expandfullname-tuifullname-config' into xfullpath-locsymtab-isabs-expandfullname-tuifullname-config-simple2 commit 6c6977ed0f206afd9914cefa65c963419f6f1a82 Merge: 39c4a08 d3d2f2a Author: Jan Kratochvil Date: Sun Feb 3 16:40:14 2013 +0100 Merge branch 'xfullpath-locsymtab-isabs-expandfullname-tuifullname' into xfullpath-locsymtab-isabs-expandfullname-tuifullname-config commit d3d2f2a71b879676ea0014d07bc552f4e9bf518b Merge: 125a810 1384606 Author: Jan Kratochvil Date: Sun Feb 3 16:40:14 2013 +0100 Merge branch 'xfullpath-locsymtab-isabs-expandfullname' into xfullpath-locsymtab-isabs-expandfullname-tuifullname commit 138460664b99d93cc53b12d66d988ee8513c7743 Merge: 357496d e97a051 Author: Jan Kratochvil Date: Sun Feb 3 16:40:14 2013 +0100 Merge branch 'xfullpath-locsymtab-isabs' into xfullpath-locsymtab-isabs-expandfullname commit e97a051d4e09a14594ea81034c4bc8966e277348 Merge: 8e59ae4 190c84e Author: Jan Kratochvil Date: Sun Feb 3 16:40:13 2013 +0100 Merge branch 'xfullpath-locsymtab' into xfullpath-locsymtab-isabs commit 190c84e576186e3e872d2516b0234fbf8a7554c1 Merge: 05bb512 b2d788c Author: Jan Kratochvil Date: Sun Feb 3 16:40:13 2013 +0100 Merge branch 'xfullpath' into xfullpath-locsymtab commit b2d788c3d2b3a1440530fb95b4b4809a26a7e1a9 Merge: 01b2931 c2f1451 Author: Jan Kratochvil Date: Sun Feb 3 16:40:13 2013 +0100 Merge remote-tracking branch 'gdb/master' into xfullpath commit c2f14511388ab029f3bda0f5227eab67e04daac5 Author: gdbadmin Date: Sun Feb 3 00:00:35 2013 +0000 *** empty log message *** commit 8b9474b7ca95b074fc5b7a38b4b1558e33ad6710 Author: Alan Modra Date: Sat Feb 2 23:00:05 2013 +0000 daily update commit 0a304c344ffac3df44bbb6252ada1008ddd3e2cd Merge: 9016dd0 0231f4a Author: Jan Kratochvil Date: Sat Feb 2 19:11:47 2013 +0100 Merge branch 'xfullpath-locsymtab-isabs-expandfullname-tuifullname-config-simple2-tui-psymtab-dw2fullreal-macrorel-mix' into xfullpath-locsymtab-isabs-expandfullname-tuifullname-config-simple2-tui-psymtab-dw2fullreal-macrorel-mix-default commit 0231f4acfa2825f60d81459171aaa0888e02baef Author: Jan Kratochvil Date: Sat Feb 2 19:11:39 2013 +0100 . commit 9016dd021e6246f3c9d00db579a82818f37167cb Author: Jan Kratochvil Date: Sat Feb 2 19:06:46 2013 +0100 . commit d9df84144bca60408763ae2bdf44c66e26f45b9c Merge: 3744668 6fe643e Author: Jan Kratochvil Date: Sat Feb 2 18:52:30 2013 +0100 Merge branch 'xfullpath-locsymtab-isabs-expandfullname-tuifullname-config-simple2-tui-psymtab-dw2fullreal-macrorel-mix' into xfullpath-locsymtab-isabs-expandfullname-tuifullname-config-simple2-tui-psymtab-dw2fullreal-macrorel-mix-default commit 6337c74b08e2c370fa1d5de33a714c55ef4cc2de Merge: 6f1ebd1 739d9f1 Author: Jan Kratochvil Date: Sat Feb 2 18:52:29 2013 +0100 Merge branch 'xfullpath-locsymtab-isabs-expandfullname-tuifullname-config-simple2-tui-psymtab-dw2fullreal' into xfullpath-locsymtab-isabs-expandfullname-tuifullname-config-simple2-tui-psymtab-dw2fullreal-macrorel commit 739d9f1989cf710612f6fff08799717325fcca7a Merge: 64aae5b 95d0a9d Author: Jan Kratochvil Date: Sat Feb 2 18:52:29 2013 +0100 Merge branch 'xfullpath-locsymtab-isabs-expandfullname-tuifullname-config-simple2-tui-psymtab' into xfullpath-locsymtab-isabs-expandfullname-tuifullname-config-simple2-tui-psymtab-dw2fullreal commit 6fe643e71104ab7a4e62cfa52bb669afd1a668b4 Merge: 8ed7547 6337c74 Author: Jan Kratochvil Date: Sat Feb 2 18:52:29 2013 +0100 Merge branch 'xfullpath-locsymtab-isabs-expandfullname-tuifullname-config-simple2-tui-psymtab-dw2fullreal-macrorel' into xfullpath-locsymtab-isabs-expandfullname-tuifullname-config-simple2-tui-psymtab-dw2fullreal-macrorel-mix commit 95d0a9ddafdc641b9023033fcaadc6701682c1ce Merge: 1e4f210 42f03fd Author: Jan Kratochvil Date: Sat Feb 2 18:52:28 2013 +0100 Merge branch 'xfullpath-locsymtab-isabs-expandfullname-tuifullname-config-simple2-tui' into xfullpath-locsymtab-isabs-expandfullname-tuifullname-config-simple2-tui-psymtab commit 42f03fd670c7a0a5b61d420e3a7b5af01929d178 Merge: c93b550 0cc0f57 Author: Jan Kratochvil Date: Sat Feb 2 18:52:28 2013 +0100 Merge branch 'xfullpath-locsymtab-isabs-expandfullname-tuifullname-config-simple2' into xfullpath-locsymtab-isabs-expandfullname-tuifullname-config-simple2-tui commit 0cc0f57c977cce646dc3e5bed1a6d1fc8bc8f1bc Merge: 3aaa930 39c4a08 Author: Jan Kratochvil Date: Sat Feb 2 18:52:27 2013 +0100 Merge branch 'xfullpath-locsymtab-isabs-expandfullname-tuifullname-config' into xfullpath-locsymtab-isabs-expandfullname-tuifullname-config-simple2 commit 39c4a08ae546969f9d31219561c93bb4970b583a Merge: b98804a 125a810 Author: Jan Kratochvil Date: Sat Feb 2 18:52:27 2013 +0100 Merge branch 'xfullpath-locsymtab-isabs-expandfullname-tuifullname' into xfullpath-locsymtab-isabs-expandfullname-tuifullname-config commit 125a810fe99b6ec77947e4fc09697115adcf5e2e Merge: a5b98b3 357496d Author: Jan Kratochvil Date: Sat Feb 2 18:52:27 2013 +0100 Merge branch 'xfullpath-locsymtab-isabs-expandfullname' into xfullpath-locsymtab-isabs-expandfullname-tuifullname commit 357496d1ae5b540cef822b806e6cce0ee0403a7d Merge: 470380a 8e59ae4 Author: Jan Kratochvil Date: Sat Feb 2 18:52:26 2013 +0100 Merge branch 'xfullpath-locsymtab-isabs' into xfullpath-locsymtab-isabs-expandfullname commit 8e59ae41ea65827389539a527f0e85a11fe5f2bd Merge: a333736 05bb512 Author: Jan Kratochvil Date: Sat Feb 2 18:52:26 2013 +0100 Merge branch 'xfullpath-locsymtab' into xfullpath-locsymtab-isabs commit 05bb5123a57c91f1a06cf828d0db89aaa5391f94 Merge: 1289553 01b2931 Author: Jan Kratochvil Date: Sat Feb 2 18:52:25 2013 +0100 Merge branch 'xfullpath' into xfullpath-locsymtab commit 01b293100c8575bf646394d9c5bf42f0c16dfa1c Merge: b1aab79 6f315c8 Author: Jan Kratochvil Date: Sat Feb 2 18:52:25 2013 +0100 Merge remote-tracking branch 'gdb/master' into xfullpath ----------------------------------------------------------------------- Summary of changes: bfd/version.h | 2 +- gdb/ChangeLog | 49 ++++ gdb/Makefile.in | 6 +- gdb/NEWS | 2 +- gdb/ada-lang.c | 3 - gdb/ada-valprint.c | 2 - gdb/configure.tgt | 3 +- gdb/doc/gdb.texinfo | 14 +- gdb/dummy-frame.c | 34 --- gdb/elfread.c | 14 +- gdb/frame.h | 2 - gdb/objfiles.c | 3 + gdb/ppc-linux-tdep.c | 427 +----------------------------- gdb/ppc-tdep.h | 15 + gdb/ppc64-tdep.c | 363 +++++++++++++++++++++++++ gdb/ppc64-tdep.h | 34 +++ gdb/rs6000-tdep.c | 62 +++++ gdb/symfile.c | 7 +- gdb/testsuite/ChangeLog | 16 ++ gdb/testsuite/gdb.base/gnu-debugdata.exp | 22 ++- gdb/testsuite/gdb.dwarf2/method-ptr.exp | 8 +- gdb/testsuite/lib/java.exp | 2 +- gdb/version.in | 2 +- 23 files changed, 606 insertions(+), 486 deletions(-) create mode 100644 gdb/ppc64-tdep.c create mode 100644 gdb/ppc64-tdep.h First 500 lines of diff: diff --git a/bfd/version.h b/bfd/version.h index 0e43552..f61bfd0 100644 --- a/bfd/version.h +++ b/bfd/version.h @@ -1,4 +1,4 @@ -#define BFD_VERSION_DATE 20130201 +#define BFD_VERSION_DATE 20130203 #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 e4cbe05..baa3ea3 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,52 @@ +2013-02-01 Andreas Tobler + + * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o. + (HFILES_NO_SRCDIR): Add ppc64-tdep.h. + (ALLDEPFILES): Add ppc64-tdep.c. + * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add + ppc64-tdep.o to gdb_target_obs. + * ppc64-tdep.h: New file. + * ppc64-tdep.c: New file. + (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from + ppc-linux-tdep.c to here. + (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN) + (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro. + (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target) + (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move + from ppc-linux-tdep.c to here. + (ppc64_convert_from_func_ptr_addr): Rename from + ppc64_linux_convert_from_func_ptr_addr to + ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to + here. + * rs6000-tdep.c: + (read_insn): Move from ppc-linux-tdep.c to here. + (insns_match_pattern, insn_d_field, insn_ds_field): Move + from ppc-linux-tdep.c to here and rename them with the ppc_ prefix. + * ppc-linux-tdep.c: Include ppc64-tdep.h. + Removed above functions. + (ppc_linux_init_abi): Adjust. + +2013-02-01 Aleksandar Ristovski + + * ada-valprint.c (ada_print_floating): Remove unused 'len'. + +2013-02-01 Aleksandar Ristovski + + * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'. + +2013-02-01 Pedro Alves + + * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function. + * frame.h (deprecated_pc_in_call_dummy): Delete declaration. + +2013-02-01 Jan Kratochvil + + * elfread.c (elf_symfile_read): Limit separate debug info additions to + files with no separate debug info. + * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls. + * symfile.c (read_symbols): Call find_separate_debug_file_in_section + only for files with no separate debug info. + 2013-01-31 Tom Tromey * jit.c (jit_program_space_data): Rename from jit_inferior_data; diff --git a/gdb/Makefile.in b/gdb/Makefile.in index 68d545e..e0e08ca 100644 --- a/gdb/Makefile.in +++ b/gdb/Makefile.in @@ -565,7 +565,7 @@ ALL_TARGET_OBS = \ mt-tdep.o \ nto-tdep.o \ ppc-linux-tdep.o ppcnbsd-tdep.o ppcobsd-tdep.o ppc-sysv-tdep.o \ - rl78-tdep.o \ + ppc64-tdep.o rl78-tdep.o \ rs6000-aix-tdep.o rs6000-tdep.o ppc-ravenscar-thread.o \ rs6000-lynx178-tdep.o \ rx-tdep.o \ @@ -807,7 +807,7 @@ amd64-linux-tdep.h linespec.h i387-tdep.h mn10300-tdep.h \ sparc64-tdep.h monitor.h ppcobsd-tdep.h srec.h solib-pa64.h \ coff-pe-read.h parser-defs.h gdb_ptrace.h mips-linux-tdep.h \ m68k-tdep.h spu-tdep.h jv-lang.h environ.h solib-irix.h amd64-tdep.h \ -doublest.h regset.h hppa-tdep.h ppc-linux-tdep.h rs6000-tdep.h \ +doublest.h regset.h hppa-tdep.h ppc-linux-tdep.h ppc64-tdep.h rs6000-tdep.h \ common/gdb_locale.h common/gdb_dirent.h arch-utils.h trad-frame.h gnu-nat.h \ language.h nbsd-tdep.h solib-svr4.h \ macroexp.h ui-file.h regcache.h gdb_string.h tracepoint.h i386-tdep.h \ @@ -1487,7 +1487,7 @@ ALLDEPFILES = \ solib-osf.c \ somread.c solib-som.c \ posix-hdep.c \ - ppc-sysv-tdep.c ppc-linux-nat.c ppc-linux-tdep.c \ + ppc-sysv-tdep.c ppc-linux-nat.c ppc-linux-tdep.c ppc64-tdep.c \ ppcnbsd-nat.c ppcnbsd-tdep.c \ ppcobsd-nat.c ppcobsd-tdep.c \ procfs.c \ diff --git a/gdb/NEWS b/gdb/NEWS index 350a063..a89761d 100644 --- a/gdb/NEWS +++ b/gdb/NEWS @@ -121,7 +121,7 @@ show filename-display Control the way in which filenames is displayed. Previous behavior was "relative". New default is "relative-with-system-absolute", which prints source filenames - from files with present separate debug info in absolute form. + from files with separate debug info in absolute form. * MI changes diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c index f896aa9..634e761 100644 --- a/gdb/ada-lang.c +++ b/gdb/ada-lang.c @@ -9031,7 +9031,6 @@ assign_aggregate (struct value *container, int num_specs; LONGEST *indices; int max_indices, num_indices; - int is_array_aggregate; int i; *pos += 3; @@ -9056,13 +9055,11 @@ assign_aggregate (struct value *container, lhs_type = value_type (lhs); low_index = TYPE_ARRAY_LOWER_BOUND_VALUE (lhs_type); high_index = TYPE_ARRAY_UPPER_BOUND_VALUE (lhs_type); - is_array_aggregate = 1; } else if (TYPE_CODE (lhs_type) == TYPE_CODE_STRUCT) { low_index = 0; high_index = num_visible_fields (lhs_type) - 1; - is_array_aggregate = 0; } else error (_("Left-hand side must be array or record.")); diff --git a/gdb/ada-valprint.c b/gdb/ada-valprint.c index 836123f..5287ce5 100644 --- a/gdb/ada-valprint.c +++ b/gdb/ada-valprint.c @@ -320,7 +320,6 @@ ada_print_floating (const gdb_byte *valaddr, struct type *type, { char buffer[64]; char *s, *result; - int len; struct ui_file *tmp_stream = mem_fileopen (); struct cleanup *cleanups = make_cleanup_ui_file_delete (tmp_stream); @@ -329,7 +328,6 @@ ada_print_floating (const gdb_byte *valaddr, struct type *type, do_cleanups (cleanups); result = buffer; - len = strlen (result); /* Modify for Ada rules. */ diff --git a/gdb/configure.tgt b/gdb/configure.tgt index 5b77bb2..2b4eea0 100644 --- a/gdb/configure.tgt +++ b/gdb/configure.tgt @@ -405,7 +405,8 @@ powerpc-*-aix* | rs6000-*-*) powerpc-*-linux* | powerpc64-*-linux*) # Target: PowerPC running Linux gdb_target_obs="rs6000-tdep.o ppc-linux-tdep.o ppc-sysv-tdep.o \ - solib-svr4.o solib-spu.o spu-multiarch.o \ + ppc64-tdep.o solib-svr4.o solib-spu.o \ + spu-multiarch.o \ glibc-tdep.o symfile-mem.o linux-tdep.o \ ravenscar-thread.o ppc-ravenscar-thread.o" gdb_sim=../sim/ppc/libsim.a diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index 843cfa5..7d4e647 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -6550,9 +6550,9 @@ Display only basename of a filename. Display an absolute filename. @item set filename-display relative-with-system-absolute -Determine whether a source filename comes from file having separate debug -information file. In such case display the source filename as absolute one. -Otherwise display it relative to the compilation directory. +Display as absolute those source file names that come from files with separate +debug info, and all the other source file names as relative to their +compilation directory. Files having separate debug information file are expected to come from system shared libraries. @@ -6560,12 +6560,8 @@ shared libraries. This is the default. @item set filename-display basename-with-system-absolute -Determine whether a source filename comes from file having separate debug -information file. In such case display the source filename as absolute one. -Otherwise display only basename of the filename. - -Files having separate debug information file are expected to come from system -shared libraries. +Display as absolute those source file names that come from files with separate +debug info, and all the other source file names only as their basenames. @item show filename-display Show the current way to display filenames. diff --git a/gdb/dummy-frame.c b/gdb/dummy-frame.c index 12310f8..390a6d8 100644 --- a/gdb/dummy-frame.c +++ b/gdb/dummy-frame.c @@ -47,40 +47,6 @@ struct dummy_frame static struct dummy_frame *dummy_frame_stack = NULL; -/* Function: deprecated_pc_in_call_dummy (pc) - - Return non-zero if the PC falls in a dummy frame created by gdb for - an inferior call. The code below which allows gdbarch_decr_pc_after_break - is for infrun.c, which may give the function a PC without that - subtracted out. - - FIXME: cagney/2002-11-23: This is silly. Surely "infrun.c" can - figure out what the real PC (as in the resume address) is BEFORE - calling this function. - - NOTE: cagney/2004-08-02: I'm pretty sure that, with the introduction of - infrun.c:adjust_pc_after_break (thanks), this function is now - always called with a correctly adjusted PC! - - NOTE: cagney/2004-08-02: Code should not need to call this. */ - -int -deprecated_pc_in_call_dummy (struct gdbarch *gdbarch, CORE_ADDR pc) -{ - struct dummy_frame *dummyframe; - - for (dummyframe = dummy_frame_stack; - dummyframe != NULL; - dummyframe = dummyframe->next) - { - if ((pc >= dummyframe->id.code_addr) - && (pc <= dummyframe->id.code_addr - + gdbarch_decr_pc_after_break (gdbarch))) - return 1; - } - return 0; -} - /* Push the caller's state, along with the dummy frame info, onto the dummy-frame stack. */ diff --git a/gdb/elfread.c b/gdb/elfread.c index 9d630cd..6ca659f 100644 --- a/gdb/elfread.c +++ b/gdb/elfread.c @@ -1431,8 +1431,18 @@ elf_symfile_read (struct objfile *objfile, int symfile_flags) /* If the file has its own symbol tables it has no separate debug info. `.dynsym'/`.symtab' go to MSYMBOLS, `.debug_info' goes to SYMTABS/PSYMTABS. `.gnu_debuglink' may no longer be present with - `.note.gnu.build-id'. */ - else if (!objfile_has_partial_symbols (objfile)) + `.note.gnu.build-id'. + + .gnu_debugdata is !objfile_has_partial_symbols because it contains only + .symtab, not .debug_* section. But if we already added .gnu_debugdata as + an objfile via find_separate_debug_file_in_section there was no separate + debug info available. Therefore do not attempt to search for another one, + objfile->separate_debug_objfile->separate_debug_objfile GDB guarantees to + be NULL and we would possibly violate it. */ + + else if (!objfile_has_partial_symbols (objfile) + && objfile->separate_debug_objfile == NULL + && objfile->separate_debug_objfile_backlink == NULL) { char *debugfile; diff --git a/gdb/frame.h b/gdb/frame.h index e3c6d91..31b9cb7 100644 --- a/gdb/frame.h +++ b/gdb/frame.h @@ -670,8 +670,6 @@ extern void print_frame_info (struct frame_info *, int print_level, extern struct frame_info *block_innermost_frame (const struct block *); -extern int deprecated_pc_in_call_dummy (struct gdbarch *gdbarch, CORE_ADDR pc); - extern int deprecated_frame_register_read (struct frame_info *frame, int regnum, gdb_byte *buf); diff --git a/gdb/objfiles.c b/gdb/objfiles.c index c82e2cf..8c17c14 100644 --- a/gdb/objfiles.c +++ b/gdb/objfiles.c @@ -476,6 +476,9 @@ add_separate_debug_objfile (struct objfile *objfile, struct objfile *parent) /* Must not be already in a list. */ gdb_assert (objfile->separate_debug_objfile_backlink == NULL); gdb_assert (objfile->separate_debug_objfile_link == NULL); + gdb_assert (objfile->separate_debug_objfile == NULL); + gdb_assert (parent->separate_debug_objfile_backlink == NULL); + gdb_assert (parent->separate_debug_objfile_link == NULL); objfile->separate_debug_objfile_backlink = parent; objfile->separate_debug_objfile_link = parent->separate_debug_objfile; diff --git a/gdb/ppc-linux-tdep.c b/gdb/ppc-linux-tdep.c index 135dc75..cdf362f 100644 --- a/gdb/ppc-linux-tdep.c +++ b/gdb/ppc-linux-tdep.c @@ -35,6 +35,7 @@ #include "solib.h" #include "solist.h" #include "ppc-tdep.h" +#include "ppc64-tdep.h" #include "ppc-linux-tdep.h" #include "glibc-tdep.h" #include "trad-frame.h" @@ -254,277 +255,6 @@ ppc_linux_return_value (struct gdbarch *gdbarch, struct value *function, readbuf, writebuf); } -/* Macros for matching instructions. Note that, since all the - operands are masked off before they're or-ed into the instruction, - you can use -1 to make masks. */ - -#define insn_d(opcd, rts, ra, d) \ - ((((opcd) & 0x3f) << 26) \ - | (((rts) & 0x1f) << 21) \ - | (((ra) & 0x1f) << 16) \ - | ((d) & 0xffff)) - -#define insn_ds(opcd, rts, ra, d, xo) \ - ((((opcd) & 0x3f) << 26) \ - | (((rts) & 0x1f) << 21) \ - | (((ra) & 0x1f) << 16) \ - | ((d) & 0xfffc) \ - | ((xo) & 0x3)) - -#define insn_xfx(opcd, rts, spr, xo) \ - ((((opcd) & 0x3f) << 26) \ - | (((rts) & 0x1f) << 21) \ - | (((spr) & 0x1f) << 16) \ - | (((spr) & 0x3e0) << 6) \ - | (((xo) & 0x3ff) << 1)) - -/* Read a PPC instruction from memory. PPC instructions are always - big-endian, no matter what endianness the program is running in, so - we can't use read_memory_integer or one of its friends here. */ -static unsigned int -read_insn (CORE_ADDR pc) -{ - unsigned char buf[4]; - - read_memory (pc, buf, 4); - return (buf[0] << 24) | (buf[1] << 16) | (buf[2] << 8) | buf[3]; -} - - -/* An instruction to match. */ -struct insn_pattern -{ - unsigned int mask; /* mask the insn with this... */ - unsigned int data; /* ...and see if it matches this. */ - int optional; /* If non-zero, this insn may be absent. */ -}; - -/* Return non-zero if the instructions at PC match the series - described in PATTERN, or zero otherwise. PATTERN is an array of - 'struct insn_pattern' objects, terminated by an entry whose mask is - zero. - - When the match is successful, fill INSN[i] with what PATTERN[i] - matched. If PATTERN[i] is optional, and the instruction wasn't - present, set INSN[i] to 0 (which is not a valid PPC instruction). - INSN should have as many elements as PATTERN. Note that, if - PATTERN contains optional instructions which aren't present in - memory, then INSN will have holes, so INSN[i] isn't necessarily the - i'th instruction in memory. */ -static int -insns_match_pattern (CORE_ADDR pc, - struct insn_pattern *pattern, - unsigned int *insn) -{ - int i; - - for (i = 0; pattern[i].mask; i++) - { - insn[i] = read_insn (pc); - if ((insn[i] & pattern[i].mask) == pattern[i].data) - pc += 4; - else if (pattern[i].optional) - insn[i] = 0; - else - return 0; - } - - return 1; -} - - -/* Return the 'd' field of the d-form instruction INSN, properly - sign-extended. */ -static CORE_ADDR -insn_d_field (unsigned int insn) -{ - return ((((CORE_ADDR) insn & 0xffff) ^ 0x8000) - 0x8000); -} - - -/* Return the 'ds' field of the ds-form instruction INSN, with the two - zero bits concatenated at the right, and properly - sign-extended. */ -static CORE_ADDR -insn_ds_field (unsigned int insn) -{ - return ((((CORE_ADDR) insn & 0xfffc) ^ 0x8000) - 0x8000); -} - - -/* If DESC is the address of a 64-bit PowerPC GNU/Linux function - descriptor, return the descriptor's entry point. */ -static CORE_ADDR -ppc64_desc_entry_point (struct gdbarch *gdbarch, CORE_ADDR desc) -{ - enum bfd_endian byte_order = gdbarch_byte_order (gdbarch); - /* The first word of the descriptor is the entry point. */ - return (CORE_ADDR) read_memory_unsigned_integer (desc, 8, byte_order); -} - - -/* Pattern for the standard linkage function. These are built by - build_plt_stub in elf64-ppc.c, whose GLINK argument is always - zero. */ -static struct insn_pattern ppc64_standard_linkage1[] = - { - /* addis r12, r2, */ - { insn_d (-1, -1, -1, 0), insn_d (15, 12, 2, 0), 0 }, - - /* std r2, 40(r1) */ - { -1, insn_ds (62, 2, 1, 40, 0), 0 }, - - /* ld r11, (r12) */ - { insn_ds (-1, -1, -1, 0, -1), insn_ds (58, 11, 12, 0, 0), 0 }, - - /* addis r12, r12, 1 */ - { insn_d (-1, -1, -1, -1), insn_d (15, 12, 12, 1), 1 }, - - /* ld r2, (r12) */ - { insn_ds (-1, -1, -1, 0, -1), insn_ds (58, 2, 12, 0, 0), 0 }, - - /* addis r12, r12, 1 */ - { insn_d (-1, -1, -1, -1), insn_d (15, 12, 12, 1), 1 }, - - /* mtctr r11 */ - { insn_xfx (-1, -1, -1, -1), insn_xfx (31, 11, 9, 467), 0 }, - - /* ld r11, (r12) */ - { insn_ds (-1, -1, -1, 0, -1), insn_ds (58, 11, 12, 0, 0), 1 }, - - /* bctr */ - { -1, 0x4e800420, 0 }, - - { 0, 0, 0 } - }; -#define PPC64_STANDARD_LINKAGE1_LEN \ - (sizeof (ppc64_standard_linkage1) / sizeof (ppc64_standard_linkage1[0])) - -static struct insn_pattern ppc64_standard_linkage2[] = - { - /* addis r12, r2, */ - { insn_d (-1, -1, -1, 0), insn_d (15, 12, 2, 0), 0 }, - - /* std r2, 40(r1) */ - { -1, insn_ds (62, 2, 1, 40, 0), 0 }, - - /* ld r11, (r12) */ - { insn_ds (-1, -1, -1, 0, -1), insn_ds (58, 11, 12, 0, 0), 0 }, - - /* addi r12, r12, */ - { insn_d (-1, -1, -1, 0), insn_d (14, 12, 12, 0), 1 }, - - /* mtctr r11 */ - { insn_xfx (-1, -1, -1, -1), insn_xfx (31, 11, 9, 467), 0 }, - - /* ld r2, (r12) */ - { insn_ds (-1, -1, -1, 0, -1), insn_ds (58, 2, 12, 0, 0), 0 }, - - /* ld r11, (r12) */ - { insn_ds (-1, -1, -1, 0, -1), insn_ds (58, 11, 12, 0, 0), 1 }, - - /* bctr */ - { -1, 0x4e800420, 0 }, - - { 0, 0, 0 } - }; -#define PPC64_STANDARD_LINKAGE2_LEN \ - (sizeof (ppc64_standard_linkage2) / sizeof (ppc64_standard_linkage2[0])) - -static struct insn_pattern ppc64_standard_linkage3[] = - { - /* std r2, 40(r1) */ - { -1, insn_ds (62, 2, 1, 40, 0), 0 }, - - /* ld r11, (r2) */ - { insn_ds (-1, -1, -1, 0, -1), insn_ds (58, 11, 2, 0, 0), 0 }, hooks/post-receive -- Repository for Project Archer.