user765443
user765443

Reputation:

Connect gdb from Perl Script

I am writing perl script which is getting core from Production. I have got core and need to run the gdb on these core file. Can anyone provide me info to connect gdb from perl script.

Upvotes: 0

Views: 1026

Answers (1)

Employed Russian
Employed Russian

Reputation: 213646

Can anyone provide me info to connect gdb from perl script.

You don't want to do that.

What you want to do instead, is figure out why your perl is crashing with a core dump in production. To do that, run

gdb /path/to/perl /path/to/core

on the production machine, then issue where command.

Upvotes: 1

Related Questions