]> git.pld-linux.org Git - packages/gdb.git/blobdiff - gdb-6.8-bz254229-gcore-prpsinfo.patch
- up to 7.3.1
[packages/gdb.git] / gdb-6.8-bz254229-gcore-prpsinfo.patch
index 216a95d9cdca6c80d58f8af55372d68e030c9177..b5eb514003fc33d8bf9434ef034c54f89c5b678c 100644 (file)
@@ -1,8 +1,8 @@
-Index: gdb-7.1.90.20100711/bfd/elf-bfd.h
+Index: gdb-7.2.50.20110320/bfd/elf-bfd.h
 ===================================================================
---- gdb-7.1.90.20100711.orig/bfd/elf-bfd.h     2010-06-27 06:07:51.000000000 +0200
-+++ gdb-7.1.90.20100711/bfd/elf-bfd.h  2010-07-12 23:00:04.000000000 +0200
-@@ -2171,8 +2171,10 @@ extern Elf_Internal_Phdr * _bfd_elf_find
+--- gdb-7.2.50.20110320.orig/bfd/elf-bfd.h     2011-03-20 15:17:42.000000000 +0100
++++ gdb-7.2.50.20110320/bfd/elf-bfd.h  2011-03-20 15:24:02.000000000 +0100
+@@ -2193,8 +2193,10 @@ extern Elf_Internal_Phdr * _bfd_elf_find
  /* Exported interface for writing elf corefile notes. */
  extern char *elfcore_write_note
    (bfd *, char *, int *, const char *, int, const void *, int);
@@ -14,11 +14,11 @@ Index: gdb-7.1.90.20100711/bfd/elf-bfd.h
  extern char *elfcore_write_prstatus
    (bfd *, char *, int *, long, int, const void *);
  extern char * elfcore_write_pstatus
-Index: gdb-7.1.90.20100711/bfd/elf.c
+Index: gdb-7.2.50.20110320/bfd/elf.c
 ===================================================================
---- gdb-7.1.90.20100711.orig/bfd/elf.c 2010-05-18 05:31:05.000000000 +0200
-+++ gdb-7.1.90.20100711/bfd/elf.c      2010-07-12 22:51:17.000000000 +0200
-@@ -8582,13 +8582,12 @@ elfcore_write_note (bfd *abfd,
+--- gdb-7.2.50.20110320.orig/bfd/elf.c 2011-03-20 15:17:42.000000000 +0100
++++ gdb-7.2.50.20110320/bfd/elf.c      2011-03-20 15:24:02.000000000 +0100
+@@ -8814,13 +8814,12 @@ elfcore_write_note (bfd *abfd,
    return buf;
  }
  
@@ -34,7 +34,7 @@ Index: gdb-7.1.90.20100711/bfd/elf.c
  {
    const char *note_name = "CORE";
    const struct elf_backend_data *bed = get_elf_backend_data (abfd);
-@@ -8596,48 +8595,55 @@ elfcore_write_prpsinfo (bfd  *abfd,
+@@ -8828,48 +8827,55 @@ elfcore_write_prpsinfo (bfd  *abfd,
    if (bed->elf_backend_write_core_note != NULL)
      {
        char *ret;
@@ -109,11 +109,11 @@ Index: gdb-7.1.90.20100711/bfd/elf.c
  
  #if defined (HAVE_PRSTATUS_T)
  char *
-Index: gdb-7.1.90.20100711/gdb/linux-nat.c
+Index: gdb-7.2.50.20110320/gdb/linux-nat.c
 ===================================================================
---- gdb-7.1.90.20100711.orig/gdb/linux-nat.c   2010-07-12 23:05:22.000000000 +0200
-+++ gdb-7.1.90.20100711/gdb/linux-nat.c        2010-07-12 22:57:34.000000000 +0200
-@@ -4466,6 +4466,131 @@ linux_spu_make_corefile_notes (bfd *obfd
+--- gdb-7.2.50.20110320.orig/gdb/linux-nat.c   2011-03-20 15:17:46.000000000 +0100
++++ gdb-7.2.50.20110320/gdb/linux-nat.c        2011-03-20 15:25:36.000000000 +0100
+@@ -4603,6 +4603,131 @@ linux_spu_make_corefile_notes (bfd *obfd
    return args.note_data;
  }
  
@@ -245,11 +245,11 @@ Index: gdb-7.1.90.20100711/gdb/linux-nat.c
  /* Fills the "to_make_corefile_note" target vector.  Builds the note
     section for a corefile, and returns it in a malloc buffer.  */
  
-@@ -4484,26 +4609,11 @@ linux_nat_make_corefile_notes (bfd *obfd
+@@ -4621,26 +4746,11 @@ linux_nat_make_corefile_notes (bfd *obfd
  
    if (get_exec_file (0))
      {
--      strncpy (fname, strrchr (get_exec_file (0), '/') + 1, sizeof (fname));
+-      strncpy (fname, lbasename (get_exec_file (0)), sizeof (fname));
 -      strncpy (psargs, get_exec_file (0), sizeof (psargs));
 -      if (get_inferior_args ())
 -      {
@@ -275,11 +275,11 @@ Index: gdb-7.1.90.20100711/gdb/linux-nat.c
      }
  
    /* Dump information for threads.  */
-Index: gdb-7.1.90.20100711/gdb/procfs.c
+Index: gdb-7.2.50.20110320/gdb/procfs.c
 ===================================================================
---- gdb-7.1.90.20100711.orig/gdb/procfs.c      2010-07-07 18:15:16.000000000 +0200
-+++ gdb-7.1.90.20100711/gdb/procfs.c   2010-07-12 23:05:23.000000000 +0200
-@@ -5770,6 +5770,7 @@ procfs_make_note_section (bfd *obfd, int
+--- gdb-7.2.50.20110320.orig/gdb/procfs.c      2011-03-09 13:48:55.000000000 +0100
++++ gdb-7.2.50.20110320/gdb/procfs.c   2011-03-20 15:24:02.000000000 +0100
+@@ -5752,6 +5752,7 @@ procfs_make_note_section (bfd *obfd, int
    note_data = (char *) elfcore_write_prpsinfo (obfd,
                                               note_data,
                                               note_size,
This page took 0.038294 seconds and 4 git commands to generate.