[LCP] Debugging a core dump
DR. N. B. Venkat Nagasuri
venkat_ritch at yahoo.com
Thu Jul 26 10:41:46 UTC 2007
Try
ulimit -S -c 100000
./yourprogram (which is compiled using -g option)
gdb -q yourprogram corefile
Venkat
Zach <netrek at gmail.com> wrote:
I have had the same problem. Hope someone answers.
Zach
On 7/26/07, Ludwig Isaac Lim wrote:
>
> Hi:
>
> I'm trying to debug a program which dumps a core file (
> I compiled the program with a "-g" flag). I tried setting
> the core size by using the following command:
>
> ulimit -c 1000
>
> I tried debugging it by :
> gdb
>
>
> gdb gives me the following error message :
> is not a core dump: file format not
> recognized.
>
> What is should be ideal size of a core dump for it be
> helpful in debugging a program?
>
> Many thanks!
>
> ludwig
>
>
>
> ____________________________________________________________________________________
> Get the free Yahoo! toolbar and rest assured with the added security of spyware protection.
> http://new.toolbar.yahoo.com/toolbar/features/norton/index.php
>
> _______________________________________________
> This is the Linux C Programming List
> : http://lists.linux.org.au/listinfo/linuxcprogramming List
>
_______________________________________________
This is the Linux C Programming List
: http://lists.linux.org.au/listinfo/linuxcprogramming List
Prof NB Venkateswarlu
B.Tech(SVU), M.Tech(IIT-Kanpur), Ph.D(BITS,Pilani), PDF(U of Leeds,UK)
Visit My Home at: www.ritchcenter.com/nbv
---------------------------------
Shape Yahoo! in your own image. Join our Network Research Panel today!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.linux.org.au/pipermail/linuxcprogramming/attachments/20070726/943d126f/attachment.html
More information about the linuxCprogramming
mailing list