mirror of
				https://github.com/samba-team/samba.git
				synced 2025-10-31 12:23:52 +03:00 
			
		
		
		
	if someone knows how to tell gdb to only exit if 'run' exists clean via the if/else logic please tell me! see http://davis.lbl.gov/Manuals/GDB/gdb_20.html#SEC194) but there's no useful example :-( metze
		
			
				
	
	
		
			18 lines
		
	
	
		
			210 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			210 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
| #!/bin/sh
 | |
| 
 | |
| if test -z "$TMPDIR"; then
 | |
| 	TMPDIR="/tmp"
 | |
| fi
 | |
| 
 | |
| TMPFILE=$TMPDIR/gdb_run.$$
 | |
| cat << EOF  > $TMPFILE
 | |
| run
 | |
| bt
 | |
| quit
 | |
| EOF
 | |
| 
 | |
| trap "/bin/rm -f $TMPFILE" EXIT
 | |
| CMD="gdb -x $TMPFILE --args $@"
 | |
| echo $CMD
 | |
| eval "$CMD"
 |