You are not logged in.

#1 2016-01-27 08:18:23

leniviy
Member
Registered: 2009-05-23
Posts: 177

gstack/pstack tool?

Hi.
Do we have a command line tool to print stack trace of a process?
I don't want to manually do this:

(gdb) thread apply all bt full

Redhat has `gstack` - a non-interactive shell script around gdb.

SYNOPSIS
       gstack pid

Arch 64, xfce4

Offline

#2 2020-01-11 22:37:57

mirh
Member
Registered: 2016-04-09
Posts: 34

Re: gstack/pstack tool?

Pstack should be available in the AUR since two years
https://aur.archlinux.org/packages/pstack/

Gstack instead, as said, is a red hat thing.
And concretely, it comes under form of a patch you should apply when building gdb.
https://src.fedoraproject.org/rpms/gdb/ … 0411.patch

Offline

#3 2020-01-11 23:05:16

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,648

Re: gstack/pstack tool?

Thanks for the contribution; please be aware of the dates on threads -- this thread is very old so I am closing it now.

How to Post

Offline

Board footer

Powered by FluxBB