FreeBSD Bugzilla – Attachment 172379 Details for
Bug 210798
devel/gdb: Uninitialized variables found presenting possible security issues or bugs
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Fixing some warning
D-devel-gdb.diff (text/plain), 3.65 KB, created by
luca.pizzamiglio
on 2016-07-11 13:37:05 UTC
(
hide
)
Description:
Fixing some warning
Filename:
MIME Type:
Creator:
luca.pizzamiglio
Created:
2016-07-11 13:37:05 UTC
Size:
3.65 KB
patch
obsolete
>diff --git devel/gdb/files/kgdb/fbsd-kvm.c devel/gdb/files/kgdb/fbsd-kvm.c >index 3ef3f9c..41e2563 100644 >--- devel/gdb/files/kgdb/fbsd-kvm.c >+++ devel/gdb/files/kgdb/fbsd-kvm.c >@@ -198,7 +198,9 @@ fbsd_kernel_osabi_sniffer(bfd *abfd) > return (GDB_OSABI_UNKNOWN); > } > >+#ifndef INKERNEL > #define INKERNEL(x) ((x) >= kernstart) >+#endif > > #ifdef HAVE_KVM_OPEN2 > static int >diff --git devel/gdb/files/patch-fixes devel/gdb/files/patch-fixes >new file mode 100644 >index 0000000..ce19e23 >--- /dev/null >+++ devel/gdb/files/patch-fixes >@@ -0,0 +1,21 @@ >+--- gdb/compile/compile-loc2c.c.orig 2016-07-05 12:30:44.811467295 +0200 >++++ gdb/compile/compile-loc2c.c 2016-07-05 12:38:46.432434206 +0200 >+@@ -670,7 +670,7 @@ >+ enum dwarf_location_atom op = (enum dwarf_location_atom) *op_ptr; >+ uint64_t uoffset, reg; >+ int64_t offset; >+- >++ uoffset = 0; >+ print_spaces (indent - 2, stream); >+ if (info[op_ptr - base].label) >+ { >+--- gdb/rs6000-tdep.c.orig 2016-07-05 12:51:29.068382909 +0200 >++++ gdb/rs6000-tdep.c 2016-07-05 12:56:01.497362570 +0200 >+@@ -4546,6 +4546,7 @@ >+ || at_dcsz == 0) >+ at_dcsz = 128; /* Assume 128-byte cache line size (POWER8) */ >+ >++ ra = 0; >+ if (PPC_RA (insn) != 0) >+ regcache_raw_read_unsigned (regcache, >+ tdep->ppc_gp0_regnum + PPC_RA (insn), &ra); >diff --git devel/gdb/files/patch-gdb-configure devel/gdb/files/patch-gdb-configure >index 85e0aea..601dba7 100644 >--- devel/gdb/files/patch-gdb-configure >+++ devel/gdb/files/patch-gdb-configure >@@ -1,5 +1,14 @@ >---- gdb/configure.orig 2016-03-07 10:33:02.757803766 +0100 >-+++ gdb/configure 2016-03-07 10:32:39.480804873 +0100 >+--- gdb/configure.orig 2016-07-05 15:20:23.789764537 +0200 >++++ gdb/configure 2016-07-05 15:27:46.079735189 +0200 >+@@ -14287,7 +14347,7 @@ >+ >+ # These options work in either C or C++ modes. >+ build_warnings="-Wall -Wpointer-arith \ >+--Wno-unused -Wunused-value -Wunused-function \ >++-Wno-unused -Wunused-value -Wno-unused-function \ >+ -Wno-switch -Wno-char-subscripts \ >+ -Wempty-body" >+ > @@ -14297,8 +14297,7 @@ > -Wno-narrowing" > else >diff --git devel/gdb/files/patch-nowarning devel/gdb/files/patch-nowarning >new file mode 100644 >index 0000000..950a49d >--- /dev/null >+++ devel/gdb/files/patch-nowarning >@@ -0,0 +1,42 @@ >+--- gdb/arm-tdep.c.orig 2016-07-08 15:42:17.131392993 +0200 >++++ gdb/arm-tdep.c 2016-07-08 15:44:10.506386463 +0200 >+@@ -9880,7 +9880,7 @@ >+ && !INSN_RECORDED(arm_insn_r)) >+ { >+ /* Handle MLA(S) and MUL(S). */ >+- if (0 <= insn_op1 && 3 >= insn_op1) >++ if (3 >= insn_op1) >+ { >+ record_buf[0] = bits (arm_insn_r->arm_insn, 12, 15); >+ record_buf[1] = ARM_PS_REGNUM; >+--- gdb/cris-tdep.c.orig 2016-07-08 15:45:26.575379589 +0200 >++++ gdb/cris-tdep.c 2016-07-08 15:47:07.849372792 +0200 >+@@ -1441,7 +1441,7 @@ >+ /* Indeterminate/obsolete. */ >+ return 0; >+ case cris_ver_v0_3: >+- return (version >= 0 && version <= 3); >++ return (version <= 3); >+ case cris_ver_v3p: >+ return (version >= 3); >+ case cris_ver_v8: >+@@ -1449,7 +1449,7 @@ >+ case cris_ver_v8p: >+ return (version >= 8); >+ case cris_ver_v0_10: >+- return (version >= 0 && version <= 10); >++ return (version <= 10); >+ case cris_ver_v3_10: >+ return (version >= 3 && version <= 10); >+ case cris_ver_v8_10: >+--- gdb/h8300-tdep.c.orig 2016-07-08 15:48:33.854366723 +0200 >++++ gdb/h8300-tdep.c 2016-07-08 15:48:49.681365685 +0200 >+@@ -1053,7 +1053,7 @@ >+ fprintf_filtered (file, "u> "); >+ if ((C | Z) == 1) >+ fprintf_filtered (file, "u<= "); >+- if ((C == 0)) >++ if (C == 0) >+ fprintf_filtered (file, "u>= "); >+ if (C == 1) >+ fprintf_filtered (file, "u< ");
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 210798
: 172379