Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tools/trap: Fix issues in symbol while printing call stack details
- This patch fixes the issue of missing letters of symbol name while printing the assert log. - Earlier, we were not printing symbol when addr2line was not avaliable but now, we print symbol name irrespective of addr2line output. - As c++ symbol length are very big, so, we print it in specific format [first 20 chars ... last 20 chars]. Before: Stack_address Symbol_address Symbol_location Symbol_name File_name User stack Symbol not found for address: 0xe16f049 Symbol not found for address: 0xe17f490 Symbol not found for address: 0xe16e9a9 Symbol not found for address: 0xe16e9df Symbol not found for address: 0xe16eb37 0x6028bbd4 0xe16e491 common binary hello_main /root/tizenrt/apps/examples/hello/hello_main.c:70 0x6028bbe0 0xe16e4ad common binary helloxx_main /root/tizenrt/apps/examples/helloxx/helloxx_main.cxx:152 0x6028bbe8 0xe169a19 common binary task_startup /root/tizenrt/lib/libc/sched/task_startup.c:123 (discriminator 3) 0x6028bbf0 0xe019ba9 kernel binary task_star /root/tizenrt/os/kernel/task/task_start.c:162 After: Stack_address Symbol_address Symbol location Symbol_name File_name User stack 0x6028bbb4 0xe16f049 common binary __cxxabiv1::__class_...~__class_type_info() File not found 0x6028bbb8 0xe17f490 common binary typeinfo for unsigned __int128 const* File not found 0x6028bbc0 0xe16e9a9 common binary __cxa_free_dependent_exception File not found 0x6028bbc8 0xe16e9df common binary _GLOBAL__sub_I__ZN9__gnu_cxx9__freeresEv File not found 0x6028bbd0 0xe16eb37 common binary __cxa_init_primary_exception File not found 0x6028bbd4 0xe16e491 common binary hello_main /root/tizenrt/apps/examples/hello/hello_main.c:70 0x6028bbe0 0xe16e4ad common binary helloxx_main /root/tizenrt/apps/examples/helloxx/helloxx_main.cxx:152 0x6028bbe8 0xe169a19 common binary task_startup /root/tizenrt/lib/libc/sched/task_startup.c:123 (discriminator 3) 0x6028bbf0 0xe019ba9 kernel binary task_start /root/tizenrt/os/kernel/task/task_start.c:162 Signed-off-by: neel-samsung <[email protected]>
- Loading branch information