mirror of
				https://github.com/python/cpython.git
				synced 2025-11-03 23:21:29 +00:00 
			
		
		
		
	Merge 3.4 (test_gdb)
This commit is contained in:
		
						commit
						d64cfc215c
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -38,7 +38,7 @@ def get_gdb_version():
 | 
				
			||||||
    # 'GNU gdb (GDB) Fedora 7.9.1-17.fc22\n' -> 7.9
 | 
					    # 'GNU gdb (GDB) Fedora 7.9.1-17.fc22\n' -> 7.9
 | 
				
			||||||
    # 'GNU gdb 6.1.1 [FreeBSD]\n' -> 6.1
 | 
					    # 'GNU gdb 6.1.1 [FreeBSD]\n' -> 6.1
 | 
				
			||||||
    # 'GNU gdb (GDB) Fedora (7.5.1-37.fc18)\n' -> 7.5
 | 
					    # 'GNU gdb (GDB) Fedora (7.5.1-37.fc18)\n' -> 7.5
 | 
				
			||||||
    match = re.search(r"^GNU gdb.*?\b(\d+)\.(\d)", version)
 | 
					    match = re.search(r"^GNU gdb.*?\b(\d+)\.(\d+)", version)
 | 
				
			||||||
    if match is None:
 | 
					    if match is None:
 | 
				
			||||||
        raise Exception("unable to parse GDB version: %r" % version)
 | 
					        raise Exception("unable to parse GDB version: %r" % version)
 | 
				
			||||||
    return (version, int(match.group(1)), int(match.group(2)))
 | 
					    return (version, int(match.group(1)), int(match.group(2)))
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue