Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » ERR[1]: GdbPicl
ERR[1]: GdbPicl [message #26568] Thu, 25 April 2002 10:19 Go to next message
Eclipse UserFriend
Originally posted by: masen.de.ibm.com

Meanwhile I work with Linux WSAD 4.0.3 based on Eclipse 1.0 and the CDT
Rel1
and it works fine.

But if I set a breakpoint and try to debug the demo payroll application
about
Debug->Start a C/C++ Application I get the following messages in the Output
window.

java -cp
/opt/wsappdev/plugins/com.ibm.debug:/opt/wsappdev/plugins/co m.ibm.debug/ibm_debug.jar:/opt/wsappdev/plugins/org.eclipse. cdt.debug.gdbPicl:/opt/wsappdev/plugins/org.eclipse.cdt.debu g.gdbPicl/debug_gdbPicl.jar

GdbPicl (02/04/25)
Copyright ...

GDB Waiting for connection on port 32800.
ERR[1]: GdbPicl: An attempr to connect to the UI Deamon failed. Check the
host name and port.
Command completed (exit code = 255)

Any idea ?

Regards,
Volker
Re: ERR[1]: GdbPicl [message #26573 is a reply to message #26568] Thu, 25 April 2002 14:05 Go to previous messageGo to next message
Eclipse UserFriend
You need to start the UI daemon that runs in the workbench and listens for
debug engines (like gdbPicl) that want to connect.

To do this, click on the toolbar debug icon (the one that has a drop down
beside it) and select "Listen for debug engines"

This will start the daemon and now gdbPicl should start and connect
correctly.


"Volker Masen" <masen@de.ibm.com> wrote in message
news:aa93a1$jab$1@rogue.oti.com...
> Meanwhile I work with Linux WSAD 4.0.3 based on Eclipse 1.0 and the CDT
> Rel1
> and it works fine.
>
> But if I set a breakpoint and try to debug the demo payroll application
> about
> Debug->Start a C/C++ Application I get the following messages in the
Output
> window.
>
> java -cp
>
/opt/wsappdev/plugins/com.ibm.debug:/opt/wsappdev/plugins/co m.ibm.debug/ibm_
debug.jar:/opt/wsappdev/plugins/org.eclipse.cdt.debug.gdbPic l:/opt/wsappdev/
plugins/org.eclipse.cdt.debug.gdbPicl/debug_gdbPicl.jar
>
> GdbPicl (02/04/25)
> Copyright ...
>
> GDB Waiting for connection on port 32800.
> ERR[1]: GdbPicl: An attempr to connect to the UI Deamon failed. Check the
> host name and port.
> Command completed (exit code = 255)
>
> Any idea ?
>
> Regards,
> Volker
>
>
Re: ERR[1]: GdbPicl [message #26582 is a reply to message #26573] Thu, 25 April 2002 15:14 Go to previous messageGo to next message
Eclipse UserFriend
Alan Boxall wrote:

> You need to start the UI daemon that runs in the workbench and listens for
> debug engines (like gdbPicl) that want to connect.

Users don't need to do this explicitly, the daemon is started when you
Debug->Start a C/C++ Application. If that isn't happening for Volker
then he has a configuration problem or a bug.

Brian
Re: ERR[1]: GdbPicl [message #26661 is a reply to message #26568] Thu, 25 April 2002 15:43 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

I agree with Brian. Users shouldn't need to explicitly start the daemon
when
they try to start a debug session.

To help me diagnose this problem, could you please do the following and
provide me with the trace file created:

1. Extract cpp_minerssrc.zip file from
...plugins/org.eclipse.cdt.cpp.miners.
2. Go into directory,
..plugins/org.eclipse.cdt.cpp.miners/org/eclipse/cdt/cpp/min ers/debug.
3. Inside this directory, there is a file named DebugMiner.properties.
Open the file and append these options to debug_options: -DJT_EVT=1
-DJT_DBG=1 > picltrace.txt 2>&1
4. Restart Eclipse and launch the same debug session.

There should be a trace file created in your project's directory. The
name of the trace file is picltrace.txt.

Please provide me with this trace file.

Also please check the following for me:
1. The invocation line you posted from Output window is truncated. Could
you please try getting the entire line that starts with "java -cp /opt/
...".
I need this to find out what options were passed to the picl when it was
started.

1. When the debug session is started, did you see the daemon being
started in your Debug window? If the daemon is started, you should see
the following lines:

- payroll [Start a C/C++ Application]
-> Debug UI daemon listening on 8001

2. If your daemon is started properly, your machine needs to know what
localhost mean. To check if this is true, try pinging localhost from a
command line window. If you are able to ping, then you are ok with this
setting.

Hope this helps.

Samantha


Volker Masen wrote:

> Meanwhile I work with Linux WSAD 4.0.3 based on Eclipse 1.0 and the CDT
> Rel1
> and it works fine.

> But if I set a breakpoint and try to debug the demo payroll application
> about
> Debug->Start a C/C++ Application I get the following messages in the Output
> window.

> java -cp
>
/opt/wsappdev/plugins/com.ibm.debug:/opt/wsappdev/plugins/co m.ibm.debug/ibm_debug.jar:/opt/wsappdev/plugins/org.eclipse. cdt.debug.gdbPicl:/opt/wsappdev/plugins/org.eclipse.cdt.debu g.gdbPicl/debug_gdbPicl.jar

> GdbPicl (02/04/25)
> Copyright ...

> GDB Waiting for connection on port 32800.
> ERR[1]: GdbPicl: An attempr to connect to the UI Deamon failed. Check the
> host name and port.
> Command completed (exit code = 255)

> Any idea ?

> Regards,
> Volker
Re: ERR[1]: GdbPicl [message #26902 is a reply to message #26661] Fri, 26 April 2002 10:28 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: masen.de.ibm.com

Samantha,
see my remarks.

Samantha Chan wrote:

> 1. Extract cpp_minerssrc.zip file from
> ...plugins/org.eclipse.cdt.cpp.miners.
> 2. Go into directory,
> ..plugins/org.eclipse.cdt.cpp.miners/org/eclipse/cdt/cpp/min ers/debug.
> 3. Inside this directory, there is a file named DebugMiner.properties.
> Open the file and append these options to debug_options: -DJT_EVT=1
> -DJT_DBG=1 > picltrace.txt 2>&1
> 4. Restart Eclipse and launch the same debug session.

> There should be a trace file created in your project's directory. The
> name of the trace file is picltrace.txt.

> Please provide me with this trace file.

The contents of the picltrace.txt is:
GdbPicl (02/04/26)
Copyright (c) 1995, 2001, 2002 International Business Machines Corporation.
All rights reserved.
This program and the accompanying materials are made available
under the terms of the Common Public License which accompanies
this distribution.

GDB Waiting for connection on port 32848.
ERR[1]: GdbPicl: An attempt to connect to the UI Daemon failed. Check the
host name and port.


> Also please check the following for me:
> 1. The invocation line you posted from Output window is truncated. Could
> you please try getting the entire line that starts with "java -cp /opt/
> ...".
> I need this to find out what options were passed to the picl when it was
> started.
java -cp
/opt/wsappdev/plugins/com.ibm.debug:/opt/wsappdev/plugins/co m.ibm.debug/ibm_debug.jar:/opt/wsappdev/plugins/org.eclipse. cdt.debug.gdbPicl:/opt/wsappdev/plugins/org.eclipse.cdt.debu g.gdbPicl/debug_gdbPicl.jar
-DJT_EVT=1 -DJT_DBG=1 > picltrace.txt 2>&1

> 1. When the debug session is started, did you see the daemon being
> started in your Debug window? If the daemon is started, you should see
> the following lines:

> - payroll [Start a C/C++ Application]
> -> Debug UI daemon listening on 8001
Yes, I see this lines but I'm not able to select the resume button > in
the
Debug View.

> 2. If your daemon is started properly, your machine needs to know what
> localhost mean. To check if this is true, try pinging localhost from a
> command line window. If you are able to ping, then you are ok with this
> setting.
ping localhost shows following information:
PING localhost.localdomain (127.0.0.1) from 127.0.0.1 : 56(84) bytes of
data.
64 bytes from localhost.localdomain (127.0.0.1): icmp_seq=0 ttl=255
time=562
usec
64 bytes from localhost.localdomain (127.0.0.1): icmp_seq=1 ttl=255
time=35
usec

Regards,
Volker
Re: ERR[1]: GdbPicl [message #26942 is a reply to message #26902] Fri, 26 April 2002 10:59 Go to previous messageGo to next message
Eclipse UserFriend
I know that the com.ibm.debug jar at some point changed it's name from ibm_debug.jar to ibmdebug.jar. This might be the case here. Check inside your com.ibm.debug plugin directory to make sure it's the same
as the one that get's passed into the classpath when launching gdb_Picl.

Dave

Volker Masen wrote:

> Samantha,
> see my remarks.
>
> Samantha Chan wrote:
>
> > 1. Extract cpp_minerssrc.zip file from
> > ...plugins/org.eclipse.cdt.cpp.miners.
> > 2. Go into directory,
> > ..plugins/org.eclipse.cdt.cpp.miners/org/eclipse/cdt/cpp/min ers/debug.
> > 3. Inside this directory, there is a file named DebugMiner.properties.
> > Open the file and append these options to debug_options: -DJT_EVT=1
> > -DJT_DBG=1 > picltrace.txt 2>&1
> > 4. Restart Eclipse and launch the same debug session.
>
> > There should be a trace file created in your project's directory. The
> > name of the trace file is picltrace.txt.
>
> > Please provide me with this trace file.
>
> The contents of the picltrace.txt is:
> GdbPicl (02/04/26)
> Copyright (c) 1995, 2001, 2002 International Business Machines Corporation.
> All rights reserved.
> This program and the accompanying materials are made available
> under the terms of the Common Public License which accompanies
> this distribution.
>
> GDB Waiting for connection on port 32848.
> ERR[1]: GdbPicl: An attempt to connect to the UI Daemon failed. Check the
> host name and port.
>
> > Also please check the following for me:
> > 1. The invocation line you posted from Output window is truncated. Could
> > you please try getting the entire line that starts with "java -cp /opt/
> > ...".
> > I need this to find out what options were passed to the picl when it was
> > started.
> java -cp
> /opt/wsappdev/plugins/com.ibm.debug:/opt/wsappdev/plugins/co m.ibm.debug/ibm_debug.jar:/opt/wsappdev/plugins/org.eclipse. cdt.debug.gdbPicl:/opt/wsappdev/plugins/org.eclipse.cdt.debu g.gdbPicl/debug_gdbPicl.jar
> -DJT_EVT=1 -DJT_DBG=1 > picltrace.txt 2>&1
>
> > 1. When the debug session is started, did you see the daemon being
> > started in your Debug window? If the daemon is started, you should see
> > the following lines:
>
> > - payroll [Start a C/C++ Application]
> > -> Debug UI daemon listening on 8001
> Yes, I see this lines but I'm not able to select the resume button > in
> the
> Debug View.
>
> > 2. If your daemon is started properly, your machine needs to know what
> > localhost mean. To check if this is true, try pinging localhost from a
> > command line window. If you are able to ping, then you are ok with this
> > setting.
> ping localhost shows following information:
> PING localhost.localdomain (127.0.0.1) from 127.0.0.1 : 56(84) bytes of
> data.
> 64 bytes from localhost.localdomain (127.0.0.1): icmp_seq=0 ttl=255
> time=562
> usec
> 64 bytes from localhost.localdomain (127.0.0.1): icmp_seq=1 ttl=255
> time=35
> usec
>
> Regards,
> Volker
Re: ERR[1]: GdbPicl [message #27022 is a reply to message #26942] Fri, 26 April 2002 12:07 Go to previous messageGo to next message
Eclipse UserFriend
David McKnight wrote:

> I know that the com.ibm.debug jar at some point changed it's name from ibm_debug.jar to ibmdebug.jar. This might be the case here. Check inside your com.ibm.debug plugin directory to make sure it's the same
> as the one that get's passed into the classpath when launching gdb_Picl.

This is unlikely to be the problem. That change happened
between R1 and R2 and the launcher was changed at the same
time.

Volker, are you sure you have captured the full invocation line?
I have the same configuration (WSAD 4.0.3 + CDT 1.0)
and my invocation line (it is really annoying that we
can't cut and paste this, I will open a defect about that) is

java -cp /opt/wsappdev/plugins/com.ibm.debug:/opt/wsappdev/plugins/co m.ibm.debug/ibm_debug.jar:/opt/wsappdev/plugins/org.eclipse. cdt.debug.gdbPicl:/opt/wsappdev/plugins/org.eclipse.cdt.debu g.gdbPicl/debug_gdbPicl.jar org.eclipse.cdt.debug.gdbPicl.Gdb -qhost=thomson -quiport=8001 -startupKey=0 -gdbPath=/opt/wsappdev/plugins/org.eclipse.cdt.debug.gdbPicl

The line you reported ended after the classpath and would
not have produced the messages you saw, so could you
check the output window once more please?

Brian
Re: ERR[1]: GdbPicl [message #27730 is a reply to message #27022] Mon, 29 April 2002 11:33 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: masen.de.ibm.com

Brian Thomson wrote:

> java -cp
/opt/wsappdev/plugins/com.ibm.debug:/opt/wsappdev/plugins/co m.ibm.debug/ibm_debug.jar:/opt/wsappdev/plugins/org.eclipse. cdt.debug.gdbPicl:/opt/wsappdev/plugins/org.eclipse.cdt.debu g.gdbPicl/debug_gdbPicl.jar
org.eclipse.cdt.debug.gdbPicl.Gdb -qhost=thomson -quiport=8001
-startupKey=0
-gdbPath=/opt/wsappdev/plugins/org.eclipse.cdt.debug.gdbPicl

> The line you reported ended after the classpath and would
> not have produced the messages you saw, so could you
> check the output window once more please?

Excuse me, last time I doesn't find the scroll bar to see the whole line.
But
now, here is the whole line:
java -cp
/opt/wsappdev/plugins/com.ibm.debug:/opt/wsappdev/plugins/co m.ibm.debug/ibm_debug.jar:/opt/wsappdev/plugins/org.eclipse. cdt.debug.gdbPicl:/opt/wsappdev/plugins/org.eclipse.cdt.debu g.gdbPicl/debug_gdbPicl.jar
-DJT_EVT=1 -DJT_DBG=1 > picltrace.txt 2>&1
org.eclipse.cdt.debug.gdbPicl.Gdb
-qhost=masen -quiport=8001 -startupKey=0 -gdbPath=...

I see, the -gdbPath is different, in my environment I have value ...
instead
of /opt/wsappdev/plugins/org.eclipse.cdt.debug.gdbPicl

Where can I set this gdbPath ?

Regards,
Volker
Re: ERR[1]: GdbPicl [message #27960 is a reply to message #27730] Tue, 30 April 2002 11:16 Go to previous messageGo to next message
Eclipse UserFriend
I don't think GDBPath matters in this case.
This path was created to locate a script file that GDBPicl needs for
starting up GDB. This path should always point to the directory where
GDBPicl resides.
I think your gdbPath is set up correctly here.

Since the launcher has started up GDBPicl with "-qhost=masen", could you
please try pinging "masen" once more and see if your machine knows this
machine name? You should get similar responses as in pinging "localhost".

Thanks
Samantha


Volker Masen wrote:

> Brian Thomson wrote:

> > java -cp
>
/opt/wsappdev/plugins/com.ibm.debug:/opt/wsappdev/plugins/co m.ibm.debug/ibm_debug.jar:/opt/wsappdev/plugins/org.eclipse. cdt.debug.gdbPicl:/opt/wsappdev/plugins/org.eclipse.cdt.debu g.gdbPicl/debug_gdbPicl.jar
> org.eclipse.cdt.debug.gdbPicl.Gdb -qhost=thomson -quiport=8001
> -startupKey=0
> -gdbPath=/opt/wsappdev/plugins/org.eclipse.cdt.debug.gdbPicl

> > The line you reported ended after the classpath and would
> > not have produced the messages you saw, so could you
> > check the output window once more please?

> Excuse me, last time I doesn't find the scroll bar to see the whole line.
> But
> now, here is the whole line:
> java -cp
>
/opt/wsappdev/plugins/com.ibm.debug:/opt/wsappdev/plugins/co m.ibm.debug/ibm_debug.jar:/opt/wsappdev/plugins/org.eclipse. cdt.debug.gdbPicl:/opt/wsappdev/plugins/org.eclipse.cdt.debu g.gdbPicl/debug_gdbPicl.jar
> -DJT_EVT=1 -DJT_DBG=1 > picltrace.txt 2>&1
> org.eclipse.cdt.debug.gdbPicl.Gdb
> -qhost=masen -quiport=8001 -startupKey=0 -gdbPath=...

> I see, the -gdbPath is different, in my environment I have value ...
> instead
> of /opt/wsappdev/plugins/org.eclipse.cdt.debug.gdbPicl

> Where can I set this gdbPath ?

> Regards,
> Volker
Re: ERR[1]: GdbPicl [message #28886 is a reply to message #27960] Thu, 02 May 2002 08:02 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: masen.de.ibm.com

That seems to be the problem. Pinging "masen" shows "unrecognized
hostname", but pinging "localhost" works. I have to check my linux
environment, what the problem is if I try to ping "masen".
Can I change the -ghost option to "localhost" ? How can I do that ?

Regards,
Volker

Samantha Chan wrote:

> I don't think GDBPath matters in this case.
> This path was created to locate a script file that GDBPicl needs for
> starting up GDB. This path should always point to the directory where
> GDBPicl resides.
> I think your gdbPath is set up correctly here.

> Since the launcher has started up GDBPicl with "-qhost=masen", could you
> please try pinging "masen" once more and see if your machine knows this
> machine name? You should get similar responses as in pinging "localhost".

> Thanks
> Samantha
Re: ERR[1]: GdbPicl [message #28981 is a reply to message #28886] Thu, 02 May 2002 16:31 Go to previous messageGo to next message
Eclipse UserFriend
Currently, there is no facility to let you change the host name.
I believe the launcher of the debug engine queries the host name
and constructs the engine invocation line using the host name.

To make your machine understand your hostname:
1. use \"ifconfig\" to find out what your ip address is.
2. Assuming your ip address is 127.0.0.1, add the following line to
/etc/hosts:

127.0.0.1 masen

After editing /etc/hosts, you should be able to ping masen.

Hope this helps.

Samantha

Volker Masen wrote:

> That seems to be the problem. Pinging \"masen\" shows \"unrecognized
> hostname\", but pinging \"localhost\" works. I have to check my linux
> environment, what the problem is if I try to ping \"masen\".
> Can I change the -ghost option to \"localhost\" ? How can I do that ?

> Regards,
> Volker

> Samantha Chan wrote:

> > I don\'t think GDBPath matters in this case.
> > This path was created to locate a script file that GDBPicl needs for
> > starting up GDB. This path should always point to the directory where
> > GDBPicl resides.
> > I think your gdbPath is set up correctly here.

> > Since the launcher has started up GDBPicl with \"-qhost=masen\", could you
> > please try pinging \"masen\" once more and see if your machine knows this
> > machine name? You should get similar responses as in pinging
\"localhost\".

> > Thanks
> > Samantha
Re: ERR[1]: GdbPicl [message #29019 is a reply to message #28981] Thu, 02 May 2002 18:44 Go to previous messageGo to next message
Eclipse UserFriend
Hmm, it seems to me we should be able to make this more foolproof.
If we are debugging a local project couldn't the launcher set
-qhost=localhost ?


Brian
Re: ERR[1]: GdbPicl [message #29057 is a reply to message #28981] Fri, 03 May 2002 02:45 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: masen.de.ibm.com

After I was able to ping my hostname about ping masen, the debug engine
works.
Thanks for the help and the patience to solve my problem.

Regards,
Volker

Samantha Chan wrote:

> Currently, there is no facility to let you change the host name.
> I believe the launcher of the debug engine queries the host name
> and constructs the engine invocation line using the host name.

> To make your machine understand your hostname:
> 1. use \"ifconfig\" to find out what your ip address is.
> 2. Assuming your ip address is 127.0.0.1, add the following line to
> /etc/hosts:

> 127.0.0.1 masen

> After editing /etc/hosts, you should be able to ping masen.

> Hope this helps.

> Samantha
Re: ERR[1]: GdbPicl [message #29087 is a reply to message #29019] Fri, 03 May 2002 10:20 Go to previous messageGo to next message
Eclipse UserFriend
After checking out the source code... the launcher uses localhost by
default and then queries the machine host name. If there is a valid host
name, then it would use the host name instead of localhost. A fix is put
into the launcher for R2. Instead of querying machine name, an
alternative would be using the machine's ip address to make the
connection.

Samantha

Brian Thomson wrote:


> Hmm, it seems to me we should be able to make this more foolproof.
> If we are debugging a local project couldn't the launcher set
> -qhost=localhost ?


> Brian
Re: ERR[1]: GdbPicl [message #29119 is a reply to message #29019] Fri, 03 May 2002 10:56 Go to previous messageGo to next message
Eclipse UserFriend
Brian Thomson wrote:


> Hmm, it seems to me we should be able to make this more foolproof.
> If we are debugging a local project couldn't the launcher set
> -qhost=localhost ?

Can one see a problem if we were to use -qhost=111.222.333.444
where that number is the actual ip address of the computer?
It would avoid the problem experienced by Volker, and any DNS
unavailability.

Robert.
Re: ERR[1]: GdbPicl [message #29157 is a reply to message #29119] Fri, 03 May 2002 11:49 Go to previous messageGo to next message
Eclipse UserFriend
Robert wrote:

> Can one see a problem if we were to use -qhost=111.222.333.444
> where that number is the actual ip address of the computer?
> It would avoid the problem experienced by Volker, and any DNS
> unavailability.

The question then becomes where do you get that number?

Not by resolving the hostname on the UI client, that wouldn't have
helped Volker, his hostname couldn't be resolved.

Not by enumerating the machine's network addresses either,
in the case of a machine with multiple IPs (common in servers,
but also happens in clients using VPN) you won't know which one
to pick. And if there is an address-translating firewall between
the client and server then the "correct" choice won't even be in
that list.


Brian
Re: ERR[1]: GdbPicl [message #29349 is a reply to message #29157] Fri, 03 May 2002 17:27 Go to previous message
Eclipse UserFriend
Brian Thomson wrote:



> Robert wrote:

> > Can one see a problem if we were to use -qhost=111.222.333.444
> > where that number is the actual ip address of the computer?
> > It would avoid the problem experienced by Volker, and any DNS
> > unavailability.

> The question then becomes where do you get that number?

The call I was thinking was: InetAddress.getLocalHost().getHostAddress()
instead of the current InetAddress.getLocalHost().getHostName() .

> Not by resolving the hostname on the UI client, that wouldn\'t have
> helped Volker, his hostname couldn\'t be resolved.

You are right, that caused an exception in either case.
A further problem was in gdbPicl, which was causing its own exception
skipping the connection altogether.

> Not by enumerating the machine\'s network addresses either,
> in the case of a machine with multiple IPs (common in servers,
> but also happens in clients using VPN) you won\'t know which one
> to pick. And if there is an address-translating firewall between
> the client and server then the \"correct\" choice won\'t even be in
> that list.

There was one case where an ip address worked while the hostname didn\'t:
on a
remote scenario, where the remote target machine was setup correctly on DNS
while the local machine running the Eclipse UI wasn\'t.
In that case giving the remote the hostname didn\'t help, while if giving
the ip address, it managed to connect back to the UI.
Previous Topic:cdt on windows
Next Topic:CDT implementation question
Goto Forum:
  


Current Time: Tue Jun 17 10:29:46 EDT 2025

Powered by FUDForum. Page generated in 0.07010 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top