On 03/10/2015 04:01 PM, Michael Eager wrote: > Add support to automatically unzip compressed executable and core files. > Files will be uncompressed into temporary directory (/tmp or $TMPDIR) > and are deleted when GDB exits. This should be transparent to users, > except for disk space requirements. The name of the uncompressed file is > mentioned, but all references to the file in GDB messages is to the file > which the user specified. Attached is a revised patch. I discovered a logic error after refactoring the code. gdb/ChangeLog: * utils.c (struct compressed_file_cache_search, eq_compressed_file, is_gzip, decompress_gzip, do_compressed_cleanup, identify_compression, uncompress_to_temporar, gdb_uncompress): New. * utils.h (gdb_uncompress): Declare. * corelow.c (core_open): Uncompress core file. * exec.c (exec_file_attach): Uncompress exec file. * symfile.c (symfile_bfd_open): Uncompress sym (exec) file. * NEWS: Mention new functionality. -- Michael Eager eager@eagercon.com 1960 Park Blvd., Palo Alto, CA 94306 650-325-8077