[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[dsdp-tcf-dev] [Bug 288709] New: [tcf][agent] registers.c fails to compile if REG_SET if defined from ptrace.h
|
https://bugs.eclipse.org/bugs/show_bug.cgi?id=288709
Product/Component: Target Management / TCF
Summary: [tcf][agent] registers.c fails to compile if REG_SET
if defined from ptrace.h
Classification: DSDP
Product: Target Management
Version: 3.1
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P3
Component: TCF
AssignedTo: dsdp.tm.tcf-inbox@xxxxxxxxxxx
ReportedBy: uwe.stieber@xxxxxxxxxxxxx
QAContact: martin.oberhuber@xxxxxxxxxxxxx
--- Comment #0 from Uwe Stieber <uwe.stieber@xxxxxxxxxxxxx> 2009-09-06 06:55:58 EDT ---
In case the REG_SET type is defined from pt_regs struct (from asm/ptrace.h),
registers.c fails to compile with following errors:
i586-wrs-linux-gnu-x86_64-glibc_std-gcc -g -O2 -fno-omit-frame-pointer -pipe
-Wall -g -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -Wall
-Wmissing-prototypes -Wno-parentheses -c -o GNU/Linux/x86_64/Debug/registers.o
registers.c
registers.c:103: error: 'REG_SET' has no member named 'ds'
registers.c:104: error: 'REG_SET' has no member named 'es'
registers.c:105: error: 'REG_SET' has no member named 'fs'
registers.c:106: error: 'REG_SET' has no member named 'gs'
registers.c:107: error: 'REG_SET' has no member named 'fs_base'
registers.c:108: error: 'REG_SET' has no member named 'gs_base'
make[4]: *** [GNU/Linux/x86_64/Debug/registers.o] Error 1
If applying the attached patch to mdep.h, the file can be compiled. Probably
the line 103 - 108 in registers.c should be wrapped in a #ifdef.
This happens with Wind River Linux for common_pc_64 target architecture. Don't
know if this can manifest on other distros/architecture.
--
Configure bugmail: https://bugs.eclipse.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.