delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/05/05/19:13:09

From: dbell-hvp AT m140 DOT aone DOT net DOT au (David JD Bell)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: GDB and inline functions
Date: Mon, 05 May 1997 06:01:01 GMT
Organization: Hidden Valley Plantations
Lines: 14
Message-ID: <336e76e4.29785058@news.mcy.aone.net.au>
References: <5kcv35$r89 AT lion DOT cs DOT latrobe DOT edu DOT au>
NNTP-Posting-Host: d215-1.cpe.maroochydore.aone.net.au
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

boylesgj AT lion DOT cs DOT latrobe DOT edu DOT au (Gregary J Boyles) wrote:

>
>Is it possible to get GDB to step into and inline function defined in a
>header file (.h). I have tried but doing so results in rubbish being
>displayed as the next line of code to be executed. There doesn't seem to
>be any reference to this problem in the FAQ.

My understanding was that no debugger can do this, because when it's
compiled the inline is more or less moved to the .o file. So the
debugger looks for it there, and not in the .h file. Some newer ones
might be able to though.

David Bell

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019