public inbox for archer-commits@sourceware.org help / color / mirror / Atom feed
From: jkratoch@sourceware.org To: archer-commits@sourceware.org Subject: [SCM] archer-jankratochvil-ifunc: Merge branch 'relatedbpt-type-findpcpart-fmt-reader-bpt-test' into archer-jankratochvil-ifunc Date: Sat, 19 Mar 2011 12:58:00 -0000 [thread overview] Message-ID: <20110319125811.30379.qmail@sourceware.org> (raw) The branch, archer-jankratochvil-ifunc has been updated via b6def1400072b7845e6897c730c7140964f8b240 (commit) via 4725b915226faab0d250fa2a4aa07d84621cefaf (commit) via e1f3a937441c3f784b8d042632cad5d442228914 (commit) via bd594e5b34e261cd8fbb294b7a5f7cddf42bfda7 (commit) from 45b6ad3b17d0211312f13f944d09fd1766682b58 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email. - Log ----------------------------------------------------------------- commit b6def1400072b7845e6897c730c7140964f8b240 Merge: 45b6ad3 4725b91 Author: Jan Kratochvil <jan.kratochvil@redhat.com> Date: Sat Mar 19 13:58:00 2011 +0100 Merge branch 'relatedbpt-type-findpcpart-fmt-reader-bpt-test' into archer-jankratochvil-ifunc commit 4725b915226faab0d250fa2a4aa07d84621cefaf Merge: 9c7e1fb e1f3a93 Author: Jan Kratochvil <jan.kratochvil@redhat.com> Date: Sat Mar 19 13:57:21 2011 +0100 Merge branch 'relatedbpt-type-findpcpart-fmt-reader-bpt' into relatedbpt-type-findpcpart-fmt-reader-bpt-test commit e1f3a937441c3f784b8d042632cad5d442228914 Merge: 6c08871 bd594e5 Author: Jan Kratochvil <jan.kratochvil@redhat.com> Date: Sat Mar 19 13:57:21 2011 +0100 Merge branch 'relatedbpt-type-findpcpart-fmt-reader' into relatedbpt-type-findpcpart-fmt-reader-bpt commit bd594e5b34e261cd8fbb294b7a5f7cddf42bfda7 Author: Jan Kratochvil <jan.kratochvil@redhat.com> Date: Sat Mar 19 13:57:15 2011 +0100 foo ----------------------------------------------------------------------- Summary of changes: gdb/elfread.c | 23 +++++++++++------------ 1 files changed, 11 insertions(+), 12 deletions(-) First 500 lines of diff: diff --git a/gdb/elfread.c b/gdb/elfread.c index 7ff83e9..64779f3 100644 --- a/gdb/elfread.c +++ b/gdb/elfread.c @@ -857,22 +857,21 @@ elf_gnu_ifunc_resolve_name (const char *function_name, CORE_ADDR *function_address_p) { struct minimal_symbol *msym; + struct gdbarch *gdbarch; msym = gnu_ifunc_resolve_by_cache (function_name); - if (msym != NULL) - { - *function_address_p = SYMBOL_VALUE_ADDRESS (msym); - return 1; - } + if (msym == NULL) + msym = gnu_ifunc_resolve_by_got (function_name); - msym = gnu_ifunc_resolve_by_got (function_name); - if (msym != NULL) - { - *function_address_p = SYMBOL_VALUE_ADDRESS (msym); - return 1; - } + if (msym == NULL) + return 0; - return 0; + gdbarch = SYMBOL_OBJ_SECTION (msym)->objfile->gdbarch; + *function_address_p = SYMBOL_VALUE_ADDRESS (msym); + *function_address_p + = gdbarch_convert_from_func_ptr_addr (gdbarch, *function_address_p, + ¤t_target); + return 1; } /* Call STT_GNU_IFUNC - a function returning addresss of a real function to hooks/post-receive -- Repository for Project Archer.
next reply other threads:[~2011-03-19 12:58 UTC|newest] Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top 2011-03-19 12:58 jkratoch [this message] -- strict thread matches above, loose matches on Subject: below -- 2011-03-19 20:34 jkratoch 2011-03-19 20:18 jkratoch 2011-03-19 19:45 jkratoch 2011-03-19 15:46 jkratoch 2011-03-19 15:13 jkratoch 2011-03-19 8:47 jkratoch 2011-03-17 20:44 jkratoch 2011-03-17 19:08 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=20110319125811.30379.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: linkBe 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).