1. 程式人生 > >centos7 安裝debuginfo調試glibc源碼

centos7 安裝debuginfo調試glibc源碼

ron text pro 拷貝數據 roc 安裝步驟 install lib lse

一、背景

在調試一個問題時,發現問題因為memcpy拷貝數據時將數據寫壞,因此想調試memcpy 看看是如何造成的,因此需要調試信息

二、環境

centos7 x86_64

技術分享圖片

三、安裝步驟

1.查看是否已經安裝過

技術分享圖片

2. 使用系統自帶的一個工具進行安裝,

$sudo debuginfo-install glibc-devel.x86_64

技術分享圖片技術分享圖片技術分享圖片

3.將安裝glibc-debuginfo和glibc-debuginfo-common 兩個包

技術分享圖片

四、驗證

技術分享圖片

技術分享圖片

已經能正確進入memcpy函數內部

centos7 安裝debuginfo調試glibc源碼