Where is Gdb's start command?

Andreas Tobler andreast-list at fgznet.ch
Mon Dec 19 22:01:50 UTC 2016


On 19.12.16 22:51, 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". 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?
>
>   $ gdb -version
>   GNU gdb 6.1.1 [FreeBSD]
>   ...
>   $ uname -r
>   10.3-STABLE
>
> Thanks in advance.

If you use the ports devel/gdb the start command works as documented.
If you are bound to the src gdb then you might want to try the 'run' 
command.

Personally I'd recommend using the ports gdb.

Andreas



More information about the freebsd-hackers mailing list