Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: yongyong.yang@ia.ac.cn
To: gdb@sourceware.org
Subject: What role does gdb/remote.c play?
Date: Mon, 15 Aug 2011 09:08:00 -0000	[thread overview]
Message-ID: <54475b.156ef.131ccb300f5.Coremail.yongyong.yang@ia.ac.cn> (raw)

Hey, everyone.
 
Recently I am trying to port gdb for a remote target. I use remote-m32r-sdi as start point.
when I debug it, I find the global variable current_target has the value specified in remote.c, 
furthermore I find the generated file init.c has both initialize_XXX() and _initialize_remote() , 
where XXX is the target I specified for my target.
 
So when I run command 'target remote localhost:[port]', it is remote_open() that handles the argument and etc.
 
Can someone explain what is wrong. Thank you.






             reply	other threads:[~2011-08-15  9:08 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-15  9:08 yongyong.yang [this message]
2011-08-15 10:10 ` Pedro Alves
2011-08-15 11:51   ` Triple Yang
2011-08-15 13:32     ` Pedro Alves
2011-08-15 15:10       ` Triple Yang
2011-08-15 15:26         ` Andrew Burgess
2011-08-15 17:48           ` Triple Yang
2011-08-15 15:28         ` Pedro Alves
     [not found]           ` <CAGxstLS4BjPZOatfSMMUiVNpOyd9gVzdVXbzqUqBzvb1M9gsjw@mail.gmail.com>
2011-08-15 17:54             ` Triple Yang
2011-08-15 15:46         ` Petr Hluzín
2011-08-15 18:20           ` Triple Yang
2011-08-15 20:13             ` Petr Hluzín

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=54475b.156ef.131ccb300f5.Coremail.yongyong.yang@ia.ac.cn \
    --to=yongyong.yang@ia.ac.cn \
    --cc=gdb@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox