When abisym reports a symbol as found, it currently emits a leading
space. It does not do this when reporting a symbol as not found.
This patch removes the leading space.
* tools/abisym.cc (main): Remove leading space from output.
* tests/data/test-lookup-syms/test0-report.txt: Remove leading
space from expected output.
* tests/data/test-lookup-syms/test01-report.txt: Ditto.
* tests/data/test-lookup-syms/test02-report.txt: Ditto.
* tests/data/test-lookup-syms/test1-1-report.txt: Ditto.
Signed-off-by: Giuliano Procida <gprocida@google.com>
Signed-off-by: Dodji Seketeli <dodji@redhat.com>
- found symbol 'main', an instance of function symbol type of global binding
+found symbol 'main', an instance of function symbol type of global binding
- found symbol 'foo', an instance of function symbol type of global binding
+found symbol 'foo', an instance of function symbol type of global binding
- found symbol 'bar(char)' (_Z3barc), an instance of function symbol type of global binding
+found symbol 'bar(char)' (_Z3barc), an instance of function symbol type of global binding
- found symbol 'foo', an instance of function symbol type of global binding, of versions 'VERSION_2.0', 'VERSION_1.0'
+found symbol 'foo', an instance of function symbol type of global binding, of versions 'VERSION_2.0', 'VERSION_1.0'
}
elf_symbol_sptr sym = syms[0];
- cout << " found symbol '" << n << "'";
+ cout << "found symbol '" << n << "'";
if (n != sym->get_name())
cout << " (" << sym->get_name() << ")";
cout << ", an instance of "