rpms/crash/devel crash.patch,1.17,1.18 crash.spec,1.23,1.24

David Anderson (crash) fedora-extras-commits at redhat.com
Tue Feb 19 20:53:36 UTC 2008


Author: crash

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

Modified Files:
	crash.patch crash.spec 
Log Message:
First attempt at addressing the GCC 4.3 build, which failed on x86_64
because ptrace-abi.h (included by ptrace.h) uses the "u32" typedef,
which relies on <asm/types.h>, and include/asm-x86_64/types.h
does not not typedef u32 as done in include/asm-x86/types.h.


crash.patch:

View full diff with command:
/usr/bin/cvs -f diff  -kk -u -N -r 1.17 -r 1.18 crash.patch
Index: crash.patch
===================================================================
RCS file: /cvs/pkgs/rpms/crash/devel/crash.patch,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- crash.patch	23 Jan 2008 20:55:40 -0000	1.17
+++ crash.patch	19 Feb 2008 20:53:20 -0000	1.18
@@ -1,13 +1,13 @@
---- crash/configure.c.orig	2008-01-17 15:17:20.000000000 -0500
-+++ crash/configure.c	2008-01-04 09:42:08.000000000 -0500
+--- crash/configure.c.orig	2008-02-19 15:36:39.000000000 -0500
++++ crash/configure.c	2008-02-04 10:30:09.000000000 -0500
 @@ -1,8 +1,8 @@
  /* configure.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 David Anderson
-+ * Copyright (C) 2002, 2003, 2004, 2005, 2006 Red Hat, Inc. All rights reserved.
++ * Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008 David Anderson
++ * Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008 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
@@ -115,7 +115,7 @@
 +	printf("offered by Mission Critical Linux, or the LKCD kernel patch.\n");
 +	printf("\n");
 +	printf("%%package devel\n");
-+	printf("Requires: %%{name} = %%{version}\n");
++	printf("Requires: %%{name} = %%{version}, zlib-devel\n");
 +	printf("Summary: crash utility for live systems; netdump, diskdump, kdump, LKCD or mcore dumpfiles\n");
 +	printf("Group: Development/Debuggers\n");
 +	printf("\n");
@@ -146,8 +146,8 @@
  }
  
  /*
---- crash/Makefile.orig	2008-01-17 15:17:21.000000000 -0500
-+++ crash/Makefile	2008-01-17 15:17:20.000000000 -0500
+--- crash/Makefile.orig	2008-02-19 15:36:39.000000000 -0500
++++ crash/Makefile	2008-02-19 15:36:39.000000000 -0500
 @@ -3,8 +3,8 @@
  # Copyright (C) 1999, 2000, 2001, 2002 Mission Critical Linux, Inc.
  #       www.missioncriticallinux.com, info at missioncriticallinux.com
@@ -477,7 +477,7 @@
 +
 +do_extensions:
 +	@(cd extensions; make -i TARGET=$(TARGET) TARGET_CFLAGS=$(TARGET_CFLAGS))
---- crash/lkcd_dump_v7.h.orig	2008-01-17 15:17:20.000000000 -0500
+--- crash/lkcd_dump_v7.h.orig	2008-02-19 15:36:39.000000000 -0500
 +++ crash/lkcd_dump_v7.h	2008-01-04 09:42:08.000000000 -0500
 @@ -1,8 +1,8 @@
  /* lkcd_dump_v5.h - core analysis suite
@@ -499,7 +499,7 @@
  
  /* define TRUE and FALSE for use in our dump modules */
  #ifndef FALSE
---- crash/cmdline.c.orig	2008-01-17 15:17:20.000000000 -0500
+--- crash/cmdline.c.orig	2008-02-19 15:36:39.000000000 -0500
 +++ crash/cmdline.c	2008-01-04 09:42:08.000000000 -0500
 @@ -1,8 +1,8 @@
  /* cmdline.c - core analysis suite
@@ -935,7 +935,7 @@
 +		stall(1000);
  	}
  }
---- crash/lkcd_dump_v5.h.orig	2008-01-17 15:17:20.000000000 -0500
+--- crash/lkcd_dump_v5.h.orig	2008-02-19 15:36:39.000000000 -0500
 +++ crash/lkcd_dump_v5.h	2008-01-04 09:42:08.000000000 -0500
 @@ -1,8 +1,8 @@
  /* lkcd_dump_v5.h - core analysis suite
@@ -957,7 +957,7 @@
  
  /* define TRUE and FALSE for use in our dump modules */
  #ifndef FALSE
