How to use gdb to debug lammps

Dear Axel

Thank you very much for your help, especially for the scope of lammps.

I successfully set a breakpoints like follows:

A warning showed up, is this important?

warning: /etc/gdbinit.d/ no such file or directory

zhwzhou@…7386…:~/softwares/lammps-23Oct17/mycase> gdb --args lmp_serial -in in.rhodo

GNU gdb (GDB; openSUSE 13.2) 7.8

Copyright © 2014 Free Software Foundation, Inc.

License GPLv3+: GNU GPL version 3 or later

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-suse-linux”.

Type “show configuration” for configuration details.

For bug reporting instructions, please see:

Find the GDB manual and other documentation resources online at:

For help, type “help”.

Type “apropos word” to search for commands related to “word”…

warning: /etc/gdbinit.d/ no such file or directory

Reading symbols from lmp_serial…done.

(gdb) b LAMMPS_NS::PairLJCharmmfswCoulLong::compute

Breakpoint 1 at 0x5c65d0: file …/pair_lj_charmmfsw_coul_long.cpp, line 114.