rpms/crash/devel crash.patch,1.15,1.16 crash.spec,1.20,1.21

David Anderson (crash) fedora-extras-commits at redhat.com
Wed Aug 29 19:10:15 UTC 2007


Author: crash

Update of /cvs/pkgs/rpms/crash/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv21128

Modified Files:
	crash.patch crash.spec 
Log Message:
* Wed Aug 29 2007 Dave Anderson <anderson at redhat.com> - 4.0-4.6.2
- Updated crash.patch to match upstream version 4.0-4.6.


crash.patch:

View full diff with command:
/usr/bin/cvs -f diff  -kk -u -N -r 1.15 -r 1.16 crash.patch
Index: crash.patch
===================================================================
RCS file: /cvs/pkgs/rpms/crash/devel/crash.patch,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- crash.patch	13 Sep 2006 15:16:49 -0000	1.15
+++ crash.patch	29 Aug 2007 19:10:11 -0000	1.16
@@ -1,6 +1,6 @@
---- crash/extensions/Makefile.orig	2006-09-13 11:10:23.000000000 -0400
-+++ crash/extensions/Makefile	2005-11-08 11:39:26.000000000 -0500
-@@ -0,0 +1,41 @@
+--- crash/extensions/Makefile.orig	2007-08-27 15:02:36.000000000 -0400
++++ crash/extensions/Makefile	2007-05-29 10:16:56.000000000 -0400
+@@ -0,0 +1,43 @@
 +#
 +# Makefile for building crash shared object extensions
 +#
@@ -37,12 +37,14 @@
 +	  ln -s ../defs.h; fi 
 +
 +echo.so: ../defs.h echo.c
-+	gcc -nostartfiles -shared -rdynamic -o echo.so echo.c -fPIC -D$(TARGET)
++	gcc -nostartfiles -shared -rdynamic -o echo.so echo.c -fPIC \
++				 		-D$(TARGET) $(TARGET_CFLAGS)
 +
 +dminfo.so: ../defs.h dminfo.c
-+	gcc -nostartfiles -shared -rdynamic -o dminfo.so dminfo.c -fPIC -D$(TARGET)
++	gcc -nostartfiles -shared -rdynamic -o dminfo.so dminfo.c -fPIC \
++				 		-D$(TARGET) $(TARGET_CFLAGS)
 +	
---- crash/extensions/echo.c.orig	2006-09-13 11:10:23.000000000 -0400
+--- crash/extensions/echo.c.orig	2007-08-27 15:02:36.000000000 -0400
 +++ crash/extensions/echo.c	2005-11-08 10:37:53.000000000 -0500
 @@ -0,0 +1,105 @@
 +/* echo.c - simple example of a crash extension
@@ -150,7 +152,7 @@
 +};
 +
 +
---- crash/extensions/dminfo.c.orig	2006-09-13 11:10:23.000000000 -0400
+--- crash/extensions/dminfo.c.orig	2007-08-27 15:02:36.000000000 -0400
 +++ crash/extensions/dminfo.c	2005-11-08 10:37:53.000000000 -0500
 @@ -0,0 +1,1531 @@
 +/* dminfo.c - crash extension module for device-mapper analysis
@@ -1684,9 +1686,111 @@
 +{
 +	return 0;
 +}
---- crash/gdb-6.1/gdb/symfile.c.orig	2006-09-13 11:10:23.000000000 -0400
-+++ crash/gdb-6.1/gdb/symfile.c	2006-08-23 08:40:53.000000000 -0400
-@@ -3510,6 +3510,13 @@
+--- crash/gdb-6.1/gdb/symtab.c.orig	2007-08-27 15:02:36.000000000 -0400
++++ crash/gdb-6.1/gdb/symtab.c	2007-01-23 17:11:34.000000000 -0500
+@@ -4,7 +4,7 @@
+    1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
+    Free Software Foundation, Inc.
+    Portions Copyright (C) 2001, 2002 Mission Critical Linux, Inc.
+-   Copyright (c) 2002, 2003, 2004, 2005 Red Hat, Inc. All rights reserved.
++   Copyright (c) 2002, 2003, 2004, 2005, 2007 Red Hat, Inc. All rights reserved.
+ 
+    This file is part of GDB.
+ 
+@@ -4523,14 +4523,54 @@
+ 	struct symbol *sym;
+ 	struct expression *expr;
+ 	struct cleanup *old_chain;
+-
++	int i;
++        int allsect = 0;
++        char *secname;
++        char buf[80];
++    
+ 	gdb_current_load_module = lm = (struct load_module *)req->addr;
+ 
+ 	req->name = lm->mod_namelist;
+ 	gdb_delete_symbol_file(req);
+ 
+-        sprintf(req->buf, "add-symbol-file %s 0x%lx", lm->mod_namelist, 
+-		lm->mod_text_start);
++        for (i = 0 ; i < lm->mod_sections; i++) {
++            if (STREQ(lm->mod_section_data[i].name, ".text") &&
++                (lm->mod_section_data[i].flags & SEC_FOUND))
++                    allsect = 1;
++        }
++
++        if (!allsect) {
++            sprintf(req->buf, "add-symbol-file %s 0x%lx", lm->mod_namelist,
++                    lm->mod_text_start ? lm->mod_text_start : lm->mod_base);
++	    if (lm->mod_data_start) {
++                    sprintf(buf, " -s .data 0x%lx", lm->mod_data_start);
++                    strcat(req->buf, buf);
++	    }
++	    if (lm->mod_bss_start) {
++                    sprintf(buf, " -s .bss 0x%lx", lm->mod_bss_start);
++                    strcat(req->buf, buf);
++	    }
++	    if (lm->mod_rodata_start) {
++                    sprintf(buf, " -s .rodata 0x%lx", lm->mod_rodata_start);
++                    strcat(req->buf, buf);
++	    }
++        } else {
++            sprintf(req->buf, "add-symbol-file %s 0x%lx", lm->mod_namelist,
++                    lm->mod_text_start);
++            for (i = 0; i < lm->mod_sections; i++) {
++                    secname = lm->mod_section_data[i].name;
++                    if ((lm->mod_section_data[i].flags & SEC_FOUND) &&
++                        !STREQ(secname, ".text")) {
++                            sprintf(buf, " -s %s 0x%lx", secname,
++                                lm->mod_section_data[i].offset + lm->mod_base);
++                            strcat(req->buf, buf);
++                    }
++            }
++        }
++
++	if (gdb_CRASHDEBUG(1)) {
++            fprintf_filtered(gdb_stdout, "gdb_add_symbol_file: %s\n", req->buf);
++	}
+ 
+        	execute_command(req->buf, FALSE);
+ 
+--- crash/gdb-6.1/gdb/symfile.c.orig	2007-08-27 15:02:36.000000000 -0400
++++ crash/gdb-6.1/gdb/symfile.c	2007-01-23 15:15:36.000000000 -0500
+@@ -3,7 +3,7 @@
+    Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
+    1999, 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
+    Portions Copyright (C) 2001, 2002 Mission Critical Linux, Inc.
+-   Copyright (c) 2002, 2003, 2004, 2005 Red Hat, Inc. All rights reserved.
++   Copyright (c) 2002, 2003, 2004, 2005, 2006, 2007 Red Hat, Inc. All rights reserved.
+ 
+    Contributed by Cygnus Support, using pieces from other GDB modules.
+ 
+@@ -1678,7 +1678,11 @@
+                to load the program. */
+ 	    sect_opts[section_index].name = ".text";
+ 	    sect_opts[section_index].value = arg;
++#ifdef CRASH_MERGE
++	    if (++section_index >= num_sect_opts) 
++#else
+ 	    if (++section_index > num_sect_opts) 
++#endif
+ 	      {
+ 		num_sect_opts *= 2;
+ 		sect_opts = ((struct sect_opt *) 
+@@ -1714,7 +1718,11 @@
+ 		    {
+ 		      sect_opts[section_index].value = arg;
+ 		      expecting_sec_addr = 0;
++#ifdef CRASH_MERGE
++		      if (++section_index >= num_sect_opts) 
++#else
+ 		      if (++section_index > num_sect_opts) 
++#endif
+ 			{
+ 			  num_sect_opts *= 2;
+ 			  sect_opts = ((struct sect_opt *) 
+@@ -3510,6 +3518,13 @@
  bfd_byte *
  symfile_relocate_debug_section (bfd *abfd, asection *sectp, bfd_byte *buf)
  {
@@ -1700,7 +1804,7 @@
    /* We're only interested in debugging sections with relocation
       information.  */
    if ((sectp->flags & SEC_RELOC) == 0)
---- crash/gdb-6.1/gdb/ppc-linux-tdep.c.orig	2006-09-13 11:10:23.000000000 -0400
+--- crash/gdb-6.1/gdb/ppc-linux-tdep.c.orig	2007-08-27 15:02:36.000000000 -0400
 +++ crash/gdb-6.1/gdb/ppc-linux-tdep.c	2005-07-14 11:08:17.000000000 -0400
 @@ -0,0 +1,1116 @@
 +/* Target-dependent code for GDB, the GNU debugger.
@@ -2819,70 +2923,253 @@
 +                         ppc_linux_init_abi);
 +  add_core_fns (&ppc_linux_regset_core_fns);
 +}
---- crash/main.c.orig	2006-09-13 11:10:22.000000000 -0400
-+++ crash/main.c	2006-08-31 15:56:58.000000000 -0400
-@@ -35,11 +35,15 @@
+--- crash/main.c.orig	2007-08-27 15:02:36.000000000 -0400
++++ crash/main.c	2007-08-21 16:02:46.000000000 -0400
+@@ -1,8 +1,8 @@
+ /* main.c - core analysis suite
+  *
+  * Copyright (C) 1999, 2000, 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.
++ * Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007 David Anderson
++ * Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007 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
+@@ -16,6 +16,7 @@
+  */
+ 
+ #include "defs.h"
++#include "xen_hyper_defs.h"
+ #include <curses.h>
+ #include <getopt.h>
+ 
+@@ -23,23 +24,37 @@
+ static int is_external_command(void);
+ static int is_builtin_command(void);
[...43952 lines suppressed...]
   
@@ -23712,16 +49039,19 @@
 -    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-3.3
-+    Copyright (C) 2002, 2003, 2004, 2005, 2006  Red Hat, Inc.
+-    Copyright (C) 1999, 2002  Silicon Graphics, Inc.
++    crash 4.0-4.6
++    Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007  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, 2006  Fujitsu Limited
++    Copyright (C) 2006, 2007  VA Linux Systems Japan K.K.
 +    Copyright (C) 2005  NEC Corporation
-     Copyright (C) 1999, 2002  Silicon Graphics, Inc.
++    Copyright (C) 1999, 2002, 2007  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 @@
+     and you are welcome to change it and/or distribute copies of it under
+@@ -196,11 +202,14 @@
  
      $ crash vmlinux.17 lcore.cr.17
  
@@ -23729,12 +49059,169 @@
 -    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-3.3
-+    Copyright (C) 2002, 2003, 2004, 2005, 2006  Red Hat, Inc.
+-    Copyright (C) 1999, 2002  Silicon Graphics, Inc.
++    crash 4.0-4.6
++    Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007  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, 2006  Fujitsu Limited
++    Copyright (C) 2006, 2007  VA Linux Systems Japan K.K.
 +    Copyright (C) 2005  NEC Corporation
-     Copyright (C) 1999, 2002  Silicon Graphics, Inc.
++    Copyright (C) 1999, 2002, 2007  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,
+     and you are welcome to change it and/or distribute copies of it under
+--- crash/crash.8.orig	2007-08-27 15:02:36.000000000 -0400
++++ crash/crash.8	2007-07-13 16:57:38.000000000 -0400
+@@ -5,7 +5,7 @@
+ .TH CRASH 8
+ .SH NAME
+ crash \- Analyze Linux crash data or a live system
+-.SH SYNAPSIS
++.SH SYNOPSIS
+ .B crash
+ [
+ .B -h
+@@ -42,9 +42,13 @@
+ is a tool for interactively analyzing the state of the Linux system
+ while it is running, or after a kernel crash has occurred and a 
+ core dump has been created by the Red Hat 
+-.I netdump
+-facility.  It is loosely based on the SVR4 UNIX crash 
+-command, but has been signficantly enhanced
++.I netdump,
++.I diskdump,
++.I kdump,
++or
++.I xendump
++facilities.  It is loosely based on the SVR4 UNIX crash 
++command, but has been significantly enhanced
+ by completely merging it with the 
+ .I gdb
+ debugger. The marriage of the two effectively combines the 
+@@ -207,15 +211,15 @@
+ .I dis
+ disassembles memory, either entire kernel functions, from a
+ location for a specified number of instructions, or from the start of a
+-fuction up to a specified memory location.
++function up to a specified memory location.
+ .TP
+ .I eval
+ evalues an expression or numeric type and displays the result
+-in hexidecimal, decimal, octal and binary.
++in hexadecimal, decimal, octal and binary.
+ .TP
+ .I exit
+ causes
+-.I crash
++.B crash
+ to exit.
+ .TP
+ .I extend
+@@ -230,7 +234,7 @@
+ in the system.
+ .TP
+ .I fuser
+-displays the tasks using the specifed file or socket.
++displays the tasks using the specified file or socket.
+ .TP
+ .I gdb
+ passes its argument to the underlying
+@@ -274,7 +278,7 @@
+ display various network related data.
+ .TP
+ .I p
+-passes its argumnts to the
++passes its arguments to the
+ .I gdb
+ "print" command for evaluation and display.
+ .TP
+@@ -361,11 +365,85 @@
+ .I wr
+ modifies the contents of memory.  When writing to memory on
+ a live system, this command should obviously be used with great care.
++.SH FILES
++.TP
++.I .crashrc
++Initialization commands.  The file can be located in the user's
++.B HOME 
++directory and/or the current directory.  Commands found in the
++.I .crashrc
++file in the 
++.B HOME
++directory are executed before those in the current directory's 
++.I .crashrc
++file.
++.SH ENVIRONMENT
++.TP
++.B EDITOR
++Command input is read using
++.BR readline(3).
++If
++.B EDITOR
++is set to
++.I emacs
++or
++.I vi
++then suitable keybindings are used.  If 
++.B EDITOR
++is not set, then
++.I vi
++is used.  This can be overridden by
++.B set vi
++or 
++.B set emacs
++commands located in a
++.IR .crashrc 
++file, or by entering
++.B -e emacs
++on the
++.B crash
++command line.
++.TP
++.B CRASHPAGER
++If
++.B CRASHPAGER
++is set, its value is used as the name of the program to which command output will be sent. 
++If not, then command output is sent to 
++.B /usr/bin/less -E -X 
++by default.
++.SH NOTES
++.PP
++If
++.B crash
++does not work, look for a newer version: kernel evolution frequently makes
++.B crash
++updates necessary.
++.PP
++The command
++.B set scroll off
++will cause output to be sent directly to
++the terminal rather than through a paging program.  This is useful,
++for example, if you are running
++.B crash
++in a window of
++.BR emacs .
+ .SH AUTHOR
+ Dave Anderson <anderson at redhat.com> wrote
+-.B Crash
++.B crash
+ .TP
+ Jay Fenlason <fenlason at redhat.com> wrote this man page.
+ .SH "SEE ALSO"
+-netdump(8)
+-gdb(1)
++.PP
++The
++.I help
++command within
++.B crash
++provides more complete and accurate documentation than this man page.
++.PP
++.I http://people.redhat.com/anderson
++- the home page of the
++.B crash
++utility.
++.PP
++.BR netdump (8),
++.BR gdb (1)


Index: crash.spec
===================================================================
RCS file: /cvs/pkgs/rpms/crash/devel/crash.spec,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -r1.20 -r1.21
--- crash.spec	14 Nov 2006 16:38:19 -0000	1.20
+++ crash.spec	29 Aug 2007 19:10:12 -0000	1.21
@@ -1,10 +1,10 @@
 #
 # crash core analysis suite
 #
-Summary: crash utility for live systems; netdump, diskdump, LKCD or mcore dumpfiles
+Summary: crash utility for live systems; netdump, diskdump, kdump, LKCD or mcore dumpfiles
 Name: crash
 Version: 4.0
-Release: 3.3
+Release: 4.6.2
 License: GPL
 Group: Development/Debuggers
 Source: %{name}-%{version}.tar.gz
@@ -46,6 +46,9 @@
 %doc README
 
 %changelog
+* Wed Aug 29 2007 Dave Anderson <anderson at redhat.com> - 4.0-4.6.2
+- Updated crash.patch to match upstream version 4.0-4.6.
+
 * Wed Sep 13 2006 Dave Anderson <anderson at redhat.com> - 4.0-3.3
 - Updated crash.patch to match upstream version 4.0-3.3.
 - Support for x86_64 relocatable kernels.  BZ #204557




More information about the fedora-extras-commits mailing list