I have a class looks like this:
namespace madoka
{
class polarizable_sites
{
public:
void resize(const size_t dim_);
void clear(void);
};
}
in gdb, I could set breakpoint on clear by
b 'madoka::polarizable_sites::clear()'
however, for member function resize, a
b 'madoka::polarizable_sites::resize(const size_t)'
does not work. GDB reported error:
the class madoka::polarizable_sites does not have any method named resize(const size_t) Hint: try 'madoka::polarizable_sites::resize(const size_t)' or 'madoka::polarizable_sites::resize(const size_t)' (Note leading single quote.)
I am wondering why since the function style is auto-completed by TAB.
BTW: I'm using GDB
GNU gdb (Ubuntu/Linaro 7.2-1ubuntu11) 7.2 Copyright (C) 2010 Free Software Foundation, Inc.
with compiler'
g++ (Ubuntu/Linaro 4.5.2-8ubuntu4) 4.5.2 Copyright (C) 2010 Free Software Foundation, Inc.
-O0 -ggdb- Chris Eberle