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