This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Question. I use the nto_xxx_yyy functions _everywhere_ in our code. Would it be acceptable if I changed the define to be like target.h as in:Date: Mon, 06 Dec 2004 10:30:46 -0500 From: Kris Warkentin <kewarken@qnx.com>
Based on Mark's comments, I've refactored this patch to provide a cleaner interface to nto_tdep.c. I created an nto_set_target function so that the targets can initialize their own nto_target_ops and set the target properly rather than initializing current_nto_target.
Thanks. That looks good! I still think you should avoid the
#define nto_xxx_yyy (current_nto_target.xxx_yyy)
defines. They're hiding the fact that you're using a global variable.
Consider a patch that uses current_nto_target.xxx_yyy directly
pre-approved. I've got one additional nit, please see below.
No problem. Thanks.+enum gdb_osabi +nto_elf_osabi_sniffer (bfd *abfd) +{ + if (nto_is_nto_target) + { + return nto_is_nto_target (abfd); + } + return GDB_OSABI_UNKNOWN; +} +
Could you remove the redundant braces here? With that change, this is OK.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |