help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Debug Fortran 90 code in Emacs with arguments.


From: Eli Zaretskii
Subject: Re: Debug Fortran 90 code in Emacs with arguments.
Date: Tue, 05 Apr 2022 18:52:07 +0300

> From: Hongyi Zhao <hongyi.zhao@gmail.com>
> Date: Tue, 5 Apr 2022 22:19:54 +0800
> Cc: help-gnu-emacs <help-gnu-emacs@gnu.org>
> 
> > > gdb -i=mi gfotran
> >
> > Is 'gfortran' the name of your program's executable file?  If not,
> > edit the command to replace "gfortran" with the name of your program's
> > executable file.
> 
> I tried as follows, but still failed:
> 
> M-x gdb RET
> # 1 2 are arguments passed to the program:
> Run gdb (like this): gdb -i=mi ./bin/Debug/bilbao_read 1 2
> 
> Then I encounter the following rather messy information:

You use a non-trivial tool for the first time, so you should at least
study its --help screen.  That's not how you pass command-line
arguments to a program being debugged.  You need to use --args:

   gdb -i=mi --args ./bin/Debug/bilbao_read 1 2



reply via email to

[Prev in Thread] Current Thread [Next in Thread]