home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / sys / hp / 10389 < prev    next >
Encoding:
Internet Message Format  |  1992-09-14  |  1.3 KB

  1. From: bobm@hpfcso.FC.HP.COM (Bob Montgomery)
  2. Date: Mon, 14 Sep 1992 17:09:10 GMT
  3. Subject: Re: modify the value of variables in XDB
  4. Message-ID: <7371310@hpfcso.FC.HP.COM>
  5. Organization: Hewlett-Packard, Fort Collins, CO, USA
  6. Path: sparky!uunet!elroy.jpl.nasa.gov!sdd.hp.com!scd.hp.com!cupnews0.cup.hp.com!hppad.waterloo.hp.com!hppad!hpfcso!bobm
  7. Newsgroups: comp.sys.hp
  8. References: <ghsu.716481890@critical>
  9. Lines: 23
  10.  
  11. In comp.sys.hp, ghsu@critical.nswc.navy.mil writes:
  12.  
  13. >    The subject says exactly what I want to do.   The man page for xdb
  14. > does have a section on "Data Viewing and Modification Commands".   But
  15. > there is no command to modify data described there at all.   dbx has
  16.  
  17. You use the p command to modify variables, as explained in this section
  18. of the xdb man page:
  19.  
  20.  Data Viewing and Modification Commands
  21.  
  22.    p expr            If expr does not resemble anything else (such as a
  23.                      command), it is handled as if you had typed p expr\n
  24.                      (print expression in normal format).  Note that
  25.                      modification of variables is done by using the
  26.                      assignment operator in the expression (e.g., p foo =
  27.                      7 in C or FORTRAN , or p foo := 7 in Pascal).:
  28.  
  29. So you type p var = 100 to change var to 100.
  30.  
  31. Bob Montgomery, HP
  32. (emailed)
  33.