Commit 202eace0 authored by Ming Zhao's avatar Ming Zhao Committed by Facebook Github Bot

Switch dev mode debug level from -g2 to -g1 since dev mode implies build as fast as possible.

Reviewed By: pixelb

Differential Revision: D15301144

fbshipit-source-id: f94a805427b6fc8b20e7c01fcf6e1853fbebf7f1
parent 2e6e2196
...@@ -29,7 +29,10 @@ namespace test { ...@@ -29,7 +29,10 @@ namespace test {
void foo() {} void foo() {}
TEST(Symbolizer, Single) { TEST(Symbolizer, Single) {
Symbolizer symbolizer; // It looks like we could only use .debug_aranges with "-g2", with
// "-g1 -gdwarf-aranges", the code has to fallback to line-tables to
// get the file name.
Symbolizer symbolizer(Dwarf::LocationInfoMode::FULL);
SymbolizedFrame a; SymbolizedFrame a;
ASSERT_TRUE(symbolizer.symbolize(reinterpret_cast<uintptr_t>(foo), a)); ASSERT_TRUE(symbolizer.symbolize(reinterpret_cast<uintptr_t>(foo), a));
EXPECT_EQ("folly::symbolizer::test::foo()", a.demangledName()); EXPECT_EQ("folly::symbolizer::test::foo()", a.demangledName());
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment