So, a backtrace of gdb into gdb told me this, may 'ptid=...' is normal ?

/#0  is_thread_state (ptid=..., state=THREAD_EXITED) at thread.c:613
#1  0x0000000000573932 in switch_to_thread (ptid=...) at thread.c:997
#2  0x000000000056a91a in prepare_to_proceed (step=0) at infrun.c:2067
#3  proceed (addr=addr@entry=18446744073709551615,
siggnal=siggnal@entry=GDB_SIGNAL_DEFAULT, step=step@entry=0) at
infrun.c:2181
#4  0x000000000055eb72 in continue_1 (all_threads=all_threads@entry=0)
at infcmd.c:736
#5  0x000000000055ecba in continue_command (args=0x0, from_tty=1) at
infcmd.c:828/

Enabling /_DEBUG_GDB_IO_/ give me this :

/Debug: 3077 55461 gdb_server.c:368 gdb_put_packet_inner(): sending
packet '$0dc0a0e1#4e'
Debug: 3078 55461 gdb_server.c:235 gdb_get_char_inner(): received '$m0,4#fd'
Debug: 3079 55461 gdb_server.c:247 gdb_get_char_inner(): returned char
'$' (0x24)
Debug: 3080 55461 gdb_server.c:595 gdb_get_packet_inner(): character: '$'
Debug: 3081 55461 gdb_server.c:273 gdb_get_char_fast(): returned char
'f' (0x66)
Debug: 3082 55461 gdb_server.c:273 gdb_get_char_fast(): returned char
'd' (0x64)
Debug: 3083 55461 gdb_server.c:2048 gdb_input_inner(): received packet:
'm0,4'
Debug: 3084 55461 gdb_server.c:1200 gdb_read_memory_packet(): addr:
0x00000000, len: 0x00000004
Debug: 3085 55461 target.c:1769 target_read_buffer(): reading buffer of
4 byte at 0x00000000
Debug: 3086 55461 arm7_9_common.c:2117 arm7_9_read_memory(): address:
0x00000000, size: 0x00000004, count: 0x00000001
Debug: 3087 55462 gdb_server.c:368 gdb_put_packet_inner(): sending
packet '$00000000#80'
Debug: 3088 59396 gdb_server.c:235 gdb_get_char_inner(): received '$Hg0#df'
Debug: 3089 59397 gdb_server.c:247 gdb_get_char_inner(): returned char
'$' (0x24)
Debug: 3090 59397 gdb_server.c:595 gdb_get_packet_inner(): character: '$'
Debug: 3091 59397 gdb_server.c:273 gdb_get_char_fast(): returned char
'd' (0x64)
Debug: 3092 59397 gdb_server.c:273 gdb_get_char_fast(): returned char
'f' (0x66)
Debug: 3093 59397 gdb_server.c:2048 gdb_input_inner(): received packet:
'Hg0'
Debug: 3094 59397 gdb_server.c:368 gdb_put_packet_inner(): sending
packet '$OK#9a'
Debug: 3095 59397 gdb_server.c:235 gdb_get_char_inner(): received '$g#67'
Debug: 3096 59397 gdb_server.c:247 gdb_get_char_inner(): returned char
'$' (0x24)
Debug: 3097 59397 gdb_server.c:595 gdb_get_packet_inner(): character: '$'
Debug: 3098 59397 gdb_server.c:273 gdb_get_char_fast(): returned char
'6' (0x36)
Debug: 3099 59397 gdb_server.c:273 gdb_get_char_fast(): returned char
'7' (0x37)
Debug: 3100 59397 gdb_server.c:2048 gdb_input_inner(): received packet: 'g'
Debug: 3101 59397 gdb_server.c:973 gdb_get_registers_packet(): -
Debug: 3102 59397 gdb_server.c:1002 gdb_get_registers_packet():
reg_packet:
3500000035000000000000003500000074bd3b8005001111060011110700111108001111090011110a00111194fc3b80c8fa3b8010fc3b80c0912080000820800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000013000060
Debug: 3103 59397 gdb_server.c:368 gdb_put_packet_inner(): sending
packet
'$3500000035000000000000003500000074bd3b8005001111060011110700111108001111090011110a00111194fc3b80c8fa3b8010fc3b80c0912080000820800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000013000060#ce'
/*** EOF Crash here ***

I don't understand why he try to read memory @ 0x00000000 :/ That's weird.
and/set remotelogfile remote.log/ didn't write any log file :/

/remote/ and /extended-remote/ give the same output and crash

I haven't try with older version of openOCD has I use a custom version
to work with my custom board, sorry.

Best regards
Vivien

On 15/03/2013 12:11, Spencer Oliver wrote:
> On 15 March 2013 10:32, Vivien Giraud <vgir...@neotion.com> wrote:
>> Hi Spencer,
>> Thank's, I'm using latest master, I tried to implement patch on latest but
>> it's did not work.
>> When it crash I got this :
>>
>> Debug: 2610 2147049 gdb_server.c:2048 gdb_input_inner(): received packet:
>> 'Hg0'
>> Debug: 2611 2147049 gdb_server.c:2048 gdb_input_inner(): received packet:
>> 'g'
>>
>> So I searched what openOCD do when he received 'g' and found this :
>>
>>                 case 'g':
>>                     retval = gdb_get_registers_packet(connection, packet,
>> packet_size);
>>
>> That's strange because when I hit 'info registers' I can resume  but if I
>> do 'info threads' gdb crash.
>>
>> So I don't think it come from gdb_get_registers_packet() function
>> Someone know how to have a very verbose mode in gdb or openocd, (I already
>> use -d3 in openocd and I have nothing verbose for gdb)
>> I have tried to launch gdb into gdb but I haven't found nothing particular :
>>
> see gdb_server.c:85 - simply define _DEBUG_GDB_IO_
> However i generally debug the gdb side using
> set remotelogfile remote.log
>
> Does an older version show this issue, eg. v0.6.1 ?
>
> Have you tried both remote and extended-remote ?
>
> Spen

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
_______________________________________________
OpenOCD-devel mailing list
OpenOCD-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to