dbx - break on access violations

Hey everyone,

Is there a way to make dbx break on access violations?

What OS?

On Solaris 10 or later, or in multithreaded processes on just about any version of Solaris, probably the easiest way is to set a break in the ___errno() function that's used to return a pointer to each thread's errno variable.

This is in AIX.