[hellogcc] Re: command-list does not work in my gdb 7.2 port

  • From: Yao Qi <qiyaoltc@xxxxxxxxx>
  • To: hellogcc@xxxxxxxxxxxxx
  • Date: Tue, 27 Sep 2011 11:49:21 +0800

On Tue, Sep 27, 2011 at 09:54:54AM +0800, Triple Yang wrote:
> Hi, everyone.
> 

首先,我们不鼓励把同一个问题在多个地方问一遍。如果你已经在gdb list上
问过了,就看看那里有没有回复吧。

Community resource is free, but not that too free to waste :)

> I am making a gdb 7.2 port recently for a prototype architecture,
> which is a remote debug target in my case. The port is almost done to
> achieve my purposes, say:
> 
> 1. Connecting to remote target and loading program image work well.
> 2. Control on the debugged program is OK.
> 3. Inserting/deleting breakpoints OK.
> 4. and so as some other basic facilities.
> 
> But when I tried using gdb command "commands" to specify a command
> list after I set a breakpoint, I found this did not work at all. Here
> follows a rough example:
> 
> (gdb) break main
> (gdb) commands
> >shell echo test-commands
> >end
> (gdb) run
> 

你的test-commands是你自己写的一个程序吗?还是你在gdb里边加的命令?

> In this example, the command list is composed of only one command
> "shell echo test-commands". "test-commands" is expected to be output
> when the breakpoint is hit, but it does not happen. I tried replacing
> "shell echo test-commands" with other similar commands, it still did
> not work. but "shell echo" does work well when it is not used in a
> command list defined by "commands".
>

我对你的问题没有了解,说说我一点想法吧。这个问题应该和target没有关系。
那么,你把你的source,confgiure为i686-pc-linux-gnu,看看问题还在吗?
如果问题还在,那就和你port没有关系,是一个target indepedent的问题。
 
如果问题不在了,说明和你的port,至少和你的修改有关,那我就想不到是什么
问题了,因为我们也不知道你怎么该的gdb。 

-- 
Yao Qi <qiyaoltc AT gmail DOT com>

An honest tale speeds best being plainly told.
                -- William Shakespeare, "Henry VI"

Other related posts: