Debugging

Undefined structure type?

While debugging a program I noticed a structure declaration that contains an undefined type but GCC isn't flagging it with a warning or error. Why would that be the case?

Here is an example using an undefined structure type of 'notdef':

struct Notdef *mystruct;

Notdef isn't defined anywhere but the declaration isn't flagged.

On the other hand if I declare a simple pointer the same way it gets flagged as an error by GCC.

Notdef *myptr;

gets flagged as an error.

Forums: 

GDB working under OS4.1 Update 6

On my SAM460ex , i don't seem to be able to step htrough the code.
Using a simple program in which i did put 3 breakpoints only the first is reognised, then using either next step or continu the program always proc'dds til the opening of the window. IONLY thing i can do is close the window, but this generates no additional output.

Gdb version is 63
Does it work elsewhere?

Forums: 

db101 usage

It is not clear to me how you can set breakpoints elsewhere than in the main() containing source module.
This is the only one that is visible in the LV.

Are the breakpoints saved somewhere? If not automatically how can you do this ?

Forums: 

Profiling C code?

Hi All,

Are there any good profilers for the Amiga? I know we have Hieronymus but it does not support my Amiga One.

I check online and found this guy: http://sourceforge.net/projects/shinyprofiler/?source=dlp

I can see how helpful this type of tool would be.

Cheers,
Bill

Forums: 

Using GDB to do a hex dump of memory

Hi,

I am debugging a problem in a program and have read the GDB tutorials available here. Thanks everyone for your work putting those together! They help a lot!
Quick question though....is there a command in GDB that allows me to view, in hex, a group of bytes or words - say 256 bytes worth... something similar to the display command that updates with each step?

Or do I need to use some other tool to examine memory in hexidecimal while running GDB, and if so, what tool would work?

Thanks!

Forums: 

Pages

Subscribe to RSS - Debugging