Commit Graph

107054 Commits

Author SHA1 Message Date
GDB Administrator
2e68dcbe8f Automatic date update in version.in 2021-10-22 00:00:32 +00:00
Tom de Vries
cfd85eb3ef [gdb/tui] Fix breakpoint display functionality
In commit 81e6b8eb20 "Make tui-winsource not use breakpoint_chain", a loop
body was transformed into a lambda function body:
...
-      for (bp = breakpoint_chain;
-           bp != NULL;
-           bp = bp->next)
+      iterate_over_breakpoints ([&] (breakpoint *bp) -> bool
...
and consequently:
- a continue was replaced by a return, and
- a final return was added.

Then in commit 240edef62f "gdb: remove iterate_over_breakpoints function", we
transformed back to a loop body:
...
-      iterate_over_breakpoints ([&] (breakpoint *bp) -> bool
+      for (breakpoint *bp : all_breakpoints ())
...
but without reverting the changes that introduced the two returns.

Consequently, breakpoints no longer show up in the tui source window.

Fix this by reverting the changes that introduced the two returns.

Build on x86_64-linux, tested with all .exp test-cases that contain
tuiterm_env.

Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=28483

gdb/ChangeLog:

2021-10-22  Tom de Vries  <tdevries@suse.de>

	PR tui/28483
	* tui/tui-winsource.c (tui_source_window_base::update_breakpoint_info):
	Fix returns in loop body.

gdb/testsuite/ChangeLog:

2021-10-22  Tom de Vries  <tdevries@suse.de>

	PR tui/28483
	* gdb.tui/break.exp: New file.
2021-10-22 00:28:14 +02:00
GDB Administrator
255f124ebf Automatic date update in version.in 2021-10-21 00:00:34 +00:00
GDB Administrator
45ac9b3304 Automatic date update in version.in 2021-10-20 00:00:24 +00:00
GDB Administrator
5b76f7b82a Automatic date update in version.in 2021-10-19 00:00:40 +00:00
GDB Administrator
87e0dc2d33 Automatic date update in version.in 2021-10-18 00:00:26 +00:00
GDB Administrator
1c1dcae053 Automatic date update in version.in 2021-10-17 00:00:30 +00:00
GDB Administrator
81ec5585c4 Automatic date update in version.in 2021-10-16 00:00:26 +00:00
GDB Administrator
b7bbf079cb Automatic date update in version.in 2021-10-15 00:00:23 +00:00
GDB Administrator
02b2935bac Automatic date update in version.in 2021-10-14 00:00:26 +00:00
GDB Administrator
d94297b3f4 Automatic date update in version.in 2021-10-13 00:00:19 +00:00
GDB Administrator
71533ee68d Automatic date update in version.in 2021-10-12 00:00:27 +00:00
GDB Administrator
08b9a7669f Automatic date update in version.in 2021-10-11 00:00:30 +00:00
GDB Administrator
7ac26e5532 Automatic date update in version.in 2021-10-10 00:00:32 +00:00
GDB Administrator
088463f10f Automatic date update in version.in 2021-10-09 00:00:32 +00:00
GDB Administrator
77155dc2c1 Automatic date update in version.in 2021-10-08 00:00:25 +00:00
GDB Administrator
a7898ff640 Automatic date update in version.in 2021-10-07 00:00:20 +00:00
GDB Administrator
2fa5031035 Automatic date update in version.in 2021-10-06 00:00:25 +00:00
GDB Administrator
61c4e60495 Automatic date update in version.in 2021-10-05 00:00:20 +00:00
Tom de Vries
9b4d030ed5 [gdb/build] Add CXX_DIALECT to CXX
Say we use a gcc version that (while supporting c++11) does not support c++11
by default, and needs an -std setting to enable it.

If gdb would use the default AX_CXX_COMPILE_STDCXX from autoconf-archive, then
we'd have:
...
CXX="g++ -std=gnu++11"
...

That mechanism however has the following problem (quoting from commit
0bcda68539):
...
the top level Makefile passes CXX down to subdirs, and that overrides whatever
gdb/Makefile may set CXX to.  The result would be that a make invocation from
the build/gdb/ directory would use "g++ -std=gnu++11" as expected, while a
make invocation at the top level would not.
...

Commit 0bcda68539 fixes this by using a custom AX_CXX_COMPILE_STDCXX which
does:
...
CXX=g++
CXX_DIALECT=-std=gnu++11
...

The problem reported in PR28318 is that using the custom instead of the
default AX_CXX_COMPILE_STDCXX makes the configure test for std::thread
support fail.

We could simply add $CXX_DIALECT to the test for std::thread support, but
that would have to be repeated for each added c++ support test.

Instead, fix this by doing:
...
CXX="g++ -std=gnu++11"
CXX_DIALECT=-std=gnu++11
...

This is somewhat awkward, since it results in -std=gnu++11 occuring twice in
some situations:
...
$ touch src/gdb/dwarf2/read.c
$ ( cd build/gdb; make V=1 dwarf2/read.o )
g++-4.8 -std=gnu++11 -x c++ -std=gnu++11 ...
...

However, both settings are needed:
 - the switch in CXX for the std::thread tests (and other tests)
 - the switch in CXX_DIALECT so it can be appended in Makefiles, to
   counteract the fact that the top-level Makefile overrides CXX

The code added in gdb/ax_cxx_compile_stdcxx.m4 is copied from the default
AX_CXX_COMPILE_STDCXX from autoconf-archive.

Tested on x86_64-linux.

Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=28318

gdb/ChangeLog:

2021-10-04  Tom de Vries  <tdevries@suse.de>

	PR build/28318
	* ax_cxx_compile_stdcxx.m4: Add CXX_DIALECT to CXX.
	* configure: Regenerate.

gdbserver/ChangeLog:

2021-10-04  Tom de Vries  <tdevries@suse.de>

	PR build/28318
	* configure: Regenerate.

gdbsupport/ChangeLog:

2021-10-04  Tom de Vries  <tdevries@suse.de>

	PR build/28318
	* configure: Regenerate.
2021-10-04 18:56:42 +02:00
GDB Administrator
7061d67445 Automatic date update in version.in 2021-10-04 00:00:21 +00:00
GDB Administrator
2d78340547 Automatic date update in version.in 2021-10-03 00:00:26 +00:00
GDB Administrator
d3784526c2 Automatic date update in version.in 2021-10-02 00:00:24 +00:00
GDB Administrator
acb52ed980 Automatic date update in version.in 2021-10-01 00:00:26 +00:00
GDB Administrator
cce80da09d Automatic date update in version.in 2021-09-30 00:00:21 +00:00
GDB Administrator
30be4ac09a Automatic date update in version.in 2021-09-29 00:00:28 +00:00
GDB Administrator
b1efafb912 Automatic date update in version.in 2021-09-28 00:00:19 +00:00
GDB Administrator
96609cb359 Automatic date update in version.in 2021-09-27 00:00:21 +00:00
GDB Administrator
aa20be8d05 Automatic date update in version.in 2021-09-26 00:00:17 +00:00
GDB Administrator
fc0ff94085 Automatic date update in version.in 2021-09-25 00:00:34 +00:00
GDB Administrator
2cbc1315ac Automatic date update in version.in 2021-09-24 00:00:26 +00:00
GDB Administrator
957b1d8f2f Automatic date update in version.in 2021-09-23 00:00:20 +00:00
GDB Administrator
28e12bc76d Automatic date update in version.in 2021-09-22 00:00:21 +00:00
GDB Administrator
c5de623fa3 Automatic date update in version.in 2021-09-21 00:00:28 +00:00
GDB Administrator
a4ec45d1bf Automatic date update in version.in 2021-09-20 00:00:29 +00:00
GDB Administrator
b588e7944b Automatic date update in version.in 2021-09-19 00:00:32 +00:00
GDB Administrator
85bcf07db6 Automatic date update in version.in 2021-09-18 00:00:19 +00:00
GDB Administrator
3d3a078e98 Automatic date update in version.in 2021-09-17 00:00:20 +00:00
GDB Administrator
aeeddd7146 Automatic date update in version.in 2021-09-16 00:00:36 +00:00
GDB Administrator
be34cc2df4 Automatic date update in version.in 2021-09-15 00:00:20 +00:00
GDB Administrator
5bca320a3d Automatic date update in version.in 2021-09-14 00:00:31 +00:00
Joel Brobecker
824d17dbdb Bump GDB version number to 11.1.90.DATE-git.
gdb/ChangeLog:

	* version.in: Set GDB version number to 11.1.90.DATE-git.

gdb/testsuite/ChangeLog:

	* gdb.base/default.exp: Change $_gdb_minor to 2.
2021-09-12 18:54:34 -07:00
Joel Brobecker
8cdd8568bf Document the GDB 11.1 release in gdb/ChangeLog
gdb/ChangeLog:

	GDB 11.1 released.
2021-09-12 18:41:19 -07:00
Joel Brobecker
c599303f92 Set GDB version number to 11.1.
gdb/ChangeLog:

	* version.in: Set GDB version number to 11.1.
gdb-11.1-release
2021-09-12 18:32:10 -07:00
GDB Administrator
73a2711e86 Automatic date update in version.in 2021-09-13 00:00:33 +00:00
GDB Administrator
23b81cc63e Automatic date update in version.in 2021-09-12 00:00:16 +00:00
GDB Administrator
0c177cbe0a Automatic date update in version.in 2021-09-11 00:00:19 +00:00
Tom de Vries
7883d1e157 [gdb/testsuite] Handle unrecognized command line option in gdb_compile_test
When running the gdb testsuite with gnatmake-4.8, I get many fails of the
following form:
...
gcc: error: unrecognized command line option '-fgnat-encodings=all'^M
gnatmake: "gdb.ada/O2_float_param/foo.adb" compilation error^M
compiler exited with status 1
compilation failed: gcc ... gdb.ada/O2_float_param/foo.adb
gcc: error: unrecognized command line option '-fgnat-encodings=all'
gnatmake: "gdb.ada/O2_float_param/foo.adb" compilation error
FAIL: gdb.ada/O2_float_param.exp: scenario=all: compilation foo.adb
...

Fix this by marking the test unsupported instead, such that we have:
...
UNSUPPORTED: gdb.ada/O2_float_param.exp: scenario=all: compilation foo.adb \
  (unsupported option '-fgnat-encodings=all')
...

Tested on x86_64-linux.

gdb/testsuite/ChangeLog:

2021-09-10  Tom de Vries  <tdevries@suse.de>

	* lib/gdb.exp (gdb_compile_test): Handle unrecognized command line
	option.
2021-09-10 18:36:36 +02:00
GDB Administrator
55fc911ad6 Automatic date update in version.in 2021-09-10 00:00:19 +00:00
Tom Tromey
b06653b60a Add ChangeLog entry for previous patch
I forgot to 'git commit' the ChangeLog for the previous patch.

2021-09-08  Tom Tromey  <tom@tromey.com>

	* dwarf2/read.h (dwarf2_per_objfile::resize_symtabs): Remove.
	* dwarf2/read.c (all_comp_units_iterator, all_comp_units_range):
	New classes.
	(dwarf2_per_objfile::symtab_set_p)
	(dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
	Adjust to resizeable vectors.
	(dwarf2_gdb_index::expand_symtabs_matching)
	(dwarf2_base_index_functions::map_symbol_filenames)
	(dwarf2_debug_names_index::expand_symtabs_matching): Use
	all_comp_units_range.
	(dwarf2_initialize_objfile, dwarf2_build_psymtabs)
	(add_type_unit): Don't call resize_symtabs.
2021-09-09 09:58:12 -06:00