---- crash/xen_hyper.c.orig	2008-01-17 15:17:20.000000000 -0500
+--- crash/xen_hyper.c.orig	2008-02-19 15:36:39.000000000 -0500
 +++ crash/xen_hyper.c	2008-01-04 09:42:08.000000000 -0500
 @@ -0,0 +1,1975 @@
 +/*
@@ -2935,7 +2935,7 @@
 +	fprintf(out, "PCPU: %2d  VCPU: %lx\n", vcc->processor, vcpu);
 +}
 +#endif
---- crash/netdump.c.orig	2008-01-17 15:17:20.000000000 -0500
+--- crash/netdump.c.orig	2008-02-19 15:36:39.000000000 -0500
 +++ crash/netdump.c	2008-01-16 10:00:24.000000000 -0500
 @@ -1,7 +1,7 @@
  /* netdump.c 
@@ -4789,7 +4789,7 @@
 +
 +	return FALSE;
 +}
---- crash/x86_64.c.orig	2008-01-17 15:17:20.000000000 -0500
+--- crash/x86_64.c.orig	2008-02-19 15:36:39.000000000 -0500
 +++ crash/x86_64.c	2008-01-04 09:42:08.000000000 -0500
 @@ -1,7 +1,7 @@
  /* x86_64.c -- core analysis suite
@@ -11875,8 +11875,8 @@
 +	}
 +}
  #endif  /* X86_64 */ 
---- crash/symbols.c.orig	2008-01-17 15:17:20.000000000 -0500
-+++ crash/symbols.c	2008-01-16 12:01:59.000000000 -0500
+--- crash/symbols.c.orig	2008-02-19 15:36:39.000000000 -0500
++++ crash/symbols.c	2008-02-19 15:30:03.000000000 -0500
 @@ -1,8 +1,8 @@
  /* symbols.c - core analysis suite
   *
@@ -13278,8 +13278,14 @@
  
  	if (!lenptr)                /* not stored */
  		return(len);        
-@@ -5608,6 +5918,10 @@
+@@ -5606,8 +5916,16 @@
+                 OFFSET(task_struct_last_run));
+         fprintf(fp, "         task_struct_timestamp: %ld\n",
                  OFFSET(task_struct_timestamp));
