mirror of
				https://github.com/openhwgroup/cvw
				synced 2025-02-11 06:05:49 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			25 lines
		
	
	
		
			413 B
		
	
	
	
		
			Plaintext
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
		
			413 B
		
	
	
	
		
			Plaintext
		
	
	
		
			Executable File
		
	
	
	
	
define genTrace
 | 
						|
    # Arguments
 | 
						|
    set $tcpPort=$arg0    
 | 
						|
 | 
						|
    # GDB config
 | 
						|
    set pagination off
 | 
						|
    set logging overwrite on
 | 
						|
    set logging redirect on
 | 
						|
    set confirm off
 | 
						|
 | 
						|
    # Connect to QEMU session
 | 
						|
    eval "target extended-remote :%d",$tcpPort
 | 
						|
    
 | 
						|
    # Symbol Files
 | 
						|
    file ../buildroot-image-output/vmlinux
 | 
						|
 | 
						|
    # Run until Linux login prompt
 | 
						|
    b do_idle
 | 
						|
    ignore 1 2
 | 
						|
    c
 | 
						|
 | 
						|
    kill
 | 
						|
    q
 | 
						|
end
 |