Code: Select all
─ SRC: module TEST -scroll-source───────────────────────────────────────────────────────────────────────────────
4433: *anotherString;
4434:
4435: int number;
4436:
4437: void doNothing(char *, char *, int);
4438:
4439: int main(int argc, char **argv)
4440: {
4441:
4442: randomString = "ABCDEF";
4443:
4444: anotherString = "GHIJKL";
4445:
4446: number = 1;
4447:
4448:
4449: printf ("\n%s%s [%d]", randomString, anotherString, number);
4450:
4451: doNothing(randomString, anotherString, number);
4452:
4453: exit (1);
4454:
4455: }
4456:
4457: void doNothing(char *one, char *two, int three)
4458: {
4459:
->4460: printf("\n%s", one);
4461: printf("\n%s", two);
4462: printf("\n%d", three);
4463:
4464: return;
─ OUT -output───────────────────────────────────────────────────────────────────────────────
break at routine TEST\main
break at routine TEST\doNothing
stepped to TEST\doNothing\%LINE 4457+8
stepped to TEST\doNothing\%LINE 4460
───────────────────────────────────────────────────────────────────────────────────
─ PROMPT -error-program-prompt───────────────────────────────────────────────────────
DBG> ex one
%DEBUG-E-NOSYMBOL, symbol 'one' is not in the symbol table
DBG> ex randomString
%DEBUG-E-NOSYMBOL, symbol 'randomString' is not in the symbol table
DBG>
───────────────────────────────────────────────────────────────────────────────────
full source listing of program:
Code: Select all
#include <stddef>
#include <stdlib>
#include <stdio>
#include <string>
char *randomString,
*anotherString;
int number;
void doNothing(char *, char *, int);
int main(int argc, char **argv)
{
randomString = "ABCDEF";
anotherString = "GHIJKL";
number = 1;
printf ("\n%s%s [%d]", randomString, anotherString, number);
doNothing(randomString, anotherString, number);
exit (1);
}
void doNothing(char *one, char *two, int three)
{
printf("\n%s", one);
printf("\n%s", two);
printf("\n%d", three);
return;
}
Code: Select all
$ r test.dbg/nodeb
ABCDEFGHIJKL [1]
ABCDEF
GHIJKL
1