* attach to a socket in localhost:8787
@ 2006-09-28 8:14 op132650c
2006-09-28 12:53 ` Daniel Jacobowitz
2006-09-28 18:26 ` Michael Snyder
0 siblings, 2 replies; 10+ messages in thread
From: op132650c @ 2006-09-28 8:14 UTC (permalink / raw)
To: gdb
Hi,
i would like to debug my program remotely, attaching my the gdb to a socket on
localhost:8787. How can i do that?
I've tried target remote 127.0.0.1:8787 and it doesn't work. Ie, the Jboss
application server aborts.
Thanks,
Pedro
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: attach to a socket in localhost:8787
2006-09-28 8:14 attach to a socket in localhost:8787 op132650c
@ 2006-09-28 12:53 ` Daniel Jacobowitz
2006-09-28 13:29 ` Denis PILAT
2006-09-28 14:21 ` op132650c
2006-09-28 18:26 ` Michael Snyder
1 sibling, 2 replies; 10+ messages in thread
From: Daniel Jacobowitz @ 2006-09-28 12:53 UTC (permalink / raw)
To: op132650c; +Cc: gdb
On Thu, Sep 28, 2006 at 09:14:07AM +0100, op132650c@mail.telepac.pt wrote:
> Hi,
>
> i would like to debug my program remotely, attaching my the gdb to a socket on
> localhost:8787. How can i do that?
>
> I've tried target remote 127.0.0.1:8787 and it doesn't work. Ie, the Jboss
> application server aborts.
Sorry, but we need a lot more information about what you're doing to
help. What's running on that port - is it gdbserver? Does it abort
when you connect or when you try to step or...?
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: attach to a socket in localhost:8787
2006-09-28 12:53 ` Daniel Jacobowitz
@ 2006-09-28 13:29 ` Denis PILAT
2006-09-28 14:21 ` op132650c
1 sibling, 0 replies; 10+ messages in thread
From: Denis PILAT @ 2006-09-28 13:29 UTC (permalink / raw)
To: op132650c; +Cc: gdb
I've worked on debugging a remote connection a few weeks ago,
may be you can use that to analyse the problem:
set debug remote 1
It will give you packet exchanged between gdb and the server.
Denis
Daniel Jacobowitz wrote:
>On Thu, Sep 28, 2006 at 09:14:07AM +0100, op132650c@mail.telepac.pt wrote:
>
>
>>Hi,
>>
>>i would like to debug my program remotely, attaching my the gdb to a socket on
>>localhost:8787. How can i do that?
>>
>>I've tried target remote 127.0.0.1:8787 and it doesn't work. Ie, the Jboss
>>application server aborts.
>>
>>
>
>Sorry, but we need a lot more information about what you're doing to
>help. What's running on that port - is it gdbserver? Does it abort
>when you connect or when you try to step or...?
>
>
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: attach to a socket in localhost:8787
2006-09-28 12:53 ` Daniel Jacobowitz
2006-09-28 13:29 ` Denis PILAT
@ 2006-09-28 14:21 ` op132650c
2006-09-28 15:01 ` Daniel Jacobowitz
1 sibling, 1 reply; 10+ messages in thread
From: op132650c @ 2006-09-28 14:21 UTC (permalink / raw)
To: Daniel Jacobowitz; +Cc: gdb
I want to debug my Enterprise archive (ear) that is deployed in Jboss
Application Server.
When I start Jboss Application Server(AS) in debug mode, i've the following
message:
===============================================================================
.
JBoss Bootstrap Environment
.
JBOSS_HOME: c:\jboss-4.0.3SP1\bin\\..
.
JAVA: D:\Java\jdk1.5.0_06\bin\java
.
JAVA_OPTS: -Xdebug
-Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=y
-Dprogram.name=debug.bat -Xms128m -Xmx512m
.
CLASSPATH: D:\Java\jdk1.5.0_06\lib\tools.jar;c:\jboss-4.0.3SP1\bin\\run.jar
".
===============================================================================
.
Listening for transport dt_socket at address: 8787"
I use to debug my ear in Eclipse, creating a remote connection Standard (Socket
Attach) to localhost:8787.
Now, i want to debug my ear using gdb.
I used to do inside gdb:
target remote localhost:8787
but this abort the AS.
I hope that this will help.
Thanks,
Pedro
Citando Daniel Jacobowitz <drow@false.org>:
> On Thu, Sep 28, 2006 at 09:14:07AM +0100, op132650c@mail.telepac.pt wrote:
> > Hi,
> >
> > i would like to debug my program remotely, attaching my the gdb to a socket
> on
> > localhost:8787. How can i do that?
> >
> > I've tried target remote 127.0.0.1:8787 and it doesn't work. Ie, the Jboss
> > application server aborts.
>
> Sorry, but we need a lot more information about what you're doing to
> help. What's running on that port - is it gdbserver? Does it abort
> when you connect or when you try to step or...?
>
> --
> Daniel Jacobowitz
> CodeSourcery
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: attach to a socket in localhost:8787
2006-09-28 14:21 ` op132650c
@ 2006-09-28 15:01 ` Daniel Jacobowitz
2006-09-28 18:32 ` Michael Snyder
0 siblings, 1 reply; 10+ messages in thread
From: Daniel Jacobowitz @ 2006-09-28 15:01 UTC (permalink / raw)
To: op132650c; +Cc: gdb
On Thu, Sep 28, 2006 at 03:20:47PM +0100, op132650c@mail.telepac.pt wrote:
> Listening for transport dt_socket at address: 8787"
>
> I use to debug my ear in Eclipse, creating a remote connection Standard (Socket
> Attach) to localhost:8787.
>
> Now, i want to debug my ear using gdb.
>
> I used to do inside gdb:
> target remote localhost:8787
>
> but this abort the AS.
I have no idea what sort of server this is, but it is extremely
unlikely that it speaks the GDB protocol or can communicate with GDB.
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: attach to a socket in localhost:8787
2006-09-28 15:01 ` Daniel Jacobowitz
@ 2006-09-28 18:32 ` Michael Snyder
2006-09-28 20:25 ` op132650c
0 siblings, 1 reply; 10+ messages in thread
From: Michael Snyder @ 2006-09-28 18:32 UTC (permalink / raw)
To: Daniel Jacobowitz; +Cc: op132650c, gdb
On Thu, 2006-09-28 at 11:01 -0400, Daniel Jacobowitz wrote:
> On Thu, Sep 28, 2006 at 03:20:47PM +0100, op132650c@mail.telepac.pt wrote:
> > Listening for transport dt_socket at address: 8787"
> >
> > I use to debug my ear in Eclipse, creating a remote connection Standard (Socket
> > Attach) to localhost:8787.
> >
> > Now, i want to debug my ear using gdb.
> >
> > I used to do inside gdb:
> > target remote localhost:8787
> >
> > but this abort the AS.
>
> I have no idea what sort of server this is, but it is extremely
> unlikely that it speaks the GDB protocol or can communicate with GDB.
>
I think I see the problem (maybe). Pedro, you're talking about
Java, aren't you? You were using Eclipse in java-debugging mode?
GDB can't do that -- at least not in the same way.
The gdb socket and the Jboss application server
socket are speaking different languages.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: attach to a socket in localhost:8787
2006-09-28 18:32 ` Michael Snyder
@ 2006-09-28 20:25 ` op132650c
2006-09-28 22:25 ` Michael Snyder
2006-09-28 22:25 ` Michael Snyder
0 siblings, 2 replies; 10+ messages in thread
From: op132650c @ 2006-09-28 20:25 UTC (permalink / raw)
To: Michael Snyder; +Cc: Daniel Jacobowitz, gdb
Yes, you right. I didn't know that it was possible GDB and AS having different
protocols.
But, since eclipse debugger is working over jdb, this means that jdb can talk
with the AS. Right??? I haven't still tried with jdb. Only with eclipse
debugger.
Why gdb implements a protocol different from jdb? Where can i get more
information about gdb protocols?
Thanks,
Pedro
Citando Michael Snyder <Michael.Snyder@palmsource.com>:
> On Thu, 2006-09-28 at 11:01 -0400, Daniel Jacobowitz wrote:
> > On Thu, Sep 28, 2006 at 03:20:47PM +0100, op132650c@mail.telepac.pt wrote:
> > > Listening for transport dt_socket at address: 8787"
> > >
> > > I use to debug my ear in Eclipse, creating a remote connection Standard
> (Socket
> > > Attach) to localhost:8787.
> > >
> > > Now, i want to debug my ear using gdb.
> > >
> > > I used to do inside gdb:
> > > target remote localhost:8787
> > >
> > > but this abort the AS.
> >
> > I have no idea what sort of server this is, but it is extremely
> > unlikely that it speaks the GDB protocol or can communicate with GDB.
> >
>
> I think I see the problem (maybe). Pedro, you're talking about
> Java, aren't you? You were using Eclipse in java-debugging mode?
>
> GDB can't do that -- at least not in the same way.
> The gdb socket and the Jboss application server
> socket are speaking different languages.
>
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: attach to a socket in localhost:8787
2006-09-28 20:25 ` op132650c
@ 2006-09-28 22:25 ` Michael Snyder
2006-09-28 22:25 ` Michael Snyder
1 sibling, 0 replies; 10+ messages in thread
From: Michael Snyder @ 2006-09-28 22:25 UTC (permalink / raw)
To: op132650c; +Cc: Daniel Jacobowitz, gdb
Oh, sorry... and:
On Thu, 2006-09-28 at 21:25 +0100, op132650c@mail.telepac.pt wrote:
> Where can i get more information about gdb protocols?
src/gdb/doc, from any recent gdb source tarball.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: attach to a socket in localhost:8787
2006-09-28 20:25 ` op132650c
2006-09-28 22:25 ` Michael Snyder
@ 2006-09-28 22:25 ` Michael Snyder
1 sibling, 0 replies; 10+ messages in thread
From: Michael Snyder @ 2006-09-28 22:25 UTC (permalink / raw)
To: op132650c; +Cc: Daniel Jacobowitz, gdb
On Thu, 2006-09-28 at 21:25 +0100, op132650c@mail.telepac.pt wrote:
> Yes, you right. I didn't know that it was possible GDB and AS having different
> protocols.
>
> But, since eclipse debugger is working over jdb, this means that jdb can talk
> with the AS. Right???
Sounds like. But this is not the right forum for the question.
We don't really (at least, officially) know anything about jdb.
Only gdb. ;-)
> I haven't still tried with jdb. Only with eclipse
> debugger.
>
> Why gdb implements a protocol different from jdb? Where can i get more
> information about gdb protocols?
Because the gdb protocol predates java by at least 5 years.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: attach to a socket in localhost:8787
2006-09-28 8:14 attach to a socket in localhost:8787 op132650c
2006-09-28 12:53 ` Daniel Jacobowitz
@ 2006-09-28 18:26 ` Michael Snyder
1 sibling, 0 replies; 10+ messages in thread
From: Michael Snyder @ 2006-09-28 18:26 UTC (permalink / raw)
To: op132650c; +Cc: gdb
On Thu, 2006-09-28 at 09:14 +0100, op132650c@mail.telepac.pt wrote:
> Hi,
>
> i would like to debug my program remotely, attaching my the gdb to a socket on
> localhost:8787. How can i do that?
>
> I've tried target remote 127.0.0.1:8787 and it doesn't work. Ie, the Jboss
> application server aborts.
If it's really the localhost, ie. the same IP that gdb is running on,
then you just say "target remote :8787".
Or I think you can say "target remote localhost:8787", but I'm not sure.
The first syntax should work.
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2006-09-28 22:25 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-09-28 8:14 attach to a socket in localhost:8787 op132650c
2006-09-28 12:53 ` Daniel Jacobowitz
2006-09-28 13:29 ` Denis PILAT
2006-09-28 14:21 ` op132650c
2006-09-28 15:01 ` Daniel Jacobowitz
2006-09-28 18:32 ` Michael Snyder
2006-09-28 20:25 ` op132650c
2006-09-28 22:25 ` Michael Snyder
2006-09-28 22:25 ` Michael Snyder
2006-09-28 18:26 ` Michael Snyder
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox