admin管理员组

文章数量:1566678

#: corelow.c:237
#, possible-c-format
msgid “Can’t open file %s during file-backed mapping note processing”

这里file-backed是相对于内存来说的,意思就是有一块内存里放的是一个文件,比如共享库。gdb尝试找这个文件,然后映射到gdb的结构里,但是没有找到这个文件。

其实如果找不到文件应该报一个警告,而调试者不应该忽略这个警告。如果确实可以忽略,再忽略。
比如标题这个警告说,libstdc++的库找不到,这个是一个基础库,要是这个找不到,说明安装的软件版本对应不上去。需要特别关注一下。

	    /* Use exec_file_find() to do sysroot expansion.  It'll
	       also strip the potential sysroot "target:" prefix.  If
	       there is no sysroot, an equivalent (possibly more
	       canonical) pathname will be provided.  */
	    gdb::unique_xmalloc_p

本文标签: fileusrlibgdbwarning