简体   繁体   English

从Perl脚本连接gdb

[英]Connect gdb from Perl Script

I am writing perl script which is getting core from Production. 我正在写Perl脚本,该脚本已从Production成为核心。 I have got core and need to run the gdb on these core file. 我有核心,需要在这些核心文件上运行gdb。 Can anyone provide me info to connect gdb from perl script. 谁能提供我的信息来从perl脚本连接gdb。

Can anyone provide me info to connect gdb from perl script. 谁能提供我的信息来从perl脚本连接gdb。

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. 相反,您要做的是弄清楚为什么perl会因生产中的核心转储而崩溃。 To do that, run 为此,运行

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

on the production machine, then issue where command. 在生产机器上,然后发出where命令。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM