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

2020-11-18 Thread Richi Dubey
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 Sherri

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

2020-11-17 Thread Joel Sherrill
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

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

2020-11-17 Thread Gedare Bloom
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 wrote: > > Hi, > > When I am trying to debug the tm24 test suite, there's some line of code that > repeats the same code that crea