Re: Need help in debugging a testsuite over qemu and gdb

2020-08-12 Thread Richi Dubey
Great advice. I'll keep these points in my mind. Thanks. On Tue, Aug 11, 2020 at 10:27 PM Gedare Bloom wrote: > On Tue, Aug 11, 2020 at 9:07 AM Richi Dubey wrote: > >> > >> If you hit this break point, try to use > >> bt > >> and then set a conditional break point to the offending function, res

Re: Need help in debugging a testsuite over qemu and gdb

2020-08-11 Thread Gedare Bloom
On Tue, Aug 11, 2020 at 9:07 AM Richi Dubey wrote: >> >> If you hit this break point, try to use >> bt >> and then set a conditional break point to the offending function, reset >> the target, and run again. > > I will use this. Thanks again. > >> It depends on the correctness of the program call

Re: Need help in debugging a testsuite over qemu and gdb

2020-08-11 Thread Richi Dubey
> > If you hit this break point, try to use > bt > and then set a conditional break point to the offending function, reset > the target, and run again. I will use this. Thanks again. It depends on the correctness of the program call stack though, so you may > on > occasion find the bt is corrupt/

Re: Need help in debugging a testsuite over qemu and gdb

2020-08-11 Thread Gedare Bloom
On Tue, Aug 11, 2020 at 4:30 AM Sebastian Huber wrote: > > On 11/08/2020 11:40, Richi Dubey wrote: > > (gdb) continue > > Continuing. > > > > Thread 1 hit Breakpoint 2, _ARMV4_Exception_data_abort_default () at > > /home/richi/quick-start/src/rtems/c/src/../../cpukit/score/cpu/arm/armv4-exception-

Re: Need help in debugging a testsuite over qemu and gdb

2020-08-11 Thread Sebastian Huber
On 11/08/2020 11:40, Richi Dubey wrote: (gdb) continue Continuing. Thread 1 hit Breakpoint 2, _ARMV4_Exception_data_abort_default () at /home/richi/quick-start/src/rtems/c/src/../../cpukit/score/cpu/arm/armv4-exception-default.S:70 If you hit this break point, try to use bt and then set a c

Re: Need help in debugging a testsuite over qemu and gdb

2020-08-11 Thread Richi Dubey
Thank you for the quick response. The script helped. I hate asking others for a lot of help, but I do not know what to do now that I have caught the exception. I also put Init as a breakpoint, but the program breaks at _ARMV4_Exception first, What should I do about this? How do I resolve/fix the c

Re: Need help in debugging a testsuite over qemu and gdb

2020-08-11 Thread Sebastian Huber
On 11/08/2020 09:59, Sebastian Huber wrote: arm-rtems6-gdb --arm.gdb app.exe arm-rtems6-gdb --command=arm.gdb app.exe -- Sebastian Huber, embedded brains GmbH Address : Dornierstr. 4, D-82178 Puchheim, Germany Phone : +49 89 189 47 41-16 Fax : +49 89 189 47 41-09 E-Mail : sebastian.hu

Re: Need help in debugging a testsuite over qemu and gdb

2020-08-11 Thread Sebastian Huber
On 11/08/2020 09:51, Richi Dubey wrote: Hi, I have been trying to debug a test suite (this patch ) with qemu and gdb by running the following commands: