packages: gdb/gdb.spec, gdb/gdb-gstack.man (NEW) - include gstack manpage -...

glen glen at pld-linux.org
Tue Dec 8 08:37:57 CET 2009


Author: glen                         Date: Tue Dec  8 07:37:57 2009 GMT
Module: packages                      Tag: HEAD
---- Log message:
- include gstack manpage
- print pld version on gdb startup

---- Files affected:
packages/gdb:
   gdb.spec (1.120 -> 1.121) , gdb-gstack.man (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/gdb/gdb.spec
diff -u packages/gdb/gdb.spec:1.120 packages/gdb/gdb.spec:1.121
--- packages/gdb/gdb.spec:1.120	Tue Dec  8 08:16:07 2009
+++ packages/gdb/gdb.spec	Tue Dec  8 08:37:51 2009
@@ -1,18 +1,15 @@
 # $Revision$, $Date$
 # NOTE
 # - Do not remove -lib package, it is required by FPC
-# - does not build with -j2 - use -j1
 
 # TODO
-# - python subpkg
-# - remove hacks in python, use sys.lib, use standard python dirs
 # - change install msg to poldek in buildid-locate-rpm-pld.patch when poldek allows it. LP#493922
 #
 # Conditional build:
 %bcond_without	python		# build without python support
 
 %define		snap	20090930
-%define		rel		0.4
+%define		rel		0.6
 Summary:	A GNU source-level debugger for C, C++ and Fortran
 Summary(de.UTF-8):	Symbolischer Debugger für C und andere Sprachen
 Summary(es.UTF-8):	Depurador de programas C y otras lenguajes
@@ -33,6 +30,7 @@
 # Source0-md5:	3386a7b69c010785c920ffc1e9cb890a
 Source1:	http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-non-english-man-pages.tar.bz2
 # Source1-md5:	2e8a48939ae282c12bbacdd54e398247
+Source3:	%{name}-gstack.man
 Source4:	libstdc++-v3-python-r151798.tar.bz2
 # Source4-md5:	7507540c50a1edeb2fc22a37bc4a08b8
 
@@ -390,6 +388,11 @@
 
 mv $(basename %{SOURCE4} .tar.bz2) libstdcxxpython
 
+# Change the version that gets printed at GDB startup, so it is PLD Linux specific.
+cat > gdb/version.in << EOF
+PLD Linux (%{version}-%{release})
+EOF
+
 %build
 for dir in $(find gdb -name 'configure.in'); do
 	dir=$(dirname "$dir")
@@ -467,6 +470,8 @@
 %py_postclean
 %endif
 
+cp -a %{SOURCE3} $RPM_BUILD_ROOT%{_mandir}/man1/gstack.1
+
 # Remove the files that are part of a gdb build but that are owned and provided by other packages.
 # These are part of binutils
 rm -rf $RPM_BUILD_ROOT%{_datadir}/locale
@@ -496,6 +501,7 @@
 %{_datadir}/gdb/syscalls
 %{_mandir}/man1/gdb.1*
 %{_mandir}/man1/gdbtui.1*
+%{_mandir}/man1/gstack.1*
 %lang(es) %{_mandir}/es/man1/*
 %lang(fr) %{_mandir}/fr/man1/*
 %lang(hu) %{_mandir}/hu/man1/*
@@ -541,6 +547,10 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.121  2009/12/08 07:37:51  glen
+- include gstack manpage
+- print pld version on gdb startup
+
 Revision 1.120  2009/12/08 07:16:07  glen
 - python subpackage
 

================================================================
Index: packages/gdb/gdb-gstack.man
diff -u /dev/null packages/gdb/gdb-gstack.man:1.1
--- /dev/null	Tue Dec  8 08:37:57 2009
+++ packages/gdb/gdb-gstack.man	Tue Dec  8 08:37:51 2009
@@ -0,0 +1,48 @@
+.\"
+.\" gstack manual page.
+.\" Copyright (c) 1999 Ross Thompson
+.\" Copyright (c) 2001, 2002, 2004, 2008 Red Hat, Inc.
+.\"
+.\" Original author: Ross Thompson <ross at whatsis.com>
+.\"
+.\" This program is free software; you can redistribute it and/or modify
+.\" it under the terms of the GNU General Public License as published by
+.\" the Free Software Foundation; either version 2, or (at your option)
+.\" any later version.
+.\"
+.\" This program is distributed in the hope that it will be useful,
+.\" but WITHOUT ANY WARRANTY; without even the implied warranty of
+.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+.\" GNU General Public License for more details.
+.\"
+.\" You should have received a copy of the GNU General Public License
+.\" along with this program; see the file COPYING.  If not, write to
+.\" the Free Software Foundation, 59 Temple Place - Suite 330,
+.\" Boston, MA 02111-1307, USA.
+.\"
+.TH GSTACK 1 "Feb 15 2008" "Red Hat Linux" "Linux Programmer's Manual"
+
+.SH NAME
+gstack \- print a stack trace of a running process
+
+.SH SYNOPSIS
+.B gstack
+pid
+
+.SH DESCRIPTION
+
+\f3gstack\f1 attaches to the active process named by the \f3pid\f1 on
+the command line, and prints out an execution stack trace.  If ELF
+symbols exist in the binary (usually the case unless you have run
+strip(1)), then symbolic addresses are printed as well.
+
+If the process is part of a thread group, then \f3gstack\f1 will print
+out a stack trace for each of the threads in the group.
+
+.SH SEE ALSO
+nm(1), ptrace(2), gdb(1)
+
+.SH AUTHORS
+Ross Thompson <ross at whatsis.com>
+
+Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla>
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/gdb/gdb.spec?r1=1.120&r2=1.121&f=u



More information about the pld-cvs-commit mailing list