OLD | NEW |
1 // Copyright (c) 2011, Google Inc. | 1 // Copyright (c) 2011, Google Inc. |
2 // All rights reserved. | 2 // All rights reserved. |
3 // | 3 // |
4 // Redistribution and use in source and binary forms, with or without | 4 // Redistribution and use in source and binary forms, with or without |
5 // modification, are permitted provided that the following conditions are | 5 // modification, are permitted provided that the following conditions are |
6 // met: | 6 // met: |
7 // | 7 // |
8 // * Redistributions of source code must retain the above copyright | 8 // * Redistributions of source code must retain the above copyright |
9 // notice, this list of conditions and the following disclaimer. | 9 // notice, this list of conditions and the following disclaimer. |
10 // * Redistributions in binary form must reproduce the above | 10 // * Redistributions in binary form must reproduce the above |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 | 61 |
62 const char *binary; | 62 const char *binary; |
63 std::vector<string> debug_dirs; | 63 std::vector<string> debug_dirs; |
64 binary = argv[binary_index]; | 64 binary = argv[binary_index]; |
65 for (int debug_dir_index = binary_index + 1; | 65 for (int debug_dir_index = binary_index + 1; |
66 debug_dir_index < argc; | 66 debug_dir_index < argc; |
67 ++debug_dir_index) { | 67 ++debug_dir_index) { |
68 debug_dirs.push_back(argv[debug_dir_index]); | 68 debug_dirs.push_back(argv[debug_dir_index]); |
69 } | 69 } |
70 | 70 |
71 if (!WriteSymbolFile(binary, debug_dirs, cfi, std::cout)) { | 71 SymbolData symbol_data = cfi ? ALL_SYMBOL_DATA : NO_CFI; |
| 72 if (!WriteSymbolFile(binary, debug_dirs, symbol_data, std::cout)) { |
72 fprintf(stderr, "Failed to write symbol file.\n"); | 73 fprintf(stderr, "Failed to write symbol file.\n"); |
73 return 1; | 74 return 1; |
74 } | 75 } |
75 | 76 |
76 return 0; | 77 return 0; |
77 } | 78 } |
OLD | NEW |