[Lldb-commits] [lldb] r172871 - /lldb/trunk/scripts/disasm-gdb-remote.pl

Greg Clayton gclayton at apple.com
Fri Jan 18 15:30:12 PST 2013


Author: gclayton
Date: Fri Jan 18 17:30:12 2013
New Revision: 172871

URL: http://llvm.org/viewvc/llvm-project?rev=172871&view=rev
Log:
Disassemble the vAttach packet.


Modified:
    lldb/trunk/scripts/disasm-gdb-remote.pl

Modified: lldb/trunk/scripts/disasm-gdb-remote.pl
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/scripts/disasm-gdb-remote.pl?rev=172871&r1=172870&r2=172871&view=diff
==============================================================================
--- lldb/trunk/scripts/disasm-gdb-remote.pl (original)
+++ lldb/trunk/scripts/disasm-gdb-remote.pl Fri Jan 18 17:30:12 2013
@@ -1237,6 +1237,10 @@
 	{
 		dump_extended_continue_cmd(splice(@_,5));
 	}
+	elsif (join('', @_[0..7]) eq 'vAttach;')
+	{
+		dump_attach_command (splice(@_,8));
+	}
 	elsif (join('', @_[0..11]) eq 'vAttachWait;')
 	{
 		dump_attach_wait_command (splice(@_,12));
@@ -1270,6 +1274,15 @@
 }
 
 #----------------------------------------------------------------------
+# 'vAttach' command
+#----------------------------------------------------------------------
+sub dump_attach_command
+{
+	printf("attach ( pid = %i )", get_hex(\@_));
+	$extended_rsp_callback = \&dump_stop_reply_packet;
+}
+
+#----------------------------------------------------------------------
 # 'vCont' command
 #----------------------------------------------------------------------
 sub dump_extended_continue_cmd





More information about the lldb-commits mailing list