Page MenuHomeFreeBSD

gnu/usr.bin/gdb/libgdb more build warning/bug fixes
Needs ReviewPublic

Authored by on Jul 24 2017, 8:33 PM.
Referenced Files
Unknown Object (File)
Aug 18 2023, 5:28 PM
Unknown Object (File)
Aug 6 2023, 11:17 AM
Unknown Object (File)
Jul 1 2023, 5:52 AM
Unknown Object (File)
Jun 20 2023, 5:00 PM
Unknown Object (File)
May 9 2023, 4:24 AM
Unknown Object (File)
May 2 2023, 9:09 AM
Unknown Object (File)
Apr 9 2023, 6:31 AM
Unknown Object (File)
Mar 3 2023, 4:07 PM



Code changes to fix warnings/bugs during buildtime for the application in the folder gnu/usr.bin/gdb/libgdb

Diff Detail

No Lint Coverage
No Test Coverage
Build Status
Buildable 10641
Build 11045: arc lint + arc unit

Event Timeline

Pre-fix warnings located at:

  1. contrib/gdb/gdb/arch-utils.c
    • warning: warning: passing 'bfd_byte *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign]
      • fix: added the (char*) explicit modifier on lines 58 and 60
  2. contrib/gdb/gdb/ax-gdb.c
    • warning: warning: 20 enumeration values not handled in switch: 'TYPE_CODE_UNDEF', 'TYPE_CODE_PTR', 'TYPE_CODE_INT'... [-Wswitch]
      • fix: added a default case that does nothing to handle the unhandled cases on line 746
  3. contrib/gdb/gdb/breakpoint.c
    • warning: warning: equality comparison with extraneous parentheses [-Wparentheses-equality]
      • fix: removed the extra parentheses on lines 2650 and 2662
    • warning: warning: expression result unused [-Wunused-value]
      • fix: removed the unused variable expression on line 5546

In-tree GDB is now disabled (rS368441) and being removed soon