How do I skip over a portion on code while debugging with GDB

Richi Dubey richidubey at gmail.com
Thu Nov 19 06:03:36 UTC 2020


Hi,

Thank you for your replies Dr. Bloom and Dr. Sherrill.

I completely forgot that I could do a break with the line number. I have
been manually working with the next instruction for the past few weeks when
I could easily have done break :p.

Thanks.

On Wed, Nov 18, 2020 at 12:43 AM Joel Sherrill <joel at rtems.org> wrote:

> Next is good but setting a breakpoint at the line after the task create
> loop
> is probably the solution here. Or "next NUMBER" to next a number of times.
> Many gdb commands take a number.
>
> Another interesting option is using continue and break conditions. You
> could
> then continue until the loop counter is 99 or something.
>
> https://sourceware.org/gdb/onlinedocs/gdb/Continuing-and-Stepping.html
>
> On Tue, Nov 17, 2020 at 12:41 PM Gedare Bloom <gedare at rtems.org> wrote:
>
>> Use 'next' to step by instructions in program order ignoring their
>> control flow. This also will skip over function calls.
>>
>> On Tue, Nov 17, 2020 at 8:54 AM Richi Dubey <richidubey at gmail.com> wrote:
>> >
>> > Hi,
>> >
>> > When I am trying to debug the tm24 test suite, there's some line of
>> code that repeats the same code that creates a task around 100 times. Is
>> there a way I can skip that code while debugging? Please let me know.
>> >
>> > Thanks,
>> > Richi.
>> > _______________________________________________
>> > devel mailing list
>> > devel at rtems.org
>> > http://lists.rtems.org/mailman/listinfo/devel
>> _______________________________________________
>> devel mailing list
>> devel at rtems.org
>> http://lists.rtems.org/mailman/listinfo/devel
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20201119/0acc9b5b/attachment-0001.html>


More information about the devel mailing list