all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: Debug Fortran 90 code in Emacs with arguments.
Date: Tue, 05 Apr 2022 18:52:07 +0300	[thread overview]
Message-ID: <831qybedeg.fsf@gnu.org> (raw)
In-Reply-To: <CAGP6POL7OoSXCS5VK5XtvT5NMowPSjgNho5JMXv0-OpX2NebfA@mail.gmail.com> (message from Hongyi Zhao on Tue, 5 Apr 2022 22:19:54 +0800)

> 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	other threads:[~2022-04-05 15:52 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-05  2:27 Debug Fortran 90 code in Emacs with arguments Hongyi Zhao
2022-04-05 11:18 ` Eli Zaretskii
2022-04-05 12:57   ` Hongyi Zhao
2022-04-05 13:00     ` Hongyi Zhao
2022-04-05 13:19       ` Eli Zaretskii
2022-04-05 13:23         ` Eli Zaretskii
2022-04-05 13:52           ` Hongyi Zhao
2022-04-05 14:02             ` Eli Zaretskii
2022-04-05 14:14               ` Hongyi Zhao
2022-04-05 14:19         ` Hongyi Zhao
2022-04-05 15:52           ` Eli Zaretskii [this message]
2022-04-06  1:46             ` Hongyi Zhao
2022-04-06  2:32               ` Eli Zaretskii
2022-04-06  3:02                 ` Hongyi Zhao
2022-04-06  2:26             ` Hongyi Zhao
2022-04-06 10:50               ` Eli Zaretskii
2022-04-06 13:05                 ` Hongyi Zhao
2022-04-06 14:12                   ` Eli Zaretskii
2022-04-06 14:42                     ` Hongyi Zhao
2022-04-06 15:42                       ` Eli Zaretskii
2022-04-07  2:02                         ` Hongyi Zhao

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=831qybedeg.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.