List Info

Thread: Re: early buf termination




Re: early buf termination
country flaguser name
United States
2007-07-09 00:18:51
s88 wrote:

>       I'm implementing a gdb stub for my ARM simulator
with TCP connection.
> As I query the registers information from gdb, I got
> "fetch_register_using_p: early buf
termination" msg.
> 
> (gdb) info registers
> r0             fetch_register_using_p: early buf
termination
> (gdb)
> 
> the gdb client send the packet which contains
"$p0#a0" to my gdb server.
> The gdb server reply 0 (should be $0#something) to the
gdb client.

You can read remote.c:3419 for more information. I think the
meaning is:
unexpected message end. It should be more characters but
your message
terminated. You should give GDB the standard RSP response.

Regards,
Wenbo
-- 
Wenbo Yang

The State Key Lab. of Information Security
Graduate School of CAS, 19A Yuquan Road, Beijing, China
Homepage: http://solrex.cn

SimpLight Nanoelectronics Ltd. 6 Zhichun Road, 10th Floor,
Beijing, China
Phone: +86-10-5126-6989   ---  Email: wenbo.yangsimplnano.com


Re: RSP handling
country flaguser name
United States
2007-07-11 01:02:21
> s88 wrote:
> 
 > but something is strange after the connection created.
I set a
 > breakpoint in the main function (br main), but after
the connection
 > created the gdb stop at the first instruction of
crt0.S.
Is there anything wrong? Your stub gave GDB where the PC
pointed to, and GDB 
printed it out with source code accordingly. You didn't
start debugging, you 
were just attaching to the target. The PC you got should be
the saved PC value 
while enter exception handler(stub). It has little meaning,
you can go ahead by 
"continue".

Wenbo
-- 
Wenbo Yang

The State Key Lab. of Information Security
Graduate School of CAS, 19A Yuquan Road, Beijing, China
Homepage: http://solrex.cn

SimpLight Nanoelectronics Ltd. 6 Zhichun Road, 10th Floor,
Beijing, China
Phone: +86-10-5126-6989   ---  Email: wenbo.yangsimplnano.com

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )