home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / gnu / misc / discuss / 4624 < prev    next >
Encoding:
Internet Message Format  |  1993-01-24  |  1.9 KB

  1. Xref: sparky gnu.misc.discuss:4624 comp.sys.hp:15265
  2. Newsgroups: gnu.misc.discuss,comp.sys.hp
  3. Path: sparky!uunet!stanford.edu!ames!sun-barr!cs.utexas.edu!torn!nott!bnrgate!bmerh85!bmerh85!hamish
  4. From: Hamish.Macdonald@bnr.ca (Hamish Macdonald)
  5. Subject: Re: Attaching gdb to a running process on an HP
  6. In-Reply-To: subbarao@fc.hp.com's message of Sat, 23 Jan 1993 20:05:40 GMT
  7. Message-ID: <1993Jan24.205213.14915@bmerh85.bnr.ca>
  8. Lines: 27
  9. Sender: news@bmerh85.bnr.ca (Usenet News)
  10. Organization: Bell Northern Research
  11. References: <EARL.93Jan22154851@jsi-bwb.jade.ab.ca> <TML.93Jan23110713@hemuli.tik.vtt.fi>
  12.     <1993Jan23.200540.10828@Princeton.EDU>
  13. Date: Sun, 24 Jan 93 20:52:13 GMT
  14.  
  15. >>>>> On Sat, 23 Jan 1993 20:05:40 GMT,
  16. >>>>> In message <1993Jan23.200540.10828@Princeton.EDU>,
  17. >>>>> subbarao@fc.hp.com (Kartik Subbarao) wrote:
  18.  
  19. Kartik> Interesting. I can't even get debugging to work normally with
  20. Kartik> gdb. It always complains "no symbol table". This is even if I
  21. Kartik> use cc -g, c89 -g, gcc -g, or gcc -ggdb. What am I missing
  22. Kartik> here?
  23.  
  24. There are two ways to use gdb on an HPUX machine.
  25.  
  26. 1) Get gcc to understand and insert HPUX debugging information into
  27.    the object files it creates.  Also get gdb to understand and 
  28.    retrieve HPUX debugging information from the executable.  To my
  29.    knowledge, no-one has done this for a the 680x0 HP machines.  The
  30.    folks at UUtah may have done this for the PA HP machines.
  31.  
  32. 2) Configure GCC to use MIT syntax for object files.  Build gas and
  33.    gld on the HP.  Since the debugging information inserted by gcc
  34.    (and passed along by gas and gld) is the BSD stabs format, you can
  35.    use gdb to debug the executables.  The one drawback is that you
  36.    cannot use shared libraries unless you change gld to understand
  37.    HPUX shared libraries.
  38.  
  39. The problem you are probbably seeing is that gdb is expecting to find
  40. a BSD style symbol table in the executable, but instead there is just
  41. the HPUX style symbol table.
  42.