OK, this is the command used by the examine memory feature.
But what about the labels and other stuff you mention?
Edit:
I would be happy if you give me an example file, which can be compiled with gcc or something easily available on linux,
and all the commands you want to be able to automate using an IDE like C::B.
I would envision a form which lets me provide the label, address, type, and count. It would be outstanding if such a collection could hang around throughout the session or even between sessions. Allocated memory tends to have the same addresses, so retained watches (or displays) would work pretty well. If I am permitted to dream big, it would also be nice to be able to dump memory from a register as an address. This would help with local variables which are on the stack.
My only purpose is in teaching assembly language. Ultimately it would be nice to extend nasm with the equivalent to C declarations for parameters and local variables for functions. This would probably require more work and the simplicity of just having a labelled and typed memory dump would be quite an improvement over teaching students to use the examine command. Plus the examine command had to be re-entered. I've experimented with gdbtui and cgdb, but CB is pretty close. I could probably figure out how to adapt CB myself, though I expect that someone else is already prepared to adapt CB and could do it at least 10 times as fast as I would.
I can provide some code if really needed, but the functionality is essentially the examine command implemented in a GUI with data refreshed each time the debugger is ready for a new command. I have been doing assembly coding, so I can provide an assembly example. I could provide a C example but the feature is basically not needed in C since the type information is provided by the compiler.
Are you interested in a program which reads the degree of a polynomial, reads the coefficients, reads two numbers, a and b, allocates arrays for the polynomial, its derivative and its integral and computes some polynomial values? This is the most interesting example which would benefit greatly from being able to display the 3 allocated arrays while the code reads and operates on the arrays.
Thanks for your interest. It's beginning to sound like I won't have to study the CB code ;-)
Ray