nto-procfs.c: Add "target native".
authorPedro Alves <palves@redhat.com>
Wed, 21 May 2014 17:30:45 +0000 (18:30 +0100)
committerPedro Alves <palves@redhat.com>
Wed, 21 May 2014 17:30:45 +0000 (18:30 +0100)
commit132f8e032c8e82980c12d861089da561fc4dda35
treedcb67ad6811f04153ece17173a75f4cc4758dca6
parent03c136c31c777605cb4f13cfc1286d21b4ffa3b0
nto-procfs.c: Add "target native".

This makes QNX/NTO end up with two targets.  It preserves "target
procfs <node>", and adds a "native" target to be like other native
ports.

Not tested.

gdb/
2014-05-21  Pedro Alves  <palves@redhat.com>

* nto-procfs.c (procfs_can_run): New function.
(nto_procfs_ops): New global.
(init_procfs_targets): New, based on procfs_target.  Install
"target native" in addition to "target procfs".
(_initialize_procfs): Call init_procfs_targets instead of adding
the target here.
gdb/ChangeLog
gdb/nto-procfs.c