> 
> Hi,
> 
> Can I have .mdbrc such that it loads necessary libraries/stab based on 
> current OS revision. I mean if I run mdb on S9 machine, it should take 
> the library as <s9-path>/<library.so> .
> 
> Similarly, it should choose correct library for S8/S10 if the current 
> machine is S8/S10.
> 
> Take it little further, can I load the libraries/stabs automatically 
> based on the crash available regardless of  the OS version of the 
> current machine ?
> 
> In a nutshell, how can I configure my .mdbrc sothat it always chooses 
> correct stabs/libraries based on the crash or current OS ?
> 
> Regards,
> Vivek

mdb uses CTF data, not stabs (same idea, though). mdb always reads CTF from
the core file or crash dump itself, not an external source.  So no
configuration of that is needed.  In S10, we also make user core files
contain text sections, so again everything happens properly for you (the
same has been true for the kernel since Solaris 7).

-Mike

-- 
Mike Shapiro, Solaris Kernel Development. blogs.sun.com/mws/

Reply via email to