[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to display arrays when using dbx
From: |
Christian Monfort |
Subject: |
Re: How to display arrays when using dbx |
Date: |
Mon, 29 Sep 2003 10:05:45 +0200 |
User-agent: |
Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.5b) Gecko/20030918 |
Andy White wrote:
Hi,
I use DDD 3.3.1 on Sun using DBX as inferior debugger.
I'm trying to display an array, but it looks like the '@(num_elem)'
syntax suggested in the documentation (that is actually for GDB
inferior debugger) does not work for DBX.
If you are using dbx as inferior debugger, then forget about gdb
command-lines (usually they do not work)...
Type help at dbx prompt to learn how to do it with dbx.
But if you are sending commands to dbx through ddd GUI, it should be ok.
Is there an alternative to that?
to display array slice from index x to y in debug window:
print array[x..y]
same in data window:
graph display array[x..y]
Also, when displaying a data structure, it initially appears nicely in
its box, but after the first 'next' to carry on with the debugging,
the display box collapses onto itself, displaying just the first data
member of the structure. Is there a setting to be done to keep all the
structure fully displayed during the debugging activity?
Don't know...
CM.
Many thanks for your assistance,
Regards