* gdb remote debugging
@ 2003-09-06 7:26 Liu Lijuan
2003-09-06 18:50 ` Daniel Jacobowitz
0 siblings, 1 reply; 6+ messages in thread
From: Liu Lijuan @ 2003-09-06 7:26 UTC (permalink / raw)
To: gdb
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=gb2312, Size: 889 bytes --]
I want to make gdbserver run on the arm
simulator,gdb is gdb-5.2.1.First I built a cross gdb
for arm(target=arm-elf,host=i686-pc-linux-gnu),then I
change the Makefile and some source
codes in gdbserver directory,and build it with gcc
,then run "make".At last I run a test program in
remote debugging .If the test program does not contain
i/o operation(for exampel printf or scanf),it can run
successfully.But if so,when gdbserver execute
instructions,it gives an error---segment.
Who can tell me why?Should I build gdbsever with
arm-elf-gcc? or it has any other reason?
_________________________________________________________
Do You Yahoo!?
ÆôÓõçÓÊÕʺţ¬Áì»áÑÅ»¢Í¨[ÉíÁÙÆä¾³ÁĵçÓ°]µÄ¶¯¸Ð÷ÈÁ¦£¬»¹ÓÐÍøÂçÉãÏñÍ·+ÑÅ»¢Í¨ÊÕÒô»úµÈÄãÀ´ÄÃ
http://cn.rd.yahoo.com/mail_cn/tag/?http://cn.messenger.yahoo.com
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: gdb remote debugging
2003-09-06 7:26 gdb remote debugging Liu Lijuan
@ 2003-09-06 18:50 ` Daniel Jacobowitz
2003-09-07 1:59 ` Liu Lijuan
0 siblings, 1 reply; 6+ messages in thread
From: Daniel Jacobowitz @ 2003-09-06 18:50 UTC (permalink / raw)
To: gdb
On Sat, Sep 06, 2003 at 03:26:52PM +0800, Liu Lijuan wrote:
> I want to make gdbserver run on the arm
> simulator,gdb is gdb-5.2.1.First I built a cross gdb
> for arm(target=arm-elf,host=i686-pc-linux-gnu),then I
> change the Makefile and some source
> codes in gdbserver directory,and build it with gcc
> ,then run "make".At last I run a test program in
> remote debugging .If the test program does not contain
> i/o operation(for exampel printf or scanf),it can run
> successfully.But if so,when gdbserver execute
> instructions,it gives an error---segment.
> Who can tell me why?Should I build gdbsever with
> arm-elf-gcc? or it has any other reason?
What are you trying to do? You shouldn't use gdbserver on a simulator;
see the documentation for "target sim".
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: gdb remote debugging
2003-09-06 18:50 ` Daniel Jacobowitz
@ 2003-09-07 1:59 ` Liu Lijuan
2003-09-07 3:50 ` Daniel Jacobowitz
0 siblings, 1 reply; 6+ messages in thread
From: Liu Lijuan @ 2003-09-07 1:59 UTC (permalink / raw)
To: Daniel Jacobowitz; +Cc: gdb
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=gb2312, Size: 1822 bytes --]
--- Daniel Jacobowitz <drow@mvista.com> µÄÕýÎÄ£º> On
Sat, Sep 06, 2003 at 03:26:52PM +0800, Liu Lijuan
> wrote:
> > I want to make gdbserver run on the arm
> > simulator,gdb is gdb-5.2.1.First I built a cross
> gdb
> > for
> arm(target=arm-elf,host=i686-pc-linux-gnu),then I
> > change the Makefile and some source
> > codes in gdbserver directory,and build it with gcc
> > ,then run "make".At last I run a test program in
> > remote debugging .If the test program does not
> contain
> > i/o operation(for exampel printf or scanf),it can
> run
> > successfully.But if so,when gdbserver execute
> > instructions,it gives an error---segment.
> > Who can tell me why?Should I build gdbsever
> with
> > arm-elf-gcc? or it has any other reason?
>
> What are you trying to do? You shouldn't use
> gdbserver on a simulator;
> see the documentation for "target sim".
>
> --
> Daniel Jacobowitz
> MontaVista Software Debian
> GNU/Linux Developer
Thank you for your help!
I know this way "target sim" and have run it
successfully,but I want to try TCP manner on the same
machine(but target and host are different).In this way
I want to use the remote serial protocol,and make
gdbsever run on the simulator.So I change the source
codes of gdb and gdbserver,also I change some contents
of the protocol in order they can run normally.
Regards!
=====
ÁõÀò¾ê
µØÖ·£º»ª±±µçÁ¦´óѧ£¨±±¾©£©
µç»°£º010-51963577
ÓÊÏ䣺lljforever@yahoo.com.cn
_________________________________________________________
Do You Yahoo!?
ÆôÓõçÓÊÕʺţ¬Áì»áÑÅ»¢Í¨[ÉíÁÙÆä¾³ÁĵçÓ°]µÄ¶¯¸Ð÷ÈÁ¦£¬»¹ÓÐÍøÂçÉãÏñÍ·+ÑÅ»¢Í¨ÊÕÒô»úµÈÄãÀ´ÄÃ
http://cn.rd.yahoo.com/mail_cn/tag/?http://cn.messenger.yahoo.com
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: gdb remote debugging
2003-09-07 1:59 ` Liu Lijuan
@ 2003-09-07 3:50 ` Daniel Jacobowitz
0 siblings, 0 replies; 6+ messages in thread
From: Daniel Jacobowitz @ 2003-09-07 3:50 UTC (permalink / raw)
To: Liu Lijuan; +Cc: gdb
On Sun, Sep 07, 2003 at 09:59:20AM +0800, Liu Lijuan wrote:
> --- Daniel Jacobowitz <drow@mvista.com> ????????> On
> Sat, Sep 06, 2003 at 03:26:52PM +0800, Liu Lijuan
> > wrote:
> > > I want to make gdbserver run on the arm
> > > simulator,gdb is gdb-5.2.1.First I built a cross
> > gdb
> > > for
> > arm(target=arm-elf,host=i686-pc-linux-gnu),then I
> > > change the Makefile and some source
> > > codes in gdbserver directory,and build it with gcc
> > > ,then run "make".At last I run a test program in
> > > remote debugging .If the test program does not
> > contain
> > > i/o operation(for exampel printf or scanf),it can
> > run
> > > successfully.But if so,when gdbserver execute
> > > instructions,it gives an error---segment.
> > > Who can tell me why?Should I build gdbsever
> > with
> > > arm-elf-gcc? or it has any other reason?
> >
> > What are you trying to do? You shouldn't use
> > gdbserver on a simulator;
> > see the documentation for "target sim".
> >
> > --
> > Daniel Jacobowitz
> > MontaVista Software Debian
> > GNU/Linux Developer
>
> Thank you for your help!
> I know this way "target sim" and have run it
> successfully,but I want to try TCP manner on the same
> machine(but target and host are different).In this way
> I want to use the remote serial protocol,and make
> gdbsever run on the simulator.So I change the source
> codes of gdb and gdbserver,also I change some contents
> of the protocol in order they can run normally.
> Regards!
Gdbserver isn't designed to run under the simulator. And the simulator
doesn't support networking. So I don't understand what you're doing
unless you are linking gdbserver to the sim.
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: gdb remote debugging
2001-10-02 1:34 Joachim Geishauser
@ 2001-10-02 6:48 ` Quality Quorum
0 siblings, 0 replies; 6+ messages in thread
From: Quality Quorum @ 2001-10-02 6:48 UTC (permalink / raw)
To: Joachim Geishauser; +Cc: gbb
On Tue, 2 Oct 2001, Joachim Geishauser wrote:
> Hi all ,
>
> as far as I know gdb can be used to debug code running on a i.e Coldfire
>
> on a external board.
> Is the code that does the communication between the code running on the
> external board and
> gdb running on the workstation open source?
Yes, there are few stubs in gdb-5.0/gdb directory, there is gdbstubs
project on sourceforge and there are stubs distributed as a part
of eCos and RTEMS. As far as I remember all of them are given to
the public domain or near public domain.
Most files in the gdb-5.0/stub directlory contain a short description
of the protocol.
I tried to make a formal description see my web site at
http://world.std.com/~qqi
> Is there documentation of
> the API for the code
> running on the external board and the external board part of the gdb
> communication available?
> Any feedback is welcomed.
In my experience, however, tweaking is required and it is important
to know what are you doing.
Also, you can invent your own protocol and and extend gdb, it is not a
hard thing to do.
>
> Regards
> Joachim
>
Thanks,
Aleksey
^ permalink raw reply [flat|nested] 6+ messages in thread
* gdb remote debugging
@ 2001-10-02 1:34 Joachim Geishauser
2001-10-02 6:48 ` Quality Quorum
0 siblings, 1 reply; 6+ messages in thread
From: Joachim Geishauser @ 2001-10-02 1:34 UTC (permalink / raw)
To: gbb
Hi all ,
as far as I know gdb can be used to debug code running on a i.e Coldfire
on a external board.
Is the code that does the communication between the code running on the
external board and
gdb running on the workstation open source? Is there documentation of
the API for the code
running on the external board and the external board part of the gdb
communication available?
Any feedback is welcomed.
Regards
Joachim
From Mikroprog@euteka.lt Tue Oct 02 01:55:00 2001
From: Mikroprog <Mikroprog@euteka.lt>
To: gdb@sources.redhat.com
Subject: Angel protocol
Date: Tue, 02 Oct 2001 01:55:00 -0000
Message-id: <18457.011002@euteka.lt>
X-SW-Source: 2001-10/msg00019.html
Content-length: 259
Hello,
Where could I find information about Angel/Ethernet protocol, which
where used in GDB?
I have main commands of Angel, but how it works via Ethernet?
(seems to be PC sends an UDP protocol with a string "Angel", but
what must be else?...)
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2003-09-07 3:50 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-06 7:26 gdb remote debugging Liu Lijuan
2003-09-06 18:50 ` Daniel Jacobowitz
2003-09-07 1:59 ` Liu Lijuan
2003-09-07 3:50 ` Daniel Jacobowitz
-- strict thread matches above, loose matches on Subject: below --
2001-10-02 1:34 Joachim Geishauser
2001-10-02 6:48 ` Quality Quorum
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox