Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Re: new simulator as a new gdb target
@ 2007-05-18  0:34 Wenbo Yang
  2007-05-18  2:04 ` s88
  0 siblings, 1 reply; 4+ messages in thread
From: Wenbo Yang @ 2007-05-18  0:34 UTC (permalink / raw)
  To: dave.tw; +Cc: gdb

> Hi all:
>
>        I have made a new ARM v5T's simulator. I wanna binding this
> simulator with gdb and insight. So, the first step is to make my
> simulator work with gdb...
You can write a gdbserver-like part  in your simulator. Then communicate
 with GDB using TCP, UART or other way.

> I found in that $insight_home/src/sim/arm/wrapper.c play a role to
> communicate the simulator and gdb withoud TCP. It looks simple. Is it
> possible that I write a wrapper for my simulator?
I don't know if it is possible. From my point of view, maybe it is harder
 than writing a gdbserver. Because GDB's build-in simulator is possibly
working in totally different way with your simulator. You should change
yours to meet its demands. Writing a gdbserver is only adding something,
it can work well with different version of GDB.

> But I still have no idea that how to binding those things (especially
> for the gdb and my simulator).
>
> Any suggestion is welcome!!
>
> Thanx!
>
> Dave.
>
> --
> System  on Chip Design  Lab.
> Dept. of Computer Science and Information Engineering,
> National Chung Cheng University
> E-mail : s88.tw@acm.org
>
-- 
Wenbo Yang

Student
Department of Mathematics, Nanjing Univ. 22 Hankou Road, Nanjing, China
Mobile: +86-013655175286  ---  Personal Email: solrex@gmail.com
MSN: solrex@live.com  ---  Homepage: http://www.solrex.cn

Intern Software Engineer
SimpLight Nanoelectronics Ltd. 6 Zhichun Road, 10th Floor, Beijing, China
Phone: +86-10-5126-6989 ext.110  ---  Email: wenbo.yang@simplnano.com


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: new simulator as a new gdb target
  2007-05-18  0:34 new simulator as a new gdb target Wenbo Yang
@ 2007-05-18  2:04 ` s88
  2007-05-18  3:52   ` Wenbo Yang
  0 siblings, 1 reply; 4+ messages in thread
From: s88 @ 2007-05-18  2:04 UTC (permalink / raw)
  To: gdb; +Cc: solrex

On 18/05/07, Wenbo Yang <solrex@gmail.com> wrote:
> > Hi all:
> >
> >        I have made a new ARM v5T's simulator. I wanna binding this
> > simulator with gdb and insight. So, the first step is to make my
> > simulator work with gdb...
> You can write a gdbserver-like part  in your simulator. Then communicate
>  with GDB using TCP, UART or other way.
>

thanx for your reply...
Does any exist "gdbserver-like" template can let me do this job?
or, where do I find those files?

Dave.

> > I found in that $insight_home/src/sim/arm/wrapper.c play a role to
> > communicate the simulator and gdb withoud TCP. It looks simple. Is it
> > possible that I write a wrapper for my simulator?
> I don't know if it is possible. From my point of view, maybe it is harder
>  than writing a gdbserver. Because GDB's build-in simulator is possibly
> working in totally different way with your simulator. You should change
> yours to meet its demands. Writing a gdbserver is only adding something,
> it can work well with different version of GDB.
>
> > But I still have no idea that how to binding those things (especially
> > for the gdb and my simulator).
> >
> > Any suggestion is welcome!!
> >
> > Thanx!
> >
> > Dave.
> >
> > --
> > System  on Chip Design  Lab.
> > Dept. of Computer Science and Information Engineering,
> > National Chung Cheng University
> > E-mail : s88.tw@acm.org
> >
> --
> Wenbo Yang
>
> Student
> Department of Mathematics, Nanjing Univ. 22 Hankou Road, Nanjing, China
> Mobile: +86-013655175286  ---  Personal Email: solrex@gmail.com
> MSN: solrex@live.com  ---  Homepage: http://www.solrex.cn
>
> Intern Software Engineer
> SimpLight Nanoelectronics Ltd. 6 Zhichun Road, 10th Floor, Beijing, China
> Phone: +86-10-5126-6989 ext.110  ---  Email: wenbo.yang@simplnano.com
>


-- 
System  on Chip Design  Lab.
Dept. of Computer Science and Information Engineering,
National Chung Cheng University
E-mail : s88.tw@acm.org


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: new simulator as a new gdb target
  2007-05-18  2:04 ` s88
@ 2007-05-18  3:52   ` Wenbo Yang
  0 siblings, 0 replies; 4+ messages in thread
From: Wenbo Yang @ 2007-05-18  3:52 UTC (permalink / raw)
  To: s88; +Cc: gdb

Dave,

> thanx for your reply...
> Does any exist "gdbserver-like" template can let me do this job?
> or, where do I find those files?
Actually it is very easy to write. It uses RSP protocol to communicate
with GDB, more like a RSP packet translator. It understands RSP
packets that GDB sends to it, then acts using your simulator's
interface, then sends GDB the result. It is really like a stub, but
can do more thing because it is part of your simulator.

For more you can refer to Skyeye project, an open source simulator. I
can not remember the file name. But you can search "*gdb*" in the
source files. It is easy to find.

Regards,

Wenbo

-- 
Wenbo Yang

Student
Department of Mathematics, Nanjing Univ. 22 Hankou Road, Nanjing, China
Mobile: +86-013655175286  ---  Personal Email: solrex@gmail.com
MSN: solrex@live.com  ---  Homepage: http://www.solrex.cn

Intern Software Engineer
SimpLight Nanoelectronics Ltd. 6 Zhichun Road, 10th Floor, Beijing, China
Phone: +86-10-5126-6989 ext.110  ---  Email: wenbo.yang@simplnano.com


^ permalink raw reply	[flat|nested] 4+ messages in thread

* new simulator as a new gdb target
@ 2007-05-16 23:27 s88
  0 siblings, 0 replies; 4+ messages in thread
From: s88 @ 2007-05-16 23:27 UTC (permalink / raw)
  To: gdb

Hi all:

       I have made a new ARM v5T's simulator. I wanna binding this
simulator with gdb and insight. So, the first step is to make my
simulator work with gdb...
I found in that $insight_home/src/sim/arm/wrapper.c play a role to
communicate the simulator and gdb withoud TCP. It looks simple. Is it
possible that I write a wrapper for my simulator?
But I still have no idea that how to binding those things (especially
for the gdb and my simulator).

Any suggestion is welcome!!

Thanx!

Dave.

-- 
System  on Chip Design  Lab.
Dept. of Computer Science and Information Engineering,
National Chung Cheng University
E-mail : s88.tw@acm.org


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-05-18  3:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-05-18  0:34 new simulator as a new gdb target Wenbo Yang
2007-05-18  2:04 ` s88
2007-05-18  3:52   ` Wenbo Yang
  -- strict thread matches above, loose matches on Subject: below --
2007-05-16 23:27 s88

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