lncg / edb-debugger

Automatically exported from code.google.com/p/edb-debugger
GNU General Public License v2.0
0 stars 0 forks source link

Compile error on Ubuntu 12.04 #124

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Used 
http://samiux.blogspot.com/2013/05/howto-edb-debugger-on-ubuntu-desktop.html to 
make the program

What is the expected output? What do you see instead?
I saw below error message

unix/linux/PlatformState.cpp: In member function ‘virtual Register 
DebuggerCore::PlatformState::value(const QString&) const’:
unix/linux/PlatformState.cpp:117:62: error: ‘const struct 
user_fpregs_struct’ has no member named ‘mxcsr’
unix/linux/PlatformState.cpp: In member function ‘virtual void 
DebuggerCore::PlatformState::set_register(const QString&, edb::reg_t)’:
unix/linux/PlatformState.cpp:357:37: error: ‘struct user_fpregs_struct’ has 
no member named ‘mxcsr’
unix/linux/PlatformState.cpp: In member function ‘virtual QByteArray 
DebuggerCore::PlatformState::xmm_register(int) const’:
unix/linux/PlatformState.cpp:415:70: error: ‘const struct 
user_fpregs_struct’ has no member named ‘xmm_space’
make[2]: *** [.release-shared/obj/PlatformState.o] Error 1
make[2]: Leaving directory `/opt/edb-debugger/plugins/DebuggerCore'
make[1]: *** [sub-DebuggerCore-make_default] Error 2
make[1]: Leaving directory `/opt/edb-debugger/plugins'
make: *** [sub-plugins-make_default] Error 2

What version of the product are you using? On what operating system?
I am using latest SVN trunk on Ubuntu 12.04

Original issue reported on code.google.com by m...@zamanuniversity.edu.kh on 6 Mar 2014 at 10:15

GoogleCodeExporter commented 9 years ago
Interesting. Seems that register is simply not in that structure on 32-bit x86 
linux. I'll have to investigate how I can access it if at all!).

Thanks

Original comment by evan.teran on 6 Mar 2014 at 2:51

GoogleCodeExporter commented 9 years ago
I have disabled the code to support SSE stuff on x86-32 linux builds. 
Unfortunately I need to do some research on how/if I can access that data using 
ptrace. Once I figure that out, I'll reenable the support (correctly).

Let me know if that fixes the build for you :-).

Thanks,
Evan

Original comment by evan.teran on 6 Mar 2014 at 3:06

GoogleCodeExporter commented 9 years ago
Yes after your fix, it build and installed correctly. I hope you can find a way 
to add SSE stuff even though I don't need it. Thanks very much for the fast 
reply.

Original comment by m...@zamanuniversity.edu.kh on 7 Mar 2014 at 4:10