Skip to content

June 3, 2009

Ubuntu 64 bits: file command does not display which programe generated core

by Joe Kuan

ubuntulogoOn Ubuntu 64 bits, when you run ‘file /core’, it doesn’t show the executable file generated the core file.

file

You can use gdb -c to show the executable file. However, that invokes gdb to be interactive and not appropriate for integrating into shell scripts which I need to. The workaround for it is to use –batch which turns gdb into non-interactive.

gdb non interactive

I work for iTrinegy and here are my other technical blogs

Read more from Ubuntu

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Note: HTML is allowed. Your email address will never be published.

Subscribe to comments

%d bloggers like this: