Commit Graph

19 Commits

Author SHA1 Message Date
Dave Anderson
57eaba59bf If a line number request for a module text address initially fails,
force the embedded gdb module to complete its two-stage strategy
used for reading debuginfo symbol tables from module object files,
and then retry the line number extraction.  This automatically does
what the "mod -r" or "crash --readnow" options accomplish.
(anderson@redhat.com)
2017-11-08 14:22:16 -05:00
Dave Anderson
c27dabf7f9 Removed -Werror from the bfd and opcode library builds.
(anderson@redhat.com)
2017-02-21 11:17:13 -05:00
Dave Anderson
5e6fbde738 Enhancement to determine structure member data if the member is
contained within an anonymous structure or union.  Without the patch,
it is necessary to parse the output of a discrete gdb "printf"
command to determine the offset of such a structure member.
(Alexandr_Terekhov@epam.com)
2016-08-25 14:26:58 -04:00
Dave Anderson
5649088bcc Fix for a "[-Werror=misleading-indentation]" compiler warning that
is generated by gdb-7.6/bfd/elf64-s390.c when building S390X in a
Fedora Rawhide environment with gcc-6.0.0.
(anderson@redhat.com)
2016-05-05 09:01:35 -04:00
Dave Anderson
7b5be97daa Introduction of the "whatis -r" and "whatis -m" options. The -r
option searches for data structures of a specified size or within a
range of specified sizes.  The -m option searches for data structures
that contain a member of a given type.  If a structure contains
another structure, the members of the embedded structure will also
be subject to the search.  The type string may be a substring of the
data type name.  The output displays the size and name of the data
structure.
(Alexandr_Terekhov@epam.com, anderson@redhat.com)
2016-04-15 16:13:28 -04:00
Dave Anderson
7a0d2c9e12 Fixes for "[-Werror=misleading-indentation]" compiler warnings that
are generated by the following files, when building X86_64 in a
Fedora Rawhide environment with gcc-6.0.0:

  gdb-7.6/gdb/ada-lang.c
  gdb-7.6/gdb/linux-record.c
  gdb-7.6/gdb/inflow.c
  gdb-7.6/gdb/printcmd.c
  gdb-7.6/gdb/c-typeprint.c

Without the patch, warnings in the gdb-7.6/gdb directory are not
treated as errors, and are non-fatal to the build.
(anderson@redhat.com)
2016-02-10 15:50:49 -05:00
Dave Anderson
517a179654 Fix for a "[-Werror=unused-const-variable]" compiler warning that
is generated by "gdb-7.6/opcodes/mips-dis.c" when building with
"make target=MIPS" on an x86_64 host with gcc-6.0.0.  Without the
patch, the warning is treated as an error and the build is aborted.
(anderson@redhat.com)
2016-02-03 11:15:18 -05:00
Dave Anderson
4fdc95c5f9 Fix for a series of "[-Werror=shift-negative-value]" compiler
warnings that are generated by "gdb-7.6/bfd/elf64-ppc.c" and
"gdb-7.6/opcodes/ppc-opc.c" when building with "make target=PPC64"
on an x86_64 host with gcc-6.0.0.  Without the patch, the warnings
are treated as errors and the build is aborted.
(anderson@redhat.com)
2016-02-02 11:50:44 -05:00
Dave Anderson
8df224099b Fix for a "[-Werror=shift-negative-value]" compiler warning that is
generated by "gdb-7.6/opcodes/arm-dis.c" when building crash with
"make target=ARM64" on an x86_64 host with gcc-6.0.0.  Without the
patch, the warning is treated as an error and the build is aborted.
(anderson@redhat.com)
2016-02-02 10:49:06 -05:00
Dave Anderson
835c360273 Fixes for "[-Werror=misleading-indentation]" compiler warnings that
are generated by the following files, when building X86_64 in a
Fedora Rawhide environment with gcc-6.0.0:

  gdb-7.6/bfd/coff-i386.c
  gdb-7.6/bfd/coff-x86_64.c
  kernel.c
  x86_64.c
  lkcd_common.c

Without the patch, the warnings in the bfd library files are treated
as errors, and abort the build.  The three instances in the top-level
crash source code directory are non-fatal.  There are several other
gdb-specific instances that are non-fatal and are not addressed.
(anderson@redhat.com)
2016-02-02 10:15:11 -05:00
Dave Anderson
e980093166 Fix for the "dis" command to support three new x86 instruction
extensions that have been added to the Intel instruction set for
hardware platforms that support them.  The newly-added instructions
"clflushopt", "clwb", and "pcommit" prepend 0x66 as a prefix byte to
the "clflush", "xsaveopt" and "sfence" instructions respectively.
Without the patch:

  "clflushopt" is disassembled as: "data16" followed by "clflush"
  "clwb" is disassembled as: "data16" followed by "xsaveopt"
  "pcommit" is disassembled as: "data16" followed by "sfence"

The "clflushopt" instruction was introduced in Linux 3.15 in the
clflushopt() function.  The "clwb" and "pcommit" instructions were
introduced in Linux 4.1 in the clwb() and pcommit_sfence() functions.
(anderson@redhat.com)
2015-09-21 16:56:32 -04:00
Dave Anderson
2e3d3f20d3 Fix for the "dis" command on architectures with variable-length
instructions.  Without the patch, "dis [-f] <function>" may continue
beyond the end of a function, disassembling the memory that is in
between the target function and the next function.
(anderson@redhat.com)
2015-08-14 10:19:56 -04:00
Dave Anderson
8119552763 Fix for the RSS value displayed by the "ps" command in Linux 2.6.34
and later big-endian machines.  Without the patch, a task's RSS value
will be erroneously calculated by using twice its file pages instead
of adding its file pages with its anonymous pages.
(anderson@redhat.com)
2015-08-05 15:04:25 -04:00
Dave Anderson
88cb8e194f Fix for insecure temporary file usage in _rl_tropen() as reported by
readline library CVE-2014-2524.
(anderson@redhat.com)
2015-03-03 13:48:16 -05:00
Dave Anderson
04073aacfb Introduction of support for the 32-bit MIPS architecture. This
initial support is restricted to 32-bit MIPS kernels that are
configured as little-endian.  With respect to dumpfile types, only
ELF vmcores are recognized.  In addition to building crash as a
32-bit MIPS binary, it is also possible to build crash as an x86
binary on an x86 or x86_64 host so that crash analysis of MIPS
dumpfiles can be performed on an x86 or x86_64 host.  The x86 binary
can be built by entering "make target=MIPS" for the initial build;
subsequent builds with MIPS support can be accomplished by entering
"make" alone.
(rabin@rab.in)
2015-01-13 15:48:47 -05:00
Dave Anderson
ad757cb474 Fix for an ARM64 compilation failure of the embedded gdb file
"aarch-linux-nat.c" in the Fedora fc21 rawhide environment, which
uses glibc-headers-2.19.90-24.fc21.
(anderson@redhat.com)
2014-07-02 14:58:26 -04:00
Dave Anderson
a855bd55e0 Fix for displaying enum values that are greater than 32-bits in
size.  Without the patch, the upper 32-bits are clipped off and
displayed as in integer-sized value.
(anderson@redhat.com)
2014-05-22 13:00:13 -04:00
Dave Anderson
2e6d26effb Fix failure to build from source when compiling the crash utility
with gcc-4.9.  Without the patch, the crash utility build generates
the following error:

  In file included from opncls.c:26:0:
  opncls.c: In function 'bfd_fopen':
  bfd.h:529:65: error: right-hand operand of comma expression has no effect [-Werror=unused-value]
  #define bfd_set_cacheable(abfd,bool) (((abfd)->cacheable = bool), TRUE)
                                                                  ^
  opncls.c:263:5: note: in expansion of macro 'bfd_set_cacheable' bfd_set_cacheable (nbfd, TRUE);

  cc1: all warnings being treated as errors

(anderson@redhat.com, anatol.pomozov@gmail.com)
2014-05-21 14:18:15 -04:00
Dave Anderson
03e3937ec7 Initial commit: crash-7.0.4 2014-01-28 16:46:11 -05:00