[lldb-dev] [Bug 16511] New: FreeBSD ProcessMonitor.cpp uses AMD64 register names unconditionally
ashok.thirumurthi at intel.com
Tue Jul 2 07:46:56 PDT 2013
Thanks for the patch, Robert,
I suspect that using pre-processor logic to determine the architecture will only help in the case where lldb is compiled using the same architecture as the debug target. For instance, when running an i386 application on x86_64, the lower register half of the x86_64 registers should be reported.
Options include removing the logging code, adding parameters to PtraceWrapper to specify the target architecture, lifting the code to a base class of ReadRegOperation and ReadGPROperation, or lifting the code to RegisterContext_x86_64/RegisterContext_i386. If maintaining the logging code is preferred, please consider limiting the log to the case where “log enable” uses the --verbose parameter.
From: lldb-dev-bounces at cs.uiuc.edu [mailto:lldb-dev-bounces at cs.uiuc.edu] On Behalf Of bugzilla-daemon at llvm.org
Sent: Monday, July 01, 2013 3:22 PM
To: lldb-dev at cs.uiuc.edu
Subject: [lldb-dev] [Bug 16511] New: FreeBSD ProcessMonitor.cpp uses AMD64 register names unconditionally
FreeBSD ProcessMonitor.cpp uses AMD64 register names unconditionally
lldb-dev at cs.uiuc.edu<mailto:lldb-dev at cs.uiuc.edu>
rmh at gnu.org<mailto:rmh at gnu.org>
Created attachment 10803<attachment.cgi?id=10803> [details]<attachment.cgi?id=10803&action=edit>
untested patch to fix build on i386-kfreebsd-gnu (and possibly i386-freebsd)
I found this on GNU/kFreeBSD, but I believe FreeBSD would be affected as well.
Please let me know if I may be missing something.
As you can see in last attempted build for i386-kfreebsd-gnu ,
ProcessMonitor.cpp won't build because it's referring to registers which exist
on AMD64, but not on IA32.
I think this could be fixed using special case for i386 and amd64. Please see
attached patch (UNTESTED).
You are receiving this mail because:
* You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the lldb-dev