This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: GDB - insert breakpoint in a subroutine


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]