[prev in list] [next in list] [prev in thread] [next in thread]
List: freebsd-hackers
Subject: Re: Where is Gdb's start command?
From: Greg 'groggy' Lehey <grog () FreeBSD ! org>
Date: 2016-12-19 22:18:55
Message-ID: 20161219221855.GB16173 () eureka ! lemis ! com
[Download RAW message or body]
On Monday, 19 December 2016 at 22:51:15 +0100, Bertram Scharpf wrote:
> Hi,
>
> I do not actually want to debug something but rather write
> some Gdb examples for a tutorial. I would like the program
> to stop at the first instruction of main(). Normally I do
> this using the command "start".
I've never seen this before.
> But on my FreeBSD this command doesn't seem to exist.
>
> (gdb) n
> The program is not being run.
> (gdb) start
> Undefined command: "start". Try "help".
> (gdb) help start
> Undefined command: "start". Try "help".
>
> Why isn't it defined? What should I say instead?
It is defined, just not in terms that you're expecting. run or r.
But that will run the program. First you need to set a breakpoint
where you want to stop:
(gdb) b main
(gbb) r
Greg
--
Sent from my desktop computer.
Finger grog@FreeBSD.org for PGP public key.
See complete headers for address and phone numbers.
This message is digitally signed. If your Microsoft mail program
reports problems, please read http://lemis.com/broken-MUA
["signature.asc" (application/pgp-signature)]
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic