James Youngman wrote:

> >>>>> "LG" == LG  <[EMAIL PROTECTED]> writes:
>
>   LG> Can someone tell me of a way to view core dumps....
>
> You want to analyze it rather than view it, I guess.  You do it like
> this:-
>                 $ gdb offending-program core The debugger loads in the
> offending program and the coredup and you can then use the "where"
> command to figure out what was happening.  If the program doesn't
> include debug info, you'll probably not discover much.  To pinpoint
> the offending program, use "size core", which will tell you as a side
> effect of its normal operation.
>
> If you really did want just to view the coredump, you can use
> "od -c core | less".

If you want debug info you can compile your program with -g as in
$ gcc -g program.c -o program


-- 
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com/RedHat-FAQ /RedHat-Errata /RedHat-Tips /mailing-lists
         To unsubscribe: mail [EMAIL PROTECTED] with 
                       "unsubscribe" as the Subject.

Reply via email to