Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Remote debugging
@ 2015-03-07 13:52 Russell Shaw
  2015-03-07 14:09 ` Ofir Cohen
  0 siblings, 1 reply; 16+ messages in thread
From: Russell Shaw @ 2015-03-07 13:52 UTC (permalink / raw)
  To: gdb

Hi,
I'm trying to set up running gdbserver on a laptop and ddd/gdb on a desktop pc.

Apart from exporting an NFS directory from the laptop, what other easy way is 
there to get the compiled binary debugee automatically transferred from the 
desktop to the laptop?


^ permalink raw reply	[flat|nested] 16+ messages in thread
* Re: Remote debugging
@ 2004-03-22 14:23 luca risso
  0 siblings, 0 replies; 16+ messages in thread
From: luca risso @ 2004-03-22 14:23 UTC (permalink / raw)
  To: drow; +Cc: gdb




>On Fri, Mar 19, 2004 at 10:13:40AM +0000, luca risso wrote:
> > Hi,
> >
> > I'm trying to debug an application running on a PPC board with Linux 
>2.4.25.
> >
> > I'm new about this kind of environment so please don't be surprised if 
>my
> > question seems too silly.
> > Using GDBServer I can run the program on the target and set breakpoints 
>to
> > stop a thread.
> > I seems to me that should be possible (I've still not experinced that) 
>also
> > to stop all threads of a process on the same breakpoint.
> >
> > Now, is it possible someway to stop all processes running on the board?
> > It would be useful when debugging processes sending messages to each 
>other.
> > Something similar is available using psos and VxWorks environments where
> > all processes seems to be "freezed" at a time.
>
>No, it's not possible.  GDB can only manage one process at a time.
>
>By the way, every time you stop a thread, GDB arranges for all threads
>in that process to stop.  GDB doesn't currently support any other mode.
>

In this case, for such an embedded appilcation, do you think it could be
reasonable to compile all the application stuff along with the Linux kernel?
Then probably my program would appear as a kernel thread (??) so that it can
be debugged using gdb stubs for kernel debugging.

Do you see any drawback in this approach?
Is there a "standard" or "common" approach for this kind of application?

Thanks a lot. Regards.

        Luca

_________________________________________________________________
Filtri antispamming e antivirus per la tua casella di posta 
http://www.msn.it/msn/hotmail


^ permalink raw reply	[flat|nested] 16+ messages in thread
* Remote debugging
@ 2004-03-19 17:59 luca risso
  2004-03-19 18:43 ` Daniel Jacobowitz
  0 siblings, 1 reply; 16+ messages in thread
From: luca risso @ 2004-03-19 17:59 UTC (permalink / raw)
  To: gdb

Hi,

I'm trying to debug an application running on a PPC board with Linux 2.4.25.

I'm new about this kind of environment so please don't be surprised if my 
question seems too silly.
Using GDBServer I can run the program on the target and set breakpoints to 
stop a thread.
I seems to me that should be possible (I've still not experinced that) also 
to stop all threads of a process on the same breakpoint.

Now, is it possible someway to stop all processes running on the board?
It would be useful when debugging processes sending messages to each other.
Something similar is available using psos and VxWorks environments where all 
processes seems to be "freezed" at a time.

May it be useful to compile all my stuff  along with Linux and then use gdb 
stubs normaly adopted for kernel debugging?

Thanks for your help

         Luca

_________________________________________________________________
Get reliable access on MSN 9 Dial-up. 3 months for the price of 1! 
(Limited-time offer) http://click.atdmt.com/AVE/go/onm00200361ave/direct/01/


^ permalink raw reply	[flat|nested] 16+ messages in thread
* RE: remote debugging
@ 2003-06-13 14:24 nak26
  0 siblings, 0 replies; 16+ messages in thread
From: nak26 @ 2003-06-13 14:24 UTC (permalink / raw)
  To: Brijesh Shukla, Quality Quorum; +Cc: gdb

>>  gdb> load
>
>You should not do that, gdbserver already loaded the program.
>The rest of your problems may be related to this step.
>

What works for me is
1.) gdb> file executable_name

--That, of course, works if you built the executable locally, and also have 
access --to the code

2.) gdb> break break_point_somewhere

3.) gdb> continue

--Don't do run, since gdbserver has already fired the process (on the remote 
--machine).

--Nik


