GDB help
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Unix support > Unix Programming > GDB help




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    GDB help  
novice


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-13-06 07:48 AM

While using GDB if i am inside a for loop which
will repeat for 255 times and i want to jump to
the line next to for loop, then what's the command.
Thanks in advance for those who reply.






[ Post a follow-up to this message ]



    Re: GDB help  
Andrei Voropaev


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-13-06 07:48 AM

On 2006-03-13, novice <novice.sam@gmail.com> wrote:
> While using GDB if i am inside a for loop which
> will repeat for 255 times and i want to jump to
> the line next to for loop, then what's the command.

The simplest way. Set breakpoint on the desired command, and then hit
'c'.


--
Minds, like parachutes, function best when open





[ Post a follow-up to this message ]



    Re: GDB help  
Madhav


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-13-06 07:48 AM

novice wrote:
> While using GDB if i am inside a for loop which
> will repeat for 255 times and i want to jump to
> the line next to for loop, then what's the command.
> Thanks in advance for those who reply.

at the gdb prompt, just say

gdb> b <line_no_after_the_loop>

That will take you to the line after the loop.






[ Post a follow-up to this message ]



    Re: GDB help  
Madhav


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-13-06 07:48 AM

Madhav wrote:
> novice wrote: 
>
> at the gdb prompt, just say
>
> gdb> b <line_no_after_the_loop>
>
> That will take you to the line after the loop.

and after that you have to use "continue" as Andrie pointed out.






[ Post a follow-up to this message ]



    Re: GDB help  
Bjorn Reese


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-13-06 12:51 PM

novice wrote:
> While using GDB if i am inside a for loop which
> will repeat for 255 times and i want to jump to
> the line next to for loop, then what's the command.

(gdb) help until
Execute until the program reaches a source line greater than the current
or a specified location (same args as break command) within the current
frame.

--
mail1dotstofanetdotdk





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 02:28 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register