rpms/crash/devel .cvsignore, 1.4, 1.5 crash.patch, 1.6, 1.7 crash.spec, 1.8, 1.9 sources, 1.4, 1.5

fedora-cvs-commits at redhat.com fedora-cvs-commits at redhat.com
Wed Jan 4 19:34:15 UTC 2006


Author: anderson

Update of /cvs/dist/rpms/crash/devel
In directory cvs.devel.redhat.com:/tmp/cvs-serv10684

Modified Files:
	.cvsignore crash.patch crash.spec sources 
Log Message:
Updated source package to crash-4.0.tar.gz, and crash.patch
to bring it up to 4.0-2.18.



Index: .cvsignore
===================================================================
RCS file: /cvs/dist/rpms/crash/devel/.cvsignore,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- .cvsignore	10 Feb 2005 18:39:42 -0000	1.4
+++ .cvsignore	4 Jan 2006 19:34:09 -0000	1.5
@@ -1,2 +1,3 @@
 crash-3.8.tar.gz
 crash-3.10.tar.gz
+crash-4.0.tar.gz

crash.patch:
 Makefile                     |   47 +
 README                       |   36 -
 alpha.c                      |    2 
 cmdline.c                    |   13 
 defs.h                       |  172 ++++
 dev.c                        |    4 
 diskdump.c                   |  447 +++++++++++-
 diskdump.h                   |   58 +
 extensions.c                 |    7 
 extensions/Makefile          |   41 +
 extensions/dminfo.c          | 1531 +++++++++++++++++++++++++++++++++++++++++++
 extensions/echo.c            |  105 ++
 filesys.c                    |   90 +-
 gdb-6.1.patch                |    9 
 gdb-6.1/gdb/ppc-linux-tdep.c | 1116 +++++++++++++++++++++++++++++++
 help.c                       |  102 +-
 ia64.c                       |   10 
 kernel.c                     |   98 ++
 lkcd_common.c                |   81 ++
 lkcd_v7.c                    |    6 
 lkcd_v8.c                    |   14 
 lkcd_x86_trace.c             |  122 +++
 main.c                       |   63 +
 memory.c                     |  427 ++++++++++-
 net.c                        |  159 +++-
 netdump.c                    |  528 ++++++++++++--
 netdump.h                    |   11 
 ppc.c                        |    2 
 ppc64.c                      |  238 ++++++
 s390.c                       |    2 
 s390x.c                      |    2 
 symbols.c                    |   25 
 task.c                       |  220 ++++--
 tools.c                      |    6 
 unwind.c                     |   19 
 x86.c                        |   49 -
 x86_64.c                     |  399 ++++++++++-
 37 files changed, 5749 insertions(+), 512 deletions(-)

View full diff with command:
/usr/bin/cvs -f diff  -kk -u -N -r 1.6 -r 1.7 crash.patch
Index: crash.patch
===================================================================
RCS file: /cvs/dist/rpms/crash/devel/crash.patch,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- crash.patch	3 Mar 2005 16:53:39 -0000	1.6
+++ crash.patch	4 Jan 2006 19:34:09 -0000	1.7
@@ -1,1504 +1,6114 @@
---- crash/gdb-6.0/gdb/symtab.c.orig	2005-03-03 11:36:20.000000000 -0500
-+++ crash/gdb-6.0/gdb/symtab.c	2005-03-02 16:19:09.000000000 -0500
-@@ -889,7 +889,9 @@
-    doesn't affect these calls since they are looking for a known
-    variable and thus can probably assume it will never hit the C++
-    code).  */
--
-+#ifdef CRASH_MERGE
-+static void gdb_bait_and_switch(char *, struct symbol *);
-+#endif
- struct symbol *
- lookup_symbol (const char *name, const struct block *block,
- 	       const domain_enum domain, int *is_a_field_of_this,
-@@ -936,7 +938,6 @@
- 
- #ifdef CRASH_MERGE
-   if (returnval && (domain == VAR_DOMAIN)) {
--    static void gdb_bait_and_switch(char *, struct symbol *);
-     gdb_bait_and_switch((char *)modified_name, returnval);
-   }
- #endif
---- crash/gdb-6.0/include/obstack.h.orig	2005-03-03 11:36:20.000000000 -0500
-+++ crash/gdb-6.0/include/obstack.h	2005-03-02 16:39:05.000000000 -0500
-@@ -0,0 +1,611 @@
-+/* obstack.h - object stack macros
-+   Copyright 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1996, 1997, 1998,
-+   1999, 2000
-+   Free Software Foundation, Inc.
-+
-+
-+   NOTE: The canonical source of this file is maintained with the GNU C Library.
-+   Bugs can be reported to bug-glibc at gnu.org.
-+
-+   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.
+--- crash/extensions/Makefile.orig	2006-01-04 14:18:28.000000000 -0500
++++ crash/extensions/Makefile	2005-11-08 11:38:21.000000000 -0500
+@@ -0,0 +1,41 @@
++#
++# Makefile for building crash shared object extensions
++#
++# Copyright (C) 2005 David Anderson
++# Copyright (C) 2005 Red Hat, Inc. All rights reserved.
++#
++# 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 of the License, 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.
++#
++# To build the extension shared objects in this directory, run 
++# "make extensions" from the top-level directory.
++#
++# To add a new extension object: 
++#
++#  - add the new source file to the EXTENSION_SOURCE_FILES list 
++#    in the top-level Makefile
++#  - add the object file name to the EXTENSION_OBJECT_FILES list
++#    in the top-level Makefile
++#  - create a compile stanza below, typically using "echo.so" as 
++#    a base template.
++# 
 +
-+   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.
++all: link_defs $(OBJECTS)
++	
++link_defs:
++	@if [ ! -f defs.h ]; then \
++	  ln -s ../defs.h; fi 
 +
-+   You should have received a copy of the GNU General Public License
-+   along with this program; if not, write to the Free Software
-+   Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-+   USA.  */
++echo.so: ../defs.h echo.c
++	gcc -nostartfiles -shared -rdynamic -o echo.so echo.c -fPIC -D$(TARGET)
 +
-+/* Summary:
++dminfo.so: ../defs.h dminfo.c
++	gcc -nostartfiles -shared -rdynamic -o dminfo.so dminfo.c -fPIC -D$(TARGET)
++	
+--- crash/extensions/echo.c.orig	2006-01-04 14:18:28.000000000 -0500
++++ crash/extensions/echo.c	2005-11-10 16:12:50.000000000 -0500
+@@ -0,0 +1,105 @@
++/* echo.c - simple example of a crash extension
++ *
++ * Copyright (C) 2001, 2002 Mission Critical Linux, Inc.
++ * Copyright (C) 2002, 2003, 2004, 2005 David Anderson
++ * Copyright (C) 2002, 2003, 2004, 2005 Red Hat, Inc. All rights reserved.
++ *
++ * 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 of the License, 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.
++ */
 +
-+All the apparent functions defined here are macros. The idea
-+is that you would use these pre-tested macros to solve a
-+very specific set of problems, and they would run fast.
-+Caution: no side-effects in arguments please!! They may be
-+evaluated MANY times!!
-+
-+These macros operate a stack of objects.  Each object starts life
-+small, and may grow to maturity.  (Consider building a word syllable
-+by syllable.)  An object can move while it is growing.  Once it has
-+been "finished" it never changes address again.  So the "top of the
-+stack" is typically an immature growing object, while the rest of the
-+stack is of mature, fixed size and fixed address objects.
-+
-+These routines grab large chunks of memory, using a function you
-+supply, called `obstack_chunk_alloc'.  On occasion, they free chunks,
-+by calling `obstack_chunk_free'.  You must define them and declare
-+them before using any obstack macros.
-+
-+Each independent stack is represented by a `struct obstack'.
-+Each of the obstack macros expects a pointer to such a structure
-+as the first argument.
-+
-+One motivation for this package is the problem of growing char strings
-+in symbol tables.  Unless you are "fascist pig with a read-only mind"
-+--Gosper's immortal quote from HAKMEM item 154, out of context--you
-+would not like to put any arbitrary upper limit on the length of your
-+symbols.
-+
-+In practice this often means you will build many short symbols and a
-+few long symbols.  At the time you are reading a symbol you don't know
-+how long it is.  One traditional method is to read a symbol into a
-+buffer, realloc()ating the buffer every time you try to read a symbol
-+that is longer than the buffer.  This is beaut, but you still will
-+want to copy the symbol from the buffer to a more permanent
-+symbol-table entry say about half the time.
-+
-+With obstacks, you can work differently.  Use one obstack for all symbol
-+names.  As you read a symbol, grow the name in the obstack gradually.
-+When the name is complete, finalize it.  Then, if the symbol exists already,
-+free the newly read name.
-+
-+The way we do this is to take a large chunk, allocating memory from
-+low addresses.  When you want to build a symbol in the chunk you just
-+add chars above the current "high water mark" in the chunk.  When you
-+have finished adding chars, because you got to the end of the symbol,
-+you know how long the chars are, and you can create a new object.
-+Mostly the chars will not burst over the highest address of the chunk,
-+because you would typically expect a chunk to be (say) 100 times as
-+long as an average object.
-+
-+In case that isn't clear, when we have enough chars to make up
-+the object, THEY ARE ALREADY CONTIGUOUS IN THE CHUNK (guaranteed)
-+so we just point to it where it lies.  No moving of chars is
-+needed and this is the second win: potentially long strings need
-+never be explicitly shuffled. Once an object is formed, it does not
-+change its address during its lifetime.
-+
-+When the chars burst over a chunk boundary, we allocate a larger
-+chunk, and then copy the partly formed object from the end of the old
-+chunk to the beginning of the new larger chunk.  We then carry on
-+accreting characters to the end of the object as we normally would.
-+
-+A special macro is provided to add a single char at a time to a
-+growing object.  This allows the use of register variables, which
-+break the ordinary 'growth' macro.
-+
-+Summary:
-+	We allocate large chunks.
-+	We carve out one object at a time from the current chunk.
-+	Once carved, an object never moves.
-+	We are free to append data of any size to the currently
-+	  growing object.
-+	Exactly one object is growing in an obstack at any one time.
-+	You can run one obstack per control block.
-+	You may have as many control blocks as you dare.
-+	Because of the way we do it, you can `unwind' an obstack
-+	  back to a previous state. (You may remove objects much
-+	  as you would with a stack.)
-+*/
++#include "defs.h"    /* From the crash source top-level directory */
 +
[...10814 lines suppressed...]
--          ${GDB}/gdb/ui-file.o ${GDB}/gdb/utils.o 
-+          ${GDB}/gdb/ui-file.o ${GDB}/gdb/utils.o ${GDB}/gdb/dwarf2read.o
+-          ${GDB}/gdb/ui-file.o ${GDB}/gdb/utils.o ${GDB}/gdb/dwarf2read.o
++          ${GDB}/gdb/ui-file.o ${GDB}/gdb/utils.o ${GDB}/gdb/dwarf2read.o \
++          ${GDB}/gdb/ppc-linux-tdep.o
  
  # 
  # GDB_FLAGS is passed up from the gdb Makefile.
---- crash/crash.8.orig	2005-03-03 11:36:20.000000000 -0500
-+++ crash/crash.8	2005-01-31 10:55:43.000000000 -0500
-@@ -104,9 +104,8 @@
- .TP
- .BI \-d \ num
- .B Crash
--sets its internal debug level
--.I num
--.  The higher the number, the more debugging data will be printed while
-+sets its internal debug level.
-+The higher the number, the more debugging data will be printed while
- .B crash
- runs.
- .TP
+@@ -175,7 +187,8 @@
+ 
+ CFLAGS=-g -D${TARGET} ${TARGET_CFLAGS}
+ 
+-TAR_FILES=${SOURCE_FILES} Makefile COPYING README .rh_rpm_package crash.8
++TAR_FILES=${SOURCE_FILES} Makefile COPYING README .rh_rpm_package crash.8 \
++	${EXTENSION_SOURCE_FILES}
+ CSCOPE_FILES=${SOURCE_FILES}
+ 
+ READLINE_DIRECTORY=./${GDB}/readline
+@@ -184,9 +197,13 @@
+ 
+ REDHATFLAGS=-DREDHAT
+ 
++# To build the extensions library by default, uncomment the third command
++# line below.  Otherwise they can be built by entering "make extensions".
++
+ all: make_configure
+ 	@./configure -p "RPMPKG=${RPMPKG}" -b
+ 	@make --no-print-directory gdb_merge
++#	@make --no-print-directory extensions
+ 
+ gdb_merge: force
+ 	@if [ ! -f ${GDB}/README ]; then \
+@@ -206,6 +223,11 @@
+ 	@for FILE in ${GDB_FILES}; do\
+ 	  echo $$FILE >> gdb.files; done
+ 	@tar --exclude-from gdb.files -xvzmf ${GDB}.tar.gz
++	@make --no-print-directory gdb_patch
++
++gdb_patch:
++	if [ -f ${GDB}.patch ] && [ -s ${GDB}.patch ]; then \
++		patch -p0 < ${GDB}.patch; fi
+ 
+ library: make_build_data ${OBJECT_FILES}
+ 	ar -rs ${PROGRAM}lib.a ${OBJECT_FILES}
+@@ -393,13 +415,13 @@
+ 
+ gdb_files: make_configure
+ 	@./configure -q -b
+-	@echo ${GDB_FILES}
++	@echo ${GDB_FILES} ${GDB_PATCH_FILES}
+ 
+ show_files:
+ 	@if [ -f ${PROGRAM}  ]; then \
+ 		./${PROGRAM} --no_crashrc -h README > README; fi
+-	@echo ${SOURCE_FILES} Makefile ${GDB_FILES} COPYING README \
+-	.rh_rpm_package crash.8
++	@echo ${SOURCE_FILES} Makefile ${GDB_FILES} ${GDB_PATCH_FILES} COPYING README \
++	.rh_rpm_package crash.8 ${EXTENSION_SOURCE_FILES}
+ 
+ ctags:
+ 	ctags ${SOURCE_FILES}
+@@ -411,7 +433,7 @@
+ do_tar:
+ 	@if [ -f ${PROGRAM}  ]; then \
+ 		./${PROGRAM} --no_crashrc -h README > README; fi
+-	tar cvzf ${PROGRAM}.tar.gz ${TAR_FILES} ${GDB_FILES}
++	tar cvzf ${PROGRAM}.tar.gz ${TAR_FILES} ${GDB_FILES} ${GDB_PATCH_FILES}
+ 	@echo; ls -l ${PROGRAM}.tar.gz
+ 
+ # To create a base tar file for Red Hat RPM packaging, pass the base RPM
+@@ -446,8 +468,8 @@
+ 	@rm -f ${PROGRAM}-${RELEASE}.tar.gz 
+ 	@rm -f ${PROGRAM}-${RELEASE}.src.rpm
+ 	@chown root ./RELDIR/${PROGRAM}-${RELEASE}
+-	@tar cf - ${SOURCE_FILES} Makefile ${GDB_FILES} COPYING \
+-	.rh_rpm_package crash.8 | (cd ./RELDIR/${PROGRAM}-${RELEASE}; tar xf -)
++	@tar cf - ${SOURCE_FILES} Makefile ${GDB_FILES} ${GDB_PATCH_FILES} COPYING \
++	.rh_rpm_package crash.8 ${EXTENSION_SOURCE_FILES} | (cd ./RELDIR/${PROGRAM}-${RELEASE}; tar xf -)
+ 	@cp ${GDB}.tar.gz ./RELDIR/${PROGRAM}-${RELEASE}
+ 	@./${PROGRAM} --no_crashrc -h README > ./RELDIR/${PROGRAM}-${RELEASE}/README
+ 	@(cd ./RELDIR; find . -exec chown root {} ";")
+@@ -488,3 +510,10 @@
+ 
+ dis:
+ 	objdump --disassemble --line-numbers ${PROGRAM} > ${PROGRAM}.dis
++
++extensions: make_configure
++	@./configure -q -b
++	@make --no-print-directory do_extensions
++
++do_extensions:
++	@(cd extensions; make -i OBJECTS="$(EXTENSION_OBJECT_FILES)" TARGET=$(TARGET))
+--- crash/gdb-6.1.patch.orig	2006-01-04 14:18:28.000000000 -0500
++++ crash/gdb-6.1.patch	2006-01-03 13:36:25.000000000 -0500
+@@ -0,0 +1,11 @@
++--- gdb-6.1/bfd/coff-alpha.c.orig
+++++ gdb-6.1/bfd/coff-alpha.c
++@@ -1455,7 +1455,7 @@ alpha_relocate_section (output_bfd, info
++ 	  amt = sizeof (struct ecoff_section_tdata);
++ 	  lita_sec_data = ((struct ecoff_section_tdata *)
++ 			   bfd_zalloc (input_bfd, amt));
++-	  ecoff_section_data (input_bfd, lita_sec) = lita_sec_data;
+++	  lita_sec->used_by_bfd = lita_sec_data;
++ 	}
++ 
++       if (lita_sec_data->gp != 0)
+--- crash/README.orig	2006-01-04 14:18:28.000000000 -0500
++++ crash/README	2006-01-04 14:18:26.000000000 -0500
+@@ -69,7 +69,7 @@
+      After the kernel is re-compiled, the uncompressed "vmlinux" kernel
+      that is created in the top-level kernel build directory must be saved.
+ 
+-  To build this utility, simply uncompress the tar file, enter the crash-4.0
++  To build this utility, simply uncompress the tar file, enter the crash-4.0-2.18
+   subdirectory, and type "make".  The initial build will take several minutes 
+   because the gdb module must be configured and and built.  Alternatively, the
+   crash source RPM file may be installed and built, and the resultant crash
+@@ -89,10 +89,12 @@
+ 
+     $ crash
+     
+-    crash 4.0
+-    Copyright (C) 2002, 2003, 2004, 2005  Red Hat, Inc.
+-    Copyright (C) 2004, 2005  IBM Corporation
+-    Copyright (C) 1999-2005  Hewlett-Packard Co
++    crash 4.0-2.18
++    Copyright (C) 2002, 2003, 2004, 2005, 2006  Red Hat, Inc.
++    Copyright (C) 2004, 2005, 2006  IBM Corporation
++    Copyright (C) 1999-2006  Hewlett-Packard Co
++    Copyright (C) 2005  Fujitsu Limited
++    Copyright (C) 2005  NEC Corporation
+     Copyright (C) 1999, 2002  Silicon Graphics, Inc.
+     Copyright (C) 1999, 2000, 2001, 2002  Mission Critical Linux, Inc.
+     This program is free software, covered by the GNU General Public License,
+@@ -111,7 +113,7 @@
+           KERNEL: /boot/vmlinux
+         DUMPFILE: /dev/mem
+             CPUS: 1
+-            DATE: Wed Jul 13 13:26:00 2005
++            DATE: Wed Jan  4 14:18:26 2006
+           UPTIME: 10 days, 22:55:18
+     LOAD AVERAGE: 0.08, 0.03, 0.01
+            TASKS: 42
+@@ -139,7 +141,7 @@
+     exit           log            rd             task           
+     extend         mach           repeat         timer          
+     
+-    crash version: 4.0      gdb version: 6.1
++    crash version: 4.0-2.18   gdb version: 6.1
+     For help on any command above, enter "help <command>".
+     For help on input options, enter "help input".
+     For help on output options, enter "help output".
+@@ -152,10 +154,12 @@
+ 
+     $ crash vmlinux vmcore
+  
+-    crash 4.0
+-    Copyright (C) 2002, 2003, 2004, 2005  Red Hat, Inc.
+-    Copyright (C) 2004, 2005  IBM Corporation
+-    Copyright (C) 1999-2005  Hewlett-Packard Co
++    crash 4.0-2.18
++    Copyright (C) 2002, 2003, 2004, 2005, 2006  Red Hat, Inc.
++    Copyright (C) 2004, 2005, 2006  IBM Corporation
++    Copyright (C) 1999-2006  Hewlett-Packard Co
++    Copyright (C) 2005  Fujitsu Limited
++    Copyright (C) 2005  NEC Corporation
+     Copyright (C) 1999, 2002  Silicon Graphics, Inc.
+     Copyright (C) 1999, 2000, 2001, 2002  Mission Critical Linux, Inc.
+     This program is free software, covered by the GNU General Public License,
+@@ -196,10 +200,12 @@
+ 
+     $ crash vmlinux.17 lcore.cr.17
+ 
+-    crash 4.0
+-    Copyright (C) 2002, 2003, 2004, 2005  Red Hat, Inc.
+-    Copyright (C) 2004, 2005  IBM Corporation
+-    Copyright (C) 1999-2005  Hewlett-Packard Co
++    crash 4.0-2.18
++    Copyright (C) 2002, 2003, 2004, 2005, 2006  Red Hat, Inc.
++    Copyright (C) 2004, 2005, 2006  IBM Corporation
++    Copyright (C) 1999-2006  Hewlett-Packard Co
++    Copyright (C) 2005  Fujitsu Limited
++    Copyright (C) 2005  NEC Corporation
+     Copyright (C) 1999, 2002  Silicon Graphics, Inc.
+     Copyright (C) 1999, 2000, 2001, 2002  Mission Critical Linux, Inc.
+     This program is free software, covered by the GNU General Public License,


Index: crash.spec
===================================================================
RCS file: /cvs/dist/rpms/crash/devel/crash.spec,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- crash.spec	9 Dec 2005 22:40:06 -0000	1.8
+++ crash.spec	4 Jan 2006 19:34:12 -0000	1.9
@@ -3,8 +3,8 @@
 #
 Summary: crash utility for live systems; netdump, diskdump, LKCD or mcore dumpfiles
 Name: crash
-Version: 3.10
-Release: 13.1
+Version: 4.0
+Release: 2.18
 License: GPL
 Group: Development/Debuggers
 Source: %{name}-%{version}.tar.gz
@@ -35,6 +35,9 @@
 mkdir -p %{buildroot}%{_mandir}/man8
 cp crash.8 %{buildroot}%{_mandir}/man8/crash.8
 
+%clean
+rm -rf %{buildroot}
+
 %files
 %defattr(-,root,root)
 /usr/bin/crash
@@ -42,6 +45,10 @@
 %doc README
 
 %changelog
+* Wed Jan 04 2006 Dave Anderson <anderson at redhat.com> 4.0-2.18
+- Updated source package to crash-4.0.tar.gz, and crash.patch
+  to bring it up to 4.0-2.18.
+
 * Fri Dec 09 2005 Jesse Keating <jkeating at redhat.com>
 - rebuilt
 


Index: sources
===================================================================
RCS file: /cvs/dist/rpms/crash/devel/sources,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- sources	10 Feb 2005 18:39:42 -0000	1.4
+++ sources	4 Jan 2006 19:34:13 -0000	1.5
@@ -1 +1 @@
-a009fb3ee88997292d1d392897861b9e  crash-3.10.tar.gz
+9b5de0153fc2701a8ea93e02aebf0f23  crash-4.0.tar.gz




More information about the fedora-cvs-commits mailing list