<br><br><div class="gmail_quote">On Wed, May 18, 2011 at 11:44 AM, Rohan Kangralkar <span dir="ltr"><<a href="mailto:rohan.stays@gmail.com">rohan.stays@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="gmail_quote"><div class="im">On Thu, May 12, 2011 at 5:43 PM, Joel Sherrill <span dir="ltr"><<a href="mailto:joel.sherrill@oarcorp.com" target="_blank">joel.sherrill@oarcorp.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div>On 05/12/2011 04:41 PM, Rohan Kangralkar wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi,<br>
<br>
I am using the rtems blackfin tools to build and debug my board that contains analog devices BF527 processor.<br>
<br>
The issue i am facing is that I am not able to place breakpoints in some part of my c code. So the debugging is becoming difficult. GDB complains "No line 291 in file" even though the file has more that 300 lines of code.<br>
<br>
<br>
</blockquote></div>
What's the name of the file? There is a chance there are two<br>
files with the same name in the executable and gdb is confused.<br>
I have seen this before.</blockquote></div><div><br>The name of the file is tll_fpga.c. I looked for the file in my project and there are no files with duplicate file names.<br><br> </div><div class="im"><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
I use the compiler, debugger provided by rtems4.11 for debugging my application.<br>
<br>
After some debugging and analysis of the mapping the line number in the elf to the C code in the file using objdump i find the following.<br>
1. executing the bfin-elf-objdump ( analog devices toolchain) on the elf the following error is thrown out<br>
<br>
BFD: Dwarf Error: mangled line number section.<br>
<br>
2. but the objdump from rtems does not complain.<br>
<br>
</blockquote></div>
Are they built from the same source? If not, then random<br>
differences.</blockquote></div><div><br><br>They are built from the same source.<br><br> </div><div class="im"><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div>
<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br>
<br>
<br>
So<br>
How do i correct the issue in the rtems blackfin gdb?<br>
I also observe that analog devices have their own gdb-proxy but rtems does not provide gpd-proxy<br>
should the gdb-proxy also be included in the rtems bfin toolchain?<br>
<br>
</blockquote></div>
Would be good. Yes.<br></blockquote></div><div><br><br><br>I have some more information about the problem. To decouple it from the ADI toolchain, I compile my source using bfin-rtems4.11-gcc. Then i load it to bfin-rtems4.11-gdb and connect it to the gdb bfin simulator. <br>
Then i try to put a breakpoint in the file by opening then file. The debugger complains that there is no such line number. Also there is no optimization set while compiling.<br>This is making my debugging difficult since i have to look at the disassembly for debugging. Is there any way i can use the C source for debugging.<br>
<br><br><br> </div><div class="im"><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br>
Thankyou<br>
Rohan Kangralkar<br>
</blockquote>
<br>
<br>
-- <br>
Joel Sherrill, Ph.D. Director of Research& Development<br>
joel.sherrill@OARcorp.com On-Line Applications Research<br>
Ask me about RTEMS: a free RTOS Huntsville AL 35805<br>
Support Available <a href="tel:%28256%29%20722-9985" value="+12567229985" target="_blank">(256) 722-9985</a><br>
<br>
<br>
</blockquote></div></div><br><br clear="all"><br>-- <br>___________________________<br>Thanks and regards<br><font color="#888888">Rohan Kangralkar<br><br><br><br>
</font></blockquote></div><br>