Fix for Apple’s GDB bug or why Apple forks are bad…

It’s not a breakthrough post but I finally found where the bug that messed up gdbinit is located. I got obsessed into this problem and started browsing GDB source code. I knew that the problem ocurred when the file or add-symbol commands were used. The…

It’s not a breakthrough post but I finally found where the bug that messed up gdbinit is located. I got obsessed into this problem and started browsing GDB source code. I knew that the problem ocurred when the file or add-symbol commands were used. The difference from file to exec-file is that symbols are loaded so that was my starting point. This was more or less my flow:
file -> file_command -> symbol_file_command -> symbol_file_add_main_1 -> symbol_file_add_name_with_addrs_or_offsets -> symbol_file_add_with_addrs_or_offsets -> symbol_file_add_with_addrs_or_offsets_using_objfile -> new_symfile_objfile -> clear_symtab_users -> clear_internalvars


Print Share Comment Cite Upload Translate
APA
() » Fix for Apple’s GDB bug or why Apple forks are bad…. Retrieved from https://www.truth.cx/2009/08/10/fix-for-apples-gdb-bug-or-why-apple-forks-are-bad/.
MLA
" » Fix for Apple’s GDB bug or why Apple forks are bad…." - , https://www.truth.cx/2009/08/10/fix-for-apples-gdb-bug-or-why-apple-forks-are-bad/
HARVARD
» Fix for Apple’s GDB bug or why Apple forks are bad…., viewed ,
VANCOUVER
- » Fix for Apple’s GDB bug or why Apple forks are bad…. [Internet]. [Accessed ]. Available from: https://www.truth.cx/2009/08/10/fix-for-apples-gdb-bug-or-why-apple-forks-are-bad/
CHICAGO
" » Fix for Apple’s GDB bug or why Apple forks are bad…." - Accessed . https://www.truth.cx/2009/08/10/fix-for-apples-gdb-bug-or-why-apple-forks-are-bad/
IEEE
" » Fix for Apple’s GDB bug or why Apple forks are bad…." [Online]. Available: https://www.truth.cx/2009/08/10/fix-for-apples-gdb-bug-or-why-apple-forks-are-bad/. [Accessed: ]
Select a language: