When my Cocoa application clicks on an assertion in the code, gdb gives me a hint as expected, but it is never (normal, rare) in the correct thread.
I know I can use the Xcode GUI debugger, and this makes it a little less painful, but I think there should be a gdb command line trick that I don't know.
Is there an easier way to find a thread that was approved differently than changing for each thread and issuing where?
where
(gdb) thread apply all bt
" bt". " ", , , .
, " " , , . , ( ). , , - (, 5 )
(gdb) thread apply all where 5
, , , , , , .
(gdb) set height 10000 (gdb) set logging on (gdb) thread apply all where 5 (gdb) shell
gdb.txt .
Source: https://habr.com/ru/post/1728333/More articles:Создание безопасных вызовов ajax с помощью jQuery - jqueryDo I need to manually delete all events to remove my object from memory? - eventsC # Bitblit from Bitmap for Management (Compact Framework) - c #how to get a stream approved in gdb - xcodeVisual Studio Alt-Copy в Eclipse - eclipseFind an element in context using jQuery - jqueryError "Cannot use string offset as an array" - arrayshttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1728336/how-do-i-dynamically-add-image-objects-to-the-display-and-then-interact-with-them&usg=ALkJrhgXhgERSogC7YuXDpwv7_HRvPVbEwhttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1728337/how-to-add-an-ip-address-to-an-existing-network-adapter-in-windows&usg=ALkJrhh0KEl3NpbtvdmEKHfbf6DvtJe39gIs there a way to enter the code at build time? - c #All Articles