]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
GDB: Add `info main' command
authorRichard Bunt <richard.bunt@linaro.org>
Fri, 31 Mar 2023 14:31:40 +0000 (15:31 +0100)
committerMaciej W. Rozycki <macro@embecosm.com>
Fri, 31 Mar 2023 14:31:40 +0000 (15:31 +0100)
commit03d83cd5f55abef6a8e6b8e1811cb86f8a05d616
tree369805d17231ef7a67d59cc036fff2e4a2e0f4b9
parent5b2007ad26f51b244ce66ec65d13e7f71a7f22bc
GDB: Add `info main' command

Allow consumers of GDB to extract the name of the main method.  This is
most useful for Fortran programs which have a variable main method.

Used by both MAP and DDT e.g. it is used to detect the presence of debug
information.

Co-Authored-By: Maciej W. Rozycki <macro@embecosm.com>
gdb/NEWS
gdb/doc/gdb.texinfo
gdb/symtab.c
gdb/testsuite/gdb.fortran/info-main.exp [new file with mode: 0644]
gdb/testsuite/gdb.fortran/info-main.f90 [new file with mode: 0644]