++        fprintf(fp, "        task_struct_sched_info: %ld\n",
++                OFFSET(task_struct_sched_info));
++	fprintf(fp, "       sched_info_last_arrival: %ld\n",
++                OFFSET(sched_info_last_arrival));
          fprintf(fp, "       task_struct_thread_info: %ld\n",
                  OFFSET(task_struct_thread_info));
 +        fprintf(fp, "           task_struct_nsproxy: %ld\n",
@@ -13289,7 +13295,7 @@
  
  	fprintf(fp, "              thread_info_task: %ld\n",
                  OFFSET(thread_info_task));
-@@ -5618,11 +5932,31 @@
+@@ -5618,11 +5936,31 @@
  	fprintf(fp, "      thread_info_previous_esp: %ld\n",
                  OFFSET(thread_info_previous_esp));
  
@@ -13321,7 +13327,7 @@
          fprintf(fp, "               hlist_node_next: %ld\n",
  		OFFSET(hlist_node_next));
          fprintf(fp, "              hlist_node_pprev: %ld\n",
-@@ -5647,6 +5981,11 @@
+@@ -5647,6 +5985,11 @@
          	OFFSET(signal_struct_count));
  	fprintf(fp, "          signal_struct_action: %ld\n",
          	OFFSET(signal_struct_action));
@@ -13333,7 +13339,7 @@
          fprintf(fp, "        task_struct_start_time: %ld\n",
                  OFFSET(task_struct_start_time));
          fprintf(fp, "             task_struct_times: %ld\n",
-@@ -5766,10 +6105,22 @@
+@@ -5766,10 +6109,22 @@
  		OFFSET(mm_struct_pgd));
  	fprintf(fp, "                 mm_struct_rss: %ld\n", 
  		OFFSET(mm_struct_rss));
@@ -13356,7 +13362,7 @@
  
  	fprintf(fp, "          vm_area_struct_vm_mm: %ld\n", 
  		OFFSET(vm_area_struct_vm_mm));
-@@ -5885,6 +6236,15 @@
+@@ -5885,6 +6240,15 @@
          fprintf(fp, "                      page_pte: %ld\n",
                  OFFSET(page_pte));
  
@@ -13372,7 +13378,7 @@
          fprintf(fp, "    swap_info_struct_swap_file: %ld\n",
  		OFFSET(swap_info_struct_swap_file));
          fprintf(fp, "  swap_info_struct_swap_vfsmnt: %ld\n",
-@@ -5922,6 +6282,8 @@
+@@ -5922,6 +6286,8 @@
  		OFFSET(irq_desc_t_status));
  	fprintf(fp, "            irq_desc_t_handler: %ld\n",
  		OFFSET(irq_desc_t_handler));
@@ -13381,7 +13387,7 @@
  	fprintf(fp, "             irq_desc_t_action: %ld\n",
  		OFFSET(irq_desc_t_action));
  	fprintf(fp, "              irq_desc_t_depth: %ld\n",
-@@ -5967,11 +6329,52 @@
+@@ -5967,11 +6333,52 @@
  	fprintf(fp, "hw_interrupt_type_set_affinity: %ld\n",
  		OFFSET(hw_interrupt_type_set_affinity));
  
@@ -13434,7 +13440,7 @@
          fprintf(fp, "          files_struct_max_fds: %ld\n", 
  		OFFSET(files_struct_max_fds));
          fprintf(fp, "        files_struct_max_fdset: %ld\n", 
-@@ -5988,6 +6391,12 @@
+@@ -5988,6 +6395,12 @@
  		OFFSET(file_f_vfsmnt));
          fprintf(fp, "                  file_f_count: %ld\n", 
  		OFFSET(file_f_count));
@@ -13447,7 +13453,7 @@
  	fprintf(fp, "                fs_struct_root: %ld\n",
  		OFFSET(fs_struct_root));
  	fprintf(fp, "                 fs_struct_pwd: %ld\n",
-@@ -6165,6 +6574,47 @@
+@@ -6165,6 +6578,47 @@
          fprintf(fp, "                     slab_free: %ld\n",
                  OFFSET(slab_free));
  
@@ -13495,7 +13501,7 @@
[...2490 lines suppressed...]
  #define UTSNAME_ENTRY_SZ 65
---- crash/ppc64.c.orig	2008-01-17 15:17:20.000000000 -0500
+--- crash/ppc64.c.orig	2008-02-19 15:36:39.000000000 -0500
 +++ crash/ppc64.c	2008-01-04 09:42:08.000000000 -0500
 @@ -1,8 +1,8 @@
  /* ppc64.c -- core analysis suite
@@ -71270,7 +71375,7 @@
 +        	machdep->machspec->last_level4_read = 0;
 +}
  #endif /* PPC64 */ 
---- crash/xendump.h.orig	2008-01-17 15:17:20.000000000 -0500
+--- crash/xendump.h.orig	2008-02-19 15:36:39.000000000 -0500
 +++ crash/xendump.h	2008-01-04 09:42:08.000000000 -0500
 @@ -0,0 +1,177 @@
 +/* 
@@ -71450,7 +71555,7 @@
 +	uint64_t pfn;
 +	uint64_t gmfn; 
 +};
---- crash/diskdump.h.orig	2008-01-17 15:17:20.000000000 -0500
+--- crash/diskdump.h.orig	2008-02-19 15:36:39.000000000 -0500
 +++ crash/diskdump.h	2008-01-04 09:42:08.000000000 -0500
 @@ -1,8 +1,10 @@
  /* 
@@ -71533,7 +71638,7 @@
 +#define PAGE_VALID		(0x1)	/* flags */
 +#define DISKDUMP_VALID_PAGE(flags)	((flags) & PAGE_VALID)
 +
---- crash/help.c.orig	2008-01-17 15:17:20.000000000 -0500
+--- crash/help.c.orig	2008-02-19 15:36:39.000000000 -0500
 +++ crash/help.c	2008-01-04 11:54:24.000000000 -0500
 @@ -1,8 +1,8 @@
  /* help.c - core analysis suite
@@ -72932,9 +73037,9 @@
  "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/gdb-6.1.patch.orig	2008-01-17 15:17:21.000000000 -0500
-+++ crash/gdb-6.1.patch	2008-01-04 09:42:08.000000000 -0500
-@@ -0,0 +1,87 @@
+--- crash/gdb-6.1.patch.orig	2008-02-19 15:36:39.000000000 -0500
++++ crash/gdb-6.1.patch	2008-02-19 15:31:45.000000000 -0500
+@@ -0,0 +1,97 @@
 +--- gdb-6.1.orig/bfd/coff-alpha.c
 ++++ gdb-6.1/bfd/coff-alpha.c
 +@@ -1455,7 +1455,7 @@ alpha_relocate_section (output_bfd, info
@@ -73022,7 +73127,17 @@
 +     }
 +   else
 +     {
---- crash/diskdump.c.orig	2008-01-17 15:17:20.000000000 -0500
++--- gdb-6.1/gdb/amd64-linux-nat.c.orig	2008-02-19 08:59:33.000000000 -0500
+++++ gdb-6.1/gdb/amd64-linux-nat.c	2008-02-19 09:27:23.000000000 -0500
++@@ -28,6 +28,7 @@
++ 
++ #include "gdb_assert.h"
++ #include "gdb_string.h"
+++typedef unsigned int u32;
++ #include <sys/ptrace.h>
++ #include <sys/debugreg.h>
++ #include <sys/syscall.h>
+--- crash/diskdump.c.orig	2008-02-19 15:36:39.000000000 -0500
 +++ crash/diskdump.c	2008-01-04 09:42:08.000000000 -0500
 @@ -1,16 +1,16 @@
  /* 
@@ -73868,7 +73983,7 @@
 +{
 +	return (get_dump_level() > 0 ? TRUE : FALSE);
 +}
---- crash/unwind_x86_32_64.c.orig	2008-01-17 15:17:20.000000000 -0500
+--- crash/unwind_x86_32_64.c.orig	2008-02-19 15:36:39.000000000 -0500
 +++ crash/unwind_x86_32_64.c	2008-01-04 09:42:08.000000000 -0500
 @@ -0,0 +1,1220 @@
 +#if defined(X86_64)
@@ -75091,7 +75206,7 @@
 +
 +
 +#endif 
---- crash/s390x.c.orig	2008-01-17 15:17:20.000000000 -0500
+--- crash/s390x.c.orig	2008-02-19 15:36:39.000000000 -0500
 +++ crash/s390x.c	2008-01-04 09:42:08.000000000 -0500
 @@ -1,9 +1,9 @@
  /* s390.c - core analysis suite
@@ -75657,7 +75772,7 @@
  }
  
  /*
---- crash/lkcd_dump_v8.h.orig	2008-01-17 15:17:20.000000000 -0500
+--- crash/lkcd_dump_v8.h.orig	2008-02-19 15:36:39.000000000 -0500
 +++ crash/lkcd_dump_v8.h	2008-01-04 09:42:08.000000000 -0500
 @@ -235,4 +235,304 @@
  	int             stack_offset;
@@ -75964,7 +76079,7 @@
 +#endif
 +
  #endif /* _DUMP_H */
---- crash/x86.c.orig	2008-01-17 15:17:20.000000000 -0500
+--- crash/x86.c.orig	2008-02-19 15:36:39.000000000 -0500
 +++ crash/x86.c	2008-01-04 09:42:08.000000000 -0500
 @@ -1,8 +1,8 @@
  /* x86.c - core analysis suite
@@ -78344,7 +78459,7 @@
 +}
 +
  #endif /* X86 */
---- crash/netdump.h.orig	2008-01-17 15:17:20.000000000 -0500
+--- crash/netdump.h.orig	2008-02-19 15:36:39.000000000 -0500
 +++ crash/netdump.h	2008-01-04 09:42:08.000000000 -0500
 @@ -24,3 +24,95 @@
  
@@ -78442,7 +78557,7 @@
 +#define KDUMP_MFN_LIST  (0x4)
 +
 +#define P2M_FAILURE ((physaddr_t)(0xffffffffffffffffLL))
---- crash/xen_hyper_global_data.c.orig	2008-01-17 15:17:20.000000000 -0500
+--- crash/xen_hyper_global_data.c.orig	2008-02-19 15:36:39.000000000 -0500
 +++ crash/xen_hyper_global_data.c	2008-01-04 09:42:08.000000000 -0500
 @@ -0,0 +1,400 @@
 +/*
@@ -78845,7 +78960,7 @@
 +struct task_context fake_tc = { 0 };
 +
 +#endif
---- crash/lkcd_fix_mem.c.orig	2008-01-17 15:17:20.000000000 -0500
+--- crash/lkcd_fix_mem.c.orig	2008-02-19 15:36:39.000000000 -0500
 +++ crash/lkcd_fix_mem.c	2008-01-04 09:42:08.000000000 -0500
 @@ -20,21 +20,13 @@
  
@@ -78910,7 +79025,7 @@
 +}
 +
  #endif // IA64
---- crash/dev.c.orig	2008-01-17 15:17:20.000000000 -0500
+--- crash/dev.c.orig	2008-02-19 15:36:39.000000000 -0500
 +++ crash/dev.c	2008-01-04 09:42:08.000000000 -0500
 @@ -91,13 +91,13 @@
                  switch(c)
@@ -79059,7 +79174,7 @@
  	for (i = 0; i < devcnt; i++) {
  
  		/*
---- crash/vas_crash.h.orig	2008-01-17 15:17:20.000000000 -0500
+--- crash/vas_crash.h.orig	2008-02-19 15:36:39.000000000 -0500
 +++ crash/vas_crash.h	2008-01-04 09:42:08.000000000 -0500
 @@ -1,8 +1,8 @@
  /* vas_crash.h - kernel crash dump file format (on swap)
@@ -79081,7 +79196,7 @@
  
  void save_core(void);
  
---- crash/global_data.c.orig	2008-01-17 15:17:20.000000000 -0500
+--- crash/global_data.c.orig	2008-02-19 15:36:39.000000000 -0500
 +++ crash/global_data.c	2008-01-04 09:42:08.000000000 -0500
 @@ -68,7 +68,7 @@
   *  To add a new command, declare it in defs.h and enter it in this table.
@@ -79102,7 +79217,7 @@
  	{(char *)NULL}
  };
  
---- crash/unwind.c.orig	2008-01-17 15:17:20.000000000 -0500
+--- crash/unwind.c.orig	2008-02-19 15:36:39.000000000 -0500
 +++ crash/unwind.c	2008-01-04 09:42:08.000000000 -0500
 @@ -6,8 +6,8 @@
  /*
@@ -79348,7 +79463,7 @@
  static void
  unw_init_frame_info (struct unw_frame_info *info, struct bt_info *bt, ulong sw)
  {
---- crash/extensions.c.orig	2008-01-17 15:17:20.000000000 -0500
+--- crash/extensions.c.orig	2008-02-19 15:36:39.000000000 -0500
 +++ crash/extensions.c	2008-01-04 09:42:08.000000000 -0500
 @@ -18,9 +18,6 @@
  #include "defs.h"
@@ -79469,7 +79584,7 @@
 +{ 
 +	return pc->cmd_table; 
 +}
---- crash/lkcd_vmdump_v2_v3.h.orig	2008-01-17 15:17:20.000000000 -0500
+--- crash/lkcd_vmdump_v2_v3.h.orig	2008-02-19 15:36:39.000000000 -0500
 +++ crash/lkcd_vmdump_v2_v3.h	2008-01-04 09:42:08.000000000 -0500
 @@ -1,8 +1,8 @@
  /* lkcd_vmdump_v2_v3.h - core analysis suite
@@ -79494,7 +79609,7 @@
  
  } dump_header_asm_t;
  
---- crash/net.c.orig	2008-01-17 15:17:20.000000000 -0500
+--- crash/net.c.orig	2008-02-19 15:36:39.000000000 -0500
 +++ crash/net.c	2008-01-04 09:42:08.000000000 -0500
 @@ -1,8 +1,8 @@
  /* net.c - core analysis suite
@@ -79874,7 +79989,7 @@
  			break;
  		}
  		break;
---- crash/s390_dump.c.orig	2008-01-17 15:17:20.000000000 -0500
+--- crash/s390_dump.c.orig	2008-02-19 15:36:39.000000000 -0500
 +++ crash/s390_dump.c	2008-01-04 09:42:08.000000000 -0500
 @@ -1,8 +1,8 @@
  /* s390_dump.c - core analysis suite


Index: crash.spec
===================================================================
RCS file: /cvs/pkgs/rpms/crash/devel/crash.spec,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -r1.23 -r1.24
--- crash.spec	18 Feb 2008 23:03:31 -0000	1.23
+++ crash.spec	19 Feb 2008 20:53:21 -0000	1.24
@@ -4,7 +4,7 @@
 Summary: crash utility for live systems; netdump, diskdump, kdump, LKCD or mcore dumpfiles
 Name: crash
 Version: 4.0
-Release: 6.0.3
+Release: 6.0.4
 License: GPL
 Group: Development/Debuggers
 Source: %{name}-%{version}.tar.gz
@@ -46,6 +46,12 @@
 %doc README
 
 %changelog
+* Wed Feb 20 2008 Dave Anderson <anderson at redhat.com> - 4.0-6.0.4
+- First attempt at addressing the GCC 4.3 build, which failed on x86_64
+  because ptrace-abi.h (included by ptrace.h) uses the "u32" typedef,
+  which relies on <asm/types.h>, and include/asm-x86_64/types.h
+  does not not typedef u32 as done in include/asm-x86/types.h.
+
 * Mon Feb 18 2008 Fedora Release Engineering <rel-eng at fedoraproject.org> - 4.0-6.0.3
 - Autorebuild for GCC 4.3
 




More information about the fedora-extras-commits mailing list