This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

New ARI warning Tue Apr 18 02:19:37 UTC 2017 in gdb-8.0-branch


16c16
< gdb/alphanbsd-tdep.c:246: obsolete: get_frame_base: Replace get_frame_base with get_frame_id, get_frame_base_address, get_frame_locals_address, or get_frame_args_address.
gdb/alphanbsd-tdep.c:246:  return get_frame_base (get_next_frame (frame));
> gdb/alpha-nbsd-tdep.c:243: obsolete: get_frame_base: Replace get_frame_base with get_frame_id, get_frame_base_address, get_frame_locals_address, or get_frame_args_address.
gdb/alpha-nbsd-tdep.c:243:  return get_frame_base (get_next_frame (frame));
30,31c30
< gdb/armnbsd-nat.c:499: deprecated: deprecated add_core_fns: Do not use deprecated add_core_fns, see declaration for details
gdb/armnbsd-nat.c:499:  deprecated_add_core_fns (&arm_netbsd_core_fns);
< gdb/armnbsd-nat.c:500: deprecated: deprecated add_core_fns: Do not use deprecated add_core_fns, see declaration for details
gdb/armnbsd-nat.c:500:  deprecated_add_core_fns (&arm_netbsd_elfcore_fns);
> gdb/arm-nbsd-nat.c:471: deprecated: deprecated add_core_fns: Do not use deprecated add_core_fns, see declaration for details
gdb/arm-nbsd-nat.c:471:  deprecated_add_core_fns (&arm_netbsd_elfcore_fns);
32a32
> gdb/breakpoint.c:11037: code: sprintf_vma: Do not use sprintf_vma, instead use paddress or phex_nz
gdb/breakpoint.c:11037:  sprintf_vma (tmp, w->hw_wp_mask);
86a87
> gdb/common/common-utils.c:170: regression: vsprintf: Do not use vsprintf(), instead use xstrvprintf
gdb/common/common-utils.c:170:  vsprintf (&str[0], fmt, vp);
87a89,90
> gdb/common/gdb_optional.h:78: code: OP eol: Do not use &&, or || at the end of a line
gdb/common/gdb_optional.h:78:  T &&operator* () &&
> gdb/common/gdb_optional.h:81: code: OP eol: Do not use &&, or || at the end of a line
gdb/common/gdb_optional.h:81:  constexpr const T &&operator* () const &&
89a93
> gdb/common/underlying.h:27: code: function call in first column: Function name in first column should be restricted to function implementation
gdb/common/underlying.h:27:to_underlying (E val) noexcept
143a148
> gdb/dwarf2-frame.c:1549: obsolete: get_frame_base: Replace get_frame_base with get_frame_id, get_frame_base_address, get_frame_locals_address, or get_frame_args_address.
gdb/dwarf2-frame.c:1549:  return get_frame_base (this_frame);
145a151,152
> gdb/dwarf2loc.c:668: obsolete: get_frame_base: Replace get_frame_base with get_frame_id, get_frame_base_address, get_frame_locals_address, or get_frame_args_address.
gdb/dwarf2loc.c:668:  void get_frame_base (const gdb_byte **start, size_t * length) OVERRIDE
> gdb/dwarf2loc.c:2782: obsolete: get_frame_base: Replace get_frame_base with get_frame_id, get_frame_base_address, get_frame_locals_address, or get_frame_args_address.
gdb/dwarf2loc.c:2782:  void get_frame_base (const gdb_byte **start, size_t *length) OVERRIDE
168d174
< gdb/frame.c:1427: deprecated: deprecated frame_register_read: Do not use deprecated frame_register_read, see declaration for details
gdb/frame.c:1427:	  deprecated_frame_register_read (frame, regnum, buf);
214a221,223
> gdb/hppa-nbsd-nat.c:36: code: OP eol: Do not use &&, or || at the end of a line
gdb/hppa-nbsd-nat.c:36:  return ((regnum >= HPPA_R0_REGNUM && regnum <= HPPA_R31_REGNUM) ||
> gdb/hppa-nbsd-nat.c:37: code: OP eol: Do not use &&, or || at the end of a line
gdb/hppa-nbsd-nat.c:37:          (regnum >= HPPA_SAR_REGNUM && regnum <= HPPA_PCSQ_TAIL_REGNUM) ||
> gdb/hppa-nbsd-nat.c:38: code: OP eol: Do not use &&, or || at the end of a line
gdb/hppa-nbsd-nat.c:38:          regnum == HPPA_IPSW_REGNUM ||
218,220d226
< gdb/hppanbsd-nat.c:36: code: OP eol: Do not use &&, or || at the end of a line
gdb/hppanbsd-nat.c:36:  return ((regnum >= HPPA_R0_REGNUM && regnum <= HPPA_R31_REGNUM) ||
< gdb/hppanbsd-nat.c:37: code: OP eol: Do not use &&, or || at the end of a line
gdb/hppanbsd-nat.c:37:          (regnum >= HPPA_SAR_REGNUM && regnum <= HPPA_PCSQ_TAIL_REGNUM) ||
< gdb/hppanbsd-nat.c:38: code: OP eol: Do not use &&, or || at the end of a line
gdb/hppanbsd-nat.c:38:          regnum == HPPA_IPSW_REGNUM ||
281,288d286
< gdb/jv-exp.y:305: code: sprintf: Do not use sprintf, instead use xsnprintf or xstrprintf
gdb/jv-exp.y:305:		      sprintf (buf, ',
< gdb/jv-exp.y:1161: code: OP eol: Do not use &&, or || at the end of a line
gdb/jv-exp.y:1161:  if (((tokstart[0] >= '.' && tokstart[0] < '.' + input_radix - 10) ||
< gdb/jv-exp.y:1226: code: OP eol: Do not use &&, or || at the end of a line
gdb/jv-exp.y:1226:	  if (innermost_block == 0 ||
< gdb/jv-exp.y:1241: code: OP eol: Do not use &&, or || at the end of a line
gdb/jv-exp.y:1241:      if (innermost_block == 0 || 
< gdb/jv-lang.c:326: deprecated: deprecated set_value_type: Do not use deprecated set_value_type, see declaration for details
gdb/jv-lang.c:326:      deprecated_set_value_type (temp,
< gdb/jv-lang.c:963: deprecated: deprecated set_value_type: Do not use deprecated set_value_type, see declaration for details
gdb/jv-lang.c:963:	  deprecated_set_value_type (temp, value_type (clas));
< gdb/jv-valprint.c:75: code: if assignment: An IF statement's expression contains an assignment (the GNU coding standard discourages this)
gdb/jv-valprint.c:75:  if (TYPE_CODE (type) == TYPE_CODE_STRUCT && name != NULL      && (i = strlen (name), name[i - 1] == '.'))
< gdb/language.c:413: code: OP eol: Do not use &&, or || at the end of a line
gdb/language.c:413:  return TYPE_CODE (type) == TYPE_CODE_PTR ||
304,306d301
< gdb/m32c-tdep.c:2452: code: OP eol: Do not use &&, or || at the end of a line
gdb/m32c-tdep.c:2452:  gdb_assert (TYPE_CODE (type) == TYPE_CODE_PTR ||
< gdb/m32c-tdep.c:2532: code: OP eol: Do not use &&, or || at the end of a line
gdb/m32c-tdep.c:2532:  gdb_assert (TYPE_CODE (type) == TYPE_CODE_PTR ||
< gdb/m32r-linux-nat.c:227: code: if assignment: An IF statement's expression contains an assignment (the GNU coding standard discourages this)
gdb/m32r-linux-nat.c:227:  if ((tid = ptid_get_lwp (inferior_ptid)) == 0)
326d320
< gdb/mi/mi-main.c:2462: code: OP eol: Do not use &&, or || at the end of a line
gdb/mi/mi-main.c:2462:  if (delta.tv_sec >= update_threshold.tv_sec &&
349d342
< gdb/mt-tdep.c:737: deprecated: deprecated frame_register_read: Do not use deprecated frame_register_read, see declaration for details
gdb/mt-tdep.c:737:	      deprecated_frame_register_read (frame, MT_EXMAC_REGNUM, buf);
369d361
< gdb/nat/linux-osdata.c:588: code: sprintf: Do not use sprintf, instead use xsnprintf or xstrprintf
gdb/nat/linux-osdata.c:588:	      sprintf (procentry, ', dp->d_name);
372d363
< gdb/nat/linux-osdata.c:800: code: sprintf: Do not use sprintf, instead use xsnprintf or xstrprintf
gdb/nat/linux-osdata.c:800:	      sprintf (procentry, ', dp->d_name);
476a468,471
> gdb/python/python-internal.h:252: code: editCase function: Function name starts lower case but has uppercased letters.
gdb/python/python-internal.h:252:gdb_PyErr_NewException (const char *name, PyObject *base, PyObject *dict)
> gdb/python/python-internal.h:264: code: editCase function: Function name starts lower case but has uppercased letters.
gdb/python/python-internal.h:264:gdb_PySys_GetObject (const char *name)
> gdb/python/python-internal.h:282: code: editCase function: Function name starts lower case but has uppercased letters.
gdb/python/python-internal.h:282:gdb_PySys_SetPath (const GDB_PYSYS_SETPATH_CHAR *path)
> gdb/python/python-internal.h:332: code: editCase function: Function name starts lower case but has uppercased letters.
gdb/python/python-internal.h:332:gdb_PyArg_ParseTupleAndKeywords (PyObject *args, PyObject *kw,				 const char *format, const char **keywords, ...)
497a493,495
> gdb/remote.c:12298: code: sprintf_vma: Do not use sprintf_vma, instead use paddress or phex_nz
gdb/remote.c:12298:  sprintf_vma (addrbuf, tpaddr);
> gdb/remote.c:12502: code: sprintf_vma: Do not use sprintf_vma, instead use paddress or phex_nz
gdb/remote.c:12502:  sprintf_vma (addr_buf, location->address);
> gdb/remote.c:12520: code: sprintf_vma: Do not use sprintf_vma, instead use paddress or phex_nz
gdb/remote.c:12520:  sprintf_vma (addr_buf, location->address);
498a497,498
> gdb/remote.c:12559: code: sprintf_vma: Do not use sprintf_vma, instead use paddress or phex_nz
gdb/remote.c:12559:      sprintf_vma (tmp1, vma);
> gdb/remote.c:12560: code: sprintf_vma: Do not use sprintf_vma, instead use paddress or phex_nz
gdb/remote.c:12560:      sprintf_vma (tmp2, vma + size);
554,555d553
< gdb/ser-unix.c:543: deprecated: deprecated ui_loop_hook: Do not use deprecated ui_loop_hook, see declaration for details
gdb/ser-unix.c:543:      if (deprecated_ui_loop_hook)
< gdb/ser-unix.c:544: deprecated: deprecated ui_loop_hook: Do not use deprecated ui_loop_hook, see declaration for details
gdb/ser-unix.c:544:	detach = deprecated_ui_loop_hook (0);
561d558
< gdb/sh64-tdep.c:2039: deprecated: deprecated frame_register_read: Do not use deprecated frame_register_read, see declaration for details
gdb/sh64-tdep.c:2039:  if (!deprecated_frame_register_read (frame, regnum, raw_buffer))
603a601
> gdb/tilegx-tdep.c:452: code: long long: Do not use 'long long', instead use LONGEST
gdb/tilegx-tdep.c:452:	  long long *operands = this_insn->operand_values;
670a669,673
> gdb/unittests/ptid-selftests.c:32: code: function call in first column: Function name in first column should be restricted to function implementation
gdb/unittests/ptid-selftests.c:32:static_assert (std::is_pod<ptid_t>::value, ');
> gdb/unittests/ptid-selftests.c:107: code: function call in first column: Function name in first column should be restricted to function implementation
gdb/unittests/ptid-selftests.c:107:static_assert (pid != lwp, ');
> gdb/unittests/ptid-selftests.c:108: code: function call in first column: Function name in first column should be restricted to function implementation
gdb/unittests/ptid-selftests.c:108:static_assert (lwp != tid, ');
> gdb/unittests/ptid-selftests.c:109: code: function call in first column: Function name in first column should be restricted to function implementation
gdb/unittests/ptid-selftests.c:109:static_assert (both != lwp, ');
> gdb/unittests/ptid-selftests.c:110: code: function call in first column: Function name in first column should be restricted to function implementation
gdb/unittests/ptid-selftests.c:110:static_assert (both != tid, ');
702c705
< gdb/value.c:1583: deprecated: deprecated value_frame_id_hack: Do not use deprecated value_frame_id_hack, see declaration for details
gdb/value.c:1583:deprecated_value_frame_id_hack (struct value *value)
> gdb/value.c:1576: deprecated: deprecated value_next_frame_id_hack: Do not use deprecated value_next_frame_id_hack, see declaration for details
gdb/value.c:1576:deprecated_value_next_frame_id_hack (struct value *value)
713,714c716,717
< gdb/value.h:439: deprecated: deprecated value_frame_id_hack: Do not use deprecated value_frame_id_hack, see declaration for details
gdb/value.h:439:extern struct frame_id *deprecated_value_frame_id_hack (struct value *);
< gdb/value.h:440: deprecated: deprecated value_frame_id_hack: Do not use deprecated value_frame_id_hack, see declaration for details
gdb/value.h:440:#define VALUE_FRAME_ID(val) (*deprecated_value_frame_id_hack (val))
> gdb/value.h:441: deprecated: deprecated value_next_frame_id_hack: Do not use deprecated value_next_frame_id_hack, see declaration for details
gdb/value.h:441:extern struct frame_id *deprecated_value_next_frame_id_hack (struct value *);
> gdb/value.h:442: deprecated: deprecated value_next_frame_id_hack: Do not use deprecated value_next_frame_id_hack, see declaration for details
gdb/value.h:442:#define VALUE_NEXT_FRAME_ID(val) (*deprecated_value_next_frame_id_hack (val))
724a728
> gdb/windows-nat.c:2605: regression: strerror: Do not use strerror(), instead use safe_strerror()
gdb/windows-nat.c:2605:	warning (_('), strerror (errno));


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]