{"push_id":609033491,"size":1,"distinct_size":1,"ref":"refs/heads/master","head":"d60fc06d60b290a195f9de819311b0d727afb2da","before":"7107123416bff098fe93fc3b282b217b57472e57","commits":[{"sha":"d60fc06d60b290a195f9de819311b0d727afb2da","author":{"email":"5c85aece3c422b6ae8df14eb32aad1d580b7408e@gmail.com","name":"Ilia K"},"message":"Fix handling of CommandInterpreter's events in lldb-mi\n\nSummary:\nPreviously lldb-mi contains a stub for that but it didn't work and all CommanInterpreter's events were ignored.\nThis commit adds a handling of CommandInterpreter's events in lldb-mi.\n\nSteps:\n# Fix CMICmnLLDBDebugger::InitSBListener\n# Add SBCommandInterpreter::EventIsCommandInterpreterEvent\n# Exit on lldb::SBCommandInterpreter::eBroadcastBitQuitCommandReceived\n\nAll tests pass on OS X.\n\nIn further we can remove \"quit\" hack in lldb-mi.\n\nTest Plan:\n# Create start_script file:\n```\ntarget create ~/p/hello\nb main\nr\nquit\n```\n\n# Run lldb-mi --interpreter\n# Execute start_script file by following command:\n```\n-interpreter-exec console \"command source start_script\"\n```\n\nLog:\n```\n$ bin/lldb-mi --interpreter\n(gdb)\n-interpreter-exec console \"command source start_script\"\nExecuting commands in '/Users/IliaK/p/llvm/build_ninja/start_script'.\n(lldb) target create ~/p/hello\nCurrent executable set to '~/p/hello' (x86_64).\n(lldb) b main\nBreakpoint 1: where = hello`main + 29 at hello.cpp:12, address = 0x0000000100000e2d\n(lldb) r\nProcess 1582 launched: '/Users/IliaK/p/hello' (x86_64)\n(lldb) quit\n^done\n(gdb)\n=thread-created,id=\"1\",group-id=\"i1\"\n=thread-selected,id=\"1\"\n(gdb)\n=shlibs-added,shlib-info=[num=\"1\",name=\"hello\",dyld-addr=\"-\",reason=\"dyld\",path=\"/Users/IliaK/p/hello\",loaded_addr=\"-\",dsym-objpath=\"/Users/IliaK/p/hello.dSYM/Contents/Resources/DWARF/hello\"]\n...\n=shlibs-added,shlib-info=[num=\"132\",name=\"libDiagnosticMessagesClient.dylib\",dyld-addr=\"0x7fff91705000\",reason=\"dyld\",path=\"/usr/lib/libDiagnosticMessagesClient.dylib\",loaded_addr=\"0x7fff91705000\"]\n(gdb)\n*stopped,reason=\"breakpoint-hit\",disp=\"del\",bkptno=\"1\",frame={addr=\"0x100000e2d\",func=\"main\",args=[{name=\"argc\",value=\"1\"},{name=\"argv\",value=\"0x00007fff5fbffc88\"}],file=\"hello.cpp\",fullname=\"/Users/IliaK/p/hello.cpp\",line=\"12\"},thread-id=\"1\",stopped-threads=\"all\"\n(gdb)<press Enter>\n\n\n\nMI: Program exited OK\n```\n\nReviewers: abidh, clayborg\n\nReviewed By: abidh\n\nSubscribers: jingham, lldb-commits, clayborg, abidh\n\nDifferential Revision: http://reviews.llvm.org/D8382","distinct":true,"url":"https://api.github.com/repos/chapuni/llvm-project/commits/d60fc06d60b290a195f9de819311b0d727afb2da"}]}