home *** CD-ROM | disk | FTP | other *** search
/ PC-Online 1996 May / PCOnline_05_1996.bin / linux / source / d / gdb / release.lin < prev    next >
Encoding:
Text File  |  1995-10-10  |  3.1 KB  |  84 lines

  1. Hi, Folks,
  2.  
  3. This is the second Linux/ELF core dump patch for gdb 4.14, which is
  4. based on the patch made by jeremy@sour.sw.oz.au (Jeremy Fitzhardinge)
  5. and Eric Youngdale's shared library support. You need kernel 1.3.5 or
  6. above to generate ELF core dump.
  7.  
  8. The primary ftp sites for the compiler/C library are tsx-11.mit.edu
  9. under pub/linux/packages/GCC and sunsite.unc.edu under pub/Linux/GCC.
  10. gdb-4.14.elf.1.bin.tar.gz contains gdb-4.1.14.elf.1.diff.gz, a patch
  11. against gdb 4.14, and gdb, a static ELF gdb binary. You need libc
  12. 5.1.2 or above to compile it without fixing one Linux header file,
  13. <sys/procfs.h> which should include <linux/elfcore.h>.
  14.  
  15.  
  16. H.J.
  17. hjl@nynexst.com
  18. 07/08/95
  19. ----From Eric-----
  20.  
  21.         This directory contains a gdb that will work with ELF images
  22. and automatically detect the shared libraries that are in use.  You
  23. will now be able to debug into a shared library in a transparent
  24. fashion without any of the hacks that we have used in the past.
  25.  
  26.         gdb.diff: patches to gdb-4.14
  27.         gdb     - ELF executable for gdb linked against libc.so.5.
  28.  
  29.  
  30. Here is an example of the new capabilities:
  31. ---------------------------------------------------------------
  32. bash$ gdb test
  33. GDB is free software and you are welcome to distribute copies of it
  34.  under certain conditions; type "show copying" to see the conditions.
  35. There is absolutely no warranty for GDB; type "show warranty" for details.
  36. GDB 4.14 (i486-linux), Copyright 1995 Free Software Foundation, Inc...
  37. (no debugging symbols found)...
  38. (gdb) break main
  39. Breakpoint 1 at 0x8000513
  40. (gdb) break printf
  41. Breakpoint 2 at 0x80003e8  # Note - this is in PLT of test.
  42. (gdb) info shared
  43. No shared libraries loaded at this time.
  44. (gdb) run
  45. Starting program: /usr1/users/eric/test 
  46. (no debugging symbols found)...Breakpoint 2 at 0x50030940 #Bkpt now in shlib
  47. (no debugging symbols found)...
  48. Breakpoint 1, 0x8000513 in main ()
  49. (gdb) info shared
  50. From        To          Syms Read   Shared Object Library
  51. 0x50007000  0x500ab2cc  Yes         /lib/libc.so.5
  52. 0x50000000  0x50005374  Yes         /lib/ld-linux.so.1
  53. (gdb) info break
  54. Num Type           Disp Enb Address    What
  55. 1   breakpoint     keep y    0x08000513  <main+3>
  56.         breakpoint already hit 1 time
  57. 2   breakpoint     keep y    0x50030940  <printf>
  58. (gdb) disass printf
  59. Dump of assembler code for function printf:
  60. 0x50030940 <printf>:    pushl  %ebx
  61. 0x50030941 <printf+1>:  call   0x50030946 <printf+6>
  62. 0x50030946 <printf+6>:  popl   %ebx
  63. 0x50030947 <printf+7>:  addl   $0x4b116,%ebx
  64. 0x5003094d <printf+13>: movl   0x8(%esp,1),%eax
  65. 0x50030951 <printf+17>: leal   0xc(%esp,1),%edx
  66. 0x50030955 <printf+21>: pushl  %edx
  67. 0x50030956 <printf+22>: pushl  %eax
  68. 0x50030957 <printf+23>: movl   0x82c(%ebx),%eax
  69. 0x5003095d <printf+29>: pushl  %eax
  70. 0x5003095e <printf+30>: call   0x500144d8 <_init+6584>
  71. 0x50030963 <printf+35>: addl   $0xc,%esp
  72. 0x50030966 <printf+38>: popl   %ebx
  73. 0x50030967 <printf+39>: ret    
  74. 0x50030968 <printf+40>: nop    
  75. 0x50030969 <printf+41>: nop    
  76. 0x5003096a <printf+42>: nop    
  77. 0x5003096b <printf+43>: nop    
  78. 0x5003096c <printf+44>: nop    
  79. 0x5003096d <printf+45>: nop    
  80. 0x5003096e <printf+46>: nop    
  81. 0x5003096f <printf+47>: nop    
  82. End of assembler dump.
  83.  
  84.