User forums > Help

Debug problem with header files

<< < (2/6) > >>

TDragon:
This has been determined to be a bug in GCC's debug info generation. I'll be following up on it in the GCC bug tracker in the near future.

RJP Computing:

--- Quote from: TDragon on October 04, 2008, 02:53:51 am ---This has been determined to be a bug in GCC's debug info generation. I'll be following up on it in the GCC bug tracker in the near future.

--- End quote ---
Any updates on this? I am using your latest and I still can't set breakpoints in header files? Any help would be greatly appreciated.

ollydbg:

--- Quote from: RJP Computing on April 09, 2009, 02:58:44 pm ---
--- Quote from: TDragon on October 04, 2008, 02:53:51 am ---This has been determined to be a bug in GCC's debug info generation. I'll be following up on it in the GCC bug tracker in the near future.

--- End quote ---
Any updates on this? I am using your latest and I still can't set breakpoints in header files? Any help would be greatly appreciated.

--- End quote ---

This bug has been fixed already.
I just created a simple case, and find it works fine.

Edit:
I find it in TDM's bug list in sourceforge.
https://sourceforge.net/tracker/?func=detail&aid=2145427&group_id=200665&atid=974439

TDragon:
Per http://www.tdragon.net/recentgcc/devel.php, I have included a patch in TDM-GCC that fixes rhf's problem. Please be much more specific about your problem.

RJP Computing:
Sure I am using the latest version and trying to set a break point in a header only file.

Here is the file:

--- Code: ---#ifndef WX_SERIALIZE_COMBO_BOX_H
#define WX_SERIALIZE_COMBO_BOX_H

#include <boost/serialization/nvp.hpp>
#include <boost/serialization/split_free.hpp>
#include <wx/combobox.h>
#include "ctrlsub.h"

namespace boost
{
namespace serialization
{
template< class Archive > inline void serialize( Archive & ar, wxComboBox& t, const unsigned int /*file_version*/ )
{
// invoke serialization of the base class
ar & boost::serialization::make_nvp( "wxControlWithItems", boost::serialization::base_object< wxControlWithItems >( t ) );
}

} // namespace serialization
} // namespace boost

#endif
--- End code ---

Here is the gdb message:

--- Code: ---Debuggee process ID: 1128
No source file named D:/devel/Utilities/MetaCapture/wxtools/wx/serialization/combobox.h in loaded symbols.
No source file named D:/devel/Utilities/MetaCapture/wxtools/wx/serialization/combobox.h in loaded symbols.
--- End code ---

Now the debugger doesn't have any symbols for that file loaded so it never registers the break point and does not stop at the break point I set.

Any help would be appreciated. Thanks.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version