[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openocd-development
Subject:    Re: [OpenOCD-devel] how to debug openocd?
From:       Attila Csosz <csosz77 () gmail ! com>
Date:       2019-08-12 4:56:24
Message-ID: CAMYm8FpDOjAPeG6+sgbn641ay+9EihiEOyaS2UY72h4T7O4zPA () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Thanks. I've downloaded an old 32bit gdb.exe and it is working now.

Attila



On Sun, Aug 11, 2019 at 11:37 PM Tommy Murphy <tommy_murphy@hotmail.com>
wrote:

> Any relevance?
>
> https://github.com/Microsoft/vscode-cpptools/issues/2285
> ------------------------------
> *From:* Attila Csosz <csosz77@gmail.com>
> *Sent:* Sunday, August 11, 2019 4:55:59 PM
> *To:* openocd-devel@lists.sourceforge.net <
> openocd-devel@lists.sourceforge.net>
> *Subject:* [OpenOCD-devel] how to debug openocd?
>
> Hi,
>
> I have compiled openocd with CFLAGS='-g -Og' on MSYS2 (mingw32). After
> adding breakpoint in the main program (in script_debug) and running the
> program gdb says:
>
> gdb: unknown target exception 0x4000001f at 0x46939e
> Thread 1 received signal ?, Unknown signal.
> 0x0009df88 in ?? ()
>
> After that by 's' (step in gdb)
> 'Cannot find bounds of current function'
>
> From 'objdump -S ...'
> 0046939e <_script_debug>:
> {
>   46939e: 55                   push   %ebp
>   46939f: 57                   push   %edi
>
> Without debugging the program works correctly. How to fix this problem?
>
> Attila
>
>

[Attachment #5 (text/html)]

<div dir="ltr">Thanks. I&#39;ve downloaded an old 32bit gdb.exe and it is working \
now.<div><br clear="all"><div><div dir="ltr" class="gmail_signature" \
data-smartmail="gmail_signature">Attila<br><br></div></div><br></div></div><br><div \
class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Aug 11, 2019 at 11:37 \
PM Tommy Murphy &lt;<a \
href="mailto:tommy_murphy@hotmail.com">tommy_murphy@hotmail.com</a>&gt; \
wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px \
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">



<div>
<div dir="auto" style="direction:ltr;margin:0px;padding:0px;font-family:sans-serif;font-size:11pt;color:black">
 Any relevance?<br>
<br>
</div>
<div dir="auto" style="direction:ltr;margin:0px;padding:0px;font-family:sans-serif;font-size:11pt;color:black">
 <a href="https://github.com/Microsoft/vscode-cpptools/issues/2285" \
target="_blank">https://github.com/Microsoft/vscode-cpptools/issues/2285</a></div> \
<hr style="display:inline-block;width:98%"> <div \
id="gmail-m_7607576680844367935divRplyFwdMsg" dir="ltr"><font face="Calibri, \
sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Attila Csosz &lt;<a \
href="mailto:csosz77@gmail.com" target="_blank">csosz77@gmail.com</a>&gt;<br> \
<b>Sent:</b> Sunday, August 11, 2019 4:55:59 PM<br> <b>To:</b> <a \
href="mailto:openocd-devel@lists.sourceforge.net" \
target="_blank">openocd-devel@lists.sourceforge.net</a> &lt;<a \
href="mailto:openocd-devel@lists.sourceforge.net" \
target="_blank">openocd-devel@lists.sourceforge.net</a>&gt;<br> <b>Subject:</b> \
[OpenOCD-devel] how to debug openocd?</font> <div>  </div>
</div>
<div>
<div dir="ltr">Hi,
<div><br>
</div>
<div>I have compiled openocd with  CFLAGS=&#39;-g -Og&#39; on MSYS2 (mingw32). After \
adding breakpoint in the main program (in script_debug) and running the program gdb \
says:</div> <div><br>
</div>
<div>gdb: unknown target exception 0x4000001f at 0x46939e<br>
Thread 1 received signal ?, Unknown signal.<br>
0x0009df88 in ?? ()<br>
</div>
<div><br>
</div>
<div>After that by &#39;s&#39; (step in gdb)</div>
<div>&#39;Cannot find bounds of current function&#39;<br>
</div>
<div><br>
</div>
<div>From &#39;objdump -S ...&#39;</div>
<div>0046939e &lt;_script_debug&gt;:<br>
{<br>
   46939e: 55                            push    %ebp<br>
   46939f: 57                            push    %edi<br>
</div>
<div><br>
</div>
<div>Without debugging the program works correctly. How to fix this problem?</div>
<div><br clear="all">
<div>
<div dir="ltr" class="gmail-m_7607576680844367935gmail_signature">Attila<br>
<br>
</div>
</div>
</div>
</div>
</div>
</div>

</blockquote></div>





_______________________________________________
OpenOCD-devel mailing list
OpenOCD-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openocd-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic