This patch is to address bug 19374 on solaris.
When running gdb under eclipse/CDT on Solaris, eclipse runs gdb with:
gdb --interpreter mi2 --nx
During execution it ends up sending the following string to gdb:
16-list-thread-groups --available
... at which point gdb crashes.
This patch partially reverts the change in the following:
http://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=commitdiff;h=e75fdfcad1c868eae5396a95be9dd18010406306#patch4
... by re-adding the check for ops->beneath != NULL and returning
TARGET_XFER_E_IO.
I cannot easily run the test suite against these changes right now.
If this gets rejected based on that, I'll see about getting something
setup at home to run the tests when I have time.
----
note: this patch was tested against 8.1.1. I don't know [yet] whether
this is still a problem in 8.2 because of the procfs C++ conversion.
The same logic still exists but "beneath" appears to be a function
object.
-brian
ps, my assignment/release forms were completed/received 10/30/2017