Hello there,
Recently, I try to work with deepstream-test1 and can debug like nvdsinfer_context_impl_capi.cpp file with normal gdb debugger.
But it can’t debug with cuda-gdb for deepstream_test1_app.c when step into gst_element_set_state (pipeline, GST_STATE_PLAYING);
Can you help me find why can’t debug deepstream app with cuda-gdb?
Thank you.
Following is partial cuda-gdb infomation :
NVIDIA (R) CUDA Debugger
11.4 release Portions Copyright (C) 2007-2021 NVIDIA Corporation
GNU gdb (GDB) 10.1
Copyright (C) 2020 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 "aarch64-elf-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at: <http://www.gnu.org/software/gdb/documentation/>.
Type "apropos word" to search for commands related to "word".
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/aarch64-linux-gnu/libthread_db.so.1".
[Detaching after fork from child process 1697669]
[Detaching after fork from child process 1697676]
[New Thread 0xffffec0ed900 (LWP 1697697)]
[Detaching after vfork from child process 1697698]
[Detaching after vfork from child process 1697701]
Added elements to bin
Using file: /opt/nvidia/deepstream/deepstream-6.3/samples/streams/sample_720p.h264
[New Thread 0xffffe3c14900 (LWP 1697708)]
GDB unhandled notify: library-unloaded: {"id":"/usr/lib/aarch64-linux-gnu/libv4l/plugins/nv/libv4l2_nvargus.so","target-name":"/usr/lib/aarch64-linux-gnu/libv4l/plugins/nv/libv4l2_nvargus.so","host-name":"/usr/lib/aarch64-linux-gnu/libv4l/plugins/nv/libv4l2_nvargus.so","thread-group":"i1"}
GDB unhandled notify: library-unloaded: {"id":"/usr/lib/aarch64-linux-gnu/tegra/libnvargus_socketclient.so","target-name":"/usr/lib/aarch64-linux-gnu/tegra/libnvargus_socketclient.so","host-name":"/usr/lib/aarch64-linux-gnu/tegra/libnvargus_socketclient.so","thread-group":"i1"}
GDB unhandled notify: library-unloaded: {"id":"/lib/aarch64-linux-gnu/libgtk-3.so.0","target-name":"/lib/aarch64-linux-gnu/libgtk-3.so.0","host-name":"/lib/aarch64-linux-gnu/libgtk-3.so.0","thread-group":"i1"}
GDB unhandled notify: library-unloaded: {"id":"/lib/aarch64-linux-gnu/libgdk-3.so.0","target-name":"/lib/aarch64-linux-gnu/libgdk-3.so.0","host-name":"/lib/aarch64-linux-gnu/libgdk-3.so.0","thread-group":"i1"}
GDB unhandled notify: library-unloaded: {"id":"/lib/aarch64-linux-gnu/libXi.so.6","target-name":"/lib/aarch64-linux-gnu/libXi.so.6","host-name":"/lib/aarch64-linux-gnu/libXi.so.6","thread-group":"i1"}
GDB unhandled notify: library-unloaded: {"id":"/lib/aarch64-linux-gnu/libXfixes.so.3","target-name":"/lib/aarch64-linux-gnu/libXfixes.so.3","host-name":"/lib/aarch64-linux-gnu/libXfixes.so.3","thread-group":"i1"}
GDB unhandled notify: library-unloaded: {"id":"/lib/aarch64-linux-gnu/libcairo-gobject.so.2","target-name":"/lib/aarch64-linux-gnu/libcairo-gobject.so.2","host-name":"/lib/aarch64-linux-gnu/libcairo-gobject.so.2","thread-group":"i1"}
GDB unhandled notify: library-unloaded: {"id":"/lib/aarch64-linux-gnu/libgdk_pixbuf-2.0.so.0","target-name":"/lib/aarch64-linux-gnu/libgdk_pixbuf-2.0.so.0","host-name":"/lib/aarch64-linux-gnu/libgdk_pixbuf-2.0.so.0","thread-group":"i1"}
GDB unhandled notify: library-unloaded: {"id":"/lib/aarch64-linux-gnu/libatk-1.0.so.0","target-name":"/lib/aarch64-linux-gnu/libatk-1.0.so.0","host-name":"/lib/aarch64-linux-gnu/libatk-1.0.so.0","thread-group":"i1"}
GDB unhandled notify: library-unloaded: {"id":"/lib/aarch64-linux-gnu/libatk-bridge-2.0.so.0","target-name":"/lib/aarch64-linux-gnu/libatk-bridge-2.0.so.0","host-name":"/lib/aarch64-linux-gnu/libatk-bridge-2.0.so.0","thread-group":"i1"}
GDB unhandled notify: library-unloaded: {"id":"/lib/aarch64-linux-gnu/libepoxy.so.0","target-name":"/lib/aarch64-linux-gnu/libepoxy.so.0","host-name":"/lib/aarch64-linux-gnu/libepoxy.so.0","thread-group":"i1"}
GDB unhandled notify: library-unloaded: {"id":"/lib/aarch64-linux-gnu/libXinerama.so.1","target-name":"/lib/aarch64-linux-gnu/libXinerama.so.1","host-name":"/lib/aarch64-linux-gnu/libXinerama.so.1","thread-group":"i1"}
GDB unhandled notify: library-unloaded: {"id":"/lib/aarch64-linux-gnu/libXrandr.so.2","target-name":"/lib/aarch64-linux-gnu/libXrandr.so.2","host-name":"/lib/aarch64-linux-gnu/libXrandr.so.2","thread-group":"i1"}
