emacs 24.1.1(i686-pc-linux-gnu),GTK+ Version 2.24.10 of 2012-07-17 on berkelium, modified by Debian
GNU gdb (ubuntu/Linaro 7.4-2012.04-0ubuntu2)
ubuntu 12.04 LTS.

2012/8/11 Eli Zaretskii <eliz@gnu.org>
> From: qq510371827 <qq510371827@gmail.com>
> Date: Sat, 11 Aug 2012 20:32:56 +0800
>
> Thanks for your good work. The problem I encountered on windows is just as
> you have described.But on linux(i am running ubuntu 12.04 under virtualbox)
> ,it works for me.

What version of Emacs do you have on Ubuntu, and what version of GDB?