Learning C with gdb
hackerschool.com
Learning C with gdb
1–10 of 98 posts
Re: Learning C with gdb
#2Re: Learning C with gdb
#3Re: Learning C with gdb
#4Re: Learning C with gdb
#5Here's a more full-featured C++ REPL: http://root.cern.ch/drupal/content/what-cling
http://www.insectnation.org/howto/living-without-root
Re: Learning C with gdb
#6With LLVM, we should be able to have a REPL for C. as a pedagogical tool.
Re: Learning C with gdb
#7There was a debugger posted here to HN awhile back that actually displayed structs and pointers graphically. What was the name of that project, and is it still around? I was trying to find it the other day. I thought that was a dynamite tool for students. With LLVM, we should be able to have a REPL for C. as a pedagogical tool.
Re: Learning C with gdb
#8Re: Learning C with gdb
#9More people should be hopping on this bandwagon though because debuggers are awesome. I typically find myself using `po` the most in LLDB (Xcode, iOS development) but it's insanely useful especially when Xcode refuses to show me the values of something I want in the Variables View, ex. NSDictionary keys/values, objects in an NSArray, etc. I'll also use it sometimes to execute simple commands like `[myArrayObject count]` when the Variables View refuses to show me property values. Sometimes Xcode's GUI bits just don't cut it!
There's more info on what you can do with LLDB here: http://lldb.llvm.org/tutorial.html
And if you've used GDB, this might be of use: http://lldb.llvm.org/lldb-gdb.html