This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: GDB - insert breakpoint in a subroutine
- From: Tim Prince <timothyprince at sbcglobal dot net>
- To: victor marian <vctrmarian at yahoo dot com>
- Cc: gcc-help mailing list <gcc-help at gcc dot gnu dot org>
- Date: Tue, 01 Aug 2006 18:07:16 -0700
- Subject: Re: GDB - insert breakpoint in a subroutine
- References: <20060801195526.69295.qmail@web55811.mail.re3.yahoo.com>
- Reply-to: tprince at myrealbox dot com
victor marian wrote:
How can I set a breakpoint when entering a subroutine
in gdb?
break function
inserts a breakpoint in a function
If I enter a subroutine it says the
subroutine is not recognised.
If you mean a Fortran subroutine, there are likely to be appended
underscores in the name as seen in gdb. A "user" subroutine would have
2 appended underscores, by default, with g77, 1 underscore with most
other compilers, including gfortran.