<div>Try</div> <div>ulimit -S -c 100000</div> <div>./yourprogram (which is compiled using -g option)</div> <div>gdb -q yourprogram corefile</div> <div> </div> <div>Venkat<BR><BR><B><I>Zach <netrek@gmail.com></I></B> wrote:</div> <BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">I have had the same problem. Hope someone answers.<BR><BR>Zach<BR><BR>On 7/26/07, Ludwig Isaac Lim <LUDZ_LIM@YAHOO.COM>wrote:<BR>><BR>> Hi:<BR>><BR>> I'm trying to debug a program which dumps a core file (<BR>> I compiled the program with a "-g" flag). I tried setting<BR>> the core size by using the following command:<BR>><BR>> ulimit -c 1000<BR>><BR>> I tried debugging it by :<BR>> gdb <PROGRAM name><NAME core the of><BR>><BR>><BR>> gdb gives me the following error message :<BR>> <CORE file>is not a core dump: file format not<BR>> recognized.<BR>><BR>> What is should be ideal
size of a core dump for it be<BR>> helpful in debugging a program?<BR>><BR>> Many thanks!<BR>><BR>> ludwig<BR>><BR>><BR>><BR>> ____________________________________________________________________________________<BR>> Get the free Yahoo! toolbar and rest assured with the added security of spyware protection.<BR>> http://new.toolbar.yahoo.com/toolbar/features/norton/index.php<BR>><BR>> _______________________________________________<BR>> This is the Linux C Programming List<BR>> : http://lists.linux.org.au/listinfo/linuxcprogramming List<BR>><BR><BR>_______________________________________________<BR>This is the Linux C Programming List<BR>: http://lists.linux.org.au/listinfo/linuxcprogramming List<BR></BLOCKQUOTE><BR><BR><BR><DIV><FONT color=#ff0000>Prof NB Venkateswarlu</FONT></DIV> <DIV><FONT size=1>B.Tech(SVU), M.Tech(IIT-Kanpur), Ph.D(BITS,Pilani), PDF(U of Leeds,UK)</FONT></DIV> <DIV><FONT color=#ff0000>Visit My Home
at:</FONT> <FONT color=#0000ff>www.ritchcenter.com/nbv</FONT></DIV><p> 
<hr size=1>Shape Yahoo! in your own image.
<a href="http://us.rd.yahoo.com/evt=48517/*http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7">Join our Network Research Panel today!</a>