home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / gnu / gdb / bug / 877 < prev    next >
Encoding:
Text File  |  1992-07-23  |  2.0 KB  |  58 lines

  1. Newsgroups: gnu.gdb.bug
  2. Path: sparky!uunet!cis.ohio-state.edu!uvm.edu!Garrett.Wollman
  3. From: Garrett.Wollman@uvm.edu (Garrett Wollman)
  4. Subject: More gdb 4.6 on Irix 4.0.
  5. Message-ID: <1992Jul20.154155.13961@uvm.edu>
  6. Sender: gnulists@ai.mit.edu
  7. Organization: University of Vermont, EMBA Computer Facility
  8. Distribution: gnu
  9. Date: Mon, 20 Jul 1992 15:41:55 GMT
  10. Approved: bug-gdb@prep.ai.mit.edu
  11. Lines: 45
  12.  
  13. I have found that the problem with `next'ing seems to be due to the
  14. inability of gdb to deal with line numbers; in particular, it assigns
  15. the whole PC range of main() to the first line.
  16.  
  17. If I ever get this working, I'm looking at adding follow-fork support
  18. (that is, we catch PR_SYSEXIT for fork() and ask the user if the want
  19. to continue debugging the old process, or attach to the new one),
  20. unless someone has already done so.  Ideally this would be done as a
  21. complete system-call tracing support...
  22.  
  23. Here is a simple bug in procfs.c:
  24.  
  25. --- procfs.c.orig    Mon Jul 20 11:00:49 1992
  26. +++ procfs.c    Mon Jul 20 11:29:08 1992
  27. @@ -2095,14 +2095,18 @@
  28.    errno = 0;
  29.    pi.prrun.pr_flags = PRSTRACE | PRSFAULT | PRCFAULT;
  30.  
  31. -#ifdef PRSVADDR_BROKEN
  32. +#ifndef PRSVADDR_BROKEN
  33.  /* Can't do this under Solaris running on a Sparc, as there seems to be no
  34.     place to put nPC.  In fact, if you use this, nPC seems to be set to some
  35.     random garbage.  We have to rely on the fact that PC and nPC have been
  36.     written previously via PIOCSREG during a register flush. */
  37.  
  38. +/* This was #ifdef PRSVADDR_BROKEN, which didn't make any sense,
  39. + * since this code would use PRSVADDR iff it was `broken'... -GW
  40. + */
  41. +
  42.    pi.prrun.pr_vaddr = (caddr_t) *(int *) ®isters[REGISTER_BYTE (PC_REGNUM)];
  43. -  pi.prrun.pr_flags != PRSVADDR;
  44. +  pi.prrun.pr_flags |= PRSVADDR;
  45.  #endif
  46.  
  47.    if (signo && !(signo == SIGSTOP && pi.nopass_next_sigstop))
  48.  
  49.  
  50. -GAWollman
  51.  
  52. -- 
  53.    Garrett A. Wollman  = wollman@emba.uvm.edu = UVM is welcome to my opinions
  54.                        =    uvm-gen!wollman   =
  55.    That's what being alive is all about.  No deity, no higher goal
  56.    exists, than to bring joy to another person.    - Elf Sternberg
  57.  
  58.