Re: GDB does not recognize cxx extension?
Jeffrey Walton <[email protected]>
| Newsgroups | gmane.comp.gdb.devel |
|---|---|
| Message-ID | <CAH8yC8k1vu2bf=hxi6ULrwRTXhrvc18Q_Kq7Ur1F7+=ogCA+iQ@mail.gmail.com> |
On Sun, Sep 29, 2019 at 1:09 AM Christian Biesinger <[email protected]> wrote: > > On Sun, Sep 29, 2019 at 12:01 AM Jeffrey Walton <[email protected]> wrote: > > I've got a C++ program built from a source called pem_test.cxx. I'm > > having trouble getting GDB to accept it. Autocomplete does not work: > > > > (gdb) b pem_<TAB> > > pem_common.cpp pem_common.h pem_read.cpp pem_write.cpp > > GDB gets the list of files from the debug data in the binary, not from > the current directory. Are you sure you compiled pem_test.cxx into the > binary? Yes. A 'b main' stops in pem_test.cxx. The recipe to build pem_test.cxx is at https://github.com/noloader/cryptopp-pem/blob/master/pem_create_keys.sh#L42 Jeff