home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!usc!cs.utexas.edu!tamsun.tamu.edu!cs.tamu.edu!jeffw
- From: jeffw@cs.tamu.edu (Jeffrey A Waller)
- Newsgroups: comp.lang.c++
- Subject: Re: Help: using GDB to debug G++-compiled programs
- Date: 12 Jan 1993 23:54:20 GMT
- Organization: Computer Science Dept., Texas A&M University
- Lines: 25
- Distribution: world
- Message-ID: <1ivlncINNi34@tamsun.tamu.edu>
- References: <1993Jan11.122250.23513@iti.gov.sg> <1993Jan12.014848.14135@nuscc.nus.sg>
- NNTP-Posting-Host: sparc47.cs.tamu.edu
-
- In article <1993Jan12.014848.14135@nuscc.nus.sg>, suresh@papaya.iss.nus.sg (Suresh Thennarangam - Research Scholar) writes:
- |> Note that even then you may not be able to access inline methods
- |> unless you move their declaration outside the class definition.
-
-
- This may have been true of older versions, but I think -g switch causes
- gcc 2.2.2 to move otherwise inlined functions out of line (from the man
- page).
-
- -finline
-
- Pay attention the inline keyword. Normally the nega-
- tion of this option `-fno-inline' is used to keep the
- compiler from expanding any functions inline. However,
- the opposite effect may be desirable when compiling
- with `-g', since `-g' normally turns off all inline
- function expansion.
-
- and if -g does not turn off inlining in some case -fno-inline will.
- So instead of moving around you code use if necessary.
-
- g++ -ggdb -fno-inline myC++.C -o myOut
-
-
- -Jeff
-