Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ gdb python
- GNU gdb (GDB) 7.6 (Debian 7.6-5)
- Copyright (C) 2013 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-linux-gnu".
- For bug reporting instructions, please see:
- <http://www.gnu.org/software/gdb/bugs/>...
- Reading symbols from /usr/bin/python2.7...Reading symbols from /usr/lib/debug/usr/bin/python2.7...done.
- done.
- (gdb) break setup_struct::~setup_struct
- Function "setup_struct::~setup_struct" not defined.
- Make breakpoint pending on future shared library load? (y or [n]) y
- Breakpoint 1 (setup_struct::~setup_struct) pending.
- (gdb) b Py_Finalize
- Breakpoint 2 at 0x421226: file ../Python/pythonrun.c, line 405.
- (gdb) r -c 'import gcode; gcode.parse("", "")'
- Starting program: /usr/bin/python2.7 -c 'import gcode; gcode.parse("", "")'
- warning: Could not load shared library symbols for linux-vdso.so.1.
- Do you need "set solib-search-path" or "set sysroot"?
- [Thread debugging using libthread_db enabled]
- Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
- Traceback (most recent call last):
- File "<string>", line 1, in <module>
- AttributeError: 'str' object has no attribute 'parameter_file'
- Breakpoint 2, Py_Finalize () at ../Python/pythonrun.c:405
- 405 ../Python/pythonrun.c: No such file or directory.
- (gdb) where
- #0 Py_Finalize () at ../Python/pythonrun.c:405
- #1 0x0000000000435472 in Py_Main (argc=<optimized out>, argv=0x7fffffffe178)
- at ../Modules/main.c:665
- #2 0x00007ffff6f17995 in __libc_start_main (main=0x4354a1 <main>, argc=3,
- ubp_av=0x7fffffffe178, init=<optimized out>, fini=<optimized out>,
- rtld_fini=<optimized out>, stack_end=0x7fffffffe168) at libc-start.c:260
- #3 0x0000000000574a0e in _start ()
- (gdb) c
- Continuing.
- Breakpoint 1, setup_struct::~setup_struct (
- this=0x7ffff6b4bd10 <Interp::_setup>, __in_chrg=<optimized out>)
- at emc/rs274ngc/interp_internal.hh:572
- warning: Source file is more recent than executable.
- 572 ~setup_struct() {
- (gdb) where
- #0 setup_struct::~setup_struct (this=0x7ffff6b4bd10 <Interp::_setup>,
- __in_chrg=<optimized out>) at emc/rs274ngc/interp_internal.hh:572
- #1 0x00007ffff6f2faa1 in __run_exit_handlers (status=1,
- listp=0x7ffff729c5c8 <__exit_funcs>,
- run_list_atexit=run_list_atexit@entry=true) at exit.c:77
- #2 0x00007ffff6f2fb25 in __GI_exit (status=<optimized out>) at exit.c:99
- #3 0x00007ffff6f1799c in __libc_start_main (main=0x4354a1 <main>, argc=3,
- ubp_av=0x7fffffffe178, init=<optimized out>, fini=<optimized out>,
- rtld_fini=<optimized out>, stack_end=0x7fffffffe168) at libc-start.c:294
- #4 0x0000000000574a0e in _start ()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement