delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/09/07/07:45:22

From: "peter" <pil999 AT concentric DOT net>
Newsgroups: comp.os.msdos.djgpp
Subject: How to debug using Rhide?
Date: 07 Sep 1998 04:35:36 PDT
Organization: Concentric Internet Services
Lines: 42
Message-ID: <6t0ge8$ii6@journal.concentric.net>
NNTP-Posting-Host: ts024d30.chi-il.concentric.net
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

This has been bugging me all night long. I was able to compile successfully
this source code: mystery.c



void Goo(int **inky, int *x, int *bar);
void Moo(int **x, int **y);

int main(void)
{
  int inky, binky;
  int *foo, *bar;

  inky = 5;
  binky = 7;
  foo =&inky;
  Goo(&bar, &binky, foo);
  printf("inky = %d, binky = %d; *foo = %d, *bar = %d\n", inky, binky, *foo,
*bar);

  return 0;
}

void Goo(int **inky, int *x, int *bar)
{
  Moo(inky, &bar);
  Moo(&x, inky);
  *x = 8;
}

void Moo(int **x, int **y)
{
  *x = *y;
  **y = 7;
}


But I can't debug the damn code like in unix using gdb. Can someone show me
how to debug it using Rhide? I'm talking about showing me in stepwise
manner. I'm using window 95.


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019