Merged Eli Friedman's linux build changes where he added Makefile files that
enabled LLVM make style building and made this compile LLDB on Mac OS X. We
can now iterate on this to make the build work on both linux and macosx.
git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@108009 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/API/Makefile b/source/API/Makefile
new file mode 100644
index 0000000..75be537
--- /dev/null
+++ b/source/API/Makefile
@@ -0,0 +1,14 @@
+##===- source/API/Makefile ---------------------------------*- Makefile -*-===##
+#
+# The LLVM Compiler Infrastructure
+#
+# This file is distributed under the University of Illinois Open Source
+# License. See LICENSE.TXT for details.
+#
+##===----------------------------------------------------------------------===##
+
+LLDB_LEVEL := ../..
+LIBRARYNAME := lldbAPI
+BUILD_ARCHIVE = 1
+
+include $(LLDB_LEVEL)/Makefile
diff --git a/source/API/SBBreakpoint.cpp b/source/API/SBBreakpoint.cpp
index f90d7ad..4ab200c 100644
--- a/source/API/SBBreakpoint.cpp
+++ b/source/API/SBBreakpoint.cpp
@@ -235,13 +235,13 @@
}
void
-SBBreakpoint::SetIgnoreCount (int32_t count)
+SBBreakpoint::SetIgnoreCount (uint32_t count)
{
if (m_opaque_sp)
m_opaque_sp->SetIgnoreCount (count);
}
-int32_t
+uint32_t
SBBreakpoint::GetIgnoreCount () const
{
if (m_opaque_sp)
diff --git a/source/API/SBBreakpointLocation.cpp b/source/API/SBBreakpointLocation.cpp
index f376f53..948b78f 100644
--- a/source/API/SBBreakpointLocation.cpp
+++ b/source/API/SBBreakpointLocation.cpp
@@ -76,7 +76,7 @@
return false;
}
-int32_t
+uint32_t
SBBreakpointLocation::GetIgnoreCount ()
{
if (m_opaque_sp)
@@ -86,7 +86,7 @@
}
void
-SBBreakpointLocation::SetIgnoreCount (int32_t n)
+SBBreakpointLocation::SetIgnoreCount (uint32_t n)
{
if (m_opaque_sp)
m_opaque_sp->SetIgnoreCount (n);
diff --git a/source/API/SBFrame.cpp b/source/API/SBFrame.cpp
index cd9b4cd..b8c2f70 100644
--- a/source/API/SBFrame.cpp
+++ b/source/API/SBFrame.cpp
@@ -187,7 +187,7 @@
const uint32_t num_variables = variable_list.GetSize();
bool found = false;
- for (int i = 0; i < num_variables && !found; ++i)
+ for (uint32_t i = 0; i < num_variables && !found; ++i)
{
var_sp = variable_list.GetVariableAtIndex(i);
if (var_sp
@@ -231,7 +231,7 @@
const uint32_t num_variables = variable_list.GetSize();
bool found = false;
- for (int i = 0; i < num_variables && !found; ++i)
+ for (uint32_t i = 0; i < num_variables && !found; ++i)
{
var_sp = variable_list.GetVariableAtIndex(i);
if (var_sp
@@ -331,6 +331,9 @@
case eValueTypeVariableLocal:
add_variable = locals;
break;
+
+ default:
+ break;
}
if (add_variable)
{
diff --git a/source/API/SBTarget.cpp b/source/API/SBTarget.cpp
index ba0ed01..8618643 100644
--- a/source/API/SBTarget.cpp
+++ b/source/API/SBTarget.cpp
@@ -289,7 +289,7 @@
{
const BreakpointList &bp_list = m_opaque_sp->GetBreakpointList();
size_t num_bps = bp_list.GetSize();
- for (int i = 0; i < num_bps; ++i)
+ for (size_t i = 0; i < num_bps; ++i)
{
SBBreakpoint sb_breakpoint (bp_list.GetBreakpointByIndex (i));
sb_breakpoint.GetDescription (out_file, "full");
diff --git a/source/API/SBThread.cpp b/source/API/SBThread.cpp
index 24e5484..ede388d 100644
--- a/source/API/SBThread.cpp
+++ b/source/API/SBThread.cpp
@@ -147,7 +147,10 @@
stop_desc = exc_desc;
stop_desc_len = sizeof(exc_desc); // Include the NULL byte for size
}
- break;
+ break;
+
+ default:
+ break;
}
if (stop_desc && stop_desc[0])
@@ -225,7 +228,7 @@
{
uint32_t num_stack_frames = m_opaque_sp->GetStackFrameCount ();
StackFrameSP frame_sp;
- int frame_idx = 0;
+ uint32_t frame_idx = 0;
for (frame_idx = first_frame; frame_idx < first_frame + num_frames; ++frame_idx)
{