libglib2.0-0-dbg and g_app_info_get_default_for_type()
Jack Bates
9f3n7j at nottheoilrig.com
Mon Nov 14 21:36:11 UTC 2016
I'm trying to step through g_app_info_get_default_for_type().
1) I installed libglib2.0-0-dbg,
2) I can set a breakpoint,
3) I'm sure g_app_info_get_default_for_type() is executed,
4) but GDB doesn't pause.
Do I need any additional packages to set breakpoints in
g_app_info_get_default_for_type()?
I can step through the g_app_info_get_default_for_type() caller,
fm_launch_files(), which is why I'm sure it's executed.
In that case, when GDB gets to g_app_info_get_default_for_type() it
silently steps over, not into, it.
The following is my GDB session:
> nottheoilrig at debian:~$ gdb pcmanfm 3178
> GNU gdb (Debian 7.11.1-2) 7.11.1
> Copyright (C) 2016 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".
> 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 pcmanfm...Reading symbols from /usr/lib/debug/.build-id/57/2e125ddae33e95e2dfededf8abc6c09771899c.debug...done.
> done.
> Attaching to program: /usr/bin/pcmanfm, process 3178
> [New LWP 3192]
> [New LWP 3193]
>
> warning: .dynamic section for "/usr/lib/x86_64-linux-gnu/libpangocairo-1.0.so.0" is not at the expected address (wrong library or version mismatch?)
>
> warning: .dynamic section for "/usr/lib/x86_64-linux-gnu/libpangoft2-1.0.so.0" is not at the expected address (wrong library or version mismatch?)
>
> warning: .dynamic section for "/usr/lib/x86_64-linux-gnu/libpango-1.0.so.0" is not at the expected address (wrong library or version mismatch?)
>
> warning: .dynamic section for "/usr/lib/x86_64-linux-gnu/libpixman-1.so.0" is not at the expected address (wrong library or version mismatch?)
>
> warning: .dynamic section for "/lib/x86_64-linux-gnu/libselinux.so.1" is not at the expected address (wrong library or version mismatch?)
>
> warning: .dynamic section for "/lib/x86_64-linux-gnu/liblzma.so.5" is not at the expected address (wrong library or version mismatch?)
>
> warning: .dynamic section for "/usr/lib/x86_64-linux-gnu/libatspi.so.0" is not at the expected address (wrong library or version mismatch?)
>
> warning: .dynamic section for "/usr/lib/x86_64-linux-gnu/gio/modules/libgvfsdbus.so" is not at the expected address (wrong library or version mismatch?)
>
> warning: .dynamic section for "/usr/lib/x86_64-linux-gnu/gvfs/libgvfscommon.so" is not at the expected address (wrong library or version mismatch?)
>
> warning: .dynamic section for "/usr/lib/x86_64-linux-gnu/libcroco-0.6.so.3" is not at the expected address (wrong library or version mismatch?)
>
> warning: .dynamic section for "/lib/x86_64-linux-gnu/libgcc_s.so.1" is not at the expected address (wrong library or version mismatch?)
>
> warning: .dynamic section for "/usr/lib/x86_64-linux-gnu/gio/modules/libgioremote-volume-monitor.so" is not at the expected address (wrong library or version mismatch?)
>
> warning: File "/lib/x86_64-linux-gnu/libthread_db-1.0.so" auto-loading has been declined by your `auto-load safe-path' set to "$debugdir:$datadir/auto-load".
> To enable execution of this file add
> add-auto-load-safe-path /lib/x86_64-linux-gnu/libthread_db-1.0.so
> line to your configuration file "/home/nottheoilrig/.gdbinit".
> To completely disable this security protection add
> set auto-load safe-path /
> line to your configuration file "/home/nottheoilrig/.gdbinit".
> For more information about this security protection see the
> "Auto-loading safe path" section in the GDB manual. E.g., run from the shell:
> info "(gdb)Auto-loading safe path"
>
> warning: Unable to find libthread_db matching inferior's thread library, thread debugging will not be available.
>
> warning: File "/lib/x86_64-linux-gnu/libthread_db-1.0.so" auto-loading has been declined by your `auto-load safe-path' set to "$debugdir:$datadir/auto-load".
>
> warning: Unable to find libthread_db matching inferior's thread library, thread debugging will not be available.
> 0x00007fc5117e309d in __GI___xmknodat (vers=<optimized out>, fd=3,
> file=0x5 <error: Cannot access memory at address 0x5>, mode=293482653,
> dev=0x6) at ../sysdeps/unix/sysv/linux/xmknodat.c:44
> 44 ../sysdeps/unix/sysv/linux/xmknodat.c: No such file or directory.
> (gdb) b g_app_info_get_default_for_type
> Breakpoint 1 at 0x7fc51261b1d0: file ././gio/gdesktopappinfo.c, line 4011.
> (gdb) c
> Continuing.
More information about the pkg-gnome-maintainers
mailing list