home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / gnu / gcc / bug / 3106 < prev    next >
Encoding:
Internet Message Format  |  1993-01-03  |  1.3 KB

  1. Xref: sparky gnu.gcc.bug:3106 gnu.gdb.bug:1343
  2. From: Eberhard Mattes <mattes@azu.informatik.uni-stuttgart.de>
  3. Date: Sun, 3 Jan 93 17:56:04 +0100
  4. Message-ID: <9301031656.AA03447@azu.informatik.uni-stuttgart.de>
  5. To: bug-gcc@prep.ai.mit.edu
  6. Cc: bug-gdb@prep.ai.mit.edu
  7. Subject: More MKTEMP_EACH_FILE trouble
  8. X-Created-Offline: 02-Jan-1993 14:00:10
  9. Distribution: world
  10. Approved: info-gnu@prep.ai.mit.edu
  11. Path: sparky!uunet!usc!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!yale!mintaka.lcs.mit.edu!ai-lab!prep.ai.mit.edu!gnulists
  12. Newsgroups: gnu.gcc.bug,gnu.gdb.bug
  13. Followup-To: gnu.gcc.bug,gnu.gdb.bug
  14. Lines: 19
  15.  
  16. When using MKTEMP_EACH_FILE for GCC 2.3.3 with DBX debugging info, GDB
  17. no longer works correctly as it explicitely checks for ".o" at the end
  18. of symbols.  For instance, the backtrace command is affected.
  19.  
  20. Quotation from partial-stab.h of GDB 4.7:
  21.  
  22.       if ((namestring[0] == '-' && namestring[1] == 'l')
  23.           || (namestring [(nsl = strlen (namestring)) - 1] == 'o'
  24.           && namestring [nsl - 2] == '.')
  25.  
  26. (BTW this is a bad idea if the length of namestring is less than 2.)
  27.  
  28. I solved the problem by letting ld append `.o' to the symbol
  29. indicating the start of the text segment unless that symbol starts
  30. with `-l' or already ends with `.o'.  (I'm still using the pre-BFD
  31. version of GNU ld.)
  32.  
  33. Eberhard Mattes (mattes@azu.informatik.uni-stuttgart.de)
  34.  
  35.