gdb 7.7 no interviene en OS-X Mavericks con gcc4.7.3 (Macports)

Aquí hay un programa simple:

#include <iostream>
#include <vector>

namespace Example
{

  template <int dim>
  class Problem
  {
  public:

    void run() {
        std::cout<<"here.."<<std::endl;
    }   
  };
}

int main(int argc, char *argv[])
{
  Example::Problem<2> problem;
  problem.run();
  return 0;
}

compilado con Macport's gcc 4.7.3:

g++-mp-4.7 -g -O0 prog.cc -o prog

Si trato de depurar en gdb 7.7 (autocompilado¡No el de Macport!):

$gdb
file prog
b main
r
s

No puedo intervenir en la función:

34    problem.run();
(gdb) s
here..
36    return 0;
(gdb)

¿Estoy haciendo algo mal? ¿O parece un error de gdb cuando se usa en os-x mavericks?

ACTUALIZAR:

No veo ninguna advertencia / error cuando uso gdb:

$ gdb ./prog
GNU gdb (GDB) 7.7
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-apple-darwin13.1.0".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ./prog...Reading symbols from /Users/bla-bla-bla/prog.dSYM/Contents/Resources/DWARF/prog...done.
done.
(gdb)

también '-gdwarf-2 -gstrict-dwarf' no cambia el comportamiento ...

UDAPTE2:

Veo el mismo comportamiento de pila de llamadas que faltaaquí. Aunque no pude comprobar si estaba compilando con-m32 ayuda en mi caso, ya que tengo todo para 64 bits y así obtenerundefined symbols problemas.

Otro problema de escalonamiento mientras se informa la depuraciónaquí y aquí enENTONCES.

Respuestas a la pregunta(1)

Su respuesta a la pregunta