summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Mips/Mips16InstrInfo.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2012-09-14 02:41:36 +0000
committerGreg Clayton <gclayton@apple.com>2012-09-14 02:41:36 +0000
commitc1b1f1ea26f50eb0beb75c9fbf794f51d328b493 (patch)
treeb9e57712a8226c205a1ade399619b53fde13c058 /llvm/lib/Target/Mips/Mips16InstrInfo.cpp
parentcb640dd8a0318b172c62859b45631353edad2811 (diff)
downloadbcm5719-llvm-c1b1f1ea26f50eb0beb75c9fbf794f51d328b493.tar.gz
bcm5719-llvm-c1b1f1ea26f50eb0beb75c9fbf794f51d328b493.zip
<rdar://problem/11374963>
When attaching on ARM hosted debuggers we were incorrectly setting the triple to "arm-apple-ios". This was happening because in the post attach code, we would lookup the process info through the platform, and if successful, we would get the architecture of the process. This code uses sysctl() calls, but we can only get the CPU type, not the subtype, so we would get ARM for CPU type and nothing for the cpu subtype, so this would map to "arm-apple-ios". I fixed the code to get the cpu subtype from "hw.cpusubtype" which is what we really want for ARM, and not the architecture is already correct. "add-dsym" then works like a charm. I also improved the command output when the architecture changes to show the entire triple instead of just the arch name. llvm-svn: 163868
Diffstat (limited to 'llvm/lib/Target/Mips/Mips16InstrInfo.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud