当前位置:网站首页>Compile gdb7.11.1 and solve the error
Compile gdb7.11.1 and solve the error
2022-07-22 21:35:00 【panfei263031】
During compilation , Several times error: conflicting types for The problem of , for example :
linux-arm-low.c:272:1: error: conflicting types for ‘ps_get_thread_area’
ps_get_thread_area (const struct ps_prochandle *ph,
^~~~~~~~~~~~~~~~~~
In file included from gdb_proc_service.h:30:0,
from linux-low.h:24,
from linux-arm-low.c:20:
/opt/gcc-linaro-7.3.1-2018.05-x86_64_arm-linux-gnueabihf/arm-linux-gnueabihf/libc/usr/include/proc_service.h:72:17: note: previous declaration of ‘ps_get_thread_area’ was here
extern ps_err_e ps_get_thread_area (struct ps_prochandle *
This kind of problem is easier to solve , Redefined , Open the redefined file directly , Just comment out the redefined part .
Similar error reporting :
proc-service.c:217:1: error: conflicting types for ‘ps_lsetfpregs’
proc-service.c:217:1: error: conflicting types for ‘ps_lsetfpregs’
arm-linux-nat.c:480:1: error: conflicting types for ‘ps_get_thread_area’
linux-arm-low.c:272:1: error: conflicting types for ‘ps_get_thread_area’
The second question is :
gdb gdb_proc_service.h:173:9: error: unknown type name ‘gdb_fpregset_t’
stay gdb/gdb_proc_service.h in , Add the following header :
include “gregset.h”
The content after adding is as follows :
#ifndef GDB_PROC_SERVICE_H
#define GDB_PROC_SERVICE_H
#include <sys/types.h>
#include “gregset.h”
#ifdef HAVE_PROC_SERVICE_H
边栏推荐
- 蓝桥杯-K倍区间
- 云报传媒广场数字电视转模拟系统设计分享
- 10.系统信息相关命令
- Bash basic function - input / output redirection
- Learning notes of wechat applet introduction tutorial - operation feedback of UI chapter
- 煤矿无线广播系统解决方案
- cJSON源码阅读笔记
- Wechat applet introduction tutorial learning notes - layout basis of UI chapter
- Bash basic functions - Multi command sequential execution and pipeline compliance
- Buuctf breakthrough diary 02-- [hctf 2018] warmup1
猜你喜欢
Buuctf breakthrough diary --[mrctf2020]ezpop1
水库防汛泄洪抢险应急广播系统建设4G无线广播模式分析
[GXYCTF2019]BabyUpload1
中等专业学校校园广播系统解决方案-职业中专校园IP网络广播应用
[lttng learning journey] ----- components of lttng deconstruction
如何做好研发精益需求管理
水库河道应急广播系统解决方案
蓝桥杯-四平方和
Web编程入门 1.1登录功能的实现
Learning notes of wechat applet introduction tutorial - operation feedback of UI chapter
随机推荐
蓝桥杯-连号区间数
[lttng practice] - design a set of things to monitor the execution time and cycle of user programs running in a certain cycle -- demand analysis and scheme design
C# Winform开发 文件/文件夹的复制 剪切 粘贴
Script execution mode
二分-机器人跳跃问题
C# Winform开发 WinAppDriver 自动测试的使用
Buuctf breakthrough diary --[mrctf2020]ezpop1
隧道调频广播覆盖系统数字选频光纤拉远漏缆覆盖解决方案
关于二分法
校园英语调频台在江西陶瓷工艺美术职业技术学院的应用
蓝桥杯-四平方和
HNOI2003-激光炸弹
About dichotomy
acwing-费解的开关
Buuctf breakthrough diary 03 -- [geek challenge 2019] havefun1
Juc-6.2-concurrency container copyonwritearraylist
pytorch, 指定显卡问题
新生儿,脑区分割资料
蓝桥杯-二分-分巧克力
Juc-7.3-thread collaboration cyclicbarrier