Sorry about the vagueness of the patch description. I've been working on this off and on for a while but I've been lazy about submitting. By and large, most of this is just about being able to switch targets to future-proof against a multi-arch gdb. Also I've created hooks for recognizing when we're dealing with a Neutrino target. Unfortunately there is no nice way to recognize our binaries so I have to fall back on cheating. A few other things are there as well such as an 'in_dynsym_resolve_code' for better solib support, a core sniffer and some assorted re-arrangement of things. I had started getting rid of some of the deprecated things (core_fns) but was having trouble so I ripped that part of the patch out to work on and submit later. Looks like I'm also going to have to get rid of to_xfer_memory. cheers, Kris ChangeLog entry: 2004-11-19 Kris Warkentin * nto-tdep.h: Include osabi.h. Prototypes for generic Neutrino osabi sniffer, signal handling initializer and 'in_dynsym_resolve_code' function. (struct nto_target_ops): Put comments inline with struct. Add osabi sniffer hook. Redefine macros to permit testing/assignment. * nto-tdep.c (nto_find_and_open_solib): Allocate all buffers dynamically to support arbitrary root paths. Check for basename of lib in search path and then check for absolute. (nto_in_dynsym_resolve_code): New function. (nto_core_sniffer): New function. (regset_core_fns): Register core sniffer. (nto_initialize_signals): New function. (_initialize_nto_tdep): Move signal initialization code to above to avoid initialization race conditions. * nto-procfs.c: Minor formatting/indenting changes. (procfs_is_nto_target): New function. (procfs_open): Set nto_is_nto_target. (_initialize_procfs): Ditto. Remove notice_signals() call to avoid initialization race conditions. (procfs_create_inferior): Resume inferior after creation. * i386-nto-tdep.c (init_i386nto_ops): Use new macros for assignment. (i386nto_init_abi): Initialize signals. Set TARGET_SO_IN_DYNSYM_RESOLVE_CODE. (_initialize_i386nto_tdep): Register osabi sniffer.