From: Jan Kratochvil <jan.kratochvil@redhat.com>
To: Joel Brobecker <brobecker@adacore.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [RFA 3/3] Windows-specific iterate_over_objfiles_in_search_order
Date: Sat, 02 Jun 2012 13:57:00 -0000 [thread overview]
Message-ID: <20120602135647.GA18163@host2.jankratochvil.net> (raw)
In-Reply-To: <1338496603-5423-4-git-send-email-brobecker@adacore.com>
On Thu, 31 May 2012 22:36:43 +0200, Joel Brobecker wrote:
> * amd64-windows-tdep.c (amd64_windows_init_abi): Set
> iterate_over_objfiles_in_search_order gdbarch method to
> windows_iterate_over_objfiles_in_search_order.
On Fedora 17 x86_64 with --enable-targets=all I need the patch below.
amd64-windows-tdep.c: In function ‘amd64_windows_init_abi’:
amd64-windows-tdep.c:178:15: error: ‘windows_iterate_over_objfiles_in_search_order’ undeclared (first use in this function)
amd64-windows-tdep.c:178:15: note: each undeclared identifier is reported only once for each function it appears in
I would also prefer to use there in all the definitions/declarations:
typedef int
(iterate_over_objfiles_in_search_order_cb_ftype) (struct objfile *objfile,
void *cb_data);
(feel free to shorten the name)
It does fix the gdb.fortran/library-module.exp regression here:
-FAIL: gdb.fortran/library-module.exp: print var_i in lib
+PASS: gdb.fortran/library-module.exp: print var_i in lib
-FAIL: gdb.fortran/library-module.exp: print var_i in main
+PASS: gdb.fortran/library-module.exp: print var_i in main
But on Fedora 17 (all x86* archs) it regresses these new testcase, they should
apparently be also made target specific:
-PASS: gdb.base/ctxobj.exp: print libctxobj2's this_version_num from partial symtab
-PASS: gdb.base/ctxobj.exp: print libctxobj2's this_version_num from symtab
+FAIL: gdb.base/ctxobj.exp: print libctxobj2's this_version_num from partial symtab
+FAIL: gdb.base/ctxobj.exp: print libctxobj2's this_version_num from symtab
-PASS: gdb.base/print-file-var.exp: print 'print-file-var-lib2.c'::this_version_id
+FAIL: gdb.base/print-file-var.exp: print 'print-file-var-lib2.c'::this_version_id
print this_version_num^M
-$3 = 203^M
-(gdb) PASS: gdb.base/ctxobj.exp: print libctxobj2's this_version_num from partial symtab
+$3 = 104^M
+(gdb) FAIL: gdb.base/ctxobj.exp: print libctxobj2's this_version_num from partial symtab
print this_version_num^M
-$4 = 203^M
-(gdb) PASS: gdb.base/ctxobj.exp: print libctxobj2's this_version_num from symtab
+$4 = 104^M
+(gdb) FAIL: gdb.base/ctxobj.exp: print libctxobj2's this_version_num from symtab
print 'print-file-var-lib2.c'::this_version_id^M
-$2 = 203^M
-(gdb) PASS: gdb.base/print-file-var.exp: print 'print-file-var-lib2.c'::this_version_id
+$2 = 104^M
+(gdb) FAIL: gdb.base/print-file-var.exp: print 'print-file-var-lib2.c'::this_version_id
Thanks,
Jan
gdb/
2012-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
* amd64-windows-tdep.c: Include windows-tdep.h.
diff --git a/gdb/amd64-windows-tdep.c b/gdb/amd64-windows-tdep.c
index f375409..41e0efa 100644
--- a/gdb/amd64-windows-tdep.c
+++ b/gdb/amd64-windows-tdep.c
@@ -23,6 +23,7 @@
#include "gdbtypes.h"
#include "gdbcore.h"
#include "regcache.h"
+#include "windows-tdep.h"
/* The registers used to pass integer arguments during a function call. */
static int amd64_windows_dummy_call_integer_regs[] =
next prev parent reply other threads:[~2012-06-02 13:57 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-31 20:37 [RFA 0/3] Make global symbol objfile search order arch-dependent Joel Brobecker
2012-05-31 20:37 ` [RFA 3/3] Windows-specific iterate_over_objfiles_in_search_order Joel Brobecker
2012-06-02 13:57 ` Jan Kratochvil [this message]
2012-06-02 15:32 ` Joel Brobecker
2012-06-02 15:49 ` Jan Kratochvil
2012-06-04 4:55 ` Doug Evans
2012-06-04 13:02 ` Joel Brobecker
2012-05-31 20:37 ` [RFA 2/3] New "iterate_over_objfiles_in_search_order" gdbarch method Joel Brobecker
2012-05-31 20:37 ` [RFA/commit 1/3] Revert "Search global symbols from the expression's block objfile first." Joel Brobecker
2012-06-01 18:06 ` [RFA 0/3] Make global symbol objfile search order arch-dependent Pedro Alves
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=20120602135647.GA18163@host2.jankratochvil.net \
--to=jan.kratochvil@redhat.com \
--cc=brobecker@adacore.com \
--cc=gdb-patches@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