Page MenuHomeSolus

Update GDB to 9.1.0

Authored by alecbcs on Apr 30 2020, 1:54 AM.



Updated GDB to 9.1.0 which includes multiple bug fixes and a few new features. Fixes T8936.
Summarized Changelog:

  • Building GDB and GDBserver now requires GNU make >= 3.82.
  • GDB no longer supports debugging the Cell Broadband Engine;
  • Multithreaded symbol loading for higher performance (turned off by default, use 'maint set worker-threads unlimited' to turn this feature on);
  • Command names can now use the '.' character;
  • GDB can now place breakpoints on nested functions and subroutines in Fortran;
  • GDB now shows the Ada task names at more places, e.g. in task switching messages.
  • Styling enhancements to various commands to improve readability.
  • "printf" and "eval" can now print C-style and Ada-style strings without calling functions in the program;
  • DB now has a standard infrastructure to support dash-style command options ('-OPT'). One benefit is that commands that use it can easily support completion of command line arguments. Try "CMD -[TAB]" or "help CMD" to find options supported by a command. Over time, we intend to migrate most commands to this infrastructure.
  • The default version of the MI interpreter is now 3 (-i=mi3);
  • The output of information about multi-location breakpoints (which is syntactically incorrect in MI 2) has changed in MI 3;

The full changelog can be found here.

Test Plan

Tested 9.1.0 by opening multiple compiled C programs, setting break points, and stepping 1 line at a time. Everything functioned as expected.

Diff Detail

R878 gdb
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

alecbcs created this revision.Apr 30 2020, 1:54 AM
alecbcs requested review of this revision.Apr 30 2020, 1:54 AM
JoshStrobl requested changes to this revision.Apr 30 2020, 8:15 PM
JoshStrobl added a subscriber: JoshStrobl.
JoshStrobl added inline comments.

Can just be %make -C build


Why not %make_install -C build/gdb instead of the redundant cd?

This revision now requires changes to proceed.Apr 30 2020, 8:15 PM
alecbcs updated this revision to Diff 21085.May 1 2020, 5:34 AM
alecbcs marked 2 inline comments as done.
  • Replaced build step cds with make flags to look into build directory instead. Thanks Josh!

@JoshStrobl thanks for the comments on removing the redundant cds. I'll remember adding the -C directory flag to the make macros in the future is a much cleaner solution.

JoshStrobl accepted this revision.May 6 2020, 6:09 PM

LGTM, thanks!

This revision is now accepted and ready to land.May 6 2020, 6:09 PM
This revision was automatically updated to reflect the committed changes.