From: Pedro Alves <palves@redhat.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: gdb-patches@sourceware.org
Subject: Re: [PATCH] gdb: Move DJGPP/go32 bits to their own tdep file
Date: Wed, 12 Apr 2017 14:57:00 -0000 [thread overview]
Message-ID: <43ad7b9b-e1e8-308b-a24d-b1c7a5425777@redhat.com> (raw)
In-Reply-To: <837f2pk7kq.fsf@gnu.org>
On 04/12/2017 03:45 PM, Eli Zaretskii wrote:
> It's fine with me if you decide to make only that change. I just
> think that if you had this difficulty with go32 bits, someone else
> might have the same difficulty with SVR4 bits. That's why I wrote
> what I wrote.
Hmm, actually, the SVR4 bits are likely useless by now? It seems to me
that the only way to activate them is to manually do "set osabi SVR4".
At least according to a grep by GDB_OSABI_SVR4:
defs.h: GDB_OSABI_SVR4,
i386-tdep.c: gdbarch_register_osabi (bfd_arch_i386, 0, GDB_OSABI_SVR4,
I.e., unlike most other ports, there's no osabi sniffer to auto-detect
SVR4.
Grepping for i386_svr4_init_abi, we see that Solaris is the only other
SVR4-like port that reuses the function:
i386-tdep.c:4474:i386_svr4_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
i386-tdep.c:9093: i386_svr4_init_abi);
i386-tdep.h:433:extern void i386_svr4_init_abi (struct gdbarch_info, struct gdbarch *);
i386-sol2-tdep.c:109: i386_svr4_init_abi (info, gdbarch);
So maybe we should drop GDB_OSABI_SVR4, and inline/move the i386_svr4_init_abi
function to i386-sol2-tdep.c.
Thanks,
Pedro Alves
next prev parent reply other threads:[~2017-04-12 14:57 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-12 13:31 Pedro Alves
2017-04-12 13:47 ` Eli Zaretskii
2017-04-12 14:07 ` Pedro Alves
2017-04-12 14:26 ` Pedro Alves
2017-04-12 14:45 ` Eli Zaretskii
2017-04-12 14:57 ` Pedro Alves [this message]
2017-04-12 15:32 ` Pedro Alves
2017-04-12 14:42 ` Eli Zaretskii
2017-04-12 14:46 ` Pedro Alves
2017-04-12 14:58 ` Eli Zaretskii
2017-04-12 15:02 ` 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=43ad7b9b-e1e8-308b-a24d-b1c7a5425777@redhat.com \
--to=palves@redhat.com \
--cc=eliz@gnu.org \
--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