Hi, Folks, This is the second Linux/ELF core dump patch for gdb 4.14, which is based on the patch made by jeremy@sour.sw.oz.au (Jeremy Fitzhardinge) and Eric Youngdale's shared library support. You need kernel 1.3.5 or above to generate ELF core dump. The primary ftp sites for the compiler/C library are tsx-11.mit.edu under pub/linux/packages/GCC and sunsite.unc.edu under pub/Linux/GCC. gdb-4.14.elf.1.bin.tar.gz contains gdb-4.1.14.elf.1.diff.gz, a patch against gdb 4.14, and gdb, a static ELF gdb binary. You need libc 5.1.2 or above to compile it without fixing one Linux header file, which should include . H.J. hjl@nynexst.com 07/08/95 ----From Eric----- This directory contains a gdb that will work with ELF images and automatically detect the shared libraries that are in use. You will now be able to debug into a shared library in a transparent fashion without any of the hacks that we have used in the past. gdb.diff: patches to gdb-4.14 gdb - ELF executable for gdb linked against libc.so.5. Here is an example of the new capabilities: --------------------------------------------------------------- bash$ gdb test GDB is free software and you are welcome to distribute copies of it under certain conditions; type "show copying" to see the conditions. There is absolutely no warranty for GDB; type "show warranty" for details. GDB 4.14 (i486-linux), Copyright 1995 Free Software Foundation, Inc... (no debugging symbols found)... (gdb) break main Breakpoint 1 at 0x8000513 (gdb) break printf Breakpoint 2 at 0x80003e8 # Note - this is in PLT of test. (gdb) info shared No shared libraries loaded at this time. (gdb) run Starting program: /usr1/users/eric/test (no debugging symbols found)...Breakpoint 2 at 0x50030940 #Bkpt now in shlib (no debugging symbols found)... Breakpoint 1, 0x8000513 in main () (gdb) info shared From To Syms Read Shared Object Library 0x50007000 0x500ab2cc Yes /lib/libc.so.5 0x50000000 0x50005374 Yes /lib/ld-linux.so.1 (gdb) info break Num Type Disp Enb Address What 1 breakpoint keep y 0x08000513 breakpoint already hit 1 time 2 breakpoint keep y 0x50030940 (gdb) disass printf Dump of assembler code for function printf: 0x50030940 : pushl %ebx 0x50030941 : call 0x50030946 0x50030946 : popl %ebx 0x50030947 : addl $0x4b116,%ebx 0x5003094d : movl 0x8(%esp,1),%eax 0x50030951 : leal 0xc(%esp,1),%edx 0x50030955 : pushl %edx 0x50030956 : pushl %eax 0x50030957 : movl 0x82c(%ebx),%eax 0x5003095d : pushl %eax 0x5003095e : call 0x500144d8 <_init+6584> 0x50030963 : addl $0xc,%esp 0x50030966 : popl %ebx 0x50030967 : ret 0x50030968 : nop 0x50030969 : nop 0x5003096a : nop 0x5003096b : nop 0x5003096c : nop 0x5003096d : nop 0x5003096e : nop 0x5003096f : nop End of assembler dump.