From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,be29d82011c8cae5,start X-Google-Attributes: gidfee84,public From: Fotis Zafeiropoulos Subject: Ladebug question Date: 1999/07/20 Message-ID: <37949E6E.ADF57A0D@mimis.ee.man.ac.uk>#1/1 X-Deja-AN: 503174819 Content-Transfer-Encoding: 7bit Organization: University of Manchester X-Accept-Language: el, es, en-GB, en Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 Newsgroups: comp.unix.osf.osf1 Hi folks, Working back on VMS the debugger allowed variable contents to be listed using syntax like: a) "examine variable[5][6]" or b) "examine variable[5]" or c) "examine variable[5][0:10]" I am now running (dx)ladebug on DU v4.0D and while I can do a) and b) using the "print" command, there is no way I can do c). Because of this, when a pointer is declared (eg. int *array) and then space is allocated using malloc (eg. for 10 integers) there is no way I can see the contents of the array using "print array" (it gives me the memory address), and not being able to do something like c) above, I have to query the elements of the array one by one. I also tried to use printf that is supposed to use C syntax but no luck there either. Any help will be very much appreciated. Thanks in advance Fotis Zafeiropoulos Speech Processing Group School of Engineering University of Manchester UK