Hi Marc,
Thanks for your answer. Apparently my gdb doesn’t understand –list-thread-groups … I didn’t compile that gdb myself, is there any recommendation how gdb should ideally be compiled for the CDT ? Of course I’ll
want non-stop-mode, reverse debug, multi-attach, multicore visualizer and all the other goodies
J
My CDT is a recent build from cdt-maint on top of Eclipse 3.8.1 (I think I was using build #388).
-bash-3.00$ gdb
GNU gdb (GDB) 7.4
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "sparc-sun-solaris2.10".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
(gdb) -list-thread-groups --available
Undefined command: "-list-thread-groups". Try "help".
(gdb) -list-thread-groups
Undefined command: "-list-thread-groups". Try "help".
(gdb)
Thanks,
Martin
--
Martin Oberhuber, SMTS / Product Architect – Development Tools,
Wind River
direct +43.662.457915.85 fax +43.662.457915.6
From: cdt-dev-bounces@xxxxxxxxxxx [mailto:cdt-dev-bounces@xxxxxxxxxxx]
On Behalf Of Marc Khouzam
Sent: Thursday, January 24, 2013 7:19 PM
To: 'CDT General developers list.'
Subject: Re: [cdt-dev] "Attach Process" dialog for gdb running remotely ?
It is not obvious to me why you would get a local list of processes...
You can look at the gdb traces and see what is happening differently:
To fill the process prompter with values, CDT asks GDB for the list of processes using
-list-thread-groups --available
If that command does not work (as it may not for Solaris), the remote session should fall back
to asking for a pid directly. For the local case, the list will be provided by CDT itself.
I wonder if there is some confusion between the remote and local case?
What version of CDT are you using?
From:
cdt-dev-bounces@xxxxxxxxxxx [mailto:cdt-dev-bounces@xxxxxxxxxxx]
On Behalf Of Oberhuber, Martin
Sent: Thursday, January 24, 2013 11:43 AM
To: cdt-dev@xxxxxxxxxxx
Subject: [cdt-dev] "Attach Process" dialog for gdb running remotely ?
Hi,
I have an odd problem, trying to debug a remote application with gdb running remotely.
Here’s what I do:
1.
Create a new “C/C++ Attach Application” Launch
2.
Leave the project and app fields empty on the main tab
3.
Enter “ssh szg-vm01-qa-lx2 gdb“ as the debugger to use on the debugger tab
Launch it, and wohoo I get a Process picker dialog showing remote processes, everything works fine !
The remote host in that case is RHEL 5.8 with gdb 7.0, NFS-shared file system.
BUT
When I try the same against a remote Solaris 10 host running gdb-7.4 , I’m getting a LOCAL
Process picker dialog, showing the local processes (and the “New…” button enabled).
I don’t have the full file system shared in that case.
What could be the reason why I don’t get a remote process picker in the 2nd case ?
Can I enable logging of any kind to troubleshoot ?
Thanks,
Martin
--
Martin Oberhuber, SMTS / Product Architect
– Development Tools, Wind River
direct +43.662.457915.85 fax +43.662.457915.6