^ permalink raw reply	[flat|nested] 16+ messages in thread
* remote debugging
@ 2003-06-13  7:50 Brijesh Shukla
  2003-06-13 13:28 ` Quality Quorum
  0 siblings, 1 reply; 16+ messages in thread
From: Brijesh Shukla @ 2003-06-13  7:50 UTC (permalink / raw)
  To: gdb

Hello,
 
Can any body explain the remote debugging application in Linux. 
currently for testing purpose as simple case, I have chosen two i686 
Pentium machines with Linux
installed on two systems. on system I am running gdb and in another 
system I am running gdb server. I did the following steps.
 
Target:
 gdbserver host:port program
 
 //Now gdbserver has been started
 
Host:
 
 // I compiled the simple hello word program as    gcc -g program.c -o 
program
 // copied the program into target system
 
 gdb program
 gdb> target remote host:port
 gdb>
 
 // connection established
 gdb> load
 
 // it is showing loading the sections, I m not sure the addresses from 
local machine or from target machine ( how can I verify ? in our 
case,sicne both machine
 are same architecture and same OS)
 
 I can set break point to main.
 
 if I do step or next, I am getting the error message "cannot find 
bounds of current function"
 
 if I do continue, I am getting the error message " program received 
SIGSEGV, segmentation fault"
 
can anybody tell me where is the wrong ?
 
Is there anything's need to be take care while building the gdb in one 
machine. ?  currently I am using the default gdb installed in machine 
due to both machine are same architecture.
 
Regards
Brijesh Shukla


^ permalink raw reply	[flat|nested] 16+ messages in thread
* remote debugging
@ 2003-03-20  7:45 Patricia Alba
  0 siblings, 0 replies; 16+ messages in thread
From: Patricia Alba @ 2003-03-20  7:45 UTC (permalink / raw)
  To: gdb

hi !
i'm using gdb to debug an application on a remote
target (hitachi 16-bit microcontroller). i downloaded
the gdb stub for a different version and ported it to
work on the board i'm using. i'm able to connect, but
the gdb is unstable. it generates a sigtrap exception
for even normal termination of the program. the values
of local variables are also not working correctly.
any pointers on how to go about debugging the
debugger??

Patricia

__________________________________________________
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com


^ permalink raw reply	[flat|nested] 16+ messages in thread
* Remote Debugging
@ 2002-12-12  9:29 Tim
  2002-12-12 10:30 ` Daniel Jacobowitz
  0 siblings, 1 reply; 16+ messages in thread
From: Tim @ 2002-12-12  9:29 UTC (permalink / raw)
  To: gdb

I running gdb 5.2-2 and gdbserver.  Remotely I'm running kernel 2.4-19.
I compiled gdbserver against uClibc.  My app is statically compiled
against glibc 6.

My remote device is an x86 board.

My app is compiled with -ggdb and is not stripped on either the remote
or the host.

I start gdbserver 192.168.0.1:2345 myapp -options on the remote device. 
I start gdb on the host and give it the command target remote
192.168.0.2:2345

the remote device shows a connection from my host.

then I give it the command load myapp.

After all this I cannot view any source.  The 'l' command returns the
error 'no symbol table loaded' and instructs me to use file.

What am I doing wrong?

thanx!




^ permalink raw reply	[flat|nested] 16+ messages in thread
* remote debugging
@ 2002-07-22  9:35 Vinayak P Risbud
  0 siblings, 0 replies; 16+ messages in thread
From: Vinayak P Risbud @ 2002-07-22  9:35 UTC (permalink / raw)
  To: Ecos-Discuss; +Cc: gdb

        Hi,
            I am trying to use remote debugging using LAN (Tcp/Ip) on
Redboot
            What I understood till now is,
                    1.  the main polls net_io_test function during idle
time
                    2.  The function net_io_test checks for
                                        tcp_sock.state == _ESTABLISHED
                    3.   If established, the control calls
net_io_assume_console
                         to setup debug channel.

                But,  after this, how the flow goes,  I am not able to
trace.
                my gdb client on remote PC sends $Hc-1#09 command,
                over tcp/ip link.
                I am not able to trace, where and how exactly this gdb
                command is read and processed (i.e trap is generated ?)

                Can any one help in tracing the flow ?

            Thanks in advance
                Vinayak



^ permalink raw reply	[flat|nested] 16+ messages in thread
* remote debugging
@ 2001-01-23 22:23 malar kavi
  0 siblings, 0 replies; 16+ messages in thread
From: malar kavi @ 2001-01-23 22:23 UTC (permalink / raw)
  To: gdb

Hi,
    tell me something in detail about the stubs used
in
remote debugging with gdb

__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - Buy the things you want at great prices. 
http://auctions.yahoo.com/
From fnasser@redhat.com Wed Jan 24 06:16:00 2001
From: Fernando Nasser <fnasser@redhat.com>
To: malar kavi <malarkavi@yahoo.com>
Cc: gdb@sourceware.cygnus.com
Subject: Re: remote debugging
Date: Wed, 24 Jan 2001 06:16:00 -0000
Message-id: <3A6EE34E.579C1563@redhat.com>
References: <20010124062335.4822.qmail@web5504.mail.yahoo.com>
X-SW-Source: 2001-01/msg00167.html
Content-length: 286

malar kavi wrote:
> 
> Hi,
>     tell me something in detail about the stubs used
> in
> remote debugging with gdb
> 

It is in the manual.

-- 
Fernando Nasser
Red Hat Canada Ltd.                     E-Mail:  fnasser@redhat.com
2323 Yonge Street, Suite #300
Toronto, Ontario   M4P 2C9
From jtc@redback.com Wed Jan 24 10:52:00 2001
From: jtc@redback.com (J.T. Conklin)
To: malar kavi <malarkavi@yahoo.com>
Cc: gdb@sourceware.cygnus.com
Subject: Re: remote debugging
Date: Wed, 24 Jan 2001 10:52:00 -0000
Message-id: <5mvgr4srz5.fsf@jtc.redback.com>
References: <20010124062335.4822.qmail@web5504.mail.yahoo.com>
X-SW-Source: 2001-01/msg00168.html
Content-length: 473

>>>>> "malar" == malar kavi <malarkavi@yahoo.com> writes:
malar> Hi, tell me something in detail about the stubs used in remote
malar> debugging with gdb

As Fernando mentioned, how to integrate/use the sample stubs is
described in the manual.  If after reading that section you still have
specific questions, don't hesitate to ask them.  We'll do our best to
answer them, as well as improve the manual to make it clearer.

        --jtc

-- 
J.T. Conklin
RedBack Networks
From friedrich.beckmann@gmx.de Wed Jan 24 13:39:00 2001
From: Friedrich Beckmann <friedrich.beckmann@gmx.de>
To: gdb@sources.redhat.com
Subject: JTAG debug support for ARM
Date: Wed, 24 Jan 2001 13:39:00 -0000
Message-id: <3A6F4BFD.8EEC6FF6@gmx.de>
X-SW-Source: 2001-01/msg00169.html
Content-length: 1560

Hi,

i have found a site http://www.ocdemon.com which offers the gnu
toolchain with support for wiggler/raven JTAG interfaces.  I have not
tested this and would like to know if anybody has some experience with
this. The sources for the Wiggler drivers are not included in the
distribution.
Is there any person related to this site? I cannot find any name on the
sites pages.
Is there something illegal behind this?

As far as I have figured it out, the standard gdb release supports the
ARM RDI interface. This requires the ANGEL software installed
(and is then connected via a serial interface).

Optionally the OLD EmbeddedICE Box which can interpret the RDI commands
to JTAG
commands can be used. The new MultiICE debug box from ARM requires
software support on the host which is not available for linux at the
moment.

There is a configure option --multi-ice in the gdb release which
lets me assume that the commercial GnuPRO tools from Redhat
have support for the MultiICE. The multi-ice-gdbserver seems not to
be under GNU license.

The JEENI JTAG interface from http://www.episupport.com seems understand
the RDI commands
directly as the ARM EmbeddedICE does. So this is also usabled via the
gdi rdi interface.

http://www.abatron.ch also offers a JTAG interface but with a dedicated
gdb driver
software for linux. gdb.

Is anybody using the wiggler with gdb for the ARM7?

Which software are you using?

Is anybody out there who is putting effort in writing a GNU-licensed
remote interface
for a low-cost JTAG interface like the wiggler?

Friedrich




^ permalink raw reply	[flat|nested] 16+ messages in thread
[parent not found: <3A274495.FD07A793@chinacluster.com>]
[parent not found: <38B4017A.2F64A9C3@Epec.fi>]

end of thread, other threads:[~2015-03-08  7:48 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-07 13:52 Remote debugging Russell Shaw
2015-03-07 14:09 ` Ofir Cohen
2015-03-08  7:48   ` Russell Shaw
  -- strict thread matches above, loose matches on Subject: below --
2004-03-22 14:23 luca risso
2004-03-19 17:59 luca risso
2004-03-19 18:43 ` Daniel Jacobowitz
2003-06-13 14:24 remote debugging nak26
2003-06-13  7:50 Brijesh Shukla
2003-06-13 13:28 ` Quality Quorum
2003-03-20  7:45 Patricia Alba
2002-12-12  9:29 Remote Debugging Tim
2002-12-12 10:30 ` Daniel Jacobowitz
2002-07-22  9:35 remote debugging Vinayak P Risbud
2001-01-23 22:23 malar kavi
     [not found] <3A274495.FD07A793@chinacluster.com>
2000-12-01 11:40 ` Remote Debugging Fernando Nasser
     [not found] <38B4017A.2F64A9C3@Epec.fi>
2000-02-23 19:12 ` Andrew Cagney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox