gdb/dwarf: Introduce dwarf2_per_cu_int_type function
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
11a8b164
AB
12019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
2
3 * dwarf2read.c (dwarf2_per_cu_int_type): New function, takes most
4 of its implementation from...
5 (dwarf2_per_cu_addr_sized_int_type): ...here, which now just calls
6 the new function.
7
5bbd8269
AB
82019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
9
10 * dwarf2read.c (read_subrange_type): Read bit and byte stride and
11 create a range with stride where appropriate.
12 * f-valprint.c: Include 'gdbarch.h'.
13 (f77_print_array_1): Take the stride into account when walking the
14 array. Also convert the stride into addressable units.
15 * gdbtypes.c (create_range_type): Initialise the stride to
16 constant zero.
17 (create_range_type_with_stride): New function, initialise the
18 range as normal, and then setup the stride.
19 (has_static_range): Include the stride here. Also change the
20 return type to bool.
21 (create_array_type_with_stride): Consider the range stride if the
22 array isn't given its own stride.
23 (resolve_dynamic_range): Resolve the stride if needed.
24 * gdbtypes.h (struct range_bounds) <stride>: New member variable.
25 (struct range_bounds) <flag_is_byte_stride>: New member variable.
26 (TYPE_BIT_STRIDE): Define.
27 (TYPE_ARRAY_BIT_STRIDE): Define.
28 (create_range_type_with_stride): Declare.
29 * valarith.c (value_subscripted_rvalue): Take range stride into
30 account when walking the array.
31
82e3b564
TT
322019-12-01 Tom Tromey <tom@tromey.com>
33
34 * tui/tui-win.c (tui_all_windows_info): Treat inactive TUI
35 specially.
36
517d261d
TT
372019-12-01 Tom Tromey <tom@tromey.com>
38
39 * tui/tui-winsource.c (tui_copy_source_line): Don't advance past
40 \0.
41 * unittests/tui-selftests.c: New file.
42 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add tui-selftests.c.
43
484c9b64
TT
442019-12-01 Tom Tromey <tom@tromey.com>
45
46 * tui/tui.c (tui_enable): Call tui_update_variables earlier.
47
a2a7af0c
TT
482019-12-01 Tom Tromey <tom@tromey.com>
49
50 * NEWS: Document new settings.
51 * tui/tui-wingeneral.c (box_win): Apply appropriate border style.
52 * tui/tui-win.c (_initialize_tui_win): Add border style
53 observers.
54 * tui/tui-io.h (tui_apply_style): Declare.
55 * tui/tui-io.c (tui_apply_style): Rename from apply_style. No
56 longer static.
57 (apply_ansi_escape, tui_set_reverse_mode): Update.
58 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
59 Add "skip_intensity" parameter.
60 <changed>: New member.
61 <do_set_value>: Declare.
62 (tui_border_style, tui_active_border_style): Declare.
63 * cli/cli-style.c (tui_border_style, tui_active_border_style): New
64 globals.
65 (cli_style_option): Initialize "changed".
66 (cli_style_option::do_set_value): New function.
67 (cli_style_option::add_setshow_commands): Add "skip_intensity"
68 parameter. Update.
69 (STYLE_ADD_SETSHOW_COMMANDS): Add "SKIP" parameter.
70 (_initialize_cli_style): Update. Create TUI border style
71 commands.
72
d1da6b01
TT
732019-12-01 Tom Tromey <tom@tromey.com>
74
75 * tui/tui-winsource.h (tui_copy_source_line): Add "ndigits"
76 parameter.
77 * tui/tui-winsource.c (tui_copy_source_line): Add "ndigits"
78 parameter.
79 * tui/tui-win.h (compact_source): Declare.
80 * tui/tui-win.c (compact_source): New global.
81 (tui_set_compact_source, tui_show_compact_source): New functions.
82 (_initialize_tui_win): Add "compact-source" setting.
83 * tui/tui-source.c (tui_source_window::set_contents): Handle
84 compact_source setting.
85 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
86 * NEWS: Document new setting.
87
489dbda6
TT
882019-11-30 Tom Tromey <tom@tromey.com>
89
90 * dwarf2read.c (dwarf2_add_field): Include field offset when
91 computing variant part length.
92
bf498525
PW
932019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
94 * NEWS: Mention define-prefix. Tell that command names can now
95 contain a . character.
96
be09caf1
PW
972019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
98
99 * command.h (valid_cmd_char_p): Declare.
100 * cli/cli-decode.c (valid_cmd_char_p): New function factorizing
101 the check of valid command char.
102 (find_command_name_length, valid_user_defined_cmd_name_p): Use
103 valid_cmd_char_p.
104 * cli/cli-script.c (validate_comname): Likewise.
105 * completer.c (gdb_completer_command_word_break_characters):
106 Do not remove . from the word break char, update comments.
107 (complete_line_internal_1): Use valid_cmd_char_p.
108 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
109 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
110
c6ac7fc9
PW
1112019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
112
113 * cli/cli-script.c (do_define_command): Ensure a redefined
114 prefix command is kept as a prefix command.
115 (define_prefix_command): New function.
116 (show_user_1): Report user defined prefixes.
117 (_initialize_cli_script): Create the new 'define-prefix' command.
118 Add completers for 'define' and 'document'.
119 * top.c (execute_command): If command is a user-defined prefix only
120 command, report the list of commands for this prefix command.
121
a992a3b0
TBA
1222019-11-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
123
124 * valops.c (find_oload_champ): Improve debug output.
125
e9194a1a
TBA
1262019-11-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
127
128 * valops.c (find_oload_champ): Print part of debug messages
129 before the badness vector is std::move'd.
130
53a008a6
TT
1312019-11-28 Tom Tromey <tom@tromey.com>
132
133 * value.c (creal_internal_fn): Fix comment.
134
bab05c83
TT
1352019-11-28 Tom Tromey <tom@tromey.com>
136
137 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count,
138 flag_bound_evaluated>: Now unsigned.
139
2522f049
TT
1402019-11-28 Tom Tromey <tom@tromey.com>
141
142 * guile/guile-internal.h (vlscm_scm_from_value_unsafe): Don't
143 declare.
144
38b49e22
MS
1452019-11-28 Mihails Strasuns <mihails.strasuns@intel.com>
146
147 * jit.c (jit_bfd_try_read_symtab): Fix printed function name in the
148 debug output.
149 * jit.c (jit_unregister_code): Add debug print to match
150 `jit_register_code`.
151
35125921
CB
1522019-11-27 Christian Biesinger <cbiesinger@google.com>
153
154 * NEWS: Mention the new multithreaded symbol loading.
155
62e77f56
CB
1562019-11-27 Christian Biesinger <cbiesinger@google.com>
157
158 * maint.c (n_worker_threads): Default to 0.
159 (worker_threads_disabled): New function.
160 * maint.h (worker_threads_disabled): New function.
161 * minsyms.c (minimal_symbol_reader::record_full): Call symbol_set_names
162 here if worker_threads_disabled () is true.
163 (minimal_symbol_reader::install): Skip all threading if
164 worker_threads_disabled () is true.
165
f29d7f6b
CB
1662019-11-27 Christian Biesinger <cbiesinger@google.com>
167
168 * minsyms.c (add_minsym_to_hash_table): Use a previously computed
169 hash code if possible.
170 (add_minsym_to_demangled_hash_table): Likewise.
171 (minimal_symbol_reader::install): Compute the hash codes for msymbol
172 on the background thread.
173 * symtab.h (struct minimal_symbol) <hash_value, demangled_hash_value>:
174 Add these fields.
175
e76b2246
CB
1762019-11-27 Christian Biesinger <cbiesinger@google.com>
177
178 * minsyms.c (minimal_symbol_reader::install): Also compute the hash
179 of the mangled name on the background thread.
180 * symtab.c (symbol_set_names): Allow passing in the hash of the
181 linkage_name.
182 * symtab.h (symbol_set_names): Likewise.
183
8d9a2568
KB
1842019-11-27 Kevin Buettner <kevinb@redhat.com>
185
186 * dwarf2read.c (inherit_abstract_dies): Ensure that delayed
187 physnames are computed for inherited DIEs.
188
fad03f6e
TT
1892019-11-27 Tom Tromey <tromey@adacore.com>
190
191 * dwarf2read.h (struct dwarf2_per_objfile): Remove unnecessary
192 backslashes.
193 * cp-support.c: Remove unnecessary backslashes.
194
43678b0a
CB
1952019-11-27 Christian Biesinger <cbiesinger@google.com>
196
197 * ada-exp.y (write_ambiguous_var): Replace SYMBOL_SET_LINKAGE_NAME
198 with sym->set_linkage_name.
199 * coffread.c (coff_read_enum_type): Likewise.
200 * mdebugread.c (parse_symbol): Likewise.
201 * stabsread.c (patch_block_stabs): Likewise.
202 (define_symbol): Likewise.
203 (read_enum_type): Likewise.
204 (common_block_end): Likewise.
205 * symtab.h (struct general_symbol_info) <set_linkage_name>: New
206 function.
207 (SYMBOL_SET_LINKAGE_NAME): Remove.
208 * xcoffread.c (process_xcoff_symbol): Replace SYMBOL_SET_LINKAGE_NAME
209 with sym->set_linkage_name.
210
db5960b4
AB
2112019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
212
213 * mi/mi-cmds.c (mi_cmds): Add 'symbol-info-modules' entry.
214 * mi/mi-cmds.h (mi_cmd_symbol_info_modules): Declare.
215 * mi/mi-symbol-cmds.c (mi_cmd_symbol_info_modules): New function.
216 * NEWS: Mention new MI command.
217
7dc42066
AB
2182019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
219
220 * mi/mi-cmds.c (mi_cmds): Add '-symbol-info-functions',
221 '-symbol-info-types', and '-symbol-info-variables'.
222 * mi/mi-cmds.h (mi_cmd_symbol_info_functions): Declare.
223 (mi_cmd_symbol_info_types): Declare.
224 (mi_cmd_symbol_info_variables): Declare.
225 * mi/mi-symbol-cmds.c: Add 'source.h' and 'mi-getopt.h' includes.
226 (output_debug_symbol): New function.
227 (output_nondebug_symbol): New function.
228 (mi_symbol_info): New function.
229 (mi_info_functions_or_variables): New function.
230 (mi_cmd_symbol_info_functions): New function.
231 (mi_cmd_symbol_info_types): New function.
232 (mi_cmd_symbol_info_variables): New function.
233 * NEWS: Mention new commands.
234
5f512a7d
AB
2352019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
236
237 * symtab.c (symbol_to_info_string): New function, most content
238 moved from print_symbol_info, but updated to return a std::string.
239 (print_symbol_info): Update to use symbol_to_info_string and print
240 returned string.
241 * symtab.h (symbol_to_info_string): Declare new function.
242
470c0b1c
AB
2432019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
244
245 * python/python.c (gdbpy_rbreak): Convert to using
246 global_symbol_searcher.
247 * symtab.c (file_matches): Convert return type to bool, change
248 file list to std::vector, update header comment.
249 (search_symbols): Rename to...
250 (global_symbol_searcher::search): ...this and update now its
251 a member function of global_symbol_searcher. Take account of the
252 changes to file_matches.
253 (symtab_symbol_info): Convert to using global_symbol_searcher.
254 (rbreak_command): Likewise.
255 (search_module_symbols): Likewise.
256 * symtab.h (enum symbol_search): Update comment.
257 (search_symbols): Remove declaration.
258 (class global_symbol_searcher): New class.
259
57357d9d
TT
2602019-11-26 Tom Tromey <tromey@adacore.com>
261
262 * cp-support.c (_initialize_cp_support): Conditionally initialize
263 gdb_demangle_attempt_core_dump.
264
3ea16160
TT
2652019-11-26 Tom Tromey <tom@tromey.com>
266
267 * python/py-function.c (fnpy_init): Update.
268 * value.h (add_internal_function): Adjust declaration.
269 * value.c (function_destroyer): Remove.
270 (do_add_internal_function): Don't set destroyer or copy name.
271 (add_internal_function): Take unique_xmalloc_ptr<char> for name.
272 Set name_allocated.
273 * python/py-cmd.c (cmdpy_destroyer): Don't free "name".
274 (cmdpy_init): Set name_allocated.
275 * cli/cli-decode.h (struct cmd_list_element) <name_allocated>: New
276 member.
277 (~cmd_list_element): Free "name" if needed.
278
1a6d41c6
TT
2792019-11-26 Tom Tromey <tom@tromey.com>
280
281 * value.h (add_internal_function): Add new overload. Move
282 documentation from value.h.
283 * value.c (do_add_internal_function): New function.
284 (add_internal_function): Use it. Add new overload.
285 (function_destroyer): Don't free doc.
286 * python/py-function.c (fnpy_init): Update.
287
8318f3c3
TT
2882019-11-26 Tom Tromey <tom@tromey.com>
289
290 * python/py-cmd.c (cmdpy_destroyer): Don't free "doc".
291 (cmdpy_init): Set "doc_allocated".
292
4da8c3a8
TT
2932019-11-26 Tom Tromey <tom@tromey.com>
294
295 * gdbsupport/thread-pool.c (thread_pool::set_thread_count): Set
296 name of worker thread.
297 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
298 pthread_setname_np.
299 * configure, config.in: Rebuild.
300
971db5e2
TT
3012019-11-26 Tom Tromey <tom@tromey.com>
302
303 * python/python.c (class gdbpy_gil): New.
304 (struct gdbpy_event): Add constructor, destructor, operator().
305 (gdbpy_post_event): Use run_on_main_thread.
306 (gdbpy_initialize_events): Remove.
307 (do_start_initialization): Update.
308
22138db6
TT
3092019-11-26 Tom Tromey <tom@tromey.com>
310
311 * NEWS: Add entry.
312 * maint.c (_initialize_maint_cmds): Add "worker-threads" maint
313 commands. Call update_thread_pool_size.
314 (update_thread_pool_size, maintenance_set_worker_threads): New
315 functions.
316 (n_worker_threads): New global.
317
d55c9a68
TT
3182019-11-26 Christian Biesinger <cbiesinger@google.com>
319 Tom Tromey <tom@tromey.com>
320
321 * minsyms.c (minimal_symbol_reader::install): Use
322 parallel_for_each.
323 * gdbsupport/parallel-for.h: New file.
324 * Makefile.in (HFILES_NO_SRCDIR): Add gdbsupport/parallel-for.h.
325
a0b57563
CB
3262019-11-26 Christian Biesinger <cbiesinger@google.com>
327 Tom Tromey <tom@tromey.com>
328
329 * gdbsupport/thread-pool.h: New file.
330 * gdbsupport/thread-pool.c: New file.
331 * Makefile.in (COMMON_SFILES): Add thread-pool.c.
332 (HFILES_NO_SRCDIR): Add thread-pool.h.
333
3b3978bc
TT
3342019-11-26 Tom Tromey <tom@tromey.com>
335
336 * event-top.h (thread_local_segv_handler): Declare.
337 * event-top.c (thread_local_segv_handler): New global.
338 (install_handle_sigsegv, handle_sigsegv): New functions.
339 (async_init_signals): Install SIGSEGV handler.
340 * cp-support.c (gdb_demangle_jmp_buf): Change type. Now
341 thread-local.
342 (report_failed_demangle): New function.
343 (gdb_demangle): Make core_dump_allowed atomic. Remove signal
344 handler-setting code, instead use segv_handler. Run warning code
345 on main thread.
346
9411c49e
TT
3472019-11-26 Tom Tromey <tom@tromey.com>
348
349 * run-on-main-thread.c: New file.
350 * run-on-main-thread.h: New file.
351 * unittests/main-thread-selftests.c: New file.
352 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
353 main-thread-selftests.c.
354 (HFILES_NO_SRCDIR): Add run-on-main-thread.h.
355 (COMMON_SFILES): Add run-on-main-thread.c.
356
c3efb965
TT
3572019-11-26 Tom Tromey <tom@tromey.com>
358
359 * main.c (setup_alternate_signal_stack): Remove.
360 (captured_main_1): Use gdb::alternate_signal_stack.
361 * gdbsupport/alt-stack.h: New file.
362
21987b9c
TT
3632019-11-26 Tom Tromey <tom@tromey.com>
364
365 * gdbsupport/signals-state-save-restore.c (original_signal_mask):
366 Remove comment.
367 (save_original_signals_state, restore_original_signals_state): Use
368 gdb_sigmask.
369 * linux-nat.c (block_child_signals, restore_child_signals_mask)
370 (_initialize_linux_nat): Use gdb_sigmask.
371 * guile/guile.c (_initialize_guile): Use block_signals.
372 * Makefile.in (HFILES_NO_SRCDIR): Add gdb-sigmask.h.
373 * gdbsupport/gdb-sigmask.h: New file.
374 * event-top.c (async_sigtstp_handler): Use gdb_sigmask.
375 * cp-support.c (gdb_demangle): Use gdb_sigmask.
376 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
377 pthread_sigmask.
378 * configure, config.in: Rebuild.
379 * gdbsupport/block-signals.h: New file.
380
5e030278
TT
3812019-11-26 Tom Tromey <tom@tromey.com>
382
383 * acinclude.m4: Include ax_pthread.m4.
384 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
385 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
386 (CLIBS): Use PTHREAD_LIBS.
387 (aclocal_m4_deps): Add ax_pthread.m4.
388 * config.in, configure: Rebuild.
389 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for std::thread.
390
5a79c107
TT
3912019-11-26 Tom Tromey <tom@tromey.com>
392
393 * symtab.h (struct minimal_symbol) <name_set>: New member.
394 * minsyms.c (minimal_symbol_reader::record_full): Copy name.
395 Don't call symbol_set_names.
396 (minimal_symbol_reader::install): Call symbol_set_names.
397
aa369509
PW
3982019-11-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
399
400 * python/python.c (gdbpy_enter::~gdbpy_enter): Release GIL after
401 restore_active_ext_lang, as GIL is needed for (indirectly)
402 called PyOS_InterruptOccurred.
403
cadc9cb8
SM
4042019-11-26 Simon Marchi <simon.marchi@efficios.com>
405
406 * sparc-nat.c (sparc_xfer_wcookie): Sync declaration with
407 definition.
408
d04afd58
SM
4092019-11-26 Simon Marchi <simon.marchi@efficios.com>
410
411 * remote-sim.c (simulator_command): Make static, remove
412 declaration.
413
dd694d77
SM
4142019-11-26 Simon Marchi <simon.marchi@efficios.com>
415
416 * unittests/array-view-selftests.c (check_ptr_size_ctor2): Make
417 static.
418 * unittests/basic_string_view/capacity/1.cc (test01): Likewise.
419 * unittests/basic_string_view/cons/char/1.cc (test01): Likewise.
420 (main): Likewise.
421 * unittests/basic_string_view/cons/char/2.cc (test03): Likewise.
422 (main): Likewise.
423 * unittests/basic_string_view/cons/char/3.cc (test05): Likewise.
424 (main): Likewise.
425 * unittests/basic_string_view/element_access/char/1.cc (test01):
426 Likewise.
427 (main): Likewise.
428 * unittests/basic_string_view/element_access/char/empty.cc (main):
429 Likewise.
430 * unittests/basic_string_view/element_access/char/front_back.cc
431 (test01): Likewise.
432 (main): Likewise.
433 * unittests/basic_string_view/inserters/char/2.cc (test05):
434 Likewise.
435 (main): Likewise.
436 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc
437 (test01): Likewise.
438 (main): Likewise.
439 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc
440 (test01): Likewise.
441 (main): Likewise.
442 * unittests/basic_string_view/modifiers/swap/char/1.cc (test01):
443 Likewise.
444 * unittests/basic_string_view/operations/compare/char/1.cc
445 (test01): Likewise.
446 (main): Likewise.
447 * unittests/basic_string_view/operations/compare/char/13650.cc
448 (test01): Likewise.
449 * unittests/basic_string_view/operations/copy/char/1.cc (test01):
450 Likewise.
451 (main): Likewise.
452 * unittests/basic_string_view/operations/data/char/1.cc (test01):
453 Likewise.
454 (main): Likewise.
455 * unittests/basic_string_view/operations/find/char/1.cc (test01):
456 Likewise.
457 (main): Likewise.
458 * unittests/basic_string_view/operations/find/char/2.cc (test02):
459 Likewise.
460 (main): Likewise.
461 * unittests/basic_string_view/operations/find/char/3.cc (test03):
462 Likewise.
463 (main): Likewise.
464 * unittests/basic_string_view/operations/find/char/4.cc (main):
465 Likewise.
466 * unittests/basic_string_view/operations/rfind/char/1.cc (test01):
467 Likewise.
468 (main): Likewise.
469 * unittests/basic_string_view/operations/rfind/char/2.cc (test02):
470 Likewise.
471 (main): Likewise.
472 * unittests/basic_string_view/operations/rfind/char/3.cc (test03):
473 Likewise.
474 (main): Likewise.
475 * unittests/basic_string_view/operations/substr/char/1.cc
476 (test01): Likewise.
477 (main): Likewise.
478 * unittests/basic_string_view/operators/char/2.cc (main):
479 Likewise.
480 * unittests/optional/assignment/1.cc (test): Likewise.
481 * unittests/optional/assignment/2.cc (test): Likewise.
482 * unittests/optional/assignment/3.cc (test): Likewise.
483 * unittests/optional/assignment/4.cc (test): Likewise.
484 * unittests/optional/assignment/5.cc (test): Likewise.
485 * unittests/optional/assignment/6.cc (test): Likewise.
486 * unittests/optional/assignment/7.cc (test): Likewise.
487 * unittests/optional/cons/copy.cc (test): Likewise.
488 * unittests/optional/cons/default.cc (test): Likewise.
489 * unittests/optional/cons/move.cc (test): Likewise.
490 * unittests/optional/cons/value.cc (test): Likewise.
491 * unittests/optional/in_place.cc (test): Likewise.
492 * unittests/optional/observers/1.cc (test): Likewise.
493 * unittests/optional/observers/2.cc (test): Likewise.
494
3b5c1d49
SM
4952019-11-26 Simon Marchi <simon.marchi@efficios.com>
496
497 * tui-win.h (tui_set_var_cmd): Remove.
498 * tui-win.c (tui_set_var_cmd): Make static.
499
adce99fe
SM
5002019-11-26 Simon Marchi <simon.marchi@efficios.com>
501
502 * breakpoint.h (hbreak_command_wrapper, thbreak_command_wrapper,
503 rbreak_command_wrapper): Remove.
504 * symtab.c (rbreak_command_wrapper): Remove.
505
fe3adccf
SM
5062019-11-26 Simon Marchi <simon.marchi@efficios.com>
507
508 * inferior.h (info_terminal_command): Remove declaration.
509 * inflow.c (info_terminal_command): Make static.
510
b926335f
SM
5112019-11-26 Simon Marchi <simon.marchi@efficios.com>
512
513 * inferior.c (exit_inferior_silent): Remove.
514
b62f6f54
SM
5152019-11-26 Simon Marchi <simon.marchi@efficios.com>
516
517 * dictionary.c (dict_empty, mdict_empty): Remove.
518 * dictionary.c (mdict_empty): Remove.
519
cb8c24b6
SM
5202019-11-26 Simon Marchi <simon.marchi@efficios.com>
521
522 * arc-tdep.c (arc_insn_get_memory_base_reg): Make static.
523 (arc_insn_get_memory_offset): Likewise.
524 (arc_insn_dump): Likewise.
525 * cp-support.c (test_cp_symbol_name_matches): Likewise.
526 * csky-linux-tdep.c (csky_supply_fregset): Likewise.
527 * dictionary.c (dict_iterator_next): Likewise.
528 (dict_iter_match_first): Likewise.
529 (dict_iter_match_next): Likewise.
530 * f-lang.c (evaluate_subexp_f): Likewise.
531 * hppa-tdep.c (hppa_read_pc): Likewise.
532 * i386-tdep.c (i386_floatformat_for_type): Likewise.
533 * parse.c (write_exp_elt_msym): Likewise.
534 * ppc-linux-tdep.c (ppc_floatformat_for_type): Likewise.
535 * remote.c (remote_packet_size): Likewise.
536 (remote_notif_stop_parse): Likewise.
537 * rs6000-aix-tdep.c (aix_sighandle_frame_sniffer): Likewise.
538 * s12z-tdep.c (s12z_disassemble_info): Likewise.
539 * source.c (prepare_path_for_appending): Likewise.
540 * sparc64-linux-tdep.c
541 (sparc64_linux_handle_segmentation_fault); Likewise.
542 * stack.c (frame_selection_by_function_completer): Likewise.
543
781597ff
SM
5442019-11-26 Simon Marchi <simon.marchi@efficios.com>
545
546 * completer.c (set_gdb_completion_word_break_characters):
547 Remove.
548
23baa4cc
SM
5492019-11-26 Simon Marchi <simon.marchi@efficios.com>
550
551 * dwarf-index-write.c: Include dwarf-index-write.h.
552 * mi/mi-interp.c: Include mi/mi-interp.h.
553
23767560
SM
5542019-11-26 Simon Marchi <simon.marchi@efficios.com>
555
556 * aarch32-tdep.c: Include aarch32-tdep.h.
557 * aarch32-tdep.h: Forward-declare struct target_desc.
558
6d91ce9a
CB
5592019-11-26 Christian Biesinger <cbiesinger@google.com>
560
561 * linux-nat.c (detach_one_lwp): Call safe_strerror instead of
562 strerror.
563 * nto-procfs.c (nto_procfs_target::create_inferior): Likewise.
564 * windows-nat.c (windows_nat_target::create_inferior): Likewise.
565
3cf2f237
TV
5662019-11-25 Tom de Vries <tdevries@suse.de>
567
568 * contrib/words.sh: Add -c option.
569
5b89c67a
CB
5702019-11-25 Christian Biesinger <cbiesinger@google.com>
571
572 * solib.c (solib_find_1): Change int to bool.
573 (exec_file_find): Change int to bool.
574 (solib_find): Change int to bool.
575 (solib_read_symbols): Change int to bool.
576 (solib_used): Change int to bool.
577 (solib_add): Change int to bool.
578 (info_sharedlibrary_command): Change int to bool.
579 (solib_contains_address_p): Change int to bool.
580 (solib_keep_data_in_core): Change int to bool.
581 (in_solib_dynsym_resolve_code): Change int to bool.
582 (reload_shared_libraries_1): Change int to bool.
583 (gdb_sysroot_changed): Change int to bool.
584 * solib.h (solib_read_symbols): Change int to bool.
585 (solib_contains_address_p): Change int to bool.
586 (solib_keep_data_in_core): Change int to bool.
587 (in_solib_dynsym_resolve_code): Change int to bool.
588 (libpthread_name_p): Change int to bool.
589
6cc8564b
LM
5902019-11-25 Luis Machado <luis.machado@linaro.org>
591
592 * NEWS (New Commands): Mention "set debug remote-packet-max-chars".
593 * remote.c (REMOTE_DEBUG_MAX_CHAR): Remove.
594 (remote_packet_max_chars): New static global.
595 (show_remote_packet_max_chars): New function.
596 (remote_target::putpkt_binary): Adjust to use new
597 remote_packet_max_chars option.
598 (remote_target::getpkt_or_notif_sane_1): Likewise.
599 (_initialize_remote): Register new remote-packet-max-chars option.
600
a7cdaa91
SM
6012019-11-24 Simon Marchi <simon.marchi@efficios.com>
602
603 * m68k-linux-nat.c: Include gdbarch.h.
604
26abc753
TT
6052019-11-24 Tom Tromey <tom@tromey.com>
606
607 * symfile.c (read_symbols): Update.
608 * psymtab.c (require_partial_symbols): Change type of "verbose" to
609 bool.
610 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
611 (psym_lookup_symbol, psym_find_last_source_symtab)
612 (psym_forget_cached_source_info, psym_print_stats)
613 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
614 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
615 (psym_map_matching_symbols, psym_expand_symtabs_matching)
616 (psym_find_compunit_symtab_by_address)
617 (maintenance_print_psymbols, maintenance_info_psymtabs)
618 (maintenance_check_psymtabs): Update.
619 * psymtab.h (require_partial_symbols): Change type of "verbose" to
620 bool.
621
012fc909
TT
6222019-11-22 Tom Tromey <tom@tromey.com>
623
624 * observable.h: Update comments.
625
c83d8d32
TT
6262019-11-22 Tom Tromey <tromey@adacore.com>
627
628 * ada-tasks.c (ada_task_is_alive): Make parameter const.
629 (print_ada_task_info): Don't try to fetch thread id if task is not
630 alive.
631
987012b8
CB
6322019-11-22 Christian Biesinger <cbiesinger@google.com>
633
634 * ada-exp.y: Update.
635 * ada-lang.c (sort_choices): Update.
636 (ada_print_symbol_signature): Update.
637 (resolve_subexp): Update.
638 (ada_parse_renaming): Update.
639 (ada_read_renaming_var_value): Update.
640 (lesseq_defined_than): Update.
641 (remove_extra_symbols): Update.
642 (remove_irrelevant_renamings): Update.
643 (ada_add_block_symbols): Update.
644 (ada_collect_symbol_completion_matches): Update.
645 (ada_is_renaming_symbol): Update.
646 (aggregate_assign_from_choices): Update.
647 (ada_evaluate_subexp): Update.
648 (ada_has_this_exception_support): Update.
649 (ada_is_non_standard_exception_sym): Update.
650 (ada_add_exceptions_from_frame): Update.
651 (ada_add_global_exceptions): Update.
652 (ada_print_subexp): Update.
653 * ax-gdb.c (gen_var_ref): Update.
654 (gen_maybe_namespace_elt): Update.
655 (gen_expr_for_cast): Update.
656 (gen_expr): Update.
657 * block.h: Update.
658 * blockframe.c (find_pc_partial_function): Update.
659 * breakpoint.c (print_breakpoint_location): Update.
660 (update_static_tracepoint): Update.
661 * btrace.c (ftrace_print_function_name): Update.
662 (ftrace_function_switched): Update.
663 * buildsym.c (find_symbol_in_list): Update.
664 * c-exp.y: Update.
665 * c-typeprint.c (c_print_typedef): Update.
666 (c_type_print_template_args): Update.
667 * cli/cli-cmds.c (edit_command): Update.
668 (list_command): Update.
669 (print_sal_location): Update.
670 * coffread.c (patch_opaque_types): Update.
671 (process_coff_symbol): Update.
672 (coff_read_enum_type): Update.
673 * compile/compile-c-symbols.c (c_symbol_substitution_name): Update.
674 (convert_one_symbol): Update.
675 (hash_symname): Update.
676 (eq_symname): Update.
677 * compile/compile-cplus-symbols.c (convert_one_symbol): Update.
678 * compile/compile-cplus-types.c (debug_print_scope): Update.
679 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
680 * compile/compile-object-load.c (get_out_value_type): Update.
681 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
682 (search_symbol_list): Update.
683 (cp_lookup_symbol_imports_or_template): Update.
684 * cp-support.c (overload_list_add_symbol): Update.
685 * ctfread.c (psymtab_to_symtab): Update.
686 * dbxread.c (cp_set_block_scope): Update.
687 * dictionary.c (iter_match_first_hashed): Update.
688 (iter_match_next_hashed): Update.
689 (insert_symbol_hashed): Update.
690 (iter_match_next_linear): Update.
691 * dictionary.h: Update.
692 * dwarf2loc.c (func_get_frame_base_dwarf_block): Update.
693 (locexpr_describe_location_piece): Update.
694 (locexpr_describe_location_1): Update.
695 (locexpr_generate_c_location): Update.
696 (loclist_describe_location): Update.
697 (loclist_generate_c_location): Update.
698 * dwarf2read.c (dw2_debug_names_lookup_symbol): Update.
699 (read_func_scope): Update.
700 (process_enumeration_scope): Update.
701 (new_symbol): Update.
702 (dwarf2_const_value): Update.
703 (dwarf2_symbol_mark_computed): Update.
704 * eval.c (evaluate_funcall): Update.
705 (evaluate_subexp_standard): Update.
706 * expprint.c (print_subexp_standard): Update.
707 (dump_subexp_body_standard): Update.
708 * f-valprint.c (info_common_command_for_block): Update.
709 * findvar.c (get_hosting_frame): Update.
710 (default_read_var_value): Update.
711 * go-lang.c (go_symbol_package_name): Update.
712 * guile/scm-block.c (bkscm_print_block_smob): Update.
713 * guile/scm-symbol.c (syscm_print_symbol_smob): Update.
714 (gdbscm_symbol_name): Update.
715 (gdbscm_symbol_linkage_name): Update.
716 (gdbscm_symbol_print_name): Update.
717 * infcall.c (get_function_name): Update.
718 * infcmd.c (jump_command): Update.
719 (finish_command): Update.
720 * infrun.c (insert_exception_resume_breakpoint): Update.
721 * linespec.c (canonicalize_linespec): Update.
722 (create_sals_line_offset): Update.
723 (convert_linespec_to_sals): Update.
724 (complete_label): Update.
725 (find_label_symbols_in_block): Update.
726 * m2-typeprint.c (m2_print_typedef): Update.
727 * mdebugread.c (mdebug_reg_to_regnum): Update.
728 (parse_symbol): Update.
729 (mylookup_symbol): Update.
730 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
731 (list_args_or_locals): Update.
732 * objc-lang.c (compare_selectors): Update.
733 (info_selectors_command): Update.
734 (compare_classes): Update.
735 (info_classes_command): Update.
736 (find_imps): Update.
737 * p-typeprint.c (pascal_print_typedef): Update.
738 * printcmd.c (build_address_symbolic): Update.
739 (info_address_command): Update.
740 (print_variable_and_value): Update.
741 * python/py-framefilter.c (extract_sym): Update.
742 (py_print_single_arg): Update.
743 * python/py-symbol.c (sympy_str): Update.
744 (sympy_get_name): Update.
745 (sympy_get_linkage_name): Update.
746 * python/python.c (gdbpy_rbreak): Update.
747 * record-btrace.c (btrace_get_bfun_name): Update.
748 (btrace_call_history): Update.
749 * rust-lang.c (rust_print_typedef): Update.
750 * solib-frv.c (frv_fdpic_find_canonical_descriptor): Update.
751 * stabsread.c (stab_reg_to_regnum): Update.
752 (define_symbol): Update.
753 (read_enum_type): Update.
754 (common_block_end): Update.
755 (cleanup_undefined_types_1): Update.
756 (scan_file_globals): Update.
757 * stack.c (print_frame_arg): Update.
758 (print_frame_args): Update.
759 (find_frame_funname): Update.
760 (info_frame_command_core): Update.
761 (iterate_over_block_locals): Update.
762 (print_block_frame_labels): Update.
763 (do_print_variable_and_value): Update.
764 (iterate_over_block_arg_vars): Update.
765 (return_command): Update.
766 * symmisc.c (dump_symtab_1): Update.
767 (print_symbol): Update.
768 * symtab.c (eq_symbol_entry): Update.
769 (symbol_cache_dump): Update.
770 (lookup_language_this): Update.
771 (find_pc_sect_line): Update.
772 (skip_prologue_sal): Update.
773 (symbol_search::compare_search_syms): Update.
774 (treg_matches_sym_type_name): Update.
775 (search_symbols): Update.
776 (print_symbol_info): Update.
777 (rbreak_command): Update.
778 (completion_list_add_symbol): Update.
779 (find_gnu_ifunc): Update.
780 (get_symbol_address): Update.
781 (search_module_symbols): Update.
782 (info_module_subcommand): Update.
783 * symtab.h (SYMBOL_NATURAL_NAME): Remove.
784 (SYMBOL_LINKAGE_NAME): Remove.
785 (SYMBOL_DEMANGLED_NAME): Remove.
786 (SYMBOL_PRINT_NAME): Remove.
787 (SYMBOL_SEARCH_NAME): Remove.
788 * tracepoint.c (set_traceframe_context): Update.
789 (validate_actionline): Update.
790 (collection_list::collect_symbol): Update.
791 (encode_actions_1): Update.
792 (info_scope_command): Update.
793 (print_one_static_tracepoint_marker): Update.
794 * typeprint.c (typedef_hash_table::add_template_parameters): Update.
795 * valops.c (address_of_variable): Update.
796 (find_overload_match): Update.
797 (find_oload_champ): Update.
798
c9d95fa3
CB
7992019-11-22 Christian Biesinger <cbiesinger@google.com>
800
801 * ada-lang.c (ada_lookup_simple_minsym): Update.
802 (ada_collect_symbol_completion_matches): Update.
803 * ada-tasks.c (read_atcb): Update.
804 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
805 (amd64_windows_skip_trampoline_code): Update.
806 * arm-tdep.c (skip_prologue_function): Update.
807 (arm_skip_stack_protector): Update.
808 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
809 (arm_wince_skip_main_prologue): Update.
810 * ax-gdb.c (gen_expr): Update.
811 * block.c (call_site_for_pc): Update.
812 * blockframe.c (find_pc_partial_function): Update.
813 * breakpoint.c (set_breakpoint_location_function): Update.
814 * btrace.c (ftrace_print_function_name): Update.
815 (ftrace_function_switched): Update.
816 * c-valprint.c (print_unpacked_pointer): Update.
817 * coffread.c (coff_symfile_read): Update.
818 * compile/compile-c-symbols.c (convert_symbol_bmsym): Update.
819 * compile/compile-cplus-symbols.c (convert_symbol_bmsym): Update.
820 * dwarf-index-write.c (write_psymbols): Update.
821 * dwarf2loc.c (call_site_to_target_addr): Update.
822 (func_verify_no_selftailcall): Update.
823 (tailcall_dump): Update.
824 (call_site_find_chain_1): Update.
825 (dwarf_expr_reg_to_entry_parameter): Update.
826 * elfread.c (elf_gnu_ifunc_record_cache): Update.
827 * eval.c (evaluate_funcall): Update.
828 (evaluate_subexp_standard): Update.
829 (evaluate_subexp_for_sizeof): Update.
830 * expprint.c (print_subexp_standard): Update.
831 (dump_subexp_body_standard): Update.
832 * frame.c (get_prev_frame_always_1): Update.
833 * frv-tdep.c (frv_skip_main_prologue): Update.
834 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
835 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
836 (gnuv3_get_typename_from_type_info): Update.
837 (gnuv3_skip_trampoline): Update.
838 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
839 * i386-tdep.c (i386_skip_main_prologue): Update.
840 (i386_pe_skip_trampoline_code): Update.
841 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
842 * infcall.c (get_function_name): Update.
843 * linespec.c (minsym_found): Update.
844 * linux-fork.c (info_checkpoints_command): Update.
845 * m32c-tdep.c (m32c_m16c_address_to_pointer): Update.
846 (m32c_m16c_pointer_to_address): Update.
847 * maint.c (maintenance_translate_address): Update.
848 * minsyms.c (add_minsym_to_hash_table): Update.
849 (add_minsym_to_demangled_hash_table): Update.
850 (lookup_minimal_symbol_mangled): Update.
851 (lookup_minimal_symbol_demangled): Update.
852 (lookup_minimal_symbol_linkage): Update.
853 (lookup_minimal_symbol_text): Update.
854 (lookup_minimal_symbol_by_pc_name): Update.
855 (minimal_symbol_is_less_than): Update.
856 (compact_minimal_symbols): Update.
857 (build_minimal_symbol_hash_tables): Update.
858 (find_solib_trampoline_target): Update.
859 * mips-tdep.c (mips_stub_frame_sniffer): Update.
860 (mips_skip_pic_trampoline_code): Update.
861 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
862 * objc-lang.c (info_selectors_command): Update.
863 (info_classes_command): Update.
864 (find_methods): Update.
865 (find_imps): Update.
866 * p-valprint.c (pascal_val_print): Update.
867 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Update.
868 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
869 * printcmd.c (build_address_symbolic): Update.
870 (info_symbol_command): Update.
871 * psymtab.c (psymbol_name_matches): Update.
872 (match_partial_symbol): Update.
873 (lookup_partial_symbol): Update.
874 (print_partial_symbols): Update.
875 (sort_pst_symbols): Update.
876 (maintenance_check_psymtabs): Update.
877 * python/py-framefilter.c (py_print_frame): Update.
878 * python/python.c (gdbpy_rbreak): Update.
879 * record-btrace.c (btrace_get_bfun_name): Update.
880 (btrace_call_history): Update.
881 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
882 (rs6000_skip_trampoline_code): Update.
883 * sol-thread.c (info_cb): Update.
884 * stabsread.c (scan_file_globals): Update.
885 * stack.c (find_frame_funname): Update.
886 (info_frame_command_core): Update.
887 * symmisc.c (dump_msymbols): Update.
888 * symtab.c (symbol_natural_name): Rename to..,
889 (general_symbol_info::natural_name): ...this.
890 (symbol_demangled_name): Rename to...
891 (general_symbol_info::demangled_name): ...this.
892 (symbol_search_name): Rename to...
893 (general_symbol_info::search_name): ...this.
894 (symbol_matches_search_name): Update.
895 (find_pc_sect_line): Update.
896 (skip_prologue_sal): Update.
897 (search_symbols): Update.
898 (print_msymbol_info): Update.
899 (rbreak_command): Update.
900 (completion_list_add_msymbol): Update.
901 (completion_list_objc_symbol): Update.
902 (get_msymbol_address): Update.
903 * symtab.h (struct general_symbol_info): Add member functions
904 natural_name (), linkage_name (), print_name (), demangled_name (),
905 and search_name ().
906 (SYMBOL_NATURAL_NAME): Update.
907 (symbol_natural_name): Move to a member function on general_symbol_info.
908 (SYMBOL_DEMANGLED_NAME): Update.
909 (symbol_demangled_name): Move to a member function on
910 general_symbol_info.
911 (SYMBOL_SEARCH_NAME): Update.
912 (symbol_search_name): Move to a member function on general_symbol_info.
913 (MSYMBOL_NATURAL_NAME): Remove.
914 (MSYMBOL_LINKAGE_NAME): Remove.
915 (MSYMBOL_PRINT_NAME): Remove.
916 (MSYMBOL_DEMANGLED_NAME): Remove.
917 (MSYMBOL_SEARCH_NAME): Remove.
918 * x86-tdep.c (x86_in_indirect_branch_thunk): Update.
919
f8bab2d6
CB
9202019-11-22 Christian Biesinger <cbiesinger@google.com>
921
922 * symtab.c (create_demangled_names_hash): Use per_bfd->
923 minimal_symbol_count for computing the initial size, if greater
924 than our default size.
925
85e7588d
TV
9262019-11-22 Tom de Vries <tdevries@suse.de>
927
928 * contrib/words.sh: Improve words extraction.
929
f6180073
TV
9302019-11-22 Tom de Vries <tdevries@suse.de>
931
932 * contrib/words.sh: Combine sed invocations.
933
f10ffa41
CB
9342019-11-21 Christian Biesinger <cbiesinger@google.com>
935
936 * Makefile.in: Update.
937 * demangle.c: Rename to...
938 * gdb-demangle.c: ..this.
939 (is_cplus_marker): Change return type to bool.
940 (_initialize_demangler): Rename to...
941 (_initialize_gdb_demangle): ...this.
942 * gdb-demangle.h (is_cplus_marker): Change return type to bool.
943 * symtab.h (demangle): Remove declaration; instead include
944 gdb-demangle.h.
945
6ba18521
TT
9462019-11-21 Tom Tromey <tromey@adacore.com>
947
948 * gdbsupport/format.c (format_pieces): Parse %I64d.
949 * unittests/format_pieces-selftests.c (test_windows_formats): New
950 function.
951 (run_tests): Call it.
952
34877895
PJ
9532019-11-21 Peeter Joot <peeter.joot@lzlabs.com>
954
955 Byte reverse display of variables with DW_END_big, DW_END_little
956 (DW_AT_endianity) dwarf attributes if different than the native
957 byte order.
958 * ada-lang.c (ada_value_binop):
959 Use type_byte_order instead of gdbarch_byte_order.
960 * ada-valprint.c (printstr):
961 (ada_val_print_string):
962 * ada-lang.c (value_pointer):
963 (ada_value_binop):
964 Use type_byte_order instead of gdbarch_byte_order.
965 * c-lang.c (c_get_string):
966 Use type_byte_order instead of gdbarch_byte_order.
967 * c-valprint.c (c_val_print_array):
968 Use type_byte_order instead of gdbarch_byte_order.
969 * cp-valprint.c (cp_print_class_member):
970 Use type_byte_order instead of gdbarch_byte_order.
971 * dwarf2loc.c (rw_pieced_value):
972 Use type_byte_order instead of gdbarch_byte_order.
973 * dwarf2read.c (read_base_type): Handle DW_END_big,
974 DW_END_little
975 * f-lang.c (f_get_encoding):
976 Use type_byte_order instead of gdbarch_byte_order.
977 * findvar.c (default_read_var_value):
978 Use type_byte_order instead of gdbarch_byte_order.
979 * gdbtypes.c (check_types_equal):
980 Require matching TYPE_ENDIANITY_NOT_DEFAULT if set.
981 (recursive_dump_type): Print TYPE_ENDIANITY_BIG,
982 and TYPE_ENDIANITY_LITTLE if set.
983 (type_byte_order): new function.
984 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): New macro.
985 (struct main_type) <flag_endianity_not_default>:
986 New field.
987 (type_byte_order): New function.
988 * infcmd.c (default_print_one_register_info):
989 Use type_byte_order instead of gdbarch_byte_order.
990 * p-lang.c (pascal_printstr):
991 Use type_byte_order instead of gdbarch_byte_order.
992 * p-valprint.c (pascal_val_print):
993 Use type_byte_order instead of gdbarch_byte_order.
994 * printcmd.c (print_scalar_formatted):
995 Use type_byte_order instead of gdbarch_byte_order.
996 * solib-darwin.c (darwin_current_sos):
997 Use type_byte_order instead of gdbarch_byte_order.
998 * solib-svr4.c (solib_svr4_r_ldsomap):
999 Use type_byte_order instead of gdbarch_byte_order.
1000 * stap-probe.c (stap_modify_semaphore):
1001 Use type_byte_order instead of gdbarch_byte_order.
1002 * target-float.c (target_float_same_format_p):
1003 Use type_byte_order instead of gdbarch_byte_order.
1004 * valarith.c (scalar_binop):
1005 (value_bit_index):
1006 Use type_byte_order instead of gdbarch_byte_order.
1007 * valops.c (value_cast):
1008 Use type_byte_order instead of gdbarch_byte_order.
1009 * valprint.c (generic_emit_char):
1010 (generic_printstr):
1011 (val_print_string):
1012 Use type_byte_order instead of gdbarch_byte_order.
1013 * value.c (unpack_long):
1014 (unpack_bits_as_long):
1015 (unpack_value_bitfield):
1016 (modify_field):
1017 (pack_long):
1018 (pack_unsigned_long):
1019 Use type_byte_order instead of gdbarch_byte_order.
1020 * findvar.c (unsigned_pointer_to_address):
1021 (signed_pointer_to_address):
1022 (unsigned_address_to_pointer):
1023 (address_to_signed_pointer):
1024 (default_read_var_value):
1025 (default_value_from_register):
1026 Use type_byte_order instead of gdbarch_byte_order.
1027 * gnu-v3-abi.c (gnuv3_make_method_ptr):
1028 Use type_byte_order instead of gdbarch_byte_order.
1029 * riscv-tdep.c (riscv_print_one_register_info):
1030 Use type_byte_order instead of gdbarch_byte_order.
1031
87fb00ea
SM
10322019-11-21 Simon Marchi <simon.marchi@polymtl.ca>
1033
1034 * top.c (current_ui_gdb_stdout_ptr): Spell out by hand.
1035 (current_ui_gdb_stdin_ptr): Likewise.
1036 (current_ui_gdb_stderr_ptr): Likewise.
1037 (current_ui_gdb_stdlog_ptr): Likewise.
1038 (current_ui_current_uiout_ptr): Likewise.
1039 (gen_ret_current_ui_field_ptr): Remove.
1040
65d1cd5f
TV
10412019-11-21 Tom de Vries <tdevries@suse.de>
1042
1043 PR gdb/24956
1044 * cli/cli-script.c (execute_control_command): Only switch to
1045 INTERP_CONSOLE's ui_out when INTERP_MI is active.
1046
9f6ad286
TT
10472019-11-19 Tom Tromey <tom@tromey.com>
1048
1049 * tui/tui-win.c (tui_partial_win_by_name): Move from tui-data.c.
1050 Now static. Change type of "name".
1051 (tui_set_win_height_command): Don't copy "arg".
1052 * tui/tui-data.h (tui_partial_win_by_name): Don't declare.
1053 * tui/tui-data.c (tui_partial_win_by_name): Move to tui-win.c.
1054
435d3d88
AT
10552019-11-19 Ali Tamur <tamur@google.com>
1056
1057 * dwarf2read.c (dw2_get_file_names_reader): Replace "if (attr)" with
1058 "if (attr != nullptr)".
1059 (dwarf2_find_base_address): Likewise.
1060 (dwarf2_build_include_psymtabs): Likewise.
1061 (read_cutu_die_from_dwo): Likewise.
1062 (read_func_scope): Likewise.
1063 (read_call_site_scope): Likewise.
1064 (dwarf2_get_pc_bounds): Likewise.
1065 (dwarf2_record_block_ranges): Likewise.
1066 (dwarf2_add_field): Likewise.
1067 (dwarf2_add_member_fn): Likewise.
1068 (read_structure_type): Likewise.
1069 (read_enumeration_type): Likewise.
1070 (read_array_type): Likewise.
1071 (read_array_order): Likewise.
1072 (read_set_type): Likewise.
1073 (read_common_block): Likewise.
1074 (read_tag_reference_type): Likewise.
1075 (read_tag_string_type): Likewise.
1076 (read_subroutine_type): Likewise.
1077 (read_base_type): Likewise.
1078 (read_subrange_type): Likewise.
1079 (new_symbol): Likewise.
1080 (prepare_one_comp_unit): Likewise.
1081
c9739b6a
TT
10822019-11-19 Tom Tromey <tromey@adacore.com>
1083
1084 * windows-nat.c (windows_nat_target::attach): Include GetLastError
1085 result in error when DebugActiveProcess fails.
1086
494409bb
SDJ
10872019-11-18 Sergio Durigan Junior <sergiodj@redhat.com>
1088 Pedro Alves <palves@redhat.com>
1089
1090 https://bugzilla.redhat.com/show_bug.cgi?id=1765117
1091 * target.c (target_stack::push): Call 'unpush' if there's a
1092 target on top of the stack.
1093
2e953aca
PW
10942019-11-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1095
1096 * python/py-block.c (blpy_dealloc): Call tp_free.
1097 (blpy_block_syms_dealloc): Likewise.
1098 * python/py-finishbreakpoint.c (bpfinishpy_dealloc): Likewise.
1099 * python/py-inferior.c (infpy_dealloc): Likewise.
1100 * python/py-lazy-string.c (stpy_dealloc): Likewise.
1101 * python/py-linetable.c (ltpy_iterator_dealloc): Likewise.
1102 * python/py-symbol.c (sympy_dealloc): Likewise.
1103 * python/py-symtab.c (stpy_dealloc): Likewise.
1104 * python/py-type.c (typy_iterator_dealloc): Likewise.
1105
6edc43ec
CB
11062019-11-18 Christian Biesinger <cbiesinger@google.com>
1107
1108 * symtab.h (struct symbol) <owner>: Initialize explicitly in the
1109 constructor instead of using a class initializer.
1110
cd850b40
CB
11112019-11-15 Christian Biesinger <cbiesinger@google.com>
1112
1113 * Makefile.in: Replace {posix,mingw}-strerror.c with safe-strerror.c.
1114 * configure: Regenerate.
1115 * configure.ac: Don't source common.host.
1116 * gdbsupport/common.host: Remove.
1117 * gdbsupport/mingw-strerror.c: Remove.
1118 * gdbsupport/posix-strerror.c: Rename to...
1119 * gdbsupport/safe-strerror.c: ...this.
1120
53fea9c7
CB
11212019-11-15 Christian Biesinger <cbiesinger@google.com>
1122
1123 * maint.c (scoped_command_stats::print_time): Use localtime_r
1124 instead of localtime (provided through gnulib if necessary).
1125 * nat/linux-osdata.c (time_from_time_t): Use ctime_r instead
1126 of ctime.
1127
f8e27d88
CB
11282019-11-15 Christian Biesinger <cbiesinger@google.com>
1129
1130 * gdbsupport/common-defs.h: Include time.h before pathmax.h to
1131 avoid compile errors.
1132
5abebf3c
CB
11332019-11-15 Christian Biesinger <cbiesinger@google.com>
1134
1135 * config.in: Regenerate.
1136 * configure: Regenerate.
1137 * gdbsupport/common.m4: No longer check for strerror_r.
1138 * gdbsupport/posix-strerror.c (safe_strerror): Always call the
1139 POSIX version of strerror_r, now that gnulib provides it if
1140 necessary.
1141
9a351667
CB
11422019-11-14 Christian Biesinger <cbiesinger@google.com>
1143
1144 * README (`configure' options): Update.
1145
55708e99
TT
11462019-11-14 Tom Tromey <tromey@adacore.com>
1147
1148 * eval.c (evaluate_subexp_standard) <BINOP_ASSIGN>: Do not pass an
1149 expected type for the RHS if the LHS is a convenience variable.
1150
4b09bb2e
SM
11512019-11-14 Simon Marchi <simon.marchi@polymtl.ca>
1152
1153 * unittests/vec-utils-selftests.c (unordered_remove_tests::obj):
1154 Provide explicit default and copy constructor.
1155
bd454f8b
PW
11562019-11-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1157
1158 * python/py-finishbreakpoint.c (gdbpy_breakpoint_created):
1159 only call Py_INCREF (newbp) in the bppy_pending_object case.
1160
d1aa3cf0
TT
11612019-11-13 Tom Tromey <tromey@adacore.com>
1162
1163 PR build/25182:
1164 * psympriv.h (partial_symbol): Remove static assert.
1165 * symtab.h (general_symbol_info, symbol): Remove static assert.
1166
e06f3d6e
AB
11672019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1168
1169 * gdbsupport/format.c (format_pieces::format_pieces): Support
1170 printf 'z' size modifier.
1171 * gdbsupport/format.h (enum argclass): Add size_t_arg.
1172 * printcmd.c (ui_printf): Handle size_t_arg.
1173 * ui-out.c (ui_out::vmessage): Likewise.
1174 * unittests/format_pieces-selftests.c (test_format_int_sizes): New
1175 function.
1176 (run_tests): Call test_format_int_sizes.
1177
468c0cbb
CB
11782019-11-12 Christian Biesinger <cbiesinger@google.com>
1179
1180 * ada-exp.y (write_ambiguous_var): Update.
1181 * buildsym.c (add_symbol_to_list): Update.
1182 * dwarf2read.c (read_variable): Update.
1183 (new_symbol): Update.
1184 * jit.c (finalize_symtab): Update.
1185 * language.c (language_alloc_type_symbol): Update.
1186 * symtab.c (fixup_symbol_section): Update.
1187 (initialize_objfile_symbol_1): Move code to...
1188 (initialize_objfile_symbol): ...here. Remove now-unnecessary memset.
1189 (allocate_symbol): Update.
1190 (allocate_template_symbol): Update.
1191 (get_symbol_address): Update.
1192 * symtab.h (struct symbol): Inherit from general_symbol_info instead
1193 of having as a field, and add a constructor.
1194 (SYMBOL_VALUE): Update.
1195 (SYMBOL_VALUE_ADDRESS): Update.
1196 (SET_SYMBOL_VALUE_ADDRESS): Update.
1197 (SYMBOL_VALUE_BYTES): Update.
1198 (SYMBOL_VALUE_COMMON_BLOCK): Update.
1199 (SYMBOL_BLOCK_VALUE): Update.
1200 (SYMBOL_VALUE_CHAIN): Update.
1201 (SYMBOL_LANGUAGE): Update.
1202 (SYMBOL_SECTION): Update.
1203 (SYMBOL_OBJ_SECTION): Update.
1204 (SYMBOL_SET_LANGUAGE): Update.
1205 (SYMBOL_SET_LINKAGE_NAME): Update.
1206 (SYMBOL_SET_NAMES): Update.
1207 (SYMBOL_NATURAL_NAME): Update.
1208 (SYMBOL_LINKAGE_NAME): Update.
1209 (SYMBOL_DEMANGLED_NAME): Update.
1210 (SYMBOL_SEARCH_NAME): Update.
1211 (SYMBOL_MATCHES_SEARCH_NAME): Update.
1212 (struct symbol): Update.
1213 (struct template_symbol): Update.
1214 (struct rust_vtable_symbol): Update.
1215 * xcoffread.c (SYMBOL_DUP): Update.
1216
ed2c82c3
TT
12172019-11-12 Tom Tromey <tom@tromey.com>
1218
1219 * tui/tui-layout.c (show_layout): Set current_layout.
1220 (show_source_disasm_command, show_data)
1221 (show_source_or_disasm_and_command): Don't set current_layout.
1222
d9fcefd5
TT
12232019-11-12 Tom Tromey <tom@tromey.com>
1224
1225 * tui/tui-layout.c (_initialize_tui_layout): Move to end.
1226
45e42163
TT
12272019-11-12 Tom Tromey <tom@tromey.com>
1228
1229 * tui/tui-win.c (resize_message): New global.
1230 (show_tui_resize_message): New function.
1231 (tui_async_resize_screen): Print message if requested.
1232 (_initialize_tui_win): Add tui-resize-message setting.
1233 * NEWS: Add entry for new commands.
1234
c86d74cc
TT
12352019-11-11 Tom Tromey <tom@tromey.com>
1236
1237 * tui/tui.c (tui_initialize_readline): Add new bindable readline
1238 functions.
1239
7b7b9424
CB
12402019-11-11 Christian Biesinger <cbiesinger@google.com>
1241
1242 * nat/linux-osdata.c (user_from_uid): Use getpwuid_r.
1243
086baaf1
AB
12442019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1245
1246 * python/py-symbol.c (gdbpy_lookup_static_symbols): New
1247 function.
1248 * python/python-internal.h (gdbpy_lookup_static_symbols):
1249 Declare new function.
1250 * python/python.c (python_GdbMethods): Add
1251 gdb.lookup_static_symbols method.
1252 * NEWS: Mention gdb.lookup_static_symbols.
1253
09ff83af
AB
12542019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1255
1256 * python/py-symbol.c (gdbpy_lookup_static_symbol): Lookup in
1257 static block of current object file first. Also fix typo in
1258 header comment.
1259
eb2dd8df
AB
12602019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1261
1262 * stack.c (set_last_displayed_sal): Delete.
1263 (last_displayed_sal_valid): Delete.
1264 (last_displayed_pspace): Delete.
1265 (last_displayed_addr): Delete.
1266 (last_displayed_symtab): Delete.
1267 (last_displayed_line): Delete.
1268 (class last_displayed_symtab_info_type): New.
1269 (last_displayed_symtab_info): New static global variable.
1270 (print_frame_info): Call methods on last_displayed_symtab_info.
1271 (clear_last_displayed_sal): Update header comment, and make use of
1272 last_displayed_symtab_info.
1273 (last_displayed_sal_is_valid): Likewise.
1274 (get_last_displayed_pspace): Likewise.
1275 (get_last_displayed_addr): Likewise.
1276 (get_last_displayed_symtab): Likewise.
1277 (get_last_displayed_line): Likewise.
1278 (get_last_displayed_sal): Likewise.
1279 * stack.h (clear_last_displayed_sal): Update header comment.
1280 (last_displayed_sal_is_valid): Likewise.
1281 (get_last_displayed_pspace): Likewise.
1282 (get_last_displayed_addr): Likewise.
1283 (get_last_displayed_symtab): Likewise.
1284 (get_last_displayed_line): Likewise.
1285 (get_last_displayed_sal): Likewise.
1286
62137775
AB
12872019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1288
1289 * stack.c (frame_show_address): Convert return type to bool.
1290 * stack.h (frame_show_address): Likewise, and update header
1291 comment.
1292
cf57ad6d
AB
12932019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1294
1295 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new file to the list.
1296 * unittests/vec-utils-selftests.c: New file.
1297 * gdbsupport/gdb_vecs.h (unordered_remove): Avoid self move assign.
1298
0b026263
TT
12992019-11-10 Tom Tromey <tom@tromey.com>
1300
1301 * tui/tui-wingeneral.c (tui_unhighlight_win): Use can_box.
1302 (tui_highlight_win): Likewise.
1303 (tui_win_info::check_and_display_highlight_if_needed): Likewise.
1304 * tui/tui-data.h (struct tui_win_info) <can_highlight>: Remove.
1305 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
1306 Don't set can_highlight.
1307
b049ce2d
TT
13082019-11-10 Tom Tromey <tom@tromey.com>
1309
1310 * cli/cli-style.h (class cli_style_option) <cli_style_option>:
1311 Remove unused declaration.
1312
992a7040
TT
13132019-11-08 Tom Tromey <tromey@adacore.com>
1314
1315 * top.c (read_command_file): Update.
1316 (command_line_input): Make return type const.
1317 * python/py-gdb-readline.c: Update.
1318 * linespec.c (decode_line_2): Update.
1319 * defs.h (command_line_input): Make return type const.
1320 * cli/cli-script.c (read_next_line): Make return type const.
1321 * ada-lang.c (get_selections): Update.
1322
ca3a04f6
CB
13232019-11-06 Christian Biesinger <cbiesinger@google.com>
1324
1325 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
1326 * mi/mi-main.c (output_cores): Likewise.
1327 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
1328 (linux_xfer_osdata_modules): Likewise.
1329 * remote.c (register_remote_support_xml): Likewise.
1330 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
1331 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
1332
e0eac551
TT
13332019-11-06 Tom Tromey <tom@tromey.com>
1334
1335 * tui/tui-interp.c: Don't include readline.h.
1336 * tui/tui-hooks.c: Don't include readline.h.
1337 * symmisc.c: Include tilde.h, not readline.h.
1338 * symfile.c: Include tilde.h, not readline.h.
1339 * source.c: Include tilde.h, not readline.h.
1340 * solib.c: Include tilde.h, not readline.h.
1341 * psymtab.c: Include tilde.h, not readline.h.
1342 * exec.c: Include tilde.h, not readline.h.
1343 * corelow.c: Include tilde.h, not readline.h.
1344 * cli/cli-dump.c: Include tilde.h, not readline.h.
1345 * cli/cli-cmds.c: Don't include readline.h.
1346
825165c5
TT
13472019-11-05 Tom Tromey <tom@tromey.com>
1348
1349 * tui/tui-disasm.c (struct tui_asm_line) <addr_size>: New member.
1350 (tui_disassemble): Set addr_size.
1351 (tui_disasm_window::set_contents): Use addr_size.
1352
91ae903f
TT
13532019-11-05 Tom Tromey <tom@tromey.com>
1354
1355 * rust-lang.c (rust_language_defn): Update.
1356 * python/py-value.c (valpy_string): Call c_get_string.
1357 * p-lang.c (pascal_language_defn): Update.
1358 * opencl-lang.c (opencl_language_defn): Update.
1359 * objc-lang.c (objc_language_defn): Update.
1360 * m2-lang.c (m2_language_defn): Update.
1361 * language.c (unknown_language_defn, auto_language_defn): Update.
1362 (default_get_string): Remove.
1363 * guile/scm-value.c (gdbscm_value_to_string): Use c_get_string.
1364 * go-lang.c (go_language_defn): Update.
1365 * f-lang.c (f_language_defn): Update.
1366 * d-lang.c (d_language_defn): Update.
1367 * c-lang.c (c_language_defn, cplus_language_defn)
1368 (asm_language_defn, minimal_language_defn): Update.
1369 * ada-lang.c (ada_language_defn): Update.
1370 * language.h (struct language_defn) <la_get_string>: Remove.
1371 (LA_GET_STRING): Remove.
1372 (default_get_string): Don't declare.
1373
1df2f9ef
TT
13742019-11-05 Tom Tromey <tom@tromey.com>
1375
1376 * tui/tui-source.h (struct tui_source_window): Inline
1377 constructor. Remove destructor.
1378 <style_changed, m_observable>: Move to superclass.
1379 * tui/tui-winsource.h (tui_copy_source_line): Declare.
1380 (struct tui_source_window_base): Move private members to end.
1381 <style_changed, m_observable>: Move from tui_source_window.
1382 * tui/tui-winsource.c (tui_copy_source_line): Move from
1383 tui-source.c. Rename from copy_source_line. Add special handling
1384 for negative line number.
1385 (tui_source_window_base::style_changed): Move from
1386 tui_source_window.
1387 (tui_source_window_base): Register observer.
1388 (~tui_source_window_base): New.
1389 * tui/tui-source.c (copy_source_line): Move to tui-winsource.c;
1390 rename.
1391 (tui_source_window::set_contents): Use tui_copy_source_line.
1392 (tui_source_window::tui_source_window): Move to tui-source.h.
1393 (tui_source_window::~tui_source_window): Remove.
1394 (tui_source_window::style_changed): Move to superclass.
1395 * tui/tui-disasm.c (tui_disassemble): Create string file with
1396 styling, when possible. Add "addr_size" parameter.
1397 (tui_disasm_window::set_contents): Use tui_copy_source_line.
1398 Don't compute maximum size.
1399 (len_without_escapes): New function
1400
5d051055
TT
14012019-11-05 Tom Tromey <tom@tromey.com>
1402
1403 * tui/tui-winsource.h (struct tui_source_element) <line>: Now a
1404 std::string.
1405 * tui/tui-winsource.c (tui_show_source_line): Update.
1406 * tui/tui-source.c (tui_source_window::set_contents): Update.
1407 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1408
ade7beea
CB
14092019-11-05 Christian Biesinger <cbiesinger@google.com>
1410
1411 * symtab.h (gdb_static_assert): Put && operator at the beginning
1412 of the line instead of the end.
1413
3573abe1
CB
14142019-11-04 Christian Biesinger <cbiesinger@google.com>
1415
1416 * psympriv.h: Add static_asserts for sizeof (general_symbol_info)
1417 and sizeof (symbol).
1418 * symtab.h: Add a static_assert for sizeof (partial_symbol).
1419
dae8b3eb
RO
14202019-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1421
1422 * NEWS (Changes since GDB 8.3): Document Solaris 10 removal.
1423 * configure.host: Mark *-*-solaris2.10* obsolete.
1424 * configure.tgt: Mark Solaris < 11 obsolete.
1425 * MAINTAINERS (Target Instruction Set Architectures) <sparc>:
1426 Update target triplet.
1427
5df96a4e
TT
14282019-11-01 Tom Tromey <tromey@adacore.com>
1429
1430 * utils.c (print_sys_errmsg): Simplify.
1431
b7481649
TT
14322019-11-01 Tom Tromey <tromey@adacore.com>
1433
1434 * gdbsupport/mingw-strerror.c (safe_strerror): Constify result.
1435
e48f6033
CB
14362019-11-01 Christian Biesinger <cbiesinger@google.com>
1437
1438 * configure: Regenerate.
1439 * configure.ac: Remove check for strerror_r.
1440 * gdbsupport/common.m4: Check for strerror_r.
1441
bd5766ec
LM
14422019-11-01 Luis Machado <luis.machado@linaro.org>
1443
1444 PR gdb/25124
1445
1446 * arm-tdep.c (arm_per_objfile): Rename to ...
1447 (arm_per_bfd): ... this.
1448 (arm_objfile_data_key): Rename to ...
1449 (arm_bfd_data_key): ... this.
1450 (arm_find_mapping_symbol): Adjust access to new bfd_key-based
1451 data.
1452 (arm_record_special_symbol): Likewise.
1453
e1709896
AB
14542019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1455
1456 * ada-typeprint.c (ada_print_typedef): Don't print newline at the
1457 end.
1458 * c-typeprint.c (c_print_typedef): Likewise.
1459 * f-typeprint.c (f_print_typedef): Likewise.
1460 * m2-typeprint.c (m2_print_typedef): Likewise.
1461 * p-typeprint.c (pascal_print_typedef): Likewise.
1462 * rust-lang.c (rust_print_typedef): Likewise.
1463 * symtab.c (print_symbol_info): Print a newline after calling
1464 typedef_print.
1465
165f8965
AB
14662019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1467
1468 * symtab.c (info_module_cmdlist): New variable.
1469 (info_module_command): New function.
1470 (search_module_symbols): New function.
1471 (info_module_subcommand): New function.
1472 (struct info_modules_var_func_options): New struct.
1473 (info_modules_var_func_options_defs): New variable.
1474 (make_info_modules_var_func_options_def_group): New function.
1475 (info_module_functions_command): New function.
1476 (info_module_variables_command): New function.
1477 (info_module_var_func_command_completer): New function.
1478 (_initialize_symtab): Register new 'info module functions' and
1479 'info module variables' commands.
1480 * symtab.h (typedef symbol_search_in_module): New typedef.
1481 (search_module_symbols): Declare new function.
1482 * NEWS: Mention new commands.
1483
59c35742
AB
14842019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1485
1486 * dwarf2read.c (dw2_symtab_iter_next): Handle MODULE_DOMAIN.
1487 (dw2_expand_marked_cus): Handle MODULES_DOMAIN.
1488 (dw2_debug_names_iterator::next): Handle MODULE_DOMAIN and
1489 MODULES_DOMAIN.
1490 (scan_partial_symbols): Only create partial module symbols for non
1491 declarations.
1492 * psymtab.c (recursively_search_psymtabs): Handle MODULE_DOMAIN
1493 and MODULES_DOMAIN.
1494 * symtab.c (search_domain_name): Likewise.
1495 (search_symbols): Likewise.
1496 (print_symbol_info): Likewise.
1497 (symtab_symbol_info): Likewise.
1498 (info_modules_command): New function.
1499 (_initialize_symtab): Register 'info modules' command.
1500 * symtab.h (enum search_domain): Add MODULES_DOMAIN.
1501 * NEWS: Mention new 'info modules' command.
1502
aed61d02
PW
15032019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1504
1505 * NEWS: Mention $_gdb_setting, $_gdb_setting_str, $_gdb_maint_setting
1506 and $_gdb_maint_setting_str.
1507
9ad9b77d
PW
15082019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1509
1510 * cli/cli-cmds.c (setting_cmd, value_from_setting)
1511 (gdb_setting_internal_fn, gdb_maint_setting_internal_fn)
1512 (str_value_from_setting, gdb_setting_str_internal_fn)
1513 (gdb_maint_setting_str_internal_fn): New functions.
1514 (_initialize_cli_cmds): Define the new convenience functions.
1515 * gdb/cli/cli-setshow.h (get_setshow_command_value_string): Constify.
1516 * gdb/cli/cli-setshow.c (get_setshow_command_value_string): Constify.
1517
8d6efaa2
CB
15182019-10-31 Christian Biesinger <cbiesinger@google.com>
1519
1520 * agent.c (set_can_use_agent): When the setting is turned on,
1521 look up agent symbols if we don't have them yet.
1522 (agent_new_objfile): Don't look up agent symbols when the agent
1523 setting is off.
1524
33cb1647
CB
15252019-10-31 Christian Biesinger <cbiesinger@google.com>
1526
1527 * config.in: Regenerate.
1528
b231e86a
CB
15292019-10-31 Christian Biesinger <cbiesinger@google.com>
1530
1531 * configure: Regenerate.
1532 * configure.ac: Check for strerror_r.
1533 * gdbsupport/common-utils.h (safe_strerror): Change return value
1534 to const char * and document that this function is now threadsafe.
1535 * gdbsupport/posix-strerror.c (safe_strerror): Make buf
1536 thread_local and call strerror_r, if available.
1537 * utils.c (perror_string): Update.
1538 (print_sys_errmsg): Update.
1539
a2726d4f
LM
15402019-10-31 Luis Machado <luis.machado@linaro.org>
1541
1542 * arm-tdep.c (arm_exidx_data_key): Use bfd_key instead of
1543 objfile_key.
1544 (arm_exidx_new_objfile): Adjust to use objfile->obfd instead of
1545 objfile to fetch per-bfd data.
1546 (arm_find_exidx_entry): Likewise.
1547
75cafaa6
CB
15482019-10-31 Christian Biesinger <cbiesinger@google.com>
1549
1550 * gdbsupport/agent.c (debug_agent): Change type to bool.
1551 (use_agent): Likewise.
1552 (all_agent_symbols_look_up): Likewise.
1553 (agent_loaded_p): Change return value to bool.
1554 (agent_look_up_symbols): Update.
1555 (agent_capability_check): Change return value to bool.
1556 * gdbsupport/agent.h (agent_loaded_p): Likewise.
1557 (debug_agent): Change type to bool.
1558 (use_agent): Likewise.
1559 (agent_capability_check): Change return value to bool.
1560
808590ec
CB
15612019-10-30 Christian Biesinger <cbiesinger@google.com>
1562
1563 * minsyms.c (clear_minimal_symbol_hash_tables): New function.
1564 (build_minimal_symbol_hash_tables): Code to clear the table moved
1565 to clear_minimal_symbol_hash_tables.
1566 (minimal_symbol_reader::install): Call clear_minimal_symbol_hash_tables
1567 when needed.
1568
f18ad8a1
SM
15692019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1570
1571 * infcmd.c: Remove includes.
1572 * infrun.c: Remove includes.
1573
de93309a
SM
15742019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1575
1576 * ada-lang.h (GROW_VECT): Move to ada-lang.c.
1577 (grow_vect): Remove declaration.
1578 (ada_type_of_array): Remove declaration.
1579 (ada_update_initial_language): Remove declaration.
1580 (ada_fold_name): Remove declaration.
1581 (ada_fill_in_ada_prototype): Remove declaration.
1582 (user_select_syms): Remove declaration.
1583 (get_selections): Remove declaration.
1584 (ada_tag_type): Remove declaration.
1585 (ada_value_tag): Remove declaration.
1586 (ada_is_others_clause): Remove declaration.
1587 (ada_in_variant): Remove declaration.
1588 (ada_value_struct_elt): Remove declaration.
1589 (ada_attribute_name): Remove declaration.
1590 (ada_system_address_type): Remove declaration.
1591 * ada-lang.c (ada_watch_location_expression): Make static.
1592 (GROW_VECT): Move here from ada-lang.h.
1593 (grow_vect): Make static.
1594 (ada_update_initial_language): Make static.
1595 (ada_fold_name): Make static.
1596 (ada_type_of_array): Make static.
1597 (encoded_ordered_before): Move up.
1598 (sort_choices): Move up.
1599 (print_signatures): Move up.
1600 (ada_print_symbol_signature): Move up.
1601 (get_selections): Move up and make static.
1602 (user_select_syms): Move up and make static.
1603 (ada_value_struct_elt): Move up and make static.
1604 (ada_tag_type): Make static.
1605 (ada_value_tag): Make static.
1606 (ada_is_others_clause): Make static.
1607 (ada_in_variant): Make static.
1608 (ada_attribute_name): Make static.
1609
cdc46a9f
SM
16102019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1611
1612 * ada-lang.c: Remove includes.
1613 * ada-typeprint.c: Remove includes.
1614 * ada-valprint.c: Remove includes.
1615
90421c56
SM
16162019-10-29 Simon Marchi <simon.marchi@efficios.com>
1617
1618 * addrmap.c: Add static assertions of type size, moved from
1619 _initialize_addrmap.
1620 (_initialize_addrmap): Remove.
1621
31edb802
CB
16222019-10-29 Christian Biesinger <cbiesinger@google.com>
1623
1624 * coffread.c (record_minimal_symbol): Update.
1625 (process_coff_symbol): Update.
1626 * dbxread.c (read_dbx_symtab): Update.
1627 * dwarf2read.c (add_partial_symbol): Update.
1628 (fixup_go_packaging): Update.
1629 (load_partial_dies): Update.
1630 (new_symbol): Update.
1631 * elfread.c (record_minimal_symbol): Change signature to use
1632 gdb::string_view instead of name+len.
1633 (elf_symtab_read): Update.
1634 (elf_rel_plt_read): Update.
1635 * mdebugread.c (parse_partial_symbols): Update.
1636 (handle_psymbol_enumerators): Update.
1637 (new_symbol): Update.
1638 * minsyms.c (minimal_symbol_reader::record_full): Change signature
1639 to use gdb::string_view instead of name+len.
1640 * minsyms.h (class minimal_symbol_reader) <record_full>: Likewise.
1641 * psympriv.h (add_psymbol_to_list): Likewise.
1642 * psymtab.c (add_psymbol_to_bcache): Likewise.
1643 (add_psymbol_to_list): Likewise.
1644 * stabsread.c (define_symbol): Update.
1645 * symtab.c (symbol_set_names): Change signature to use gdb::string_view.
1646 * symtab.h (SYMBOL_SET_NAMES): Likewise.
1647 (symbol_set_names): Likewise.
1648 * xcoffread.c (scan_xcoff_symtab): Update.
1649
0c921b21
CB
16502019-10-29 Christian Biesinger <cbiesinger@google.com>
1651
1652 * symtab.h (symbol_set_names): Document that copy_name must be
1653 set to true for non-nullterminated strings.
1654 * symtab.c (symbol_set_names): Only make a nullterminated copy of
1655 linkage_name if the entry was not found and we need to demangle.
1656
35e65c49
CB
16572019-10-29 Christian Biesinger <cbiesinger@google.com>
1658
1659 * Makefile.in (HFILES_NO_SRCDIR): Add gdb_binary_search.h.
1660 * dwarf2-frame.c (bsearch_fde_cmp): Update.
1661 (dwarf2_frame_find_fde): Replace bsearch with gdb::binary_search.
1662 * gdbsupport/gdb_binary_search.h: New file.
1663
ed2a2229
CB
16642019-10-29 Christian Biesinger <cbiesinger@google.com>
1665
1666 * NEWS: Mention new --with-system-gdbinit-dir option.
1667 * config.in: Regenerate.
1668 * configure: Regenerate.
1669 * configure.ac: Add new option --with-system-gdbinit-dir.
1670 * extension.c (get_ext_lang_of_file): Return extension_language_gdb
1671 for a ".gdb" suffix.
1672 * main.c (get_init_files): Change system_gdbinit argument to
1673 a vector and return the files in SYSTEM_GDBINIT_DIR in
1674 addition to SYSTEM_GDBINIT.
1675 (captured_main_1): Update.
1676 (print_gdb_help): Update.
1677 * top.c (print_gdb_configuration): Also print the value of
1678 SYSTEM_GDBINIT_DIR.
1679
87f34879
CB
16802019-10-28 Christian Biesinger <cbiesinger@google.com>
1681
1682 * gdbsupport/common-utils.h (startswith): Add an overloaded version
1683 that takes gdb::string_view arguments.
1684
30baf67b
TV
16852019-10-26 Tom de Vries <tdevries@suse.de>
1686
1687 * aarch64-linux-tdep.c: Fix typos in comments.
1688 * aarch64-tdep.c: Same.
1689 * ada-lang.c: Same.
1690 * amd64-nat.c: Same.
1691 * arc-tdep.c: Same.
1692 * arch/aarch64-insn.c: Same.
1693 * block.c: Same.
1694 * breakpoint.h: Same.
1695 * btrace.h: Same.
1696 * c-varobj.c: Same.
1697 * cli/cli-decode.c: Same.
1698 * cli/cli-script.c: Same.
1699 * cli/cli-utils.h: Same.
1700 * coff-pe-read.c: Same.
1701 * coffread.c: Same.
1702 * compile/compile-cplus-symbols.c: Same.
1703 * compile/compile-object-run.c: Same.
1704 * completer.c: Same.
1705 * corelow.c: Same.
1706 * cp-support.c: Same.
1707 * demangle.c: Same.
1708 * dwarf-index-write.c: Same.
1709 * dwarf2-frame.c: Same.
1710 * dwarf2-frame.h: Same.
1711 * eval.c: Same.
1712 * frame-base.h: Same.
1713 * frame.h: Same.
1714 * gdbcmd.h: Same.
1715 * gdbtypes.h: Same.
1716 * gnu-nat.c: Same.
1717 * guile/scm-objfile.c: Same.
1718 * i386-tdep.c: Same.
1719 * i386-tdep.h: Same.
1720 * infcall.c: Same.
1721 * infcall.h: Same.
1722 * linux-nat.c: Same.
1723 * m68k-tdep.c: Same.
1724 * macroexp.c: Same.
1725 * memattr.c: Same.
1726 * mi/mi-cmd-disas.c: Same.
1727 * mi/mi-getopt.h: Same.
1728 * mi/mi-main.c: Same.
1729 * minsyms.c: Same.
1730 * nat/aarch64-sve-linux-sigcontext.h: Same.
1731 * objfiles.h: Same.
1732 * ppc-linux-nat.c: Same.
1733 * ppc-linux-tdep.c: Same.
1734 * ppc-tdep.h: Same.
1735 * progspace.h: Same.
1736 * prologue-value.h: Same.
1737 * python/py-evtregistry.c: Same.
1738 * python/py-instruction.h: Same.
1739 * record-btrace.c: Same.
1740 * record-full.c: Same.
1741 * remote.c: Same.
1742 * rs6000-tdep.c: Same.
1743 * ser-tcp.c: Same.
1744 * sol-thread.c: Same.
1745 * sparc-sol2-tdep.c: Same.
1746 * sparc64-tdep.c: Same.
1747 * stabsread.c: Same.
1748 * symfile.c: Same.
1749 * symtab.h: Same.
1750 * target.c: Same.
1751 * tracepoint.c: Same.
1752 * tui/tui-data.h: Same.
1753 * tui/tui-io.c: Same.
1754 * tui/tui-win.c: Same.
1755 * tui/tui.c: Same.
1756 * unittests/rsp-low-selftests.c: Same.
1757 * user-regs.h: Same.
1758 * utils.c: Same.
1759 * utils.h: Same.
1760 * valarith.c: Same.
1761 * valops.c: Same.
1762 * valprint.c: Same.
1763 * valprint.h: Same.
1764 * value.c: Same.
1765 * value.h: Same.
1766 * varobj.c: Same.
1767 * x86-nat.h: Same.
1768 * xtensa-tdep.c: Same.
1769
1834d45f
AT
17702019-10-25 Ali Tamur <tamur@google.com>
1771
1772 * charset.c (find_charset_names): Reflect API change.
1773
5396ae17
CB
17742019-10-25 Christian Biesinger <cbiesinger@google.com>
1775
1776 * symtab.c (struct demangled_name_entry): Change demangled name
1777 to a unique_xmalloc_ptr<char>, now that we don't allocate it as
1778 part of the struct anymore.
1779 (symbol_set_names): No longer obstack allocate + copy the demangled
1780 name, just store the allocated name from bfd.
1781
93878f47
TT
17822019-10-25 Tom Tromey <tromey@adacore.com>
1783
1784 * dwarf2-frame.c (dwarf2_cie_table): Now a typedef.
1785 (bsearch_cie_cmp, add_cie): Remove.
1786 (find_cie): Reimplement.
1787 (decode_frame_entry_1, decode_frame_entry): Change type. Update.
1788 (dwarf2_build_frame_info): Update.
1789
7b71fc97
L
17902019-10-24 H.J. Lu <hongjiu.lu@intel.com>
1791
1792 PR gdb/25126
1793 * symfile.c (reread_symbols): Call forget_cached_source_info to
1794 clear the stale source cache.
1795
cbb5a2ea
CB
17962019-10-24 Christian Biesinger <cbiesinger@google.com>
1797
1798 * configure: Regenerate.
1799 * configure.ac: Remove code that sets python_has_threads.
1800
71737c43
CB
18012019-10-24 Christian Biesinger <cbiesinger@google.com>
1802
1803 * config.in: Regenerate.
1804 * configure: Regenerate.
1805 * configure.ac: Remove the code that uses sed to get the python
1806 version and defines HAVE_LIBPYTHON2_6 / HAVE_LIBPYTHON2_7.
1807
33d569b7
AB
18082019-10-24 Andrew Burgess <andrew.burgess@embecosm.com>
1809
1810 * python/py-progspace.c (pspy_block_for_pc): Return None for all
1811 error paths.
1812
f16f7b7c
TT
18132019-10-23 Tom Tromey <tom@tromey.com>
1814
1815 * arc-tdep.c: Remove ".." from include.
1816 * frv-tdep.c: Remove ".." from include.
1817 * lm32-tdep.c: Remove ".." from include.
1818 * microblaze-tdep.c: Remove ".." from include.
1819 * or1k-tdep.h: Remove ".." from include.
1820 * s12z-tdep.c: Remove ".." from include.
1821 * Makefile.in (OPCODES_CFLAGS): Add comment.
1822 (TOP_CFLAGS): New variable.
1823 (INTERNAL_CFLAGS_BASE): Add TOP_CFLAGS.
1824
6999161a
TT
18252019-10-23 Tom Tromey <tom@tromey.com>
1826
1827 * Makefile.in (READLINE_DIR): Update.
1828
12e7c35e
TBA
18292019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1830
1831 * infcall.c (call_function_by_hand_dummy): Fix the function
1832 comment. And extract out a code section into...
1833 (reserve_stack_space): ...this new function.
1834
37055cad
TBA
18352019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1836
1837 * infcall.c (value_arg_coerce): Remove an unused parameter.
1838 (call_function_by_hand_dummy): Update the call to
1839 'value_arg_coerce'.
1840
39bcc47c
TBA
18412019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1842
1843 * infcall.c (call_function_by_hand_dummy): Refactor.
1844
bd888c0f
TBA
18452019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1846
1847 * MAINTAINERS (Write After Approval): Add Tankut Baris Aktemur.
1848
c12d372d
TT
18492019-10-23 Tom Tromey <tom@tromey.com>
1850
1851 * configure: Rebuild.
1852 * configure.ac: Don't check for sigprocmask.
1853 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for sigprocmask.
1854
4d0b984b
TT
18552019-10-23 Tom Tromey <tom@tromey.com>
1856
1857 * configure: Rebuild.
1858 * acinclude.m4: Use m4_include, not sinclude.
1859
7e785608
TV
18602019-10-23 Tom de Vries <tdevries@suse.de>
1861
1862 PR breakpoints/24687
1863 * symtab.c (iterate_over_some_symtabs): Apply gdb_realpath on fullname.
1864
403772ef
CB
18652019-10-22 Christian Biesinger <cbiesinger@google.com>
1866
1867 * symtab.c (struct demangled_name_entry) <language>: Change from
1868 bitfield to regular variable.
1869
3a494279
CB
18702019-10-22 Christian Biesinger <cbiesinger@google.com>
1871
1872 * symtab.c (struct demangled_name_entry): Add a constructor.
1873 (free_demangled_name_entry): New function to call the destructor
1874 for demangled_name_entry.
1875 (create_demangled_names_hash): Pass free_demangled_name_entry to
1876 htab_create_alloc.
1877 (symbol_set_names): Call placement new for demangled_name_entry.
1878 * utils.c: No longer include xxhash.h here, now that fast_hash
1879 is inlined in the header.
1880 * utils.h: Instead, include it here.
1881
ccb1ba62
CB
18822019-10-22 Christian Biesinger <cbiesinger@google.com>
1883
1884 * Makefile.in: Link with libxxhash.
1885 * config.in: Regenerate.
1886 * configure: Regenerate.
1887 * configure.ac: Search for libxxhash.
1888 * utils.c (fast_hash): Use xxhash if present.
1889
1a6ff1a9
CB
18902019-10-22 Christian Biesinger <cbiesinger@google.com>
1891
1892 * utils.h (fast_hash): New function.
1893 * symtab.c (hash_demangled_name_entry): Call new function
1894 fast_hash.
1895
7bb43059
CB
18962019-10-22 Christian Biesinger <cbiesinger@google.com>
1897
1898 * symtab.c (struct demangled_name_entry): Change type of mangled
1899 to gdb::string_view. Also adds a constructor that takes the
1900 mangled name.
1901 (hash_demangled_name_entry): Update.
1902 (eq_demangled_name_entry): Update.
1903 (free_demangled_name_entry): New function to call the destructor
1904 now that this is not a POD anymore.
1905 (create_demangled_names_hash): Pass free_demangled_name_entry to
1906 htab_create_alloc.
1907 (symbol_set_names): Update.
1908
7ba99d21
AT
19092019-10-21 Ali Tamur <tamu@google.com>
1910
1911 * dwarf2read.c (dir_index): Change type.
1912 (file_name_index): Likewise.
1913 (line_header::include_dir_at): Change comment and implementation on
1914 whether it is DWARF 5.
1915 (line_header::is_valid_file_index): New function.
1916 (line_header::file_name_at): Change comment and implementation on
1917 whether it is DWARF 5.
1918 (line_header::file_names): Change to private field renamed as
1919 m_file_names and introduce a new accessor method.
1920 (line_header::file_names_size): New method.
1921 (line_header::include_dirs): Change to private field and rename as
1922 m_include_dirs.
1923 (dw2_get_file_names_reader): Define local var at a smaller scope and
1924 reflect API change.
1925 (dwarf2_cu::setup_type_unit_groups): Reflect API change.
1926 (process_structure_scope): Likewise.
1927 (line_header::add_include_dir): Change message and reflect renaming.
1928 (line_header::add_file_name): Likewise.
1929 (read_formatted_entries): Handle DW_FORM_data16.
1930 (dwarf_decode_line_header): Fix line header length calculation.
1931 (psymtab_include_file_name): Change comment and API.
1932 (lnp_state_machine::m_file): Update comment and reflect type change.
1933 (lnp_state_machine::record_line): Reflect type change.
1934 (dwarf_decode_lines): Reflect API change.
1935 (file_file_name): Likewise.
1936 (file_full_name): Likewise.
1937
45f47c3a
AB
19382019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
1939
1940 * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
1941
e5f3c0e3
TT
19422019-10-21 Tom Tromey <tom@tromey.com>
1943
1944 * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
1945
a0a461e5
TT
19462019-10-21 Tom Tromey <tom@tromey.com>
1947
1948 * configure.ac (nm.h): Conditionally create nm.h link. Subst
1949 NM_H. Use AC_CONFIG_LINKS.
1950 * configure: Rebuild.
1951 * Makefile.in (NM_H): New variable.
1952 (generated_files): Add NM_H. Remove gcore.
1953 (nm.h, stamp-nmh): New targets.
1954
54d83b8d
TT
19552019-10-20 Tom Tromey <tom@tromey.com>
1956
1957 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
1958 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
1959 obsolete comment.
1960 (put_objfile_before): Now static.
1961
23771117
SM
19622019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
1963
1964 * gdbsupport/common-utils.h (startswith): Change return type to
1965 bool.
1966
39ef2f62
CB
19672019-10-19 Christian Biesinger <cbiesinger@google.com>
1968
1969 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
1970 * breakpoint.c (bp_locations_compare): Rename to...
1971 (bp_location_is_less_than): ...this, and change to std::sort semantics.
1972 (update_global_location_list): Use std::sort instead of qsort.
1973 * buildsym.c (compare_line_numbers): Rename to...
1974 (lte_is_less_than): ...this, and change to std::sort semantics.
1975 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
1976 instead of qsort.
1977 * disasm.c (compare_lines): Rename to...
1978 (line_is_less_than): ...this, and change to std::sort semantics.
1979 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
1980 of qsort.
1981 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
1982 (fde_is_less_than): ...this, and change to std::sort semantics.
1983 (dwarf2_build_frame_info): Call std::sort instead of qsort.
1984 * mdebugread.c (compare_blocks):
1985 (block_is_less_than): ...this, and change to std::sort semantics.
1986 (sort_blocks): Call std::sort instead of qsort.
1987 * objfiles.c (qsort_cmp): Rename to...
1988 (sort_cmp): ...this, and change to std::sort semantics.
1989 (update_section_map): Call std::sort instead of qsort.
1990 * remote.c (compare_pnums): Remove.
1991 (map_regcache_remote_table): Call std::sort instead of qsort.
1992 * utils.c (compare_positive_ints): Remove.
1993 * utils.h (compare_positive_ints): Remove.
1994 * xcoffread.c (compare_lte): Remove.
1995 (arrange_linetable): Call std::sort instead of qsort.
1996
f71433ee
SDJ
19972019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
1998
1999 * symfile.c (init_entry_point_info): Fix typo.
2000 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
2001
85102364
TV
20022019-10-18 Tom de Vries <tdevries@suse.de>
2003
2004 * aarch64-tdep.c: Fix typos in comments.
2005 * ada-lang.c: Same.
2006 * ada-tasks.c: Same.
2007 * alpha-tdep.c: Same.
2008 * alpha-tdep.h: Same.
2009 * amd64-nat.c: Same.
2010 * amd64-windows-tdep.c: Same.
2011 * arc-tdep.c: Same.
2012 * arc-tdep.h: Same.
2013 * arch-utils.c: Same.
2014 * arm-nbsd-tdep.c: Same.
2015 * arm-tdep.c: Same.
2016 * ax-gdb.c: Same.
2017 * blockframe.c: Same.
2018 * btrace.c: Same.
2019 * c-varobj.c: Same.
2020 * coff-pe-read.c: Same.
2021 * coffread.c: Same.
2022 * cris-tdep.c: Same.
2023 * darwin-nat.c: Same.
2024 * dbxread.c: Same.
2025 * dcache.c: Same.
2026 * disasm.c: Same.
2027 * dtrace-probe.c: Same.
2028 * dwarf-index-write.c: Same.
2029 * dwarf2-frame-tailcall.c: Same.
2030 * dwarf2-frame.c: Same.
2031 * dwarf2read.c: Same.
2032 * eval.c: Same.
2033 * exceptions.c: Same.
2034 * fbsd-tdep.c: Same.
2035 * findvar.c: Same.
2036 * frame.c: Same.
2037 * frv-tdep.c: Same.
2038 * gnu-v3-abi.c: Same.
2039 * go32-nat.c: Same.
2040 * h8300-tdep.c: Same.
2041 * hppa-tdep.c: Same.
2042 * i386-linux-tdep.c: Same.
2043 * i386-tdep.c: Same.
2044 * ia64-libunwind-tdep.c: Same.
2045 * ia64-tdep.c: Same.
2046 * infcmd.c: Same.
2047 * infrun.c: Same.
2048 * linespec.c: Same.
2049 * linux-nat.c: Same.
2050 * linux-thread-db.c: Same.
2051 * machoread.c: Same.
2052 * mdebugread.c: Same.
2053 * mep-tdep.c: Same.
2054 * mn10300-tdep.c: Same.
2055 * namespace.c: Same.
2056 * objfiles.c: Same.
2057 * opencl-lang.c: Same.
2058 * or1k-tdep.c: Same.
2059 * osabi.c: Same.
2060 * ppc-linux-nat.c: Same.
2061 * ppc-linux-tdep.c: Same.
2062 * ppc-sysv-tdep.c: Same.
2063 * printcmd.c: Same.
2064 * procfs.c: Same.
2065 * record-btrace.c: Same.
2066 * record-full.c: Same.
2067 * remote-fileio.c: Same.
2068 * remote.c: Same.
2069 * rs6000-tdep.c: Same.
2070 * s12z-tdep.c: Same.
2071 * score-tdep.c: Same.
2072 * ser-base.c: Same.
2073 * ser-go32.c: Same.
2074 * skip.c: Same.
2075 * sol-thread.c: Same.
2076 * solib-svr4.c: Same.
2077 * solib.c: Same.
2078 * source.c: Same.
2079 * sparc-nat.c: Same.
2080 * sparc-sol2-tdep.c: Same.
2081 * sparc-tdep.c: Same.
2082 * sparc64-tdep.c: Same.
2083 * stabsread.c: Same.
2084 * stack.c: Same.
2085 * symfile.c: Same.
2086 * symtab.c: Same.
2087 * target-descriptions.c: Same.
2088 * target-float.c: Same.
2089 * thread.c: Same.
2090 * utils.c: Same.
2091 * valops.c: Same.
2092 * valprint.c: Same.
2093 * value.c: Same.
2094 * varobj.c: Same.
2095 * windows-nat.c: Same.
2096 * xcoffread.c: Same.
2097 * xstormy16-tdep.c: Same.
2098 * xtensa-tdep.c: Same.
2099
c5adaa19
TT
21002019-10-17 Tom Tromey <tromey@adacore.com>
2101
2102 * configure: Rebuild.
2103 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
2104 in AC_CONFIG_FILES invocation.
2105 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
2106 new-style config.status invocation.
2107
405feb71
TV
21082019-10-17 Tom de Vries <tdevries@suse.de>
2109
2110 * arm-nbsd-nat.c: Fix typos in comments.
2111 * arm-tdep.c: Same.
2112 * darwin-nat-info.c: Same.
2113 * dwarf2read.c: Same.
2114 * elfread.c: Same.
2115 * event-top.c: Same.
2116 * findvar.c: Same.
2117 * gdbtypes.c: Same.
2118 * hppa-tdep.c: Same.
2119 * i386-tdep.c: Same.
2120 * jit.c: Same.
2121 * main.c: Same.
2122 * mdebugread.c: Same.
2123 * moxie-tdep.c: Same.
2124 * nto-procfs.c: Same.
2125 * osabi.c: Same.
2126 * ppc-linux-tdep.c: Same.
2127 * remote.c: Same.
2128 * riscv-tdep.c: Same.
2129 * s390-tdep.c: Same.
2130 * sh-tdep.c: Same.
2131 * sparc-linux-tdep.c: Same.
2132 * sparc-nat.c: Same.
2133 * stack.c: Same.
2134 * target-descriptions.c: Same.
2135 * top.c: Same.
2136 * varobj.c: Same.
2137
befcd486
TT
21382019-10-16 Tom Tromey <tom@tromey.com>
2139
2140 * objfiles.h (struct objfile) <original_name>: Now const.
2141
17bfe554
CB
21422019-10-16 Christian Biesinger <cbiesinger@google.com>
2143
2144 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
2145 pass on to sigsetjmp's second argument.
2146 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
2147
950b7495
KS
21482019-10-16 Keith Seitz <keiths@redhat.com>
2149
2150 PR gdb/23567
2151 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
2152 sections whose size is greater than the file size.
2153
ff371ec9
JW
21542019-10-16 Jim Wilson <jimw@sifive.com>
2155
2156 * riscv-tdep.c (riscv_gcc_target_options): New.
2157 (riscv_gnu_triplet_regexp): New.
2158 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
2159 set_gdbarch_gnu_triplet_regexp.
2160
fec4e896
CB
21612019-10-16 Christian Biesinger <cbiesinger@google.com>
2162
2163 * Makefile.in: Add xml-builtin.h.
2164 * features/feature_to_c.sh: Add an include for xml-builtin.h
2165 to ensure that the compiler checks that the types match.
2166 * xml-builtin.h: New file.
2167 * xml-support.c (fetch_xml_builtin): Add missing const.
2168 * xml-support.h: Remove declaration of xml_builtins.
2169
d10eccaa
TV
21702019-10-16 Tom de Vries <tdevries@suse.de>
2171
2172 PR tdep/25096
2173 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
2174 (amd64_classify_aggregate): ... here.
2175 (amd64_classify_aggregate_field): Handled fiels of nested structs
2176 recursively.
2177
745ff14e
TV
21782019-10-16 Tom de Vries <tdevries@suse.de>
2179
2180 PR tdep/24104
2181 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
2182 that handles 'theclass'.
2183
791b7405
AB
21842019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2185
2186 * linespec.c (decode_digits_ordinary): Update comment.
2187 * make-target-delegates: No longer need to handle VEC case.
2188 * memrange.c (normalize_mem_ranges): Update comment.
2189 * namespace.c (add_using_directive): Update comment.
2190 * objc-lang.c (uniquify_strings): Update comment.
2191 * ppc-linux-nat.c (struct thread_points): Update comment.
2192 * probe.h (find_probes_in_objfile): Update comment.
2193 * target.h (enum flash_preserve_mode): Update comment.
2194 * varobj.c (varobj_restrict_range): Update comment.
2195 * varobj.h (varobj_list_children): Update comment.
2196
0dc32745
AB
21972019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2198
2199 * Makefile.in: Remove references to vec.h and vec.c.
2200 * aarch64-tdep.c: No longer include vec.h.
2201 * ada-lang.c: Likewise.
2202 * ada-lang.h: Likewise.
2203 * arm-tdep.c: Likewise.
2204 * ax.h: Likewise.
2205 * breakpoint.h: Likewise.
2206 * charset.c: Likewise.
2207 * cp-support.h: Likewise.
2208 * dtrace-probe.c: Likewise.
2209 * dwarf2read.c: Likewise.
2210 * extension.h: Likewise.
2211 * gdb_bfd.c: Likewise.
2212 * gdbsupport/gdb_vecs.h: Likewise.
2213 * gdbsupport/vec.c: Remove.
2214 * gdbsupport/vec.h: Remove.
2215 * gdbthread.h: Likewise.
2216 * guile/scm-type.c: Likewise.
2217 * inline-frame.c: Likewise.
2218 * machoread.c: Likewise.
2219 * memattr.c: Likewise.
2220 * memrange.h: Likewise.
2221 * namespace.h: Likewise.
2222 * nat/linux-btrace.h: Likewise.
2223 * osdata.c: Likewise.
2224 * parser-defs.h: Likewise.
2225 * progspace.h: Likewise.
2226 * python/py-type.c: Likewise.
2227 * record-btrace.c: Likewise.
2228 * rust-exp.y: Likewise.
2229 * solib-target.c: Likewise.
2230 * stap-probe.c: Likewise.
2231 * target-descriptions.c: Likewise.
2232 * target-memory.c: Likewise.
2233 * target.h: Likewise.
2234 * varobj.c: Likewise.
2235 * varobj.h: Likewise.
2236 * xml-support.h: Likewise.
2237
ae640021
AB
22382019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2239
2240 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
2241 Update for new std::vector based implementation.
2242 (process_psymtab_comp_unit_reader): Likewise.
2243 (scan_partial_symbols): Likewise.
2244 (recursively_compute_inclusions): Likewise.
2245 (compute_compunit_symtab_includes): Likewise.
2246 (process_imported_unit_die): Likewise.
2247 (queue_and_load_dwo_tu): Likewise.
2248 (follow_die_sig_1): Likewise.
2249 * gdb/dwarf2read.h: Remove DEF_VEC_P.
2250 (typedef dwarf2_per_cu_ptr): Remove.
2251 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
2252 function.
2253 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
2254 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
2255 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
2256 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
2257 std::vector.
2258
55dfc88f
TT
22592019-10-15 Tom Tromey <tromey@adacore.com>
2260
2261 * windows-nat.c (windows_nat_target::resume): Use %x when logging
2262 TID.
2263
96b49c5e
TT
22642019-10-15 Tom Tromey <tromey@adacore.com>
2265
2266 * windows-nat.c (windows_nat_target::fetch_registers)
2267 (windows_nat_target::store_registers): Rename "pid" to "tid".
2268
953cff56
TT
22692019-10-15 Tom Tromey <tromey@adacore.com>
2270
2271 * gdbarch.h, gdbarch.c: Rebuild.
2272 * gdbarch.sh (gcc_target_options): Change return type to
2273 std::string.
2274 * compile/compile.c (get_args): Update.
2275 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
2276 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
2277 std::string.
2278 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
2279 std::string.
2280 * arch-utils.c (default_gcc_target_options): Return std::string.
2281 * arch-utils.h (default_gcc_target_options): Return std::string.
2282 * s390-tdep.c (s390_gcc_target_options): Return std::string.
2283
81e6b8eb
CB
22842019-10-15 Christian Biesinger <cbiesinger@google.com>
2285
2286 * breakpoint.c (breakpoint_chain): Make static.
2287 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
2288 of accessing breakpoint_chain.
2289
95da600f
CB
22902019-10-15 Christian Biesinger <cbiesinger@google.com>
2291
2292 * breakpoint.c (iterate_over_breakpoints): Change function pointer
2293 to a gdb::function_view and return value to bool.
2294 * breakpoint.h (iterate_over_breakpoints): Likewise.
2295 * dummy-frame.c (pop_dummy_frame_bpt): Update.
2296 (pop_dummy_frame): Update.
2297 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
2298 (gdbscm_breakpoints): Update.
2299 * python/py-breakpoint.c (build_bp_list): Update.
2300 (gdbpy_breakpoints): Update.
2301 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
2302 Update.
2303 (bpfinishpy_handle_stop): Update.
2304 (bpfinishpy_handle_exit): Update.
2305 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
2306 (svr4_update_solib_event_breakpoints): Update.
2307
ba18312d
AA
23082019-10-15 Andreas Arnez <arnez@linux.ibm.com>
2309
2310 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
2311 when unwrapping single-field structs.
2312
6acc1a0b
SM
23132019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
2314
2315 * dwarf2read.c: Remove includes.
2316
284782de
SM
23172019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
2318
2319 * ui-out.c (ui_out::call_do_message): Silence
2320 -Wformat-nonliteral warning.
2321
073bbbb0
SM
23222019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
2323
2324 * breakpoint.c: Remove some includes: continuations.h, skip.h,
2325 mi/mi-main.h, readline/readline.h, readline/history.h. Add
2326 include: readline/tilde.h.
2327
7b9a15e1
CB
23282019-10-12 Christian Biesinger <cbiesinger@google.com>
2329
2330 * remote.c (remote_target::get_trace_status): Remove declaration of
2331 trace_regblock_size.
2332
cc8dee1f
CB
23332019-10-12 Christian Biesinger <cbiesinger@google.com>
2334
2335 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
2336 (show_user): Remove declaration of cmdlist.
2337 * cli/cli-cmds.h (max_user_call_depth): Declare.
2338 * cli/cli-script.c (execute_user_command): Remove declaration
2339 of max_user_call_depth.
2340
a83d4ef6
JW
23412019-10-11 Jim Wilson <jimw@sifive.com>
2342
5f93c5a6
JW
2343 * gdbsupport/print-utils.h (pulongest): Fix comment.
2344 (plongest): Likewise.
2345 (phex): Add missing comment, mention leading zeros.
2346 (phex_nz): Add mention of no leading zeros to comment.
2347
a83d4ef6
JW
2348 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
2349 plongest instead of unsigned long long cast.
2350
26344e0c
CB
23512019-10-10 Christian Biesinger <cbiesinger@google.com>
2352
2353 * main.c (captured_main_1): Include gdbtk.h and remove declarations
2354 for external_editor_command and gdbtk_test.
2355
c2c440a9
CB
23562019-10-10 Christian Biesinger <cbiesinger@google.com>
2357
2358 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
2359 * varobj.c (varobjdebug): Move comment to...
2360 * varobj.h (varobjdebug): ...here, and declare.
2361
a31bff9d
TT
23622019-10-09 Tom Tromey <tom@tromey.com>
2363
2364 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
2365 erase_data_content.
2366
7523da63
TT
23672019-10-09 Tom Tromey <tom@tromey.com>
2368
2369 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
2370 * tui/tui-stack.c (tui_locator_window::rerender): Update.
2371 * tui/tui-command.c (tui_cmd_window::resize)
2372 (tui_refresh_cmd_win): Update.
2373 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
2374 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
2375 * tui/tui-data.c (~tui_gen_win_info): Remove.
2376 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
2377 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
2378 (tui_redisplay_readline, tui_mld_flush)
2379 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
2380 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
2381 (tui_data_window::erase_data_content)
2382 (tui_data_item_window::rerender)
2383 (tui_data_item_window::refresh_window): Update.
2384 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
2385 (box_win, tui_gen_win_info::make_window)
2386 (tui_gen_win_info::make_visible): Update.
2387 (tui_delete_win): Remove.
2388 * tui/tui-winsource.c
2389 (tui_source_window_base::do_erase_source_content): Update.
2390 (tui_show_source_line, tui_source_window_base::update_tab_width)
2391 (tui_source_window_base::update_exec_info): Update.
2392 * tui/tui-data.h (struct curses_deleter): New.
2393 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
2394 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
2395
a7798e7f
TT
23962019-10-09 Tom Tromey <tom@tromey.com>
2397
2398 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
2399
5c45899e
TT
24002019-10-09 Tom Tromey <tom@tromey.com>
2401
2402 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
2403 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
2404
6d7fd9aa
TT
24052019-10-09 Tom Tromey <tom@tromey.com>
2406
2407 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
2408 window height directly.
2409 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
2410 declare.
2411 * tui/tui-layout.c (tui_default_win_height): Remove.
2412 (tui_default_win_viewport_height): Remove.
2413
d2dd1084
TT
24142019-10-09 Tom Tromey <tom@tromey.com>
2415
2416 * tui/tui.h: Remove comments.
2417
cff32449
TV
24182019-10-09 Tom de Vries <tdevries@suse.de>
2419
2420 * python/lib/gdb/printer/bound_registers.py: Use
2421 '^builtin_type_bound128' as regexp argument for
2422 add_builtin_pretty_printer.
2423
6a25e8a2
CB
24242019-10-09 Christian Biesinger <cbiesinger@google.com>
2425
2426 * guile/guile.c (guile_extension_script_ops): Remove forward
2427 declaration and mark as static.
2428 (guile_script_ops): Likewise.
2429 (extension_language_guile): Move further down in the file so
2430 it can reference the definitions for guile_{extension_,}script_ops.
2431
6d9d6da4
AA
24322019-10-09 Andreas Arnez <arnez@linux.ibm.com>
2433
2434 * s390-tdep.c (390_process_record): Handle new arch13 instructions
2435 except SORTL, DFLTCC, and KDSA.
2436
3abea05d
TT
24372019-10-08 Tom Tromey <tromey@adacore.com>
2438
2439 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
2440 (struct safe_symbol_file_add_args): Remove.
2441
dde996e2
TT
24422019-10-08 Tom Tromey <tromey@adacore.com>
2443
2444 * windows-nat.c: Don't include buildsym-legacy.h.
2445
cd6fdaa1
TT
24462019-10-08 Tom Tromey <tromey@adacore.com>
2447
2448 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
2449
79bb1944
CB
24502019-10-08 Christian Biesinger <cbiesinger@google.com>
2451
2452 * gdbtypes.c (overload_debug): Move comment to header.
2453 * gdbtypes.h (overload_debug): Declare.
2454 * valops.c: Remove declaration of overload_debug, instead
2455 include gdbtypes.h.
2456
34916edc
CB
24572019-10-08 Christian Biesinger <cbiesinger@google.com>
2458
2459 * language.c (show_language_command): Pass lang_frame_mismatch_warn
2460 through _().
2461 (lang_frame_mismatch_warn): Make const, mark with N_(), and
2462 move comment...
2463 * language.h (lang_frame_mismatch_warn): ... here. Also add
2464 declaration.
2465 * top.c (lang_frame_mismatch_warn): Remove declaration.
2466 (check_frame_language_change): Pass lang_frame_mismatch_warn
2467 through _().
2468
bad5c026
CB
24692019-10-07 Christian Biesinger <cbiesinger@google.com>
2470
2471 * c-lang.h (vtbl_ptr_name): Declare.
2472 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
2473 it from the header.
2474 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
2475
51f1fdc3
CB
24762019-10-07 Christian Biesinger <cbiesinger@google.com>
2477
2478 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
2479 gdb_static_assert.
2480
30d1f018
WP
24812019-10-07 Weimin Pan <weimin.pan@oracle.com>
2482
606813d5
WP
2483 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
2484 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
30d1f018
WP
2485 * ctfread.c: New file.
2486 * ctfread.h: New file.
2487 * elfread.c: Include ctfread.h.
2488 (struct elfinfo text_p): New member ctfsect.
2489 (elf_locate_sections): Mark CTF section.
2490 (elf_symfile_read): Call elfctf_build_psymtabs.
2491 * Makefile.in (LIBCTF): Add.
2492 (CLIBS): Use it.
2493 (CDEPS): Likewise.
2494 (DIST): Add ctfread.c.
606813d5
WP
2495
24962019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
2497
2498 * ctfread.c (struct nextfield): Renamed to ...
2499 (struct ctf_nextfield): ... this.
2500 (struct field_info): Renamed to ...
2501 (strut ctf_field_info): ... this.
2502 (attach_fields_to_type): Update for renamed structures.
2503 (ctf_add_member_cb): Likewise.
2504 (ctf_add_enum_member_cb): Likewise.
2505 (process_struct_members): Likewise.
2506 (process_enum_type): Likewise.
30d1f018 2507
518fe38c
WP
25082019-10-07 Weimin Pan <weimin.pan@oracle.com>
2509
2510 * tracectf.h: Rename, was ctf.h.
2511 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
2512 * tracefile.c: Likewise.
2513 * tracepoint.c: Remove unused include ctf.h.
2514 * mi/mi-main.c: Likewise.
2515 * Makefile.in Replace ctf.c with tracectf.c.
2516
225f296a
JB
25172019-10-06 Joel Brobecker <brobecker@adacore.com>
2518
2519 * version.in: Change version number to "9.0.50.DATE-git".
2520
77c2dba3
TT
25212019-10-03 Tom Tromey <tom@tromey.com>
2522
2523 PR rust/24976:
2524 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
2525
179aed7f
AB
25262019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2527
2528 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
2529 cp_search_name_hash.
2530 * NEWS: Add entry about nested function support.
2531
0a4b0913
AB
25322019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
2533 Andrew Burgess <andrew.burgess@embecosm.com>
2534
2535 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
2536 for nested static variables when searchin VAR_DOMAIN.
2537 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
2538 global scope, update comment.
2539 (add_partial_subprogram): Call add_partial_subprogram recursively
2540 for nested subroutines when processinng Fortran.
2541 (load_partial_dies): Process the child entities of a subprogram
2542 when processing Fortran.
2543 (partial_die_parent_scope): Handle building scope
2544 for Fortran nested functions.
2545 (process_die): Record that nested functions have a scope.
2546 (new_symbol): Always record Fortran subprograms on the global
2547 symbol list.
2548 (determine_prefix): How to build the prefix for Fortran
2549 subprograms.
2550
d8c06f22
AB
25512019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2552
2553 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
2554 have just sent the thread a SIGSTOP and are waiting for it to
2555 arrive.
2556
a8b3b8e9
AB
25572019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2558
2559 * btrace.c (btrace_add_pc): Remove whitespace before the template
2560 parameter in 'std::vector <...>'.
2561 (parse_xml_btrace_block): Likewise.
2562 (btrace_maint_decode_pt): Likewise.
2563 (btrace_maint_update_packets): Likewise.
2564 (btrace_maint_print_packets): Likewise.
2565 * btrace.h (struct btrace_maint_info): Likewise.
2566 * dwarf2read.c (struct type_unit_group): Likewise.
2567 (build_type_psymtabs_reader): Likewise.
2568 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
2569 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
2570 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
2571
4d825eab
TV
25722019-10-03 Tom de Vries <tdevries@suse.de>
2573
2574 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
2575 the first line of the help text for set/show style metadata.
2576
80fd2826
TT
25772019-10-02 Tom Tromey <tromey@adacore.com>
2578
2579 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
2580 * gdbsupport/common-inferior.c: New file.
2581 * infcmd.c (startup_with_shell): Don't define.
2582 * nat/fork-inferior.h (startup_with_shell): Don't declare.
2583 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
2584 * inferior.h (startup_with_shell): Don't declare.
2585
70054538
CB
25862019-10-02 Christian Biesinger <cbiesinger@google.com>
2587
2588 * gdbsupport/gdb_assert.h: Include errors.h.
2589 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
2590
37f6a7f4
TT
25912019-10-02 Tom Tromey <tromey@adacore.com>
2592
2593 * NEWS: Add $_ada_exception entry.
2594 * ada-lang.c (struct ada_catchpoint): Add constructor.
2595 <m_kind>: New member.
2596 (allocate_location_exception, re_set_exception): Remove
2597 "ex" parameter.
2598 (should_stop_exception): Compute $_ada_exception.
2599 (check_status_exception, print_it_exception)
2600 (print_one_exception, print_mention_exception): Remove
2601 "ex" parameter.
2602 (allocate_location_catch_exception, re_set_catch_exception)
2603 (check_status_exception, print_it_catch_exception)
2604 (print_one_catch_exception, print_mention_catch_exception)
2605 (print_recreate_catch_exception)
2606 (allocate_location_catch_exception_unhandled)
2607 (re_set_catch_exception_unhandled)
2608 (check_status_exception, print_it_catch_exception_unhandled)
2609 (print_one_catch_exception_unhandled)
2610 (print_mention_catch_exception_unhandled)
2611 (print_recreate_catch_exception_unhandled)
2612 (allocate_location_catch_assert, re_set_catch_assert)
2613 (check_status_assert, print_it_catch_assert)
2614 (print_one_catch_assert, print_mention_catch_assert)
2615 (print_recreate_catch_assert)
2616 (allocate_location_catch_handlers, re_set_catch_handlers)
2617 (check_status_handlers, print_it_catch_handlers)
2618 (print_one_catch_handlers, print_mention_catch_handlers)
2619 (print_recreate_catch_handlers): Remove.
2620 (create_ada_exception_catchpoint): Update.
2621 (initialize_ada_catchpoint_ops): Update.
2622
fccf9de1
TT
26232019-10-02 Tom Tromey <tromey@adacore.com>
2624
2625 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
2626 (create_excep_cond_exprs): Simplify exception string computation.
2627 (ada_exception_catchpoint_cond_string): Likewise.
2628
4b610737
TT
26292019-10-02 Tom Tromey <tromey@adacore.com>
2630
2631 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
2632 * ada-lang.c (lesseq_defined_than): Handle
2633 LOC_STATIC.
2634 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
2635 parameter.
2636 (dwarf2_has_info): Likewise.
2637 (new_symbol): Set maybe_copied on symbol when
2638 appropriate.
2639 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
2640 parameter.
2641 <can_copy>: New member.
2642 * elfread.c (record_minimal_symbol): Set maybe_copied
2643 on symbol when appropriate.
2644 (elf_symfile_read): Update call to dwarf2_has_info.
2645 * minsyms.c (lookup_minimal_symbol_linkage): New
2646 function.
2647 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
2648 * symtab.c (get_symbol_address, get_msymbol_address):
2649 New functions.
2650 * symtab.h (get_symbol_address, get_msymbol_address):
2651 Declare.
2652 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
2653 maybe_copied.
2654 (struct symbol, struct minimal_symbol) <maybe_copied>:
2655 New member.
2656
1dd58850
TT
26572019-10-02 Tom Tromey <tromey@adacore.com>
2658
2659 * source.c (struct current_source_location): New.
2660 (current_source_key): New global.
2661 (current_source_symtab, current_source_line)
2662 (current_source_pspace): Remove.
2663 (get_source_location): New function.
2664 (get_current_source_symtab_and_line)
2665 (set_default_source_symtab_and_line)
2666 (set_current_source_symtab_and_line)
2667 (clear_current_source_symtab_and_line, select_source_symtab)
2668 (info_source_command, print_source_lines_base)
2669 (info_line_command, search_command_helper, _initialize_source):
2670 Update.
2671
5c281dbb
TT
26722019-10-02 Tom Tromey <tromey@adacore.com>
2673
2674 * source.c (select_source_symtab): Don't call
2675 decode_line_with_current_source.
2676
d3d32391
AB
26772019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2678
2679 * symtab.c (lookup_global_symbol): Search global block.
2680
38583298
TT
26812019-10-02 Tom Tromey <tromey@adacore.com>
2682
2683 * coffread.c (process_coff_symbol): Update.
2684 * dwarf2read.c (var_decode_location, new_symbol): Update.
2685 * mdebugread.c (parse_symbol): Update.
2686 * objfiles.c (relocate_one_symbol): Update.
2687 * stabsread.c (define_symbol, fix_common_block)
2688 (scan_file_globals): Update.
2689 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
2690 (SET_SYMBOL_VALUE_ADDRESS): New macro.
2691 * xcoffread.c (process_xcoff_symbol): Update.
2692
9344c18f
AA
26932019-10-02 Andreas Arnez <arnez@linux.ibm.com>
2694
2695 * MAINTAINERS: Update my email address.
2696
df07e2c7
AB
26972019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2698
2699 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
2700 std::vector.
2701 (build_type_psymtabs_reader): Update for std::vector.
2702 (build_type_psymtab_dependencies): Likewise.
2703 * dwarf2read.h: Remove use of DEF_VEC_P.
2704 (typedef sig_type_ptr): Delete.
2705
554ac434
AB
27062019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2707
2708 * btrace.c (btrace_maint_clear): Update to handle change from VEC
2709 to std::vector.
2710 (btrace_maint_decode_pt): Likewise, and move allocation of the
2711 vector outside of the loop.
2712 (btrace_maint_update_packets): Update to handle change from VEC to
2713 std::vector.
2714 (btrace_maint_print_packets): Likewise.
2715 (maint_info_btrace_cmd): Likewise.
2716 * btrace.h: Remove use of DEF_VEC_O.
2717 (typedef btrace_pt_packet_s): Delete.
2718 (struct btrace_maint_info) <packets>: Change fromm VEC to
2719 std::vector.
2720 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
2721
46f29a9a
AB
27222019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2723
2724 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
2725 make accesses into the vector constant references.
2726 (btrace_add_pc): Update for std::vector.
2727 (btrace_stitch_bts): Likewise.
2728 (parse_xml_btrace_block): Likewise.
2729 (btrace_maint_update_packets): Likewise.
2730 (btrace_maint_print_packets): Likewise.
2731 (maint_info_btrace_cmd): Likewise.
2732 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
2733 std::vector.
2734 (btrace_data::empty): Likewise.
2735 (btrace_data_append): Likewise.
2736 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
2737 (typedef btrace_block_s): Delete.
2738 (struct btrace_block): Add constructor.
2739 (struct btrace_data_bts) <blocks>: Change to std::vector.
2740 * nat/linux-btrace.c (perf_event_read_bts): Update for
2741 std::vector.
2742 (linux_read_bts): Likewise.
2743
d770d56f
TT
27442019-10-01 Tom Tromey <tom@tromey.com>
2745
2746 * cli/cli-logging.c (show_logging_filename): Use styled_string.
2747
9d636d67
TT
27482019-10-01 Tom Tromey <tom@tromey.com>
2749
2750 * stack.c (print_frame, info_frame_command_core): Use
2751 styled_string.
2752 * linux-thread-db.c (try_thread_db_load_1)
2753 (try_thread_db_load_from_pdir_1): Use styled_string.
2754 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
2755 (auto_load_section_scripts, info_auto_load_local_gdbinit)
2756 (maybe_print_unsupported_script_warning)
2757 (maybe_print_script_not_found_warning): Use styled_string.
2758 * ada-lang.c (user_select_syms): Use styled_string.
2759
7f6aba03
TT
27602019-10-01 Tom Tromey <tom@tromey.com>
2761
2762 * p-lang.c (pascal_printstr): Use metadata style.
2763 * value.c (show_convenience): Use metadata style.
2764 * valprint.c (valprint_check_validity, val_print_optimized_out)
2765 (val_print_not_saved, val_print_unavailable)
2766 (val_print_invalid_address, generic_val_print, val_print)
2767 (value_check_printable, val_print_array_elements): Use metadata
2768 style.
2769 * ui-out.h (class ui_out) <field_fmt>: New overload.
2770 <do_field_fmt>: Add style parameter.
2771 * ui-out.c (ui_out::field_fmt): New overload.
2772 * typeprint.c (type_print_unknown_return_type)
2773 (val_print_not_allocated, val_print_not_associated): Use metadata
2774 style.
2775 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
2776 parameter.
2777 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
2778 * tracepoint.c (tvariables_info_1): Use metadata style.
2779 * stack.c (print_frame_arg, print_frame_info, print_frame)
2780 (info_frame_command_core): Use metadata style.
2781 * skip.c (info_skip_command): Use metadata style.
2782 * rust-lang.c (rust_print_enum): Use metadata style.
2783 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
2784 metadata style.
2785 * python/py-framefilter.c (py_print_single_arg): Use metadata
2786 style.
2787 * printcmd.c (do_one_display, print_variable_and_value): Use
2788 metadata style.
2789 * p-valprint.c (pascal_val_print)
2790 (pascal_object_print_value_fields): Use metadata style.
2791 * p-typeprint.c (pascal_type_print_base): Use metadata style.
2792 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
2793 parameter.
2794 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
2795 * m2-valprint.c (m2_print_long_set): Use metadata style.
2796 * m2-typeprint.c (m2_print_type): Use metadata style.
2797 * infcmd.c (print_return_value_1): Use metadata style.
2798 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
2799 * f-valprint.c (info_common_command_for_block): Use metadata
2800 style.
2801 * f-typeprint.c (f_type_print_base): Use metadata style.
2802 * expprint.c (print_subexp_standard): Use metadata style.
2803 * cp-valprint.c (cp_print_value_fields): Use metadata style.
2804 * cli/cli-style.h (class cli_style_option): Add constructor.
2805 (metadata_style): Declare.
2806 * cli/cli-style.c (metadata_style): New global.
2807 (_initialize_cli_style): Register metadata style.
2808 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
2809 parameter.
2810 * cli-out.c (cli_ui_out::do_field_fmt): Update.
2811 * c-typeprint.c (c_type_print_base_struct_union)
2812 (c_type_print_base_1): Use metadata style.
2813 * breakpoint.c (watchpoint_value_print)
2814 (print_one_breakpoint_location): Use metadata style.
2815 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
2816 style.
2817 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
2818 style.
2819 * ada-valprint.c (val_print_packed_array_elements, printstr)
2820 (print_field_values, ada_val_print_ref, ada_val_print): Use
2821 metadata style.
2822 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
2823 style.
2824 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
2825 style.
2826 * ada-lang.c (user_select_syms): Use metadata style.
2827
14309bb6
TT
28282019-10-01 Tom Tromey <tom@tromey.com>
2829
2830 * cli/cli-cmds.c (pwd_command): Style output.
2831
6a831f06
PA
28322019-10-01 Pedro Alves <palves@redhat.com>
2833 Tom Tromey <tom@tromey.com>
2834
2835 * symtab.c (print_symbol_info): Use %ps.
2836 (print_msymbol_info): Use %ps.
2837 * symfile.c (symbol_file_add_with_addrs): Use %ps.
2838 * printcmd.c (print_variable_and_value): Use %ps.
2839 * macrocmd.c (show_pp_source_pos): Use %ps.
2840 * infrun.c (print_exited_reason): Use ui_out::message.
2841 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
2842 (describe_other_breakpoints): Use ui_out::message and new
2843 formats.
2844 (say_where): Use new formats.
2845 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
2846 and new formats.
2847
2a3c1174
PA
28482019-10-01 Pedro Alves <palves@redhat.com>
2849 Tom Tromey <tom@tromey.com>
2850
2851 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
2852 (test_gdb_formats): New function.
2853 (run_tests): Call it.
2854 (test_format_specifier): Update.
2855 * utils.h (fputs_filtered): Update comment.
2856 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
2857 (fputs_styled_unfiltered): Declare.
2858 * utils.c (fputs_styled_unfiltered): New function.
2859 (vfprintf_maybe_filtered): Add gdbfmt parameter.
2860 (vfprintf_filtered): Update.
2861 (vfprintf_unfiltered, vprintf_filtered): Update.
2862 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
2863 * ui-out.h (enum ui_out_flag) <unfiltered_output,
2864 disallow_ui_out_field>: New constants.
2865 (enum class field_kind): New.
2866 (struct base_field_s, struct signed_field_s): New.
2867 (signed_field): New function.
2868 (struct string_field_s): New.
2869 (string_field): New function.
2870 (struct styled_string_s): New.
2871 (styled_string): New function.
2872 (class ui_out) <message>: Add comment.
2873 <vmessage, call_do_message>: New methods.
2874 <do_message>: Add style parameter.
2875 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
2876 methods.
2877 (ui_out::message): Rewrite.
2878 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
2879 parameter.
2880 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
2881 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
2882 gdb_extensions parameter.
2883 (class format_piece): Add parameter to constructor.
2884 (n_int_args): New field.
2885 * gdbsupport/format.c (format_pieces::format_pieces): Add
2886 gdb_extensions parameter. Handle '*'.
2887 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
2888 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
2889 vfprintf_styled_no_gdbfmt.
2890 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
2891 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
2892 unfiltered output.
2893 * ui-style.h (struct ui_file_style) <ptr>: New method.
2894
0dfe5bfb
TT
28952019-10-01 Tom Tromey <tom@tromey.com>
2896
2897 * unittests/format_pieces-selftests.c: Update. Add final format.
2898 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
2899 empty literal pieces.
2900
e43b10e1
TT
29012019-10-01 Tom Tromey <tom@tromey.com>
2902
2903 * ui-out.h (enum class ui_out_style_kind): Remove.
2904 (class ui_out) <field_string, field_stsream, do_field_string>:
2905 Change type of "style".
2906 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
2907 (ui_out::field_string): Update.
2908 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
2909 of "style".
2910 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
2911 * tracepoint.c (print_one_static_tracepoint_marker): Update.
2912 * stack.c (print_frame_arg, print_frame_info, print_frame):
2913 Update.
2914 * source.c (print_source_lines_base): Update.
2915 * solib.c (info_sharedlibrary_command): Update.
2916 * skip.c (info_skip_command): Update.
2917 * record-btrace.c (btrace_call_history_src_line)
2918 (btrace_call_history): Update.
2919 * python/py-framefilter.c (py_print_frame): Update.
2920 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
2921 "style".
2922 * mi/mi-out.c (mi_ui_out::do_table_header)
2923 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
2924 (mi_ui_out::do_field_string): Update.
2925 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2926 Update.
2927 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
2928 "style".
2929 * cli-out.c (cli_ui_out::do_table_header)
2930 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
2931 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
2932 (cli_ui_out::do_field_fmt): Update.
2933 * breakpoint.c (print_breakpoint_location): Update.
2934 (update_static_tracepoint): Update.
2935
cd7c32c3
PW
29362019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2937
2938 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
2939 conversion of gdb_datadir.
2940 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
2941 remove not needed c_str ().
2942
8fe0f950
AT
29432019-09-30 Ali Tamur <tamur@google.com>
2944
2945 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
2946 (dwarf2_string_attr): Likewise.
2947
5f48f8f3
AT
29482019-09-30 Ali Tamur <tamur@google.com>
2949
2950 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
2951 (process_full_type_unit): Likewise.
2952 (dump_die_shallow): Likewise.
2953 (cu_debug_loc_section): Likewise.
2954
6fb08628
CB
29552019-09-28 Christian Biesinger <cbiesinger@google.com>
2956
2957 * minsyms.c (compare_minimal_symbols): Rename to...
2958 (minimal_symbol_is_less_than): ...this, and adjust to STL
2959 conventions (return bool, take arguments as references)
2960 (minimal_symbol_reader::install): Call std::sort instead
2961 of qsort.
2962
c7ee338a
CB
29632019-09-29 Christian Biesinger <cbiesinger@google.com>
2964
2965 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
2966 hash and why.
2967 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
2968 msymbol_hash, msymbol_demangled_hash>: Improve comments.
2969
703a86c2
SM
29702019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
2971
2972 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
2973 * psympriv.h (add_psymbol_to_list): Move comment here and update
2974 it.
2975
0df0352a
TV
29762019-09-29 Tom de Vries <tdevries@suse.de>
2977
2978 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
2979 Use $tmpdir/$(basename "$output_file").dwz instead of
2980 "${output_file}.dwz".
2981
ad75efa6
SM
29822019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
2983
2984 PR gdb/25045
2985 * hppa-linux-nat.c: Include gdbarch.h.
2986
ececd218
CB
29872019-09-26 Christian Biesinger <cbiesinger@google.com>
2988
2989 * blockframe.c (find_pc_partial_function): Change return type to bool.
2990 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
2991 * minsyms.c (in_gnu_ifunc_stub): Likewise.
2992 (stub_gnu_ifunc_resolve_name): Likewise.
2993 * symtab.c (compare_filenames_for_search): Likewise.
2994 (compare_glob_filenames_for_search): Likewise.
2995 (matching_obj_sections): Likewise.
2996 (symbol_matches_domain): Likewise.
2997 (find_line_symtab): Change out param EXACT_MATCH to bool *.
2998 (find_line_pc): Change return type to bool.
2999 (find_line_pc_range): Likewise.
3000 (producer_is_realview): Likewise.
3001 * symtab.h (symbol_matches_domain): Likewise.
3002 (find_pc_partial_function): Likewise.
3003 (find_pc_line_pc_range): Likewise.
3004 (in_gnu_ifunc_stub): Likewise.
3005 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
3006 (find_line_pc): Likewise.
3007 (find_line_pc_range): Likewise.
3008 (matching_obj_sections): Likewise.
3009 (find_line_symtab): Change out parameter to bool.
3010 (producer_is_realview): Change return type to bool.
3011 (compare_filenames_for_search): Likewise.
3012 (compare_glob_filenames_for_search): Likewise.
3013
27a900b8
TT
30142019-09-26 Tom Tromey <tom@tromey.com>
3015
3016 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
3017 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
3018 * gdb_usleep.h: Remove.
3019 * gdb_usleep.c: Remove.
3020 * utils.c: Don't include gdb_usleep.h.
3021
5d63b30a
TT
30222019-09-26 Tom Tromey <tromey@adacore.com>
3023
3024 * python/py-type.c (type_to_type_object): Call check_typedef
3025 for stub types.
3026
12904d37
TT
30272019-09-26 Tom Tromey <tom@tromey.com>
3028
3029 * utils.h (initialize_utils): Don't declare.
3030 * top.c (gdb_init): Don't call initialize_utils.
3031 * utils.c (initialize_utils): Remove. Move contents...
3032 (_initialize_utils): ... here.
3033
858f25f0
TT
30342019-09-25 Tom Tromey <tom@tromey.com>
3035
3036 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
3037 * utils.h (make_hex_string): Don't declare.
3038 * utils.c (make_hex_string): Remove.
3039
3d435220
TV
30402019-09-24 Tom de Vries <tdevries@suse.de>
3041
3042 PR gdb/23815
3043 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
3044 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
3045
ddd44b70
DD
30462019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
3047
3048 * NEWS: Mention new simulator port for PRU.
3049
f945dedf
CB
30502019-09-23 Christian Biesinger <cbiesinger@google.com>
3051
3052 * ada-exp.y (write_object_remaining): Update.
3053 * ada-lang.c (ada_decode): Return a std::string instead of a char*
3054 and eliminate the static buffer.
3055 (ada_decode_symbol): Update.
3056 (ada_la_decode): Update.
3057 (ada_sniff_from_mangled_name): Update.
3058 (is_valid_name_for_wild_match): Update.
3059 (ada_lookup_name_info::matches): Update and simplify.
3060 (name_matches_regex): Update.
3061 (ada_add_global_exceptions): Update.
3062 * ada-lang.h (ada_decode): Update signature.
3063 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
3064 * dwarf-index-write.c (debug_names::insert): Update.
3065
7ab78ccb
SM
30662019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
3067
3068 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
3069 formatting.
3070
9252448b
SM
30712019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
3072
3073 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
3074 Change "nonzero" to "true" in documentation.
3075
626ca2c0
CB
30762019-09-20 Christian Biesinger <cbiesinger@google.com>
3077
3078 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
3079 (_initialize_darwin_solib): Don't set
3080 darwin_so_ops.lookup_lib_global_symbol.
3081 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
3082 set_gdbarch_iterate_over_objfiles_in_search_order.
3083 (elf_lookup_lib_symbol): Rename to...
3084 (svr4_iterate_over_objfiles_in_search_order): this, and update
3085 to iterate semantics.
3086 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
3087 * solib.c (solib_global_lookup): Remove.
3088 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
3089 (solib_global_lookup): Remove.
3090 * symtab.c (lookup_global_or_static_symbol): Remove call to
3091 solib_global_lookup.
3092
5a3a0d63
JB
30932019-09-20 Joel Brobecker <brobecker@adacore.com>
3094
3095 * NEWS: Move entries about default MI version now being
3096 version 3, and about the GDB/MI fix for multi-location
3097 breakpoints to the "since GDB 8.3" section.
3098
ffea1427
JB
30992019-09-20 Joel Brobecker <brobecker@adacore.com>
3100
3101 GDB 8.3.1 released.
3102
abf516c6
UW
31032019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
3104
3105 * NEWS: Mention that Cell/B.E. debugging support was removed.
3106 * MAINTAINERS: Remove spu target.
3107
3108 * config/djgpp/fnchange.lst: Remove entries for removed files.
3109
3110 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
3111 spu-multiarch.o, and spu-tdep.o.
3112 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
3113 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
3114 spu-multiarch.c, and spu-tdep.c.
3115 * spu-linux-nat.c: Remove file.
3116 * spu-multiarch.c: Remove file.
3117 * spu-tdep.c: Remove file.
3118 * spu-tdep.h: Remove file.
3119 * solib-spu.c: Remove file.
3120 * solib-spu.h: Remove file.
3121
3122 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
3123 * configure.nat (spu-linux): Remove.
3124 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
3125 solib-multiarch.o from gdb_target_obs.
3126 (spu*-*-*): Remove.
3127
3128 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
3129 feature flag.
3130 (ppc_linux_no_features): Update.
3131 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
3132 Cell/B.E. support.
3133 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
3134 (tdesc_powerpc_cell64l): Likewise.
3135 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
3136 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
3137 Cell/B.E. support.
3138 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
3139 Do not include "features/rs6000/powerpc-cell32l.c" or
3140 "features/rs6000/powerpc-cell64l.c".
3141 (ppc_linux_spu_section): Remove.
3142 (ppc_linux_core_read_description): Remove Cell/B.E. support.
3143 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
3144 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
3145 (ppc_linux_spe_context_lookup): Remove.
3146 (ppc_linux_spe_context_inferior_created): Remove.
3147 (ppc_linux_spe_context_solib_loaded): Remove.
3148 (ppc_linux_spe_context_solib_unloaded): Remove.
3149 (ppc_linux_spe_context): Remove.
3150 (struct ppu2spu_cache): Remove.
3151 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
3152 (struct ppu2spu_data): Remove.
3153 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
3154 ppu2spu_unwind): Remove.
3155 (ppc_linux_init_abi): Remove Cell/B.E. support.
3156 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
3157
3158 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
3159 (rs6000/powerpc-cell64l-expedite): Likewise
3160 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
3161 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
3162 rs6000/powerpc-cell64l.xml.
3163 * features/rs6000/powerpc-cell32l.xml: Remove.
3164 * features/rs6000/powerpc-cell64l.xml: Likewise.
3165 * features/rs6000/powerpc-cell32l.c: Remove generated file.
3166 * features/rs6000/powerpc-cell64l.c: Likewise.
3167 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
3168 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
3169 * regformats/reg-spu.dat: Remove.
3170
3171 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
3172 * corelow.c (struct spuid_list): Remove.
3173 (add_to_spuid_list): Remove.
3174 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3175 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
3176 (remote_protocol_features): Remove associated entries.
3177 (_initialize_remote): No longer initialize them.
3178 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3179 * linux-nat.c (SPUFS_MAGIC): Remove.
3180 (linux_proc_xfer_spu): Remove.
3181 (spu_enumerate_spu_ids): Remove.
3182 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3183 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
3184 (linux_make_corefile_notes): No longer call it.
3185
3186 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
3187 (cooked_write_test): Likewise.
3188
78e8cb91
TT
31892019-09-20 Tom Tromey <tom@tromey.com>
3190
3191 * NEWS: Mention case-sensitivity of TUI commands.
3192 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
3193 (tui_set_win_height_command, parse_scrolling_args): Likewise.
3194 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
3195
f074b67e
TT
31962019-09-20 Tom Tromey <tom@tromey.com>
3197
3198 * tui/tui-source.c (tui_source_window::set_contents): Use
3199 make_unique_xstrdup.
3200 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
3201 make_unique_xstrdup.
3202
63c4bf19
TT
32032019-09-20 Tom Tromey <tom@tromey.com>
3204
3205 * tui/tui-data.c: Remove separator comments.
3206 * tui/tui-layout.c: Remove separator comments.
3207 * tui/tui-win.c: Remove separator comments.
3208 * tui/tui-wingeneral.c: Remove separator comments.
3209
43df9b2f
TT
32102019-09-20 Tom Tromey <tom@tromey.com>
3211
3212 * tui/tui.h (strcat_to_buf): Don't declare.
3213 * tui/tui.c (strcat_to_buf): Remove.
3214
7226433c
TT
32152019-09-20 Tom Tromey <tom@tromey.com>
3216
3217 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
3218 from "fullname".
3219 * tui/tui-source.c (tui_source_window::set_contents)
3220 (tui_source_window::location_matches_p)
3221 (tui_source_window::maybe_update): Update.
3222
80df3337
TT
32232019-09-20 Tom Tromey <tom@tromey.com>
3224
3225 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
3226 Update.
3227 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
3228 prefix.
3229 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
3230 (tui_data_window::line_from_reg_element_no)
3231 (tui_data_window::first_reg_element_no_inline)
3232 (tui_data_window::show_registers)
3233 (tui_data_window::show_register_group)
3234 (tui_data_window::display_registers_from)
3235 (tui_data_window::display_registers_from_line)
3236 (tui_data_window::first_data_item_displayed)
3237 (tui_data_window::delete_data_content_windows)
3238 (tui_data_window::erase_data_content)
3239 (tui_data_window::do_scroll_vertical)
3240 (tui_data_window::refresh_window)
3241 (tui_data_window::check_register_values): Update.
3242
9923f347
TT
32432019-09-20 Tom Tromey <tom@tromey.com>
3244
3245 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
3246 (struct tui_locator_window) <full_name, proc_name>: Now
3247 std::string.
3248 * tui/tui-stack.c (tui_locator_window::make_status_line)
3249 (tui_locator_window::set_locator_fullname)
3250 (tui_locator_window::set_locator_info): Update.
3251 * tui/tui-source.c (tui_source_window::set_contents)
3252 (tui_source_window::showing_source_p): Update.
3253
b76251ab
TT
32542019-09-20 Tom Tromey <tom@tromey.com>
3255
3256 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
3257 Don't call tui_locator_win_info_ptr.
3258
0891be08
TT
32592019-09-20 Tom Tromey <tom@tromey.com>
3260
3261 * tui/tui-win.c (tui_resize_all): Don't call refresh.
3262
1b935acf
TT
32632019-09-20 Tom Tromey <tom@tromey.com>
3264
3265 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
3266 height for locator.
3267 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
3268 * tui/tui-layout.c (show_source_disasm_command, show_data)
3269 (show_source_or_disasm_and_command): Use 1 as height for locator.
3270
9abd8a65
TT
32712019-09-20 Tom Tromey <tom@tromey.com>
3272
3273 * tui/tui.c (tui_enable): Update.
3274 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
3275 Update.
3276 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
3277 Update.
3278 * tui/tui-data.c (win_resized): Now bool.
3279 (tui_win_resized): Return bool.
3280 (tui_set_win_resized_to): Accept a bool.
3281
b5457826
TT
32822019-09-20 Tom Tromey <tom@tromey.com>
3283
3284 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
3285 Change type of "refresh_values_only".
3286 * tui/tui-regs.c (tui_data_window::show_register_group): Change
3287 type of "refresh_values_only".
3288
6b915f7d
TT
32892019-09-20 Tom Tromey <tom@tromey.com>
3290
3291 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
3292 std::string.
3293 (tui_disassemble): Add "pos" parameter.
3294 (tui_disasm_window::set_contents): Simplify.
3295
2ad52f6f
TT
32962019-09-20 Tom Tromey <tom@tromey.com>
3297
3298 * tui/tui-winsource.h (struct tui_source_window_base)
3299 <show_source_content>: Now private.
3300 * tui/tui-winsource.c
3301 (tui_source_window_base::show_source_content): Don't handle empty
3302 content case.
3303
b3b1bde6
TT
33042019-09-20 Tom Tromey <tom@tromey.com>
3305
3306 * tui/tui-layout.c (show_source_disasm_command)
3307 (show_source_or_disasm_and_command): Don't call
3308 show_source_content.
3309
71a25ed2
TT
33102019-09-20 Tom Tromey <tom@tromey.com>
3311
3312 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
3313 Declare.
3314 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
3315 from tui_make_status_line.
3316 (tui_locator_window::rerender): Update.
3317
f8532154
TT
33182019-09-20 Tom Tromey <tom@tromey.com>
3319
3320 * tui/tui-stack.c (tui_make_status_line): Return std::string.
3321 (tui_locator_window::rerender): Update.
3322
2d81b349
TT
33232019-09-20 Tom Tromey <tom@tromey.com>
3324
3325 * tui/tui-winsource.h (struct tui_source_window_base)
3326 <~tui_source_window_base>: Don't declare.
3327 <fullname>: Remove.
3328 * tui/tui-winsource.c (~tui_source_window_base): Remove.
3329 * tui/tui-source.h (struct tui_source_window) <fullname>: New
3330 member.
3331 * tui/tui-source.c (tui_source_window::set_contents): Update.
3332 (tui_source_window::location_matches_p)
3333 (tui_source_window::maybe_update): Update.
3334
f14bec58
TT
33352019-09-20 Tom Tromey <tom@tromey.com>
3336
3337 * tui/tui-winsource.h (~tui_source_element): Remove.
3338 (tui_source_element): Update.
3339 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
3340 * tui/tui-winsource.c (tui_show_source_line): Update.
3341 * tui/tui-source.c (tui_source_window::set_contents): Update.
3342 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
3343
78d5933a
TT
33442019-09-20 Tom Tromey <tom@tromey.com>
3345
3346 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
3347 declare.
3348 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
3349 tui_clear_source_windows_detail.
3350 * tui/tui-winsource.h (struct tui_source_window_base)
3351 <clear_detail>: Don't declare.
3352 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
3353 Remove.
3354 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
3355
d4207696
TT
33562019-09-20 Tom Tromey <tromey@adacore.com>
3357
3358 PR ada/24919:
3359 * block.c (contained_in): Fix final return value.
3360
00f93c44
AM
33612019-09-20 Alan Modra <amodra@gmail.com>
3362
3363 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
3364 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
3365 (read_indirect_string_from_dwz): Use bfd accessor.
3366 * dwarf2read.h (struct dwz_file <filename>): Likewise.
3367 * machoread.c (macho_symfile_read_all_oso): Likewise.
3368 * solib.c (solib_bfd_open): Likewise.
3369
e4153ae6
CB
33702019-09-19 Christian Biesinger <cbiesinger@google.com>
3371
3372 * eval.c: Move declaration of overload_resolution to...
3373 * value.h: ...here.
3374
c7ae7675
CB
33752019-09-19 Christian Biesinger <cbiesinger@google.com>
3376
3377 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
3378 * arm-linux-tdep.c: Likewise.
3379 * arm-nbsd-nat.c: Likewise.
3380 * arm-tdep.h: Declare arm_apcs_32.
3381 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
3382
e86f08d2
CB
33832019-09-19 Christian Biesinger <cbiesinger@google.com>
3384
3385 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
3386 * dwarf2read.h: Declare dwarf_always_disassemble.
3387
f64e2f40
TV
33882019-09-19 Tom de Vries <tdevries@suse.de>
3389
3390 PR gdb/25009
3391 * source-cache.c (source_cache::ensure): Catch exception thrown during
3392 construction of the highlighter.
3393
fd361982
AM
33942019-09-18 Alan Modra <amodra@gmail.com>
3395
3396 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
3397 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
3398 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
3399 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
3400 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
3401 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
3402 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
3403 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
3404 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
3405 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
3406 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
3407 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
3408 * solib-spu.c, * solib-svr4.c, * solib-target.c,
3409 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
3410 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
3411 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
3412 * mi/mi-interp.c: Update throughout for bfd section macro and
3413 function changes.
3414 * gcore (gcore_create_callback): Use bfd_set_section_lma.
3415 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
3416
11061048
TT
34172019-09-18 Tom Tromey <tom@tromey.com>
3418
3419 * NEWS: Add entry.
3420 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
3421 call rl_initialize.
3422 (tui_enable): Do not call rl_initialize.
3423
7a27b85f
CG
34242019-09-18 Christian Groessler <chris@groessler.org>
3425
3426 * alpha-linux-nat.c: Include gdbarch.h.
3427
f64eea3a
SM
34282019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
3429
3430 * ui-file.c: Include cli/cli-style.h.
3431 (term_cli_styling): Remove cli_styling declaration.
3432
e6f7f6d1
AM
34332019-09-18 Alan Modra <amodra@gmail.com>
3434
3435 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
3436 to bfd_asymbol_section.
3437
1d38e9d1
AM
34382019-09-18 Alan Modra <amodra@gmail.com>
3439
3440 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
3441 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
3442 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
3443
90d92a63
AM
34442019-09-18 Alan Modra <amodra@gmail.com>
3445
3446 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
3447 * spu-linux-nat.c (spu_bfd_open): Likewise.
3448
a3d181d2
CB
34492019-09-18 Christian Biesinger <cbiesinger@google.com>
3450
3451 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
3452 to bool to match definition in dwarf2read.c.
3453
491144b5
CB
34542019-09-17 Christian Biesinger <cbiesinger@google.com>
3455
3456 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
3457 (print_signatures): Likewise.
3458 (trust_pad_over_xvs): Likewise.
3459 * arch/aarch64-insn.c (aarch64_debug): Likewise.
3460 * arch/aarch64-insn.h (aarch64_debug): Likewise.
3461 * arm-linux-nat.c (arm_apcs_32): Likewise.
3462 * arm-linux-tdep.c (arm_apcs_32): Likewise.
3463 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
3464 * arm-tdep.c (arm_debug): Likewise.
3465 (arm_apcs_32): Likewise.
3466 * auto-load.c (debug_auto_load): Likewise.
3467 (auto_load_gdb_scripts): Likewise.
3468 (global_auto_load): Likewise.
3469 (auto_load_local_gdbinit): Likewise.
3470 (auto_load_local_gdbinit_loaded): Likewise.
3471 * auto-load.h (global_auto_load): Likewise.
3472 (auto_load_local_gdbinit): Likewise.
3473 (auto_load_local_gdbinit_loaded): Likewise.
3474 * breakpoint.c (disconnected_dprintf): Likewise.
3475 (breakpoint_proceeded): Likewise.
3476 (automatic_hardware_breakpoints): Likewise.
3477 (always_inserted_mode): Likewise.
3478 (target_exact_watchpoints): Likewise.
3479 (_initialize_breakpoint): Update.
3480 * breakpoint.h (target_exact_watchpoints): Change to bool.
3481 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
3482 * cli/cli-cmds.c (trace_commands): Likewise.
3483 * cli/cli-cmds.h (trace_commands): Likewise.
3484 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
3485 to bool*.
3486 * cli/cli-logging.c (logging_overwrite): Change to bool.
3487 (logging_redirect): Likewise.
3488 (debug_redirect): Likewise.
3489 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
3490 (struct boolean_option_def) <get_var_address_cb_>: Change return type
3491 to bool.
3492 <boolean_option_def>: Update.
3493 (struct flag_option_def): Change default type of Context to bool
3494 from int.
3495 <flag_option_def>: Change return type of var_address_cb_ to bool*.
3496 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
3497 (get_setshow_command_value_string): Likewise.
3498 * cli/cli-style.c (cli_styling): Change to bool.
3499 (source_styling): Likewise.
3500 * cli/cli-style.h (source_styling): Likewise.
3501 (cli_styling): Likewise.
3502 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
3503 to bool.
3504 * command.h (var_types): Update comment.
3505 (add_setshow_boolean_cmd): Change int* var argument to bool*.
3506 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
3507 bool.
3508 (debug_compile_cplus_scopes): Likewise.
3509 * compile/compile-internal.h (compile_debug): Likewise.
3510 * compile/compile.c (compile_debug): Likewise.
3511 (struct compile_options) <raw>: Likewise.
3512 * cp-support.c (catch_demangler_crashes): Likewise.
3513 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
3514 (usr_cmd_cris_dwarf2_cfi): Likewise.
3515 * csky-tdep.c (csky_debug): Likewise.
3516 * darwin-nat.c (enable_mach_exceptions): Likewise.
3517 * dcache.c (dcache_enabled_p): Likewise.
3518 * defs.h (info_verbose): Likewise.
3519 * demangle.c (demangle): Likewise.
3520 (asm_demangle): Likewise.
3521 * dwarf-index-cache.c (debug_index_cache): Likewise.
3522 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
3523 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
3524 * dwarf2read.c (check_physname): Likewise.
3525 (use_deprecated_index_sections): Likewise.
3526 (dwarf_always_disassemble): Likewise.
3527 * eval.c (overload_resolution): Likewise.
3528 * event-top.c (set_editing_cmd_var): Likewise.
3529 (exec_done_display_p): Likewise.
3530 * event-top.h (set_editing_cmd_var): Likewise.
3531 (exec_done_display_p): Likewise.
3532 * exec.c (write_files): Likewise.
3533 * fbsd-nat.c (debug_fbsd_lwp): Likewise
3534 (debug_fbsd_nat): Likewise.
3535 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
3536 Likewise.
3537 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
3538 <backtrace_past_entry> Likewise.
3539 * gdb-demangle.h (demangle): Likewise.
3540 (asm_demangle): Likewise.
3541 * gdb_bfd.c (bfd_sharing): Likewise.
3542 * gdbcore.h (write_files): Likewise.
3543 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
3544 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
3545 * gdbthread.h (print_thread_events): Likewise.
3546 * gdbtypes.c (opaque_type_resolution): Likewise.
3547 (strict_type_checking): Likewise.
3548 * gnu-nat.c (gnu_debug_flag): Likewise.
3549 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
3550 * guile/scm-param.c (pascm_variable): Add boolval.
3551 (add_setshow_generic): Update.
3552 (pascm_param_value): Update.
3553 (pascm_set_param_value_x): Update.
3554 * hppa-tdep.c (hppa_debug): Change to bool..
3555 * infcall.c (may_call_functions_p): Likewise.
3556 (coerce_float_to_double_p): Likewise.
3557 (unwind_on_signal_p): Likewise.
3558 (unwind_on_terminating_exception_p): Likewise.
3559 * infcmd.c (startup_with_shell): Likewise.
3560 * inferior.c (print_inferior_events): Likewise.
3561 * inferior.h (startup_with_shell): Likewise.
3562 (print_inferior_events): Likewise.
3563 * infrun.c (step_stop_if_no_debug): Likewise.
3564 (detach_fork): Likewise.
3565 (debug_displaced): Likewise.
3566 (disable_randomization): Likewise.
3567 (non_stop): Likewise.
3568 (non_stop_1): Likewise.
3569 (observer_mode): Likewise.
3570 (observer_mode_1): Likewise.
3571 (set_observer_mode): Update.
3572 (sched_multi): Change to bool.
3573 * infrun.h (debug_displaced): Likewise.
3574 (sched_multi): Likewise.
3575 (step_stop_if_no_debug): Likewise.
3576 (non_stop): Likewise.
3577 (disable_randomization): Likewise.
3578 * linux-tdep.c (use_coredump_filter): Likewise.
3579 (dump_excluded_mappings): Likewise.
3580 * linux-thread-db.c (auto_load_thread_db): Likewise.
3581 (check_thread_db_on_load): Likewise.
3582 * main.c (captured_main_1): Update.
3583 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
3584 xx2_opt, boolean_opt>: Change to bool.
3585 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
3586 * maint.c (maintenance_profile_p): Likewise.
3587 (per_command_time): Likewise.
3588 (per_command_space): Likewise.
3589 (per_command_symtab): Likewise.
3590 * memattr.c (inaccessible_by_default): Likewise.
3591 * mi/mi-main.c (mi_async): Likewise.
3592 (mi_async_1): Likewise.
3593 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
3594 * nat/fork-inferior.h (startup_with_shell): Likewise.
3595 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
3596 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
3597 * nios2-tdep.c (nios2_debug): Likewise.
3598 * or1k-tdep.c (or1k_debug): Likewise.
3599 * parse.c (parser_debug): Likewise.
3600 * parser-defs.h (parser_debug): Likewise.
3601 * printcmd.c (print_symbol_filename): Likewise.
3602 * proc-api.c (procfs_trace): Likewise.
3603 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
3604 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
3605 (set_parameter_value): Update.
3606 (add_setshow_generic): Update.
3607 * python/py-value.c (copy_py_bool_obj): Change argument from int*
3608 to bool*.
3609 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
3610 int*.
3611 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
3612 * record-btrace.c (record_btrace_target::store_registers): Update.
3613 * record-full.c (record_full_memory_query): Change to bool.
3614 (record_full_stop_at_limit): Likewise.
3615 * record-full.h (record_full_memory_query): Likewise.
3616 * remote-notif.c (notif_debug): Likewise.
3617 * remote-notif.h (notif_debug): Likewise.
3618 * remote.c (use_range_stepping): Likewise.
3619 (interrupt_on_connect): Likewise.
3620 (remote_break): Likewise.
3621 * ser-tcp.c (tcp_auto_retry): Likewise.
3622 * ser-unix.c (serial_hwflow): Likewise.
3623 * skip.c (debug_skip): Likewise.
3624 * solib-aix.c (solib_aix_debug): Likewise.
3625 * spu-tdep.c (spu_stop_on_load_p): Likewise.
3626 (spu_auto_flush_cache_p): Likewise.
3627 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
3628 Likewise.
3629 (struct info_print_options) <quiet>: Likewise.
3630 * symfile-debug.c (debug_symfile): Likewise.
3631 * symfile.c (auto_solib_add): Likewise.
3632 (separate_debug_file_debug): Likewise.
3633 * symfile.h (auto_solib_add): Likewise.
3634 (separate_debug_file_debug): Likewise.
3635 * symtab.c (basenames_may_differ): Likewise.
3636 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
3637 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
3638 (struct info_types_options) <quiet>: Likewise.
3639 * symtab.h (demangle): Likewise.
3640 (basenames_may_differ): Likewise.
3641 * target-dcache.c (stack_cache_enabled_1): Likewise.
3642 (code_cache_enabled_1): Likewise.
3643 * target.c (trust_readonly): Likewise.
3644 (may_write_registers): Likewise.
3645 (may_write_memory): Likewise.
3646 (may_insert_breakpoints): Likewise.
3647 (may_insert_tracepoints): Likewise.
3648 (may_insert_fast_tracepoints): Likewise.
3649 (may_stop): Likewise.
3650 (auto_connect_native_target): Likewise.
3651 (target_stop_and_wait): Update.
3652 (target_async_permitted): Change to bool.
3653 (target_async_permitted_1): Likewise.
3654 (may_write_registers_1): Likewise.
3655 (may_write_memory_1): Likewise.
3656 (may_insert_breakpoints_1): Likewise.
3657 (may_insert_tracepoints_1): Likewise.
3658 (may_insert_fast_tracepoints_1): Likewise.
3659 (may_stop_1): Likewise.
3660 * target.h (target_async_permitted): Likewise.
3661 (may_write_registers): Likewise.
3662 (may_write_memory): Likewise.
3663 (may_insert_breakpoints): Likewise.
3664 (may_insert_tracepoints): Likewise.
3665 (may_insert_fast_tracepoints): Likewise.
3666 (may_stop): Likewise.
3667 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
3668 (make_thread_apply_all_options_def_group): Change argument from int*
3669 to bool*.
3670 (thread_apply_all_command): Update.
3671 (print_thread_events): Change to bool.
3672 * top.c (confirm): Likewise.
3673 (command_editing_p): Likewise.
3674 (history_expansion_p): Likewise.
3675 (write_history_p): Likewise.
3676 (info_verbose): Likewise.
3677 * top.h (confirm): Likewise.
3678 (history_expansion_p): Likewise.
3679 * tracepoint.c (disconnected_tracing): Likewise.
3680 (circular_trace_buffer): Likewise.
3681 * typeprint.c (print_methods): Likewise.
3682 (print_typedefs): Likewise.
3683 * utils.c (debug_timestamp): Likewise.
3684 (sevenbit_strings): Likewise.
3685 (pagination_enabled): Likewise.
3686 * utils.h (sevenbit_strings): Likewise.
3687 (pagination_enabled): Likewise.
3688 * valops.c (overload_resolution): Likewise.
3689 * valprint.h (struct value_print_options) <prettyformat_arrays,
3690 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
3691 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
3692 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
3693 Likewise.
3694 * windows-nat.c (new_console): Likewise.
3695 (cygwin_exceptions): Likewise.
3696 (new_group): Likewise.
3697 (debug_exec): Likewise.
3698 (debug_events): Likewise.
3699 (debug_memory): Likewise.
3700 (debug_exceptions): Likewise.
3701 (useshell): Likewise.
3702 * windows-tdep.c (maint_display_all_tib): Likewise.
3703 * xml-support.c (debug_xml): Likewise.
3704
f1b620e9
MG
37052019-09-17 Mike Gulick <mgulick@mathworks.com>
3706
3707 * source.c (prepare_path_for_appending): New function.
3708 (openp): Make use of new function.
3709 (find_and_open_source): Search for the compilation directory and
3710 source file as a relative path beneath the directory search path.
3711
67f3ed6a
AB
37122019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
3713
3714 * source-cache.c (source_cache::get_line_charpos): Catch
3715 exceptions and return false, this matches the behaviour documented
3716 in the header file.
3717
74332189
JB
37182019-09-17 Joel Brobecker <brobecker@adacore.com>
3719
3720 * ada-tasks.c (info_task): Remove quoting of the task's name.
3721
f2f24aa9
CB
37222019-09-16 Christian Biesinger <cbiesinger@google.com>
3723
3724 * symfile.c (auto_solib_add): Replace comment with a reference
3725 to the header file.
3726
6a062a93
CB
37272019-09-14 Christian Biesinger <cbiesinger@google.com>
3728
3729 * NEWS: Mention that gdb can now be compiled with Python 3
3730 on Windows.
3731
ec6c8338
AB
37322019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3733
3734 * maint.c (maint_print_section_data::maint_print_section_data):
3735 Force use of 'float log10 (float)' by casting the argument to
3736 float.
3737
aa17805f
AB
37382019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3739
3740 * maint.c: Add 'cmath' include.
3741 (struct maint_print_section_data): New structure.
3742 (print_section_index): New function.
3743 (print_bfd_section_info): Add header comment, small whitespace
3744 cleanup, and update to call new print_section_index function.
3745 (print_objfile_section_info): Likewise.
3746 (maint_obj_section_from_bfd_section): New function.
3747 (print_bfd_section_info_maybe_relocated): New function.
3748 (maintenance_info_sections): Add header comment, always use
3749 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
3750
3dd9bb46
AB
37512019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3752
3753 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
3754 inner scope, add check that the objfile has psymtabs before
3755 checking psymtabs_addrmap.
3756 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
3757
4993045d
PW
37582019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3759
3760 * NEWS: Announce that Ada task names are now shown at more places,
3761 and between quotes (except in info task output).
3762 * gdb/ada-tasks.c (task_to_str): New function.
3763 (display_current_task_id): Call task_to_str.
3764 (task_command_1): Likewise.
3765 (print_ada_task_info): In non-mi mode, Properly align headers and data
3766 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
3767
7a289707
RO
37682019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3769
3770 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
3771 prstatus.pr_lwp.pr_info instead of making it up.
3772
f2aec7f6
CB
37732019-09-11 Christian Biesinger <cbiesinger@google.com>
3774
3775 * auto-load.c (auto_load_expand_dir_vars): Update.
3776 * defs.h (gdb_datadir): Change to std::string.
3777 (python_libdir): Likewise.
3778 (relocate_gdb_directory): Change return type to std::string.
3779 * guile/guile.c (gdbscm_data_directory): Update.
3780 (initialize_scheme_side): Update.
3781 * jit.c (jit_reader_dir): Change to std::string.
3782 (jit_reader_load_command): Update.
3783 * main.c (gdb_datadir): Change to std::string.
3784 (python_libdir): Likewise.
3785 (set_gdb_data_directory): Update.
3786 (relocate_path): Change to return std::string.
3787 (relocate_gdb_directory): Change to return std::string.
3788 (relocate_gdbinit_path_maybe_in_datadir): Update.
3789 (captured_main_1): Update.
3790 * python/python.c (do_start_initialization): Update.
3791 * top.c (show_gdb_datadir): Update.
3792 * xml-syscall.c (xml_init_syscalls_info): Update.
3793 (init_syscalls_info): Update.
3794
9224a013
CB
37952019-09-11 Christian Biesinger <cbiesinger@google.com>
3796
3797 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
3798 out of get_init_files.
3799 (get_init_files): Update.
3800
f48cd836
CB
38012019-09-11 Christian Biesinger <cbiesinger@google.com>
3802
3803 * main.c (get_init_files): Change to use std::string.
3804 (captured_main_1): Update.
3805 (print_gdb_help): Update.
3806
9cab7ecd
AT
38072019-09-11 Ali Tamur <tamur@google.com>
3808
3809 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
3810 implementation.
3811
67547d89
CB
38122019-09-11 Christian Biesinger <cbiesinger@google.com>
3813
3814 * dbxread.c (read_dbx_symtab): Update.
3815 * dwarf2read.c (load_partial_dies): Update.
3816 * mdebugread.c (parse_partial_symbols): Update.
3817 (handle_psymbol_enumerators): Update.
3818 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
3819 * psymtab.c (add_psymbol_to_bcache): Likewise.
3820 (add_psymbol_to_list): Likewise.
3821 * symtab.c (symbol_set_names): Likewise.
3822 * symtab.h (symbol_set_names): Likewise.
3823 * xcoffread.c (scan_xcoff_symtab): Update.
3824
64b2d4a0
TT
38252019-09-11 Tom Tromey <tom@tromey.com>
3826
3827 * symfile-mem.c (symbol_file_add_from_memory): Use
3828 bfd_set_filename.
3829 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
3830 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
3831
3b00ef10
TT
38322019-09-10 Tom Tromey <tromey@adacore.com>
3833
3834 * dwarf-index-write.c (write_psymbols): Extend error message.
3835 (debug_names::insert): Add Ada code.
3836 (debug_names::write_psymbols): Remove Ada check.
3837 (debug_names) <m_string_obstack>: New member.
3838 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
3839 (gdb_index_symbol_name_matcher::matches): Remove.
3840 (mapped_index_base::find_name_components_bounds): Add "lang"
3841 parameter.
3842 (mapped_index_base::build_name_components): Also split names
3843 according to Ada syntax.
3844 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
3845 type of "match_callback".
3846 (check_match, check_find_bounds_finds)
3847 (dw2_expand_symtabs_matching): Update.
3848 (dw2_debug_names_iterator): Add new constructor.
3849 (dw2_debug_names_map_matching_symbols): New function.
3850 (dw2_debug_names_expand_symtabs_matching): Update.
3851 (dwarf2_debug_names_functions): Use
3852 dw2_debug_names_map_matching_symbols.
3853
aa391654
TT
38542019-09-10 Tom Tromey <tromey@adacore.com>
3855
3856 * dwarf2read.c (dw2_get_file_names_reader): Add the
3857 CU's file name to the results.
3858
b054970d
TT
38592019-09-10 Tom Tromey <tromey@adacore.com>
3860
3861 * ada-lang.c (add_nonlocal_symbols): Combine calls to
3862 map_matching_symbols. Update.
3863 * dwarf2read.c (dw2_map_matching_symbols): Update.
3864 * psymtab.c (match_partial_symbol): Change type; update.
3865 (psym_map_matching_symbols): Likewise.
3866 * symfile-debug.c (debug_qf_map_matching_symbols): Change
3867 type; update.
3868 * symfile.h (struct quick_symbol_functions)
3869 <map_matching_symbols>: Change "name" to be a lookup_name_info.
3870 Remove "match".
3871
6a3dbf1b
TT
38722019-09-10 Tom Tromey <tromey@adacore.com>
3873
3874 * psymtab.c (map_block): Remove.
3875 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
3876 * symtab.c (iterate_over_symbols_terminated): New function.
3877 * symtab.c (iterate_over_symbols_terminated): Declare.
3878
6969f124
TT
38792019-09-10 Tom Tromey <tromey@adacore.com>
3880
3881 * ada-lang.c (ada_iterate_over_symbols): Return bool.
3882 * language.h (struct language_defn) <la_iterate_over_symbols>:
3883 Return bool.
3884 * symtab.c (iterate_over_symbols): Return bool.
3885 * symtab.h (iterate_over_symbols): Return bool.
3886
199b4314
TT
38872019-09-10 Tom Tromey <tromey@adacore.com>
3888
3889 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
3890 (add_nonlocal_symbols): Update.
3891 * dwarf2read.c (dw2_map_matching_symbols): Change type.
3892 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
3893 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
3894 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
3895 Change type of "callback". Remove "data".
3896
a084a2a6
AT
3897
38982019-09-09 Ali Tamur <tamur@google.com>
3899
3900 * dwarf2read.c (comp_unit_head): Update comment.
3901 (dwarf2_dwo_name): New function declaration.
3902 (dwarf_unit_type_name): New function declaration.
3903 (read_comp_unit_head): Add support for new compilation units,
3904 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
3905 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
3906 (currently named as "signature") in their header. Also clarify error
3907 messages.
3908 (lookup_dwo_id): New function. Returns the dwo id of the given
3909 compile unit.
3910 (lookup_dwo_unit): Use the new lookup_dwo_id function.
3911 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
3912 functions.
3913 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
3914 (dwarf2_dwo_name): Get the dwo name if present.
3915 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
3916 purposes.
3917
25a2915e
TT
39182019-09-09 Tom Tromey <tom@tromey.com>
3919
3920 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
3921
e4df0874
PW
39222019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3923
3924 * python/python.c (do_start_initialization): Make progname_copy static,
3925 to avoid a leak report.
3926
8634b462
TT
39272019-09-08 Tom Tromey <tom@tromey.com>
3928
3929 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
3930
c7f839cb
SM
39312019-09-07 Simon Marchi <simon.marchi@efficios.com>
3932
3933 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
3934 Change type to gdb::optional<block_enum>.
3935 (dw2_symtab_iter_init): Change block_index parameter type
3936 to gdb::optional<block_enum>.
3937 (dw2_lookup_symbol): Change block_index parameter
3938 type to block_enum.c
3939 (dw2_debug_names_lookup_symbol): Likewise.
3940 * psymtab.c (psym_lookup_symbol): Likewise.
3941 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
3942 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
3943 Likewise.
3944
ead0e69a
CB
39452019-09-06 Christian Biesinger <cbiesinger@google.com>
3946
3947 * defs.h (relocate_gdb_directory): Change int to bool in
3948 signature and rename flag to relocatable.
3949 * main.c (relocate_path): Likewise.
3950 (relocate_gdb_directory): Likewise.
3951
b16c44de
AM
39522019-09-06 Alan Modra <amodra@gmail.com>
3953
3954 * coffread.c (coff_symfile_read): Constify filename variable.
3955 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
3956 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
3957 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
3958 * solib.c (reload_shared_libraries_1): Likewise.
3959 * symfile.c (reread_symbols): Likewise.
3960 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
3961 * solib-darwin.c (darwin_bfd_open): Likewise.
3962 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
3963
06ff036e
AB
39642019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
3965
3966 * psymtab.c (print_partial_symbols): Handle missing domain_enum
3967 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
3968
4e962e74
TT
39692019-09-03 Tom Tromey <tromey@adacore.com>
3970
3971 * ada-valprint.c (ada_val_print_num): Don't recurse for range
3972 types.
3973 (has_negatives): Unbias a range type bound.
3974 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
3975 * gdbtypes.c (operator==): Handle new field.
3976 (create_range_type): Add "bias" parameter.
3977 (create_static_range_type, resolve_dynamic_range): Update.
3978 * gdbtypes.h (struct range_bounds) <bias>: New member.
3979 (create_range_type): Add bias parameter.
3980 * printcmd.c (print_scalar_formatted): Unbias range types.
3981 * value.c (unpack_long): Unbias range types.
3982 (pack_long): Bias range types.
3983
d90b8f26
AH
39842019-09-02 Alan Hayward <alan.hayward@arm.com>
3985
3986 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
3987 probe arguments.
3988
fe01123e
AH
39892019-09-02 Alan Hayward <alan.hayward@arm.com>
3990
3991 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
3992 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
3993 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
3994 (compile_probe_arg): Likewise.
3995 * probe.h (get_argument_count): Likewise.
3996 * solib-svr4.c (solib_event_probe_action): Likewise.
3997 * stap-probe.c (stap_probe::get_argument_count): Likewise.
3998
e661ef01
AH
39992019-09-02 Alan Hayward <alan.hayward@arm.com>
4000
4001 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
4002 code to here...
4003 (svr4_create_solib_event_breakpoints): ...from here.
4004
47a536d9
SDJ
40052019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
4006
4007 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
4008 suffix from warning message.
4009
d6a00eba
TT
40102019-08-30 Tom Tromey <tom@tromey.com>
4011
4012 * tui/tui-winsource.h (struct tui_source_window_base)
4013 <refresh_all>: Don't declare.
4014 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
4015 Remove.
4016 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
4017 tui_show_locator_content.
4018 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
4019 declare.
4020 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
4021 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
4022 declare.
4023
55b2657b
TT
40242019-08-30 Tom Tromey <tom@tromey.com>
4025
4026 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
4027
12a8555a
TT
40282019-08-30 Tom Tromey <tom@tromey.com>
4029
4030 * tui/tui-stack.c (_initialize_tui_stack): Move later.
4031 Remove unnecessary forward declarations.
4032
900ac242
TT
40332019-08-30 Tom Tromey <tom@tromey.com>
4034
4035 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
4036 rerender.
4037 (tui_update_locator_fullname, tui_show_frame_info): Don't call
4038 tui_show_locator_content.
4039
99ab33fb
TT
40402019-08-30 Tom Tromey <tom@tromey.com>
4041
4042 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
4043 (tui_locator_window::rerender): Rewrite using body of previous
4044 tui_show_locator_content.
4045
e594a5d1
TT
40462019-08-30 Tom Tromey <tom@tromey.com>
4047
4048 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
4049 set_locator_fullname>: New methods.
4050 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
4051 Rename from tui_set_locator_fullname.
4052 (tui_locator_window::set_locator_info): Rename from
4053 tui_set_locator_info. Return bool.
4054 (tui_update_locator_fullname, tui_show_frame_info): Update.
4055
715bb467
TT
40562019-08-30 Tom Tromey <tom@tromey.com>
4057
4058 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
4059
772f3f03
TT
40602019-08-30 Tom Tromey <tom@tromey.com>
4061
4062 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
4063 call touchwin.
4064
108e13ab
TT
40652019-08-30 Tom Tromey <tom@tromey.com>
4066
4067 * tui/tui-wingeneral.c (box_win): Assume win_info and
4068 win_info->handle cannot be NULL.
4069
cdaa6eb4
TT
40702019-08-30 Tom Tromey <tom@tromey.com>
4071
4072 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
4073 refresh_window>: Declare.
4074 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
4075 resize.
4076 (tui_data_item_window::rerender): Rename from
4077 tui_display_register.
4078 (tui_data_item_window::refresh_window): New method.
4079 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
4080 no-op.
4081
89df7f90
TT
40822019-08-30 Tom Tromey <tom@tromey.com>
4083
4084 * tui/tui-regs.h (struct tui_data_window) <regs_content,
4085 regs_column_count, current_group>: Move later. Now private.
4086 <get_current_group>: New method.
4087 * tui/tui-regs.c (tui_reg_command): Update.
4088 * tui/tui-layout.c (tui_set_layout): Update.
4089
1bf2866a
TT
40902019-08-30 Tom Tromey <tom@tromey.com>
4091
4092 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
4093 (tui_data_window::rerender): Don't call
4094 check_and_display_highlight_if_needed.
4095 (tui_data_window::refresh_all): Remove call to
4096 erase_data_content.
4097
0670413d
TT
40982019-08-30 Tom Tromey <tom@tromey.com>
4099
4100 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
4101 (tui_data_window::display_registers_from)
4102 (tui_data_window::display_reg_element_at_line)
4103 (tui_data_window::display_registers_from_line): Remove checks of
4104 "empty".
4105
18bb55c7
TT
41062019-08-30 Tom Tromey <tom@tromey.com>
4107
4108 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
4109 Don't declare.
4110 * tui/tui-regs.c (tui_data_window::show_registers): Call
4111 rerender.
4112 (tui_data_window::rerender): Rename from display_all_data.
4113 (tui_data_window::rerender): Remove old implementation.
4114
1f6d2f10
TT
41152019-08-30 Tom Tromey <tom@tromey.com>
4116
4117 * tui/tui-regs.c (tui_data_window::display_all_data): Change
4118 text.
4119 * tui/tui-data.h (NO_DATA_STRING): Remove define.
4120
16d01f9c
BW
41212019-08-29 Bernhard Wodok <barto@gmx.net>
4122 Sergio Durigan Junior <sergiodj@redhat.com>
4123
4124 PR win32/24284
4125 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
4126
d8f27c60
AB
41272019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
4128
4129 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
4130 when searching for types.
4131
1f20c35e
AB
41322019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
4133
4134 * f-lang.c (f_language_defn): Use f_print_typedef.
4135 * f-lang.h (f_print_typedef): Declare.
4136 * f-typeprint.c (f_print_typedef): Define.
4137
550105b7
CB
41382019-08-27 Christian Biesinger <cbiesinger@google.com>
4139
4140 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
4141
4acfdd20
AB
41422019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
4143
4144 * cli/cli-utils.c (info_print_options_defs): Delete.
4145 (make_info_print_options_def_group): Delete.
4146 (extract_info_print_options): Delete.
4147 (info_print_command_completer): Delete.
4148 (info_print_args_help): Add extra parameter, and optionally
4149 include text about -n flag.
4150 * cli/cli-utils.h (struct info_print_options): Delete.
4151 (extract_info_print_options): Delete declaration.
4152 (info_print_command_completer): Delete declaration.
4153 (info_print_args_help): Add extra parameter, extend header
4154 comment.
4155 * python/python.c (gdbpy_rbreak): Pass additional parameter to
4156 search_symbols.
4157 * stack.c (struct info_print_options): New type.
4158 (info_print_options_defs): New file scoped variable.
4159 (make_info_print_options_def_group): New static function.
4160 (info_print_command_completer): New static function.
4161 (info_locals_command): Update to use new local functions.
4162 (info_args_command): Likewise.
4163 (_initialize_stack): Add extra parameter to calls to
4164 info_print_args_help.
4165 * symtab.c (search_symbols): Add extra parameter, use this to
4166 possibly excluse non-debug symbols.
4167 (symtab_symbol_info): Add extra parameter, which is passed on to
4168 search_symbols.
4169 (struct info_print_options): New type.
4170 (info_print_options_defs): New file scoped variable.
4171 (make_info_print_options_def_group): New static function.
4172 (info_print_command_completer): New static function.
4173 (info_variables_command): Update to use local functions, and pass
4174 extra parameter through to symtab_symbol_info.
4175 (info_functions_command): Likewise.
4176 (info_types_command): Pass additional argument through to
4177 symtab_symbol_info.
4178 (rbreak_command): Pass extra argument to search_symbols.
4179 (_initialize_symtab): Add extra arguments for calls to
4180 info_print_args_help, and update help text for 'info variables',
4181 'whereis', and 'info functions' commands.
4182 * symtab.h (search_symbols): Add extra argument to declaration.
4183 * NEWS: Mention new flags.
4184
9aa55206
CB
41852019-08-26 Christian Biesinger <cbiesinger@google.com>
4186
4187 * symtab.c (lookup_static_symbol): Call the new function (and move
4188 it down to be next to lookup_global_symbol).
4189 (struct global_sym_lookup_data): Add block_enum member and rename to...
4190 (struct global_or_static_sym_lookup_data): ...this.
4191 (lookup_symbol_global_iterator_cb): Pass block_index instead of
4192 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
4193 (lookup_symbol_global_or_static_iterator_cb): ...this.
4194 (lookup_global_or_static_symbol): New function.
4195 (lookup_global_symbol): Call new function.
4196
5c31b358
TV
41972019-08-26 Tom de Vries <tdevries@suse.de>
4198
4199 PR c++/24852
4200 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
4201 when pc_probe.prob == NULL.
4202
23c13d42
SM
42032019-08-25 Simon Marchi <simon.marchi@efficios.com>
4204
4205 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
4206 variable symbol_linkage to symbol_linkage_.
4207
beadd3e8
SM
42082019-08-25 Simon Marchi <simon.marchi@efficios.com>
4209
4210 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
4211 represent whether the symbol is static, dynamic, or we don't
4212 know.
4213
e3ec872f
YS
42142019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
4215
4216 * gdb/rx-tdep.c (rx_register_names): New.
4217 (rx_register_name): Delete.
4218 (rx_psw_type): Delete.
4219 (rx_fpsw_type): Delete.
4220 (rx_register_type): Delete.
4221 (rx_gdbarch_init): Convert target-descriptions.
4222 (_initialize_rx_tdep): Add initialize_tdesc_rx.
4223 * gdb/features/Makefile: Add rx.xml.
4224 * gdb/features/rx.xml: New.
4225 * gdb/features/rx.c: Generated.
4226 * gdb/NEWS: Mention target description support.
4227
d0509ba4
CB
42282019-08-22 Christian Biesinger <cbiesinger@google.com>
4229
4230 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
4231 *slot_ptr.
4232
2d41fa11
SDJ
42332019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
4234
4235 * configure.ac: Don't check for 'dlfcn.h' (moved to
4236 gdbsupport/common.m4).
4237 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
4238 'gdbsupport/'.
4239 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
4240 * compile/compile-c-support.c: Include
4241 'gdbsupport/gdb-dlfcn.h'.
4242 * gdbsupport/common.m4: Check for 'dlfcn.h'.
4243 * gdb-dlfcn.c: Move to...
4244 * gdbsupport/gdb-dlfcn.c: ... here.
4245 * gdb-dlfcn.h: Move to...
4246 * gdbsupport/gdb-dlfcn.h: ... here.
4247
de8af808
SL
42482019-08-23 Sandra Loosemore <sandra@codesourcery.com>
4249
4250 * nios2-tdep.c (struct reg_value): Improve comments. Make
4251 the offset field signed.
4252
27204489
CB
42532019-08-22 Christian Biesinger <cbiesinger@google.com>
4254
4255 * python/lib/gdb/__init__.py (_execute_file): New function.
4256 * python/python.c (python_run_simple_file): Call gdb._execute_file
4257 on Windows.
4258
43771869
AB
42592019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
4260
4261 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
4262 all uses as this was never set to anything but a zero value.
4263
26c957f1
PA
42642019-08-21 Bogdan Harjoc <harjoc@gmail.com>
4265
4266 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
4267
c07aae6e
CB
42682019-08-21 Christian Biesinger <cbiesinger@google.com>
4269
4270 * tui/tui-data.h (tui_gen_win_info): Add an =default
4271 move constructor, required by some GCC versions.
4272
3960cb7a
JF
42732019-08-21 Jinke Fan <fanjinke51@yeah.net>
4274
4275 * go32-nat.c (go32_sysinfo): Add hygon_p.
4276
04c72a68
TT
42772019-08-20 Tom Tromey <tom@tromey.com>
4278
4279 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
4280 line_from_reg_element_no, first_reg_element_no_inline,
4281 display_all_data, delete_data_content_windows,
4282 erase_data_content>: Now private.
4283
072272ce
TT
42842019-08-20 Tom Tromey <tom@tromey.com>
4285
4286 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
4287 (tui_unhighlight_win, tui_highlight_win)
4288 (tui_win_info::make_window): Update.
4289 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
4290
973961bd
TT
42912019-08-20 Tom Tromey <tom@tromey.com>
4292
4293 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
4294 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
4295 (MAX_PID_WIDTH): Move to tui-stack.c.
4296 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
4297 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
4298 (MAX_PID_WIDTH): Move from tui-data.h.
4299
ab0e1f1a
TT
43002019-08-20 Tom Tromey <tom@tromey.com>
4301
4302 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
4303 * tui/tui-wingeneral.c (box_win): Change type of win_info.
4304 (box_win): Update.
4305 (tui_gen_win_info::make_window): Rename from tui_make_window.
4306 (tui_win_info::make_window): New method.
4307 (tui_gen_win_info::make_visible): Update.
4308 * tui/tui-source.c (tui_source_window::set_contents): Update.
4309 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
4310 (tui_data_window::display_registers_from): Update.
4311 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
4312 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
4313 Declare.
4314 <can_box>: Remove.
4315 <title>: Remove.
4316 (struct tui_win_info) <make_window>: Declare.
4317 <can_box>: Now virtual.
4318 <title>: New member.
4319 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
4320 * tui/tui-command.c (tui_cmd_window::resize): Update.
4321
100c2bf3
TT
43222019-08-20 Tom Tromey <tom@tromey.com>
4323
4324 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
4325 * tui/tui-regs.c (tui_data_window::show_registers): Update.
4326 (tui_data_window::check_register_values): Update.
4327
fa4dc567
TT
43282019-08-20 Tom Tromey <tom@tromey.com>
4329
4330 * tui/tui-regs.h (struct tui_data_window): Use
4331 DISABLE_COPY_AND_ASSIGN.
4332 <regs_content>: Change type, removing unique_ptr.
4333 <tui_data_window>: Add move constructor.
4334 * tui/tui-regs.c (tui_data_window::show_registers)
4335 (tui_data_window::show_register_group)
4336 (tui_data_window::display_registers_from)
4337 (tui_data_window::display_registers_from)
4338 (tui_data_window::first_data_item_displayed)
4339 (tui_data_window::delete_data_content_windows)
4340 (tui_data_window::rerender, tui_data_window::refresh_window)
4341 (tui_data_window::check_register_values): Update.
4342
ca02d7c8
TT
43432019-08-20 Tom Tromey <tom@tromey.com>
4344
4345 * tui/tui-regs.h (struct tui_data_window) <show_registers,
4346 show_register_group>: Declare.
4347 (tui_show_register_group): Don't declare.
4348 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
4349 tui_show_registers.
4350 (tui_data_window::show_register_group): Rename from
4351 tui_show_register_group.
4352 (tui_data_window::check_register_values, tui_reg_command):
4353 Update.
4354 * tui/tui-layout.c (tui_set_layout): Update.
4355
63356bfd
TT
43562019-08-20 Tom Tromey <tom@tromey.com>
4357
4358 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
4359 Declare.
4360 (tui_check_register_values): Don't declare.
4361 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
4362 from tui_check_register_values.
4363 * tui/tui-hooks.c (tui_register_changed): Update.
4364
42cc14a7
TT
43652019-08-20 Tom Tromey <tom@tromey.com>
4366
4367 * tui/tui-regs.c (tui_reg_layout): Move later.
4368 (tui_show_registers): Don't enable TUI mode or change layout.
4369
b9ad3686
TT
43702019-08-20 Tom Tromey <tom@tromey.com>
4371
4372 * tui/tui-regs.h (struct tui_data_item_window)
4373 <~tui_data_item_window>: Remove.
4374 <content>: Now a unique_xmalloc_ptr.
4375 * tui/tui-regs.c (tui_register_format): Return a
4376 unique_xmalloc_ptr.
4377 (tui_get_register): Update.
4378 (~tui_data_item_window): Remove.
4379 (tui_data_window::display_registers_from, tui_display_register):
4380 Update.
4381 * tui/tui-io.h (tui_expand_tabs): Update.
4382 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
4383 Remove "col" parameter.
4384
8e114aab
TT
43852019-08-20 Tom Tromey <tom@tromey.com>
4386
4387 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
4388 field.
4389 * tui/tui-regs.c (~tui_data_item_window): Update.
4390
1a4f81dd
TT
43912019-08-20 Tom Tromey <tom@tromey.com>
4392
4393 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
4394 earlier.
4395
0f8d8876
TT
43962019-08-20 Tom Tromey <tom@tromey.com>
4397
4398 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
4399
605dc2c2
TT
44002019-08-20 Tom Tromey <tom@tromey.com>
4401
4402 * tui/tui-source.h (struct tui_source_window): Update.
4403 * tui/tui-regs.c (tui_show_registers): Update.
4404 * tui/tui-disasm.h (struct tui_disasm_window): Update.
4405 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
4406 (NO_REGS_STRING): Remove defines.
4407
aedbe3bb
CM
44082019-08-20 Conrad Meyer <cem@FreeBSD.org>
4409
4410 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
4411 unnecessary thread walk if remote doesn't support the packet.
4412
7ce8f214
TT
44132019-08-19 Tom Tromey <tromey@adacore.com>
4414
4415 * python/py-value.c (value_has_field): Fix indentation.
4416
f21c2bd7
TT
44172019-08-19 Tom Tromey <tromey@adacore.com>
4418
4419 * printcmd.c (do_one_display, info_display_command): Update.
4420 * block.h (contained_in): Return bool. Add allow_nested
4421 parameter.
4422 * block.c (contained_in): Return bool. Add allow_nested
4423 parameter.
4424
d806ea2d
TT
44252019-08-19 Tom Tromey <tom@tromey.com>
4426
4427 * configure: Rebuild.
4428 * configure.ac: Disallow the combination of -static-libstdc++ and
4429 source highlight.
4430 * source-cache.c (get_language_name): Handle rust.
4431 (source_cache::get_source_lines): Ignore highlighting exceptions.
4432
398fdd60
TT
44332019-08-16 Tom Tromey <tom@tromey.com>
4434
4435 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
4436 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
4437 (struct tui_source_window_base) <make_visible, refresh_window,
4438 resize>: Remove methods.
4439 <execution_info>: Remove field.
4440 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
4441 (tui_show_source_line, tui_source_window_base)
4442 (~tui_source_window_base): Update.
4443 (tui_source_window_base::resize)
4444 (tui_source_window_base::make_visible)
4445 (tui_source_window_base::refresh_window): Remove.
4446 (tui_source_window_base::update_exec_info): Update.
4447 * tui/tui-source.c (tui_source_window::set_contents): Update.
4448 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
4449
e699d331
TT
44502019-08-16 Tom Tromey <tom@tromey.com>
4451
4452 * tui/tui-hooks.c (tui_remove_hooks): Don't set
4453 deprecated_query_hook.
4454
bb01dbfc
TT
44552019-08-16 Tom Tromey <tom@tromey.com>
4456
4457 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
4458 (tui_update_source_windows_with_line): Update.
4459 * tui/tui-source.h (struct tui_source_window)
4460 <show_symtab_source>: Declare.
4461 (tui_show_symtab_source): Don't declare.
4462 * tui/tui-source.c (tui_show_symtab_source): Rename from
4463 tui_show_symtab_source.
4464
81c82c4b
TT
44652019-08-16 Tom Tromey <tom@tromey.com>
4466
4467 * tui/tui-winsource.h (struct tui_source_window_base)
4468 <set_contents>: Declare.
4469 * tui/tui-winsource.c
4470 (tui_source_window_base::update_source_window_as_is): Update.
4471 * tui/tui-source.h (struct tui_source_window) <set_contents>:
4472 Declare.
4473 (tui_set_source_content): Don't declare.
4474 * tui/tui-source.c (tui_source_window::set_contents): Rename from
4475 tui_set_source_content.
4476 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
4477 Declare.
4478 (tui_set_disassem_content): Don't declare.
4479 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
4480 tui_set_disassem_content.
4481
2ddaf614
TT
44822019-08-16 Tom Tromey <tom@tromey.com>
4483
4484 * tui/tui-winsource.h (struct tui_source_window_base)
4485 <update_breakpoint_info>: Declare.
4486 (tui_update_breakpoint_info): Don't declare.
4487 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
4488 (tui_update_all_breakpoint_info): Update.
4489 (tui_source_window_base::update_breakpoint_info): Rename from
4490 tui_update_breakpoint_info.
4491 (tui_source_window_base::update_exec_info): Update.
4492
017f9828
TT
44932019-08-16 Tom Tromey <tom@tromey.com>
4494
4495 * tui/tui-winsource.h (struct tui_source_window_base)
4496 <update_source_window>: Declare.
4497 (tui_update_source_window): Don't declare.
4498 * tui/tui-winsource.c
4499 (tui_source_window_base::update_source_window): Rename from
4500 tui_update_source_window.
4501 (tui_source_window_base::rerender): Update.
4502 * tui/tui-source.c (tui_source_window::maybe_update): Update.
4503 * tui/tui-disasm.c (tui_show_disassem)
4504 (tui_show_disassem_and_update_source)
4505 (tui_disasm_window::maybe_update): Update.
4506
ed8358e9
TT
45072019-08-16 Tom Tromey <tom@tromey.com>
4508
4509 * tui/tui-winsource.h (struct tui_source_window_base)
4510 <update_source_window_as_is>: Declare.
4511 (tui_update_source_window_as_is): Don't declare.
4512 * tui/tui-winsource.c (tui_update_source_window): Update
4513 (tui_source_window_base::update_source_window_as_is): Rename from
4514 tui_update_source_window_as_is.
4515 (tui_source_window_base::refill): Update.
4516 * tui/tui-source.c (tui_show_symtab_source): Update.
4517 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
4518 Update.
4519
20149b6b
TT
45202019-08-16 Tom Tromey <tom@tromey.com>
4521
4522 * tui/tui-winsource.h (tui_update_source_window)
4523 (tui_update_source_window_as_is): Remove "noerror" parameter.
4524 * tui/tui-winsource.c (tui_update_source_window)
4525 (tui_update_source_window_as_is): Remove "noerror" parameter.
4526 (tui_update_source_windows_with_addr)
4527 (tui_update_source_windows_with_line)
4528 (tui_source_window_base::rerender)
4529 (tui_source_window_base::refill): Update.
4530 * tui/tui-source.h (tui_set_source_content)
4531 (tui_show_symtab_source): Remove "noerror" parameter.
4532 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
4533 parameter.
4534 (tui_show_symtab_source): Likewise.
4535 (tui_source_window::maybe_update): Update.
4536 * tui/tui-disasm.c (tui_show_disassem)
4537 (tui_show_disassem_and_update_source)
4538 (tui_disasm_window::do_scroll_vertical)
4539 (tui_disasm_window::maybe_update): Update.
4540
2d83e710
TT
45412019-08-16 Tom Tromey <tom@tromey.com>
4542
4543 * tui/tui.c (tui_is_window_visible): Update.
4544 * tui/tui-wingeneral.c (tui_make_window)
4545 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
4546 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
4547 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
4548 (tui_set_win_height_command, parse_scrolling_args): Update.
4549 * tui/tui-source.c (tui_source_window::style_changed): Update.
4550 * tui/tui-regs.c (tui_show_registers)
4551 (tui_data_window::first_data_item_displayed)
4552 (tui_data_window::delete_data_content_windows)
4553 (tui_check_register_values, tui_reg_command): Update.
4554 * tui/tui-disasm.c (tui_show_disassem): Update.
4555 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
4556 method.
4557 <is_visible>: Remove field.
4558 * tui/tui-data.c (tui_next_win, tui_prev_win)
4559 (tui_delete_invisible_windows): Update.
4560
d4ab829a
TT
45612019-08-16 Tom Tromey <tom@tromey.com>
4562
4563 * tui/tui-winsource.h (struct tui_source_window_base)
4564 <m_has_locator>: Remove.
4565 * tui/tui-layout.c (show_source_disasm_command, show_data)
4566 (show_source_or_disasm_and_command): Update.
4567
aa7ca1bb
AH
45682019-08-16 Alan Hayward <alan.hayward@arm.com>
4569
4570 * NEWS (Other MI changes): New subsection.
4571 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
4572 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
4573 * arch-utils.c (default_get_pc_address_flags): New function.
4574 * arch-utils.h (default_get_pc_address_flags): New declaration.
4575 * gdbarch.sh: Add get_pc_address_flags.
4576 * gdbarch.c: Regenerate.
4577 * gdbarch.h: Likewise.
4578 * stack.c (print_pc): New function.
4579 (print_frame_info) (print_frame): Call print_pc.
4580
6eac171f
TV
45812019-08-16 Tom de Vries <tdevries@suse.de>
4582
4583 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
4584 print_objfile_section_info.
4585
3df505f6
TT
45862019-08-15 Tom Tromey <tom@tromey.com>
4587
4588 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
4589 calling update_cmdwin_start_line.
4590 * tui/tui-winsource.h (struct tui_source_window_base)
4591 <do_make_visible_with_new_height, set_new_height>: Don't declare.
4592 <rerender>: Declare.
4593 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
4594 Call rerender.
4595 (tui_source_window_base::set_new_height): Remove.
4596 (tui_source_window_base::rerender): Rename from
4597 do_make_visible_with_new_height.
4598 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
4599 resize method.
4600 (tui_win_info::make_invisible_and_set_new_height)
4601 (tui_win_info::make_visible_with_new_height): Remove.
4602 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
4603 Declare.
4604 * tui/tui-stack.c (tui_locator_window::rerender): New method.
4605 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
4606 do_make_visible_with_new_height>: Don't declare.
4607 <rerender>: Declare.
4608 * tui/tui-regs.c (tui_data_window::rerender): Rename from
4609 set_new_height.
4610 (tui_data_window::do_make_visible_with_new_height): Remove.
4611 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
4612 call tui_show_locator_content.
4613 (tui_gen_win_info::resize): Call rerender.
4614 (show_source_or_disasm_and_command): Don't call
4615 tui_show_locator_content.
4616 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
4617 method.
4618 (struct tui_win_info) <rerender>: Declare.
4619 <set_new_height, make_invisible_and_set_new_height,
4620 make_visible_with_new_height>: Don't declare.
4621 * tui/tui-data.c (tui_win_list::rerender): New method.
4622 * tui/tui-command.h (struct tui_cmd_window)
4623 <do_make_visible_with_new_height>: Don't declare.
4624 * tui/tui-command.c
4625 (tui_cmd_window::do_make_visible_with_new_height): Remove.
4626
272560b5
TT
46272019-08-15 Tom Tromey <tromey@adacore.com>
4628
4629 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
4630 * ada-lang.c (ada_enum_name): Likewise.
4631
08235187
CB
46322019-08-15 Christian Biesinger <cbiesinger@google.com>
4633
4634 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
4635 leading underscore.
4636 (GdbOutputErrorFile): Likewise.
4637 (global scope): Adjust constructor calls to GdbOutput{,Error}File
4638 accordingly.
4639 (execute_unwinders): Rename to have a leading underscore.
4640 (auto_load_packages): Likewise.
4641 (global scope): Adjust call to auto_load_packages accordingly.
4642 (GdbSetPythonDirectory): Likewise.
4643 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
4644 instead of execute_unwinders.
4645
db502012
TT
46462019-08-15 Tom Tromey <tom@tromey.com>
4647
4648 * tui/tui-layout.c (show_layout, show_source_disasm_command)
4649 (show_data): Don't change window visibility.
4650 (tui_gen_win_info::resize): Remove special case for command
4651 window. Use wresize, when available.
4652 (show_source_or_disasm_and_command): Don't change window
4653 visibility.
4654 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
4655 <make_visible>: New method.
4656 * tui/tui-command.c (tui_cmd_window::resize): New method.
4657
3891b65e
TT
46582019-08-15 Tom Tromey <tom@tromey.com>
4659
4660 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
4661 (struct tui_source_windows): New.
4662 * tui/tui-winsource.c (tui_display_main): Update.
4663 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4664 (new_height_ok, parse_scrolling_args): Update.
4665 * tui/tui-layout.c (show_layout, show_data): Update.
4666 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
4667 (tui_add_to_source_windows): Don't declare.
4668 * tui/tui-data.c (source_windows, tui_source_windows)
4669 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
4670
ee556432
TT
46712019-08-15 Tom Tromey <tom@tromey.com>
4672
4673 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
4674 Rename from reset.
4675 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
4676 * tui/tui-layout.c (show_source_disasm_command, show_data):
4677 Update.
4678 (tui_gen_win_info::resize): Rename.
4679 (show_source_or_disasm_and_command): Update.
4680 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
4681 reset.
4682
46f438e3
TT
46832019-08-15 Tom Tromey <tom@tromey.com>
4684
4685 * tui/tui-stack.c (tui_initialize_static_data): Remove.
4686 * tui/tui-interp.c (tui_interp::init): Don't call
4687 tui_initialize_static_data.
4688 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
4689
f4ce562c
TT
46902019-08-15 Tom Tromey <tom@tromey.com>
4691
4692 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
4693 examine tui_win_list.
4694
c398c3d0
TT
46952019-08-15 Tom Tromey <tom@tromey.com>
4696
4697 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
4698 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
4699 tui_clear_source_content.
4700 (tui_clear_source_content): Remove.
4701 (tui_source_window_base::do_erase_source_content): Hoist call to
4702 content.clear().
4703 * tui/tui-stack.c (tui_show_frame_info): Don't call
4704 tui_clear_source_content.
4705
e25d2004
TT
47062019-08-15 Tom Tromey <tom@tromey.com>
4707
4708 * tui/tui-winsource.h (struct tui_source_window_base)
4709 <do_erase_source_content>: New method.
4710 <erase_source_content>: New method.
4711 (tui_erase_source_content): Don't declare.
4712 * tui/tui-winsource.c (tui_clear_source_content): Update.
4713 (tui_source_window_base::do_erase_source_content): Rename from
4714 tui_erase_source_content.
4715 (tui_source_window_base::show_source_content): Update.
4716 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
4717 * tui/tui-source.h (struct tui_source_window)
4718 <erase_source_content>: New method.
4719 * tui/tui-disasm.h (struct tui_disasm_window)
4720 <erase_source_content>: New method.
4721
002f15c2
TT
47222019-08-15 Tom Tromey <tom@tromey.com>
4723
4724 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
4725 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
4726 constructor.
4727 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
4728 * tui/tui-source.c (tui_set_source_content): Update.
4729 * tui/tui-disasm.c (tui_set_disassem_content): Update.
4730
c9033fe8
TT
47312019-08-15 Tom Tromey <tom@tromey.com>
4732
4733 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
4734 * tui/tui-winsource.c (tui_line_is_displayed): Move to
4735 tui-source.c.
4736 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
4737 Declare.
4738 * tui/tui-source.c (tui_source_window::line_is_displayed): New
4739 method.
4740 (tui_source_window::maybe_update): Update.
4741
088f37dd
TT
47422019-08-15 Tom Tromey <tom@tromey.com>
4743
4744 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
4745 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
4746 tui-disasm.c.
4747 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
4748 Declare.
4749 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
4750 method.
4751 (tui_disasm_window::maybe_update): Update.
4752
a54700c6
TT
47532019-08-15 Tom Tromey <tom@tromey.com>
4754
4755 * tui/tui-winsource.h (struct tui_source_window_base)
4756 <maybe_update>: Declare.
4757 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
4758 method.
4759 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
4760 Declare.
4761 * tui/tui-source.c (tui_source_window::maybe_update): New method.
4762 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
4763 Declare.
4764 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
4765
e2a678a5
TT
47662019-08-15 Tom Tromey <tom@tromey.com>
4767
4768 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
4769
f2dda477
TT
47702019-08-15 Tom Tromey <tom@tromey.com>
4771
4772 * tui/tui-wingeneral.c: Include tui-stack.h.
4773 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
4774 (struct tui_locator_window): Move from tui-data.h.
4775 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
4776 (tui_initialize_static_data): Move from tui-data.c.
4777 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
4778 (struct tui_locator_window): Move to tui-stack.c.
4779 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
4780 (tui_initialize_static_data): Move to tui-stack.c.
4781
ed4a1084
TT
47822019-08-15 Tom Tromey <tom@tromey.com>
4783
4784 * tui/tui-layout.c (show_source_disasm_command)
4785 (show_source_or_disasm_and_command): Use make_visible method, not
4786 tui_make_window.
4787 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
4788 Remove.
4789
65962b20
TT
47902019-08-15 Tom Tromey <tom@tromey.com>
4791
4792 * tui/tui-wingeneral.h (tui_make_window): Update.
4793 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
4794 parameter.
4795 (tui_gen_win_info::make_visible): Update.
4796 * tui/tui-regs.c (tui_data_window::display_registers_from):
4797 Update.
4798 * tui/tui-layout.c (show_source_disasm_command)
4799 (show_source_or_disasm_and_command): Update.
4800 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
4801 (enum tui_box): Remove.
4802 (struct tui_win_info) <can_box>: New method.
4803 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
4804 method.
4805
2208ee91
TV
48062019-08-15 Tom de Vries <tdevries@suse.de>
4807
4808 * linux-nat-trad.c: Include gdbarch.h.
4809
75faf5c4
AH
48102019-08-14 Alan Hayward <alan.hayward@arm.com>
4811
4812 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
4813 register sizes.
4814
b1c896b3
TT
48152019-08-14 Tom Tromey <tromey@adacore.com>
4816
4817 * darwin-nat.c: Include gdbarch.h.
4818 * darwin-nat-info.c: Include gdbarch.h.
4819
6405cd73
TT
48202019-08-13 Tom Tromey <tom@tromey.com>
4821
4822 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
4823 Remove.
4824 * tui/tui-data.c (tui_initialize_static_data): Update.
4825
5216580d
TT
48262019-08-13 Tom Tromey <tom@tromey.com>
4827
4828 * tui/tui-winsource.h (struct tui_exec_info_window)
4829 <~tui_exec_info_window, maybe_allocate_content, get_content,
4830 m_content>: Remove.
4831 (struct tui_source_window_base) <set_exec_info_content,
4832 show_exec_info_content>: Don't declare.
4833 * tui/tui-winsource.c
4834 (tui_exec_info_window::maybe_allocate_content): Remove.
4835 (tui_source_window_base::update_exec_info): Rename from
4836 set_exec_info_content.
4837 (tui_source_window_base::show_exec_info_content)
4838 (tui_source_window_base::update_exec_info): Remove.
4839
93858ad3
TT
48402019-08-13 Tom Tromey <tom@tromey.com>
4841
4842 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
4843 declare.
4844 * tui/tui-winsource.c (tui_update_source_window_as_is)
4845 (tui_update_source_windows_with_addr, tui_erase_source_content):
4846 Update.
4847 (tui_clear_exec_info_content): Remove.
4848
e321e7ce
TT
48492019-08-13 Tom Tromey <tom@tromey.com>
4850
4851 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
4852 declare.
4853 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
4854 call tui_erase_exec_info_content.
4855 (tui_clear_exec_info_content): Rename from
4856 tui_erase_exec_info_content.
4857 (tui_clear_exec_info_content): Delete.
4858
8270ac62
TT
48592019-08-13 Tom Tromey <tom@tromey.com>
4860
4861 * tui/tui-winsource.h (struct tui_source_window_base)
4862 <show_exec_info_content>: Declare.
4863 (tui_show_exec_info_content): Don't declare.
4864 * tui/tui-winsource.c
4865 (tui_source_window_base::show_exec_info_content): Rename from
4866 tui_show_exec_info_content.
4867 (tui_source_window_base::update_exec_info): Update.
4868
7b56485d
TT
48692019-08-13 Tom Tromey <tom@tromey.com>
4870
4871 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
4872 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
4873 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
4874 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
4875 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
4876 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
4877 ... here.
4878
7ba913dc
TT
48792019-08-13 Tom Tromey <tom@tromey.com>
4880
4881 * tui/tui-winsource.h (struct tui_source_window_base)
4882 <update_exec_info>: Declare.
4883 (tui_update_exec_info): Don't declare.
4884 * tui/tui-winsource.c (tui_update_source_window_as_is)
4885 (tui_source_window_base::refresh_all)
4886 (tui_update_all_breakpoint_info): Update.
4887 (tui_source_window_base::update_exec_info): Rename from
4888 tui_update_exec_info.
4889 * tui/tui-stack.c (tui_show_frame_info): Update.
4890
37a4a131
TT
48912019-08-13 Tom Tromey <tom@tromey.com>
4892
4893 * tui/tui-winsource.h (struct tui_source_window_base)
4894 <set_exec_info_content>: Declare.
4895 (tui_set_exec_info_content): Don't declare.
4896 * tui/tui-winsource.c
4897 (tui_source_window_base::set_exec_info_content): Rename from
4898 tui_set_exec_info_content.
4899 (tui_update_exec_info): Update.
4900
0bd27e07
TT
49012019-08-13 Tom Tromey <tom@tromey.com>
4902
4903 * tui/tui-winsource.h (struct tui_source_window_base)
4904 <show_source_content>: Declare.
4905 (tui_show_source_content): Don't declare.
4906 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
4907 (tui_source_window_base::show_source_content): Rename from
4908 tui_show_source_content.
4909 (tui_source_window_base::refresh_all): Update.
4910 * tui/tui-layout.c (show_source_disasm_command)
4911 (show_source_or_disasm_and_command): Update.
4912
b4ef5aeb
TT
49132019-08-13 Tom Tromey <tom@tromey.com>
4914
4915 * tui/tui-winsource.c (tui_erase_source_content)
4916 (tui_show_source_content, tui_source_window_base::refresh_all):
4917 Update.
4918 * tui/tui-wingeneral.h
4919 (tui_check_and_display_highlight_if_needed): Don't declare.
4920 * tui/tui-wingeneral.c
4921 (tui_win_info::check_and_display_highlight_if_needed): Rename from
4922 check_and_display_highlight_if_needed.
4923 * tui/tui-win.c (tui_rehighlight_all)
4924 (tui_win_info::make_visible_with_new_height): Update.
4925 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
4926 (tui_data_window::erase_data_content)
4927 (tui_data_window::display_all_data): Update.
4928 * tui/tui-data.h (struct tui_win_info)
4929 <check_and_display_highlight_if_needed>: Declare.
4930
fede5273
TT
49312019-08-13 Tom Tromey <tom@tromey.com>
4932
4933 * tui/tui-win.c (tui_resize_all): Call
4934 tui_delete_invisible_windows.
4935 * tui/tui-layout.c (show_layout): Call
4936 tui_delete_invisible_windows.
4937 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
4938 * tui/tui-data.c (tui_delete_invisible_windows): New function.
4939
22c3f490
TT
49402019-08-13 Tom Tromey <tom@tromey.com>
4941
4942 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
4943 tui_add_win_to_layout.
4944
16cb7910
TT
49452019-08-13 Tom Tromey <tom@tromey.com>
4946
4947 * tui/tui-layout.h (tui_default_win_height): Don't declare.
4948 * tui/tui-layout.c (tui_default_win_height): Now static.
4949
cc0c3ffb
TT
49502019-08-13 Tom Tromey <tom@tromey.com>
4951
4952 * tui/tui-layout.c (show_layout): Unify all layout cases into a
4953 single switch.
4954 (show_source_disasm_command, show_source_or_disasm_and_command):
4955 Don't check current layout.
4956
3f3ffe54
TT
49572019-08-13 Tom Tromey <tom@tromey.com>
4958
4959 * tui/tui-wingeneral.c (make_all_visible): Remove.
4960 (tui_make_all_invisible): Simplify.
4961 * tui/tui-layout.c (tui_make_all_invisible): Move from
4962 tui-wingeneral.c; simplify.
4963 (show_layout): Hoist call to tui_make_all_invisible.
4964 (show_data): Don't call tui_make_all_invisible.
4965
69258091
TT
49662019-08-13 Tom Tromey <tom@tromey.com>
4967
4968 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
4969 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
4970
62cf57fe
TT
49712019-08-13 Tom Tromey <tom@tromey.com>
4972
4973 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
4974 tui-data.c.
4975 (show_source_disasm_command, show_data)
4976 (show_source_or_disasm_and_command): Don't use
4977 tui_set_current_layout_to.
4978 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
4979 * tui/tui-data.c (current_layout, tui_current_layout): Move to
4980 tui-layout.c.
4981 (tui_set_current_layout_to): Remove.
4982
2afade5d
TT
49832019-08-13 Tom Tromey <tom@tromey.com>
4984
4985 * tui/tui-layout.c (tui_set_layout): Update.
4986 * tui/tui-data.h (struct tui_layout_def): Remove.
4987 (tui_layout_def): Don't declare.
4988 * tui/tui-data.c (layout_def): Remove.
4989 (tui_layout_def): Remove.
4990
a3504e96
TT
49912019-08-13 Tom Tromey <tom@tromey.com>
4992
4993 * tui/tui-winsource.h (struct tui_source_window_base)
4994 <clear_detail>: No longer "override".
4995 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
4996 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
4997 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
4998 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
4999 Remove.
5000 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
5001
29c92911
TT
50022019-08-13 Tom Tromey <tromey@adacore.com>
5003
5004 * tracepoint.c: Don't include readline.h or history.h.
5005
86c6b807
TT
50062019-08-12 Tom Tromey <tom@tromey.com>
5007
5008 * configure: Rebuild.
5009 * configure.ac: Check for readline 7.
5010 * NEWS: Mention readline 7 requirement.
5011 * README: Update.
5012
5db2718c
TT
50132019-08-12 Tom Tromey <tom@tromey.com>
5014
5015 * mingw-hdep.c (gdb_select): Remove readline hack.
5016
dac36daf
PFC
50172019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5018
5019 * blockframe.c (find_pc_partial_function): Set *block to nullptr
5020 when the function fails.
5021
1022c627
AA
50222019-08-09 Andreas Arnez <arnez@linux.ibm.com>
5023
5024 * s390-tdep.c (s390_type_align): New function.
5025 (s390_gdbarch_init): Set it as type_align gdbarch method.
5026
eba4caf2
TV
50272019-08-09 Tom de Vries <tdevries@suse.de>
5028
5029 PR gdb/24591
5030 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
5031 pc_low with relocation offset.
5032
123cd851
TT
50332019-08-07 Tom Tromey <tromey@adacore.com>
5034
5035 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
5036 (print_frame_args): Update.
5037 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
5038 Update.
5039 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
5040 * frame.h (struct frame_arg): Add initializers.
5041 <error>: Now a unique_xmalloc_ptr.
5042
3d31bc39
AH
50432019-08-07 Alan Hayward <alan.hayward@arm.com>
5044
5045 * NEWS: Expand the Pointer Authentication entry.
5046 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
5047 (aarch64_frame_unmask_lr): ... to this.
5048 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
5049 Call aarch64_frame_unmask_lr.
5050 * frame.c (struct frame_info): Add "masked" variable.
5051 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
5052 (fprint_frame): Check for masked pc.
5053 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
5054 declarations.
5055 * python/py-framefilter.c (py_print_frame): Check for masked pc.
5056 * stack.c (print_frame): Check for masked pc.
5057
0cf9feb9
TT
50582019-08-06 Tom Tromey <tom@tromey.com>
5059
5060 * stabsread.c (patch_block_stabs, read_one_struct_field)
5061 (read_enum_type): Use obstack_strndup.
5062 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
5063 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
5064 * dwarf2read.c (guess_full_die_structure_name)
5065 (anonymous_struct_prefix): Use obstack_strndup.
5066 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
5067 * c-exp.y (yylex): Use obstack_strndup.
5068 * ada-exp.y (write_object_renaming, write_ambiguous_var)
5069 (write_var_or_type): Use obstack_strndup.
5070
efba19b0
TT
50712019-08-06 Tom Tromey <tom@tromey.com>
5072
5073 * symfile.c (reread_symbols): Use obstack_strdup.
5074 * stabsread.c (read_type): Use obstack_strdup.
5075 * gdb_obstack.h (obstack_strdup): New overload.
5076 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
5077 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
5078 (dwarf2_canonicalize_name): Use obstack_strdup.
5079 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
5080 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
5081 Use obstack_strdup.
5082
f25102f7
TT
50832019-08-06 Tom Tromey <tom@tromey.com>
5084
5085 * gdb_obstack.h (obstack_strdup): Define.
5086 * gdb_obstack.c (obstack_strdup): Don't define.
5087
021887d8
TT
50882019-08-06 Tom Tromey <tom@tromey.com>
5089
5090 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
5091 obstack_strdup.
5092 * typeprint.c (typedef_hash_table::find_global_typedef): Use
5093 obstack_strdup.
5094 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
5095 * stabsread.c (common_block_start): Use obstack_strdup.
5096 * objfiles.c (set_objfile_main_name, objfile): Use
5097 obstack_strdup.
5098 * namespace.c (add_using_directive): Use obstack_strdup.
5099 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
5100 * jit.c (finalize_symtab): Use obstack_strdup.
5101 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
5102 (guess_partial_die_structure_name, partial_die_info::fixup)
5103 (dwarf2_name): Use obstack_strdup.
5104 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
5105 obstack_strdup.
5106 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
5107 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
5108 obstack_strdup.
5109 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
5110
d2834edc
PW
51112019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5112
5113 * unittests/help-doc-selftests.c: New file.
5114 * Makefile.in: Add the new file.
5115
590042fc
PW
51162019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5117
5118 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
5119 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
5120 the full first line, except when FOR_VALUE_PREFIX. In this case,
5121 the trailing '.' is not output, and the first character is uppercased.
5122 (print_help_for_command): Update call to print_doc_line.
5123 (print_doc_of_command): Likewise.
5124 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
5125 * cli/cli-option.c (append_indented_doc): Do not append newline.
5126 (build_help_option): Append newline after first appended_indented_doc
5127 only if a second call is done.
5128 (build_help): Append 2 new lines before each option, except the first
5129 one.
5130 * compile/compile.c (_initialize_compile): Add new lines after
5131 %OPTIONS%, when not at the end of the help.
5132 Change help doc or code
5133 producing the help doc to respect the invariants.
5134 * maint-test-options.c (_initialize_maint_test_options): Likewise.
5135 Also removed the new line after 'Options:', as all other commands
5136 do not put an empty line between 'Options:' and the first option.
5137 * printcmd.c (_initialize_printcmd): Likewise.
5138 * stack.c (_initialize_stack): Likewise.
5139 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
5140 incorrectly telling COMMAND is optional.
5141 * ada-lang.c (_initialize_ada_language): Change help doc or code
5142 producing the help doc to respect the invariants.
5143 * ada-tasks.c (_initialize_ada_tasks): Likewise.
5144 * breakpoint.c (_initialize_breakpoint): Likewise.
5145 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
5146 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
5147 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
5148 * cli/cli-style.c (cli_style_option::add_setshow_commands,
5149 _initialize_cli_style): Likewise.
5150 * corelow.c (core_target_info): Likewise.
5151 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
5152 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
5153 * filesystem.c (_initialize_filesystem): Likewise.
5154 * frame.c (_initialize_frame): Likewise.
5155 * gnu-nat.c (add_task_commands): Likewise.
5156 * infcall.c (_initialize_infcall): Likewise.
5157 * infcmd.c (_initialize_infcmd): Likewise.
5158 * interps.c (_initialize_interpreter): Likewise.
5159 * language.c (_initialize_language): Likewise.
5160 * linux-fork.c (_initialize_linux_fork): Likewise.
5161 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
5162 * maint.c (_initialize_maint_cmds): Likewise.
5163 * memattr.c (_initialize_mem): Likewise.
5164 * printcmd.c (_initialize_printcmd): Likewise.
5165 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
5166 _RegEx): Likewise.
5167 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
5168 * record-btrace.c (_initialize_record_btrace): Likewise.
5169 * record-full.c (_initialize_record_full): Likewise.
5170 * record.c (_initialize_record): Likewise.
5171 * regcache-dump.c (_initialize_regcache_dump): Likewise.
5172 * regcache.c (_initialize_regcache): Likewise.
5173 * remote.c (add_packet_config_cmd, init_remote_threadtests,
5174 _initialize_remote): Likewise.
5175 * ser-tcp.c (_initialize_ser_tcp): Likewise.
5176 * serial.c (_initialize_serial): Likewise.
5177 * skip.c (_initialize_step_skip): Likewise.
5178 * source.c (_initialize_source): Likewise.
5179 * stack.c (_initialize_stack): Likewise.
5180 * symfile.c (_initialize_symfile): Likewise.
5181 * symtab.c (_initialize_symtab): Likewise.
5182 * target-descriptions.c (_initialize_target_descriptions): Likewise.
5183 * top.c (init_main): Likewise.
5184 * tracefile-tfile.c (tfile_target_info): Likewise.
5185 * tracepoint.c (_initialize_tracepoint): Likewise.
5186 * tui/tui-win.c (_initialize_tui_win): Likewise.
5187 * utils.c (add_internal_problem_command): Likewise.
5188 * valprint.c (value_print_option_defs): Likewise.
5189
404f2902
FCE
51902019-08-06 Frank Ch. Eigler <fche@redhat.com>
5191
5192 PR build/24886
5193 * configure.ac: Drop enable-libmcheck support.
5194 * configure, config.in: Rebuild.
5195 * libmcheck.m4: Remove.
5196 * acinclude.m4: Don't include it.
5197 * Makefile.in: Don't distribute it.
5198 * top.c (print_gdb_configuration): Don't mention it.
5199
046bebe1
TT
52002019-08-06 Tom Tromey <tom@tromey.com>
5201
5202 * utils.c (set_output_style): Sometimes pass stream to
5203 emit_style_escape.
5204 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
5205 * record-btrace.c (btrace_insn_history): Update.
5206 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
5207 method.
5208 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
5209 Update initializers.
5210 <m_uiout>: New field.
5211 <m_di>: Move lower.
5212 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5213 Remove "uiout" parameter.
5214 (dump_insns): Update.
5215 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
5216 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
5217
ddbcedf5
CB
52182019-08-06 Christian Biesinger <cbiesinger@google.com>
5219
5220 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
5221 (error_in_psymtab_expansion): Likewise.
5222 (lookup_symbol_via_quick_fns): Likewise.
5223 (basic_lookup_transparent_type_quick): Likewise.
5224 (basic_lookup_transparent_type_1): Likewise.
5225
b08b16c8
TT
52262019-08-06 Tom Tromey <tromey@adacore.com>
5227
5228 * source.c (last_source_error): Now bool.
5229 (print_source_lines_base): Make "noprint" bool. Only open
5230 source file when last_source_visited changes.
5231
cb44333d
TT
52322019-08-06 Tom Tromey <tromey@adacore.com>
5233
5234 * annotate.c (annotate_source_line): Use g_source_cache.
5235 * source-cache.c (source_cache::get_plain_source_lines): Change
5236 parameters. Populate m_offset_cache.
5237 (source_cache::ensure): New method.
5238 (source_cache::get_line_charpos): New method.
5239 (extract_lines): Move lower. Change parameters.
5240 (source_cache::get_source_lines): Move lower.
5241 * source-cache.h (class source_cache): Update comment.
5242 <get_line_charpos>: New method.
5243 <get_source_lines>: Update comment.
5244 <clear>: Clear m_offset_cache.
5245 <get_plain_source_lines>: Change parameters.
5246 <ensure>: New method
5247 <m_offset_cache>: New member.
5248 * source.c (forget_cached_source_info_for_objfile): Update.
5249 (info_source_command): Use g_source_cache.
5250 (find_source_lines, open_source_file_with_line_charpos): Remove.
5251 (print_source_lines_base, search_command_helper): Use g_source_cache.
5252 * source.h (open_source_file_with_line_charpos): Don't declare.
5253 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
5254 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
5255 Use g_source_cache.
5256
872dceaa
TT
52572019-08-06 Tom Tromey <tromey@adacore.com>
5258
5259 * source-cache.c (source_cache::get_plain_source_lines):
5260 Remove "first_line" and "last_line" parameters.
5261 (source_cache::get_source_lines): Cache plain text.
5262 * source-cache.h (class source_cache)
5263 <get_plain_source_lines>: Update.
5264
269249d9
TT
52652019-08-06 Tom Tromey <tromey@adacore.com>
5266
5267 * source-cache.c (extract_lines): No longer a method.
5268 Changed type of parameter. Include final newline.
5269 (selftests::extract_lines_test): New function.
5270 (_initialize_source_cache): Likewise.
5271 * source-cache.h (class source_cache)
5272 <extract_lines>: Don't declare.
5273
c0e8dcd8
TT
52742019-08-06 Tom Tromey <tromey@adacore.com>
5275
5276 * breakpoint.c (init_breakpoint_sal): Update.
5277 (breakpoint): Update.
5278 * breakpoint.h (struct breakpoint) <filter>: Now a
5279 unique_xmalloc_ptr.
5280
0b27c27d
CB
52812019-08-05 Christian Biesinger <cbiesinger@google.com>
5282
5283 * NEWS: Mention dictionary access on blocks.
5284 * python/py-block.c (blpy_getitem): New function.
5285 (block_object_as_mapping): New struct.
5286 (block_object_type): Use new struct for tp_as_mapping field.
5287
4ee94178
CB
52882019-08-05 Christian Biesinger <cbiesinger@google.com>
5289
5290 * objfiles.h (objfile): Add a comment describing partial symbols.
5291
8abfcabc
TT
52922019-08-05 Tom Tromey <tromey@adacore.com>
5293
5294 * compile/compile.c (_initialize_compile): Use _(), not N_().
5295 * thread.c (_initialize_thread): Use _(), not N_().
5296 * stack.c (_initialize_stack): Use _(), not N_().
5297 * printcmd.c (_initialize_printcmd): Use _(), not N_().
5298
2b79f376
SM
52992019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5300
5301 * dwarf2read.c (struct dw2_symtab_iterator):
5302 <want_specific_block>: Remove.
5303 <block_index>: Change type to gdb::optional.
5304 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
5305 change type of BLOCK_INDEX parameter to gdb::optional.
5306 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
5307 (dw2_lookup_symbol): Don't pass argument for
5308 WANT_SPECIFIC_BLOCK.
5309 (dw2_expand_symtabs_for_function): Don't pass argument for
5310 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
5311 (class dw2_debug_names_iterator)
5312 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
5313 parameter, change BLOCK_INDEX type to gdb::optional.
5314 <m_want_specific_block>: Remove.
5315 <m_block_index>: Change type to gdb::optional.
5316 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
5317 gdb::optional. Re-write in function of gdb::optional.
5318 (dw2_debug_names_lookup_symbol): Don't pass argument for
5319 WANT_SPECIFIC_BLOCK.
5320 (dw2_debug_names_expand_symtabs_for_function): Don't pass
5321 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
5322 BLOCK_INDEX.
5323
ae60f04e
PW
53242019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5325
5326 * NEWS: Mention changes to "info sources" command.
5327
28cd9371
PW
53282019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5329
5330 * symtab.c (filename_partial_match_opts): New struct type.
5331 (struct output_source_filename_data): New members
5332 regexp, c_regexp, partial_match.
5333 (output_source_filename): Use new members to decide to print file.
5334 (info_sources_option_defs): New variable.
5335 (make_info_sources_options_def_group, print_info_sources_header,
5336 info_sources_command_completer):
5337 New functions.
5338 (info_sources_command): Read new optional arguments.
5339 (_initialize_symtab): Update info sources help.
5340
ca683e3a
AO
53412019-08-02 Alexandre Oliva <oliva@adacore.com>
5342
5343 * ada-lang.c (exception_support_info_v0): Renamed from...
5344 (default_exception_support_info): ... this. Create new
5345 definition for v1.
5346 (ada_has_this_exception_support): Look up catch_handlers_sym.
5347 (ada_exception_support_info_sniffer): Try v0 after default.
5348
f1264162
TT
53492019-08-01 Tom Tromey <tromey@adacore.com>
5350
5351 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
5352 gdbarch.h.
5353
0a7b2485
CB
53542019-08-01 Christian Biesinger <cbiesinger@google.com>
5355
5356 * s12z-tdep.c: Fix include path for s12z-opc.h.
5357
c6bdbeb7
AH
53582019-08-01 Alan Hayward <alan.hayward@arm.com>
5359
5360 * NEWS: Require GNU make 3.82.
5361
a2bd7b82
TT
53622019-07-16 Tom Tromey <tom@tromey.com>
5363
5364 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
5365 declare.
5366
aa3b6533
TT
53672019-07-30 Tom Tromey <tromey@adacore.com>
5368
5369 * block.c (contained_in): Remove BLOCK_FUNCTION check.
5370
a1530dc7
KB
53712019-07-30 Kevin Buettner <kevinb@redhat.com>
5372
5373 * printcmd.c (print_address_symbolic): Print negative offsets.
5374 (build_address_symbolic): Force signed arithmetic when computing
5375 offset.
5376
2906593f
CB
53772019-07-30 Christian Biesinger <cbiesinger@google.com>
5378
5379 PR/24474: Add a function to lookup static variables.
5380 * NEWS: Mention this new function.
5381 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
5382 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
5383 * python/python.c (python_GdbMethods): Add new function.
5384
c620ed88
CB
53852019-07-29 Christian Biesinger <cbiesinger@google.com>
5386
5387 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
5388 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
5389 (objfpy_lookup_static_symbol): New function.
5390 (objfile_object_methods): Add new functions.
5391
bc4268a5
PW
53922019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5393
5394 * NEWS: Mention 'set|show print frame-info'. Mention new
5395 'presence' value for 'frame-arguments'. Mention new '-frame-info'
5396 backtrace argument. Mention that python frame filtering code
5397 is now consistent with what 'backtrace' command prints.
5398
4b5e8d19
PW
53992019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5400
5401 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
5402 comments.
5403 (print_frame_info_auto, print_frame_info_source_line,
5404 print_frame_info_location, print_frame_info_source_and_location,
5405 print_frame_info_location_and_address, print_frame_info_short_location):
5406 New declarations.
5407 (struct frame_print_options): New member print_frame_info.
5408 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
5409 * stack.h (get_user_print_what_frame_info): New declaration.
5410 (frame_show_address): New declaration.
5411 * stack.c (print_frame_arguments_choices): New value 'presence'.
5412 (print_frame_info_auto, print_frame_info_source_line,
5413 print_frame_info_location, print_frame_info_source_and_location,
5414 print_frame_info_location_and_address, print_frame_info_short_location,
5415 print_frame_info_choices, print_frame_info_print_what): New definitions.
5416 (print_frame_args): Only print dots for args if print frame-arguments
5417 is 'presence'.
5418 (frame_print_option_defs): New element for "frame-info".
5419 (get_user_print_what_frame_info): New function.
5420 (frame_show_address): Make non static. Move comment to stack.h.
5421 (print_frame_info_to_print_what): New function.
5422 (print_frame_info): Update comment. Use fp_opts.print_frame_info
5423 to decide what to print.
5424 (backtrace_command_1): Handle the new print_frame_arguments_presence
5425 value.
5426 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
5427 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
5428 (py_print_frame): In non-mi mode, use LOCATION as default for
5429 print_what, similarly to frame information printed directly by
5430 backtrace command. Handle frame-info user option in non MI mode.
5431
6bdfee81
KB
54322019-07-27 Kevin Buettner <kevinb@redhat.com>
5433
5434 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
5435 Add case for debugging 32-bit target on 64-bit host. Revise
5436 comment.
5437
98a617f8
KB
54382019-07-27 Kevin Buettner <kevinb@redhat.com>
5439
5440 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
5441 instead of find_function_entry_range_from_pc.
5442
567238c9
KB
54432019-07-27 Kevin Buettner <kevinb@redhat.com>
5444
5445 * stack.c (find_frame_funname): Remove code which preferred
5446 minsym over symtab sym in "certain pathological cases".
5447
2dc80cf8
KB
5448 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
5449 parameter. Change type of "do_demangle" to bool.
5450 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5451 Pass suitable "prefer_sym_over_minsym" flag to
5452 build_address_symbolic(). Don't output "+" for negative offsets.
5453 * printcmd.c (print_address_symbolic): Update invocation of
5454 build_address_symbolic to include a "prefer_sym_over_minsym"
5455 flag.
5456 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
5457 Restrict cases in which use of minimal symbol is preferred to that
5458 of a found symbol. Update comments.
5459
1aff7173
KB
5460 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
5461 for entry pc when entry pc is out of range for that FDE.
5462
89b085ac
BC
54632019-07-26 Brian Callahan <bcallah@openbsd.org>
5464
5465 PR gdb/24839:
5466 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
5467 type.
5468
f32feb4a
CB
54692019-07-25 Christian Biesinger <cbiesinger@google.com>
5470
5471 * python/py-objfile.c (add_separate_debug_file): Fix comment about
5472 this function's Python signature.
5473
5474
54752019-07-24 Christian Biesinger <cbiesinger@google.com>
442853af
CB
5476
5477 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
5478 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
5479 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
5480 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
5481 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
5482
5483
c54e4253
YS
54842019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
5485
5486 * h8300-tdep.c (h8300_register_name_common): New.
5487 h8300_register_name): Use h8300_register_name_common.
5488 (h8300s_register_name): Likewise.
5489 (h8300sx_register_name): Likewise.
5490 (h8300h_register_nam): New.
5491 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
5492
5493
40eadf04
SP
54942019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
5495
5496 * arm-tdep.c (arm_skip_cmse_entry): New function.
5497 (arm_is_sgstubs_section): New function.
5498 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
5499
bfa2a36d
TT
55002019-07-22 Tom Tromey <tom@tromey.com>
5501
5502 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
5503 Don't self-assign.
5504
a8e9d247
AB
55052019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5506
5507 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
5508 type_print.
5509
eb86c5e2
AB
55102019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5511
5512 * symtab.c (search_symbols): Adjust msymbol matching type arrays
5513 so that GDB doesn't match any msymbols when searching in the
5514 TYPES_DOMAIN.
5515 (print_symbol_info): Print using typedef_print or type_print based
5516 on the type of the symbol. Add updated FIXME comment moved from...
5517 (_initialize_symtab): ... move and update FIXME comment to above.
5518
a8eab7c6
AB
55192019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5520
5521 * NEWS: Mention adding -q option to "info types".
5522 * symtab.c (struct info_types_options): New struct.
5523 (info_types_options_defs): New variable.
5524 (make_info_types_options_def_group): New function.
5525 (info_types_command): Use gdb::option framework to parse options.
5526 (info_types_command_completer): New function.
5527 (_initialize_symtab): Extend the help text on "info types" and
5528 register command completer.
5529
b4603c34
CB
55302019-07-21 Christian Biesinger <cbiesinger@google.com>
5531
5532 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
5533 (lookup_symbol_in_objfile): Change int to block_enum and add a
5534 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
5535
c8cdc1e0
CB
55362019-07-20 Christian Biesinger <cbiesinger@google.com>
5537
5538 * MAINTAINERS (Write After Approval): Add self.
5539
01e175fe
AB
55402019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
5541
5542 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
5543 instruction to the dummy code region.
5544
56f79b63
TT
55452019-07-19 Tom Tromey <tromey@adacore.com>
5546
5547 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
5548 (ARGSUSED, PARAMS, __func__): Remove rules.
5549
4c5aa8e0
AH
55502019-07-19 Alan Hayward <alan.hayward@arm.com>
5551
5552 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
5553 * features/arm/arm-with-iwmmxt.c: Remove.
5554 * features/arm/arm-with-iwmmxt.xml: Remove.
5555 * features/arm/arm-with-m-fpa-layout.c: Remove.
5556 * features/arm/arm-with-m-fpa-layout.xml: Remove.
5557 * features/arm/arm-with-m-vfp-d16.c: Remove.
5558 * features/arm/arm-with-m-vfp-d16.xml: Remove.
5559 * features/arm/arm-with-m.c: Remove.
5560 * features/arm/arm-with-m.xml: Remove.
5561 * features/arm/arm-with-neon.c: Remove.
5562 * features/arm/arm-with-neon.xml: Remove.
5563 * features/arm/arm-with-vfpv2.c: Remove.
5564 * features/arm/arm-with-vfpv2.xml: Remove.
5565 * features/arm/arm-with-vfpv3.c: Remove.
5566 * features/arm/arm-with-vfpv3.xml: Remove.
5567
f42b2617
AH
55682019-07-19 Alan Hayward <alan.hayward@arm.com>
5569
5570 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
5571
f29ec966
AH
55722019-07-19 Alan Hayward <alan.hayward@arm.com>
5573
5574 * arch/aarch32.c (aarch32_create_target_description): Create
5575 target descriptions using features.
5576 * arch/arm.c (arm_create_target_description)
5577 (arm_create_mprofile_target_description): Likewise.
5578 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
5579
d105cce5
AH
55802019-07-19 Alan Hayward <alan.hayward@arm.com>
5581
5582 * Makefile.in: Add new files.
5583 * aarch32-tdep.c: New file.
5584 * aarch32-tdep.h: New file.
5585 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
5586 Call aarch32_read_description.
5587 * arch/aarch32.c: New file.
5588 * arch/aarch32.h: New file.
5589 * arch/arm.c (arm_create_target_description)
5590 (arm_create_mprofile_target_description): New function.
5591 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
5592 (arm_create_target_description)
5593 (arm_create_mprofile_target_description): New declaration.
5594 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
5595 read_description functions.
5596 * arm-linux-nat.c (arm_linux_nat_target::read_description):
5597 Likewise.
5598 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
5599 * arm-tdep.c (tdesc_arm_list): New variable.
5600 (arm_register_g_packet_guesses): Call create description functions.
5601 (arm_read_description) (arm_read_mprofile_description): New
5602 function.
5603 * arm-tdep.h (arm_read_description)
5604 (arm_read_mprofile_description): Add declaration.
5605 * configure.tgt: Add new files.
5606
afe09f0b
GL
56072019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
5608
5609 * top.c (new_ui_command): Open specified terminal just once.
5610
cd215b2e
TT
56112019-07-18 Tom Tromey <tromey@adacore.com>
5612
5613 * symtab.c (main_name): Constify return type.
5614 * symfile.c (set_initial_language): Update.
5615 * symtab.h (main_name): Constify return type.
5616
d8f68fcb
TT
56172019-07-17 Tom Tromey <tom@tromey.com>
5618
5619 * tui/tui-winsource.c (tui_update_source_window)
5620 (tui_update_source_window_as_is)
5621 (tui_update_source_windows_with_line): Remove return.
5622 * tui/tui-disasm.c (tui_show_disassem)
5623 (tui_show_disassem_and_update_source): Remove return.
5624 * tui/tui.c (tui_reset): Remove return.
5625 * tui/tui-wingeneral.c
5626 (tui_check_and_display_highlight_if_needed): Remove return.
5627
ca5af91e
TT
56282019-07-17 Tom Tromey <tom@tromey.com>
5629
5630 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
5631
5104fe36
TT
56322019-07-17 Tom Tromey <tom@tromey.com>
5633
5634 * tui/tui-winsource.h (struct tui_exec_info_window)
5635 (struct tui_source_window_base): Move from tui-data.h.
5636 * tui/tui-winsource.c: Move many method definitions from
5637 elsewhere. Remove "structuring" comments.
5638 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
5639 (tui_source_window_base::refresh_window): Move to
5640 tui-winsource.c.
5641 * tui/tui-win.c (tui_source_window_base::refresh_all)
5642 (tui_source_window_base::update_tab_width)
5643 (tui_source_window_base::set_new_height)
5644 (tui_source_window_base::do_make_visible_with_new_height): Move to
5645 tui-winsource.c.
5646 * tui/tui-source.h: Update.
5647 * tui/tui-source.c (tui_source_window_base::reset): Move to
5648 tui-winsource.c.
5649 * tui/tui-disasm.h: Update.
5650 * tui/tui-data.h (struct tui_exec_info_window): Move to
5651 tui-winsource.h.
5652 (struct tui_source_window_base): Likewise.
5653 * tui/tui-data.c (tui_source_window_base::clear_detail)
5654 (tui_source_window_base, ~tui_source_window_base): Move to
5655 tui-winsource.c.
5656
daa15dde
TT
56572019-07-17 Tom Tromey <tom@tromey.com>
5658
5659 * tui/tui-win.c (tui_resize_all)
5660 (tui_source_window_base::update_tab_width)
5661 (tui_adjust_win_heights): Update.
5662 (tui_win_info::make_invisible_and_set_new_height): Rename from
5663 make_invisible_and_set_new_height.
5664 * tui/tui-data.h (struct tui_win_info)
5665 <make_invisible_and_set_new_height>: New method.
5666
bfad4537
TT
56672019-07-17 Tom Tromey <tom@tromey.com>
5668
5669 * tui/tui.c: Update.
5670 * tui/tui-source.h (struct tui_source_window): Move from
5671 tui-data.h.
5672 * tui/tui-layout.c: Update.
5673 * tui/tui-disasm.c: Update.
5674 * tui/tui-data.h (struct tui_source_window): Move to
5675 tui-source.h.
5676
88f7e873
TT
56772019-07-17 Tom Tromey <tom@tromey.com>
5678
5679 * tui/tui-disasm.h (struct tui_disasm_window): Move from
5680 tui-data.h.
5681 * tui/tui-data.h (struct tui_disasm_window): Move to
5682 tui-disasm.h.
5683
96bd6233
TT
56842019-07-17 Tom Tromey <tom@tromey.com>
5685
5686 * tui/tui-regs.h (struct tui_data_item_window): Move from
5687 tui-data.h.
5688 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
5689 * tui/tui-data.h (struct tui_data_item_window): Move to
5690 tui-regs.h.
5691 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
5692
ce38393b
TT
56932019-07-17 Tom Tromey <tom@tromey.com>
5694
5695 * tui/tui.c: Update.
5696 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
5697 (tui_cmd_window::max_height): Move to tui-command.c.
5698 * tui/tui-layout.c: Update.
5699 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
5700 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
5701 tui-command.c.
5702 * tui/tui-command.h (struct tui_cmd_window): Move from
5703 tui-data.h.
5704 * tui/tui-command.c: Remove "structuring" comments.
5705 (tui_cmd_window::clear_detail)
5706 (tui_cmd_window::do_make_visible_with_new_height)
5707 (tui_cmd_window::max_height): Move from elsewhere.
5708
2d8b51cb
TT
57092019-07-17 Tom Tromey <tom@tromey.com>
5710
5711 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
5712 Now static.
5713 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
5714 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
5715
18ab23af
TT
57162019-07-17 Tom Tromey <tom@tromey.com>
5717
5718 * tui/tui.c: Update.
5719 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
5720 tui-regs.c.
5721 * tui/tui-windata.h: Remove file.
5722 * tui/tui-windata.c: Remove file.
5723 * tui/tui-win.c (tui_data_window::set_new_height)
5724 (tui_data_window::do_make_visible_with_new_height): Move to
5725 tui-regs.c.
5726 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
5727 * tui/tui-regs.c: Remove "structuring" comments.
5728 (tui_data_window::first_data_item_displayed)
5729 (tui_data_window::delete_data_content_windows)
5730 (tui_data_window::erase_data_content)
5731 (tui_data_window::display_all_data)
5732 (tui_data_window::refresh_all)
5733 (tui_data_window::do_scroll_vertical)
5734 (tui_data_window::clear_detail, tui_data_window::set_new_height)
5735 (tui_data_window::do_make_visible_with_new_height)
5736 (tui_data_window::refresh_window): Move from elsewhere.
5737 (_initialize_tui_regs): Move to end of file.
5738 * tui/tui-layout.c: Update.
5739 * tui/tui-hooks.c: Update.
5740 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
5741 * tui/tui-data.c (tui_data_window::clear_detail): Move to
5742 tui-regs.c.
5743 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
5744
88b7e7cc
TT
57452019-07-17 Tom Tromey <tom@tromey.com>
5746
5747 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
5748 seen.
5749
0fcd3711
TT
57502019-07-17 Tom Tromey <tom@tromey.com>
5751
5752 * tui/tui-win.c (tui_source_window_base::set_new_height)
5753 (tui_source_window_base::do_make_visible_with_new_height): Use
5754 m_has_locator field directly.
5755 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
5756 method.
5757 (struct tui_source_window_base) <has_locator>: Likewise.
5758
4a38112d
TT
57592019-07-17 Tom Tromey <tom@tromey.com>
5760
5761 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
5762 Don't declare.
5763 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
5764 Remove.
5765 * tui/tui-win.c (tui_source_window_base::set_new_height)
5766 (tui_source_window_base::set_new_height)
5767 (make_invisible_and_set_new_height)
5768 (tui_source_window_base::do_make_visible_with_new_height)
5769 (tui_source_window_base::do_make_visible_with_new_height):
5770 Update.
5771 * tui/tui-layout.c (show_source_disasm_command, show_data)
5772 (show_source_or_disasm_and_command): Update.
5773 * tui/tui-layout.c (show_layout): Update.
5774
09129226
TT
57752019-07-17 Tom Tromey <tom@tromey.com>
5776
5777 * tui/tui-layout.c (make_data_window): Remove.
5778 (show_data): Unify creation and re-initialization cases.
5779
4a8a5e84
TT
57802019-07-17 Tom Tromey <tom@tromey.com>
5781
5782 * tui/tui-layout.c (make_source_window, make_disasm_window):
5783 Remove.
5784 (show_data): Unify creation and re-initialization cases.
5785
76d2be8e
TT
57862019-07-17 Tom Tromey <tom@tromey.com>
5787
5788 * tui/tui-layout.c (make_command_window): Remove.
5789 (show_source_disasm_command, show_source_or_disasm_and_command):
5790 Unify creation and re-initialization cases.
5791
890b8bde
TT
57922019-07-17 Tom Tromey <tom@tromey.com>
5793
5794 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
5795 creation and re-initialization cases.
5796
2cdfa113
TT
57972019-07-17 Tom Tromey <tom@tromey.com>
5798
5799 * tui/tui-regs.c (tui_get_register): Return void.
5800
8e3cfd09
TT
58012019-07-17 Tom Tromey <tom@tromey.com>
5802
5803 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
5804 Simplify.
5805
f4e04977
TT
58062019-07-17 Tom Tromey <tom@tromey.com>
5807
5808 * tui/tui-layout.c (show_source_disasm_command): Simplify window
5809 resetting.
5810
0379b883
TT
58112019-07-17 Tom Tromey <tom@tromey.com>
5812
5813 * tui/tui.h (tui_set_layout_by_name): Don't declare.
5814 * tui/tui-regs.c (tui_reg_layout): New function.
5815 (tui_show_registers, tui_reg_command): Use it.
5816 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
5817 (tui_layout_command): Rename from tui_set_layout_by_name. Change
5818 parameters.
5819 (tui_layout_command): Remove.
5820
b7fbad91
TT
58212019-07-17 Tom Tromey <tom@tromey.com>
5822
5823 * tui/tui-layout.h (tui/tui-layout): Return void.
5824 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
5825
4e1e56b9
TT
58262019-07-17 Tom Tromey <tom@tromey.com>
5827
5828 * tui/tui-layout.c (show_source_disasm_command, show_data):
5829 Update.
5830 (reset_locator): Remove.
5831 (show_source_or_disasm_and_command): Update.
5832
1e0c09ba
TT
58332019-07-17 Tom Tromey <tom@tromey.com>
5834
5835 * tui/tui-source.c (tui_source_window_base::reset): Remove
5836 win_type parameter.
5837 * tui/tui-layout.c (make_command_window, make_source_window)
5838 (make_disasm_window, make_data_window)
5839 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
5840 (reset_locator, show_source_or_disasm_and_command): Update.
5841 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
5842 win_type parameter.
5843 (struct tui_source_window_base) <reset>: Likewise.
5844
1bf605de
TT
58452019-07-17 Tom Tromey <tom@tromey.com>
5846
5847 * tui/tui-layout.c (show_source_disasm_command): Use
5848 reset_locator.
5849 (reset_locator): New function.
5850 (init_and_make_win): Remove.
5851 (show_source_or_disasm_and_command): Use reset_locator.
5852
098f9ed4
TT
58532019-07-17 Tom Tromey <tom@tromey.com>
5854
5855 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
5856 condition.
5857 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
5858 Remove condition.
5859 * tui/tui-source.c (tui_source_window_base::reset): New method.
5860 * tui/tui-layout.c (make_command_window): Don't call
5861 init_and_make_win.
5862 (make_source_window, make_disasm_window): Don't call
5863 make_source_or_disasm_window.
5864 (make_data_window): Don't call init_and_make_win. Change calling
5865 convention.
5866 (show_source_disasm_command, show_data): Simplify.
5867 (make_source_or_disasm_window): Remove.
5868 (show_source_or_disasm_and_command): Simplify.
5869 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
5870 (struct tui_source_window_base) <reset>: Likewise.
5871 <execution_info>: Remove initializer.
5872 * tui/tui-data.c (tui_source_window_base): Initialize
5873 execution_info.
5874
80110957
TT
58752019-07-17 Tom Tromey <tom@tromey.com>
5876
5877 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
5878 variable.
5879
cf82af05
TT
58802019-07-17 Tom Tromey <tom@tromey.com>
5881
5882 * tui/tui.c (tui_rl_other_window): Update.
5883 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
5884 superclass method first. Always iterate over regs_content.
5885 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
5886 method.
5887 * tui/tui-win.c (tui_set_focus_command): Update.
5888
01aeb396
TT
58892019-07-17 Tom Tromey <tom@tromey.com>
5890
5891 * tui/tui-win.c (tui_set_focus_command): Rename from
5892 tui_set_focus. Call tui_enable.
5893 (tui_set_focus_command): Remove.
5894
fd6c75ee
TT
58952019-07-17 Tom Tromey <tom@tromey.com>
5896
5897 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
5898 refresh_window.
5899 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
5900 touchwin.
5901 (tui_data_window::refresh_window): Call refresh_window on data
5902 items. Always call superclass refresh_window.
5903 (tui_win_info::refresh): Remove.
5904 (tui_source_window_base::refresh_window): Update.
5905 (tui_refresh_all): Update.
5906 * tui/tui-layout.c (show_source_disasm_command): Remove call to
5907 refresh_window.
5908 (show_source_or_disasm_and_command): Likewise.
5909 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
5910 (struct tui_source_window_base) <refresh>: Likewise.
5911
f6cc34a9
TT
59122019-07-17 Tom Tromey <tom@tromey.com>
5913
5914 * tui/tui-winsource.c (tui_clear_source_content)
5915 (tui_show_source_content): Update.
5916 * tui/tui-source.c (tui_source_window::showing_source_p): Check
5917 whether content is empty.
5918 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
5919 Remove.
5920
f31ec9af
TT
59212019-07-17 Tom Tromey <tom@tromey.com>
5922
5923 * tui/tui-winsource.c (tui_erase_source_content): Clear the
5924 window's contents.
5925 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
5926 * tui/tui-source.c (tui_set_source_content_nil): Remove.
5927
d1b6f1e5
TT
59282019-07-17 Tom Tromey <tom@tromey.com>
5929
5930 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
5931 (struct tui_data_item_window): Update.
5932
d9743a13
TT
59332019-07-17 Tom Tromey <tom@tromey.com>
5934
5935 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
5936 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
5937 defines.
5938
caf0bc4e
TT
59392019-07-17 Tom Tromey <tom@tromey.com>
5940
5941 * tui/tui-winsource.h (tui_erase_source_content)
5942 (tui_clear_source_content): Remove "display_prompt" parameter.
5943 * tui/tui-winsource.c (tui_update_source_window_as_is)
5944 (tui_update_source_windows_with_addr): Update.
5945 (tui_clear_source_content): Remove "display_prompt" parameter.
5946 (tui_erase_source_content): Likewise. Simplify.
5947 (tui_show_source_content): Update.
5948 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
5949 * tui/tui-stack.c (tui_show_frame_info): Update.
5950 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
5951 Remove defines.
5952
9d391078
TT
59532019-07-17 Tom Tromey <tom@tromey.com>
5954
5955 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
5956 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
5957 parameter.
5958 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
5959 parameter.
5960
a38da35d
TT
59612019-07-17 Tom Tromey <tom@tromey.com>
5962
5963 * tui/tui-winsource.c (tui_clear_source_content)
5964 (tui_show_source_content, tui_show_exec_info_content)
5965 (tui_clear_exec_info_content): Update.
5966 * tui/tui-stack.c (tui_show_locator_content): Update.
5967 (tui_show_frame_info): Update.
5968 * tui/tui-source.h (tui_source_window): Don't declare.
5969 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
5970 from tui_source_is_displayed.
5971 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
5972 Remove field.
5973 (struct tui_source_window_base) <content_in_use>: New field. Now
5974 bool.
5975 (struct tui_source_window) <showing_source_p>: New method.
5976 (TUI_SRC_WIN): Change cast.
5977 * tui/tui-data.c (tui_initialize_static_data): Update.
5978
c2cd8994
TT
59792019-07-17 Tom Tromey <tom@tromey.com>
5980
5981 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
5982 location_matches_p.
5983 * tui/tui-source.c (tui_source_window::location_matches_p): New
5984 method.
5985 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
5986 method.
5987 * tui/tui-data.h (struct tui_source_window_base)
5988 <location_matches_p>: New method.
5989 (struct tui_source_window, struct tui_disasm_window)
5990 <location_matches_p>: Likewise.
5991
4dde7b34
TT
59922019-07-17 Tom Tromey <tom@tromey.com>
5993
5994 * tui/tui-win.c (tui_set_win_height_command): Rename from
5995 tui_set_win_height.
5996 (tui_set_win_height_command): Remove.
5997
b73dd877
TT
59982019-07-17 Tom Tromey <tom@tromey.com>
5999
6000 * tui/tui-source.c (tui_source_window): New constructor. Add
6001 observer.
6002 (~tui_source_window): New destructor.
6003 (tui_source_window::style_changed): New method.
6004 * tui/tui-hooks.c (tui_redisplay_source): Remove.
6005 (tui_attach_detach_observers): Update.
6006 * tui/tui-data.h (struct tui_source_window): Make constructor not
6007 inline. Add destructor.
6008 (struct tui_source_window) <style_changed>: New method.
6009 <m_observable>: New member.
6010
ae2b5380
TT
60112019-07-17 Tom Tromey <tom@tromey.com>
6012
6013 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
6014 * tui/tui-win.c (tui_resize_all): Fix typo.
6015
1ce3e844
TT
60162019-07-17 Tom Tromey <tom@tromey.com>
6017
6018 * tui/tui-wingeneral.h (tui_refresh_all): Update.
6019 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
6020 (tui_refresh_all): Remove "list" parameter. Use foreach.
6021 * tui/tui-win.c (window_name_completer): Use foreach.
6022 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
6023 (update_tab_width): Likewise.
6024 * tui/tui-layout.c (show_layout): Update.
6025 * tui/tui-data.h (class tui_window_iterator): New.
6026 (struct all_tui_windows): New.
6027 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
6028
fe3eaf1c
TT
60292019-07-17 Tom Tromey <tom@tromey.com>
6030
6031 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
6032 parameter. Don't reference globals.
6033 (tui_reg_command): Update.
6034
368c1354
TT
60352019-07-17 Tom Tromey <tom@tromey.com>
6036
6037 * tui/tui-regs.c (tui_show_registers): Simplify.
6038
e80cd204
TT
60392019-07-17 Tom Tromey <tom@tromey.com>
6040
6041 * tui/tui-regs.c (tui_show_registers): Update.
6042 (tui_show_register_group): Add win_info parameter.
6043
aca2dd16
TT
60442019-07-17 Tom Tromey <tom@tromey.com>
6045
6046 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
6047 Rename from tui_display_reg_element_at_line.
6048 (tui_data_window::display_registers_from_line): Update.
6049 * tui/tui-data.h (struct tui_data_window)
6050 <display_reg_element_at_line>: New method.
6051
517e9505
TT
60522019-07-17 Tom Tromey <tom@tromey.com>
6053
6054 * tui/tui-regs.h (tui_display_registers_from)
6055 (tui_display_registers_from_line): Don't declare.
6056 * tui/tui-windata.c (tui_data_window::display_all_data)
6057 (tui_data_window::refresh_all)
6058 (tui_data_window::do_scroll_vertical): Update.
6059 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
6060 from tui_display_registers_from.
6061 (tui_display_reg_element_at_line): Update.
6062 (tui_data_window::display_registers_from_line): Rename from
6063 tui_display_registers_from_line.
6064 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
6065 display_registers_from_line>: New methods.
6066
f76d8b19
TT
60672019-07-17 Tom Tromey <tom@tromey.com>
6068
6069 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
6070 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
6071 from tui_erase_data_content.
6072 (tui_data_window::display_all_data)
6073 (tui_data_window::refresh_all)
6074 (tui_data_window::do_scroll_vertical): Update.
6075 * tui/tui-regs.c (tui_show_registers): Update.
6076 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
6077 New method.
6078
b4094625
TT
60792019-07-17 Tom Tromey <tom@tromey.com>
6080
6081 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
6082 declare.
6083 * tui/tui-windata.c
6084 (tui_data_window::delete_data_content_windows): Rename from
6085 tui_delete_data_content_windows.
6086 (tui_data_window::display_all_data)
6087 (tui_data_window::do_scroll_vertical): Update.
6088 * tui/tui-data.h (struct tui_data_window)
6089 <delete_data_content_windows>: New method.
6090
c223a729
TT
60912019-07-17 Tom Tromey <tom@tromey.com>
6092
6093 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
6094 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
6095
50daf268
TT
60962019-07-17 Tom Tromey <tom@tromey.com>
6097
6098 * tui/tui-windata.h (tui_display_all_data): Don't declare.
6099 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
6100 from tui_display_all_data.
6101 * tui/tui-win.c
6102 (tui_data_window::do_make_visible_with_new_height): Update.
6103 * tui/tui-regs.c (tui_show_registers): Update.
6104 * tui/tui-layout.c (tui_set_layout): Update.
6105 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
6106 method.
6107
df5f8cab
TT
61082019-07-17 Tom Tromey <tom@tromey.com>
6109
6110 * tui/tui-windata.h (tui_display_data_from): Don't declare.
6111 * tui/tui-windata.c (tui_display_data_from): Remove.
6112 (tui_data_window::refresh_all): Update.
6113
80cb6c27
TT
61142019-07-17 Tom Tromey <tom@tromey.com>
6115
6116 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
6117 * tui/tui-windata.c (tui_display_data_from_line): Remove.
6118 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
6119 tui_display_registers_from_line.
6120 * tui/tui-regs.h (tui_display_registers_from_line): Update.
6121 * tui/tui-regs.c (tui_display_registers_from_line): Remove
6122 "force_display" parameter.
6123
baff0c28
TT
61242019-07-17 Tom Tromey <tom@tromey.com>
6125
6126 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
6127 declare.
6128 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
6129 Rename from tui_first_reg_element_no_inline.
6130 (tui_display_reg_element_at_line)
6131 (tui_display_registers_from_line): Update.
6132 * tui/tui-data.h (struct tui_data_window)
6133 <first_reg_element_no_inline>: New method.
6134
3b23c5f2
TT
61352019-07-17 Tom Tromey <tom@tromey.com>
6136
6137 * tui/tui-windata.c (tui_display_data_from)
6138 (tui_data_window::do_scroll_vertical): Update.
6139 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
6140 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
6141 Rename from tui_line_from_reg_element_no.
6142 (tui_display_registers_from_line): Update.
6143 * tui/tui-data.h (struct tui_data_window)
6144 <line_from_reg_element_no>: New method.
6145
0b5ec218
TT
61462019-07-17 Tom Tromey <tom@tromey.com>
6147
6148 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
6149 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
6150 tui_last_regs_line_no.
6151 (tui_display_reg_element_at_line)
6152 (tui_display_registers_from_line): Update.
6153 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
6154 method.
6155
0807ab7b
TT
61562019-07-17 Tom Tromey <tom@tromey.com>
6157
6158 PR tui/24722:
6159 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
6160 (tui_update_breakpoint_info): Add "being_deleted" parameter.
6161 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
6162 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
6163 (tui_update_breakpoint_info): Likewise.
6164 * tui/tui-hooks.c (tui_event_create_breakpoint)
6165 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
6166 Update.
6167
9ad7fdef
TT
61682019-07-17 Tom Tromey <tom@tromey.com>
6169
6170 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
6171
5813316f
TT
61722019-07-17 Tom Tromey <tom@tromey.com>
6173
6174 * tui/tui-winsource.c (tui_update_source_window_as_is)
6175 (tui_update_source_windows_with_addr): Update.
6176 * tui/tui-source.h (tui_set_source_content)
6177 (tui_show_symtab_source): Add "win_info" parameter.
6178 * tui/tui-source.c (tui_set_source_content): Add "win_info"
6179 parameter.
6180 (tui_show_symtab_source): Likewise.
6181
00e264e7
TT
61822019-07-17 Tom Tromey <tom@tromey.com>
6183
6184 * tui/tui-wingeneral.c
6185 (tui_check_and_display_highlight_if_needed): Check can_highlight.
6186
06210ce4
TT
61872019-07-17 Tom Tromey <tom@tromey.com>
6188
6189 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
6190 (struct tui_cmd_window) <can_scroll>: New method.
6191 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
6192 method.
6193
381befee
TT
61942019-07-17 Tom Tromey <tromey@adacore.com>
6195
6196 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
6197 do_field_signed>: Rename. Change type of "value".
6198 * ui-out.c (ui_out::field_signed): Rename from field_int.
6199 Change type of "value".
6200 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
6201 type of "value".
6202 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
6203 do_field_int. Change type of "value".
6204 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
6205 do_field_int. Change type of "value".
6206 * tracepoint.c (trace_status_mi, tfind_1)
6207 (print_one_static_tracepoint_marker): Update.
6208 * thread.c (print_thread_info_1, print_selected_thread_frame):
6209 Update.
6210 * stack.c (print_frame, print_frame_info): Update.
6211 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
6212 Update.
6213 * source.c (print_source_lines_base): Update.
6214 * skip.c (info_skip_command): Update.
6215 * record-btrace.c (btrace_ui_out_decode_error)
6216 (btrace_call_history_src_line): Update.
6217 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
6218 Update.
6219 * progspace.c (print_program_space): Update.
6220 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
6221 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
6222 do_field_int. Change type of "value".
6223 * mi/mi-out.c (mi_ui_out::do_table_begin)
6224 (mi_ui_out::do_table_header): Update.
6225 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
6226 type of "value".
6227 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
6228 (mi_cmd_data_list_changed_registers, output_register)
6229 (mi_cmd_data_read_memory, mi_load_progress)
6230 (mi_cmd_trace_frame_collected): Update.
6231 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
6232 Update.
6233 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
6234 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
6235 (mi_cmd_var_list_children, varobj_update_one): Update.
6236 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
6237 (mi_cmd_stack_list_args, list_arg_or_local): Update.
6238 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
6239 * inferior.c (print_inferior): Update.
6240 * gdb_bfd.c (print_one_bfd): Update.
6241 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
6242 Update.
6243 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
6244 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
6245 do_field_int. Change type of "value".
6246 * cli-out.c (cli_ui_out::do_field_signed): Rename from
6247 do_field_int. Change type of "value".
6248 * breakpoint.c (watchpoint_check, print_breakpoint_location)
6249 (print_one_breakpoint_location, print_it_catch_fork)
6250 (print_one_catch_fork, print_it_catch_vfork)
6251 (print_one_catch_vfork, print_it_catch_solib)
6252 (print_it_catch_exec, print_it_ranged_breakpoint)
6253 (print_mention_watchpoint, print_mention_masked_watchpoint)
6254 (bkpt_print_it, update_static_tracepoint): Update.
6255 * break-catch-throw.c (print_it_exception_catchpoint): Update.
6256 * break-catch-syscall.c (print_it_catch_syscall): Update.
6257 * ada-tasks.c (print_ada_task_info): Update.
6258 * ada-lang.c (print_it_exception, print_mention_exception):
6259 Update.
6260
6b78c3f8
AB
62612019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
6262
6263 PR breakpoints/24541
6264 * gdbarch.c: Regenerate.
6265 * gdbarch.h: Regenerate.
6266 * gdbarch.sh: Adjust return type and parameter types for
6267 'stap_adjust_register'.
6268 (i386_stap_adjust_register): Adjust signature and return new
6269 register name.
6270 * stap-probe.c (stap_parse_register_operand): Adjust use of
6271 'gdbarch_stap_adjust_register'.
6272
d72a9b85
TT
62732019-07-17 Tom Tromey <tromey@adacore.com>
6274
6275 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
6276 declare VEC.
6277 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
6278 std::vector.
6279 (struct s390_process_info): Add initializers.
6280 (s390_add_process): Use new.
6281 (s390_linux_nat_target::low_forget_process): Use delete.
6282 (s390_linux_nat_target::low_new_fork)
6283 (s390_linux_nat_target::stopped_by_watchpoint)
6284 (s390_linux_nat_target::low_prepare_to_resume)
6285 (s390_linux_nat_target::insert_watchpoint)
6286 (s390_linux_nat_target::insert_hw_breakpoint)
6287 (s390_linux_nat_target::remove_watchpoint)
6288 (s390_linux_nat_target::remove_hw_breakpoint): Update.
6289
206e6c58
JB
62902019-07-16 John Baldwin <jhb@FreeBSD.org>
6291
6292 * aarch64-fbsd-nat.c: Include regcache.h.
6293 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
6294 argument.
6295 (aarch64_fbsd_nat_target::fetch_registers)
6296 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
6297 variable.
6298 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
6299
cbde90f2
JB
63002019-07-16 John Baldwin <jhb@FreeBSD.org>
6301
6302 * fbsd-nat.c: Include gdbarch.h.
6303
07128006
TT
63042019-07-15 Tom Tromey <tromey@adacore.com>
6305
6306 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
6307
1f77b012
TT
63082019-07-15 Tom Tromey <tromey@adacore.com>
6309
6310 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
6311 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
6312 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
6313 * cli-out.c (cli_ui_out::do_field_int): New method.
6314 * ui-out.c (ui_out::field_unsigned): New method.
6315 * symfile.c (generic_load): Use field_unsigned.
6316 (print_transfer_performance): Likewise.
6317 * record-btrace.c (ui_out_field_uint): Remove.
6318 (btrace_call_history_insn_range, btrace_call_history): Use
6319 field_unsigned.
6320 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
6321 field_unsigned.
6322 * ui-out.h (class ui_out) <field_unsigned>: New method.
6323 <do_field_unsigned>: Likewise.
6324
33eca680
TT
63252019-07-15 Tom Tromey <tromey@adacore.com>
6326
6327 * mi/mi-main.c (list_available_thread_groups): Use field_string.
6328 * mi/mi-interp.c (mi_memory_changed): Use field_string.
6329 * target.c (flash_erase_command): Use field_string.
6330 * infrun.c (print_signal_received_reason): Use field_string.
6331 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
6332 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
6333 field_string.
6334 * ada-tasks.c (print_ada_task_info): Use field_string.
6335
ca8d69be
TT
63362019-07-15 Tom Tromey <tromey@adacore.com>
6337
6338 * target.c (flash_erase_command): Use field_core_addr.
6339 * symfile.c (generic_load): Use field_core_addr.
6340 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
6341 Use field_core_addr.
6342 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
6343 field_core_addr.
6344
0d4e84ed
AB
63452019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6346
6347 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
6348 value if its desired type is smaller than a CORE_ADDR and signed.
6349
9a49df9d
AB
63502019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6351
6352 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
6353 of changes to field names, and use new is_reference field to
6354 decide if a property is a reference or not.
6355 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
6356 field.
6357 (struct dwarf2_property_baton): Update header comment, rename
6358 'referenced_type' to 'property_type' and update comments.
6359 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
6360 default property type, store in property baton, update to take
6361 accound of renamed field.
6362 (read_func_scope): Update call to attr_to_dynamic_prop.
6363 (read_array_type): Likewise.
6364 (dwarf2_per_cu_addr_sized_int_type): New function.
6365 (read_subrange_index_type): Move type finding code to
6366 dwarf2_per_cu_addr_sized_int_type.
6367 (read_subrange_type): Update calls to attr_to_dynamic_prop.
6368 (dwarf2_per_cu_addr_type): New function.
6369 (set_die_type): Update calls to attr_to_dynamic_prop.
6370
b86352cf
AB
63712019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6372
6373 * dwarf2read.c (read_subrange_index_type): New function.
6374 (read_subrange_type): Move code into new function and call it.
6375 * gdbtypes.c (create_range_type): Add some asserts.
6376
603490bf
AB
63772019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6378
6379 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
6380 update return statements.
6381 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
6382 declaration, and update comment to match.
6383 * gdbtypes.c (resolve_dynamic_array): Update call to
6384 dwarf2_evaluate_property to match new return type.
6385
592f9d27
AB
63862019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6387
6388 * valarith.c (value_subscripted_rvalue): Change lowerbound
6389 parameter type from int to LONGEST.
6390 * value.h (value_subscripted_rvalue): Likewise in declaration.
6391
60cfcb20
AB
63922019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6393
6394 * cli/cli-utils.c (info_print_command_completer): New function.
6395 * cli/cli-utils.h: Add 'completer.h' include, and forward
6396 declaration for 'struct cmd_list_element'.
6397 (info_print_command_completer): Declare.
6398 * stack.c (_initialize_stack): Add completer for 'info locals' and
6399 'info args'.
6400 * symtab.c (_initialize_symtab): Add completer for 'info
6401 variables' and 'info functions'.
6402 * NEWS: Mention completion for additional info commands.
6403
b16507e0
AB
64042019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6405
6406 * cli/cli-utils.c (extract_info_print_args): Delete.
6407 (extract_arg_maybe_quoted): Delete.
6408 (info_print_options_defs): New variable.
6409 (make_info_print_options_def_group): New function.
6410 (extract_info_print_options): Define new function.
6411 * cli/cli-utils.h (extract_info_print_args): Delete.
6412 (struct info_print_options): New structure.
6413 (extract_info_print_options): Declare new function.
6414 * stack.c (info_locals_command): Update to use new
6415 extract_info_print_options, also add a header comment.
6416 (info_args_command): Likewise.
6417 * symtab.c (info_variables_command): Likewise.
6418 (info_functions_command): Likewise.
6419
021d8588
AB
64202019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6421
6422 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
6423 to extract string arguments.
6424 * common/common-utils.c (extract_string_maybe_quoted): New function.
6425 * common/common-utils.h (extract_string_maybe_quoted): Declare.
6426
b777eb6d
TT
64272019-07-11 Tom Tromey <tromey@adacore.com>
6428
6429 * main.c (get_init_files): Use GDBINIT, not gdbinit.
6430 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
6431 * top.h (gdbinit): Don't declare.
6432 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
6433 into...
6434 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
6435 * top.c (gdb_init): Don't call init_cli_cmds.
6436 (gdbinit): Remove.
6437 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
6438
72ee03ff
TT
64392019-07-11 Tom Tromey <tromey@adacore.com>
6440
6441 * python/py-inferior.c (add_thread_object): Don't use thread_obj
6442 after it has been moved.
6443
00db9531
SM
64442019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6445
6446 * valops.c (value_must_coerce_to_target): Change return type to
6447 bool.
6448 * value.h (value_must_coerce_to_target): Likewise.
6449
f2478a7e
SM
64502019-07-10 Simon Marchi <simon.marchi@efficios.com>
6451
6452 * breakpoint.c (is_hardware_watchpoint): Remove
6453 forward-declaration.
6454 (is_masked_watchpoint): Change return type to bool.
6455 (is_tracepoint): Likewise.
6456 (is_breakpoint): Likewise.
6457 (is_hardware_watchpoint): Likewise.
6458 (is_watchpoint): Likewise.
6459 (is_no_memory_software_watchpoint): Likewise.
6460 (is_catchpoint): Likewise.
6461 (breakpoint_1): Make FILTER parameter's return type bool.
6462 is_masked_watchpoint): Change return type to bool.
6463 (save_breakpoints): Make FILTER parameter's return type bool.
6464 * breakpoint.h (is_breakpoint): Change return type to bool.
6465 (is_watchpoint): Likewise.
6466 (is_catchpoint): Likewise.
6467 (is_tracepoint): Likewise.
6468
0d12e84c
TT
64692019-07-10 Tom Tromey <tom@tromey.com>
6470
6471 * defs.h: Don't include gdbarch.h.
6472 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
6473 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
6474 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
6475 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
6476 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
6477 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
6478 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
6479 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
6480 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
6481 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
6482 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
6483 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
6484 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
6485 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
6486 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
6487 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
6488 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
6489 record-btrace.c, record.h, regcache-dump.c, regcache.h,
6490 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
6491 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
6492 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
6493 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
6494 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
6495 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
6496 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
6497 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
6498 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
6499
f06f1252
TT
65002019-07-10 Tom Tromey <tromey@adacore.com>
6501
6502 * ada-lang.h (is_ada_exception_catchpoint): Declare.
6503 * breakpoint.c (init_ada_exception_breakpoint): Register as
6504 bp_catchpoint.
6505 (print_one_breakpoint_location, print_one_breakpoint): Use
6506 is_ada_exception_catchpoint.
6507 * ada-lang.c (class ada_catchpoint_location): Pass
6508 bp_loc_software_breakpoint to bp_location constructor.
6509 (is_ada_exception_catchpoint): New function.
6510
7a5d944b
TT
65112019-07-10 Tom Tromey <tromey@adacore.com>
6512
6513 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
6514 VEC.
6515 (struct arm_exidx_entry): New method operator<.
6516 (struct arm_exidx_data) <section_maps>: Change type.
6517 (arm_exidx_data_free): Remove.
6518 (arm_exidx_data_key): Change type. Move lower.
6519 (arm_exidx_new_objfile): Update.
6520 (arm_compare_exidx_entries): Remove.
6521 (arm_find_exidx_entry, _initialize_arm_tdep)
6522
48c66e1d
TT
65232019-07-10 Tom Tromey <tromey@adacore.com>
6524
6525 * solib-spu.c (ocl_program_data_key): Change type.
6526 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
6527 Update.
6528
a269fbf1
TT
65292019-07-10 Tom Tromey <tromey@adacore.com>
6530
6531 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
6532 (struct solib_aix_inferior_data) <library_list>: Change type.
6533 (solib_aix_inferior_data_handle): Change type.
6534 (get_solib_aix_inferior_data): Update.
6535 (solib_aix_free_library_list): Remove.
6536 (library_list_start_library): Update.
6537 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
6538 return type.
6539 (solib_aix_get_library_list)
6540 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
6541 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
6542
c294730c
TT
65432019-07-10 Tom Tromey <tromey@adacore.com>
6544
6545 * solib-dsbt.c (struct dsbt_info): Add initializers.
6546 (solib_dsbt_pspace_data): Change type.
6547 (dsbt_pspace_data_cleanup): Remove.
6548 (get_dsbt_info, _initialize_dsbt_solib): Update.
6549
9d52077d
TT
65502019-07-10 Tom Tromey <tromey@adacore.com>
6551
6552 * spu-tdep.c (spu_overlay_data): Change type.
6553 (spu_get_overlay_table, spu_overlay_new_objfile)
6554 (_initialize_spu_tdep): Update.
6555
22a20dca
TT
65562019-07-10 Tom Tromey <tromey@adacore.com>
6557
6558 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
6559 destructor.
6560 (dbx_objfile_data_key): Change type and declare later.
6561 (DBX_SYMFILE_INFO): Rewrite.
6562 * dbxread.c (dbx_objfile_data_key): Change type.
6563 (dbx_symfile_init): Update.
6564 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
6565 (coffstab_build_psymtabs, elfstab_build_psymtabs)
6566 (stabsect_build_psymtabs, _initialize_dbxread): Update.
6567
cb60f420
TT
65682019-07-10 Tom Tromey <tromey@adacore.com>
6569
6570 * jit.c (jit_program_space_key): Change type. Move lower.
6571 (get_jit_program_space_data): Update.
6572 (jit_program_space_data_cleanup): Remove.
6573 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
6574 Update.
6575 (struct jit_program_space_data): Add initializers.
6576
51df2ae3
TT
65772019-07-10 Tom Tromey <tromey@adacore.com>
6578
6579 * solib-darwin.c (struct darwin_info): Add initializers.
6580 (solib_darwin_pspace_data): Change type.
6581 (darwin_pspace_data_cleanup): Remove.
6582 (get_darwin_info, _initialize_darwin_solib): Update.
6583
18101a35
TT
65842019-07-10 Tom Tromey <tromey@adacore.com>
6585
6586 * remote-sim.c (struct sim_inferior_data): Add initializers,
6587 constructor, and destructor.
6588 (sim_inferior_data_key): Change type. Move lower.
6589 (check_for_duplicate_sim_descriptor): Update.
6590 (get_sim_inferior_data): Use new. Update.
6591 (~sim_inferior_data_cleanup): Rename from
6592 sim_inferior_data_cleanup. Simplify.
6593 (gdbsim_close_inferior, simulator_command)
6594 (sim_command_completer, _initialize_remote_sim): Update.
6595 (next_pid, INITIAL_PID): Move earlier.
6596
05b08ac1
TT
65972019-07-10 Tom Tromey <tromey@adacore.com>
6598
6599 * python/python-internal.h (create_thread_object): Return
6600 gdbpy_ref.
6601 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
6602 * python/py-inferior.c (struct threadlist_entry): Add
6603 constructor.
6604 <thread_obj>: Now a gdbpy_ref.
6605 (thread_to_thread_object): Update.
6606 (add_thread_object): Use new.
6607 (delete_thread_object): Use delete.
6608 (infpy_threads): Update.
6609 (py_free_inferior): Update. Construct "inf_obj" after acquiring
6610 GIL.
6611
32372d80
TT
66122019-07-10 Tom Tromey <tromey@adacore.com>
6613
6614 * valops.c (value_cast): Specialize error message for Ada.
6615
5c458ae8
SM
66162019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6617
6618 * breakpoint.c (breakpoint_1): Update doc and parameter names.
6619
4c462cb0
SM
66202019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6621
6622 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
6623 bpstat_should_step): Return bool, adjust comments.
6624 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
6625 bpstat_should_step): Likewise.
6626
89abbcc2
AH
66272019-07-10 Alan Hayward <alan.hayward@arm.com>
6628
6629 * features/Makefile: Use feature target descriptions for Arm.
6630 * features/arm/arm-core.c: Generate new file.
6631 * features/arm/arm-fpa.c: Likewise.
6632 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
6633 * features/arm/arm-m-profile.c: Likewise.
6634 * features/arm/arm-vfpv2.c: Likewise.
6635 * features/arm/arm-vfpv3.c: Likewise.
6636 * features/arm/xscale-iwmmxt.c: Likewise.
6637 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
6638
166a82be
AH
66392019-07-10 Alan Hayward <alan.hayward@arm.com>
6640
6641 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
6642 ptrace earlier.
6643
9fb4c7e9
AH
66442019-07-10 Alan Hayward <alan.hayward@arm.com>
6645
6646 * features/aarch64-pauth.c: Regenerate.
6647
e2d0f980
SM
66482019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
6649
6650 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
6651 bool.
6652 (bpstat_what): Use false instead of 0.
6653
a38118e5
PA
66542019-07-09 Pedro Alves <palves@redhat.com>
6655
6656 * break-catch-throw.c (is_exception_catchpoint): New.
6657 * breakpoint.c (print_one_breakpoint_location): New parameter
6658 'raw_loc'. Handle it. Use
6659 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
6660 looking at the breakpoint's type.
6661 (print_one_breakpoint): If handling "maint info breakpoints", also
6662 print locations of exception catchpoints.
6663 * breakpoint.h (is_exception_catchpoint): Declare.
6664
cb1e4e32
PA
66652019-07-09 Pedro Alves <palves@redhat.com>
6666
6667 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
6668 "addr" field.
6669 (allocate_location_exception_catchpoint): New.
6670 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
6671 (initialize_throw_catchpoint_ops): Install
6672 allocate_location_exception_catchpoint as allocate_location
6673 method.
6674 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
6675 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
6676 bp_loc_other.
6677 (breakpoint_address_is_meaningful): Delete.
6678 (bl_address_is_meaningful): New.
6679 (breakpoint_locations_match): Adjust comment.
6680 (bp_location_from_bp_type): New, factored out of...
6681 (bp_location::bp_location(breakpoint *)): ... this.
6682 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
6683 factored out of...
6684 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
6685 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
6686 breakpoint_address_is_meaningful.
6687 (bp_locations_compare): Adjust comment.
6688 (update_global_location_list): Use bl_address_is_meaningful
6689 instead of breakpoint_address_is_meaningful.
6690 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
6691 explicit.
6692 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
6693 * python/py-breakpoint.c (bppy_get_location): No longer check
6694 whether location is null.
6695
b58a68fe
PA
66962019-07-09 Pedro Alves <palves@redhat.com>
6697
6698 PR c++/15468
6699 * breakpoint.c (print_one_breakpoint_location): Remove
6700 single-location assert.
6701
268a13a5
TT
67022019-07-09 Tom Tromey <tom@tromey.com>
6703
6704 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
6705 * configure: Rebuild.
6706 * configure.ac: Change common to gdbsupport.
6707 * gdbsupport: Rename from common.
6708 * acinclude.m4: Change common to gdbsupport.
6709 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
6710 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
6711 gdbsupport.
6712 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
6713 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
6714 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
6715 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
6716 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
6717 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
6718 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
6719 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
6720 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
6721 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
6722 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
6723 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
6724 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
6725 coff-pe-read.c, command.h, compile/compile-c-support.c,
6726 compile/compile-c.h, compile/compile-cplus-symbols.c,
6727 compile/compile-cplus-types.c, compile/compile-cplus.h,
6728 compile/compile-loc2c.c, compile/compile.c, completer.c,
6729 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
6730 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
6731 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
6732 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
6733 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
6734 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
6735 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
6736 features/aarch64-core.c, features/aarch64-fpu.c,
6737 features/aarch64-pauth.c, features/aarch64-sve.c,
6738 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
6739 features/i386/32bit-core.c, features/i386/32bit-linux.c,
6740 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
6741 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
6742 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
6743 features/i386/64bit-core.c, features/i386/64bit-linux.c,
6744 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
6745 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
6746 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
6747 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
6748 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
6749 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
6750 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
6751 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
6752 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
6753 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
6754 go32-nat.c, guile/guile.c, guile/scm-ports.c,
6755 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
6756 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
6757 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
6758 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
6759 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
6760 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
6761 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
6762 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
6763 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
6764 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
6765 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
6766 minsyms.c, mips-linux-tdep.c, namespace.h,
6767 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
6768 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
6769 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
6770 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
6771 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
6772 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
6773 nat/linux-waitpid.c, nat/mips-linux-watch.c,
6774 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
6775 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
6776 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
6777 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
6778 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
6779 procfs.c, producer.c, progspace.h, psymtab.h,
6780 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
6781 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
6782 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
6783 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
6784 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
6785 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
6786 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
6787 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
6788 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
6789 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
6790 target-memory.c, target.c, target.h, target/waitstatus.c,
6791 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
6792 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
6793 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
6794 unittests/array-view-selftests.c,
6795 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
6796 unittests/common-utils-selftests.c,
6797 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
6798 unittests/format_pieces-selftests.c,
6799 unittests/function-view-selftests.c,
6800 unittests/lookup_name_info-selftests.c,
6801 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
6802 unittests/mkdir-recursive-selftests.c,
6803 unittests/observable-selftests.c,
6804 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
6805 unittests/parse-connection-spec-selftests.c,
6806 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
6807 unittests/scoped_fd-selftests.c,
6808 unittests/scoped_mmap-selftests.c,
6809 unittests/scoped_restore-selftests.c,
6810 unittests/string_view-selftests.c, unittests/style-selftests.c,
6811 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
6812 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
6813 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
6814 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
6815 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
6816 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
6817
5b0e2db4
AB
68182019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6819
6820 * linespec.c (decode_digits_list_mode): Set explicit_line to a
6821 bool value.
6822 (decode_digits_ordinary): Set explicit_line field in sal.
6823 * symtab.c (skip_prologue_sal): Don't skip prologue for a
6824 symtab_and_line that was set on an explicit line number in
6825 assembler code. Do always update the recorded symtab and line if
6826 we do skip the prologue.
6827
0ba852ab
AB
68282019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6829
6830 * breakpoint.c (set_breakpoint_location_function): Remove
6831 explicit_loc parameter.
6832 (momentary_breakpoint_from_master): Update call to
6833 set_breakpoint_location_function.
6834 (add_location_to_breakpoint): Likewise.
6835
b3a7d171
AB
68362019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6837
6838 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
6839 required features based on default bfd type when no specific bfd
6840 is present.
6841
1f6f6e21
PW
68422019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6843
6844 * NEWS: Mention that GDB printf and eval commands can now print
6845 C-style and Ada-style convenience var strings without
6846 calling the inferior.
6847 * printcmd.c (printf_c_string): Locally print GDB internal var
6848 instead of transiting via the inferior.
6849 (printf_wide_c_string): Likewise.
6850
68512019-07-04 Alan Hayward <alan.hayward@arm.com>
ea142fbf 6852
5862c886 6853 PR breakpoints/25011
ea142fbf
AH
6854 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
6855
0598af48
TT
68562019-07-04 Tom Tromey <tom@tromey.com>
6857
6858 PR tui/24724:
6859 * tui/tui-winsource.c (tui_clear_source_content): Update.
6860 (tui_source_window_base::set_is_exec_point_at): Fix comment.
6861 (tui_update_breakpoint_info): Update.
6862 (tui_set_exec_info_content): Update.
6863 * tui/tui-source.c (tui_set_source_content_nil): Update.
6864 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
6865 has_break.
6866 * tui/tui-data.h (enum tui_bp_flag): New.
6867 (tui_bp_flags): New enum flags type.
6868 (struct tui_source_element) <break_mode>: Change type. Rename
6869 from has_break.
6870 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
6871 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
6872 constants.
6873 * tui/tui-winsource.h: Fix comment.
6874
350fab54
AH
68752019-07-04 Alan Hayward <alan.hayward@arm.com>
6876
6877 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
6878 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
6879 (store_fpregs_to_thread)
6880 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
6881 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
6882 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
6883 (IWMMXT_REGS_SIZE): Add define.
6884 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
6885 (fetch_vfp_regs, store_vfp_regs)
6886 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
6887 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
6888
f0452268
AH
68892019-07-04 Alan Hayward <alan.hayward@arm.com>
6890
6891 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
6892 defines.
6893 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
6894 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
6895 (ARM_INT_REGISTER_SIZE): ...to this.
6896 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
6897 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
6898 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
6899 (arm_linux_collect_gregset, supply_nwfpe_register)
6900 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
6901 defines.
6902 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
6903 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
6904 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
6905 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
6906 (arm_return_in_memory, arm_store_return_value)
6907 (arm_get_longjmp_target, arm_register_g_packet_guesses)
6908 (arm_record_ld_st_multiple): Likewise.
6909 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
6910 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
6911
e935475c
AH
69122019-07-04 Alan Hayward <alan.hayward@arm.com>
6913
6914 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
6915 AARCH64_DISPLACED_MODIFIED_INSNS.
6916 * aarch64-tdep.c (struct aarch64_displaced_step_data)
6917 (aarch64_displaced_step_copy_insn): Likewise.
6918 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
6919 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
6920 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
6921 ARM_DISPLACED_MODIFIED_INSNS.
6922 * arm-tdep.c (arm_gdbarch_init): Likewise.
6923 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
6924 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
6925 (struct arm_displaced_step_closure): Use
6926 ARM_DISPLACED_MODIFIED_INSNS.
6927
df0bb381
AH
69282019-07-04 Alan Hayward <alan.hayward@arm.com>
6929
6930 * features/Makefile: Remove unused xml files.
6931 * features/aarch64.xml: Remove.
6932 * features/i386/amd64-avx-avx512-linux.xml: Remove.
6933 * features/i386/amd64-avx-avx512.xml: Remove.
6934 * features/i386/amd64-avx-linux.xml: Remove.
6935 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
6936 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
6937 * features/i386/amd64-avx-mpx-linux.xml: Remove.
6938 * features/i386/amd64-avx-mpx.xml: Remove.
6939 * features/i386/amd64-avx.xml: Remove.
6940 * features/i386/amd64-linux.xml: Remove.
6941 * features/i386/amd64-mpx-linux.xml: Remove.
6942 * features/i386/amd64-mpx.xml: Remove.
6943 * features/i386/amd64.xml: Remove.
6944 * features/i386/i386-avx-avx512-linux.xml: Remove.
6945 * features/i386/i386-avx-avx512.xml: Remove.
6946 * features/i386/i386-avx-linux.xml: Remove.
6947 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
6948 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
6949 * features/i386/i386-avx-mpx-linux.xml: Remove.
6950 * features/i386/i386-avx-mpx.xml: Remove.
6951 * features/i386/i386-avx.xml: Remove.
6952 * features/i386/i386-linux.xml: Remove.
6953 * features/i386/i386-mmx-linux.xml: Remove.
6954 * features/i386/i386-mmx.xml: Remove.
6955 * features/i386/i386-mpx-linux.xml: Remove.
6956 * features/i386/i386-mpx.xml: Remove.
6957 * features/i386/i386.xml: Remove.
6958 * features/i386/x32-avx-avx512-linux.xml: Remove.
6959 * features/i386/x32-avx-linux.xml: Remove.
6960 * features/i386/x32-linux.xml: Remove.
6961
edd6266a
AH
69622019-07-04 Alan Hayward <alan.hayward@arm.com>
6963
6964 * regformats/aarch64.dat: Remove.
6965 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
6966 * regformats/i386/amd64-avx-linux.dat: Remove.
6967 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
6968 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
6969 * regformats/i386/amd64-linux.dat: Remove.
6970 * regformats/i386/amd64-mpx-linux.dat: Remove.
6971 * regformats/i386/amd64.dat: Remove.
6972 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
6973 * regformats/i386/i386-avx-linux.dat: Remove.
6974 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
6975 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
6976 * regformats/i386/i386-linux.dat: Remove.
6977 * regformats/i386/i386-mmx-linux.dat: Remove.
6978 * regformats/i386/i386-mpx-linux.dat: Remove.
6979 * regformats/i386/i386.dat: Remove.
6980 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
6981 * regformats/i386/x32-avx-linux.dat: Remove.
6982 * regformats/i386/x32-linux.dat: Remove.
6983
2b40fda7
AH
69842019-07-04 Alan Hayward <alan.hayward@arm.com>
6985
6986 * aarch64-tdep.c: Remove xml self tests.
6987 * amd64-linux-tdep.c: Likewise.
6988 * amd64-tdep.c: Likewise.
6989 * i386-linux-tdep.c: Likewise.
6990 * i386-tdep.c: Likewise.
6991
5f4ba3e7
PA
69922019-07-03 Pedro Alves <palves@redhat.com>
6993
6994 PR cli/24732
6995 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
6996 (pipe_cmd_option_defs): New.
6997 (make_pipe_cmd_options_def_group): New.
6998 (pipe_command): Use gdb::option::process_options.
6999 (pipe_command_completer): New function.
7000 (_initialize_cli_cmds): Install completer for "pipe" command.
7001
3d9be6f5
PA
70022019-07-03 Pedro Alves <palves@redhat.com>
7003
7004 * cli/cli-option.c (union option_value) <string>: New field.
7005 (struct option_def_and_value): Add ctor, move ctor, dtor and
7006 use DISABLE_COPY_AND_ASSIGN.
7007 (option_def_and_value::clear_value): New.
7008 (parse_option, save_option_value_in_ctx, get_val_type_str)
7009 (add_setshow_cmds_for_options): Handle var_string.
7010 * cli-option.h (union option_def::var_address) <string>: New
7011 field.
7012 (struct string_option_def): New.
7013 * maint-test-options.c (struct test_options_opts): Add default
7014 ctor and use DISABLE_COPY_AND_ASSIGN.
7015 <string_opt>: New field.
7016 (test_options_opts::~test_options_opts): New.
7017 (test_options_opts::dump): Also dump "-string".
7018 (test_options_option_defs): Install "string.
7019
41fc454c
PA
70202019-07-03 Pedro Alves <palves@redhat.com>
7021
7022 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
7023 option_value with a null enumeration.
7024 (complete_options): Save the option values in the context.
7025 (save_option_value_in_ctx): New, factored out from ...
7026 (process_options): ... here.
7027 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
7028 of the function.
7029 * maint-test-options.c (test_options_opts::dump): New, factored
7030 out from ...
7031 (maintenance_test_options_command_mode): ... here.
7032 (maintenance_test_options_command_completion_result): Delete.
7033 (maintenance_test_options_command_completion_text): Update
7034 comment.
7035 (maintenance_show_test_options_completion_result): Change
7036 prototype. Just print
7037 maintenance_test_options_command_completion_text.
7038 (save_completion_result): New.
7039 (maintenance_test_options_completer_mode): Pass options context to
7040 complete_options, and then save a dump.
7041 (_initialize_maint_test_options): Use add_cmd to install "maint
7042 show test-options-completion-result".
7043
fdbc9870
PA
70442019-07-03 Pedro Alves <palves@redhat.com>
7045
7046 * NEWS (New commands): Mention "with" and "maint with".
7047 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
7048 (with_command, with_command_completer): New.
7049 (pipe_command): Adjust to new repeat_previous
7050 interface.
7051 (_initialize_cli_cmds): Install the "with" command and its "w"
7052 alias.
7053 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
7054 declarations.
7055 * cli/cli-setshow.c (parse_cli_var_uinteger)
7056 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
7057 argument strings for all var_types.
7058 (get_setshow_command_value_string): New, factored out from ...
7059 (do_show_command): ... this.
7060 * cli/cli-setshow.h: Include <string>.
7061 (get_setshow_command_value_string): Declare.
7062 * command.h (repeat_previous): Now returns const char *. Adjust
7063 comment.
7064 * maint.c: Include "cli/cli-cmds.h".
7065 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
7066 (_initialize_maint_cmds): Register the "maintenance with" command.
7067 * top.c (repeat_previous): Move bits from pipe_command here:
7068 Return the saved command line, if any; error out if there's no
7069 command to relaunch.
7070
c6ac8931
PA
70712019-07-03 Pedro Alves <palves@redhat.com>
7072
7073 * NEWS (New commands): Mention "maint set/show test-settings"
7074 instead of "maint test-settings".
7075 * maint-test-settings.c (maintenance_test_settings_list): Delete.
7076 (maintenance_test_settings_set_list): Rename to ...
7077 (maintenance_set_test_settings_list): ... this.
7078 (maintenance_test_settings_show_list): Rename to ...
7079 (maintenance_show_test_settings_list): ... this.
7080 (maintenance_test_settings_cmd): Delete.
7081 (maintenance_test_settings_set_cmd): ...
7082 (maintenance_set_test_settings_cmd): ... this.
7083 (maintenance_test_settings_show_cmd): ...
7084 (maintenance_show_test_settings_cmd): ... this.
7085 (maintenance_test_settings_show_value_cmd):
7086 (maintenance_show_test_settings_value_cmd): ... this.
7087 (_initialize_maint_test_settings): No longer install the "maint
7088 test-settings" prefix command. Rename "maint test-settings set"
7089 to "maint set test-settings", and "maint test-settings show" to
7090 "maint show test-settings". Adjust all subcommands.
7091
d1fcf2fd
PA
70922019-07-03 Pedro Alves <palves@redhat.com>
7093
7094 * maint-test-settings.c: Fix file's intro comment. Replace all
7095 references to "test-options" with references to "test-settings",
7096 in comments.
7097
970f9d09
PA
70982019-07-03 Pedro Alves <palves@redhat.com>
7099
7100 * maint-test-settings.c (maintenance_test_settings_xxx)
7101 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
7102 New.
7103 (maintenance_test_settings_enums): Use them.
7104 (maintenance_test_settings_enum): Default to
7105 maintenance_test_settings_xxx.
7106 (_initialize_maint_test_settings): Initialize
7107 MAINTENANCE_TEST_SETTINGS_FILENAME.
7108
f3869b1a
SM
71092019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7110
7111 * breakpoint.h (remove_breakpoints_inf): Change return type to
7112 void, move function documentation here.
7113 * breakpoint.c (remove_breakpoints_inf): Change return type to
7114 void, move function documentation to header.
7115
54d66006
PA
71162019-07-02 Pedro Alves <palves@redhat.com>
7117
7118 * NEWS (Completion improvements): Mention "info threads".
7119 * thread.c (struct info_threads_opts, info_threads_option_defs)
7120 (make_info_threads_options_def_group): New.
7121 (info_threads_command): Use gdb::option::process_options.
7122 (info_threads_command_completer): New.
7123 (_initialize_thread): Use gdb::option::build_help to build the
7124 help text for "info threads".
7125
854f6088
SM
71262019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7127
7128 * defs.h (generic_load): Move from here...
7129 * symfile.h (generic_load): ... to here. Rename name parameter
7130 to args.
7131 * symfile.c (generic_load): Add comment.
7132
54ee4252
TT
71332019-07-01 Tom Tromey <tromey@adacore.com>
7134
7135 * dwarf2read.c
7136 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
7137 declaration of without_params. Fix formatting.
7138
65392b3e
TT
71392019-07-01 Tom Tromey <tromey@adacore.com>
7140
7141 * ada-exp.y (find_primitive_type): Update.
7142 * ada-lang.h (ada_lookup_symbol): Update.
7143 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
7144 parameter.
7145 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
7146
7d7571f0
SDJ
71472019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
7148
7149 PR breakpoints/24541
7150 * gdbarch.c: Regenerate.
7151 * gdbarch.h: Regenerate.
7152 * gdbarch.sh: Add 'stap_adjust_register'.
7153 * i386-tdep.c: Include '<unordered_set>'.
7154 (i386_stap_adjust_register): New function.
7155 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
7156 * stap-probe.c (stap_parse_register_operand): Call
7157 'gdbarch_stap_adjust_register'.
7158
5af5392a
SDJ
71592019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
7160
7161 PR python/24742
7162 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
7163 * python/python.c (do_start_initialization): Use 'xmalloc'
7164 instead of 'PyMem_Malloc'.
7165
10d06d82
TT
71662019-06-28 Tom Tromey <tromey@adacore.com>
7167
7168 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
7169 for Ada.
7170
1b7f24cd
TT
71712019-06-27 Tom Tromey <tromey@adacore.com>
7172
7173 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
7174 objfile_key.
7175 (arm_find_mapping_symbol, arm_record_special_symbol)
7176 (_initialize_arm_tdep): Update.
7177 (arm_objfile_data_free): Remove.
7178
3d507ff2
TT
71792019-06-27 Tom Tromey <tromey@adacore.com>
7180
7181 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
7182 to cp_print_static_field.
7183
762c164d
TT
71842019-06-26 Tom Tromey <tromey@adacore.com>
7185
7186 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
7187 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
7188 declare.
7189
aa2f9bcf
AH
71902019-06-26 Alan Hayward <alan.hayward@arm.com>
7191
7192 * features/aarch64-core.c (create_feature_aarch64_core):
7193 Regenerate.
7194 * features/aarch64-core.xml: Add cpsr flags.
7195
3426ae57
AH
71962019-06-26 Alan Hayward <alan.hayward@arm.com>
7197
7198 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
7199 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
7200
4838e44c
SM
72012019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
7202
7203 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
7204 field.
7205 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
7206 use.
7207 (arm_record_special_symbol): Don't insert new symbol in sorted
7208 position, push it at the end.
7209
54cc7474
SM
72102019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
7211
7212 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
7213 (arm_mapping_symbol_s): Remove.
7214 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
7215 (arm_mapping_symbol_vec): New typedef.
7216 (struct arm_per_objfile): Add constructor.
7217 <section_maps>: Change type to
7218 std::unique_ptr<arm_mapping_symbol_vec[]>.
7219 (arm_compare_mapping_symbols): Remove.
7220 (arm_find_mapping_symbol): Adjust to section_maps type change.
7221 (arm_objfile_data_free): Call delete on arm_per_objfile.
7222 (arm_record_special_symbol): Adjust to section_maps type change.
7223 Allocate arm_per_objfile with new.
7224
b65b566c
PW
72252019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7226
7227 * cli/cli-cmds.c (alias_command): Compare the alias prefix
7228 with the command prefix.
7229
c2fc64f5
TT
72302019-06-25 Tom Tromey <tom@tromey.com>
7231
7232 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
7233 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
7234
fb54fa76
TT
72352019-06-25 Tom Tromey <tom@tromey.com>
7236
7237 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
7238 type.
7239 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
7240 protected.
7241
f7952c57
TT
72422019-06-25 Tom Tromey <tom@tromey.com>
7243
7244 * tui/tui-winsource.c
7245 (tui_source_window_base::set_is_exec_point_at): Add check against
7246 LOA_ADDRESS.
7247
17568d78
TT
72482019-06-25 Tom Tromey <tom@tromey.com>
7249
7250 * tui/tui-source.c (tui_set_source_content): Don't check before
7251 xfree.
7252 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
7253
53e7cdba
TT
72542019-06-25 Tom Tromey <tom@tromey.com>
7255
7256 * tui/tui-winsource.h (tui_update_source_window_as_is)
7257 (tui_alloc_source_buffer, tui_line_is_displayed)
7258 (tui_addr_is_displayed): Change type of win_info.
7259 * tui/tui-winsource.c (tui_update_source_window_as_is)
7260 (tui_clear_source_content, tui_show_source_line)
7261 (tui_show_source_content, tui_source_window_base::refill)
7262 (tui_source_window_base::set_is_exec_point_at)
7263 (tui_source_window_base::set_is_exec_point_at)
7264 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
7265 (tui_alloc_source_buffer, tui_line_is_displayed)
7266 (tui_addr_is_displayed): Change type of win_info. Update.
7267 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7268 (tui_source_window_base::do_make_visible_with_new_height):
7269 Update.
7270 * tui/tui-source.c (tui_set_source_content)
7271 (tui_set_source_content_nil)
7272 (tui_source_window::do_scroll_vertical): Update.
7273 * tui/tui-layout.c (show_layout): Update.
7274 * tui/tui-disasm.c (tui_set_disassem_content)
7275 (tui_disasm_window::do_scroll_vertical): Update.
7276 * tui/tui-data.h (tui_win_content): Remove.
7277 (struct tui_gen_win_info) <content, content_size>: Remove.
7278 (struct tui_source_element): Add initializers and destructor.
7279 (union tui_which_element, struct tui_win_element): Remove.
7280 (struct tui_source_window_base) <content>: New field.
7281 (struct tui_data_window): Remove destructor.
7282 (tui_alloc_content, tui_free_win_content)
7283 (tui_free_all_source_wins_content): Don't declare.
7284 * tui/tui-data.c (tui_initialize_static_data): Update.
7285 (init_content_element, tui_alloc_content): Remove.
7286 (~tui_gen_win_info): Update.
7287 (~tui_data_window, tui_free_all_source_wins_content)
7288 (tui_free_win_content, free_content, free_content_elements):
7289 Remove.
7290
7908abbf
TT
72912019-06-25 Tom Tromey <tom@tromey.com>
7292
7293 * tui/tui-winsource.h (tui_clear_source_content)
7294 (tui_erase_source_content, tui_show_source_content): Change type
7295 of win_info.
7296 * tui/tui-winsource.c (tui_clear_source_content)
7297 (tui_erase_source_content, tui_show_source_content): Change type
7298 of win_info.
7299 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
7300 * tui/tui-source.h (tui_set_source_content_nil): Change type of
7301 win_info.
7302 * tui/tui-source.c (tui_set_source_content_nil): Change type of
7303 win_info.
7304 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
7305
02c28df0
TT
73062019-06-25 Tom Tromey <tom@tromey.com>
7307
7308 * tui/tui-winsource.c (tui_clear_source_content)
7309 (tui_source_window_base::set_is_exec_point_at): Update.
7310 * tui/tui-source.c (tui_set_source_content_nil): Update.
7311 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
7312 a bool.
7313 * tui/tui-data.c (init_content_element): Update.
7314
6658b1bf
TT
73152019-06-25 Tom Tromey <tom@tromey.com>
7316
7317 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
7318 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
7319 * tui/tui-layout.c (init_and_make_win): Update.
7320 * tui/tui.h (enum tui_win_type): Update.
7321 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
7322 tui_win_is_auxillary.
7323 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
7324 tui_win_is_auxillary.
7325
21e1c91e
TT
73262019-06-25 Tom Tromey <tom@tromey.com>
7327
7328 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
7329 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
7330 (tui_delete_data_content_windows, tui_display_all_data)
7331 (tui_data_window::do_scroll_vertical, tui_display_data_from):
7332 Update.
7333 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
7334 * tui/tui-regs.c (tui_last_regs_line_no)
7335 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
7336 (tui_show_registers): Update.
7337 (tui_show_register_group): Return void. Update.
7338 (tui_display_registers_from, tui_display_reg_element_at_line)
7339 (tui_display_registers_from_line, tui_check_register_values):
7340 Update.
7341 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
7342 member.
7343 (struct tui_data_window) <regs_content>: Now a std::vector.
7344 <regs_content_count>: Remove.
7345 (tui_add_content_elements, tui_free_data_content): Don't declare.
7346 * tui/tui-data.c (tui_data_window::clear_detail): Update.
7347 (init_content_element): Remove DATA_WIN case. Add assert.
7348 (tui_add_content_elements): Remove.
7349 (tui_data_window): Update.
7350 (tui_free_data_content): Remove.
7351 (free_content_elements): Remove DATA_WIN case.
7352
115ac53b
TT
73532019-06-25 Tom Tromey <tom@tromey.com>
7354
7355 * tui/tui-data.c (tui_data_item_window): Update.
7356 * tui/tui-windata.h (tui_check_data_values): Don't declare.
7357 * tui/tui-windata.c (tui_display_all_data)
7358 (tui_display_data_from_line): Update.
7359 (tui_check_data_values): Remove.
7360 * tui/tui-regs.c (tui_show_register_group)
7361 (tui_display_reg_element_at_line): Update.
7362 * tui/tui-hooks.c (tui_register_changed)
7363 (tui_refresh_frame_and_register_information): Call
7364 tui_check_register_values.
7365 * tui/tui-data.h (struct tui_data_window) <data_content,
7366 data_content_count, data_type>: Remove.
7367 (enum tui_data_type): Remove.
7368
7369 * tui/tui-data.c (tui_data_window::clear_detail)
7370 (~tui_data_window): Update.
7371
eaf9738b
TT
73722019-06-25 Tom Tromey <tom@tromey.com>
7373
7374 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
7375 declare.
7376 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
7377 Rename from tui_first_data_item_displayed. Update.
7378 (tui_data_window::refresh_all)
7379 (tui_data_window::do_scroll_vertical): Update.
7380 * tui/tui-data.h (struct tui_data_window)
7381 <first_data_item_displayed>: Declare new method.
7382
31ca4723
TT
73832019-06-25 Tom Tromey <tom@tromey.com>
7384
7385 * tui/tui-data.h (tui_init_generic_part): Don't declare.
7386 * tui/tui-data.c (tui_init_generic_part): Remove, moving
7387 contents...
7388 (tui_initialize_static_data): ...here.
7389
41bcff7f
TT
73902019-06-25 Tom Tromey <tom@tromey.com>
7391
7392 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7393 (tui_display_registers_from, tui_check_register_values): Update.
7394 (tui_display_register): Remove win_info parameter; update.
7395 (tui_get_register): Change type of parameters.
7396 * tui/tui-data.h (struct tui_data_element): Remove.
7397 (union tui_which_element) <data>: Remove.
7398 <data_window>: Change type.
7399 (struct tui_data_item_window): New.
7400 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
7401 case. Add assert.
7402 (~tui_data_item_window): New destructor.
7403 (free_content_elements): Remove DATA_ITEM_WIN case.
7404
d2802c33
TT
74052019-06-25 Tom Tromey <tom@tromey.com>
7406
7407 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
7408 Remove.
7409
dd835f8b
TT
74102019-06-25 Tom Tromey <tom@tromey.com>
7411
7412 * tui/tui-data.h (struct tui_command_element): Remove.
7413 (union tui_which_element) <command>: Remove.
7414 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
7415 assert.
7416 (free_content_elements): Remove CMD_WIN case.
7417
bd7db367
TT
74182019-06-25 Tom Tromey <tom@tromey.com>
7419
7420 * tui/tui-layout.c (tui_set_layout): Update.
7421 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
7422 * tui/tui-data.c (layout_def): Update.
7423
3add462f
TT
74242019-06-25 Tom Tromey <tom@tromey.com>
7425
7426 * tui/tui-wingeneral.c (tui_refresh_all): Update.
7427 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7428 (tui_source_window_base::set_new_height): Update.
7429 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
7430 Update.
7431 (tui_set_locator_fullname, tui_set_locator_info)
7432 (tui_show_frame_info): Update.
7433 * tui/tui-source.c (tui_set_source_content)
7434 (tui_source_is_displayed): Update.
7435 * tui/tui-layout.c (show_source_disasm_command, show_data)
7436 (show_source_or_disasm_and_command): Update.
7437 * tui/tui-disasm.c (tui_set_disassem_content)
7438 (tui_get_begin_asm_address): Update.
7439 * tui/tui-data.h (struct tui_locator_element): Remove.
7440 (union tui_which_element) <locator>: Remove.
7441 (struct tui_locator_window): New.
7442 (tui_locator_win_info_ptr): Change return type.
7443 * tui/tui-data.c (_locator): Change type.
7444 (tui_locator_win_info_ptr): Change return type.
7445 (init_content_element): Remove LOCATOR_WIN case. Add assert.
7446 (tui_alloc_content): Add assert.
7447
489e9d8b
TT
74482019-06-25 Tom Tromey <tom@tromey.com>
7449
7450 * tui/tui-winsource.c
7451 (tui_exec_info_window::maybe_allocate_content): New method.
7452 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
7453 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
7454 (make_source_or_disasm_window): Add cast.
7455 * tui/tui-data.h (union tui_which_element) <simple_string>:
7456 Remove.
7457 (struct tui_source_info): New.
7458 (struct tui_source_window_base) <execution_info>: Change type.
7459 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
7460 case, and add assert.
7461 (tui_alloc_content): Add assert.
7462
c3fabb7d
TT
74632019-06-25 Tom Tromey <tom@tromey.com>
7464
7465 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
7466 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
7467 * tui/tui-data.c (tui_alloc_win_info): Remove.
7468
bbc228ee
TT
74692019-06-25 Tom Tromey <tom@tromey.com>
7470
7471 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
7472 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
7473 can_highlight.
7474
5fcee43a
TT
74752019-06-25 Tom Tromey <tom@tromey.com>
7476
7477 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
7478 make_visible_with_new_height method.
7479 (tui_win_info::make_visible_with_new_height): New method.
7480 (tui_source_window_base::do_make_visible_with_new_height)
7481 (tui_data_window::do_make_visible_with_new_height)
7482 (tui_cmd_window::do_make_visible_with_new_height): New methods.
7483 (make_visible_with_new_height): Remove.
7484 (tui_resize_all, tui_adjust_win_heights): Use
7485 make_visible_with_new_height method.
7486 * tui/tui-data.h (struct tui_win_info)
7487 <do_make_visible_with_new_height, make_visible_with_new_height>:
7488 New methods.
7489 (struct tui_source_window_base, struct tui_data_window)
7490 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
7491 methods.
7492
d83f1fe6
TT
74932019-06-25 Tom Tromey <tom@tromey.com>
7494
7495 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
7496 method.
7497 (update_tab_width): Call update_tab_width method.
7498 * tui/tui-data.h (struct tui_win_info)
7499 (struct tui_source_window_base) <update_tab_width>: New methods.
7500
17374de4
TT
75012019-06-25 Tom Tromey <tom@tromey.com>
7502
7503 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
7504 parameter.
7505 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
7506 parameter.
7507 (tui_gen_win_info::make_visible): Update.
7508 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
7509 parameter.
7510 * tui/tui-data.h (enum tui_box): New enum.
7511 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
7512
f936bca2
TT
75132019-06-25 Tom Tromey <tom@tromey.com>
7514
7515 * tui/tui-layout.c (make_source_or_disasm_window): Always use
7516 init_and_make_win for EXEC_INFO_WIN.
7517 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
7518 longer inline.
7519 (struct tui_win_info) <~tui_win_info>: Inline.
7520 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7521 Don't declare.
7522 * tui/tui-data.c (source_win, disasm_win): Remove globals.
7523 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7524 Remove.
7525 (tui_initialize_static_data): Update.
7526 (~tui_gen_win_info): Handle more cleanup here.
7527 (~tui_source_window_base): Delete "execution_info".
7528 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
7529
d6ba6a11
TT
75302019-06-25 Tom Tromey <tom@tromey.com>
7531
7532 * tui/tui-layout.c (make_command_window): Don't set
7533 can_highlight.
7534 (show_source_disasm_command): Call the reset method.
7535 (show_data): Don't set can_highlight. Call the reset method.
7536 (tui_gen_win_info::reset): Rename from init_gen_win_info
7537 (init_and_make_win): Simplify. Return tui_gen_win_info.
7538 (show_source_or_disasm_and_command): Call the reset method.
7539 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
7540 (struct tui_cmd_window): Set can_highlight.
7541
48a3bd16
TT
75422019-06-25 Tom Tromey <tom@tromey.com>
7543
7544 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
7545 from make_visible.
7546 (tui_make_visible, tui_make_invisible): Rewrite.
7547 (tui_win_info::make_visible): Remove.
7548 (tui_source_window_base::make_visible): Update.
7549 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
7550 method. Moved from...
7551 (struct tui_win_info) <make_visible>: ...here.
7552
c3bd716f
TT
75532019-06-25 Tom Tromey <tom@tromey.com>
7554
7555 * tui/tui-winsource.c
7556 (tui_source_window_base::do_scroll_horizontal): Remove direction
7557 parameter.
7558 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
7559 direction parameter.
7560 * tui/tui-win.c (tui_win_info::forward_scroll)
7561 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
7562 (tui_win_info::right_scroll): Update.
7563 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
7564 direction parameter.
7565 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
7566 direction parameter.
7567 * tui/tui-data.h (enum tui_scroll_direction): Remove.
7568 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
7569 Remove direction parameter.
7570 (struct tui_source_window_base, struct tui_source_window)
7571 (struct tui_disasm_window, struct tui_data_window)
7572 (struct tui_cmd_window): Update.
7573
21c32dca
TT
75742019-06-25 Tom Tromey <tom@tromey.com>
7575
7576 * tui/tui-winsource.h (tui_set_exec_info_content)
7577 (tui_show_exec_info_content, tui_erase_exec_info_content)
7578 (tui_clear_exec_info_content, tui_update_exec_info): Change
7579 argument to tui_source_window_base.
7580 * tui/tui-winsource.c (tui_set_exec_info_content)
7581 (tui_show_exec_info_content, tui_erase_exec_info_content)
7582 (tui_clear_exec_info_content, tui_update_exec_info): Change
7583 argument to tui_source_window_base.
7584
73fbdc65
TT
75852019-06-25 Tom Tromey <tom@tromey.com>
7586
7587 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
7588 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
7589
33325343
TT
75902019-06-25 Tom Tromey <tom@tromey.com>
7591
7592 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
7593 check.
7594
29d2c474
TT
75952019-06-25 Tom Tromey <tom@tromey.com>
7596
7597 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
7598 type to void.
7599 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
7600 type to void.
7601 * tui/tui-source.c (tui_set_source_content): Update.
7602 * tui/tui-disasm.c (tui_set_disassem_content): Update.
7603
152f3f4b
TT
76042019-06-25 Tom Tromey <tom@tromey.com>
7605
7606 * tui/tui-win.c (window_name_completer, tui_set_focus)
7607 (tui_all_windows_info): Use name method.
7608 * tui/tui-data.h (struct tui_gen_win_info)
7609 (struct tui_source_window, struct tui_disasm_window)
7610 (struct tui_data_window, struct tui_cmd_window) <name>: New
7611 method.
7612 (tui_win_name): Don't declare.
7613 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
7614 (tui_win_name): Remove.
7615
be4da588
TT
76162019-06-25 Tom Tromey <tom@tromey.com>
7617
7618 * tui/tui-winsource.h (tui_update_source_window)
7619 (tui_update_source_window_as_is): Change parameter type.
7620 * tui/tui-winsource.c (tui_update_source_window): Change win_info
7621 to be a tui_source_window_base.
7622 (tui_update_source_window_as_is): Likewise.
7623 * tui/tui-win.c (make_visible_with_new_height): Update.
7624
5b81daba
TT
76252019-06-25 Tom Tromey <tom@tromey.com>
7626
7627 * tui/tui-winsource.c (tui_erase_source_content)
7628 (tui_show_source_content, tui_show_exec_info_content)
7629 (tui_erase_exec_info_content): Use refresh_window method.
7630 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
7631 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
7632 from tui_refresh_win.
7633 (tui_data_window::refresh_window): New method.
7634 (tui_win_info::refresh, tui_source_window_base::refresh)
7635 (tui_refresh_all): Use refresh_window method.
7636 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
7637 method.
7638 * tui/tui-regs.c (tui_display_register): Call refresh_window
7639 method.
7640 * tui/tui-layout.c (show_source_disasm_command)
7641 (show_source_or_disasm_and_command): Call refresh_window method.
7642 * tui/tui-data.h (struct tui_gen_win_info)
7643 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
7644 New method.
7645
cb2ce893
TT
76462019-06-25 Tom Tromey <tom@tromey.com>
7647
7648 * tui/tui.c (tui_rl_other_window, tui_enable)
7649 (tui_is_window_visible, tui_get_command_dimension): Update.
7650 * tui/tui-winsource.c (tui_update_source_window_as_is)
7651 (tui_clear_source_content, tui_erase_source_content)
7652 (tui_show_source_line, tui_source_window_base::refill)
7653 (tui_source_window_base::do_scroll_horizontal)
7654 (tui_source_window_base::set_is_exec_point_at)
7655 (tui_update_breakpoint_info, tui_set_exec_info_content)
7656 (tui_alloc_source_buffer, tui_line_is_displayed)
7657 (tui_addr_is_displayed): Update.
7658 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
7659 (tui_check_and_display_highlight_if_needed)
7660 (tui_win_info::make_visible, tui_win_info::refresh)
7661 (tui_refresh_all): Update.
7662 * tui/tui-windata.c (tui_first_data_item_displayed)
7663 (tui_delete_data_content_windows, tui_erase_data_content)
7664 (tui_display_all_data, tui_data_window::refresh_all)
7665 (tui_check_data_values): Update.
7666 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
7667 (tui_set_win_focus_to, tui_win_info::forward_scroll)
7668 (tui_win_info::backward_scroll, tui_refresh_all_win)
7669 (tui_resize_all, tui_set_focus, tui_all_windows_info)
7670 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
7671 (tui_source_window_base::set_new_height)
7672 (tui_data_window::set_new_height)
7673 (make_invisible_and_set_new_height)
7674 (make_visible_with_new_height, new_height_ok)
7675 (parse_scrolling_args): Update.
7676 * tui/tui-stack.c (tui_show_frame_info): Update.
7677 * tui/tui-source.c (tui_set_source_content)
7678 (tui_set_source_content_nil, tui_source_is_displayed)
7679 (tui_source_window::do_scroll_vertical): Update.
7680 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7681 (tui_display_registers_from, tui_display_reg_element_at_line)
7682 (tui_check_register_values, tui_reg_command): Update.
7683 * tui/tui-layout.c (tui_default_win_height)
7684 (show_source_disasm_command, show_data, init_and_make_win)
7685 (show_source_or_disasm_and_command): Update.
7686 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
7687 (tui_redisplay_readline, tui_mld_flush)
7688 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
7689 (tui_getc): Update.
7690 * tui/tui-disasm.c (tui_set_disassem_content)
7691 (tui_disasm_window::do_scroll_vertical): Update.
7692 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
7693 Now virtual.
7694 (struct tui_win_info): Derive from tui_gen_win_info.
7695 <~tui_win_info>: Mark as override.
7696 <generic>: Remove member.
7697 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
7698 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
7699 (~tui_data_window, ~tui_win_info)
7700 (tui_free_all_source_wins_content): Update.
7701 * tui/tui-command.c (tui_refresh_cmd_win): Update.
7702
ab313b35
TT
77032019-06-25 Tom Tromey <tom@tromey.com>
7704
7705 * tui/tui-layout.c (init_and_make_win): Use new.
7706 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
7707 destructor, initializers.
7708 (tui_alloc_generic_win_info): Don't declare.
7709 * tui/tui-data.c (_locator): Add argument to constructor.
7710 (source_win, disasm_win): New globals.
7711 (exec_info): Remove.
7712 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7713 Update.
7714 (tui_alloc_generic_win_info): Remove.
7715 (init_content_element): Use new.
7716 (tui_win_info::tui_win_info): Update.
7717 (free_content_elements) <case DATA_WIN>: Use delete.
7718
dc2c33e4
TT
77192019-06-25 Tom Tromey <tom@tromey.com>
7720
7721 * tui/tui-wingeneral.c (tui_refresh_win): Update.
7722 * tui/tui-windata.c (tui_first_data_item_displayed)
7723 (tui_delete_data_content_windows): Update.
7724 * tui/tui-win.c (tui_data_window::set_new_height): Update.
7725 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7726 (tui_display_registers_from, tui_check_register_values): Update.
7727 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
7728 pointer.
7729 * tui/tui-data.c (init_content_element): Update. Allocate the new
7730 window.
7731 (tui_free_data_content): Update.
7732 (free_content_elements) <case DATA_WIN>: Free the window.
7733
214a5cbe
TT
77342019-06-25 Tom Tromey <tom@tromey.com>
7735
7736 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
7737 Update.
7738 * tui/tui-layout.c (make_command_window)
7739 (show_source_disasm_command, show_data, init_and_make_win)
7740 (show_source_or_disasm_and_command): Update.
7741 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
7742 method.
7743 <can_highight, is_highlighted>: Now bool.
7744 (tui_set_win_highlight): Don't declare.
7745 * tui/tui-data.c (tui_set_win_highlight): Remove.
7746
8e2daf15
TT
77472019-06-25 Tom Tromey <tom@tromey.com>
7748
7749 * tui/tui-wingeneral.c (make_visible): Remove check of window
7750 type.
7751
8903bd8a
TT
77522019-06-25 Tom Tromey <tom@tromey.com>
7753
7754 * tui/tui-win.c (tui_win_info::max_height)
7755 (tui_cmd_window::max_height): New methods.
7756 (new_height_ok): Call max_height.
7757 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
7758 <max_height>: New method.
7759
3f02ce1e
TT
77602019-06-25 Tom Tromey <tom@tromey.com>
7761
7762 * tui/tui-win.c (tui_source_window_base::set_new_height)
7763 (tui_data_window::set_new_height): New methods.
7764 (make_invisible_and_set_new_height): Call set_new_height method.
7765 * tui/tui-data.h (struct tui_win_info)
7766 (struct tui_source_window_base, struct tui_data_window)
7767 <set_new_height>: New method.
7768
1825f487
TT
77692019-06-25 Tom Tromey <tom@tromey.com>
7770
7771 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
7772 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
7773 tui_refresh_data_win.
7774 * tui/tui-win.c (tui_source_window_base::refresh_all): New
7775 method.
7776 (tui_refresh_all_win): Call the refresh_all method.
7777 (tui_set_focus): Likewise.
7778 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
7779 (struct tui_source_window_base, struct tui_data_window) <refresh>:
7780 Likewise.
7781
ad54d15b
TT
77822019-06-25 Tom Tromey <tom@tromey.com>
7783
7784 * tui/tui-winsource.h (tui_refill_source_window)
7785 (tui_set_is_exec_point_at): Don't declare.
7786 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
7787 (tui_source_window_base::refill): Rename from
7788 tui_refill_source_window.
7789 (tui_source_window_base::do_scroll_horizontal): Update.
7790 (tui_source_window_base::set_is_exec_point_at): Rename from
7791 tui_set_is_exec_point_at.
7792 (tui_update_all_breakpoint_info): Update.
7793 * tui/tui-stack.c (tui_show_frame_info): Update.
7794 * tui/tui-layout.c (show_data): Add cast.
7795 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
7796 * tui/tui-data.h (struct tui_source_window_base) <refill,
7797 set_is_exec_point_at>: New methods.
7798 (tui_source_windows, tui_add_to_source_windows): Update types.
7799 (tui_add_to_source_windows): Remove redundant declaration.
7800 * tui/tui-data.c (source_windows): Store tui_source_window_base.
7801 (tui_source_windows): Change return type.
7802 (tui_clear_source_windows_detail): Update.
7803 (tui_add_to_source_windows): Change type of parameter.
7804 (tui_free_all_source_wins_content): Update.
7805
2042b506
TT
78062019-06-25 Tom Tromey <tom@tromey.com>
7807
7808 * tui/tui-wingeneral.c (tui_win_info::refresh)
7809 (tui_source_window_base::refresh): New methods.
7810 (tui_refresh_all): Call the refresh method.
7811 * tui/tui-data.h (struct tui_win_info)
7812 (struct tui_source_window_base) <refresh>: New method.
7813
56122977
TT
78142019-06-25 Tom Tromey <tom@tromey.com>
7815
7816 * tui/tui.h (tui_is_window_visible): Return bool.
7817 * tui/tui.c (tui_is_window_visible): Return bool.
7818 * tui/tui-wingeneral.c (tui_make_window, make_visible)
7819 (tui_make_visible, tui_make_invisible)
7820 (tui_win_info::make_visible)
7821 (tui_source_window_base::make_visible, make_all_visible)
7822 (tui_make_all_visible, tui_make_all_invisible): Update.
7823 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
7824 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
7825 bool.
7826 (struct tui_win_info, struct tui_source_window_base)
7827 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
7828 * tui/tui-data.c (tui_init_generic_part): Update.
7829
cda37efb
TT
78302019-06-25 Tom Tromey <tom@tromey.com>
7831
7832 * tui/tui-wingeneral.c (tui_win_info::make_visible)
7833 (tui_source_window_base::make_visible): New methods.
7834 (make_all_visible): Make method call.
7835 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
7836 (struct tui_source_window_base, struct tui_cmd_window): Override
7837 make_visible.
7838 (tui_win_is_source_type): Don't declare.
7839 * tui/tui-data.c (tui_win_is_source_type): Remove.
7840
6a0ee02c
TT
78412019-06-25 Tom Tromey <tom@tromey.com>
7842
7843 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
7844 NULL check.
7845
63901aec
TT
78462019-06-25 Tom Tromey <tom@tromey.com>
7847
7848 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
7849 Inline constructor. Add initializers for members.
7850 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
7851 constructors; now inline in class.
7852
ceb13a13
TT
78532019-06-25 Tom Tromey <tom@tromey.com>
7854
7855 * tui/tui-regs.c (tui_show_registers): Update.
7856 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
7857 bool.
7858 * tui/tui-data.c (tui_data_window::clear_detail)
7859 (tui_data_window): Update.
7860
238eb706
TT
78612019-06-25 Tom Tromey <tom@tromey.com>
7862
7863 * tui/tui-windata.c (tui_display_all_data)
7864 (tui_display_data_from_line, tui_display_data_from)
7865 (tui_check_data_values, tui_data_window::do_scroll_vertical):
7866 Update.
7867 * tui/tui-regs.c (tui_last_regs_line_no)
7868 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
7869 (tui_show_registers, tui_show_register_group)
7870 (tui_display_registers_from, tui_display_reg_element_at_line)
7871 (tui_display_registers_from_line, tui_check_register_values)
7872 (tui_reg_next, tui_reg_prev): Update.
7873 * tui/tui-layout.c (tui_set_layout, show_data): Update.
7874 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
7875 tui_data_window.
7876 (struct tui_win_info) <detail>: Remove. Add new fields from
7877 tui_data_info.
7878 (TUI_DATA_WIN): Add cast.
7879 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
7880 (~tui_data_window): Simplify.
7881
81491aa0
TT
78822019-06-25 Tom Tromey <tom@tromey.com>
7883
7884 * tui/tui-layout.c (show_source_disasm_command)
7885 (show_source_or_disasm_and_command): Update.
7886 * tui/tui-io.c (update_cmdwin_start_line)
7887 (tui_redisplay_readline): Update.
7888 * tui/tui-data.h (struct tui_command_info): Remove.
7889 (struct tui_win_info) <detail>: Remove command_info member.
7890 (struct tui_data_window) <start_line>: New member, from
7891 tui_command_info.
7892 (TUI_CMD_WIN): Add casts.
7893
e6e41501
TT
78942019-06-25 Tom Tromey <tom@tromey.com>
7895
7896 * tui/tui-winsource.c (tui_update_source_window)
7897 (tui_refill_source_window)
7898 (tui_source_window_base::do_scroll_horizontal)
7899 (tui_update_breakpoint_info, tui_set_exec_info_content)
7900 (tui_show_exec_info_content, tui_erase_exec_info_content)
7901 (tui_clear_exec_info_content): Update.
7902 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
7903 Update.
7904 * tui/tui-win.c (make_invisible_and_set_new_height)
7905 (make_visible_with_new_height): Update.
7906 * tui/tui-source.c (tui_set_source_content)
7907 (tui_show_symtab_source): Update.
7908 * tui/tui-layout.c (extract_display_start_addr)
7909 (show_source_disasm_command, show_data)
7910 (make_source_or_disasm_window)
7911 (show_source_or_disasm_and_command): Update.
7912 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
7913 (tui_disasm_window::do_scroll_vertical): Remove shadowing
7914 "gdbarch".
7915 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
7916 to tui_source_window_base.
7917 (struct tui_win_info) <detail>: Remove source_info member.
7918 (struct tui_source_window_base) <has_locator>: Inline.
7919 Move contents from tui_source_info; rename has_locator member to
7920 m_has_locator.
7921 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
7922 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
7923 header file.
7924 (tui_source_window_base::clear_detail, ~tui_source_window_base):
7925 Simplify.
7926 (tui_free_all_source_wins_content): Cast to
7927 tui_source_window_base.
7928
44f0e208
TT
79292019-06-25 Tom Tromey <tom@tromey.com>
7930
7931 * tui/tui-win.c (make_invisible_and_set_new_height)
7932 (make_visible_with_new_height): Call has_locator method.
7933 * tui/tui-layout.c (show_source_disasm_command, show_data)
7934 (show_source_or_disasm_and_command): Update for bool change.
7935 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
7936 (tui_win_info) <has_locator>: New method.
7937 (struct tui_source_window_base) <has_locator>: New method.
7938 (tui_win_has_locator): Don't declare.
7939 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
7940 from tui_win_has_locator.
7941 (tui_source_window_base): Use false, not FALSE.
7942
7778b912
TT
79432019-06-25 Tom Tromey <tom@tromey.com>
7944
7945 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
7946 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
7947 clear_detail method directly.
7948 (tui_clear_win_detail): Remove.
7949
f83d391c
TT
79502019-06-25 Tom Tromey <tom@tromey.com>
7951
7952 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
7953 "this", not TUI_DISASM_WIN.
7954
13446e05
TT
79552019-06-25 Tom Tromey <tom@tromey.com>
7956
7957 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
7958 declare.
7959 * tui/tui-winsource.c
7960 (tui_source_window_base::do_scroll_horizontal): Rename from
7961 tui_horizontal_source_scroll.
7962 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
7963 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
7964 from tui_vertical_data_scroll.
7965 * tui/tui-win.h (tui_scroll): Don't declare.
7966 * tui/tui-win.c (tui_win_info::forward_scroll)
7967 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
7968 (tui_win_info::right_scroll): Rename and update.
7969 (tui_scroll_forward_command, tui_scroll_backward_command)
7970 (tui_scroll_left_command, tui_scroll_right_command): Update.
7971 (tui_scroll): Remove.
7972 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
7973 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
7974 from tui_vertical_source_scroll.
7975 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
7976 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
7977 from tui_vertical_disassem_scroll.
7978 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
7979 do_scroll_horizontal>: New methods.
7980 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
7981 Likewise.
7982 (struct tui_source_window_base): Add do_scroll_horizontal.
7983 (struct tui_source_window, struct tui_disasm_window): Add
7984 do_scroll_vertical.
7985 (struct tui_data_window, struct tui_cmd_window): Add
7986 do_scroll_horizontal and do_scroll_vertical.
7987 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
7988
5cf82909
TT
79892019-06-25 Tom Tromey <tom@tromey.com>
7990
7991 * tui/tui-data.h (struct tui_source_window_base): New struct.
7992 (struct tui_source_window): Derive from tui_source_window_base.
7993 (struct tui_disasm_window): New struct.
7994 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
7995 from tui_source_window::clear_detail.
7996 (tui_source_window_base): Rename from tui_source_window.
7997 (~tui_source_window_base): Rename from ~tui_source_window.
7998 (tui_alloc_win_info): Create a tui_disasm_window.
7999
ee1d42d6
TT
80002019-06-25 Tom Tromey <tom@tromey.com>
8001
8002 * tui/tui-data.h (struct tui_source_window)
8003 (struct tui_data_window): Declare destructors.
8004 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
8005 destructors.
8006 (tui_win_info): Simplify.
8007
b4eb2452
TT
80082019-06-25 Tom Tromey <tom@tromey.com>
8009
8010 * tui/tui-winsource.c (tui_display_main)
8011 (tui_update_source_windows_with_addr)
8012 (tui_update_all_breakpoint_info): Update.
8013 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
8014 (new_height_ok, parse_scrolling_args): Update.
8015 * tui/tui-stack.c (tui_show_frame_info): Update.
8016 * tui/tui-data.h (struct tui_list): Remove.
8017 (tui_source_windows): Return a reference to a std::vector.
8018 * tui/tui-data.c (source_windows): Now a std::vector.
8019 (tui_source_windows): Change return type.
8020 (tui_clear_source_windows): Rewrite.
8021 (tui_clear_source_windows_detail, tui_add_to_source_windows)
8022 (tui_free_all_source_wins_content): Rewrite.
8023
8761a91b
TT
80242019-06-25 Tom Tromey <tom@tromey.com>
8025
8026 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
8027 (struct tui_data_window, struct tui_cmd_window): Declare
8028 clear_detail method.
8029 * tui/tui-data.c (tui_source_window::clear_detail)
8030 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
8031 methods.
8032 (tui_clear_win_detail): Simplify.
8033
0ed69eda
TT
80342019-06-25 Tom Tromey <tom@tromey.com>
8035
8036 * tui/tui-layout.c (make_source_window, make_disasm_window)
8037 (make_source_or_disasm_window): Remove win_info_ptr parameter.
8038 Return the new window.
8039 (show_source_disasm_command, show_data)
8040 (show_source_or_disasm_and_command): Update.
8041
82432e10
TT
80422019-06-25 Tom Tromey <tom@tromey.com>
8043
8044 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
8045 parameter. Return the new window.
8046 (show_source_disasm_command): Update and remove NULL check.
8047 (show_source_or_disasm_and_command): Update.
8048
ec328aa5
TT
80492019-06-25 Tom Tromey <tom@tromey.com>
8050
8051 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
8052
33b906ab
TT
80532019-06-25 Tom Tromey <tom@tromey.com>
8054
8055 * tui/tui-data.h (struct tui_win_info): Make constructor
8056 protected. Make destructor virtual. Add initializers.
8057 (tui_source_window, tui_data_window, tui_cmd_window): New
8058 classes.
8059 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
8060 constructor. Add "type" parameter.
8061 (tui_source_window, tui_data_window, tui_cmd_window): New
8062 constructors.
8063 (tui_alloc_win_info): Instantiate the appropriate subclass.
8064
e7e11af4
TT
80652019-06-25 Tom Tromey <tom@tromey.com>
8066
8067 * tui/tui-win.c (tui_resize_all): Use delete.
8068 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
8069 destructor.
8070 (tui_free_window): Don't declare.
8071 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
8072 Update.
8073
6792b55e
TT
80742019-06-25 Tom Tromey <tom@tromey.com>
8075
8076 * tui/tui-data.h (struct tui_win_info): Add constructor.
8077 * tui/tui-data.c (tui_alloc_win_info): Use new.
8078 (tui_free_window): Use delete.
8079
f95675e1
TT
80802019-06-22 Tom Tromey <tom@tromey.com>
8081
8082 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
8083 declare.
8084 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
8085
5bff081c
TT
80862019-06-22 Tom Tromey <tom@tromey.com>
8087
8088 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
8089 declare.
8090 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
8091
47e3f474
TV
80922019-06-22 Tom de Vries <tdevries@suse.de>
8093
8094 * dwarf2read.c (create_addrmap_from_aranges)
8095 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
8096 instead of '%zu'.
8097
fd5866f6
SM
80982019-06-21 Simon Marchi <simon.marchi@efficios.com>
8099
8100 * dwarf2read.h (dwarf2_section_info_def): Remove.
8101 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
8102 * dwarf2read.c (struct dwo_sections) <types>: Change type to
8103 std::vector<dwarf2_section_info>.
8104 (struct dwo_file) <~dwo_file>: Remove.
8105 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
8106 types field.
8107 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
8108 (dwarf2_read_debug_names): Likewise.
8109 (create_debug_types_hash_table): Change parameter type to
8110 array_view, adjust code accordingly.
8111 (dwarf2_locate_dwo_sections): Adjust to std::vector.
8112 (partial_die_info::fixup): Likewise.
8113 (determine_prefix): Likewise.
8114 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
8115
fb1eb2f9
SM
81162019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8117
8118 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
8119 gdb_bfd_ref_ptr.
8120 <~dwo_file>: Remove call to gdb_bfd_unref.
8121 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
8122 gdb_bfd_ref_ptr::get.
8123
51ac9db5
SM
81242019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8125
8126 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
8127 type to htab_up.
8128 * dwarf2read.c (struct dwo_file): Initialize fields.
8129 <~dwo_file>: New.
8130 (free_dwo_file): Remove, move content to ~dwo_file.
8131 (struct dwo_file_deleter): Remove.
8132 (dwo_file_up>: Remove custom deleter.
8133 (free_dwo_files): Remove.
8134 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
8135 dwo_files.
8136 (process_skeletonless_type_units): Call unique_ptr::get.
8137 (allocate_dwo_file_hash_table): Add deleter to created hash
8138 table. Change return type to htab_up.
8139 (lookup_dwo_file_slot): Don't memset dwo_file, call
8140 unique_ptr::get.
8141 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
8142 (create_dwo_unit_in_dwp_v2): Likewise.
8143 (open_and_init_dwo_file): Likewise.
8144 (free_dwo_file_from_slot): Remove.
8145
dc4ccb6f
SM
81462019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8147
8148 * dwarf2read.h (struct dwarf2_section_info) <readin,
8149 is_virtual>: Change type to bool.
8150 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
8151 true instead of 1.
8152
e6a1c5cb
TT
81532019-06-19 Tom Tromey <tom@tromey.com>
8154
8155 * tui/tui-data.h (tui_init_content_element): Don't declare.
8156
6f6ffbeb
TT
81572019-06-19 Tom Tromey <tom@tromey.com>
8158
8159 * tui/tui-data.h (tui_init_win_info): Don't declare.
8160
f23f598e
TV
81612019-06-19 Tom de Vries <tdevries@suse.de>
8162
8163 * dwarf2read.h (abstract_to_concrete): Change type to
8164 std::unordered_map<sect_offset, std::vector<sect_offset>,
8165 gdb::hash_enum<sect_offset>>.
8166
680e1bee
TT
81672019-06-19 Tom Tromey <tromey@adacore.com>
8168
8169 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
8170 EVAL_AVOID_SIDE_EFFECTS specially.
8171
dcf37923
TT
81722019-06-19 Tom Tromey <tromey@adacore.com>
8173
8174 * source-cache.c (highlighter): New global.
8175 (source_cache::get_source_lines): Create a highlighter on demand.
8176
494986d5
AB
81772019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
8178
8179 * defs.h (deprecated_interactive_hook): Delete declaration.
8180 * interps.c (clear_interpreter_hooks): Remove use of
8181 deprecated_interactive_hook.
8182 * top.c (deprecated_interactive_hook): Delete definition.
8183 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
8184
3360b6e7
TV
81852019-06-18 Tom de Vries <tdevries@suse.de>
8186
8187 PR gdb/24515
8188 * dwarf2read.h (abstract_to_concrete): Change type from
8189 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
8190 std::unordered_map<sect_offset, std::vector<sect_offset>>.
8191 * dwarf2read.c (read_variable): Update.
8192 (dwarf2_fetch_die_loc_sect_off): Update.
8193
310b3441
TV
81942019-06-17 Tom de Vries <tdevries@suse.de>
8195
8196 PR gdb/24617
8197 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
8198 accessing parent[parent_len - 1].
8199
ba9777be
PP
82002019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
8201
8202 PR gdb/24364
8203 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
8204 call dtrace_process_dof with NULL dof.
8205
2b9f6e89
TV
82062019-06-16 Tom de Vries <tdevries@suse.de>
8207
8208 PR gdb/24445
8209 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
8210
431b3ead
TT
82112019-06-16 Tom Tromey <tom@tromey.com>
8212
8213 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
8214 (make_all_visible): Use address of member.
8215
d04b44a1
TT
82162019-06-16 Tom Tromey <tom@tromey.com>
8217
8218 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
8219 (tui_free_window, free_content, free_content_elements): Remove
8220 unnecessary cast.
8221 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
8222 cast.
8223 * tui/tui-regs.c (tui_show_register_group)
8224 (tui_display_registers_from, tui_display_reg_element_at_line):
8225 Remove unnecessary cast.
8226
bf5142e7
AB
82272019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
8228
8229 * linux-nat.c (normal_mask): Delete.
8230 (_initialize_linux_nat): Don't initialise normal_mask.
8231
c4973306
SM
82322019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
8233
8234 PR gdb/24445
8235 * dwarf-index-write.h (write_psymtabs_to_index): Add
8236 dwz_basename parameter.
8237 * dwarf-index-write.c (write_gdbindex): Move file writing to
8238 write_gdbindex_1. Change return type void.
8239 (assert_file_size): Move up, remove filename parameter.
8240 (write_gdbindex_1): New function.
8241 (write_debug_names): Change return type to void, call
8242 assert_file_size.
8243 (struct index_wip_file): New struct.
8244 (write_psymtabs_to_index): Add dwz_basename parameter. Move
8245 file logic to index_wip_file. Write index for dwz file if
8246 needed.
8247 (save_gdb_index_command): Pass basename of dwz file, if present.
8248 * dwarf-index-cache.c (index_cache::store): Obtain and pass
8249 build-id of dwz file, if present.
8250 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
8251 (dwarf2_get_dwz_file): Likewise.
8252 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
8253 (dwarf2_get_dwz_file): Likewise.
8254
395f9c91
TT
82552019-06-16 Tom Tromey <tom@tromey.com>
8256
8257 * coffread.c (process_coff_symbol): Use xstrdup.
8258 * value.c (create_internalvar): Use xstrdup.
8259
cafb3438
TT
82602019-06-16 Tom Tromey <tom@tromey.com>
8261
8262 * valops.c (value_cast, value_slice): Remove unnecessary cast.
8263 * breakpoint.c (stopin_command, stopat_command)
8264 (until_break_command, decode_location_default): Remove unnecessary
8265 cast.
8266 * utils.c (subset_compare): Remove unnecessary cast.
8267 * ada-lang.c (ada_update_initial_language): Remove unnecessary
8268 cast.
8269 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
8270 cast.
8271 * infcmd.c (path_command): Remove unnecessary cast.
8272 * coffread.c (decode_type): Remove unnecessary cast.
8273 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
8274 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
8275 * tui/tui-stack.c (tui_show_locator_content)
8276 (tui_show_frame_info): Remove unnecessary cast.
8277 * tui/tui-win.c (tui_scroll_forward_command)
8278 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
8279 (parse_scrolling_args): Remove unnecessary cast.
8280 * tui/tui-data.c (init_win_info, tui_del_window)
8281 (tui_free_window, tui_del_data_windows, tui_free_data_content)
8282 (free_content_elements): Remove unnecessary cast.
8283 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
8284 unnecessary cast.
8285 * tui/tui-source.c (tui_set_source_content)
8286 (tui_vertical_source_scroll): Remove unnecessary cast.
8287 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
8288 cast.
8289 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
8290 * tui/tui-regs.c (tui_display_registers_from)
8291 (tui_display_register): Remove unnecessary cast.
8292 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
8293 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
8294 (make_visible): Remove unnecessary cast.
8295 * tui/tui-winsource.c (tui_erase_source_content)
8296 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
8297 unnecessary cast.
8298 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
8299 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
8300 * stabsread.c (read_type, read_array_type, read_range_type):
8301 Remove unnecessary cast.
8302 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
8303 (parse_symbol, parse_type, upgrade_type, parse_external)
8304 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
8305 unnecessary cast.
8306 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
8307
730ead81
TT
83082019-06-16 Tom Tromey <tom@tromey.com>
8309
8310 * tui/tui-data.c (tui_alloc_generic_win_info)
8311 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
8312 checks.
8313
584a927c
AB
83142019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
8315 Andrew Burgess <andrew.burgess@embecosm.com>
8316
8317 * f-typeprint.c (f_print_type): Don't return early for not
8318 associated or not allocated types.
8319 (f_type_print_varspec_suffix): Add print_rank parameter and print
8320 ranks of array types in case they dangling.
8321 (f_type_print_base): Add print_rank parameter.
8322
30056ea0
AB
83232019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8324
8325 * NEWS: Mention new MI commands.
8326 * break-catch-throw.c (enum exception_event_kind): Move to
8327 breakpoint.h.
8328 (print_mention_exception_catchpoint): Output text as a single
8329 message.
8330 (catch_exception_command_1): Rename to...
8331 (catch_exception_event): ...this, make non-static, update header
8332 command, and change some parameter types.
8333 (catch_catch_command): Update for changes to
8334 catch_exception_command_1.
8335 (catch_throw_command): Likewise.
8336 (catch_rethrow_command): Likewise.
8337 * breakpoint.c (enum exception_event_kind): Delete.
8338 * breakpoint.h (enum exception_event_kind): Moved here from
8339 break-catch-throw.c.
8340 (catch_exception_event): Declare.
8341 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
8342 (mi_cmd_catch_throw): New function.
8343 (mi_cmd_catch_rethrow): New function.
8344 (mi_cmd_catch_catch): New function.
8345 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
8346 'catch-catch' entries.
8347 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
8348 (mi_cmd_catch_rethrow): Declare.
8349 (mi_cmd_catch_catch): Declare.
8350
ec8e2b6d
AB
83512019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8352
8353 * annotate.c (annotate_source_line): Change return type to void,
8354 update implementation to match.
8355 * annotate.h (annotate_source_line): Change return type to void,
8356 update header comment.
8357 * stack.c (print_frame_info): Don't change what frame information
8358 is printed based on whether annotations are on or not.
8359
0d3abd8c
AB
83602019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8361
8362 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
8363 (annotate_source): Make static.
8364 (annotate_source_line): Moved from source.c and renamed from
8365 identify_source_line. Update the return type.
8366 * annotate.h (annotate_source): Delete declaration.
8367 (annotate_source_line): Declaration moved from source.h, and
8368 renamed from identify_source_line. Return type updated.
8369 * source.c (identify_source_line): Moved to annotate.c and renamed
8370 to annotate_source_line.
8371 (info_line_command): Remove check of annotation_level.
8372 * source.h (identify_source_line): Move declaration to annotate.h
8373 and rename to annotate_source_line.
8374 * stack.c: Add 'annotate.h' include.
8375 (print_frame_info): Remove check of annotation_level before
8376 calling annotate_source_line.
8377
00df30ae
AB
83782019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8379
8380 * source-cache.c (source_cache::get_plain_source_lines): Use
8381 open_source_file_with_line_charpos instead of just
8382 open_source_file, remove call to find_source_lines.
8383 (source_cache::get_source_lines): Likewise.
8384 * source.c (find_source_lines): Make static.
8385 (get_filename_and_charpos): Renamed into...
8386 (open_source_file_with_line_charpos): ..this along with changes to
8387 return a scoped_fd, and some other minor clean ups.
8388 (identify_source_line): Use open_source_file_with_line_charpos.
8389 (search_command_helper): Use open_source_file_with_line_charpos
8390 instead of just open_source_file, remove call to
8391 find_source_lines.
8392 * source.h (open_source_file_with_line_charpos): Declare new
8393 function.
8394 (find_source_lines): Delete declaration.
8395
afda45a2
AB
83962019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8397
8398 * source.c (get_filename_and_charpos): Remove fullname
8399 parameter.
8400 (identify_source_line): Update call to get_filename_and_charpos.
8401
0735b091
TT
84022019-06-14 Tom Tromey <tromey@adacore.com>
8403
8404 PR gdb/24502:
8405 * ui-style.h (skip_ansi_escape): Update comment.
8406 * ui-file.h (class no_terminal_escape_file): New class.
8407 * ui-file.c (no_terminal_escape_file::write)
8408 (no_terminal_escape_file::puts): New methods.
8409 * cli/cli-logging.c (handle_redirections): Use
8410 no_terminal_escape_file.
8411
52ce35e2
TT
84122019-06-14 Tom Tromey <tromey@adacore.com>
8413
8414 * NEWS: Move convenience variable news above Python news.
8415
73cc7272
TT
84162019-06-14 Tom Tromey <tom@tromey.com>
8417
8418 * gnulib: Move directory to top-level.
8419 * configure.ac: Don't configure gnulib.
8420 * configure: Rebuild.
8421 * common/common-defs.h: Use new path to gnulib.
8422 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
8423 (GNULIB_H): Remove.
8424 (INCGNU): Look in new gnulib location.
8425 (HFILES_NO_SRCDIR): Remove gnulib files.
8426 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
8427 (generated_files): Remove GNULIB_H.
8428 ($(LIBGNU), all-lib): Remove targets.
8429 (distclean): Don't mention GNULIB_BUILDDIR.
8430 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
8431
f5686554
TT
84322019-06-14 Tom Tromey <tromey@adacore.com>
8433
8434 * symfile.c (add_symbol_file_command): Remove obsolete comment.
8435 Warn if symbol file does not provide any symbols.
8436
a0c1ffed
TT
84372019-06-14 Tom Tromey <tromey@adacore.com>
8438
8439 * source.c (find_and_open_source): Respect basenames_may_differ.
8440
7c39e397
AB
84412019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
8442
8443 * annotate.c (annotate_breakpoints_invalid): Make use of
8444 scoped_restore_terminal_state.
8445 (annotate_frames_invalid): Likewise.
8446
f411722c
TT
84472019-06-14 Tom Tromey <tromey@adacore.com>
8448
8449 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
8450 allow assignment to an internalvar.
8451
4268ec18
TT
84522019-06-14 Tom Tromey <tromey@adacore.com>
8453
8454 * ada-lex.l: Allow "_" in attribute names.
8455
abdb711e
TT
84562019-06-14 Tom Tromey <tromey@adacore.com>
8457
8458 PR gdb/24653:
8459 * regcache.c (registers_changed): Don't call alloca.
8460 * top.c (execute_command): Don't call alloca.
8461
4c048731
PA
84622019-06-13 Pedro Alves <palves@redhat.com>
8463
8464 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
8465 'expression'. When parsing an expression, error out if there's
8466 junk after "unlimited".
8467 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8468 (do_set_command): Adjust calls to is_unlimited_literal.
8469
66eb1ed3
PA
84702019-06-13 Pedro Alves <palves@redhat.com>
8471
8472 * compile/compile.c (make_compile_options_def_group): Add braces
8473 around array_view initializer.
8474 * thread.c (make_thread_apply_all_options_def_group)
8475 (make_thread_apply_all_options_def_group): Likewise.
8476
3345721a
PA
84772019-06-13 Pedro Alves <palves@redhat.com>
8478
8479 * NEWS (New commands): Mention "maint test-options
8480 require-delimiter", "maint test-options unknown-is-error", "maint
8481 test-options unknown-is-operand" and "maint show
8482 test-options-completion-result".
8483 (New command options, command completion): New section.
8484 (Completion improvements): New section.
8485 Mention that you can abbreviate "unlimited".
8486
6206060d
PA
84872019-06-13 Pedro Alves <palves@redhat.com>
8488
8489 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
8490 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
8491 * unittests/cli-utils-selftests.c (test_parse_flags)
8492 (test_parse_flags_qcs): Delete.
8493 (test_cli_utils): Don't call deleted functions.
8494
6665660a
PA
84952019-06-13 Pedro Alves <palves@redhat.com>
8496
8497 * thread.c: Include "cli/cli-option.h".
8498 (tp_array_compar_ascending): Global.
8499 (tp_array_compar): Delete function.
8500 (tp_array_compar_ascending, tp_array_compar_descending): New
8501 functions.
8502 (ascending_option_def, qcs_flag_option_def)
8503 (thr_qcs_flags_option_defs)
8504 (make_thread_apply_all_options_def_group)
8505 (make_thread_apply_options_def_group): New.
8506 (thread_apply_all_command): Use gdb::option::process_options.
8507 (thread_apply_command_completer)
8508 (thread_apply_all_command_completer): New.
8509 (thread_apply_command): Use gdb::option::process_options.
8510 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
8511 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
8512 to generate help text of "thread apply". Adjust "taas"'s help.
8513 * tid-parse.c (tid_range_parser::in_thread_range): New method.
8514 * tid-parse.h (tid_range_parser::in_thread_range): New method.
8515
f7e13587
PA
85162019-06-13 Pedro Alves <palves@redhat.com>
8517
8518 * thread.c (thread_apply_command): Check for invalid TID with
8519 isdigit instead of !isalpha.
8520
5d707134
PA
85212019-06-13 Pedro Alves <palves@redhat.com>
8522
8523 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
8524 (validate_flags_qcs): New.
8525 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
8526 (validate_flags_qcs): Declare.
8527 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
8528 (make_frame_apply_options_def_group): New.
8529 (frame_apply_command_count): Process options with
8530 gdb::option::process_options.
8531 (frame_apply_completer): New.
8532 (frame_apply_level_completer, frame_apply_all_completer)
8533 (frame_apply_completer): New.
8534 (_initialize_stack): Update help of "frame apply", "frame apply
8535 level", "frame apply all" and "faas" to mention supported options
8536 and install command completers.
8537 * stack.h (frame_apply_all_completer): Declare.
8538 * thread.c: Include "stack.h".
8539 (tfaas_command): Add "--".
8540 (_initialize_thread): Update help "tfaas" to mention supported
8541 options and install command completer.
8542
272d4594
PA
85432019-06-13 Pedro Alves <palves@redhat.com>
8544
8545 * completer.c (complete_nested_command_line): New.
8546 (gdb_completion_word_break_characters_throw): Add assertion.
8547 * completer.h (complete_nested_command_line): Declare.
8548
90a1ef87
PA
85492019-06-13 Pedro Alves <palves@redhat.com>
8550
8551 * stack.c (parse_backtrace_qualifiers): New.
8552 (backtrace_command): Use it.
8553 (backtrace_command_completer): Complete on qualifiers.
8554
d4c16835
PA
85552019-06-13 Pedro Alves <palves@redhat.com>
8556
8557 * frame.c: Include "cli/cli-option.h.
8558 (user_set_backtrace_options): New.
8559 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
8560 Delete.
8561 (get_prev_frame): Adjust.
8562 (boolean_option_def, uinteger_option_def)
8563 (set_backtrace_option_defs): New.
8564 (_initialize_frame): Adjust and use
8565 gdb::option::add_setshow_cmds_for_options to install "set
8566 backtrace past-main" and "set backtrace past-entry".
8567 * frame.h: Include "cli/cli-option.h".
8568 (struct frame_print_options): Forward declare.
8569 (print_frame_arguments_all, print_frame_arguments_scalars)
8570 (print_frame_arguments_none): Declare.
8571 (print_entry_values): Delete declaration.
8572 (struct frame_print_options, user_frame_print_options): New.
8573 (struct set_backtrace_options): New.
8574 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
8575 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
8576 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
8577 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
8578 (list_args_or_locals): Add frame_print_options parameter.
8579 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
8580 * python/py-framefilter.c (enumerate_args): Pass down
8581 USER_FRAME_PRINT_OPTIONS.
8582 * stack.c: Include "cli/cli-option.h".
8583 (print_frame_arguments_all, print_frame_arguments_scalars)
8584 (print_frame_arguments_none): Declare.
8585 (print_raw_frame_arguments, print_entry_values): Delete.
8586 (user_frame_print_options): New.
8587 (boolean_option_def, enum_option_def, frame_print_option_defs):
8588 New.
8589 (struct backtrace_cmd_options): New.
8590 (bt_flag_option_def): New.
8591 (backtrace_command_option_defs): New.
8592 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
8593 (print_frame_arg, read_frame_arg, print_frame_args)
8594 (print_frame_info, print_frame): Add frame_print_options parameter
8595 and use it.
8596 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
8597 (backtrace_command_1): Add frame_print_options and
8598 backtrace_cmd_options parameters and use them.
8599 (make_backtrace_options_def_group): New.
8600 (backtrace_command): Process command options with
8601 gdb::option::process_options.
8602 (backtrace_command_completer): New.
8603 (_initialize_stack): Extend "backtrace"'s help to mention
8604 supported options. Install completer for "backtrace".
8605 Install some settings commands with add_setshow_cmds_for_options.
8606
2daf894e
PA
86072019-06-13 Pedro Alves <palves@redhat.com>
8608
8609 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
8610 and that "set/show print raw frame-arguments" are now deprecated.
8611
8612 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
8613 command.
8614 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
8615 * stack.c (_initialize_stack): Install "set/show print
8616 raw-frame-arguments", and deprecate "set/show print raw
8617 frame-arguments".
8618 * valprint.c (_initialize_valprint): Deprecate "set/show print
8619 raw".
8620
e6ed716c
PA
86212019-06-13 Pedro Alves <palves@redhat.com>
8622
8623 * compile/compile.c (struct compile_options): New.
8624 (compile_flag_option_def, compile_command_option_defs)
8625 (make_compile_options_def_group): New.
8626 (compile_file_command): Handle options with
8627 gdb::option::process_options.
8628 (compile_file_command_completer): New function.
8629 (compile_code_command): Handle options with
8630 gdb::option::process_options.
8631 (compile_code_command_completer): New function.
8632 (_initialize_compiler): Install completers for "compile code" and
8633 "compile file". Mention available options in "compile code" and
8634 "compile code"'s help.
8635 * completer.c (advance_to_completion_word): New, factored out from
8636 ...
8637 (advance_to_expression_complete_word_point): ... this.
8638 (advance_to_filename_complete_word_point): New.
8639 * completer.h (advance_to_filename_complete_word_point): New
8640 declaration.
8641
7d8062de
PA
86422019-06-13 Pedro Alves <palves@redhat.com>
8643
8644 * compile/compile.c: Include "cli/cli-option.h".
8645 (compile_print_value): Scope data pointer is now a
8646 value_print_options pointer; adjust.
8647 (compile_print_command): Process options. Scope data pointer is
8648 now a value_print_options pointer; adjust.
8649 (_initialize_compile): Update "compile print"'s help to include
8650 supported options. Install a completer for "compile print".
8651 * cp-valprint.c (show_vtblprint, show_objectprint)
8652 (show_static_field_print): Delete.
8653 (_initialize_cp_valprint): Don't install "set print
8654 static-members", "set print vtbl", "set print object" here.
8655 * printcmd.c: Include "cli/cli-option.h" and
8656 "common/gdb_optional.h".
8657 (print_command_parse_format): Rework to fill in a
8658 value_print_options instead of a format_data.
8659 (print_value): Change parameter type from format_data pointer to
8660 value_print_options reference. Adjust.
8661 (print_command_1): Process options. Adjust to pass down a
8662 value_print_options.
8663 (print_command_completer): New.
8664 (_initialize_printcmd): Install print_command_completer as
8665 handle_brkchars completer for the "print" command. Update
8666 "print"'s help to include supported options.
8667 * valprint.c: Include "cli/cli-option.h".
8668 (show_vtblprint, show_objectprint, show_static_field_print): Moved
8669 here from cp-valprint.c.
8670 (boolean_option_def, uinteger_option_def)
8671 (value_print_option_defs, make_value_print_options_def_group):
8672 New. Use gdb::option::add_setshow_cmds_for_options to install
8673 "set print elements", "set print null-stop", "set print repeats",
8674 "set print pretty", "set print union", "set print array", "set
8675 print address", "set print symbol", "set print array-indexes".
8676 * valprint.h: Include <string> and "cli/cli-option.h".
8677 (make_value_print_options_def_group): Declare.
8678 (print_value): Change parameter type from format_data pointer to
8679 value_print_options reference.
8680 (print_command_completer): Declare.
8681
9d0faba9
PA
86822019-06-13 Pedro Alves <palves@redhat.com>
8683
8684 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
8685 (COMMON_SFILES): Add maint-test-settings.c.
8686 * cli/cli-decode.c (boolean_enums): New global, factored out from
8687 ...
8688 (add_setshow_boolean_cmd): ... here.
8689 * cli/cli-decode.h (boolean_enums): Declare.
8690 * cli/cli-option.c: New file.
8691 * cli/cli-option.h: New file.
8692 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
8693 factored out from ...
8694 (parse_cli_boolean_value(const char *)): ... this.
8695 (is_unlimited_literal): Change parameter type to pointer to
8696 pointer. Adjust and advance ARG pointer.
8697 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8698 (parse_cli_var_enum): New, factored out from ...
8699 (do_set_command): ... this. Adjust.
8700 * cli/cli-setshow.h (parse_cli_boolean_value)
8701 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8702 (parse_cli_var_enum): Declare.
8703 * cli/cli-utils.c: Include "cli/cli-option.h".
8704 (get_ulongest): New.
8705 * cli/cli-utils.h (get_ulongest): Declare.
8706 (check_for_argument): New overloads.
8707 * maint-test-options.c: New file.
8708
2c722807
PA
87092019-06-13 Pedro Alves <palves@redhat.com>
8710
8711 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
8712 parse a range if "-" is at the end of the string.
8713
dee7b4c8
PA
87142019-06-13 Pedro Alves <palves@redhat.com>
8715
8716 * cli/cli-setshow.c (parse_auto_binary_operation)
8717 (parse_cli_boolean_value): Don't allow "o".
8718
dca0f6c0
PA
87192019-06-13 Pedro Alves <palves@redhat.com>
8720
8721 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
8722 * NEWS: Mention maint test-settings KIND.
8723 * maint-test-settings.c: New file.
8724
597bf39d
PA
87252019-06-13 Pedro Alves <palves@redhat.com>
8726
8727 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
8728 completer.
8729 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
8730 "set" completers.
8731
48c410fb
PA
87322019-06-13 Pedro Alves <palves@redhat.com>
8733
8734 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
8735 after item.
8736
93bcb043
PA
87372019-06-13 Pedro Alves <palves@redhat.com>
8738
8739 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
8740
cbba3ecd
PA
87412019-06-13 Pedro Alves <palves@redhat.com>
8742
8743 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
8744 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
8745 call.
8746 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
8747 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
8748 calls.
8749 (check_for_argument): Skip spaces after argument.
8750
b9a3f842
PA
87512019-06-13 Pedro Alves <palves@redhat.com>
8752
8753 * thread.c (thread_apply_command): Adjust TID parsing.
8754 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
8755 detected before end of string.
8756 (tid_is_in_list): Error out if LIST is invalid.
8757
3844e605
PA
87582019-06-13 Pedro Alves <palves@redhat.com>
8759
8760 * completer.c (complete_line_internal_1): Rewind completion word
8761 point.
8762 (completion_tracker::advance_custom_word_point_by): Change
8763 parameter type to int.
8764 * completer.h (completion_tracker::advance_custom_word_point_by):
8765 Likewise.
8766
00b56dbe
PA
87672019-06-13 Pedro Alves <palves@redhat.com>
8768
8769 * completer.c (advance_to_completion_word): Handle delimiters.
8770
d106773e
PA
87712019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
8772
8773 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
8774
08f10e02
TT
87752019-06-11 Tom Tromey <tom@tromey.com>
8776
8777 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
8778 (xmalloc_failed): Move to alloc.c.
8779 * alloc.c: New file.
8780 * Makefile.in (COMMON_SFILES): Add alloc.c.
8781
1c7fe951
TT
87822019-06-11 Tom Tromey <tom@tromey.com>
8783
8784 * nat/linux-waitpid.c: Don't include server.h.
8785 (linux_debug): Remove.
8786 (my_waitpid): Update.
8787
89549d7f
TT
87882019-06-11 Tom Tromey <tromey@adacore.com>
8789
8790 * infcall.c (_initialize_infcall): Remove trailing newline from
8791 help.
8792 * user-regs.c (_initialize_user_regs): Remove trailing newline
8793 from help.
8794 * typeprint.c (_initialize_typeprint): Remove trailing newline
8795 from help.
8796 * reverse.c (_initialize_reverse): Remove trailing newlines from
8797 help.
8798 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
8799 from help.
8800 * language.c (add_set_language_command): Remove trailing newline
8801 from help.
8802 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
8803 help.
8804 * disasm.c (_initialize_disasm): Remove trailing newline from
8805 help.
8806 * top.c (init_main): Remove trailing newline from help.
8807 * interps.c (_initialize_interpreter): Remove trailing newline
8808 from help.
8809 * btrace.c (_initialize_btrace): Remove trailing newlines from
8810 help.
8811 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
8812 from help.
8813 * python/python.c (_initialize_python): Remove trailing newline
8814 from help.
8815 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
8816 help.
8817 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
8818 from help. Reformat some text.
8819 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
8820 from help.
8821 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
8822 newline from help.
8823
86108c13
TT
88242019-06-11 Tom Tromey <tromey@adacore.com>
8825
8826 * darwin-nat.c (darwin_decode_exception_message)
8827 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
8828
a7067863
AB
88292019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
8830
8831 * valops.c (value_slice): Check for not allocated or not
8832 associated values.
8833
9ab08412
TV
88342019-06-10 Tom de Vries <tdevries@suse.de>
8835
8836 PR gdb/24618
8837 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
8838 sure an empty slot (defined by a 32-bit zero pair) is recognized as
8839 invalid.
8840
f19e22e9
TV
88412019-06-10 Tom de Vries <tdevries@suse.de>
8842
8843 PR gdb/24611
8844 * linespec.c (linespec_lexer_lex_string): Remove incorrect
8845 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
8846
e99f9db0
TV
88472019-06-10 Tom de Vries <tdevries@suse.de>
8848
8849 PR symtab/24545
8850 * symtab.c (struct demangled_name_entry): Add language field.
8851 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
8852 static minimal symbol". Set and use language field.
8853
9bf7038b
TT
88542019-06-10 Tom Tromey <tromey@adacore.com>
8855
8856 * ada-lang.c (_initialize_ada_language): Update help text.
8857
422186a9
TT
88582019-06-10 Tom Tromey <tromey@adacore.com>
8859
8860 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
8861 with a newline.
8862 * guile/guile.c (handle_boot_error): Don't end warning with a
8863 newline.
8864 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
8865 warning with a newline.
8866 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
8867 newline.
8868 (s12z_frame_cache): Likewise.
8869 * dwarf-index-cache.c (index_cache::store): Don't end warning with
8870 a newline.
8871 * solib-svr4.c (disable_probes_interface): Don't end warning with
8872 a newline.
8873 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
8874 newline.
8875 * python/python.c (do_finish_initialization): Don't end warning
8876 with a newline.
8877
25ce02ee
TT
88782019-06-10 Tom Tromey <tom@tromey.com>
8879
8880 * python/py-breakpoint.c (gdbpy_breakpoint_created)
8881 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
8882 gdbpy_enter.
8883
caa429d8
TT
88842019-06-10 Tom Tromey <tromey@adacore.com>
8885
8886 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
8887 data.
8888 (elf_new_init): Don't call stabsread_new_init.
8889 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
8890 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
8891 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
8892
81873cc8
TV
88932019-06-10 Tom de Vries <tdevries@suse.de>
8894
8895 PR symtab/16264
8896 PR symtab/24517
8897 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
8898
4fa0265e
РИ
88992019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
8900
8901 * source.c (find_and_open_source): Also rewrite relative file
8902 names.
8903
1a3da2cd
AB
89042019-04-26 Amos Bird <amosbird@gmail.com>
8905
8906 * annotate.c (annotate_thread_exited): Add "thread-exited"
8907 annotation.
8908
3847a7bf
TT
89092019-06-06 Tom Tromey <tromey@adacore.com>
8910
8911 * maint.h (class scoped_command_stats): Use
8912 DISABLE_COPY_AND_ASSIGN.
8913 <print_time>: New method.
8914 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
8915 print_time.
8916 (scoped_command_stats::print_time): New method.
8917
312617a3
AB
89182019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8919
8920 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
8921 instructions of lengths 6 or 8 bytes.
8922
b02f78f9
PA
89232019-06-04 Pedro Alves <palves@redhat.com>
8924
8925 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
8926
8927 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
8928 * breakpoint.c (condition_completer): Likewise.
8929 * cli/cli-dump.c (scan_expression): Likewise.
8930 * common/filestuff.c (mkdir_recursive): Likewise.
8931 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
8932 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
8933 (gdb_abspath): Likewise.
8934 * compile/compile-cplus-types.c
8935 (compile_cplus_instance::decl_name): Likewise.
8936 * completer.c (complete_explicit_location):
8937 (signal_completer, reg_or_group_completer_1): Likewise.
8938 * cp-support.c (cp_remove_params_if_any): Likewise.
8939 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
8940 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
8941 * infcmd.c (strip_bg_char): Likewise.
8942 * linespec.c (copy_token_string): Likewise.
8943 * mi/mi-main.c (output_cores): Likewise.
8944 * psymtab.c (psymtab_search_name):
8945 * symfile.c (test_set_ext_lang_command): Likewise.
8946 * target.c (target_fileio_read_stralloc): Likewise.
8947 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
8948 * value.c (complete_internalvar): Likewise.
8949
e1f2e1a2
CB
89502019-06-04 Christian Biesinger <cbiesinger@google.com>
8951
8952 Add objfile property to gdb.Type.
d3238f7d
PA
8953 * NEWS: Mention Python API addition.
8954 * python/py-type.c (typy_get_objfile): New method.
e1f2e1a2 8955
e664d728
PW
89562019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8957
8958 * NEWS: Mention the new set|show style [title|highlight].
8959 Mention changes to "show style", "help" and "apropos".
8960
66d8c862
PW
89612019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8962
8963 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
8964 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
8965 instead of print_help_for_command.
8966 (print_doc_of_command): New function.
8967 (help_list): Add 'apropos -v word' suggestion.
8968 (print_help_for_command): Style the command name using title style.
8969 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
8970 (_initialize_cli_cmds): Describe -v in apropos_command help.
8971
9303eb2f
PW
89722019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8973
8974 * cli/cli-style.h (cli_style_option): Add name in constructor,
8975 add m_name class member, add constructor with intensity,
8976 add name class function.
8977 (cli_style_option::add_setshow_commands): Remove name argument.
8978 (highlight_style, title_style): New styles.
8979 * cli/cli-style.c (do_show): New function that shows a style
8980 characteristic styling the style name with itself.
8981 (set_style_name): New function.
8982 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
8983 Update all callers according to the changes in cli/cli-style.h.
8984 * utils.h (fputs_highlighted): New function.
8985 * utils.c (fputs_highlighted): Likewise.
8986
e2c52041
PW
89872019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8988
8989 * NEWS: Mention new pipe command and new convenience variables.
8990
947d3946
PW
89912019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8992
8993 * cli/cli-cmds.c (pipe_command): New function.
8994 (_initialize_cli_cmds): Call add_com for pipe_command.
8995 Define | as an alias for pipe.
8996 (exit_status_set_internal_vars): New function.
8997 (shell_escape): Call exit_status_set_internal_vars.
8998 cli/cli-decode.c (find_command_name_length): Recognize | as
8999 a single character command.
9000
b8fd0918
PW
90012019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9002
9003 * gdbcmd.h (execute_command_to_ui_file): New declaration.
9004 top.c (execute_command_to_ui_file): New function, mostly a copy
9005 of execute_command_to_string.
9006 (execute_command_to_string): Implement by calling
9007 execute_command_to_ui_file.
9008
68bb5386
PW
90092019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9010
9011 * top.h (saved_command_line): Remove declaration.
9012 * top.c (previous_saved_command_line, previous_repeat_arguments):
9013 New variables.
9014 (saved_command_line): Make static, define together with other
9015 'repeat variables'.
9016 (dont_repeat): Clear repeat_arguments.
9017 (repeat_previous, get_saved_command_line, save_command_line):
9018 New functions.
9019 (gdb_init): Initialize saved_command_line
9020 and previous_saved_command_line.
9021 * main.c (captured_main_1): Remove saved_command_line initialization.
9022 * event-top.c (handle_line_of_input): Update to use
9023 the new 'repeat' related functions instead of direct access to
9024 saved_command_line.
9025 * command.h (repeat_previous, get_saved_command_line,
9026 save_command_line): New declarations.
9027 (dont_repeat): Add comment.
9028
bfcdb852
TT
90292019-05-30 Tom Tromey <tromey@adacore.com>
9030
9031 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
9032 Fix comment.
9033 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
9034
0ef209f2
JV
90352019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
9036
9037 PR cli/24587
9038 * completer.c (complete): Initialize variable word.
9039
955b06fa
SDJ
90402019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
9041
9042 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
9043 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
9044 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
9045 'body' is NULL to the outter 'if', protecting the '!is_define'
9046 situation as well.
9047
fa9c3fa0
TT
90482019-05-29 Tom Tromey <tromey@adacore.com>
9049
9050 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
9051 (dwarf_unknown): New function.
9052 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
9053 (dwarf_type_encoding_name): Use dwarf_unknown.
9054
4330d61d
TT
90552019-05-29 Tom Tromey <tromey@adacore.com>
9056
9057 PR c++/20020:
9058 * cp-valprint.c (cp_print_value_fields): Call
9059 cp_print_static_field inside "try".
9060
33a6bc35
TT
90612019-05-29 Tom Tromey <tromey@adacore.com>
9062
9063 * inflow.c (struct terminal_info): Add default operator=.
9064 * configure: Rebuild.
9065 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
9066 -Wdeprecated-copy-dtor, -Wredundant-move.
9067
000439d5
TT
90682019-05-29 Tom Tromey <tromey@adacore.com>
9069
9070 * NEWS: Add entry.
9071 * infcmd.c (print_return_value_1): Handle finish_print
9072 option.
9073 (show_print_finish): New function.
9074 (_initialize_infcmd): Add "set/show print finish" commands.
9075 * valprint.c (user_print_options): Initialize new member.
9076 * valprint.h (struct value_print_options) <finish_print>: New
9077 member.
9078
c0e70c62
TT
90792019-05-28 Tom Tromey <tromey@adacore.com>
9080
9081 * ada-lang.c (ada_remove_Xbn_suffix)
9082 (find_old_style_renaming_symbol)
9083 (parse_old_style_renaming): Remove.
9084 (ada_find_renaming_symbol): Don't call
9085 find_old_style_renaming_symbol.
9086 (ada_is_renaming_symbol): Rename from
9087 ada_find_renaming_symbol. Remove "block" parameter. Return
9088 bool. Now static.
9089 (ada_read_var_value): Update and simplify.
9090 * ada-exp.y (write_var_or_type): Remove old code.
9091
766f8836
AH
90922019-05-28 Alan Hayward <alan.hayward@arm.com>
9093
68255adc 9094 PR gdb/25010
766f8836
AH
9095 * event-top.c: Remove include comment.
9096 * inflow.c (class scoped_ignore_sigttou): Move from here...
9097 * inflow.h (class scoped_ignore_sigttou): ...to here.
9098 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
9099 * top.c: Remove include comment.
9100
eb41253a
TT
91012019-05-27 Tom Tromey <tom@tromey.com>
9102
9103 * NEWS: Fix typo.
9104
4ca51187
TT
91052019-05-22 Tom Tromey <tromey@adacore.com>
9106
9107 * target.c (target_follow_exec): Constify parameter.
9108 * target-delegates.c: Rebuild.
9109 * remote.c (remote_target::follow_exec): Constify parameter.
9110 * infrun.c (follow_exec): Constify parameter.
9111 * target.h (struct target_ops) <follow_exec>: Constify parameter.
9112 (target_follow_exec): Likewise.
9113
8fca4da0
AH
91142019-05-22 Alan Hayward <alan.hayward@arm.com>
9115
9116 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
9117 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
9118
b7060614
AH
91192019-05-22 Alan Hayward <alan.hayward@arm.com>
9120
9121 * NEWS: Add debugredirect and testsuite sections.
9122
0a5954bd
SC
91232019-05-22 Simon Cook <simon.cook@embecosm.com>
9124
9125 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
9126 target descriptions using exclusively floating point register name
9127 aliases.
9128
dc42e902
AB
91292019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
9130
9131 PR gdb/18644:
9132 * f-lang.c (build_fortran_types): Handle the case where
9133 gdbarch_floatformat_for_type returns a nullptr.
9134
fb7806c7
TV
91352019-05-21 Tom de Vries <tdevries@suse.de>
9136
9137 PR cli/24587
9138 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
9139
34d11c68
AB
91402019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
9141
9142 PR gdb/18644:
9143 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
9144 16-byte floats.
9145 * i386-tdep.c (i386_floatformat_for_type): Use
9146 floatformats_ia64_quad for the 16-byte floating point component
9147 within a fortran 32-byte complex number.
9148
122cf0f2
AB
91492019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
9150
9151 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
9152 delete default constructor.
9153 (find_partial_die): Update to return const struct.
9154 (partial_die_parent_scope): Move variable declaration into scope
9155 of its use and change its type to auto.
9156 (guess_partial_die_structure_name): Likewise.
9157 (partial_die_info::fixup): Likewise.
9158
33d0e35a
TT
91592019-05-17 Tom Tromey <tromey@adacore.com>
9160
9161 * source.c (find_and_open_source): Remove cast.
9162
a45575b0
TT
91632019-05-17 Tom Tromey <tromey@adacore.com>
9164
9165 * annotate.c (annotate_source): Make "filename" const.
9166 * annotate.h (annotate_source): Use const.
9167
81f47ac2
AH
91682019-05-17 Alan Hayward <alan.hayward@arm.com>
9169
9170 * disasm.c (set_disassembler_options): Send errors to stderr.
9171
ca1285d1
AH
91722019-05-17 Alan Hayward <alan.hayward@arm.com>
9173
9174 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
9175 (cli_interp_base::set_logging): Check debug_redirect.
9176 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
9177 * cli/cli-logging.c (debug_redirect): Add static variable.
9178 (pop_output_files): Add default param.
9179 (handle_redirections): Print debug setting.
9180 (show_logging_command): Likewise.
9181 (_initialize_cli_logging): Add debugredirect command.
9182 * interps.c (current_interp_set_logging): Add debug_redirect
9183 parameter.
9184 * interps.h (set_logging): Add debug_redirect parameter.
9185 (current_interp_set_logging): Likewise.
9186 * mi/mi-common.h: Likewise.
9187 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
9188
91892019-05-17 Alan Hayward <alan.hayward@arm.com>
f3a09c80
AH
9190 Tom Tromey <tromey@adacore.com>
9191
9192 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
9193 directly.
9194 * cli/cli-interp.h (make_logging_output): Remove declaration.
9195 * cli/cli-logging.c (make_logging_output): Remove function.
9196 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
9197 directly.
9198 * ui-file.c (tee_file::tee_file): Remove bools.
9199 (tee_file::~tee_file): Remove deletes.
9200 * ui-file.h (tee_file): Remove bools.
9201
26648588
JV
92022019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
9203
9204 * mi/mi-cmds.h (mi_cmd_complete): New function.
9205 * mi/mi-main.c (mi_cmd_complete): Likewise.
9206 * mi/mi-cmds.c: Define new MI command -complete.
9207 * NEWS: Mention new -complete command.
9208
6e035501
JV
92092019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
9210
9211 * completer.h (complete): New function.
9212 * completer.c (complete): Likewise.
9213 * cli/cli-cmds.c: (complete_command): Update to use new complete()
9214 function defined in completer.h.
9215
7d0e2ece
JV
92162019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
9217
e79be6e5 9218 * MAINTAINERS (Write After Approval): Add myself.
7d0e2ece 9219
fb816e8b
TV
92202019-05-17 Tom de Vries <tdevries@suse.de>
9221
9222 PR gdb/24094
9223 * dwarf2read.c (struct cu_partial_die_info): New struct.
9224 (find_partial_die): Return cu_partial_die_info.
9225 (partial_die_parent_scope, guess_partial_die_structure_name)
9226 (partial_die_info::fixup): Handle new return type of find_partial_die.
9227
677052f2
SDJ
92282019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9229
a1726c38 9230 PR breakpoints/24541
677052f2
SDJ
9231 * stap-probe.c (stap_parse_register_operand): Make "regname" an
9232 "std::string", simplifying the algorithm.
9233
f3da9116
SDJ
92342019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9235
9236 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
9237 (stap_static_probe_ops::get_probes): Likewise.
9238
f1bb75ab
SDJ
92392019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9240
9241 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
9242 '-')" and "else if".
9243 (stap_parse_single_operand): Join checks for
9244 "gdbarch_stap_parse_special_token_p" and
9245 "gdbarch_stap_parse_special_token" in the same "if" statement.
9246 Invert check when verifying for operation on register
9247 displacement.
9248
3ca58cde
SDJ
92492019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9250
9251 * stap-probe.c (stap_get_opcode): Update comment.
9252 (stap_get_expected_argument_type): Likewise.
9253 (handle_stap_probe): Likewise.
9254
af2d9bee
SDJ
92552019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9256
9257 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
9258 return type to 'bool'. Adjust comment. Use 'bool' when
9259 appropriate.
9260 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9261 * stap-probe.c (stap_parse_argument_1): Likewise.
9262 (stap_is_operator): Likewise.
9263 (stap_is_generic_prefix): Likewise.
9264 (stap_is_register_prefix): Likewise.
9265 (stap_is_register_indirection_prefix): Likewise.
9266 (stap_is_integer_prefix): Likewise.
9267 (stap_generic_check_suffix): Likewise.
9268 (stap_check_integer_suffix): Likewise.
9269 (stap_check_register_suffix): Likewise.
9270 (stap_check_register_indirection_suffix): Likewise.
9271 (stap_parse_register_operand): Likewise.
9272 (stap_parse_single_operand): Likewise.
9273 (stap_parse_argument_1): Likewise.
9274 (stap_probe::get_argument_count): Likewise.
9275 (stap_is_operator): Likewise.
9276
61c9c421
TT
92772019-05-16 Tom Tromey <tromey@adacore.com>
9278
9279 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
9280 keyword to foreach.
9281
9ddc1af1
SM
92822019-05-15 Simon Marchi <simon.marchi@efficios.com>
9283
9284 * linux-thread-db.c (try_thread_db_load_1): Change return type
9285 to bool.
9286 (try_thread_db_load): Likewise.
9287 (try_thread_db_load_from_pdir_1): Likewise.
9288 (try_thread_db_load_from_pdir): Likewise.
9289 (try_thread_db_load_from_sdir): Likewise.
9290 (try_thread_db_load_from_dir): Likewise.
9291 (thread_db_load_search): Likewise.
9292 (has_libpthread): Likewise.
9293 (thread_db_load): Likewise.
9294
7bede828
SDJ
92952019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
9296
9297 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
9298 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
9299 NULL, and complain/return if that's the case.
9300
c5358db4
JD
93012019-05-15 John Darrington <john@darrington.wattle.id.au>
9302
9303 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
9304 (advance, posn, abstract_read_memory): New functions.
9305 [struct mem_read_abstraction]: New struct.
9306 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
9307
c408a94f
TT
93082019-05-14 Tom Tromey <tromey@adacore.com>
9309
9310 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
9311 value is not lval_memory.
9312
e7bd7fba
TT
93132019-05-14 Tom Tromey <tromey@adacore.com>
9314
9315 * solib.c (info_sharedlibrary_command): Style the file name.
9316
a6d0f249
AH
93172019-05-14 Alan Hayward <alan.hayward@arm.com>
9318
9319 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
9320 (aarch64_vnv_type): Likewise.
9321 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
9322 * common/tdesc.c: Likewise.
9323 * common/tdesc.h (enum tdesc_type_kind): Likewise.
9324 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
9325 * features/aarch64-fpu.xml: Add ieee half view.
9326 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
9327 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
9328 * gdbtypes.h (struct builtin_type): Likewise.
9329 (struct objfile_type): Likewise.
9330
66b8bb74
SM
93312019-05-12 Paul Naert <paul.naert@polymtl.ca>
9332
9333 * language.c (language_sniff_from_mangled_name): Fix "langauge"
9334 typo.
9335 * location.h (string_to_event_location): Likewise.
9336
21c219fd
JB
93372019-05-11 Joel Brobecker <brobecker@adacore.com>
9338
9339 GDB 8.3 released.
9340
13674803
SM
93412019-05-10 Simon Marchi <simon.marchi@efficios.com>
9342
9343 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
9344 New variable declaration.
9345 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
9346 New variable.
9347 (print_one_breakpoint): Use ui_out::test_flags and new global
9348 variable to compute use_fixed_output.
9349 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
9350 Remove.
9351 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
9352 (mi_multi_location_breakpoint_output_fixed): Remove.
9353 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
9354 new variable.
9355 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
9356 fix_multi_location_breakpoint_output flag if version >= 3.
9357 * ui-out.h (enum ui_out_flag)
9358 <fix_multi_location_breakpoint_output>: New enumerator.
9359
a9eac7f9
SM
93602019-05-10 Simon Marchi <simon.marchi@efficios.com>
9361
9362 * contrib/cc-with-tweaks.sh: Validate dwz's work.
9363
71bed2db
TT
93642019-05-10 Tom Tromey <tromey@adacore.com>
9365
9366 * ada-lang.c (catch_ada_completer): New function.
9367 (_initialize_ada_language): Use it.
9368
24c54127
TT
93692019-05-10 Tom Tromey <tromey@adacore.com>
9370
9371 * thread.c (print_thread_info): Make "requested_threads" const.
9372 * gdbthread.h (print_thread_info): Make "requested_threads"
9373 const.
9374 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
9375 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
9376
7a102139
TT
93772019-05-08 Tom Tromey <tom@tromey.com>
9378
9379 * gdbtypes.c (objfile_type_data): Change type.
9380 (objfile_type, _initialize_gdbtypes): Update.
9381
924d79e2
TT
93822019-05-08 Tom Tromey <tom@tromey.com>
9383
9384 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
9385 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
9386 (_initialize_dwarf2_frame): Update.
9387
4c58e337
TT
93882019-05-08 Tom Tromey <tom@tromey.com>
9389
9390 * objc-lang.c (objc_objfile_data): Change type.
9391 (find_methods): Update.
9392 (_initialize_objc_lang): Remove.
9393
d772d2ab
TT
93942019-05-08 Tom Tromey <tom@tromey.com>
9395
9396 * stabsread.c (rs6000_builtin_type_data): Change type.
9397 (rs6000_builtin_type, _initialize_stabsread): Update.
9398
d11d83f4
TT
93992019-05-08 Tom Tromey <tom@tromey.com>
9400
9401 * mips-tdep.c (mips_pdr_data): Remove.
9402 (_initialize_mips_tdep): Update.
9403
9a73f0ad
TT
94042019-05-08 Tom Tromey <tom@tromey.com>
9405
9406 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
9407 (hppa_init_objfile_priv_data, read_unwind_info)
9408 (find_unwind_entry, _initialize_hppa_tdep): Update.
9409
8127a2fa
TT
94102019-05-08 Tom Tromey <tom@tromey.com>
9411
9412 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
9413 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
9414 on obstack.
9415 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
9416
91d3055d
TT
94172019-05-08 Tom Tromey <tom@tromey.com>
9418
9419 * mdebugread.c (basic_type_data): Change type.
9420 (basic_type, _initialize_mdebugread): Update.
9421
31930bd3
TT
94222019-05-08 Tom Tromey <tom@tromey.com>
9423
9424 * common/gdb_unique_ptr.h (struct noop_deleter): New.
9425
bdb3ed9e
TT
94262019-05-08 Tom Tromey <tom@tromey.com>
9427
9428 * nto-tdep.c (nto_inferior_data_reg): Change type.
9429 (nto_inferior_data): Update.
9430 (nto_inferior_data_cleanup, nto_new_inferior_data)
9431 (_initialize_nto_tdep): Remove.
9432 * nto-tdep.h (struct nto_inferior_data): Add initializers.
9433
f37b313d
TT
94342019-05-08 Tom Tromey <tom@tromey.com>
9435
9436 * ada-lang.c (struct ada_inferior_data): Add initializers.
9437 (ada_inferior_data): Change type.
9438 (ada_inferior_data_cleanup): Remove.
9439 (get_ada_inferior_data, ada_inferior_exit)
9440 (struct ada_pspace_data): Add initializers, destructor.
9441 (ada_pspace_data_handle): Change type.
9442 (get_ada_pspace_data): Update.
9443 (ada_pspace_data_cleanup): Remove.
9444
24699405
TT
94452019-05-08 Tom Tromey <tom@tromey.com>
9446
9447 * coffread.c (struct coff_symfile_info): Add initializers.
9448 (coff_objfile_data_key): Move lower. Change type.
9449 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
9450 Update.
9451 (coff_free_info): Remove.
9452
d4e05d2f
TT
94532019-05-08 Tom Tromey <tom@tromey.com>
9454
9455 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
9456 (fbsd_pspace_data_handle): Move lower. Change type.
9457 (get_fbsd_pspace_data): Update.
9458 (fbsd_pspace_data_cleanup): Remove.
9459 (_initialize_fbsd_tdep): Update.
9460
14ef6690
TT
94612019-05-08 Tom Tromey <tom@tromey.com>
9462
9463 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
9464 (get_ada_tasks_pspace_data): Update.
9465 (ada_tasks_pspace_data_cleanup): Remove.
9466 (_initialize_tasks): Update.
9467 (ada_tasks_inferior_data_handle): Change type.
9468 (get_ada_tasks_inferior_data): Update.
9469 (ada_tasks_inferior_data_cleanup): Remove.
9470 (struct ada_tasks_pspace_data): Add initializers.
9471
814cf43a
TT
94722019-05-08 Tom Tromey <tom@tromey.com>
9473
9474 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
9475 * symfile-debug.c (debug_sym_get_probes): Change type.
9476 * stap-probe.c (handle_stap_probe):
9477 (stap_static_probe_ops::get_probes): Change type.
9478 * probe.h (class static_probe_ops) <get_probes>: Change type.
9479 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
9480 (parse_probes_in_pspace): Update.
9481 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
9482 Update.
9483 (any_static_probe_ops::get_probes): Change type.
9484 * elfread.c (elfread_data): New typedef.
9485 (probe_key): Change type.
9486 (elf_get_probes): Likewise. Update.
9487 (probe_key_free): Remove.
9488 (_initialize_elfread): Update.
9489 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
9490 Change type.
9491 (dtrace_process_dof_probe, dtrace_process_dof)
9492 (dtrace_static_probe_ops::get_probe): Change type.
9493
02dc647e
TT
94942019-05-08 Tom Tromey <tom@tromey.com>
9495
9496 * xcoffread.c (struct xcoff_symfile_info): Rename from
9497 coff_symfile_info. Add initializers.
9498 (xcoff_objfile_data_key): Move lower. Change type.
9499 (XCOFF_DATA): Rewrite.
9500 (xcoff_free_info): Remove.
9501 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
9502 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
9503 (xcoff_initial_scan): Update.
9504
09232438
TT
95052019-05-08 Tom Tromey <tom@tromey.com>
9506
9507 * solib-svr4.c (struct svr4_info): Add initializers and
9508 destructor.
9509 <probes_table>: Now an htab_up.
9510 (solib_svr4_pspace_data): Change type.
9511 (free_probes_table): Simplify.
9512 (~svr4_info): Rename from svr4_pspace_data_cleanup.
9513 (get_svr4_info, probes_table_htab_remove_objfile_probes)
9514 (probes_table_remove_objfile_probes, register_solib_event_probe)
9515 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
9516 (_initialize_svr4_solib): Update.
9517
7b4a314f
TT
95182019-05-08 Tom Tromey <tom@tromey.com>
9519
9520 * remote.c (remote_pspace_data): Change type.
9521 (remote_pspace_data_cleanup): Remove.
9522 (get_remote_exec_file, set_pspace_remote_exec_file)
9523 (_initialize_remote): Update.
9524
51d3063a
TT
95252019-05-08 Tom Tromey <tom@tromey.com>
9526
9527 * breakpoint.c (breakpoint_objfile_key): Change type.
9528 (get_breakpoint_objfile_data): Update.
9529 (free_breakpoint_objfile_data): Remove.
9530 (_initialize_breakpoint): Update.
9531
89fb8848
TT
95322019-05-08 Tom Tromey <tom@tromey.com>
9533
9534 * linux-tdep.c (struct linux_info): Add initializers.
9535 (linux_inferior_data): Move. Change type.
9536 (invalidate_linux_cache_inf): Update.
9537 (linux_inferior_data_cleanup): Remove.
9538 (get_linux_inferior_data, _initialize_linux_tdep): Update.
9539
e9b89e2d
TT
95402019-05-08 Tom Tromey <tom@tromey.com>
9541
9542 * auxv.c (auxv_inferior_data): Move. Change type.
9543 (auxv_inferior_data_cleanup): Remove.
9544 (invalidate_auxv_cache_inf): Rewrite.
9545 (get_auxv_inferior_data, _initialize_auxv): Update.
9546
8c42777c
TT
95472019-05-08 Tom Tromey <tom@tromey.com>
9548
9549 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
9550 (symfile_debug_objfile_data_key): Change type.
9551 (symfile_debug_installed, debug_qf_has_symbols)
9552 (debug_qf_find_last_source_symtab)
9553 (debug_qf_forget_cached_source_info)
9554 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
9555 (debug_qf_print_stats, debug_qf_dump)
9556 (debug_qf_expand_symtabs_for_function)
9557 (debug_qf_expand_all_symtabs)
9558 (debug_qf_expand_symtabs_with_fullname)
9559 (debug_qf_map_matching_symbols)
9560 (debug_qf_expand_symtabs_matching)
9561 (debug_qf_find_pc_sect_compunit_symtab)
9562 (debug_qf_map_symbol_filenames)
9563 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
9564 (debug_sym_new_init, debug_sym_init, debug_sym_read)
9565 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
9566 (debug_sym_read_linetable, debug_sym_relocate): Update.
9567 (symfile_debug_free_objfile): Remove.
9568 (install_symfile_debug_logging, _initialize_symfile_debug):
9569 Update.
9570
5bfd760d
TT
95712019-05-08 Tom Tromey <tom@tromey.com>
9572
9573 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
9574 allocate_on_obstack.
9575 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
9576 (get_dwarf2_per_objfile): Update.
9577 (set_dwarf2_per_objfile): Remove.
9578 (dwarf2_has_info, dwarf2_get_section_info): Update.
9579 (dwarf2_free_objfile): Remove.
9580 (_initialize_dwarf2_read): Update.
9581
e85e19b4
TT
95822019-05-08 Tom Tromey <tom@tromey.com>
9583
9584 * auto-load.c (struct auto_load_pspace_info): Add destructor and
9585 initializers.
9586 <unsupported_script_warning_printed,
9587 script_not_found_warning_printed>: Now bool.
9588 (auto_load_pspace_data): Change type.
9589 (~auto_load_pspace_info): Rename from
9590 auto_load_pspace_data_cleanup.
9591 (get_auto_load_pspace_data, init_loaded_scripts_info)
9592 (clear_section_scripts, maybe_print_unsupported_script_warning)
9593 (maybe_print_script_not_found_warning, _initialize_auto_load):
9594 Update.
9595
f6aa7436
TT
95962019-05-08 Tom Tromey <tom@tromey.com>
9597
9598 * objfiles.c (objfile_pspace_info): Add destructor and
9599 initializers.
9600 (objfiles_pspace_data): Change type.
9601 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
9602 (get_objfile_pspace_data): Update.
9603 (objfiles_bfd_data): Change type.
9604 (get_objfile_bfd_data): Update.
9605 (objfile_bfd_data_free, _initialize_objfiles): Remove.
9606
6ae614f6
TT
96072019-05-08 Tom Tromey <tom@tromey.com>
9608
9609 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
9610 Change type.
9611 (get_catch_syscall_inferior_data): Update.
9612 (catch_syscall_inferior_data_cleanup): Remove.
9613 (_initialize_break_catch_syscall): Update.
9614
6509b8eb
TT
96152019-05-08 Tom Tromey <tom@tromey.com>
9616
9617 * inflow.c (struct terminal_info): Add destructor and
9618 initializers.
9619 (inflow_inferior_data): Change type.
9620 (~terminal_info): Rename from inflow_inferior_data_cleanup.
9621 (get_inflow_inferior_data, inflow_inferior_exit)
9622 (swap_terminal_info, _initialize_inflow): Update.
9623
35632941
TT
96242019-05-08 Tom Tromey <tom@tromey.com>
9625
9626 * target-dcache.c (target_dcache_cleanup): Remove.
9627 (target_dcache_aspace_key): Change type.
9628 (target_dcache_init_p, target_dcache_invalidate)
9629 (target_dcache_get, target_dcache_get_or_init)
9630 (_initialize_target_dcache): Update.
9631 * dcache.h (struct dcache_deleter): New.
9632
3017b94d
TT
96332019-05-08 Tom Tromey <tom@tromey.com>
9634
9635 * symtab.c (struct symbol_cache): Add destructor and
9636 initializers.
9637 (symbol_cache_key): Move. Change type.
9638 (make_symbol_cache, free_symbol_cache): Remove.
9639 (get_symbol_cache): Update.
9640 (symbol_cache_cleanup): Remove.
9641 (ALL_PSPACES, symbol_cache_flush)
9642 (maintenance_print_symbol_cache)
9643 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
9644 Update.
9645
a32ad8c5
TT
96462019-05-08 Tom Tromey <tom@tromey.com>
9647
9648 * symtab.c (struct main_info): Add destructor and initializers.
9649 (main_progspace_key): Move. Change type.
9650 (get_main_info): Update.
9651 (main_info_cleanup): Remove.
9652 (_initialize_symtab): Update.
9653
5f6e90a0
TT
96542019-05-08 Tom Tromey <tom@tromey.com>
9655
9656 * registry.h (DECLARE_REGISTRY): Define the _key class.
9657
1bd0c6e4
AB
96582019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
9659
9660 * NEWS: Merge two 'New commands' sections.
9661
2228ef77
XR
96622019-05-08 Joel Brobecker <brobecker@adacore.com>
9663
9664 * ada-valprint.c (ada_val_print_gnat_array): Remove language
9665 parameter and use Ada language definition instead.
9666 (ada_val_print_ptr): Remove unused language parameter.
9667 (ada_val_print_num): Remove language parameter and use Ada language
9668 definition instead.
9669 (ada_val_print_enum, ada_val_print_flt): Remove unused language
9670 parameter.
9671 (ada_val_print_struct_union, ada_val_print_ref): Remove language
9672 parameter and use Ada language definition instead.
9673 (ada_val_print_1): Update all ada_val_print_xxx calls.
9674 Remove language parameter.
9675 (ada_val_print): Update ada_val_print_1 call.
9676
60fcc1c3
TT
96772019-05-08 Tom Tromey <tromey@adacore.com>
9678
9679 * remote.c (remote_hw_watchpoint_limit)
9680 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
9681 Now static.
9682
ed2b7c17
TT
96832019-05-08 Tom Tromey <tromey@adacore.com>
9684
9685 * maint.c (_initialize_maint_cmds): Move initialization code to
9686 remote.c.
9687 (watchdog, show_watchdog): Move to remote.c.
9688 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
9689 "watchdog" static.
9690 (_initialize_remote): Move initialization code from maint.c.
9691 * defs.h (watchdog): Don't declare.
9692
b0be6c91
TT
96932019-05-08 Tom Tromey <tromey@adacore.com>
9694
9695 * tui/tui-interp.c: Include main.h.
9696 * interps.c: Include main.h.
9697 * main.h (interpreter_p): Declare.
9698 * defs.h (interpreter_p): Don't declare.
9699
587ee17b
TT
97002019-05-08 Tom Tromey <tromey@adacore.com>
9701
9702 * dwarf2loc.c: Include dwarf2read.h.
9703 * defs.h (read_unsigned_leb128): Don't declare.
9704 * dwarf2read.h (read_unsigned_leb128): Declare.
9705
ca1df239
TT
97062019-05-08 Tom Tromey <tromey@adacore.com>
9707
9708 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
9709 method.
9710
99f20f08
TT
97112019-05-08 Tom Tromey <tromey@adacore.com>
9712
9713 * utils.c (fputs_maybe_filtered): Reset style after paging, even
9714 when no wrap column is set.
9715
80e55b13
TT
97162019-05-08 Tom Tromey <tromey@adacore.com>
9717
9718 * c-lang.c (c_get_string): Handle non-C-style arrays.
9719
9d3421af
TT
97202019-05-08 Tom Tromey <tromey@adacore.com>
9721
9722 * typeprint.c (print_offset_data::update): Print the bit offset,
9723 not the number of bits remaining.
9724
844333e2
TT
97252019-05-08 Tom Tromey <tromey@adacore.com>
9726
9727 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
9728 padding at end of comment.
9729
988915ee
TT
97302019-05-08 Tom Tromey <tromey@adacore.com>
9731
9732 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
9733 Compare main types.
9734
26bfd823
TT
97352019-05-06 Tom Tromey <tom@tromey.com>
9736
9737 * common/scoped_mmap.c: Include common-defs.h.
9738 * common/scoped_mmap.h: Don't include config.h.
9739
89055eaa
TT
97402019-05-04 Tom Tromey <tom@tromey.com>
9741
9742 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
9743 (struct aarch64_call_info): Add initializers.
9744 <si>: Now a std::vector.
9745 (pass_on_stack, aarch64_push_dummy_call): Update.
9746
5da01df5
TT
97472019-05-04 Simon Marchi <simon.marchi@efficios.com>
9748 Tom Tromey <tom@tromey.com>
9749
9750 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
9751 (ppc_threads): Now a std::vector. Now static.
9752 (hwdebug_find_thread_points_by_tid)
9753 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
9754 Update.
9755
fbdf05a1
TT
97562019-05-04 Tom Tromey <tom@tromey.com>
9757
9758 * arc-tdep.c (arc_tdesc_init): Return bool.
9759
06d16ec9
TT
97602019-05-04 Tom Tromey <tom@tromey.com>
9761
9762 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
9763 Use gdb_assert_not_reached.
9764
9c056022
TT
97652019-05-04 Tom Tromey <tom@tromey.com>
9766
9767 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
9768 "false".
9769
fa9c2a59
TT
97702019-05-04 Tom Tromey <tom@tromey.com>
9771
9772 * arc-tdep.c (arc_tdesc_init): Use bool.
9773
e2eb806a
TT
97742019-05-04 Tom Tromey <tom@tromey.com>
9775
9776 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
9777
6fe87677
TT
97782019-05-04 Tom Tromey <tom@tromey.com>
9779
9780 * cli/cli-cmds.c (valid_command_p): Return bool.
9781
7f008c9e
TT
97822019-05-04 Tom Tromey <tom@tromey.com>
9783
9784 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
9785 * command.h (valid_user_defined_cmd_name_p): Channge return type.
9786
b6484282
RT
97872019-05-04 Raul Tambre <raul@tambre.ee>
9788
9789 * python/lib/gdb/prompt.py (_ExtendedPrompt)
9790 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
9791 operator for comparison.
9792
af97b416
TT
97932019-05-04 Tom Tromey <tom@tromey.com>
9794
9795 * psymtab.c (psymbol_name_matches, match_partial_symbol)
9796 (lookup_partial_symbol, print_partial_symbols)
9797 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
9798 (psymbol_compare): Update.
9799 (add_psymbol_to_bcache): Clear the entire psymbol.
9800 (maintenance_check_psymtabs): Update.
9801 * psympriv.h (struct partial_symbol): Don't derive from
9802 general_symbol_info.
9803 <obj_section, unrelocated_address, address,
9804 set_unrelocated_address>: Update.
9805 <ginfo>: New member.
9806 * dwarf-index-write.c (write_psymbols, debug_names::insert)
9807 (debug_names::write_psymbols): Update.
9808
9d6d4be8
TV
98092019-05-04 Tom de Vries <tdevries@suse.de>
9810
9811 * contrib/cc-with-tweaks.sh: Support -n arg.
9812
66452beb
PW
98132019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9814
9815 * corelow.c (core_target::detach): Ensure frame cache and
9816 register caches are cleared.
9817 inferior.c (exit_inferior_1): Likewise.
9818
bde09ab7
TT
98192019-05-03 Sandra Loosemore <sandra@codesourcery.com>
9820 Tom Tromey <tom@tromey.com>
9821
9822 * dictionary.c (collate_pending_symbols_by_language): Remove
9823 "struct" from foreach.
9824 * symtab.c (lookup_global_symbol_from_objfile)
9825 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
9826 foreach.
9827 * ser-tcp.c (net_open): Remove "struct" from foreach.
9828 * objfiles.c (objfile_relocate, objfile_rebase)
9829 (objfile_has_symbols): Remove "struct" from foreach.
9830 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
9831 from foreach.
9832 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
9833 foreach.
9834 * darwin-nat.c (thread_info_from_private_thread_info): Remove
9835 "struct" from foreach.
9836 * ada-lang.c (create_excep_cond_exprs)
9837 (ada_exception_catchpoint_cond_string): Remove "struct" from
9838 foreach.
9839
222a8d25
TT
98402019-05-03 Tom Tromey <tromey@adacore.com>
9841
9842 * ada-exp.y (convert_char_literal): Check suffix of each
9843 enumerator.
9844
fcd60b84
DP
98452019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
9846
9847 PR ada/21406:
9848 * ada-exp.y (yywrap): Don't define.
9849 * ada-lex.l (%option): Add noyywrap
9850 (yywrap): Remove.
9851
5f2459c2
EZ
98522019-05-03 Eli Zaretskii <eliz@gnu.org>
9853
353ea2d1
EZ
9854 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
9855 _WIN32_WINNT to the XP level, unless already defined to a higher
9856 level.
9857
9858 * unittests/parse-connection-spec-selftests.c:
9859 * ser-tcp.c:
9860 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
9861 override.
9862
5f2459c2
EZ
9863 * symfile.c (find_separate_debug_file): Remove colon from the
9864 drive spec of DOS/Windows file names of the target, so that the
9865 file name produced from DEBUGDIR and the target's directory will
9866 be valid on DOS/Windows systems.
9867
80062eb9
AB
98682019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
9869
9870 * rust-lang.c (val_print_struct): Handle printing structures
9871 containing strings.
9872
b8c05e85
TT
98732019-05-02 Tom Tromey <tromey@adacore.com>
9874
9875 * valarith.c (_initialize_valarith): Remove.
9876
4504bbde
TT
98772019-05-01 Tom Tromey <tromey@adacore.com>
9878
9879 * ada-lang.c (ada_value_primitive_field): Treat more fields as
9880 bitfields.
9881
d48e62f4
TT
98822019-05-01 Tom Tromey <tromey@adacore.com>
9883
9884 * ada-lang.c (ada_value_assign): Correctly compute starting offset
9885 for big-endian copies.
9886
15f18d14
AT
98872019-04-30 Ali Tamur <tamur@google.com>
9888 * gdb/dwarf2read.c (read_3_bytes): New declaration.
9889 (read_attribute_value): Added DW_FORM_strx1-4 cases.
9890 (read_3_bytes): New function.
9891
ab4ee614
JB
98922019-04-30 Joel Brobecker <brobecker@adacore.com>
9893
9894 * windows-nat.c (main_thread_id): Delete.
9895 (handle_output_debug_string): Replace main_thread_id by
9896 current_event.dwThreadId.
9897 (fake_create_process): Likewise.
9898 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
9899 Do not set main_thread_id.
9900 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
9901 current_event.dwThreadId.
9902 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
9903
8ed5b76e
JB
99042019-04-30 Joel Brobecker <brobecker@adacore.com>
9905
9906 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
9907 Use current_event.dwThreadId instead of main_thread_id.
9908
2ff0a947
TT
99092019-04-30 Tom Tromey <tromey@adacore.com>
9910
9911 * ada-lang.c (ada_lookup_simple_minsyms): New function.
9912 (create_excep_cond_exprs): Iterate over program spaces.
9913 (ada_exception_catchpoint_cond_string): Examine all minimal
9914 symbols for exception types.
9915
a776957c
TT
99162019-04-30 Tom Tromey <tromey@adacore.com>
9917
9918 PR c++/24470:
9919 * dwarf2read.c (process_structure_scope): Handle case where type
9920 has template parameters but no symbol was created.
9921
bc68014d
AB
99222019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9923 Chris January <chris.january@arm.com>
9924
9925 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
9926 qualifier.
9927 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
9928
f1fdc960
AB
99292019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9930
9931 * f-typeprint.c (f_print_type): Update rules for printing
9932 whitespace.
9933 (f_type_print_varspec_suffix): Likewise.
9934
bf7a4de1
AB
99352019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9936 Chris January <chris.january@arm.com>
9937
9938 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
9939 function arguments.
9940
bbe75b9d
AB
99412019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9942
9943 * f-lang.c (build_fortran_types): Change name of void type to
9944 lower case.
9945 * f-typeprint.c (f_type_print_base): Print the name of the void
9946 type, rather than a fixed string.
9947 * f-valprint.c (f_decorations): Use lower case void string.
9948
1db455a7
AB
99492019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9950 Chris January <chris.january@arm.com>
9951
9952 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
9953 types for Fortran.
9954
b6d03bb2
AB
99552019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9956 Chris January <chris.january@arm.com>
9957 David Lecomber <david.lecomber@arm.com>
9958
9959 * f-exp.y (BINOP_INTRINSIC): New token.
9960 (exp): New parser rule handling BINOP_INTRINSIC.
9961 (f77_keywords): Add new builtin procedures.
9962 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
9963 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9964 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
9965 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9966 (print_unop_subexp_f): New function.
9967 (print_binop_subexp_f): New function.
9968 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
9969 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9970 (dump_subexp_body_f): Likewise.
9971 (operator_check_f): Likewise.
9972 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
9973 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
9974
83228e93
AB
99752019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9976
9977 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
9978 UNOP_KIND.
9979 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
9980 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
9981 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
9982 (operator_length_f): New fuction.
9983 (print_subexp_f): New function.
9984 (op_name_f): New function.
9985 (dump_subexp_body_f): New function.
9986 (operator_check_f): New function.
9987 (exp_descriptor_f): Replace standard expression handling functions
9988 with new functions.
9989 * gdb/fortran-operator.def: New file.
9990 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
9991 * gdb/std-operator.def: Remove UNOP_KIND.
9992
6fdcd7cc
AB
99932019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9994
9995 * std-operator.def: Remove unbalanced, stray double quote
9996 character.
9997
2e62ab40
AB
99982019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9999 Chris January <chris.january@arm.com>
10000 Daniel Everett <daniel.everett@arm.com>
10001 Nick Forrington <nick.forrington@arm.com>
10002 Richard Bunt <richard.bunt@arm.com>
10003
10004 * cp-valprint.c (cp_print_value_fields): Allow an additional level
10005 of depth when printing anonymous structs or unions.
10006 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
10007 Don't print either the top-level value, or the children if the
10008 max-depth is exceeded.
10009 (ppscm_print_children): When printing the key of a map, allow one
10010 extra level of depth.
10011 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
10012 print either the top-level value, or the children if the max-depth
10013 is exceeded.
10014 (print_children): When printing the key of a map, allow one extra
10015 level of depth.
10016 * python/py-value.c (valpy_format_string): Add max_depth keyword.
10017 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
10018 (user_print_options): Initialise max_depth field.
10019 (val_print_scalar_or_string_type_p): New function.
10020 (val_print): Check to see if the max depth has been reached.
10021 (val_print_check_max_depth): Define new function.
10022 (show_print_max_depth): New function.
10023 (_initialize_valprint): Add 'print max-depth' option.
10024 * valprint.h (struct value_print_options) <max_depth>: New field.
10025 (val_print_check_max_depth): Declare new function.
10026 * NEWS: Document new feature.
10027
4be290b2
AB
100282019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10029
10030 * ada-lang.c (ada_language_defn): Initialise new field.
10031 * c-lang.c (c_is_string_type_p): New function.
10032 (c_language_defn): Initialise new field.
10033 (cplus_language_defn): Initialise new field.
10034 (asm_language_defn): Initialise new field.
10035 (minimal_language_defn): Initialise new field.
10036 * c-lang.h (c_is_string_type_p): Declare new function.
10037 * d-lang.c (d_language_defn): Initialise new field.
10038 * f-lang.c (f_is_string_type_p): New function.
10039 (f_language_defn): Initialise new field.
10040 * go-lang.c (go_is_string_type_p): New function.
10041 (go_language_defn): Initialise new field.
10042 * language.c (default_is_string_type_p): New function.
10043 (unknown_language_defn): Initialise new field.
10044 (auto_language_defn): Initialise new field.
10045 * language.h (struct language_defn) <la_is_string_type_p>: New
10046 member variable.
10047 (default_is_string_type_p): Declare new function.
10048 * m2-lang.c (m2_language_defn): Initialise new field.
10049 * objc-lang.c (objc_language_defn): Initialise new field.
10050 * opencl-lang.c (opencl_language_defn): Initialise new field.
10051 * p-lang.c (pascal_is_string_type_p): New function.
10052 (pascal_language_defn): Initialise new field.
10053 * rust-lang.c (rust_is_string_type_p): New function.
10054 (rust_language_defn): Initialise new field.
10055
721b08c6
AB
100562019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10057
10058 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
10059 New field.
10060 * ada-lang.c (ada_language_defn): Initialise new field.
10061 * c-lang.c (c_language_defn): Likewise.
10062 (cplus_language_defn): Likewise.
10063 (asm_language_defn): Likewise.
10064 (minimal_language_defn): Likewise.
10065 * d-lang.c (d_language_defn): Likewise.
10066 * f-lang.c (f_language_defn): Likewise.
10067 * go-lang.c (go_language_defn): Likewise.
10068 * language.c (unknown_language_defn): Likewise.
10069 (auto_language_defn): Likewise.
10070 * m2-lang.c (m2_language_defn): Likewise.
10071 * objc-lang.c (objc_language_defn): Likewise.
10072 * opencl-lang.c (opencl_language_defn): Likewise.
10073 * p-lang.c (pascal_language_defn): Likewise.
10074 * rust-lang.c (rust_language_defn): Likewise.
10075
fc913e53
AB
100762019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10077
10078 * ada-lang.c (ada_is_character_type): Change return type to bool.
10079 (ada_is_string_type): Likewise.
10080 * ada-lang.h (ada_is_character_type): Update declaration
10081 (ada_is_string_type): Likewise.
10082
fa731fa0
PW
100832019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10084
10085 Support style in 'frame|thread apply'
10086
10087 * gdbcmd.h (execute_command_to_string): New term_out parameter.
10088 * record.c (record_start, record_stop): Update callers of
10089 execute_command_to_string with false.
10090 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
10091 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
10092 methods.
10093 (class string_file): New constructor with term_out parameter.
10094 Override methods term_out and can_emit_style_escape. New member
10095 term_out.
10096 (class stdio_file): Override can_emit_style_escape.
10097 (class tee_file): Override term_out and can_emit_style_escape.
10098 * utils.h (can_emit_style_escape): Remove.
10099 * utils.c (can_emit_style_escape): Likewise.
10100 Update all callers of can_emit_style_escape (SOMESTREAM) to
10101 SOMESTREAM->can_emit_style_escape.
10102 * source-cache.c (source_cache::get_source_lines): Likewise.
10103 * stack.c (frame_apply_command_count): Call execute_command_to_string
10104 passing the term_out characteristic of the current gdb_stdout.
10105 * thread.c (thr_try_catch_cmd): Likewise.
10106 * top.c (execute_command_to_string): pass term_out parameter
10107 to construct the string_file for the command output.
10108 * ui-file.c (term_cli_styling): New function (most code moved
10109 from utils.c can_emit_style_escape).
10110 (string_file::string_file, string_file::can_emit_style_escape,
10111 stdio_file::can_emit_style_escape, tee_file::term_out,
10112 tee_file::can_emit_style_escape): New functions.
10113
136afab8
PW
101142019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10115
10116 * NEWS: Mention the new set|show may-call-functions.
10117 * infcall.c (may_call_functions_p): New variable.
10118 (show_may_call_functions_p): New function.
10119 (call_function_by_hand_dummy): Throws an error if not
10120 may-call-functions.
10121 (_initialize_infcall): Call add_setshow_boolean_cmd for
10122 may-call-functions.
10123
725cbb63
KS
101242019-04-25 Keith Seitz <keiths@redhat.com>
10125
10126 PR c++/24367
10127 * cp-support.c (inspect_type): Don't attempt substitutions
10128 of symbol with the same name.
10129
3d1cbb78
TT
101302019-04-25 Tom Tromey <tromey@adacore.com>
10131
10132 PR gdb/24475:
10133 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
10134 static.
10135
94aeb44b
TT
101362019-04-25 Tom Tromey <tromey@adacore.com>
10137
10138 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
10139 rvalue reference.
10140 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
10141 (gdb_xml_parser::parse): Use std::move.
10142 * python/python-internal.h (gdbpy_convert_exception): Take a const
10143 reference.
10144 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
10145 std::move.
10146 * python/py-utils.c (gdbpy_convert_exception): Take a const
10147 reference.
10148 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
10149 Use std::move.
10150 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
10151 Use std::move.
10152 * mi/mi-main.c (mi_print_exception): Take a const reference.
10153 * main.c (handle_command_errors): Take a const reference.
10154 * linespec.c (parse_linespec): Use std::move.
10155 * infcall.c (run_inferior_call): Use std::move.
10156 (call_function_by_hand_dummy): Use std::move.
10157 * exec.c (try_open_exec_file): Use std::move.
10158 * exceptions.h (exception_print, exception_fprintf)
10159 (exception_print_same): Update.
10160 * exceptions.c (print_exception, exception_print)
10161 (exception_fprintf, exception_print_same): Change parameters to
10162 const reference.
10163 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
10164 * common/new-op.c: Use std::move.
10165 * common/common-exceptions.h (struct gdb_exception): Add move
10166 constructor.
10167 (struct gdb_exception_error, struct gdb_exception_quit, struct
10168 gdb_quit_bad_alloc): Change constructor to move constructor.
10169 (throw_exception): Change parameter to rvalue reference.
10170 * common/common-exceptions.c (throw_exception): Take rvalue
10171 reference.
10172 * cli/cli-interp.c (safe_execute_command): Use std::move.
10173 * breakpoint.c (insert_bp_location, location_to_sals): Use
10174 std::move.
10175
680d7fd5
TT
101762019-04-25 Tom Tromey <tromey@adacore.com>
10177
10178 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
10179 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
10180 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
10181 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
10182 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
10183 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
10184 guile/scm-value.c: Use unpack.
10185 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
10186 gdbscm_gdb_exception.
10187 (gdbscm_throw_gdb_exception): Likewise.
10188 (struct gdbscm_gdb_exception): New.
10189 (unpack): New function.
10190 (gdbscm_wrap): Use unpack.
10191
c6fdd8b2
TT
101922019-04-25 Tom Tromey <tromey@adacore.com>
10193
10194 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
10195 (gdb_rl_callback_handler): Use std::move.
10196 * common/common-exceptions.h (struct gdb_exception): Add move
10197 assignment operator.
10198 (throw_exception_sjlj): Change "exception" to const reference.
10199 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
10200 (throw_exception_sjlj): Change "exception" to const reference.
10201
cc06b668
TT
102022019-04-25 Tom Tromey <tromey@adacore.com>
10203
10204 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
10205 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
10206 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
10207 Update.
10208 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
10209 Update.
10210 * mi/mi-interp.c (mi_interp::exec): Update.
10211 * linespec.c (parse_linespec): Update.
10212 * infcall.c (run_inferior_call): Update.
10213 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
10214 * guile/scm-symbol.c (gdbscm_lookup_symbol)
10215 (gdbscm_lookup_global_symbol): Update.
10216 * guile/scm-param.c (gdbscm_parameter_value): Update.
10217 * guile/scm-frame.c (gdbscm_frame_read_register)
10218 (gdbscm_frame_read_var): Update.
10219 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
10220 * exec.c (try_open_exec_file): Update.
10221 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
10222 (gdb_rl_callback_handler): Update.
10223 * common/common-exceptions.h (exception_none): Don't declare.
10224 * common/common-exceptions.c (exception_none): Don't define.
10225 (struct catcher) <exception>: Update.
10226 * cli/cli-interp.c (safe_execute_command): Update.
10227 * breakpoint.c (insert_bp_location, location_to_sals): Update.
10228
cf532bd1
AT
102292019-04-25 Ali Tamur <tamur@google.com>
10230
10231 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
10232 (read_attribute_value): Likewise.
10233 (dwarf2_read_addr_index): Update comment.
10234 (read_str_index): Add DW_FORM_strx.
10235 (dwarf2_string_attr): Likewise.
10236 (dwarf2_const_value_attr): Likewise.
10237 (dump_die_shallow): Likewise.
10238 (dwarf2_fetch_constant_bytes): Likewise.
10239 (skip_form_bytes): Likewise.
10240 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
10241
82433e3e
SDJ
102422019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
10243
10244 PR corefiles/11608
10245 PR corefiles/18187
10246 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
10247 OFFSET. Verify if current mapping contains an ELF header.
10248 (linux_find_memory_regions_full): Adjust call to
10249 dump_mapping_p.
10250
723adb65
SL
102512019-04-25 Sandra Loosemore <sandra@codesourcery.com>
10252 Kang Li <kanglictf@gmail.com>
10253
10254 PR gdb/21600
10255
10256 * dwarf2-frame.c (read_initial_length): Be consistent about using
10257 unsigned representation of length.
10258 (decode_frame_entry_1): Likewise. Check for wraparound of
10259 end pointer as well as buffer overflow.
10260
596179f7
SDJ
102612019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
10262
10263 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
10264 "vq".
10265
a59240a4
TT
102662019-04-24 Tom Tromey <tromey@adacore.com>
10267
10268 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
10269
f872fdbb
AB
102702019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10271
10272 * s12z-tdep.c (s12z_unwind_pc): Delete.
10273 (s12z_unwind_sp): Delete.
10274 (s12z_gdbarch_init): Don't register deleted functions with
10275 gdbarch.
10276
b614e6f3
AB
102772019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10278
10279 * rl78-tdep.c (rl78_unwind_sp): Delete.
10280 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
10281
14faed38
AB
102822019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10283
10284 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
10285 (xstormy16_unwind_pc): Delete.
10286 (xstormy16_dummy_id): Delete.
10287 (xstormy16_gdbarch_init): Don't register deleted functions with
10288 gdbarch.
10289
541aad8a
AB
102902019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10291
10292 * vax-tdep.c (vax_unwind_pc): Delete.
10293 (vax_gdbarch_init): Don't register deleted function with gdbarch.
10294
29222070
AB
102952019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10296
10297 * v850-tdep.c (v850_unwind_sp): Delete.
10298 (v850_unwind_pc): Delete.
10299 (v850_dummy_id): Delete.
10300 (v850_gdbarch_init): Don't register deleted functions with
10301 gdbarch.
10302
0f534d76
AB
103032019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10304
10305 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
10306 (tilegx_unwind_pc): Delete.
10307 (tilegx_unwind_dummy_id): Delete.
10308 (tilegx_gdbarch_init): Don't register deleted functions with
10309 gdbarch.
10310
1ba7b7f9
AB
103112019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10312
10313 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
10314 (tic6x_dummy_id): Delete.
10315 (tic6x_gdbarch_init): Don't register deleted functions with
10316 gdbarch.
10317
d31f262c
AB
103182019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10319
10320 * sparc-tdep.c (sparc_unwind_pc): Delete.
10321 (sparc32_gdbarch_init): Don't register deleted function with
10322 gdbarch.
10323
6d14d64d
AB
103242019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10325
10326 * sh-tdep.c (sh_unwind_sp): Delete.
10327 (sh_unwind_pc): Delete.
10328 (sh_dummy_id): Delete.
10329 (sh_gdbarch_init): Don't register deleted functions with
10330 gdbarch.
10331
a40dde9d
AB
103322019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10333
10334 * score-tdep.c (score_unwind_sp): Delete.
10335 (score_unwind_pc): Delete.
10336 (score_dummy_id): Delete.
10337 (score_gdbarch_init): Don't register deleted functions with
10338 gdbarch.
10339
47c47d69
AB
103402019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10341
10342 * rx-tdep.c (rx_unwind_pc): Delete.
10343 (rx_unwind_sp): Delete.
10344 (rx_dummy_id): Delete.
10345 (rx_gdbarch_init): Don't register deleted functions with
10346 gdbarch. Update comment.
10347
833a4480
AB
103482019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10349
10350 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
10351 (rs6000_dummy_id): Delete.
10352 (rs6000_gdbarch_init): Don't register deleted functions with
10353 gdbarch.
10354
3f2cef49
AB
103552019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10356
10357 * or1k-tdep.c (or1k_dummy_id): Delete.
10358 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
10359
96acf884
AB
103602019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10361
10362 * nios2-tdep.c (nios2_dummy_id): Delete.
10363 (nios2_unwind_sp): Delete.
10364 (nios2_gdbarch_init): Don't register deleted functions with
10365 gdbarch.
10366
ca0ab0aa
AB
103672019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10368
10369 * nds32-tdep.c (nds32_dummy_id): Delete.
10370 (nds32_unwind_pc): Delete.
10371 (nds32_unwind_sp): Delete.
10372 (nds32_gdbarch_init): Don't register deleted functions with
10373 gdbarch.
10374
c8259044
AB
103752019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10376
10377 * msp430-tdep.c (msp430_unwind_pc): Delete.
10378 (msp430_unwind_sp): Delete.
10379 (msp430_dummy_id): Delete.
10380 (msp430_gdbarch_init): Don't register deleted functions with
10381 gdbarch.
10382
27f113c8
AB
103832019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10384
10385 * moxie-tdep.c (moxie_unwind_sp): Delete.
10386 (moxie_unwind_pc): Delete.
10387 (moxie_dummy_id): Delete.
10388 (moxie_gdbarch_init): Don't register deleted functions with
10389 gdbarch.
10390
aee6c3cd
AB
103912019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10392
10393 * mn10300-tdep.c (mn10300_dummy_id): Delete.
10394 (mn10300_unwind_pc): Delete.
10395 (mn10300_unwind_sp): Delete.
10396 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
10397 mn10300_unwind_sp.
10398 (mn10300_frame_unwind_init): Don't register deleted functions with
10399 gdbarch.
10400
8e2b5aea
AB
104012019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10402
10403 * mep-tdep.c (mep_unwind_pc): Delete.
10404 (mep_unwind_sp): Delete.
10405 (mep_dummy_id): Delete.
10406 (mep_gdbarch_init): Don't register deleted functions with
10407 gdbarch.
10408
43cf3ede
AB
104092019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10410
10411 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
10412 (m68hc11_unwind_sp): Delete.
10413 (m68hc11_gdbarch_init): Don't register deleted functions with
10414 gdbarch.
10415
5e79b7bb
AB
104162019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10417
10418 * m32r-tdep.c (m32r_unwind_sp): Delete.
10419 (m32r_unwind_pc): Delete.
10420 (m32r_dummy_id): Delete.
10421 (m32r_gdbarch_init): Don't register deleted functions with
10422 gdbarch.
10423
89b268d8
AB
104242019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10425
10426 * m32c-tdep.c (m32c_unwind_pc): Delete.
10427 (m32c_unwind_sp): Delete.
10428 (m32c_dummy_id): Delete.
10429 (m32c_gdbarch_init): Don't register deleted functions with
10430 gdbarch.
10431
946c28d2
AB
104322019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10433
10434 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
10435 (lm32_unwind_pc): Delete.
10436 (lm32_dummy_id): Delete.
10437 (lm32_gdbarch_init): Don't register deleted functions with
10438 gdbarch.
10439
bf12844a
AB
104402019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10441
10442 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
10443 (iq2000_unwind_pc): Delete.
10444 (iq2000_dummy_id): Delete.
10445 (iq2000_gdbarch_init): Don't register deleted functions with
10446 gdbarch.
10447
ecbc06d2
AB
104482019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10449
10450 * nds32-tdep.c (nds32_type_align): Delete.
10451 (nds32_push_dummy_call): Use type_align instead.
10452
030197b4
AB
104532019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10454
10455 * arm-tdep.c (arm_type_align): Only handle vector override case.
10456 (arm_push_dummy_call): Use type_align.
10457 (arm_gdbarch_init): Register arm_type_align gdbarch function.
10458
b907456c
AB
104592019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10460
10461 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
10462 case.
10463 (pass_on_stack): Use type_align.
10464 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
10465 function.
10466
9e97ba43
TT
104672019-04-23 Tom Tromey <tromey@adacore.com>
10468
10469 * dwarf2read.c (line_header::file_name_at): Remove unused
10470 overload.
10471
6892f601
TV
104722019-04-23 Tom de Vries <tdevries@suse.de>
10473
10474 PR gdb/24438
10475 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
10476 invocation.
10477
336d760d
AT
10478
104792019-03-27 Ali Tamur <tamur@google.com>
10480
10481 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
10482 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
10483 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
10484 (dwarf_expr_context::get_addr_index): Likewise
10485 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
10486 (symbol_needs_eval_context::get_addr_index): Likewise
10487 (disassemble_dwarf_expression): Add DW_OP_addrx
10488 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
10489 (read_cutu_die_from_dwo): Update comment
10490 (skip_one_die): Add DW_FORM_addrx
10491 (read_attribute_value): Likewise
10492 (var_decode_location): Add DW_OP_addrx
10493 (dwarf2_const_value_attr): Add DW_FORM_addrx
10494 (dump_die_shallow): Likewise
10495 (dwarf2_fetch_constant_bytes): Likewise
10496 (decode_locdesc): Add DW_OP_addrx
10497 (skip_form_bytes): Add DW_FORM_addrx
10498
ad9d13f8
AT
104992019-04-22 Ali Tamur <tamur@google.com>
10500
10501 * MAINTAINERS (Write After Approval): Add self.
10502
d70cc3ba
SM
105032019-04-22 Simon Marchi <simon.marchi@efficios.com>
10504
10505 * solib-svr4.c (get_svr4_info): Add pspace parameter.
10506 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
10507 (open_symbol_file_object): Likewise.
10508 (svr4_default_sos): Add info parameter.
10509 (svr4_read_so_list): Likewise.
10510 (svr4_current_sos_direct): Adjust functions calls to pass down
10511 info.
10512 (svr4_current_sos_1): Add info parameter.
10513 (svr4_current_sos): Call get_svr4_info, pass info down to
10514 svr4_current_sos_1.
10515 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
10516 get_svr4_info.
10517 (svr4_in_dynsym_resolve_code): Pass current_program_space to
10518 get_svr4_info.
10519 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
10520 to get_svr4_info.
10521 (probes_table_remove_objfile_probes): Likewise.
10522 (register_solib_event_probe): Add info parameter.
10523 (solist_update_incremental): Pass info parameter down to
10524 svr4_read_so_list.
10525 (disable_probes_interface): Add info parameter.
10526 (svr4_handle_solib_event): Pass current_program_space to
10527 get_svr4_info. Adjust disable_probes_interface cleanup.
10528 (svr4_create_probe_breakpoints): Add info parameter, pass it
10529 down to register_solib_event_probe.
10530 (svr4_create_solib_event_breakpoints): Add info parameter,
10531 pass it down to svr4_create_probe_breakpoints.
10532 (enable_break): Pass info down to
10533 svr4_create_solib_event_breakpoints.
10534 (svr4_solib_create_inferior_hook): Pass current_program_space to
10535 get_svr4_info.
10536 (svr4_clear_solib): Likewise.
10537
7905fc35
PA
105382019-04-22 Pedro Alves <palves@redhat.com>
10539
10540 * solib-svr4.c (svr4_free_objfile_observer): New.
10541 (probe_and_action::objfile): New field.
10542 (probes_table_htab_remove_objfile_probes)
10543 (probes_table_remove_objfile_probes): New functions.
10544 (register_solib_event_probe): Add 'objfile' parameter. Store it
10545 in the new probe_and_action. Don't store the probe in 'lookup'.
10546 (svr4_create_probe_breakpoints): Pass objfile to
10547 register_solib_event_probe.
10548 (_initialize_svr4_solib): Register a free_objfile observer.
10549
fb881986
TT
105502019-04-19 Tom Tromey <tom@tromey.com>
10551
10552 * common/queue.h: Remove.
10553
8732db6c
TT
105542019-04-19 Tom Tromey <tom@tromey.com>
10555
10556 * event-loop.c: Don't include "common/queue.h".
10557
97dfbadd
TT
105582019-04-19 Tom Tromey <tom@tromey.com>
10559
10560 * remote.c (remote_target): Use delete.
10561 * remote-notif.h: Include <list>, not "common/queue.h".
10562 (notif_client_p): Remove typedef.
10563 (remote_notif_state): Add constructor, destructor, initializer.
10564 <notif_queue>: Now a std::list.
10565 (remote_notif_state_xfree): Don't declare.
10566 * remote-notif.c (remote_notif_process, handle_notification)
10567 (remote_notif_state_allocate): Update.
10568 (~remote_notif_state): Rename from remote_notif_state_xfree.
10569
cf250e36
TT
105702019-04-19 Tom Tromey <tom@tromey.com>
10571
10572 * symfile.c (reread_symbols): Update.
10573 * objfiles.c (objfile_register_static_link)
10574 (objfile_lookup_static_link): Update
10575 (~objfile) Don't delete static_links.
10576 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
10577
61f4b350
TT
105782019-04-19 Tom Tromey <tom@tromey.com>
10579
10580 * type-stack.h (struct type_stack) <insert>: Constify string.
10581 * type-stack.c (type_stack::insert): Constify string.
10582 * gdbtypes.h (lookup_template_type): Update.
10583 (address_space_name_to_int): Update.
10584 * gdbtypes.c (address_space_name_to_int): Make space_identifier
10585 const.
10586 (lookup_template_type): Make name const.
10587 * c-exp.y: Update rules.
10588 (lex_one_token, classify_name, classify_inner_name)
10589 (c_print_token): Update.
10590 * p-exp.y: Update rules.
10591 (yylex): Update.
10592 * f-exp.y: Update rules.
10593 (yylex): Update.
10594 * d-exp.y: Update rules.
10595 (lex_one_token, classify_name, classify_inner_name): Update.
10596 * parse.c (write_dollar_variable, copy_name): Return std::string.
10597 * parser-defs.h (copy_name): Change return type.
10598 * m2-exp.y: Update rules.
10599 (yylex): Update.
10600 * go-exp.y (lex_one_token): Update.
10601 Update rules.
10602 (classify_unsafe_function, classify_packaged_name)
10603 (classify_name, yylex): Update.
10604
189b8c2e
ST
106052019-04-19 Sergei Trofimovich <siarheit@google.com>
10606
10607 * configure.ac: add --enable-source-highlight switch.
10608 * configure: Regenerate.
10609 * top.c (print_gdb_version): plumb --enable-source-highlight
10610 status to "show configuration".
10611
8ecb59f8
TT
106122019-04-19 Tom Tromey <tromey@adacore.com>
10613
10614 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
10615 Check ADA_TYPE_P.
10616 (empty_record, ada_template_to_fixed_record_type_1)
10617 (template_to_static_fixed_type)
10618 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
10619 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
10620 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
10621 macros.
10622
62160ec9
TT
106232019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
10624
10625 PR symtab/24423:
10626 * source.c (print_source_lines_base): Advance "iter" when a
10627 control character is seen.
10628
f2ae8bc8
PW
106292019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10630
10631 * inferior.h (struct infcall_suspend_state_deleter):
10632 Catch exception in destructor to avoid crash.
10633
d563b953
PW
106342019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10635
10636 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
10637 close to the add_com "shell".
10638
dc34c897
TT
106392019-04-18 Tom Tromey <tromey@adacore.com>
10640
10641 * process-stratum-target.h (class process_stratum_target)
10642 <stratum>: Add "final".
10643
a12e5744
TT
106442019-04-17 Tom Tromey <tromey@adacore.com>
10645
10646 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
10647 against nullptr before use.
10648
a7e559cc
AH
106492019-04-17 Alan Hayward <alan.hayward@arm.com>
10650
10651 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
10652
c01660c6
AB
106532019-04-17 Jim Wilson <jimw@sifive.com>
10654 Andrew Burgess <andrew.burgess@embecosm.com>
10655
10656 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
10657 code read might fail, assume 4-byte breakpoint in that case.
10658
4aa866af
LS
106592019-04-15 Leszek Swirski <leszeks@google.com>
10660
10661 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
10662 rather than a hand-rolled POD check when checking for forced MEMORY
10663 classification.
10664
48574d91
AH
106652019-04-15 Alan Hayward <alan.hayward@arm.com>
10666
10667 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
10668 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
10669 function.
10670 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
10671 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
10672 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
10673 declaration.
10674
4da037ef
AH
106752019-04-15 Alan Hayward <alan.hayward@arm.com>
10676
10677 * aarch64-linux-nat.c
10678 (aarch64_linux_nat_target::thread_architecture): Add override.
10679 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
10680 each VQ.
10681
ccb8d7e8
AH
106822019-04-15 Alan Hayward <alan.hayward@arm.com>
10683
10684 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
10685
35add35e
AB
106862019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
10687
10688 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
10689 target types of size 96-bits, add some additional comments, and
10690 check that the builtin type we found was the correct size.
10691
51196bbc
EZ
106922019-04-12 Eli Zaretskii <eliz@gnu.org>
10693
10694 * utils.c (prompt_for_continue): Don't restore the styling at the
10695 end, as applied_style has the wrong value. This fixes styling in
10696 long lists of file names that are interrupted by the "Continue?"
10697 prompt.
10698
62253a61
AB
106992019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
10700
10701 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
10702 * c-lang.c (c_language_defn): Likewise.
10703 (cplus_language_defn): Likewise.
10704 (asm_language_defn): Likewise.
10705 (minimal_language_defn): Likewise.
10706 * d-lang.c (d_language_defn): Likewise.
10707 * f-lang.c (f_language_defn): Likewise.
10708 * go-lang.c (go_language_defn): Likewise.
10709 * language.c (unknown_language_defn): Likewise.
10710 (auto_language_defn): Likewise.
10711 * language.h (struct language_defn): Remove la_magic field.
10712 (LANG_MAGIC): Delete.
10713 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
10714 * objc-lang.c (objc_language_defn): Likewise.
10715 * opencl-lang.c (opencl_language_defn): Likewise.
10716 * p-lang.c (pascal_language_defn): Likewise.
10717 * rust-lang.c (rust_language_defn): Likewise.
10718
a9158a86
AB
107192019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10720
10721 * riscv-tdep.c (riscv_type_align): New function.
10722 (riscv_type_alignment): Delete.
10723 (riscv_arg_location): Use 'type_align'.
10724 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
10725
41077b66
AB
107262019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10727
10728 * gdbtypes.c (type_align): A struct with no non-static fields also
10729 has alignment of 1.
10730
9f0272f8
AB
107312019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10732
10733 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
10734 component to 0.
10735 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
10736 member.
10737 (riscv_struct_info::analyse): New implementation using new
10738 analyse_inner member function.
10739 (riscv_struct_info::field_offset): New member function.
10740 (riscv_struct_info::m_offsets): New member variable.
10741 (riscv_struct_info::analyse_inner): New private member function,
10742 takes the old implementation of riscv_struct_info::analyse but
10743 extended to track field offsets.
10744 (riscv_call_arg_struct): Update the struct folding special cases
10745 to handle cases where empty C++ structs, which are non-zero
10746 length, are found.
10747 (riscv_arg_location): Initialise the length of each location, a
10748 non-zero length now indicates the location is in use.
10749 (riscv_push_dummy_call): Allow for the first location having a
10750 non-zero offset when setting up arguments.
10751 (riscv_return_value): Likewise, but for return values.
10752
02cf60c7
TT
107532019-04-11 Tom Tromey <tromey@adacore.com>
10754
10755 * utils.c (internal_vproblem): Make "msg" const.
10756
68811f8f
AH
107572019-04-11 Alan Hayward <alan.hayward@arm.com>
10758
10759 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
10760 * trad-frame.c (trad_frame_reset_saved_regs): New function.
10761 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
10762 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
10763
3f52fdbc
KB
107642019-04-10 Kevin Buettner <kevinb@redhat.com>
10765
10766 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
10767 function.
10768 (fill_gregset): Call amd64_linux_collect_native_gregset instead
10769 of amd64_collect_native_gregset.
10770 (amd64_linux_nat_target::store_registers): Likewise.
10771
e9ad22ee
TT
107722019-04-10 Tom Tromey <tom@tromey.com>
10773
10774 * symtab.c (lookup_global_symbol_from_objfile)
10775 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
10776 * objfiles.h (class separate_debug_iterator): New.
10777 (class separate_debug_range): New.
10778 (struct objfile) <separate_debug_objfiles>: New method.
10779 (objfile_separate_debug_iterate): Don't declare.
10780 * objfiles.c (separate_debug_iterator::operator++): Rename from
10781 objfile_separate_debug_iterate.
10782 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
10783 iterator.
10784 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
10785 iterator.
10786
ee371134
TT
107872019-04-10 Tom Tromey <tom@tromey.com>
10788
10789 * symfile.c (reread_symbols): Remove old comment.
10790 * objfiles.c (free_all_objfiles): Fix a typo.
10791
bf227d61
TT
107922019-04-10 Tom Tromey <tom@tromey.com>
10793
10794 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
10795 * minsyms.c (lookup_minimal_symbol): Use foreach.
10796 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
10797 (lookup_minimal_symbol_solib_trampoline): Likewise.
10798 * symfile.c (reread_symbols): Use foreach.
10799
8dc433a0
TT
108002019-04-09 Ivan Begert <ivanbegert@gmail.com>
10801 Tom Tromey <tromey@adacore.com>
10802
10803 PR rust/24414:
10804 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
10805 (rust_lex_int_test): Change "value" to be LONGEST.
10806 (rust_lex_tests): Add test for long integer literal.
10807
9ab8741a
TT
108082019-04-09 Tom Tromey <tromey@adacore.com>
10809
10810 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
10811 to bool.
10812 (extended_remote_target::attach): Update.
10813 (remote_target::remote_notice_new_inferior): Update.
10814 (remote_target::add_current_inferior_and_thread): Update.
10815 * inferior.c (exit_inferior_1): Use "false".
10816 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
10817
e242fd12
SM
108182019-04-09 Simon Marchi <simon.marchi@efficios.com>
10819
9ca1957f 10820 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
e242fd12
SM
10821 the "start" command.
10822
2b0c8b01
KB
108232019-04-08 Kevin Buettner <kevinb@redhat.com>
10824
10825 * python/py-inferior.c (infpy_thread_from_thread_handle):
10826 Adjust comments to reflect renaming of thread_from_thread_handle
10827 to thread_from_handle. Adjust keywords. Fix type error message.
10828 (inferior_object_methods): Add thread_from_handle. Retain
10829 thread_from_thread_handle, but mark it as deprecated.
10830
50a82723
KB
108312019-04-08 Kevin Buettner <kevinb@redhat.com>
10832
10833 * gdbthread.h (find_thread_by_handle): Revise declaration.
10834 * thread.c (find_thread_by_handle): Likewise. Adjust
10835 implementation too.
10836 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
10837 support for buffer objects as handles.
10838
cf63b016
KB
108392019-04-08 Kevin Buettner <kevinb@redhat.com>
10840
10841 * python/py-infthread.c (thpy_thread_handle): New function.
10842 (thread_object_methods): Register thpy_thread_handle.
10843
3d6c6204
KB
108442019-04-08 Kevin Buettner <kevinb@redhat.com>
10845
10846 * gdbthread.h (thread_to_thread_handle): Declare.
10847 * thread.c (gdbtypes.h): Include.
10848 (thread_to_thread_handle): New function.
10849
10850 * target.h (struct target_ops): Add thread_info_to_thread_handle.
10851 (target_thread_info_to_thread_handle): Declare.
10852 * target.c (target_thread_info_to_thread_handle): New function.
10853 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
10854 * target-delegates.c: Regenerate.
10855
10856 * linux-thread-db.c (class thread_db_target): Add method
10857 thread_info_to_thread_handle.
10858 (thread_db_target::thread_info_to_thread_handle): Define.
10859 * remote.c (class remote_target): Add new method
10860 thread_info_to_thread_handle.
10861 (remote_target::thread_info_to_thread_handle): Define.
10862
56be6ea8
PA
108632019-04-08 Pedro Alves <palves@redhat.com>
10864
10865 * common/common-exceptions.c (throw_exception): Don't create
10866 named object to throw; throw directly.
10867 (throw_it): Likewise. Don't initialize gdb_exception::message
10868 here, with new; pass FMT and AP to the ctor instead.
10869 * common/common-exceptions.h: Include <string>.
10870 (gdb_exception::gdb_exception(enum return_reason, enum errors,
10871 const char *, va_list)): New ctor. Use std::make_shared.
10872 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
10873 errors)): Delete.
10874 (gdb_exception_error::gdb_exception_error(enum errors, const char
10875 *, va_list)): New.
10876 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
10877 Add assertion.
10878 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
10879 errors)): Delete.
10880 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
10881 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
10882 Add assertion.
10883
eedc3f4f
TT
108842019-04-08 Tom Tromey <tom@tromey.com>
10885
10886 * valops.c (value_rtti_indirect_type): Replace throw_exception
10887 with throw.
10888 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
10889 with throw.
10890 * thread.c (thr_try_catch_cmd): Replace throw_exception with
10891 throw.
10892 * target.c (target_translate_tls_address): Replace throw_exception
10893 with throw.
10894 * stack.c (frame_apply_command_count): Replace throw_exception
10895 with throw.
10896 * solib-spu.c (append_ocl_sos): Replace throw_exception with
10897 throw.
10898 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
10899 with throw.
10900 * rs6000-tdep.c (rs6000_frame_cache)
10901 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
10902 * remote.c: Replace throw_exception with throw.
10903 * record-full.c (record_full_message, record_full_wait_1)
10904 (record_full_restore): Replace throw_exception with throw.
10905 * record-btrace.c:
10906 (get_thread_current_frame_id, record_btrace_start_replaying)
10907 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
10908 (cmd_record_btrace_start): Replace throw_exception with throw.
10909 * parse.c (parse_exp_in_context_1): Replace throw_exception with
10910 throw.
10911 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
10912 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
10913 * linespec.c:
10914 (find_linespec_symbols): Replace throw_exception with throw.
10915 * infrun.c (displaced_step_prepare, resume): Replace
10916 throw_exception with throw.
10917 * infcmd.c (post_create_inferior): Replace throw_exception with
10918 throw.
10919 * inf-loop.c (inferior_event_handler): Replace throw_exception
10920 with throw.
10921 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
10922 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
10923 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
10924 (get_prev_frame_always, get_frame_pc_if_available)
10925 (get_frame_address_in_block_if_available, get_frame_language):
10926 Replace throw_exception with throw.
10927 * frame-unwind.c (frame_unwind_try_unwinder): Replace
10928 throw_exception with throw.
10929 * eval.c (fetch_subexp_value, evaluate_var_value)
10930 (evaluate_funcall, evaluate_subexp_standard): Replace
10931 throw_exception with throw.
10932 * dwarf2loc.c (call_site_find_chain)
10933 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
10934 Replace throw_exception with throw.
10935 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
10936 with throw.
10937 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
10938 throw.
10939 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
10940 * completer.c (complete_line_internal): Replace throw_exception
10941 with throw.
10942 * compile/compile-object-run.c (compile_object_run): Replace
10943 throw_exception with throw.
10944 * cli/cli-script.c (process_next_line): Replace throw_exception
10945 with throw.
10946 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
10947 (btrace_enable, btrace_maint_update_pt_packets): Replace
10948 throw_exception with throw.
10949 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
10950 throw_exception with throw.
10951 * break-catch-throw.c (re_set_exception_catchpoint): Replace
10952 throw_exception with throw.
10953 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
10954 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
10955 * aarch64-tdep.c (aarch64_make_prologue_cache)
10956 (aarch64_make_stub_cache): Replace throw_exception with throw.
10957
26003a20
TT
109582019-04-08 Tom Tromey <tom@tromey.com>
10959
10960 * common/common-exceptions.c (throw_exception): Rename from
10961 throw_exception_cxx. Remove old copy. Make argument const.
10962 (throw_it): Create and throw exception objects directly.
10963 * common/common-exceptions.h (throw_exception): Make argument
10964 const.
10965 (struct gdb_exception_error): Add constructor.
10966 (struct gdb_exception_quit): Add constructor.
10967
d272eb37
TT
109682019-04-08 Tom Tromey <tom@tromey.com>
10969
10970 * common/common-exceptions.h (exception_rethrow): Don't declare.
10971 (TRY_SJLJ): Update comment.
10972 (TRY, CATCH, END_CATCH): Remove.
10973 * common/common-exceptions.c (exception_rethrow): Remove.
10974
230d2906
TT
109752019-04-08 Tom Tromey <tom@tromey.com>
10976
10977 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
10978 Remove.
10979 (gdb_exception_error): Rename from
10980 gdb_exception_RETURN_MASK_ERROR.
10981 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
10982 (gdb_quit_bad_alloc): Update.
10983 * aarch64-tdep.c: Update.
10984 * ada-lang.c: Update.
10985 * ada-typeprint.c: Update.
10986 * ada-valprint.c: Update.
10987 * amd64-tdep.c: Update.
10988 * arch-utils.c: Update.
10989 * break-catch-throw.c: Update.
10990 * breakpoint.c: Update.
10991 * btrace.c: Update.
10992 * c-varobj.c: Update.
10993 * cli/cli-cmds.c: Update.
10994 * cli/cli-interp.c: Update.
10995 * cli/cli-script.c: Update.
10996 * common/common-exceptions.c: Update.
10997 * common/new-op.c: Update.
10998 * common/selftest.c: Update.
10999 * compile/compile-c-symbols.c: Update.
11000 * compile/compile-cplus-symbols.c: Update.
11001 * compile/compile-object-load.c: Update.
11002 * compile/compile-object-run.c: Update.
11003 * completer.c: Update.
11004 * corelow.c: Update.
11005 * cp-abi.c: Update.
11006 * cp-support.c: Update.
11007 * cp-valprint.c: Update.
11008 * darwin-nat.c: Update.
11009 * disasm-selftests.c: Update.
11010 * dtrace-probe.c: Update.
11011 * dwarf-index-cache.c: Update.
11012 * dwarf-index-write.c: Update.
11013 * dwarf2-frame-tailcall.c: Update.
11014 * dwarf2-frame.c: Update.
11015 * dwarf2loc.c: Update.
11016 * dwarf2read.c: Update.
11017 * eval.c: Update.
11018 * event-loop.c: Update.
11019 * event-top.c: Update.
11020 * exec.c: Update.
11021 * f-valprint.c: Update.
11022 * fbsd-tdep.c: Update.
11023 * frame-unwind.c: Update.
11024 * frame.c: Update.
11025 * gdbtypes.c: Update.
11026 * gnu-v3-abi.c: Update.
11027 * guile/guile-internal.h: Update.
11028 * guile/scm-block.c: Update.
11029 * guile/scm-breakpoint.c: Update.
11030 * guile/scm-cmd.c: Update.
11031 * guile/scm-disasm.c: Update.
11032 * guile/scm-frame.c: Update.
11033 * guile/scm-lazy-string.c: Update.
11034 * guile/scm-math.c: Update.
11035 * guile/scm-param.c: Update.
11036 * guile/scm-ports.c: Update.
11037 * guile/scm-pretty-print.c: Update.
11038 * guile/scm-symbol.c: Update.
11039 * guile/scm-symtab.c: Update.
11040 * guile/scm-type.c: Update.
11041 * guile/scm-value.c: Update.
11042 * i386-linux-tdep.c: Update.
11043 * i386-tdep.c: Update.
11044 * inf-loop.c: Update.
11045 * infcall.c: Update.
11046 * infcmd.c: Update.
11047 * infrun.c: Update.
11048 * jit.c: Update.
11049 * language.c: Update.
11050 * linespec.c: Update.
11051 * linux-fork.c: Update.
11052 * linux-nat.c: Update.
11053 * linux-tdep.c: Update.
11054 * linux-thread-db.c: Update.
11055 * main.c: Update.
11056 * mi/mi-cmd-break.c: Update.
11057 * mi/mi-cmd-stack.c: Update.
11058 * mi/mi-interp.c: Update.
11059 * mi/mi-main.c: Update.
11060 * objc-lang.c: Update.
11061 * p-valprint.c: Update.
11062 * parse.c: Update.
11063 * ppc-linux-tdep.c: Update.
11064 * printcmd.c: Update.
11065 * python/py-arch.c: Update.
11066 * python/py-breakpoint.c: Update.
11067 * python/py-cmd.c: Update.
11068 * python/py-finishbreakpoint.c: Update.
11069 * python/py-frame.c: Update.
11070 * python/py-framefilter.c: Update.
11071 * python/py-gdb-readline.c: Update.
11072 * python/py-inferior.c: Update.
11073 * python/py-infthread.c: Update.
11074 * python/py-lazy-string.c: Update.
11075 * python/py-linetable.c: Update.
11076 * python/py-objfile.c: Update.
11077 * python/py-param.c: Update.
11078 * python/py-prettyprint.c: Update.
11079 * python/py-progspace.c: Update.
11080 * python/py-record-btrace.c: Update.
11081 * python/py-record.c: Update.
11082 * python/py-symbol.c: Update.
11083 * python/py-type.c: Update.
11084 * python/py-unwind.c: Update.
11085 * python/py-utils.c: Update.
11086 * python/py-value.c: Update.
11087 * python/python.c: Update.
11088 * record-btrace.c: Update.
11089 * record-full.c: Update.
11090 * remote-fileio.c: Update.
11091 * remote.c: Update.
11092 * riscv-tdep.c: Update.
11093 * rs6000-aix-tdep.c: Update.
11094 * rs6000-tdep.c: Update.
11095 * rust-exp.y: Update.
11096 * rust-lang.c: Update.
11097 * s390-tdep.c: Update.
11098 * selftest-arch.c: Update.
11099 * solib-dsbt.c: Update.
11100 * solib-frv.c: Update.
11101 * solib-spu.c: Update.
11102 * solib-svr4.c: Update.
11103 * solib.c: Update.
11104 * sparc64-linux-tdep.c: Update.
11105 * stack.c: Update.
11106 * symfile-mem.c: Update.
11107 * symmisc.c: Update.
11108 * target.c: Update.
11109 * thread.c: Update.
11110 * top.c: Update.
11111 * tracefile-tfile.c: Update.
11112 * tui/tui.c: Update.
11113 * typeprint.c: Update.
11114 * unittests/cli-utils-selftests.c: Update.
11115 * unittests/parse-connection-spec-selftests.c: Update.
11116 * valops.c: Update.
11117 * valprint.c: Update.
11118 * value.c: Update.
11119 * varobj.c: Update.
11120 * windows-nat.c: Update.
11121 * x86-linux-nat.c: Update.
11122 * xml-support.c: Update.
11123
a70b8144
TT
111242019-04-08 Tom Tromey <tom@tromey.com>
11125
11126 * xml-support.c: Use C++ exception handling.
11127 * x86-linux-nat.c: Use C++ exception handling.
11128 * windows-nat.c: Use C++ exception handling.
11129 * varobj.c: Use C++ exception handling.
11130 * value.c: Use C++ exception handling.
11131 * valprint.c: Use C++ exception handling.
11132 * valops.c: Use C++ exception handling.
11133 * unittests/parse-connection-spec-selftests.c: Use C++ exception
11134 handling.
11135 * unittests/cli-utils-selftests.c: Use C++ exception handling.
11136 * typeprint.c: Use C++ exception handling.
11137 * tui/tui.c: Use C++ exception handling.
11138 * tracefile-tfile.c: Use C++ exception handling.
11139 * top.c: Use C++ exception handling.
11140 * thread.c: Use C++ exception handling.
11141 * target.c: Use C++ exception handling.
11142 * symmisc.c: Use C++ exception handling.
11143 * symfile-mem.c: Use C++ exception handling.
11144 * stack.c: Use C++ exception handling.
11145 * sparc64-linux-tdep.c: Use C++ exception handling.
11146 * solib.c: Use C++ exception handling.
11147 * solib-svr4.c: Use C++ exception handling.
11148 * solib-spu.c: Use C++ exception handling.
11149 * solib-frv.c: Use C++ exception handling.
11150 * solib-dsbt.c: Use C++ exception handling.
11151 * selftest-arch.c: Use C++ exception handling.
11152 * s390-tdep.c: Use C++ exception handling.
11153 * rust-lang.c: Use C++ exception handling.
11154 * rust-exp.y: Use C++ exception handling.
11155 * rs6000-tdep.c: Use C++ exception handling.
11156 * rs6000-aix-tdep.c: Use C++ exception handling.
11157 * riscv-tdep.c: Use C++ exception handling.
11158 * remote.c: Use C++ exception handling.
11159 * remote-fileio.c: Use C++ exception handling.
11160 * record-full.c: Use C++ exception handling.
11161 * record-btrace.c: Use C++ exception handling.
11162 * python/python.c: Use C++ exception handling.
11163 * python/py-value.c: Use C++ exception handling.
11164 * python/py-utils.c: Use C++ exception handling.
11165 * python/py-unwind.c: Use C++ exception handling.
11166 * python/py-type.c: Use C++ exception handling.
11167 * python/py-symbol.c: Use C++ exception handling.
11168 * python/py-record.c: Use C++ exception handling.
11169 * python/py-record-btrace.c: Use C++ exception handling.
11170 * python/py-progspace.c: Use C++ exception handling.
11171 * python/py-prettyprint.c: Use C++ exception handling.
11172 * python/py-param.c: Use C++ exception handling.
11173 * python/py-objfile.c: Use C++ exception handling.
11174 * python/py-linetable.c: Use C++ exception handling.
11175 * python/py-lazy-string.c: Use C++ exception handling.
11176 * python/py-infthread.c: Use C++ exception handling.
11177 * python/py-inferior.c: Use C++ exception handling.
11178 * python/py-gdb-readline.c: Use C++ exception handling.
11179 * python/py-framefilter.c: Use C++ exception handling.
11180 * python/py-frame.c: Use C++ exception handling.
11181 * python/py-finishbreakpoint.c: Use C++ exception handling.
11182 * python/py-cmd.c: Use C++ exception handling.
11183 * python/py-breakpoint.c: Use C++ exception handling.
11184 * python/py-arch.c: Use C++ exception handling.
11185 * printcmd.c: Use C++ exception handling.
11186 * ppc-linux-tdep.c: Use C++ exception handling.
11187 * parse.c: Use C++ exception handling.
11188 * p-valprint.c: Use C++ exception handling.
11189 * objc-lang.c: Use C++ exception handling.
11190 * mi/mi-main.c: Use C++ exception handling.
11191 * mi/mi-interp.c: Use C++ exception handling.
11192 * mi/mi-cmd-stack.c: Use C++ exception handling.
11193 * mi/mi-cmd-break.c: Use C++ exception handling.
11194 * main.c: Use C++ exception handling.
11195 * linux-thread-db.c: Use C++ exception handling.
11196 * linux-tdep.c: Use C++ exception handling.
11197 * linux-nat.c: Use C++ exception handling.
11198 * linux-fork.c: Use C++ exception handling.
11199 * linespec.c: Use C++ exception handling.
11200 * language.c: Use C++ exception handling.
11201 * jit.c: Use C++ exception handling.
11202 * infrun.c: Use C++ exception handling.
11203 * infcmd.c: Use C++ exception handling.
11204 * infcall.c: Use C++ exception handling.
11205 * inf-loop.c: Use C++ exception handling.
11206 * i386-tdep.c: Use C++ exception handling.
11207 * i386-linux-tdep.c: Use C++ exception handling.
11208 * guile/scm-value.c: Use C++ exception handling.
11209 * guile/scm-type.c: Use C++ exception handling.
11210 * guile/scm-symtab.c: Use C++ exception handling.
11211 * guile/scm-symbol.c: Use C++ exception handling.
11212 * guile/scm-pretty-print.c: Use C++ exception handling.
11213 * guile/scm-ports.c: Use C++ exception handling.
11214 * guile/scm-param.c: Use C++ exception handling.
11215 * guile/scm-math.c: Use C++ exception handling.
11216 * guile/scm-lazy-string.c: Use C++ exception handling.
11217 * guile/scm-frame.c: Use C++ exception handling.
11218 * guile/scm-disasm.c: Use C++ exception handling.
11219 * guile/scm-cmd.c: Use C++ exception handling.
11220 * guile/scm-breakpoint.c: Use C++ exception handling.
11221 * guile/scm-block.c: Use C++ exception handling.
11222 * guile/guile-internal.h: Use C++ exception handling.
11223 * gnu-v3-abi.c: Use C++ exception handling.
11224 * gdbtypes.c: Use C++ exception handling.
11225 * frame.c: Use C++ exception handling.
11226 * frame-unwind.c: Use C++ exception handling.
11227 * fbsd-tdep.c: Use C++ exception handling.
11228 * f-valprint.c: Use C++ exception handling.
11229 * exec.c: Use C++ exception handling.
11230 * event-top.c: Use C++ exception handling.
11231 * event-loop.c: Use C++ exception handling.
11232 * eval.c: Use C++ exception handling.
11233 * dwarf2read.c: Use C++ exception handling.
11234 * dwarf2loc.c: Use C++ exception handling.
11235 * dwarf2-frame.c: Use C++ exception handling.
11236 * dwarf2-frame-tailcall.c: Use C++ exception handling.
11237 * dwarf-index-write.c: Use C++ exception handling.
11238 * dwarf-index-cache.c: Use C++ exception handling.
11239 * dtrace-probe.c: Use C++ exception handling.
11240 * disasm-selftests.c: Use C++ exception handling.
11241 * darwin-nat.c: Use C++ exception handling.
11242 * cp-valprint.c: Use C++ exception handling.
11243 * cp-support.c: Use C++ exception handling.
11244 * cp-abi.c: Use C++ exception handling.
11245 * corelow.c: Use C++ exception handling.
11246 * completer.c: Use C++ exception handling.
11247 * compile/compile-object-run.c: Use C++ exception handling.
11248 * compile/compile-object-load.c: Use C++ exception handling.
11249 * compile/compile-cplus-symbols.c: Use C++ exception handling.
11250 * compile/compile-c-symbols.c: Use C++ exception handling.
11251 * common/selftest.c: Use C++ exception handling.
11252 * common/new-op.c: Use C++ exception handling.
11253 * cli/cli-script.c: Use C++ exception handling.
11254 * cli/cli-interp.c: Use C++ exception handling.
11255 * cli/cli-cmds.c: Use C++ exception handling.
11256 * c-varobj.c: Use C++ exception handling.
11257 * btrace.c: Use C++ exception handling.
11258 * breakpoint.c: Use C++ exception handling.
11259 * break-catch-throw.c: Use C++ exception handling.
11260 * arch-utils.c: Use C++ exception handling.
11261 * amd64-tdep.c: Use C++ exception handling.
11262 * ada-valprint.c: Use C++ exception handling.
11263 * ada-typeprint.c: Use C++ exception handling.
11264 * ada-lang.c: Use C++ exception handling.
11265 * aarch64-tdep.c: Use C++ exception handling.
11266
3d6e9d23
TT
112672019-04-08 Tom Tromey <tom@tromey.com>
11268
11269 * xml-support.c (gdb_xml_parser::parse): Update.
11270 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
11271 * value.c (show_convenience): Update.
11272 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
11273 (test_parse_flags_qcs): Update.
11274 * thread.c (thr_try_catch_cmd): Update.
11275 * target.c (target_translate_tls_address): Update.
11276 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
11277 (info_frame_command_core, frame_apply_command_count): Update.
11278 * rust-exp.y (rust_lex_exception_test): Update.
11279 * riscv-tdep.c (riscv_print_one_register_info): Update.
11280 * remote.c (remote_target::enable_btrace): Update.
11281 * record-btrace.c (record_btrace_enable_warn): Update.
11282 * python/py-utils.c (gdbpy_convert_exception): Update.
11283 * printcmd.c (do_one_display, print_variable_and_value): Update.
11284 * mi/mi-main.c (mi_print_exception): Update.
11285 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
11286 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
11287 * linux-nat.c (linux_nat_target::attach): Update.
11288 * linux-fork.c (class scoped_switch_fork_info): Update.
11289 * infrun.c (displaced_step_prepare): Update.
11290 * infcall.c (call_function_by_hand_dummy): Update.
11291 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
11292 * gnu-v3-abi.c (print_one_vtable): Update.
11293 * frame.c (get_prev_frame_always): Update.
11294 * f-valprint.c (info_common_command_for_block): Update.
11295 * exec.c (try_open_exec_file): Update.
11296 * exceptions.c (print_exception, exception_print)
11297 (exception_fprintf, exception_print_same): Update.
11298 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
11299 * dwarf-index-cache.c (index_cache::store)
11300 (index_cache::lookup_gdb_index): Update.
11301 * darwin-nat.c (maybe_cache_shell): Update.
11302 * cp-valprint.c (cp_print_value_fields): Update.
11303 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
11304 (gcc_cplus_symbol_address): Update.
11305 * compile/compile-c-symbols.c (gcc_convert_symbol)
11306 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
11307 * common/selftest.c: Update.
11308 * common/common-exceptions.h (struct gdb_exception) <message>: Now
11309 a std::string.
11310 (exception_try_scope_entry, exception_try_scope_exit): Don't
11311 declare.
11312 (struct exception_try_scope): Remove.
11313 (TRY): Don't use exception_try_scope.
11314 (struct gdb_exception): Add constructor, operator=.
11315 <what>: New method.
11316 (struct gdb_exception_RETURN_MASK_ALL)
11317 (struct gdb_exception_RETURN_MASK_ERROR)
11318 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
11319 (struct gdb_quit_bad_alloc): Update.
11320 * common/common-exceptions.c (exception_none): Change
11321 initializer.
11322 (struct catcher) <state, exception>: Initialize inline.
11323 <prev>: Remove member.
11324 (current_catcher): Remove.
11325 (catchers): New global.
11326 (exceptions_state_mc_init): Simplify.
11327 (catcher_pop): Remove.
11328 (exceptions_state_mc, exceptions_state_mc_catch): Update.
11329 (try_scope_depth, exception_try_scope_entry)
11330 (exception_try_scope_exit): Remove.
11331 (throw_exception_sjlj): Update.
11332 (exception_messages, exception_messages_size): Remove.
11333 (throw_it): Simplify.
11334 (gdb_exception_sliced_copy): Remove.
11335 (throw_exception_cxx): Update.
11336 * cli/cli-script.c (script_from_file): Update.
11337 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
11338 Update.
11339 * ada-valprint.c (ada_val_print): Update.
11340 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
11341 (create_excep_cond_exprs): Update.
11342
c5c10118
TT
113432019-04-08 Tom Tromey <tom@tromey.com>
11344
11345 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
11346 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
11347 (TRY, CATCH, END_CATCH): Remove some definitions.
11348 * common/common-exceptions.c: Don't use GDB_XCPT.
11349 (catcher_list_size): Remove.
11350 (throw_exception, throw_it): Simplify.
11351
4de283e4
TT
113522019-04-05 Tom Tromey <tom@tromey.com>
11353
11354 Revert the header-sorting patch.
11355 * ft32-tdep.c: Revert.
11356 * frv-tdep.c: Revert.
11357 * frv-linux-tdep.c: Revert.
11358 * frame.c: Revert.
11359 * frame-unwind.c: Revert.
11360 * frame-base.c: Revert.
11361 * fork-child.c: Revert.
11362 * findvar.c: Revert.
11363 * findcmd.c: Revert.
11364 * filesystem.c: Revert.
11365 * filename-seen-cache.h: Revert.
11366 * filename-seen-cache.c: Revert.
11367 * fbsd-tdep.c: Revert.
11368 * fbsd-nat.h: Revert.
11369 * fbsd-nat.c: Revert.
11370 * f-valprint.c: Revert.
11371 * f-typeprint.c: Revert.
11372 * f-lang.c: Revert.
11373 * extension.h: Revert.
11374 * extension.c: Revert.
11375 * extension-priv.h: Revert.
11376 * expprint.c: Revert.
11377 * exec.h: Revert.
11378 * exec.c: Revert.
11379 * exceptions.c: Revert.
11380 * event-top.c: Revert.
11381 * event-loop.c: Revert.
11382 * eval.c: Revert.
11383 * elfread.c: Revert.
11384 * dwarf2read.h: Revert.
11385 * dwarf2read.c: Revert.
11386 * dwarf2loc.c: Revert.
11387 * dwarf2expr.h: Revert.
11388 * dwarf2expr.c: Revert.
11389 * dwarf2-frame.c: Revert.
11390 * dwarf2-frame-tailcall.c: Revert.
11391 * dwarf-index-write.h: Revert.
11392 * dwarf-index-write.c: Revert.
11393 * dwarf-index-common.c: Revert.
11394 * dwarf-index-cache.h: Revert.
11395 * dwarf-index-cache.c: Revert.
11396 * dummy-frame.c: Revert.
11397 * dtrace-probe.c: Revert.
11398 * disasm.h: Revert.
11399 * disasm.c: Revert.
11400 * disasm-selftests.c: Revert.
11401 * dictionary.c: Revert.
11402 * dicos-tdep.c: Revert.
11403 * demangle.c: Revert.
11404 * dcache.h: Revert.
11405 * dcache.c: Revert.
11406 * darwin-nat.h: Revert.
11407 * darwin-nat.c: Revert.
11408 * darwin-nat-info.c: Revert.
11409 * d-valprint.c: Revert.
11410 * d-namespace.c: Revert.
11411 * d-lang.c: Revert.
11412 * ctf.c: Revert.
11413 * csky-tdep.c: Revert.
11414 * csky-linux-tdep.c: Revert.
11415 * cris-tdep.c: Revert.
11416 * cris-linux-tdep.c: Revert.
11417 * cp-valprint.c: Revert.
11418 * cp-support.c: Revert.
11419 * cp-namespace.c: Revert.
11420 * cp-abi.c: Revert.
11421 * corelow.c: Revert.
11422 * corefile.c: Revert.
11423 * continuations.c: Revert.
11424 * completer.h: Revert.
11425 * completer.c: Revert.
11426 * complaints.c: Revert.
11427 * coffread.c: Revert.
11428 * coff-pe-read.c: Revert.
11429 * cli-out.h: Revert.
11430 * cli-out.c: Revert.
11431 * charset.c: Revert.
11432 * c-varobj.c: Revert.
11433 * c-valprint.c: Revert.
11434 * c-typeprint.c: Revert.
11435 * c-lang.c: Revert.
11436 * buildsym.c: Revert.
11437 * buildsym-legacy.c: Revert.
11438 * build-id.h: Revert.
11439 * build-id.c: Revert.
11440 * btrace.c: Revert.
11441 * bsd-uthread.c: Revert.
11442 * breakpoint.h: Revert.
11443 * breakpoint.c: Revert.
11444 * break-catch-throw.c: Revert.
11445 * break-catch-syscall.c: Revert.
11446 * break-catch-sig.c: Revert.
11447 * blockframe.c: Revert.
11448 * block.c: Revert.
11449 * bfin-tdep.c: Revert.
11450 * bfin-linux-tdep.c: Revert.
11451 * bfd-target.c: Revert.
11452 * bcache.c: Revert.
11453 * ax-general.c: Revert.
11454 * ax-gdb.h: Revert.
11455 * ax-gdb.c: Revert.
11456 * avr-tdep.c: Revert.
11457 * auxv.c: Revert.
11458 * auto-load.c: Revert.
11459 * arm-wince-tdep.c: Revert.
11460 * arm-tdep.c: Revert.
11461 * arm-symbian-tdep.c: Revert.
11462 * arm-pikeos-tdep.c: Revert.
11463 * arm-obsd-tdep.c: Revert.
11464 * arm-nbsd-tdep.c: Revert.
11465 * arm-nbsd-nat.c: Revert.
11466 * arm-linux-tdep.c: Revert.
11467 * arm-linux-nat.c: Revert.
11468 * arm-fbsd-tdep.c: Revert.
11469 * arm-fbsd-nat.c: Revert.
11470 * arm-bsd-tdep.c: Revert.
11471 * arch-utils.c: Revert.
11472 * arc-tdep.c: Revert.
11473 * arc-newlib-tdep.c: Revert.
11474 * annotate.h: Revert.
11475 * annotate.c: Revert.
11476 * amd64-windows-tdep.c: Revert.
11477 * amd64-windows-nat.c: Revert.
11478 * amd64-tdep.c: Revert.
11479 * amd64-sol2-tdep.c: Revert.
11480 * amd64-obsd-tdep.c: Revert.
11481 * amd64-obsd-nat.c: Revert.
11482 * amd64-nbsd-tdep.c: Revert.
11483 * amd64-nbsd-nat.c: Revert.
11484 * amd64-nat.c: Revert.
11485 * amd64-linux-tdep.c: Revert.
11486 * amd64-linux-nat.c: Revert.
11487 * amd64-fbsd-tdep.c: Revert.
11488 * amd64-fbsd-nat.c: Revert.
11489 * amd64-dicos-tdep.c: Revert.
11490 * amd64-darwin-tdep.c: Revert.
11491 * amd64-bsd-nat.c: Revert.
11492 * alpha-tdep.c: Revert.
11493 * alpha-obsd-tdep.c: Revert.
11494 * alpha-nbsd-tdep.c: Revert.
11495 * alpha-mdebug-tdep.c: Revert.
11496 * alpha-linux-tdep.c: Revert.
11497 * alpha-linux-nat.c: Revert.
11498 * alpha-bsd-tdep.c: Revert.
11499 * alpha-bsd-nat.c: Revert.
11500 * aix-thread.c: Revert.
11501 * agent.c: Revert.
11502 * addrmap.c: Revert.
11503 * ada-varobj.c: Revert.
11504 * ada-valprint.c: Revert.
11505 * ada-typeprint.c: Revert.
11506 * ada-tasks.c: Revert.
11507 * ada-lang.c: Revert.
11508 * aarch64-tdep.c: Revert.
11509 * aarch64-ravenscar-thread.c: Revert.
11510 * aarch64-newlib-tdep.c: Revert.
11511 * aarch64-linux-tdep.c: Revert.
11512 * aarch64-linux-nat.c: Revert.
11513 * aarch64-fbsd-tdep.c: Revert.
11514 * aarch64-fbsd-nat.c: Revert.
11515 * aarch32-linux-nat.c: Revert.
11516
d55e5aa6
TT
115172019-04-05 Tom Tromey <tom@tromey.com>
11518
11519 * ft32-tdep.c: Sort headers.
11520 * frv-tdep.c: Sort headers.
11521 * frv-linux-tdep.c: Sort headers.
11522 * frame.c: Sort headers.
11523 * frame-unwind.c: Sort headers.
11524 * frame-base.c: Sort headers.
11525 * fork-child.c: Sort headers.
11526 * findvar.c: Sort headers.
11527 * findcmd.c: Sort headers.
11528 * filesystem.c: Sort headers.
11529 * filename-seen-cache.h: Sort headers.
11530 * filename-seen-cache.c: Sort headers.
11531 * fbsd-tdep.c: Sort headers.
11532 * fbsd-nat.h: Sort headers.
11533 * fbsd-nat.c: Sort headers.
11534 * f-valprint.c: Sort headers.
11535 * f-typeprint.c: Sort headers.
11536 * f-lang.c: Sort headers.
11537 * extension.h: Sort headers.
11538 * extension.c: Sort headers.
11539 * extension-priv.h: Sort headers.
11540 * expprint.c: Sort headers.
11541 * exec.h: Sort headers.
11542 * exec.c: Sort headers.
11543 * exceptions.c: Sort headers.
11544 * event-top.c: Sort headers.
11545 * event-loop.c: Sort headers.
11546 * eval.c: Sort headers.
11547 * elfread.c: Sort headers.
11548 * dwarf2read.h: Sort headers.
11549 * dwarf2read.c: Sort headers.
11550 * dwarf2loc.c: Sort headers.
11551 * dwarf2expr.h: Sort headers.
11552 * dwarf2expr.c: Sort headers.
11553 * dwarf2-frame.c: Sort headers.
11554 * dwarf2-frame-tailcall.c: Sort headers.
11555 * dwarf-index-write.h: Sort headers.
11556 * dwarf-index-write.c: Sort headers.
11557 * dwarf-index-common.c: Sort headers.
11558 * dwarf-index-cache.h: Sort headers.
11559 * dwarf-index-cache.c: Sort headers.
11560 * dummy-frame.c: Sort headers.
11561 * dtrace-probe.c: Sort headers.
11562 * disasm.h: Sort headers.
11563 * disasm.c: Sort headers.
11564 * disasm-selftests.c: Sort headers.
11565 * dictionary.c: Sort headers.
11566 * dicos-tdep.c: Sort headers.
11567 * demangle.c: Sort headers.
11568 * dcache.h: Sort headers.
11569 * dcache.c: Sort headers.
11570 * darwin-nat.h: Sort headers.
11571 * darwin-nat.c: Sort headers.
11572 * darwin-nat-info.c: Sort headers.
11573 * d-valprint.c: Sort headers.
11574 * d-namespace.c: Sort headers.
11575 * d-lang.c: Sort headers.
11576 * ctf.c: Sort headers.
11577 * csky-tdep.c: Sort headers.
11578 * csky-linux-tdep.c: Sort headers.
11579 * cris-tdep.c: Sort headers.
11580 * cris-linux-tdep.c: Sort headers.
11581 * cp-valprint.c: Sort headers.
11582 * cp-support.c: Sort headers.
11583 * cp-namespace.c: Sort headers.
11584 * cp-abi.c: Sort headers.
11585 * corelow.c: Sort headers.
11586 * corefile.c: Sort headers.
11587 * continuations.c: Sort headers.
11588 * completer.h: Sort headers.
11589 * completer.c: Sort headers.
11590 * complaints.c: Sort headers.
11591 * coffread.c: Sort headers.
11592 * coff-pe-read.c: Sort headers.
11593 * cli-out.h: Sort headers.
11594 * cli-out.c: Sort headers.
11595 * charset.c: Sort headers.
11596 * c-varobj.c: Sort headers.
11597 * c-valprint.c: Sort headers.
11598 * c-typeprint.c: Sort headers.
11599 * c-lang.c: Sort headers.
11600 * buildsym.c: Sort headers.
11601 * buildsym-legacy.c: Sort headers.
11602 * build-id.h: Sort headers.
11603 * build-id.c: Sort headers.
11604 * btrace.c: Sort headers.
11605 * bsd-uthread.c: Sort headers.
11606 * breakpoint.h: Sort headers.
11607 * breakpoint.c: Sort headers.
11608 * break-catch-throw.c: Sort headers.
11609 * break-catch-syscall.c: Sort headers.
11610 * break-catch-sig.c: Sort headers.
11611 * blockframe.c: Sort headers.
11612 * block.c: Sort headers.
11613 * bfin-tdep.c: Sort headers.
11614 * bfin-linux-tdep.c: Sort headers.
11615 * bfd-target.c: Sort headers.
11616 * bcache.c: Sort headers.
11617 * ax-general.c: Sort headers.
11618 * ax-gdb.h: Sort headers.
11619 * ax-gdb.c: Sort headers.
11620 * avr-tdep.c: Sort headers.
11621 * auxv.c: Sort headers.
11622 * auto-load.c: Sort headers.
11623 * arm-wince-tdep.c: Sort headers.
11624 * arm-tdep.c: Sort headers.
11625 * arm-symbian-tdep.c: Sort headers.
11626 * arm-pikeos-tdep.c: Sort headers.
11627 * arm-obsd-tdep.c: Sort headers.
11628 * arm-nbsd-tdep.c: Sort headers.
11629 * arm-nbsd-nat.c: Sort headers.
11630 * arm-linux-tdep.c: Sort headers.
11631 * arm-linux-nat.c: Sort headers.
11632 * arm-fbsd-tdep.c: Sort headers.
11633 * arm-fbsd-nat.c: Sort headers.
11634 * arm-bsd-tdep.c: Sort headers.
11635 * arch-utils.c: Sort headers.
11636 * arc-tdep.c: Sort headers.
11637 * arc-newlib-tdep.c: Sort headers.
11638 * annotate.h: Sort headers.
11639 * annotate.c: Sort headers.
11640 * amd64-windows-tdep.c: Sort headers.
11641 * amd64-windows-nat.c: Sort headers.
11642 * amd64-tdep.c: Sort headers.
11643 * amd64-sol2-tdep.c: Sort headers.
11644 * amd64-obsd-tdep.c: Sort headers.
11645 * amd64-obsd-nat.c: Sort headers.
11646 * amd64-nbsd-tdep.c: Sort headers.
11647 * amd64-nbsd-nat.c: Sort headers.
11648 * amd64-nat.c: Sort headers.
11649 * amd64-linux-tdep.c: Sort headers.
11650 * amd64-linux-nat.c: Sort headers.
11651 * amd64-fbsd-tdep.c: Sort headers.
11652 * amd64-fbsd-nat.c: Sort headers.
11653 * amd64-dicos-tdep.c: Sort headers.
11654 * amd64-darwin-tdep.c: Sort headers.
11655 * amd64-bsd-nat.c: Sort headers.
11656 * alpha-tdep.c: Sort headers.
11657 * alpha-obsd-tdep.c: Sort headers.
11658 * alpha-nbsd-tdep.c: Sort headers.
11659 * alpha-mdebug-tdep.c: Sort headers.
11660 * alpha-linux-tdep.c: Sort headers.
11661 * alpha-linux-nat.c: Sort headers.
11662 * alpha-bsd-tdep.c: Sort headers.
11663 * alpha-bsd-nat.c: Sort headers.
11664 * aix-thread.c: Sort headers.
11665 * agent.c: Sort headers.
11666 * addrmap.c: Sort headers.
11667 * ada-varobj.c: Sort headers.
11668 * ada-valprint.c: Sort headers.
11669 * ada-typeprint.c: Sort headers.
11670 * ada-tasks.c: Sort headers.
11671 * ada-lang.c: Sort headers.
11672 * aarch64-tdep.c: Sort headers.
11673 * aarch64-ravenscar-thread.c: Sort headers.
11674 * aarch64-newlib-tdep.c: Sort headers.
11675 * aarch64-linux-tdep.c: Sort headers.
11676 * aarch64-linux-nat.c: Sort headers.
11677 * aarch64-fbsd-tdep.c: Sort headers.
11678 * aarch64-fbsd-nat.c: Sort headers.
11679 * aarch32-linux-nat.c: Sort headers.
11680
699bd4cf
TT
116812019-04-04 Tom Tromey <tom@tromey.com>
11682
11683 * varobj.c (varobj_create): Update.
11684 * rust-exp.y (struct rust_parser) <update_innermost_block,
11685 lookup_symbol>: New methods.
11686 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
11687 Rename.
11688 (rust_parser::rust_lookup_type)
11689 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
11690 * printcmd.c (display_command, do_one_display): Update.
11691 * parser-defs.h (struct parser_state) <parser_state>: Add
11692 "tracker" parameter.
11693 (block_tracker): New member.
11694 (class innermost_block_tracker) <innermost_block_tracker>: Add
11695 "types" parameter.
11696 <reset>: Remove method.
11697 (innermost_block): Don't declare.
11698 (null_post_parser): Update.
11699 * parse.c (innermost_block): Remove global.
11700 (write_dollar_variable): Update.
11701 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
11702 Remove "tracker_types" parameter.
11703 (parse_expression): Add "tracker" parameter.
11704 (parse_expression_for_completion): Update.
11705 (null_post_parser): Add "tracker" parameter.
11706 * p-exp.y: Update rules.
11707 * m2-exp.y: Update rules.
11708 * language.h (struct language_defn) <la_post_parser>: Add
11709 "tracker" parameter.
11710 * go-exp.y: Update rules.
11711 * f-exp.y: Update rules.
11712 * expression.h (parse_expression, parse_exp_1): Add "tracker"
11713 parameter.
11714 * d-exp.y: Update rules.
11715 * c-exp.y: Update rules.
11716 * breakpoint.c (set_breakpoint_condition): Create an
11717 innermost_block_tracker.
11718 (watch_command_1): Likewise.
11719 * ada-lang.c (resolve): Add "tracker" parameter.
11720 (resolve_subexp): Likewise.
11721 * ada-exp.y (write_var_from_sym): Update.
11722
dac43e32
TT
117232019-04-04 Tom Tromey <tom@tromey.com>
11724
11725 * type-stack.h: New file.
11726 * type-stack.c: New file.
11727 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
11728 type-stack.h.
11729 (insert_into_type_stack, insert_type, push_type, push_type_int)
11730 (insert_type_address_space, pop_type, pop_type_int)
11731 (pop_typelist, pop_type_stack, append_type_stack)
11732 (push_type_stack, get_type_stack, push_typelist)
11733 (follow_type_instance_flags, follow_types): Don't declare.
11734 * parse.c (type_stack): Remove global.
11735 (parse_exp_in_context): Update.
11736 (insert_into_type_stack, insert_type, push_type, push_type_int)
11737 (insert_type_address_space, pop_type, pop_type_int)
11738 (pop_typelist, pop_type_stack, append_type_stack)
11739 (push_type_stack, get_type_stack, push_typelist)
11740 (follow_type_instance_flags, follow_types): Remove (moved to
11741 type-stack.c).
11742 * f-exp.y (type_stack): New global.
11743 Update rules.
11744 (push_kind_type, f_parse): Update.
11745 * d-exp.y (type_stack): New global.
11746 Update rules.
11747 (d_parse): Update.
11748 * c-exp.y (struct c_parse_state) <type_stack>: New member.
11749 Update rules.
11750 * Makefile.in (COMMON_SFILES): Add type-stack.c.
11751 (HFILES_NO_SRCDIR): Add type-stack.h.
11752
2a612529
TT
117532019-04-04 Tom Tromey <tom@tromey.com>
11754
11755 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
11756 (rust_parser::convert_ast_to_expression, rust_parse)
11757 (rust_lex_test_completion, rust_lex_tests): Update.
11758 * parser-defs.h (struct expr_completion_state): New.
11759 (struct parser_state) <parser_state>: Add completion parameter.
11760 <mark_struct_expression, mark_completion_tag>: New methods.
11761 <parse_completion, m_completion_state>: New members.
11762 (prefixify_expression, null_post_parser): Update.
11763 (mark_struct_expression, mark_completion_tag): Don't declare.
11764 * parse.c (parse_completion, expout_last_struct)
11765 (expout_tag_completion_type, expout_completion_name): Remove
11766 globals.
11767 (parser_state::mark_struct_expression)
11768 (parser_state::mark_completion_tag): Now methods.
11769 (prefixify_expression): Add last_struct parameter.
11770 (prefixify_subexp): Likewise.
11771 (parse_exp_1): Update.
11772 (parse_exp_in_context): Add cstate parameter. Update.
11773 (parse_expression_for_completion): Create an
11774 expr_completion_state.
11775 (null_post_parser): Add "completion" parameter.
11776 * p-exp.y: Update rules.
11777 (yylex): Update.
11778 * language.h (struct language_defn) <la_post_parser>: Add
11779 "completing" parameter.
11780 * go-exp.y: Update rules.
11781 (lex_one_token): Update.
11782 * expression.h (parse_completion): Don't declare.
11783 * d-exp.y: Update rules.
11784 (lex_one_token): Update rules.
11785 * c-exp.y: Update rules.
11786 (lex_one_token): Update.
11787 * ada-lang.c (resolve): Add "parse_completion" parameter.
11788 (resolve_subexp): Likewise.
11789 (ada_resolve_function): Likewise.
11790
43476f0b
TT
117912019-04-04 Tom Tromey <tom@tromey.com>
11792
11793 * parser-defs.h (struct parser_state) <start_arglist,
11794 end_arglist>: New methods.
11795 <arglist_len, m_funcall_chain>: New members.
11796 (arglist_len, start_arglist, end_arglist): Don't declare.
11797 * parse.c (arglist_len, funcall_chain): Remove global.
11798 (start_arglist, end_arglist): Remove functions.
11799 (parse_exp_in_context): Update.
11800 * p-exp.y: Update rules.
11801 * m2-exp.y: Update rules.
11802 * go-exp.y: Update rules.
11803 * f-exp.y: Update rules.
11804 * d-exp.y: Update rules.
11805 * c-exp.y: Update rules.
11806
5776fca3
TT
118072019-04-04 Tom Tromey <tom@tromey.com>
11808
11809 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
11810 lex_operator, push_back>: New methods.
11811 Update all rules.
11812 (rust_parser::lex_hex, lex_escape): Rename and update.
11813 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
11814 (rust_parser::lex_operator): Rename and update.
11815 (rust_parser::lex_number, rustyylex, rustyyerror)
11816 (rust_lex_test_init, rust_lex_test_sequence)
11817 (rust_lex_test_push_back, rust_lex_tests): Update.
11818 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
11819 parameter.
11820 <lexptr, prev_lexptr>: New members.
11821 (lexptr, prev_lexptr): Don't declare.
11822 * parse.c (lexptr, prev_lexptr): Remove globals.
11823 (parse_exp_in_context): Update.
11824 * p-exp.y (yylex, yyerror): Update.
11825 * m2-exp.y (parse_number, yylex, yyerror): Update.
11826 * go-exp.y (lex_one_token, yyerror): Update.
11827 * f-exp.y (match_string_literal, yylex, yyerror): Update.
11828 * d-exp.y (lex_one_token, yyerror): Update.
11829 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
11830 (lex_one_token, yyerror): Update.
11831 * ada-lex.l (YY_INPUT): Update.
11832 (rewind_to_char): Update.
11833 * ada-exp.y (yyerror): Update.
11834
8621b685
TT
118352019-04-04 Tom Tromey <tom@tromey.com>
11836
11837 * rust-exp.y (rustyylex, rust_lex_tests): Update.
11838 * parser-defs.h (struct parser_state) <parser_state>: Add new
11839 parameter.
11840 <comma_terminates>: New member.
11841 (comma_terminates): Don't declare global.
11842 * parse.c (comma_terminates): Remove global.
11843 (parse_exp_in_context): Update.
11844 * p-exp.y (yylex): Update.
11845 * m2-exp.y (yylex): Update.
11846 * go-exp.y (lex_one_token): Update.
11847 * f-exp.y (yylex): Update.
11848 * d-exp.y (lex_one_token): Update.
11849 * c-exp.y (lex_one_token): Update.
11850 * ada-lex.l: Update.
11851
28aaf3fd
TT
118522019-04-04 Tom Tromey <tom@tromey.com>
11853
11854 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
11855 (rustyylex, rust_lex_test_init, rust_lex_test_one)
11856 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
11857 * parser-defs.h (paren_depth): Don't declare.
11858 * parse.c (paren_depth): Remove global.
11859 (parse_exp_in_context): Update.
11860 * p-exp.y (paren_depth): New global.
11861 (pascal_parse): Initialize it.
11862 * m2-exp.y (paren_depth): New global.
11863 (m2_parse): Initialize it.
11864 * go-exp.y (paren_depth): New global.
11865 (go_parse): Initialize it.
11866 * f-exp.y (paren_depth): New global.
11867 (f_parse): Initialize it.
11868 * d-exp.y (paren_depth): New global.
11869 (d_parse): Initialize it.
11870 * c-exp.y (paren_depth): New global.
11871 (c_parse): Initialize it.
11872 * ada-lex.l (paren_depth): New global.
11873 (lexer_init): Initialize it.
11874
1e58a4a4
TT
118752019-04-04 Tom Tromey <tom@tromey.com>
11876
11877 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
11878 (rust_parser::convert_ast_to_type)
11879 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
11880 * parser-defs.h (struct parser_state) <parser_state>: Add
11881 parameters. Initialize new members.
11882 <expression_context_block, expression_context_pc>: New members.
11883 * parse.c (expression_context_block, expression_context_pc):
11884 Remove globals.
11885 (parse_exp_in_context): Update.
11886 * p-exp.y: Update all rules.
11887 (yylex): Update.
11888 * m2-exp.y: Update all rules.
11889 (yylex): Update.
11890 * go-exp.y (yylex): Update.
11891 * f-exp.y (yylex): Update.
11892 * d-exp.y: Update all rules.
11893 (yylex): Update.
11894 * c-exp.y: Update all rules.
11895 (lex_one_token, classify_name, yylex, c_parse): Update.
11896 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
11897
37eedb39
TT
118982019-04-04 Tom Tromey <tom@tromey.com>
11899
11900 * gdbarch.h, gdbarch.c: Rebuild.
11901 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
11902 * stap-probe.h:
11903 (struct stap_parse_info): Replace "parser_state" with
11904 "expr_builder".
11905 * parser-defs.h (struct expr_builder): Rename from "parser_state".
11906 (parser_state): New class.
11907 * parse.c (expr_builder): Rename.
11908 (expr_builder::release): Rename.
11909 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
11910 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
11911 (write_exp_elt_longcst, write_exp_elt_floatcst)
11912 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
11913 (write_exp_string_vector, write_exp_bitstring)
11914 (write_exp_msymbol, mark_struct_expression)
11915 (write_dollar_variable)
11916 (insert_type_address_space, increase_expout_size): Replace
11917 "parser_state" with "expr_builder".
11918 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
11919 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
11920 "parser_state" with "expr_builder".
11921
73923d7e
TT
119222019-04-04 Tom Tromey <tom@tromey.com>
11923
11924 * rust-exp.y: Replace "parse_language" with method call.
11925 * p-exp.y:
11926 (yylex): Replace "parse_language" with method call.
11927 * m2-exp.y:
11928 (yylex): Replace "parse_language" with method call.
11929 * go-exp.y (classify_name): Replace "parse_language" with method
11930 call.
11931 * f-exp.y (yylex): Replace "parse_language" with method call.
11932 * d-exp.y (lex_one_token): Replace "parse_language" with method
11933 call.
11934 * c-exp.y:
11935 (lex_one_token, classify_name, yylex): Replace "parse_language"
11936 with method call.
11937 * ada-exp.y (find_primitive_type, type_char)
11938 (type_system_address): Replace "parse_language" with method call.
11939
fa9f5be6
TT
119402019-04-04 Tom Tromey <tom@tromey.com>
11941
11942 * rust-exp.y: Replace "parse_gdbarch" with method call.
11943 * parse.c (write_dollar_variable, insert_type_address_space):
11944 Replace "parse_gdbarch" with method call.
11945 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
11946 call.
11947 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
11948 call.
11949 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
11950 "parse_gdbarch" with method call.
11951 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
11952 with method call.
11953 * f-exp.y (parse_type, parse_f_type, yylex): Replace
11954 "parse_gdbarch" with method call.
11955 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
11956 "parse_gdbarch" with method call.
11957 * c-exp.y (parse_type, parse_number, classify_name): Replace
11958 "parse_gdbarch" with method call.
11959 * ada-lex.l: Replace "parse_gdbarch" with method call.
11960 * ada-exp.y (parse_type, find_primitive_type, type_char)
11961 (type_system_address): Replace "parse_gdbarch" with method call.
11962
1201a264
TT
119632019-04-04 Tom Tromey <tom@tromey.com>
11964
11965 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
11966 * stap-probe.c (stap_parse_argument): Update.
11967 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
11968 initial_size parameter.
11969 * rust-exp.y (rust_lex_tests): Update.
11970 * parse.c (parser_state): Update.
11971 (parse_exp_in_context): Update.
11972 * parser-defs.h (struct parser_state) <parser_state>: Remove
11973 "initial_size" parameter.
11974
e3980ce2
TT
119752019-04-04 Tom Tromey <tom@tromey.com>
11976
11977 * parser-defs.h (increase_expout_size): Don't declare.
11978 * parse.c (increase_expout_size): Now static.
11979
e9f8e3f1
TS
119802019-04-04 Thomas Schwinge <thomas@codesourcery.com>
11981
11982 * gnu-nat.c (gnu_nat_target::wait): Fix
11983 target_waitstatus_to_string call.
11984
d7df6549
AB
119852019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
11986
11987 * eval.c (evaluate_subexp_standard): Handle internal functions
11988 during Fortran function call handling.
11989
8bdc1658
AB
119902019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
11991
11992 * NEWS: Mention new internal functions.
11993 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
11994 (read_base_type): Use dwarf2_init_complex_target_type.
11995 * value.c (creal_internal_fn): New function.
11996 (cimag_internal_fn): New function.
11997 (_initialize_values): Register new internal functions.
11998
c29705b7
PW
119992019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12000
12001 * infrun.c (stop_all_threads): If debug_infrun, always
12002 trace the wait status after wait_one, using
12003 target_waitstatus_to_string and target_pid_to_str.
12004 (handle_inferior_event): Replace various trace of
12005 wait status kind by a single trace.
12006 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
12007 wait status kind image by target_waitstatus_to_string.
12008 * target/waitstatus.c (target_waitstatus_to_string): Fix
12009 obsolete comment.
12010
05caa1d2
TT
120112019-04-01 Tom Tromey <tromey@adacore.com>
12012
12013 PR symtab/23331:
12014 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
12015
9d1447e0
SDJ
120162019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
12017 Pedro Alves <palves@redhat.com>
12018
12019 * top.c (quit_force): Call 'finalize_values'.
12020 * value.c (finalize_values): New function.
12021 * value.h (finalize_values): Declare.
12022
7734102d
EZ
120232019-03-30 Eli Zaretskii <eliz@gnu.org>
12024
12025 * NEWS: Announce $_gdb_major and $_gdb_minor.
12026
12027 * top.c (init_gdb_version_vars): New function.
12028 (gdb_init): Call init_gdb_version_vars.
12029
188e1fa9
TT
120302019-03-29 Tom Tromey <tromey@adacore.com>
12031
12032 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
12033 help text. Remove dead code.
12034
2880242d
KS
120352019-03-29 Keith Seitz <keiths@redhat.com>
12036
12037 From Siddhesh Poyarekar:
12038 * f-lang.h (f77_get_upperbound): Return LONGEST.
12039 (f77_get_lowerbound): Likewise.
12040 * f-typeprint.c (f_type_print_varspec_suffix): Expand
12041 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
12042 print them.
12043 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
12044 plongest to format print it.
12045 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
12046 (f77_get_upperbound): Likewise.
12047 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
12048 LOWER_BOUND to LONGEST.
12049 (f77_create_arrayprint_offset_tbl): Likewise.
12050
cc1defb1
KS
120512019-03-29 Keith Seitz <keiths@redhat.com>
12052
12053 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
12054 %s/pulongest for TYPE_LENGTH instead of %d in format
12055 strings.
12056 * ada-typerint.c (ada_print_type): Likewise.
12057 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
12058 * compile/compile-c-support.c (generate_register_struct): Likewise.
12059 * gdbtypes.c (recursive_dump_type): Likewise.
12060 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
12061 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
12062 instead of %d in format strings.
12063 * riscv-tdep.c (riscv_type_alignment): Cast second argument
12064 to std::min to ULONGEST.
12065 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
12066 instead of %d in format strings.
12067 * tracepoint.c (info_scope_command): Likewise.
12068 * typeprint.c (print_offset_data::update)
12069 (print_offset_data::finish): Likewise.
12070 * xtensa-tdep.c (xtensa_store_return_value)
12071 (xtensa_push_dummy_call): Likewise.
12072
e432ccf1
JT
120732019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
12074
12075 * windows-nat.c (display_selector): Fixed format specifications
12076 for 64-bit Cygwin.
12077
65d2b333
PW
120782019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12079
12080 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
12081
f489207e
SL
120822019-03-28 Sandra Loosemore <sandra@codesourcery.com>
12083
12084 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
12085 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
12086 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
12087 (nios2_linux_init_abi): Install it.
12088
bffa1015
AH
120892019-03-28 Alan Hayward <alan.hayward@arm.com>
12090
12091 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
12092
fc96163a
AH
120932019-03-28 Alan Hayward <alan.hayward@arm.com>
12094
12095 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
12096
20dc7e9b
PW
120972019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12098 Tom Tromey <tromey@adacore.com>
12099
12100 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
12101
7f5331a8
JB
121022019-03-26 Joel Brobecker <brobecker@adacore.com>
12103
12104 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
12105 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
12106 method to compute the bounds of range types. Also print "[evaluated]"
12107 if the bounds' values come from a dynamic evaluation.
12108
18c77628
AB
121092019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
12110
12111 * cp-valprint.c (cp_print_value_fields): Don't print trailing
12112 whitespace when pretty printing is on.
12113
53c973f2
AH
121142019-03-26 Alan Hayward <alan.hayward@arm.com>
12115
e79be6e5 12116 * ppc-linux-nat.c: Add include.
53c973f2 12117
d851aa71
AH
121182019-03-26 Alan Hayward <alan.hayward@arm.com>
12119
e79be6e5 12120 * NEWS: Mention AArch64 Pointer Authentication.
d851aa71 12121
2fe7bab7
AH
121222019-03-26 Alan Hayward <alan.hayward@arm.com>
12123
e79be6e5 12124 * arm-linux-nat.c: Add include.
2fe7bab7 12125
068ef30e
SM
121262019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
12127
12128 * source-cache.c (source_cache::get_source_lines): Re-read
12129 fullname after calling open_source_file.
12130
81a24d04
JB
121312019-03-25 John Baldwin <jhb@FreeBSD.org>
12132
12133 * NEWS: Mention TLS support for FreeBSD.
12134
79e7ae11
TT
121352019-03-25 Tom Tromey <tromey@adacore.com>
12136
12137 * minsyms.c (BUNCH_SIZE): Update comment.
12138 (~minimal_symbol_reader): Remove old comment.
12139 (compact_minimal_symbols): Update comment.
12140 (minimal_symbol_reader::install): Remove old comment. Update
12141 other comments.
12142
d45963c2
AH
121432019-03-25 Alan Hayward <alan.hayward@arm.com>
12144
12145 * s390-linux-nat.c: Add include.
12146
0f83012e
AH
121472019-03-25 Alan Hayward <alan.hayward@arm.com>
12148
12149 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
12150 Call linux_get_hwcap.
12151 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
12152 Likewise.
12153 (aarch64_linux_get_hwcap): Remove function.
12154 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
12155 declaration.
12156 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
12157 linux_get_hwcap.
12158 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
12159 * linux-tdep.c (linux_get_hwcap): Add function.
12160 (linux_get_hwcap2): Likewise.
12161 * linux-tdep.h (linux_get_hwcap): Add declaration.
12162 (linux_get_hwcap2): Likewise.
12163 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
12164 (ppc_linux_get_hwcap2): Likewise.
12165 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
12166 linux_get_hwcap.
12167 (ppc_linux_nat_target::insert_watchpoint): Likewise.
12168 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
12169 (ppc_linux_nat_target::read_description): Likewise.
12170 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
12171 * s390-linux-nat.c: Likewise.
12172 * s390-linux-tdep.c (s390_core_read_description): Likewise.
12173
6640a367
TT
121742019-03-24 Tom Tromey <tom@tromey.com>
12175
12176 * ada-lang.c (standard_lookup): Simplify initialization.
12177 (ada_lookup_symbol_nonlocal): Simplify return.
12178 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
12179 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
12180 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
12181 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
12182 initialization.
12183 * solib.c (solib_global_lookup): Simplify.
12184 * symtab.c (null_block_symbol): Remove.
12185 (symbol_cache_lookup): Simplify returns.
12186 (lookup_language_this): Simplify returns.
12187 (lookup_symbol_aux): Simplify return.
12188 (lookup_local_symbol): Simplify returns.
12189 (lookup_global_symbol_from_objfile): Simplify return.
12190 (lookup_symbol_in_objfile_symtabs)
12191 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
12192 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
12193 (lookup_static_symbol, lookup_global_symbol): Simplify return.
12194 * cp-namespace.c (cp_lookup_bare_symbol)
12195 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
12196 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
12197 (cp_lookup_nested_symbol): Don't use null_block_symbol.
12198 (cp_lookup_symbol_via_imports): Simplify initialization.
12199 (find_symbol_in_baseclass): Likewise.
12200 * symtab.h (null_block_symbol): Remove.
12201 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
12202 (d_lookup_nested_symbol, d_lookup_symbol_imports)
12203 (d_lookup_symbol_module): Likewise.
12204 (find_symbol_in_baseclass): Simplify initialization.
12205
a930ebcd
TT
122062019-03-24 Tom Tromey <tom@tromey.com>
12207
12208 * expression.h: Don't include symtab.h.
12209 (struct block): Forward declare.
12210
582942f4
TT
122112019-03-24 Tom Tromey <tom@tromey.com>
12212
12213 * c-exp.y (typebase): Remove casts.
12214 * gdbtypes.c (lookup_unsigned_typename, )
12215 (lookup_signed_typename): Remove cast.
12216 * eval.c (parse_to_comma_and_eval): Remove cast.
12217 * parse.c (write_dollar_variable): Remove cast.
12218 * block.h (struct block) <superblock>: Now const.
12219 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
12220 * psymtab.c (psym_map_matching_symbols): Make "block" const.
12221 (map_block): Make "block" const.
12222 * symfile.h (struct quick_symbol_functions)
12223 <map_matching_symbols>: Constify block argument to "callback".
12224 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
12225 const.
12226 (find_pc_sect_compunit_symtab): Make "b" const.
12227 (find_symbol_at_address): Likewise.
12228 (search_symbols): Likewise.
12229 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
12230 (dw2_debug_names_lookup_symbol): Likewise.
12231 (dw2_map_matching_symbols): Update.
12232 * p-valprint.c (pascal_val_print): Remove "block".
12233 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
12234 (aux_add_nonlocal_symbols): Make "block" const.
12235 (resolve_subexp): Remove cast.
12236 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
12237 const.
12238 (iterate_over_file_blocks): Likewise.
12239 * f-exp.y (%union) <bval>: Remove.
12240 * coffread.c (patch_opaque_types): Make "b" const.
12241 * spu-tdep.c (spu_catch_start): Make "block" const.
12242 * c-valprint.c (print_unpacked_pointer): Remove "block".
12243 * symmisc.c (dump_symtab_1): Make "b" const.
12244 (block_depth): Make "block" const.
12245 * d-exp.y (%union) <bval>: Remove.
12246 * cp-support.h (cp_lookup_rtti_type): Update.
12247 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
12248 * psymtab.c (psym_lookup_symbol): Make "block" const.
12249 (maintenance_check_psymtabs): Make "b" const.
12250 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
12251 (enumerate_locals, enumerate_args): Update.
12252 * python/py-symtab.c (stpy_global_block): Make "block" const.
12253 (stpy_static_block): Likewise.
12254 * inline-frame.c (block_starting_point_at): Make "new_block"
12255 const.
12256 * block.c (find_block_in_blockvector): Make return type const.
12257 (blockvector_for_pc_sect): Make "b" const.
12258 (find_block_in_blockvector): Make "b" const.
12259
7ad417dd
TT
122602019-03-23 Tom Tromey <tom@tromey.com>
12261
12262 * varobj.c (varobj_create): Update.
12263 * symfile.c (clear_symtab_users): Don't reset innermost_block.
12264 * printcmd.c (display_command, do_one_display): Don't reset
12265 innermost_block.
12266 * parser-defs.h (enum innermost_block_tracker_type): Move to
12267 expression.h.
12268 (innermost_block): Update comment.
12269 * parse.c (parse_exp_1): Add tracker_types parameter.
12270 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
12271 tracker_types parameter. Reset innermost_block.
12272 (parse_exp_in_context): Remove.
12273 (parse_expression_for_completion): Update.
12274 * objfiles.c (~objfile): Don't reset expression_context_block or
12275 innermost_block.
12276 * expression.h (enum innermost_block_tracker_type): Move from
12277 parser-defs.h.
12278 (parse_exp_1): Add tracker_types parameter.
12279 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
12280 reset innermost_block.
12281
b366c208
TT
122822019-03-23 Tom Tromey <tom@tromey.com>
12283
12284 * objfiles.h: Include bcache.h.
12285
9bb9b2f9
TT
122862019-03-23 Tom Tromey <tom@tromey.com>
12287
12288 * linespec.c (get_current_search_block): Use
12289 scoped_restore_current_language.
12290 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
12291
59c28372
AH
122922019-03-22 Alan Hayward <alan.hayward@arm.com>
12293 Jiong Wang <jiong.wang@arm.com>
12294
12295 * aarch64-linux-tdep.c
12296 (aarch64_linux_iterate_over_regset_sections): Check for pauth
12297 section.
12298 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
12299
17e116a7
AH
123002019-03-22 Alan Hayward <alan.hayward@arm.com>
12301 Jiong Wang <jiong.wang@arm.com>
12302
12303 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
12304 instructions.
12305 (aarch64_analyze_prologue_test): Add PACIASP test.
12306 (aarch64_prologue_prev_register): Unmask PC value.
12307
11e1b75f
AH
123082019-03-22 Alan Hayward <alan.hayward@arm.com>
12309 Jiong Wang <jiong.wang@arm.com>
12310
12311 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
12312 (aarch64_dwarf2_prev_register): Unmask PC value.
12313 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
12314 (aarch64_execute_dwarf_cfa_vendor_op): Check for
12315 DW_CFA_AARCH64_negate_ra_state.
12316 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
12317
34dcc7cf
AH
123182019-03-22 Alan Hayward <alan.hayward@arm.com>
12319 Jiong Wang <jiong.wang@arm.com>
12320
12321 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
12322 registers.
12323 (aarch64_pseudo_register_name): Likewise.
12324 (aarch64_pseudo_register_type): Likewise.
12325 (aarch64_pseudo_register_reggroup_p): Likewise.
12326 (aarch64_gdbarch_init): Add pauth registers.
12327 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
12328 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
12329 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
12330 (struct gdbarch_tdep): Add regnum for ra_state.
12331
1ef53e6b
AH
123322019-03-22 Alan Hayward <alan.hayward@arm.com>
12333 Jiong Wang <jiong.wang@arm.com>
12334
12335 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
12336
76bed0fd
AH
123372019-03-22 Alan Hayward <alan.hayward@arm.com>
12338 Jiong Wang <jiong.wang@arm.com>
12339
12340 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
12341 function.
12342 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
12343 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
12344 (aarch64_gdbarch_init): Add puth registers.
12345 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
12346 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
12347 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
12348
ee4fbcfa
AH
123492019-03-22 Alan Hayward <alan.hayward@arm.com>
12350 Jiong Wang <jiong.wang@arm.com>
12351
12352 * aarch64-linux-nat.c
12353 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
12354 * aarch64-linux-tdep.c
12355 (aarch64_linux_core_read_description): Likewise.
12356 (aarch64_linux_get_hwcap): New function.
12357 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
12358 (aarch64_linux_get_hwcap): New declaration.
12359
6dc0ebde
AH
123602019-03-22 Alan Hayward <alan.hayward@arm.com>
12361 Jiong Wang <jiong.wang@arm.com>
12362
12363 * aarch64-linux-nat.c
12364 (aarch64_linux_nat_target::read_description): Add pauth param.
12365 * aarch64-linux-tdep.c
12366 (aarch64_linux_core_read_description): Likewise.
12367 * aarch64-tdep.c (struct target_desc): Add in pauth.
12368 (aarch64_read_description): Add pauth param.
12369 (aarch64_gdbarch_init): Likewise.
12370 * aarch64-tdep.h (aarch64_read_description): Likewise.
12371 * arch/aarch64.c (aarch64_create_target_description): Likewise.
12372 * arch/aarch64.h (aarch64_create_target_description): Likewise.
12373 * features/Makefile: Add new files.
12374 * features/aarch64-pauth.c: New file.
12375 * features/aarch64-pauth.xml: New file.
12376
595915c1
TT
123772019-03-20 Tom Tromey <tromey@adacore.com>
12378
12379 * infrun.c (handle_inferior_event): Rename from
12380 handle_inferior_event_1. Create a scoped_value_mark.
12381 (handle_inferior_event): Remove.
12382
4c7d57e7
TT
123832019-03-19 Tom Tromey <tromey@adacore.com>
12384
12385 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
12386 * infrun.h (print_stop_event): Add "displays" parameter.
12387 * infrun.c (print_stop_event): Add "displays" parameter.
12388
cb246234
PA
123892019-03-19 Pedro Alves <palves@redhat.com>
12390
12391 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
12392 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
12393 to -1. Fix TABs vs spaces.
12394 (tui_ui_out::tui_ui_out): Don't initialize fields here.
12395 * tui/tui-out.h (tui_ui_out) Add intro comments.
12396 <m_line, m_start_of_line>: In-class initialize, and add describing
12397 comment.
12398
3a0e45b2
AH
123992019-03-18 Alan Hayward <alan.hayward@arm.com>
12400
12401 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
12402 variable names.
12403 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
12404
5371b850
PA
124052019-03-18 Pedro Alves <palves@redhat.com>
12406 Eli Zaretskii <eliz@gnu.org>
12407
12408 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
12409 m_line and m_start_of_line.
12410
b17c4cd0
EZ
124112019-03-18 Eli Zaretskii <eliz@gnu.org>
12412
12413 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
12414 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
12415 it returns a newline. This fixes a regression in TU mode, whereby
12416 the next line is output on the same screen line as the user input.
12417
4bd56d18
TT
124182019-03-18 Tom Tromey <tromey@adacore.com>
12419
12420 * minsyms.c (minimal_symbol_reader::install): Remove call to
12421 obstack_blank.
12422
55c10aca
PA
124232019-03-18 Pedro Alves <palves@redhat.com>
12424
12425 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
12426 New globals.
12427 (apply_style): New, factored out from ...
12428 (apply_ansi_escape): ... this. Handle reverse video mode.
12429 (tui_set_reverse_mode): New function.
12430 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
12431 * tui/tui-winsource.c (tui_show_source_line): Use
12432 tui_set_reverse_mode instead of setting A_STANDOUT.
12433 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
12434 New setter methods.
12435
647bb750
HD
124362019-03-18 Hannes Domani <ssbssa@yahoo.de>
12437
12438 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
12439 Handle tabs.
12440
bff8c71f
TT
124412019-03-18 Tom Tromey <tromey@adacore.com>
12442
12443 * ada-lang.c (empty_array): Add "high" parameter.
12444 (ada_evaluate_subexp): Update.
12445
58785d98
ST
124462019-03-17 Sergei Trofimovich <siarheit@google.com>
12447
12448 * unittests/string_view-selftests.c: Define
12449 _initialize_string_view_selftests unconditionally.
12450
d4cbef22
ВМ
124512019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
12452
12453 PR gdb/24350
12454 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
12455
fce4c071
ВМ
124562019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
12457
12458 PR gdb/24351
12459 * windows-nat.c (display_selector): Fix format specifiers.
12460
f7f0a123
EZ
124612019-03-17 Eli Zaretskii <eliz@gnu.org>
12462
12463 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
12464 tui_refill_source_window instead of tui_refresh_win, to update the
12465 current execution line. This fixes redisplay of the current line
12466 when stepping through the code with "next" or "step".
12467
ab42892f
EZ
124682019-03-16 Eli Zaretskii <eliz@gnu.org>
12469
12470 * source-cache.c (source_cache::get_source_lines): Call
12471 find_source_lines to initialize s->nlines. This fixes vertical
12472 scrolling of TUI source window when the DOWN arrow is pressed.
12473
8d8c087f
PW
124742019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12475
12476 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
12477 linux-thread-db.c (_initialize_thread_db): Likewise.
12478
798e1c30
EZ
124792019-03-16 Eli Zaretskii <eliz@gnu.org>
12480
12481 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
12482 wclrtoeol in tui_show_source_line". This reverts changes made in
12483 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
12484
eefba3da
TT
124852019-03-15 Tom Tromey <tom@tromey.com>
12486
12487 * symtab.h (struct minimal_symbol): Derive from
12488 general_symbol_info.
12489 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
12490 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
12491 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
12492 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
12493 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
12494 (MSYMBOL_SEARCH_NAME): Update.
12495 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
12496 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
12497 * minsyms.c (minimal_symbol_reader::record_full): Update.
12498
0de2420c
TT
124992019-03-15 Tom Tromey <tom@tromey.com>
12500
12501 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
12502
042d75e4
TT
125032019-03-15 Tom Tromey <tom@tromey.com>
12504
12505 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
12506 unique_xmalloc_ptr.
12507 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
12508 Update.
12509 * minsyms.c (lookup_minimal_symbol_by_pc_section)
12510 (build_minimal_symbol_hash_tables)
12511 (minimal_symbol_reader::install): Update.
12512
db92718b
TT
125132019-03-15 Tom Tromey <tom@tromey.com>
12514
12515 * symtab.c (create_demangled_names_hash): Update.
12516 (symbol_set_names): Update.
12517 * objfiles.h (struct objfile_per_bfd_storage)
12518 <demangled_names_hash>: Now an htab_up.
12519 * objfiles.c (objfile_per_bfd_storage): Simplify.
12520
d6797f46
TT
125212019-03-15 Tom Tromey <tom@tromey.com>
12522
12523 * objfiles.h (struct objfile_per_bfd_storage): Declare
12524 destructor.
12525 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
12526 New.
12527 (get_objfile_bfd_data): Use new. Don't initialize
12528 language_of_main.
12529 (free_objfile_per_bfd_storage): Remove.
12530 (objfile_bfd_data_free, objfile::~objfile): Use delete.
12531
741d7538
TT
125322019-03-15 Tom Tromey <tom@tromey.com>
12533
12534 * symfile.c (reread_symbols): Update.
12535 * objfiles.c (objfile::objfile): Update.
12536 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
12537 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
12538 comment.
12539 (minimal_symbol_reader::install): Update.
12540 (terminate_minimal_symbol_table): Remove.
12541 * jit.c (jit_object_close_impl): Update.
12542
788c80d1
TT
125432019-03-15 Tom Tromey <tom@tromey.com>
12544
12545 * minsyms.c (minimal_symbol_reader::record_full): Remove some
12546 initializations.
12547
1b7a07cb
TT
125482019-03-15 Tom Tromey <tom@tromey.com>
12549
12550 * objfiles.h (struct objfile_per_bfd_storage)
12551 <demangled_hash_languages>: Now a bitset.
12552 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
12553 (lookup_minimal_symbol): Update.
12554
3db066bc
TT
125552019-03-15 Tom Tromey <tom@tromey.com>
12556
12557 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
12558 Don't return the symbol.
12559 * coffread.c (record_minimal_symbol): Use record_full.
12560
3fff2c37
EZ
125612019-03-14 Eli Zaretskii <eliz@gnu.org>
12562
12563 The MS-Windows port of ncurses fails to switch to a color pair if
12564 one or both of the colors are the implicit default colors. This
12565 change records the default colors when TUI is initialized, and
12566 then specifies them explicitly when a color pair uses the default
12567 colors. This allows color styling in TUI mode on MS-Windows.
12568
12569 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
12570 ncurses_norm_attr.
12571 (tui_initialize_io) [__MINGW32__]: Record the default terminal
12572 colors in ncurses_norm_attr.
12573 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
12574 "none", replace it with the default color recorded in
12575 ncurses_norm_attr.
12576
3b336828
TT
125772019-03-14 Tom Tromey <tromey@adacore.com>
12578
12579 * source-cache.h (class source_cache) <get_source_lines>: Return
12580 std::string.
12581 * source-cache.c (source_cache::extract_lines): Handle case where
12582 first_pos==npos. Return std::string.
12583 (source_cache::get_source_lines): Update.
12584
d085f989
TT
125852019-03-14 Tom Tromey <tromey@adacore.com>
12586
12587 * NEWS: Add item for "style sources" commands.
12588 * source-cache.c (source_cache::get_source_lines): Check
12589 source_styling.
12590 * cli/cli-style.c (source_styling): New global.
12591 (_initialize_cli_style): Add "style sources" commands.
12592 (show_style_sources): New function.
12593 * cli/cli-style.h (source_styling): Declare.
12594
6f11e682
TT
125952019-03-14 Pedro Alves <palves@redhat.com>
12596 Tom Tromey <tromey@adacore.com>
12597
12598 * tui/tui-winsource.h (tui_refill_source_window): Declare.
12599 * tui/tui-winsource.c (tui_refill_source_window): New function,
12600 from...
12601 (tui_horizontal_source_scroll): ... here. Move some logic.
12602 * cli/cli-style.c (set_style_enabled): Notify new observable.
12603 * tui/tui-hooks.c (tui_redisplay_source): New function.
12604 (tui_attach_detach_observers): Attach or detach
12605 tui_redisplay_source.
12606 * observable.h (source_styling_changed): New observable.
12607 * observable.c: Define source_styling_changed observable.
12608
a068643d
TT
126092019-03-13 Tom Tromey <tromey@adacore.com>
12610
12611 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
12612 (i386_gnu_nat_target::store_registers): Update.
12613 * target-debug.h (target_debug_print_std_string): New macro.
12614 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
12615 * windows-tdep.c (display_one_tib): Update.
12616 * tui/tui-stack.c (tui_make_status_line): Update.
12617 * top.c (print_inferior_quit_action): Update.
12618 * thread.c (thr_try_catch_cmd): Update.
12619 (add_thread_with_info): Update.
12620 (thread_target_id_str): Update.
12621 (thr_try_catch_cmd): Update.
12622 (thread_command): Update.
12623 (thread_find_command): Update.
12624 * record-btrace.c (record_btrace_target::info_record)
12625 (record_btrace_resume_thread, record_btrace_target::resume)
12626 (record_btrace_cancel_resume, record_btrace_step_thread)
12627 (record_btrace_target::wait, record_btrace_target::wait)
12628 (record_btrace_target::wait, record_btrace_target::stop): Update.
12629 * progspace.c (print_program_space): Update.
12630 * process-stratum-target.c
12631 (process_stratum_target::thread_address_space): Update.
12632 * linux-fork.c (linux_fork_mourn_inferior)
12633 (detach_checkpoint_command, info_checkpoints_command)
12634 (linux_fork_context): Update.
12635 (linux_fork_detach): Update.
12636 (class scoped_switch_fork_info): Update.
12637 (delete_checkpoint_command): Update.
12638 * infrun.c (follow_fork_inferior): Update.
12639 (follow_fork_inferior): Update.
12640 (proceed_after_vfork_done): Update.
12641 (handle_vfork_child_exec_or_exit): Update.
12642 (follow_exec): Update.
12643 (displaced_step_prepare_throw): Update.
12644 (displaced_step_restore): Update.
12645 (start_step_over): Update.
12646 (resume_1): Update.
12647 (clear_proceed_status_thread): Update.
12648 (proceed): Update.
12649 (print_target_wait_results): Update.
12650 (do_target_wait): Update.
12651 (context_switch): Update.
12652 (stop_all_threads): Update.
12653 (restart_threads): Update.
12654 (finish_step_over): Update.
12655 (handle_signal_stop): Update.
12656 (switch_back_to_stepped_thread): Update.
12657 (keep_going_pass_signal): Update.
12658 (print_exited_reason): Update.
12659 (normal_stop): Update.
12660 * inferior.c (inferior_pid_to_str): Change return type.
12661 (print_selected_inferior): Update.
12662 (add_inferior): Update.
12663 (detach_inferior): Update.
12664 * dummy-frame.c (fprint_dummy_frames): Update.
12665 * dcache.c (dcache_info_1): Update.
12666 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
12667 (btrace_fetch, btrace_clear): Update.
12668 * linux-tdep.c (linux_core_pid_to_str): Change return type.
12669 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
12670 type.
12671 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
12672 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
12673 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
12674 * gdbarch.c, gdbarch.h: Rebuild.
12675 * gdbarch.sh (core_pid_to_str): Change return type.
12676 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
12677 return type.
12678 (windows_nat_target::pid_to_str): Change return type.
12679 (windows_delete_thread): Update.
12680 (windows_nat_target::attach): Update.
12681 (windows_nat_target::files_info): Update.
12682 * target-delegates.c: Rebuild.
12683 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
12684 return type.
12685 (sol_thread_target::pid_to_str): Change return type.
12686 * remote.c (class remote_target) <pid_to_str>: Change return
12687 type.
12688 (remote_target::pid_to_str): Change return type.
12689 (extended_remote_target::attach, remote_target::remote_stop_ns)
12690 (remote_target::remote_notif_remove_queued_reply)
12691 (remote_target::push_stop_reply, remote_target::disable_btrace):
12692 Update.
12693 (extended_remote_target::attach): Update.
12694 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
12695 type.
12696 (gdbsim_target::pid_to_str): Change return type.
12697 * ravenscar-thread.c (struct ravenscar_thread_target)
12698 <pid_to_str>: Change return type.
12699 (ravenscar_thread_target::pid_to_str): Change return type.
12700 * procfs.c (class procfs_target) <pid_to_str>: Change return
12701 type.
12702 (procfs_target::pid_to_str): Change return type.
12703 (procfs_target::attach): Update.
12704 (procfs_target::detach): Update.
12705 (procfs_target::fetch_registers): Update.
12706 (procfs_target::store_registers): Update.
12707 (procfs_target::wait): Update.
12708 (procfs_target::files_info): Update.
12709 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
12710 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
12711 return type.
12712 (nto_procfs_target::pid_to_str): Change return type.
12713 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
12714 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
12715 return type.
12716 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
12717 (exit_lwp): Update.
12718 (attach_proc_task_lwp_callback, get_detach_signal)
12719 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
12720 (linux_nat_target::resume, wait_lwp, stop_callback)
12721 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
12722 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
12723 (linux_nat_wait_1, resume_stopped_resumed_lwps)
12724 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
12725 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
12726 type.
12727 (inf_ptrace_target::attach): Update.
12728 (inf_ptrace_target::files_info): Update.
12729 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
12730 type.
12731 (go32_nat_target::pid_to_str): Change return type.
12732 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
12733 (gnu_nat_target::wait): Update.
12734 (gnu_nat_target::wait): Update.
12735 (gnu_nat_target::resume): Update.
12736 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
12737 (fbsd_nat_target::wait): Update.
12738 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
12739 type.
12740 (darwin_nat_target::attach): Update.
12741 * corelow.c (class core_target) <pid_to_str>: Change return type.
12742 (core_target::pid_to_str): Change return type.
12743 * target.c (normal_pid_to_str): Change return type.
12744 (default_pid_to_str): Likewise.
12745 (target_pid_to_str): Change return type.
12746 (target_translate_tls_address): Update.
12747 (target_announce_detach): Update.
12748 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
12749 return type.
12750 (bsd_uthread_target::pid_to_str): Change return type.
12751 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
12752 type.
12753 (bsd_kvm_target::pid_to_str): Change return type.
12754 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
12755 return type.
12756 (aix_thread_target::pid_to_str): Change return type.
12757 * target.h (struct target_ops) <pid_to_str>: Change return type.
12758 (target_pid_to_str, normal_pid_to_str): Likewise.
12759 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
12760 type.
12761 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
12762 type.
12763 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
12764 return type.
12765 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
12766 type.
12767 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
12768 type.
12769 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
12770 return type.
12771
b4be1b06
SM
127722019-03-13 Simon Marchi <simon.marchi@ericsson.com>
12773
12774 * NEWS: Mention that the new default MI version is 3. Mention
12775 changes to the output of commands and events that deal with
12776 multi-location breakpoints.
12777 * breakpoint.c: Include "mi/mi-out.h".
12778 (print_one_breakpoint): Change output syntax if using MI version
12779 >= 3.
12780 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
12781 New.
12782 (mi_multi_location_breakpoint_output_fixed): New.
12783 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
12784 (mi_cmd_fix_multi_location_breakpoint_output): New.
12785 (mi_multi_location_breakpoint_output_fixed): New.
12786 * mi/mi-cmds.c (mi_cmds): Register command
12787 -fix-multi-location-breakpoint-output.
12788 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
12789 interpreter "mi".
12790
8e5e5494
SM
127912019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12792
12793 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
12794 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
12795 instantiate mi_ui_out based on interpreter name.
12796 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
12797 * mi/mi-main.c (mi_load_progress): Likewise.
12798
197df35e
JB
127992019-03-12 John Baldwin <jhb@FreeBSD.org>
12800
12801 * NEWS: Combine separate "New targets" sections for 8.3.
12802
8399425f
JB
128032019-03-12 John Baldwin <jhb@FreeBSD.org>
12804
12805 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
12806 (ppcfbsd_init_abi): Install gdbarch
12807 "fetch_tls_load_module_address" and "get_thread_local_address"
12808 methods.
12809
b0f87ed0
JB
128102019-03-12 John Baldwin <jhb@FreeBSD.org>
12811
12812 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
12813 (riscv_fbsd_init_abi): Install gdbarch
12814 "fetch_tls_load_module_address" and "get_thread_local_address"
12815 methods.
12816
ce25aa57
JB
128172019-03-12 John Baldwin <jhb@FreeBSD.org>
12818
12819 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
12820 (i386fbsd_init_abi): Install gdbarch
12821 "fetch_tls_load_module_address" and "get_thread_local_address"
12822 methods.
12823
f5424cfa
JB
128242019-03-12 John Baldwin <jhb@FreeBSD.org>
12825
12826 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
12827 (amd64fbsd_init_abi): Install gdbarch
12828 "fetch_tls_load_module_address" and "get_thread_local_address"
12829 methods.
12830
945f3901
JB
128312019-03-12 John Baldwin <jhb@FreeBSD.org>
12832
12833 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
12834 (struct fbsd_pspace_data): New type.
12835 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
12836 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
12837 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
12838 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
12839 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
12840
ef0bd204
JB
128412019-03-12 John Baldwin <jhb@FreeBSD.org>
12842
12843 * gdbtypes.c (lookup_struct_elt): New function.
12844 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
12845 * gdbtypes.h (struct struct_elt): New type.
12846 (lookup_struct_elt): New prototype.
12847
36c53a02
JB
128482019-03-12 John Baldwin <jhb@FreeBSD.org>
12849
12850 * gdbtypes.c (lookup_struct_elt_type): Update comment and
12851 remove disabled code block.
12852
6e056c81
JB
128532019-03-12 John Baldwin <jhb@FreeBSD.org>
12854
12855 * gdbarch.sh (get_thread_local_address): New method.
12856 * gdbarch.h, gdbarch.c: Regenerate.
12857 * target.c (target_translate_tls_address): Use
12858 gdbarch_get_thread_local_address if present instead of
12859 target::get_thread_local_address.
12860
cd250a18
JB
128612019-03-12 John Baldwin <jhb@FreeBSD.org>
12862
12863 * target.h (target::get_thread_local_address): Update comment.
12864
df22c1e5
JB
128652019-03-12 John Baldwin <jhb@FreeBSD.org>
12866
12867 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
12868 objfile->separate_debug_objfile_backlink if not NULL.
12869
dd6876c9
JB
128702019-03-12 John Baldwin <jhb@FreeBSD.org>
12871
12872 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
12873 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
12874 (amd64bsd_store_inferior_registers): Likewise.
12875 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
12876 Enable segment base registers.
12877 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
12878 PT_GETFSBASE and PT_GETGSBASE.
12879 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
12880 PT_SETGSBASE.
12881 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
12882 segment base registers.
12883 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
12884
1163a4b7
JB
128852019-03-12 John Baldwin <jhb@FreeBSD.org>
12886
12887 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
12888 Update calls to i386_target_description to add 'segments'
12889 parameter.
12890 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
12891 add segment base registers.
12892 * arch/i386.c (i386_create_target_description): Add 'segments'
12893 parameter to enable segment base registers.
12894 * arch/i386.h (i386_create_target_description): Likewise.
12895 * features/i386/32bit-segments.xml: New file.
12896 * features/i386/32bit-segments.c: Generate.
12897 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
12898 call to i386_target_description to add 'segments' parameter.
12899 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
12900 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
12901 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
12902 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
12903 if feature is present.
12904 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
12905 Add 'segments' parameter to call to i386_target_description.
12906 (i386_target_description): Add 'segments' parameter to enable
12907 segment base registers.
12908 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
12909 to call to i386_target_description.
12910 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
12911 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
12912 Define I386_NUM_REGS.
12913 (i386_target_description): Add 'segments' parameter to enable
12914 segment base registers.
12915
3a350822
EZ
129162019-03-12 Eli Zaretskii <eliz@gnu.org>
12917
12918 PR/24325
12919 * source-cache.c: #undef open and close, to avoid unresolved
12920 externals during linking.
12921
ffdd69cf
TT
129222019-03-12 Tom Tromey <tromey@adacore.com>
12923
12924 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
12925 const. Add initializers.
12926 (_initialize_remote): Don't initialize ptid globals.
12927
ec148c57
PA
129282019-03-12 Pedro Alves <palves@redhat.com>
12929
12930 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
12931
32764270
PA
129322019-03-12 Pedro Alves <palves@redhat.com>
12933
12934 * cp-name-parser.y (main): Remove unused 'len' variable.
12935
17547186
TT
129362019-03-12 Tom Tromey <tromey@adacore.com>
12937
12938 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
12939 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
12940
d3a70e03
TT
129412019-03-12 Tom Tromey <tromey@adacore.com>
12942
12943 * linux-nat.c (iterate_over_lwps): Update.
12944 (stop_callback): Remove parameter.
12945 (stop_wait_callback, detach_callback, resume_set_callback)
12946 (select_singlestep_lwp_callback, set_ignore_sigint)
12947 (status_callback, resumed_callback, resume_clear_callback)
12948 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
12949 data parameter.
12950 (linux_nat_target::detach, linux_nat_target::resume)
12951 (linux_stop_and_wait_all_lwps, select_event_lwp)
12952 (linux_nat_filter_event, linux_nat_wait_1)
12953 (linux_nat_target::kill, linux_nat_target::stop)
12954 (linux_nat_target::stop): Update.
12955 (linux_nat_resume_callback): Change type.
12956 (resume_stopped_resumed_lwps, count_events_callback)
12957 (select_event_lwp_callback): Likewise.
12958 (linux_stop_lwp, linux_nat_stop_lwp): Update.
12959 * arm-linux-nat.c (struct update_registers_data): Remove.
12960 (update_registers_callback): Change type.
12961 (arm_linux_insert_hw_breakpoint1): Update.
12962 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
12963 parameter.
12964 (x86_linux_dr_set_addr): Update.
12965 (x86_linux_dr_set_control): Update.
12966 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
12967 (iterate_over_lwps): Use gdb::function_view.
12968 * nat/aarch64-linux-hw-point.c (struct
12969 aarch64_dr_update_callback_param): Remove.
12970 (debug_reg_change_callback): Change type.
12971 (aarch64_notify_debug_reg_change): Update.
12972 * s390-linux-nat.c (s390_refresh_per_info): Update.
12973
82cb27ff
TT
129742019-03-11 Tom Tromey <tromey@adacore.com>
12975
12976 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
12977 redundant assignment to "this_cu".
12978
568c0683
SM
129792019-03-08 Simon Marchi <simon.marchi@efficios.com>
12980
12981 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
12982
f09ce22d
SM
129832019-03-08 Simon Marchi <simon.marchi@efficios.com>
12984
12985 * gdbtypes.c (rank_one_type_parm_set): New function extracted
12986 from...
12987 (rank_one_type): ... this.
12988
595f96a9
SM
129892019-03-08 Simon Marchi <simon.marchi@efficios.com>
12990
12991 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
12992 from...
12993 (rank_one_type): ... this.
12994
2598a94b
SM
129952019-03-08 Simon Marchi <simon.marchi@efficios.com>
12996
12997 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
12998 from...
12999 (rank_one_type): ... this.
13000
7f17b20d
SM
130012019-03-08 Simon Marchi <simon.marchi@efficios.com>
13002
13003 * gdbtypes.c (rank_one_type_parm_float): New function extracted
13004 from...
13005 (rank_one_type): ... this.
13006
2c509035
SM
130072019-03-08 Simon Marchi <simon.marchi@efficios.com>
13008
13009 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
13010 from...
13011 (rank_one_type): ... this.
13012
0dd322dc
SM
130132019-03-08 Simon Marchi <simon.marchi@efficios.com>
13014
13015 * gdbtypes.c (rank_one_type_parm_range): New function extracted
13016 from...
13017 (rank_one_type): ... this.
13018
41ea4728
SM
130192019-03-08 Simon Marchi <simon.marchi@efficios.com>
13020
13021 * gdbtypes.c (rank_one_type_parm_char): New function extracted
13022 from...
13023 (rank_one_type): ... this.
13024
793cd1d2
SM
130252019-03-08 Simon Marchi <simon.marchi@efficios.com>
13026
13027 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
13028 from...
13029 (rank_one_type): ... this.
13030
34910087
SM
130312019-03-08 Simon Marchi <simon.marchi@efficios.com>
13032
13033 * gdbtypes.c (rank_one_type_parm_int): New function extracted
13034 from...
13035 (rank_one_type): ... this.
13036
f1f832d6
SM
130372019-03-08 Simon Marchi <simon.marchi@efficios.com>
13038
13039 * gdbtypes.c (rank_one_type_parm_func): New function extracted
13040 from...
13041 (rank_one_type): ... this.
13042
b9f4512f
SM
130432019-03-08 Simon Marchi <simon.marchi@efficios.com>
13044
13045 * gdbtypes.c (rank_one_type_parm_array): New function extracted
13046 from...
13047 (rank_one_type): ... this.
13048
9293fc63
SM
130492019-03-08 Simon Marchi <simon.marchi@efficios.com>
13050
13051 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
13052 from...
13053 (rank_one_type): ... this.
13054
e3abbe7e
PW
130552019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13056
13057 * inferior.c (initialize_inferiors): Ensure 'help set/show print
13058 inferior-events' shows the example events.
13059
e4adb939
EZ
130602019-03-08 Eli Zaretskii <eliz@gnu.org>
13061
13062 Support styling on native MS-Windows console
13063
13064 PR/24315
13065 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
13066 on MS-Windows if $TERM is not defined.
13067
13068 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
13069
13070 * posix-hdep.c (gdb_console_fputs):
13071 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
13072 functions.
13073 * ui-file.h (gdb_console_fputs): Add prototype.
13074
13075 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
13076 back to fputs only if the former returns zero.
13077
25629dfd
TT
130782019-03-07 Tom Tromey <tom@tromey.com>
13079
13080 * symmisc.c (print_symbol_bcache_statistics): Update.
13081 (print_objfile_statistics): Update.
13082 * symfile.c (allocate_symtab): Update.
13083 * stabsread.c: Don't include bcache.h.
13084 * psymtab.h (struct psymbol_bcache): Don't declare.
13085 (class psymtab_storage) <psymbol_cache>: Now a bcache.
13086 (psymbol_bcache_init, psymbol_bcache_free)
13087 (psymbol_bcache_get_bcache): Don't declare.
13088 * psymtab.c (struct psymbol_bcache): Remove.
13089 (psymtab_storage::psymtab_storage): Update.
13090 (psymtab_storage::~psymtab_storage): Update.
13091 (psymbol_bcache_init, psymbol_bcache_free)
13092 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
13093 (add_psymbol_to_bcache): Update.
13094 (allocate_psymtab): Update.
13095 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
13096 macro_cache>: No longer pointers.
13097 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
13098 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
13099 * macrotab.c (macro_bcache): Update.
13100 * macroexp.c: Don't include bcache.h.
13101 * gdbtypes.c (check_types_worklist): Update.
13102 (types_deeply_equal): Remove TRY/CATCH. Update.
13103 * elfread.c (elf_symtab_read): Update.
13104 * dwarf2read.c: Don't include bcache.h.
13105 * buildsym.c (buildsym_compunit::get_macro_table): Update.
13106 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
13107 (print_bcache_statistics, bcache_memory_used): Don't declare.
13108 (struct bcache): Move from bcache.c. Add constructor, destructor,
13109 methods. Rename all data members.
13110 * bcache.c (struct bcache): Move to bcache.h.
13111 (bcache::expand_hash_table): Rename from expand_hash_table.
13112 (bcache): Remove.
13113 (bcache::insert): Rename from bcache_full.
13114 (bcache::compare): Rename from bcache_compare.
13115 (bcache_xmalloc): Remove.
13116 (bcache::~bcache): Rename from bcache_xfree.
13117 (bcache::print_statistics): Rename from print_bcache_statistics.
13118 (bcache::memory_used): Rename from bcache_memory_used.
13119
fe726667
PA
131202019-03-07 Pedro Alves <palves@redhat.com>
13121
13122 * infrun.c (normal_stop): Also check for
13123 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
13124
7584bb30
AB
131252019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
13126
13127 * f-lang.c (value_from_host_double): Moved to...
13128 * value.c (value_from_host_double): ...here.
13129 * value.h (value_from_host_double): Declare.
13130 * guile/scm-math.c (vlscm_convert_typed_number): Use
13131 value_from_host_double.
13132 (vlscm_convert_number): Likewise.
13133 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
13134 * python/py-value.c (convert_value_from_python): Likewise.
13135
a7b1986e
TT
131362019-03-06 Tom Tromey <tom@tromey.com>
13137
13138 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
13139
0ccf4211
TT
131402019-03-06 Tom Tromey <tom@tromey.com>
13141
13142 * utils.h (free_current_contents): Don't declare.
13143 * utils.c (free_current_contents): Remove.
13144
fe7b42e5
TT
131452019-03-06 Tom Tromey <tom@tromey.com>
13146
13147 * top.c (quit_force): Update.
13148 * main.c (captured_command_loop): Update.
13149 * common/new-op.c (operator new): Update.
13150 * common/common-exceptions.c (struct catcher)
13151 <save_cleanup_chain>: Remove member.
13152 (exceptions_state_mc_init): Update.
13153 (exception_try_scope_entry): Return nullptr.
13154 (exception_try_scope_exit, exception_rethrow)
13155 (throw_exception_sjlj, throw_exception_cxx): Update.
13156 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
13157 (all_cleanups, do_cleanups, discard_cleanups)
13158 (discard_final_cleanups, save_cleanups, save_final_cleanups)
13159 (restore_cleanups, restore_final_cleanups): Don't declare.
13160 (do_final_cleanups): Remove parameter.
13161 * common/cleanups.c (cleanup_chain, make_cleanup)
13162 (make_cleanup_dtor, all_cleanups, do_cleanups)
13163 (discard_my_cleanups, discard_cleanups)
13164 (discard_final_cleanups, save_my_cleanups, save_cleanups)
13165 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
13166 (null_cleanup): Remove.
13167 (do_final_cleanups): Remove parameter.
13168
c6321f19
TT
131692019-03-06 Tom Tromey <tom@tromey.com>
13170
13171 * remote.c (remote_target::remote_parse_stop_reply): Use
13172 unique_xmalloc_ptr.
13173
61b30099
TT
131742019-03-06 Tom Tromey <tom@tromey.com>
13175
13176 * stabsread.c (struct stabs_field_info): Rename from field_info.
13177 <list, fnlist>: Add initializers.
13178 <obstack>: New member.
13179 (read_member_functions, read_struct_fields, read_baseclasses):
13180 Allocate on obstack. Don't use cleanups.
13181 (read_one_struct_field, read_member_functions, read_struct_fields)
13182 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
13183 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
13184 (read_struct_type): Update.
13185
6cceac94
TT
131862019-03-06 Tom Tromey <tom@tromey.com>
13187
13188 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
13189 * common/filestuff.h (make_cleanup_close): Don't declare.
13190 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
13191 Remove.
13192
72412762
TT
131932019-03-06 Tom Tromey <tom@tromey.com>
13194
13195 * solib-aix.c: Use make_scope_exit.
13196
2b6ff1c0
TT
131972019-03-06 Tom Tromey <tom@tromey.com>
13198
13199 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
13200 Use make_scope_exit.
13201
d01c5877
TT
132022019-03-06 Tom Tromey <tom@tromey.com>
13203
13204 * solib-svr4.c (disable_probes_interface): Remove parameter.
13205 (svr4_handle_solib_event): Use make_scope_exit.
13206
32603266
TT
132072019-03-06 Tom Tromey <tom@tromey.com>
13208
13209 * remote.c (struct stop_reply_deleter): Remove.
13210 (stop_reply_up): Update.
13211 (struct stop_reply): Derive from notif_event. Don't typedef.
13212 <regcache>: Now a std::vector.
13213 (stop_reply_xfree): Remove.
13214 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
13215 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
13216 (remote_target::discard_pending_stop_replies): Use delete.
13217 (remote_target::remote_parse_stop_reply): Update.
13218 (remote_target::process_stop_reply): Update.
13219 * remote-notif.h (struct notif_event): Add virtual destructor.
13220 Remove "dtr" member.
13221 (struct notif_client) <alloc_event>: Return a unique_ptr.
13222 (notif_event_xfree): Don't declare.
13223 (notif_event_up): New typedef.
13224 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
13225 (notif_event_xfree, do_notif_event_xfree): Remove.
13226 (remote_notif_state_xfree): Update.
13227
9799571e
TT
132282019-03-06 Tom Tromey <tom@tromey.com>
13229
13230 * infrun.c (displaced_step_clear_cleanup): Now a
13231 forward_scope_exit type.
13232 (displaced_step_prepare_throw): Update.
13233 (displaced_step_fixup): Update.
13234
09e3c4ca
TT
132352019-03-06 Tom Tromey <tom@tromey.com>
13236
13237 * inferior.h (class inferior): Update comment.
13238 * gdbthread.h (class thread_info): Update comment.
13239
e2a03548
TT
132402019-03-06 Joel Brobecker <brobecker@adacore.com>
13241 Tom Tromey <tom@tromey.com>
13242
13243 * stabsread.h (struct stab_section_list): Remove.
13244 (coffstab_build_psymtabs): Update.
13245 * dbxread.c (symbuf_sections): Now a std::vector.
13246 (sect_idx): New global.
13247 (fill_symbuf): Update.
13248 (coffstab_build_psymtabs): Change type of stabsects parameter.
13249 Update.
13250 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
13251 std::vector.
13252 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
13253 (coff_locate_sections): Update.
13254 (coff_symfile_read): Remove cleanups. Update.
13255 (init_stringtab): Add storage parameter.
13256 (free_stringtab, free_stringtab_cleanup): Remove.
13257 (init_lineno): Add storage parameter.
13258 (free_linetab, free_linetab_cleanup): Remove.
13259
b7e60d85
PA
132602019-03-06 Pedro Alves <palves@redhat.com>
13261
13262 * linux-fork.c (fork_info::clobber_regs): Delete.
13263 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
13264 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
13265 comment. Adjust.
13266 (scoped_switch_fork_info::scoped_switch_fork_info)
13267 (checkpoint_command, linux_fork_context): Adjust
13268 fork_save_infrun_state calls.
13269
e52c971f
PA
132702019-03-06 Pedro Alves <palves@redhat.com>
13271
13272 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
13273 (inf_has_multiple_threads): Return 'bool' and rewrite using
13274 inferior_info::threads().
13275
06974e6c
PA
132762019-03-06 Pedro Alves <palves@redhat.com>
13277
13278 * linux-fork.c: Include <list>.
13279 (fork_list): Now a std::list instance.
13280 (fork_info): Add ctor, dtor, and in-class initialize all fields.
13281 (forks_exist_p, find_last_fork): Adjust.
13282 (new_fork): Delete.
13283 (one_fork_p): New.
13284 (add_fork): Adjust.
13285 (free_fork): Delete, folded into fork_info::~fork_info().
13286 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
13287 Adjust.
13288 (init_fork_list): Delete.
13289 (linux_fork_killall, linux_fork_mourn_inferior)
13290 (linux_fork_detach, info_checkpoints_command): Adjust.
13291 (_initialize_linux_fork): No longer call init_fork_list.
13292
72f31aea
PA
132932019-03-06 Pedro Alves <palves@redhat.com>
13294
13295 * linux-fork.c (new_fork): New, split out of ...
13296 (add_fork): ... this. Return void. Move "first fork" special
13297 case from here, to ...
13298 (checkpoint_command): ... here.
13299 * linux-linux.h (add_fork): Return void.
13300
efbecbc1
AB
133012019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13302
13303 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
13304
0841c79a
AB
133052019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13306 Chris January <chris.january@arm.com>
13307 David Lecomber <david.lecomber@arm.com>
13308
13309 * f-exp.y: New token, UNOP_INTRINSIC.
13310 (exp): New pattern using UNOP_INTRINSIC token.
13311 (f77_keywords): Add 'abs' keyword.
13312 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
13313 (value_from_host_double): New function.
13314 (evaluate_subexp_f): Support UNOP_ABS.
13315
4a270568
AB
133162019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13317
13318 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
13319 types.
13320
067630bd
AB
133212019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13322
13323 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
13324 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
13325 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
13326
3be47f7a
AB
133272019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13328
13329 * f-exp.y (convert_to_kind_type): Handle more type kinds.
13330
4d00f5d8
AB
133312019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13332 Chris January <chris.january@arm.com>
13333
13334 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
13335 * f-exp.y: Define 'KIND' token.
13336 (exp): New pattern for KIND expressions.
13337 (ptype): Handle types with a kind extension.
13338 (direct_abs_decl): Extend to spot kind extensions.
13339 (f77_keywords): Add 'kind' to the list.
13340 (push_kind_type): New function.
13341 (convert_to_kind_type): New function.
13342 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
13343 * parse.c (operator_length_standard): Likewise.
13344 * parser-defs.h (enum type_pieces): Add tp_kind.
13345 * std-operator.def: Add UNOP_KIND.
13346
e454224f
AB
133472019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13348
13349 * f-exp.y (f_parse): Set yydebug.
13350
9dad4a58
AB
133512019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13352
13353 * f-lang.c (evaluate_subexp_f): New function.
13354 (exp_descriptor_f): New global.
13355 (f_language_defn): Use exp_descriptor_f instead of
13356 exp_descriptor_standard.
13357
c8f91604
AB
133582019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13359
13360 * f-exp.y (struct token): Add comments.
13361 (dot_ops): Remove uppercase versions and the end marker.
13362 (f77_keywords): Likewise.
13363 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
13364 entries in the dot_ops array are case insensitive, and use
13365 strncasecmp to compare strings. Also some whitespace cleanup in
13366 this area. Similar for the f77_keywords array, except entries in
13367 this list might be case sensitive.
13368
dd9f2c76
AB
133692019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13370
13371 * f-exp.y (struct f77_boolean_val): Add comments.
13372 (boolean_values): Remove uppercase versions, and end marker.
13373 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
13374 and use strncasecmp to achieve case insensitivity. Additionally,
13375 perform whitespace cleanup around this code.
13376
67a3048c
TT
133772019-03-06 Tom Tromey <tromey@adacore.com>
13378
13379 * remote-sim.c (gdbsim_target_open): Use result of
13380 gdb_argv::release.
13381
aa3cfbda
RB
133822019-03-06 Richard Bunt <richard.bunt@arm.com>
13383 Dirk Schubert <dirk.schubert@arm.com>
13384 Chris January <chris.january@arm.com>
13385
13386 * eval.c (evaluate_subexp_standard): Call Fortran argument
13387 wrapping logic.
13388 * f-lang.c (struct value): A value which can be passed into a
13389 Fortran function call.
13390 (fortran_argument_convert): Wrap Fortran arguments in a pointer
13391 where appropriate.
13392 (struct type): Value ready for a Fortran function call.
13393 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
13394 is needed.
13395 * f-lang.h (fortran_argument_convert): Declaration.
13396 (fortran_preserve_arg_pointer): Declaration.
13397 * infcall.c (value_arg_coerce): Call Fortran argument logic.
13398
ea38e5df
TT
133992019-03-05 Tom Tromey <tromey@adacore.com>
13400
13401 * python/py-prettyprint.c (print_string_repr): Remove #if.
13402 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
13403
06b5b831
TT
134042019-03-05 Tom Tromey <tromey@adacore.com>
13405
13406 * target.c (the_dummy_target): Move later. Change type to
13407 "dummy_target".
13408 (initialize_targets): Don't initialize the_dummy_target.
13409
edbd9e45
TT
134102019-03-05 Tom Tromey <tromey@adacore.com>
13411
13412 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
13413 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
13414
c119e040
TT
134152019-03-05 Tom Tromey <tromey@adacore.com>
13416
13417 * windows-nat.c (windows_nat_target::attach)
13418 (windows_nat_target::detach): Don't call gdb_flush.
13419 * valprint.c (generic_val_print, val_print, val_print_string):
13420 Don't call gdb_flush.
13421 * utils.c (defaulted_query): Don't call gdb_flush.
13422 * typeprint.c (print_type_scalar): Don't call gdb_flush.
13423 * target.c (target_announce_detach): Don't call gdb_flush.
13424 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
13425 * remote.c (extended_remote_target::attach): Don't call
13426 gdb_flush.
13427 * procfs.c (procfs_target::detach): Don't call gdb_flush.
13428 * printcmd.c (do_examine): Don't call gdb_flush.
13429 (info_display_command): Don't call gdb_flush.
13430 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
13431 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
13432 * memattr.c (info_mem_command): Don't call gdb_flush.
13433 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
13434 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
13435 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
13436 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
13437 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
13438 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
13439 (gnu_nat_target::detach): Don't call gdb_flush.
13440 * f-valprint.c (f_val_print): Don't call gdb_flush.
13441 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
13442 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
13443 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
13444 gdb_flush.
13445 * c-valprint.c (c_val_print): Don't call gdb_flush.
13446 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
13447
895dafa6
TT
134482019-03-05 Tom Tromey <tromey@adacore.com>
13449
13450 * varobj.c (update_dynamic_varobj_children): Update.
13451 (install_default_visualizer): Use reset, not release.
13452 * value.c (set_internalvar): Update.
13453 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
13454 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
13455 ATTRIBUTE_UNUSED_RESULT.
13456
88a774b9
TT
134572019-03-05 Tom Tromey <tromey@adacore.com>
13458
13459 * remote.c (class scoped_remote_fd) <release>: Add
13460 ATTRIBUTE_UNUSED_RESULT.
13461
4e4a8b93
TT
134622019-03-05 Tom Tromey <tromey@adacore.com>
13463
13464 * macroexp.c (struct macro_buffer) <release>: Add
13465 ATTRIBUTE_UNUSED_RESULT.
13466
083eef1f
TT
134672019-03-05 Tom Tromey <tromey@adacore.com>
13468
13469 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
13470 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
13471 ATTRIBUTE_UNUSED_RESULT.
13472
3cabd438
TT
134732019-03-05 Tom Tromey <tromey@adacore.com>
13474
13475 * common/scoped_fd.h (class scoped_fd) <release>: Add
13476 ATTRIBUTE_UNUSED_RESULT.
13477
41e3300a
TT
134782019-03-05 Tom Tromey <tromey@adacore.com>
13479
13480 * parser-defs.h (struct parser_state) <release>: Add
13481 ATTRIBUTE_UNUSED_RESULT.
13482
18cb7c9f
TT
134832019-03-05 Tom Tromey <tromey@adacore.com>
13484
13485 * utils.h (class gdb_argv) <release>: Add
13486 ATTRIBUTE_UNUSED_RESULT.
13487 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
13488
41fa577f
EZ
134892019-03-02 Eli Zaretskii <eliz@gnu.org>
13490
a6a4b2c6
EZ
13491 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
13492 for-loop range, to avoid compiler warnings.
13493
13494 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
13495 avoid compiler warnings about unused variables.
13496
742a7df5
EZ
13497 * NEWS: Mention end of support for native debugging on MS-Windows
13498 before XP.
13499
41fa577f
EZ
13500 PR gdb/24292
13501 * common/netstuff.c:
13502 * gdbserver/gdbreplay.c
13503 * gdbserver/remote-utils.c:
13504 * ser-tcp.c:
13505 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
13506 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
13507 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
13508 'getaddrinfo' and 'freeaddrinfo' were not available before
13509 Windows XP, and mingw.org's MinGW headers by default define
13510 _WIN32_WINNT to 0x500.
13511
827f438f
GB
135122019-03-01 Gary Benson <gbenson@redhat.com>
13513
13514 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
13515
92137da0
RO
135162019-02-28 Brian Vandenberg <phantall@gmail.com>
13517 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13518
13519 PR gdb/8527
13520 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
13521 set_sigint_trap, clear_sigint_trap.
13522
799efbe8
PW
135232019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13524
13525 * target.c (target_detach): Clear the regcache and the
13526 frame cache.
13527
8ed25214
PA
135282019-02-27 Pedro Alves <palves@redhat.com>
13529
13530 * utils.c (set_screen_size): When we cap the height/width sizes,
13531 tweak the corresponding command variable to show "unlimited":
13532
23031e31
SJ
135332019-02-27 Saagar Jha <saagar@saagarjha.com>
13534 Pedro Alves <palves@redhat.com>
13535
13536 * utils.c (set_screen_size): Reduce "infinite" rows and columns
13537 before calling rl_set_screen_size.
13538
6c28e44a
TT
135392019-02-27 Tom Tromey <tromey@adacore.com>
13540
13541 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
13542 define.
13543 * python/py-value.c: Remove Python 2.4 workaround.
13544 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
13545 workaround.
13546 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
13547 Python 2.4 workaround.
13548 * python/python-internal.h: Remove Python 2.4 comment.
13549 (Py_ssize_t): Don't define.
13550 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
13551 (gdb_Py_DECREF): Remove Python 2.4 workaround.
13552 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
13553 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
13554 * python/python.c (do_start_initialization): Remove Python 2.4
13555 workaround.
13556 * python/py-prettyprint.c (class dummy_python_frame): Remove.
13557 (print_children): Remove Python 2.4 workaround.
13558 * python/py-inferior.c (buffer_procs): Remove Python 2.4
13559 workaround.
13560 (CHARBUFFERPROC_NAME): Remove.
13561 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
13562 Python 2.4 workaround.
13563
2c3fc25d 135642019-02-27 Kevin Buettner <kevinb@redhat.com>
799efbe8 13565
2c3fc25d
KB
13566 * NEWS: Note minimum Python version.
13567
6ca62222
KB
135682019-02-27 Kevin Buettner <kevinb@redhat.com>
13569
13570 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
13571 code from these functions. Remove corresponding ifdefs. Use
13572 Py_buffer_up instead of explicit calls to PyBuffer_Release.
13573 Remove gotos and target of gotos.
13574 (infpy_search_memory): Likewise.
13575
f4bc7d2c
AB
135762019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13577
13578 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
13579 (hppa_gdbarch_init): Don't register deleted functions with
13580 gdbarch.
13581
9734a586
AB
135822019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13583
13584 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
13585 (h8300_unwind_sp): Delete.
13586 (h8300_dummy_id): Delete.
13587 (h8300_gdbarch_init): Don't register deleted functions with
13588 gdbarch.
13589
68b867f3
AB
135902019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13591
13592 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
13593 (ft32_unwind_pc): Delete.
13594 (ft32_unwind_sp): Delete.
13595 (ft32_gdbarch_init): Don't register deleted functions with
13596 gdbarch.
13597
2fbe7ad0
AB
135982019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13599
13600 * gdb/frv-tdep.c (frv_dummy_id): Delete.
13601 (frv_unwind_pc): Delete.
13602 (frv_unwind_sp): Delete.
13603 (frv_gdbarch_init): Don't register deleted functions with
13604 gdbarch.
13605
76055cbe
AB
136062019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13607
13608 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
13609 (riscv_unwind_pc): Delete.
13610 (riscv_unwind_sp): Delete.
13611 (riscv_gdbarch_init): Don't register deleted functions with
13612 gdbarch.
13613
4133e5a1
AB
136142019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13615
13616 * gdb/csky-tdep.c (csky_dummy_id): Delete.
13617 (csky_unwind_pc): Delete.
13618 (csky_unwind_sp): Delete.
13619 (csky_gdbarch_init): Don't register deleted functions with
13620 gdbarch.
13621
8010f576
AB
136222019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13623
13624 * gdb/cris-tdep.c (cris_dummy_id): Delete.
13625 (cris_unwind_pc): Delete.
13626 (cris_unwind_sp): Delete.
13627 (cris_gdbarch_init): Don't register deleted functions with
13628 gdbarch.
13629
b56bf084
AB
136302019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13631
13632 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
13633 (bfin_unwind_pc): Delete.
13634 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
13635
a19a650f
AB
136362019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13637
13638 * gdb/arm-tdep.c (arm_dummy_id): Delete.
13639 (arm_unwind_pc): Delete.
13640 (arm_unwind_sp): Delete.
13641 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
13642
f8278c3c
AB
136432019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13644
13645 * gdb/arc-tdep.c (arc_dummy_id): Delete.
13646 (arc_unwind_pc): Delete.
13647 (arc_unwind_sp): Delete.
13648 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
13649
480e46cf
AB
136502019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13651
13652 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
13653 (alpha_unwind_pc): Delete.
13654 (alpha_gdbarch_init): Don't register deleted functions with
13655 gdbarch.
13656
7a995095
AB
136572019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13658
13659 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
13660 (aarch64_unwind_pc): Delete.
13661 (aarch64_unwind_sp): Delete.
13662 (aarch64_gdbarch_init): Don't register deleted functions with
13663 gdbarch.
13664
bf9a735e
AB
136652019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13666
13667 * gdbtypes.c (type_align): Don't consider static members when
13668 computing structure alignment.
13669
5561fc30
AB
136702019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13671
13672 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
13673 return 0 for other types.
13674 * arch-utils.c (default_type_align): Always return 0.
13675 * gdbarch.h: Regenerate.
13676 * gdbarch.sh (type_align): Extend comment.
13677 * gdbtypes.c (type_align): Add additional comments, always call
13678 gdbarch_type_align before applying the default rules.
13679 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
13680 generic code will then apply a suitable default.
13681 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
13682 types, return 0 for other types.
13683
9335e75a
JB
136842019-02-27 Joel Brobecker <brobecker@adacore.com>
13685
13686 * NEWS: Create a new section for the next release branch.
13687 Rename the section of the current branch, now that it has
13688 been cut.
13689
3d34d8de
JB
136902019-02-27 Joel Brobecker <brobecker@adacore.com>
13691
13692 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
13693 * version.in: Bump version to 8.3.50.DATE-git.
13694
143420fb
SM
136952019-02-26 Simon Marchi <simon.marchi@efficios.com>
13696
13697 * aix-thread.c (ptid_cmp): Remove unused variable.
13698 (get_signaled_thread): Likewise.
13699 (store_regs_user_thread): Likewise.
13700 (store_regs_kernel_thread): Likewise.
13701 (fetch_regs_kernel_thread): Remove shadowed variable.
13702
172fb711
AB
137032019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
13704
13705 * features/riscv/32bit-cpu.xml: Add register numbers.
13706 * features/riscv/32bit-fpu.c: Regenerate.
13707 * features/riscv/32bit-fpu.xml: Add register numbers.
13708 * features/riscv/64bit-cpu.xml: Add register numbers.
13709 * features/riscv/64bit-fpu.c: Regenerate.
13710 * features/riscv/64bit-fpu.xml: Add register numbers.
13711
26c89782
KB
137122019-02-26 Kevin Buettner <kevinb@redhat.com>
13713
af54ade9 13714 * NEWS: Mention two argument form of gdb.Value constructor.
fe07eca5
KB
13715 * python/py-value.c (convert_buffer_and_type_to_value): New
13716 function.
13717 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
13718 Add support for handling an optional second argument. Call
13719 convert_buffer_and_type_to_value as appropriate.
26c89782
KB
13720 * python/python-internal.h (Py_buffer_deleter): New struct.
13721 (Py_buffer_up): New typedef.
13722
0f58c9e8
JB
137232019-02-25 John Baldwin <jhb@FreeBSD.org>
13724
13725 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
13726 instead of releasing ownership.
13727
0a0f4c01
JR
137282019-02-25 Jordan Rupprecht <rupprecht@google.com>
13729
13730 * dwarf2read.c (open_and_init_dwp_file): Call
13731 elf_numsections instead of bfd_count_sections to initialize
13732 dwp_file->num_sections.
13733
cd5a152c
TT
137342019-02-25 Tom Tromey <tromey@adacore.com>
13735
13736 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
13737
8a6a8513
SDJ
137382019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
13739
13740 * gcore.in: Add '--readnever' option when invoking GDB.
13741
04dcda9c
SM
137422019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
13743
13744 * MAINTAINERS: Update my email address.
13745
07bc701d
SM
137462019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
13747
13748 * build-id.c (build_id_to_debug_bfd_1): New function.
13749 (build_id_to_debug_bfd): Look for separate debug file in
13750 sysroot.
13751
c6f4a5d0
AB
137522019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
13753
13754 * gdbarch.sh: Update the copyright year range that is placed into
13755 generated files.
13756
9600246d
KS
137572019-02-22 Keith Seitz <keiths@redhat.com>
13758
13759 PR symtab/23853
13760 * linespec.c (create_sals_line_offset): Search for the default
13761 symtab's filename instead of its fullname.
13762
7557a514
AH
137632019-02-21 Alan Hayward <alan.hayward@arm.com>
13764
13765 * NEWS: Update style defaults.
13766
ee2bcb0c
AH
137672019-02-21 Alan Hayward <alan.hayward@arm.com>
13768
13769 * main.c (captured_main_1): Disable styling in batch mode.
13770
0c95f9ed
TT
137712019-02-20 Tom Tromey <tom@tromey.com>
13772
13773 * symtab.c (symtab_symbol_info): Fix typos.
13774
c763b894
TT
137752019-02-20 Tom Tromey <tromey@adacore.com>
13776
13777 * findcmd.c (_initialize_mem_search): Use upper case for
13778 metasyntactic variables.
13779
0ef8a082
AH
137802019-02-20 Alan Hayward <alan.hayward@arm.com>
13781
13782 * aarch64-tdep.c (aarch64_add_reggroups): New function.
13783 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
13784
6caa91b6
SM
137852019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
13786
13787 * top.h (source_file_name): Change to std::string.
13788 * top.c (source_file_name): Likewise.
13789 (command_line_input): Adjust.
13790 * cli/cli-script.c (script_from_file): Adjust.
13791
98814c6c
TT
137922019-02-19 Tom Tromey <tromey@adacore.com>
13793
13794 * ravenscar-thread.c
13795 (ravenscar_thread_target::update_thread_list): Don't call
13796 ada_build_task_list.
13797 * ada-lang.h (ada_build_task_list): Don't declare.
13798 * ada-tasks.c (struct ada_tasks_inferior_data)
13799 <task_list_valid_p>: Now bool.
13800 (read_known_tasks, ada_task_list_changed)
13801 (ada_tasks_invalidate_inferior_data): Update.
13802 (read_known_tasks_array): Return bool.
13803 (read_known_tasks_list): Likewise.
13804 (read_known_tasks): Return void.
13805 (ada_build_task_list): Now static.
13806
70cd633e
AB
138072019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
13808
13809 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
13810 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
13811
040b3e95
PW
138122019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13813
13814 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
13815 variant for ada_tasks_pspace_data_handle and
13816 ada_tasks_inferior_data_handle.
13817 (ada_tasks_pspace_data_cleanup): New function.
13818 (ada_tasks_inferior_data_cleanup): New function.
13819
9409233b
TT
138202019-02-17 Tom Tromey <tom@tromey.com>
13821
13822 * macrotab.h (macro_source_fullname): Return a std::string.
13823 * macrotab.c (macro_include, check_for_redefinition)
13824 (macro_undef, macro_lookup_definition, foreach_macro)
13825 (foreach_macro_in_scope): Update.
13826 (macro_source_fullname): Return a std::string.
13827 * macrocmd.c (show_pp_source_pos): Update.
13828
6506371f
TT
138292019-02-17 Tom Tromey <tom@tromey.com>
13830
13831 * macrocmd.c (show_pp_source_pos): Style the file names.
13832
0c820d67
TT
138332019-02-17 Tom Tromey <tom@tromey.com>
13834
13835 PR tui/24197:
13836 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
13837
a0087920
TT
138382019-02-17 Tom Tromey <tom@tromey.com>
13839
13840 * ada-lang.c (user_select_syms): Use filtered printing.
13841 * utils.c (wrap_style): New global.
13842 (desired_style): Remove.
13843 (emit_style_escape): Add stream parameter.
13844 (set_output_style, reset_terminal_style, prompt_for_continue):
13845 Update.
13846 (flush_wrap_buffer): Only flush gdb_stdout.
13847 (wrap_here): Set wrap_style.
13848 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
13849 treat escape sequences as a character. Change when wrap buffer is
13850 flushed.
13851 (fputs_styled): Do not set the output style when the default is
13852 requested.
13853 * ui-style.h (struct ui_file_style) <is_default>: New method.
13854 * source.c (print_source_lines_base): Emit escape sequences in one
13855 piece.
13856
75ba10dc
JB
138572019-02-17 Joel Brobecker <brobecker@adacore.com>
13858
13859 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
13860 integers and enumeration types.
13861
a2cd4f14
JB
138622019-02-17 Joel Brobecker <brobecker@adacore.com>
13863
13864 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
13865 instead of lookup_symbol_in_language
13866 (do_exact_match): New function.
13867 (ada_get_symbol_name_matcher): Return do_exact_match when
13868 doing a verbatim match.
13869
485b851b
TT
138702019-02-15 Tom Tromey <tromey@adacore.com>
13871
13872 * ravenscar-thread.c (ravenscar_thread_target::resume)
13873 (ravenscar_thread_target::wait): Special case wildcard requests.
13874
0b790b1e
TT
138752019-02-15 Tom Tromey <tromey@adacore.com>
13876
13877 * ravenscar-thread.c (base_ptid): Remove.
13878 (struct ravenscar_thread_target) <close>: New method.
13879 <m_base_ptid>: New member.
13880 <update_inferior_ptid, active_task, task_is_currently_active,
13881 runtime_initialized>: Declare methods.
13882 <ravenscar_thread_target>: Add constructor.
13883 (ravenscar_thread_target::task_is_currently_active)
13884 (ravenscar_thread_target::update_inferior_ptid)
13885 (ravenscar_runtime_initialized): Rename. Now methods.
13886 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
13887 (ravenscar_thread_target::update_thread_list): Update.
13888 (ravenscar_thread_target::active_task): Now method.
13889 (ravenscar_thread_target::store_registers)
13890 (ravenscar_thread_target::prepare_to_store)
13891 (ravenscar_thread_target::prepare_to_store)
13892 (ravenscar_thread_target::mourn_inferior): Update.
13893 (ravenscar_inferior_created): Use "new" to create target.
13894 (ravenscar_thread_target::get_ada_task_ptid): Update.
13895 (_initialize_ravenscar): Don't initialize base_ptid.
13896 (ravenscar_ops): Remove global.
13897
dea57a62
TT
138982019-02-15 Tom Tromey <tromey@adacore.com>
13899
13900 * target.h (push_target): Declare new overload.
13901 * target.c (push_target): New overload, taking an rvalue reference.
13902 * remote.c (remote_target::open_1): Use push_target overload.
13903 * corelow.c (core_target_open): Use push_target overload.
13904
989f3c58
TT
139052019-02-15 Tom Tromey <tromey@adacore.com>
13906
13907 * ravenscar-thread.c (is_ravenscar_task)
13908 (ravenscar_task_is_currently_active): Return bool.
13909 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
13910 (_initialize_ravenscar): Remove "(void)".
13911 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
13912 Return bool.
13913
6cbcc006
TT
139142019-02-15 Tom Tromey <tromey@adacore.com>
13915
13916 * ravenscar-thread.c (ravenscar_runtime_initializer)
13917 (has_ravenscar_runtime, get_running_thread_id)
13918 (ravenscar_thread_target::resume): Fix indentation.
13919
7657f14d
TT
139202019-02-15 Tom Tromey <tromey@adacore.com>
13921
13922 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
13923 from ravenscar_arch_ops.
13924 (sparc_ravenscar_ops::fetch_registers)
13925 (sparc_ravenscar_ops::store_registers): Now methods.
13926 (sparc_ravenscar_prepare_to_store): Remove.
13927 (sparc_ravenscar_ops): Redefine.
13928 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
13929 methods and destructor. Remove members.
13930 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
13931 (ravenscar_thread_target::store_registers)
13932 (ravenscar_thread_target::prepare_to_store): Update.
13933 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
13934 Remove.
13935 (struct ppc_ravenscar_powerpc_ops): Derive from
13936 ravenscar_arch_ops.
13937 (ppc_ravenscar_powerpc_ops::fetch_registers)
13938 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
13939 (ppc_ravenscar_powerpc_ops): Redefine.
13940 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
13941 (ppc_ravenscar_e500_ops::fetch_registers)
13942 (ppc_ravenscar_e500_ops::store_registers): Now methods.
13943 (ppc_ravenscar_e500_ops): Redefine.
13944 * aarch64-ravenscar-thread.c
13945 (aarch64_ravenscar_generic_prepare_to_store): Remove.
13946 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
13947 (aarch64_ravenscar_fetch_registers)
13948 (aarch64_ravenscar_store_registers): Now methods.
13949 (aarch64_ravenscar_ops): Redefine.
13950
5b6ea500
TT
139512019-02-15 Tom Tromey <tromey@adacore.com>
13952
13953 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
13954 (ravenscar_thread_target::stopped_by_hw_breakpoint)
13955 (ravenscar_thread_target::stopped_by_watchpoint)
13956 (ravenscar_thread_target::stopped_data_address)
13957 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
13958
e397fd39
TT
139592019-02-15 Tom Tromey <tromey@adacore.com>
13960
13961 * ravenscar-thread.c: Fix some typos.
13962
cc12f4a8
TT
139632019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13964 Tom Tromey <tromey@adacore.com>
13965
13966 * ada-lang.c (ada_exception_sal): Change addr_string to a
13967 std::string.
13968 (create_ada_exception_catchpoint): Update.
13969
5f486660
TT
139702019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13971 Tom Tromey <tromey@adacore.com>
13972
13973 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
13974 (bp_location_ops): Remove.
13975 (base_breakpoint_allocate_location): Update.
13976 (free_bp_location): Update.
13977 * ada-lang.c (class ada_catchpoint_location)
13978 <ada_catchpoint_location>: Remove ops parameter.
13979 (ada_catchpoint_location_dtor): Remove.
13980 (ada_catchpoint_location_ops): Remove.
13981 (allocate_location_exception): Update.
13982 * breakpoint.h (struct bp_location_ops): Remove.
13983 (class bp_location) <bp_location>: Remove bp_location_ops
13984 parameter.
13985 <~bp_location>: Add destructor.
13986 <ops>: Remove.
13987
b671c7fb
TS
139882019-02-14 Thomas Schwinge <thomas@codesourcery.com>
13989 Pedro Alves <palves@redhat.com>
13990
13991 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
13992 'PATH_MAX'.
13993
8071c5ce
DM
139942019-02-14 David Michael <fedora.dm0@gmail.com>
13995 Samuel Thibault <samuel.thibault@gnu.org>
13996 Thomas Schwinge <thomas@codesourcery.com>
13997
13998 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
13999 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
14000
b1041ae0
TS
140012019-02-14 Thomas Schwinge <thomas@codesourcery.com>
14002
924514e1
TS
14003 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
14004 (check_empty): Use "const char *".
14005
c29ee8d4
TS
14006 * gnu-nat.c (gnu_nat_target::detach): Instead of
14007 'detach_inferior (pid)' call
14008 'detach_inferior (find_inferior_pid (pid))'.
14009
6c6ef69f
TS
14010 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
14011 'nat/fork-inferior.o'.
14012 * gnu-nat.c: #include "nat/fork-inferior.h".
14013
2d0a338c
TS
14014 * gnu-nat.c (gnu_nat_target::detach): Instead of
14015 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
14016 * gnu-nat.h: #include "inf-child.h".
14017 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
14018 'i386_gnu_nat_target::fetch_registers'.
14019 (gnu_store_registers): Rename/move to
14020 'i386_gnu_nat_target::store_registers'.
14021
cabb5f06
TS
14022 * config/i386/nm-i386gnu.h: Don't "#include" any files.
14023 * gnu-nat.h (mach_thread_info): New function.
14024 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
14025
b1041ae0
TS
14026 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
14027
2988d01e
KF
140282019-02-14 Frederic Konrad <konrad@adacore.com>
14029
14030 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
14031
c559d709
JB
140322019-02-14 Joel Brobecker <brobecker@adacore.com>
14033
14034 * windows-nat.c (windows_add_thread): Add new parameter
14035 "main_thread_p" with default value set to false. Update
14036 function documentation as well as all callers.
14037 (windows_delete_thread): Likewise.
14038 (fake_create_process): Update call to windows_add_thread.
14039 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
14040 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
14041 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
14042 call to windows_delete_thread.
14043
007024cc
SM
140442019-02-13 Simon Marchi <simon.marchi@ericsson.com>
14045
14046 * MAINTAINERS: Add Andrew Burgess as global maintainer.
14047
f62318e9
JB
140482019-02-12 John Baldwin <jhb@FreeBSD.org>
14049
14050 * symfile.c (find_separate_debug_file): Use canonical path of
14051 sysroot with child_path instead of gdb_sysroot if it is valid.
14052
cd4b7848
JB
140532019-02-12 John Baldwin <jhb@FreeBSD.org>
14054
14055 * symfile.c (find_separate_debug_file): Use child_path to
14056 determine if an object file is under a sysroot.
14057
efac4bfe
JB
140582019-02-12 John Baldwin <jhb@FreeBSD.org>
14059
14060 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
14061 unittests/child-path-selftests.c.
14062 * common/pathstuff.c (child_path): New function.
14063 * common/pathstuff.h (child_path): New prototype.
14064 * unittests/child-path-selftests.c: New file.
14065
402d2bfe
JB
140662019-02-12 John Baldwin <jhb@FreeBSD.org>
14067
14068 * symfile.c (find_separate_debug_file): Look for separate debug
14069 files in debug directories under the sysroot.
14070
1ed9f74e
PW
140712019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14072
14073 * symtab.h (struct minimal_symbol data_p): New const method.
14074 (struct minimal_symbol text_p): Likewise.
14075 * symtab.c (output_source_filename): Use file name style
14076 to print file name.
14077 (print_symbol_info): Likewise.
14078 (print_msymbol_info): Use address style to print addresses.
14079 Use function name style to print executable text symbols.
14080 (expand_symtab_containing_pc): Use data_p.
14081 (find_pc_sect_compunit_symtab): Likewise.
14082
2636d81d
PW
140832019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14084
14085 * breakpoint.c (describe_other_breakpoints): Use address style
14086 to print addresses.
14087 (say_where): Likewise.
14088
ac8c53cc
PW
140892019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14090
14091 * ada-typeprint.c (print_func_type): Print function name
14092 style to print function name.
14093 * c-typeprint.c (c_print_type_1): Likewise.
14094
ea638c43
AH
140952019-02-11 Alan Hayward <alan.hayward@arm.com>
14096
14097 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
14098 for execve.
14099
ab759ca8
PW
141002019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14101
14102 * c-exp.y (direct_abs_decl): Use emplace_back to record the
14103 type_stack.
14104
aff29d1c
JB
141052019-02-10 Joel Brobecker <brobecker@adacore.com>
14106
14107 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
14108 TYPE_CODE_REF types.
14109
617126bc
JW
141102019-02-08 Jim Wilson <jimw@sifive.com>
14111
14112 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
14113 (riscv_linux_fregset): New.
14114 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
14115
46e3ed7f
TT
141162019-02-07 Tom Tromey <tom@tromey.com>
14117
14118 * thread.c (thread_cancel_execution_command): Update.
14119 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
14120 methods.
14121 (struct thread_fsm_ops): Remove.
14122 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
14123 (thread_fsm_should_stop, thread_fsm_return_value)
14124 (thread_fsm_set_finished, thread_fsm_finished_p)
14125 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
14126 Don't declare.
14127 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
14128 * infrun.c (clear_proceed_status_thread)
14129 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
14130 (print_stop_event): Update.
14131 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
14132 Add constructor.
14133 (step_command_fsm_ops): Remove.
14134 (new_step_command_fsm): Remove.
14135 (step_1): Update.
14136 (step_command_fsm::should_stop): Rename from
14137 step_command_fsm_should_stop.
14138 (step_command_fsm::clean_up): Rename from
14139 step_command_fsm_clean_up.
14140 (step_command_fsm::do_async_reply_reason): Rename from
14141 step_command_fsm_async_reply_reason.
14142 (struct until_next_fsm): Inherit from thread_fsm. Add
14143 constructor.
14144 (until_next_fsm_ops): Remove.
14145 (new_until_next_fsm): Remove.
14146 (until_next_fsm::should_stop): Rename from
14147 until_next_fsm_should_stop.
14148 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
14149 (until_next_fsm::do_async_reply_reason): Rename from
14150 until_next_fsm_async_reply_reason.
14151 (struct finish_command_fsm): Inherit from thread_fsm. Add
14152 constructor. Change type of breakpoint.
14153 (finish_command_fsm_ops): Remove.
14154 (new_finish_command_fsm): Remove.
14155 (finish_command_fsm::should_stop): Rename from
14156 finish_command_fsm_should_stop.
14157 (finish_command_fsm::clean_up): Rename from
14158 finish_command_fsm_clean_up.
14159 (finish_command_fsm::return_value): Rename from
14160 finish_command_fsm_return_value.
14161 (finish_command_fsm::do_async_reply_reason): Rename from
14162 finish_command_fsm_async_reply_reason.
14163 (finish_command): Update.
14164 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
14165 Add constructor.
14166 (call_thread_fsm_ops): Remove.
14167 (call_thread_fsm::call_thread_fsm): Rename from
14168 new_call_thread_fsm.
14169 (call_thread_fsm::should_stop): Rename from
14170 call_thread_fsm_should_stop.
14171 (call_thread_fsm::should_notify_stop): Rename from
14172 call_thread_fsm_should_notify_stop.
14173 (run_inferior_call, call_function_by_hand_dummy): Update.
14174 * cli/cli-interp.c (should_print_stop_to_console): Update.
14175 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
14176 Add constructor. Change type of location_breakpoint,
14177 caller_breakpoint.
14178 (until_break_fsm_ops): Remove.
14179 (new_until_break_fsm): Remove.
14180 (until_break_fsm::should_stop): Rename from
14181 until_break_fsm_should_stop.
14182 (until_break_fsm::clean_up): Rename from
14183 until_break_fsm_clean_up.
14184 (until_break_fsm::do_async_reply_reason): Rename from
14185 until_break_fsm_async_reply_reason.
14186 (until_break_command): Update.
14187 * thread-fsm.c: Remove.
14188 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
14189
1a5c2598
TT
141902019-02-07 Tom Tromey <tom@tromey.com>
14191
14192 * yy-remap.h: Add include guard.
14193 * xtensa-tdep.h: Add include guard.
14194 * xcoffread.h: Rename include guard.
14195 * varobj-iter.h: Add include guard.
14196 * tui/tui.h: Rename include guard.
14197 * tui/tui-winsource.h: Rename include guard.
14198 * tui/tui-wingeneral.h: Rename include guard.
14199 * tui/tui-windata.h: Rename include guard.
14200 * tui/tui-win.h: Rename include guard.
14201 * tui/tui-stack.h: Rename include guard.
14202 * tui/tui-source.h: Rename include guard.
14203 * tui/tui-regs.h: Rename include guard.
14204 * tui/tui-out.h: Rename include guard.
14205 * tui/tui-layout.h: Rename include guard.
14206 * tui/tui-io.h: Rename include guard.
14207 * tui/tui-hooks.h: Rename include guard.
14208 * tui/tui-file.h: Rename include guard.
14209 * tui/tui-disasm.h: Rename include guard.
14210 * tui/tui-data.h: Rename include guard.
14211 * tui/tui-command.h: Rename include guard.
14212 * tic6x-tdep.h: Add include guard.
14213 * target/waitstatus.h: Rename include guard.
14214 * target/wait.h: Rename include guard.
14215 * target/target.h: Rename include guard.
14216 * target/resume.h: Rename include guard.
14217 * target-float.h: Rename include guard.
14218 * stabsread.h: Add include guard.
14219 * rs6000-tdep.h: Add include guard.
14220 * riscv-fbsd-tdep.h: Add include guard.
14221 * regformats/regdef.h: Rename include guard.
14222 * record.h: Rename include guard.
14223 * python/python.h: Rename include guard.
14224 * python/python-internal.h: Rename include guard.
14225 * python/py-stopevent.h: Rename include guard.
14226 * python/py-ref.h: Rename include guard.
14227 * python/py-record.h: Rename include guard.
14228 * python/py-record-full.h: Rename include guard.
14229 * python/py-record-btrace.h: Rename include guard.
14230 * python/py-instruction.h: Rename include guard.
14231 * python/py-events.h: Rename include guard.
14232 * python/py-event.h: Rename include guard.
14233 * procfs.h: Add include guard.
14234 * proc-utils.h: Add include guard.
14235 * p-lang.h: Add include guard.
14236 * or1k-tdep.h: Rename include guard.
14237 * observable.h: Rename include guard.
14238 * nto-tdep.h: Rename include guard.
14239 * nat/x86-linux.h: Rename include guard.
14240 * nat/x86-linux-dregs.h: Rename include guard.
14241 * nat/x86-gcc-cpuid.h: Add include guard.
14242 * nat/x86-dregs.h: Rename include guard.
14243 * nat/x86-cpuid.h: Rename include guard.
14244 * nat/ppc-linux.h: Rename include guard.
14245 * nat/mips-linux-watch.h: Rename include guard.
14246 * nat/linux-waitpid.h: Rename include guard.
14247 * nat/linux-ptrace.h: Rename include guard.
14248 * nat/linux-procfs.h: Rename include guard.
14249 * nat/linux-osdata.h: Rename include guard.
14250 * nat/linux-nat.h: Rename include guard.
14251 * nat/linux-namespaces.h: Rename include guard.
14252 * nat/linux-btrace.h: Rename include guard.
14253 * nat/glibc_thread_db.h: Rename include guard.
14254 * nat/gdb_thread_db.h: Rename include guard.
14255 * nat/gdb_ptrace.h: Rename include guard.
14256 * nat/fork-inferior.h: Rename include guard.
14257 * nat/amd64-linux-siginfo.h: Rename include guard.
14258 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
14259 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
14260 * nat/aarch64-linux.h: Rename include guard.
14261 * nat/aarch64-linux-hw-point.h: Rename include guard.
14262 * mn10300-tdep.h: Add include guard.
14263 * mips-linux-tdep.h: Add include guard.
14264 * mi/mi-parse.h: Rename include guard.
14265 * mi/mi-out.h: Rename include guard.
14266 * mi/mi-main.h: Rename include guard.
14267 * mi/mi-interp.h: Rename include guard.
14268 * mi/mi-getopt.h: Rename include guard.
14269 * mi/mi-console.h: Rename include guard.
14270 * mi/mi-common.h: Rename include guard.
14271 * mi/mi-cmds.h: Rename include guard.
14272 * mi/mi-cmd-break.h: Rename include guard.
14273 * m2-lang.h: Add include guard.
14274 * location.h: Rename include guard.
14275 * linux-record.h: Rename include guard.
14276 * linux-nat.h: Add include guard.
14277 * linux-fork.h: Add include guard.
14278 * i386-darwin-tdep.h: Rename include guard.
14279 * hppa-linux-offsets.h: Add include guard.
14280 * guile/guile.h: Rename include guard.
14281 * guile/guile-internal.h: Rename include guard.
14282 * gnu-nat.h: Rename include guard.
14283 * gdb-stabs.h: Rename include guard.
14284 * frv-tdep.h: Add include guard.
14285 * f-lang.h: Add include guard.
14286 * event-loop.h: Add include guard.
14287 * darwin-nat.h: Rename include guard.
14288 * cp-abi.h: Rename include guard.
14289 * config/sparc/nm-sol2.h: Rename include guard.
14290 * config/nm-nto.h: Rename include guard.
14291 * config/nm-linux.h: Add include guard.
14292 * config/i386/nm-i386gnu.h: Rename include guard.
14293 * config/djgpp/nl_types.h: Rename include guard.
14294 * config/djgpp/langinfo.h: Rename include guard.
14295 * compile/gcc-cp-plugin.h: Add include guard.
14296 * compile/gcc-c-plugin.h: Add include guard.
14297 * compile/compile.h: Rename include guard.
14298 * compile/compile-object-run.h: Rename include guard.
14299 * compile/compile-object-load.h: Rename include guard.
14300 * compile/compile-internal.h: Rename include guard.
14301 * compile/compile-cplus.h: Rename include guard.
14302 * compile/compile-c.h: Rename include guard.
14303 * common/xml-utils.h: Rename include guard.
14304 * common/x86-xstate.h: Rename include guard.
14305 * common/version.h: Rename include guard.
14306 * common/vec.h: Rename include guard.
14307 * common/tdesc.h: Rename include guard.
14308 * common/selftest.h: Rename include guard.
14309 * common/scoped_restore.h: Rename include guard.
14310 * common/scoped_mmap.h: Rename include guard.
14311 * common/scoped_fd.h: Rename include guard.
14312 * common/safe-iterator.h: Rename include guard.
14313 * common/run-time-clock.h: Rename include guard.
14314 * common/refcounted-object.h: Rename include guard.
14315 * common/queue.h: Rename include guard.
14316 * common/ptid.h: Rename include guard.
14317 * common/print-utils.h: Rename include guard.
14318 * common/preprocessor.h: Rename include guard.
14319 * common/pathstuff.h: Rename include guard.
14320 * common/observable.h: Rename include guard.
14321 * common/netstuff.h: Rename include guard.
14322 * common/job-control.h: Rename include guard.
14323 * common/host-defs.h: Rename include guard.
14324 * common/gdb_wait.h: Rename include guard.
14325 * common/gdb_vecs.h: Rename include guard.
14326 * common/gdb_unlinker.h: Rename include guard.
14327 * common/gdb_unique_ptr.h: Rename include guard.
14328 * common/gdb_tilde_expand.h: Rename include guard.
14329 * common/gdb_sys_time.h: Rename include guard.
14330 * common/gdb_string_view.h: Rename include guard.
14331 * common/gdb_splay_tree.h: Rename include guard.
14332 * common/gdb_setjmp.h: Rename include guard.
14333 * common/gdb_ref_ptr.h: Rename include guard.
14334 * common/gdb_optional.h: Rename include guard.
14335 * common/gdb_locale.h: Rename include guard.
14336 * common/gdb_assert.h: Rename include guard.
14337 * common/filtered-iterator.h: Rename include guard.
14338 * common/filestuff.h: Rename include guard.
14339 * common/fileio.h: Rename include guard.
14340 * common/environ.h: Rename include guard.
14341 * common/common-utils.h: Rename include guard.
14342 * common/common-types.h: Rename include guard.
14343 * common/common-regcache.h: Rename include guard.
14344 * common/common-inferior.h: Rename include guard.
14345 * common/common-gdbthread.h: Rename include guard.
14346 * common/common-exceptions.h: Rename include guard.
14347 * common/common-defs.h: Rename include guard.
14348 * common/common-debug.h: Rename include guard.
14349 * common/cleanups.h: Rename include guard.
14350 * common/buffer.h: Rename include guard.
14351 * common/btrace-common.h: Rename include guard.
14352 * common/break-common.h: Rename include guard.
14353 * cli/cli-utils.h: Rename include guard.
14354 * cli/cli-style.h: Rename include guard.
14355 * cli/cli-setshow.h: Rename include guard.
14356 * cli/cli-script.h: Rename include guard.
14357 * cli/cli-interp.h: Rename include guard.
14358 * cli/cli-decode.h: Rename include guard.
14359 * cli/cli-cmds.h: Rename include guard.
14360 * charset-list.h: Add include guard.
14361 * buildsym-legacy.h: Rename include guard.
14362 * bfin-tdep.h: Add include guard.
14363 * ax.h: Rename include guard.
14364 * arm-linux-tdep.h: Add include guard.
14365 * arm-fbsd-tdep.h: Add include guard.
14366 * arch/xtensa.h: Rename include guard.
14367 * arch/tic6x.h: Add include guard.
14368 * arch/i386.h: Add include guard.
14369 * arch/arm.h: Rename include guard.
14370 * arch/arm-linux.h: Rename include guard.
14371 * arch/arm-get-next-pcs.h: Rename include guard.
14372 * arch/amd64.h: Add include guard.
14373 * arch/aarch64-insn.h: Rename include guard.
14374 * arch-utils.h: Rename include guard.
14375 * annotate.h: Add include guard.
14376 * amd64-darwin-tdep.h: Rename include guard.
14377 * aarch64-linux-tdep.h: Add include guard.
14378 * aarch64-fbsd-tdep.h: Add include guard.
14379 * aarch32-linux-nat.h: Add include guard.
14380
ab9268d2
PW
143812019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14382
14383 * macrotab.c (macro_define_internal): New function that
14384 factorizes macro_define_object_internal and macro_define_function
14385 code.
14386 (macro_define_object_internal): Use macro_define_internal.
14387 (macro_define_function): Likewise.
14388
bb0da2b4
PW
143892019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14390
14391 * macrocmd.c (extract_identifier): Return
14392 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
14393 callers.
14394
424eb552
JB
143952019-02-06 John Baldwin <jhb@FreeBSD.org>
14396
14397 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
14398
1688cb29
TT
143992019-02-05 Tom Tromey <tom@tromey.com>
14400
14401 * target.c (target_stack::unpush): Move assertion earlier.
14402
b5eba2d8
TT
144032019-01-30 Tom Tromey <tom@tromey.com>
14404
14405 PR python/23615:
14406 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
14407 (gdbpy_parse_and_eval): Likewise.
14408 * python/python-internal.h (gdbpy_allow_threads): New class.
14409
7054e2ff
JB
144102019-01-28 John Baldwin <jhb@FreeBSD.org>
14411
14412 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
14413 (aarch64_fbsd_fpregmap): Move earlier.
14414 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
14415 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
14416 instead of individual calls to trad_frame_set_reg_addr.
14417 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
14418 earlier.
14419 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
14420 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
14421 instead of individual calls to trad_frame_set_reg_addr.
14422
36c25ffa
AH
144232019-01-28 Alan Hayward <alan.hayward@arm.com>
14424
14425 * CONTRIBUTE: Replace contribution list with wiki link.
14426
a0707f3c
TT
144272019-01-25 Tom Tromey <tom@tromey.com>
14428
14429 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
14430
0747795c
TT
144312019-01-25 Tom Tromey <tom@tromey.com>
14432
14433 * xtensa-linux-nat.c: Fix common/ includes.
14434 * xml-support.h: Fix common/ includes.
14435 * xml-support.c: Fix common/ includes.
14436 * x86-linux-nat.c: Fix common/ includes.
14437 * windows-nat.c: Fix common/ includes.
14438 * varobj.h: Fix common/ includes.
14439 * varobj.c: Fix common/ includes.
14440 * value.c: Fix common/ includes.
14441 * valops.c: Fix common/ includes.
14442 * utils.c: Fix common/ includes.
14443 * unittests/xml-utils-selftests.c: Fix common/ includes.
14444 * unittests/utils-selftests.c: Fix common/ includes.
14445 * unittests/unpack-selftests.c: Fix common/ includes.
14446 * unittests/tracepoint-selftests.c: Fix common/ includes.
14447 * unittests/style-selftests.c: Fix common/ includes.
14448 * unittests/string_view-selftests.c: Fix common/ includes.
14449 * unittests/scoped_restore-selftests.c: Fix common/ includes.
14450 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
14451 * unittests/scoped_fd-selftests.c: Fix common/ includes.
14452 * unittests/rsp-low-selftests.c: Fix common/ includes.
14453 * unittests/parse-connection-spec-selftests.c: Fix common/
14454 includes.
14455 * unittests/optional-selftests.c: Fix common/ includes.
14456 * unittests/offset-type-selftests.c: Fix common/ includes.
14457 * unittests/observable-selftests.c: Fix common/ includes.
14458 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
14459 * unittests/memrange-selftests.c: Fix common/ includes.
14460 * unittests/memory-map-selftests.c: Fix common/ includes.
14461 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
14462 * unittests/function-view-selftests.c: Fix common/ includes.
14463 * unittests/environ-selftests.c: Fix common/ includes.
14464 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
14465 * unittests/common-utils-selftests.c: Fix common/ includes.
14466 * unittests/cli-utils-selftests.c: Fix common/ includes.
14467 * unittests/array-view-selftests.c: Fix common/ includes.
14468 * ui-file.c: Fix common/ includes.
14469 * tui/tui-io.c: Fix common/ includes.
14470 * tracepoint.h: Fix common/ includes.
14471 * tracepoint.c: Fix common/ includes.
14472 * tracefile-tfile.c: Fix common/ includes.
14473 * top.h: Fix common/ includes.
14474 * top.c: Fix common/ includes.
14475 * thread.c: Fix common/ includes.
14476 * target/waitstatus.h: Fix common/ includes.
14477 * target/waitstatus.c: Fix common/ includes.
14478 * target.h: Fix common/ includes.
14479 * target.c: Fix common/ includes.
14480 * target-memory.c: Fix common/ includes.
14481 * target-descriptions.c: Fix common/ includes.
14482 * symtab.h: Fix common/ includes.
14483 * symfile.c: Fix common/ includes.
14484 * stap-probe.c: Fix common/ includes.
14485 * spu-linux-nat.c: Fix common/ includes.
14486 * sparc-nat.c: Fix common/ includes.
14487 * source.c: Fix common/ includes.
14488 * solib.c: Fix common/ includes.
14489 * solib-target.c: Fix common/ includes.
14490 * ser-unix.c: Fix common/ includes.
14491 * ser-tcp.c: Fix common/ includes.
14492 * ser-pipe.c: Fix common/ includes.
14493 * ser-base.c: Fix common/ includes.
14494 * selftest-arch.c: Fix common/ includes.
14495 * s12z-tdep.c: Fix common/ includes.
14496 * rust-exp.y: Fix common/ includes.
14497 * rs6000-aix-tdep.c: Fix common/ includes.
14498 * riscv-tdep.c: Fix common/ includes.
14499 * remote.c: Fix common/ includes.
14500 * remote-notif.h: Fix common/ includes.
14501 * remote-fileio.h: Fix common/ includes.
14502 * remote-fileio.c: Fix common/ includes.
14503 * regcache.h: Fix common/ includes.
14504 * regcache.c: Fix common/ includes.
14505 * record-btrace.c: Fix common/ includes.
14506 * python/python.c: Fix common/ includes.
14507 * python/py-type.c: Fix common/ includes.
14508 * python/py-inferior.c: Fix common/ includes.
14509 * progspace.h: Fix common/ includes.
14510 * producer.c: Fix common/ includes.
14511 * procfs.c: Fix common/ includes.
14512 * proc-api.c: Fix common/ includes.
14513 * printcmd.c: Fix common/ includes.
14514 * ppc-linux-nat.c: Fix common/ includes.
14515 * parser-defs.h: Fix common/ includes.
14516 * osdata.c: Fix common/ includes.
14517 * obsd-nat.c: Fix common/ includes.
14518 * nat/x86-linux.c: Fix common/ includes.
14519 * nat/x86-linux-dregs.c: Fix common/ includes.
14520 * nat/x86-dregs.h: Fix common/ includes.
14521 * nat/x86-dregs.c: Fix common/ includes.
14522 * nat/ppc-linux.c: Fix common/ includes.
14523 * nat/mips-linux-watch.h: Fix common/ includes.
14524 * nat/mips-linux-watch.c: Fix common/ includes.
14525 * nat/linux-waitpid.c: Fix common/ includes.
14526 * nat/linux-ptrace.h: Fix common/ includes.
14527 * nat/linux-ptrace.c: Fix common/ includes.
14528 * nat/linux-procfs.c: Fix common/ includes.
14529 * nat/linux-personality.c: Fix common/ includes.
14530 * nat/linux-osdata.c: Fix common/ includes.
14531 * nat/linux-namespaces.c: Fix common/ includes.
14532 * nat/linux-btrace.h: Fix common/ includes.
14533 * nat/linux-btrace.c: Fix common/ includes.
14534 * nat/fork-inferior.c: Fix common/ includes.
14535 * nat/amd64-linux-siginfo.c: Fix common/ includes.
14536 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
14537 * nat/aarch64-linux.c: Fix common/ includes.
14538 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
14539 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
14540 * namespace.h: Fix common/ includes.
14541 * mips-linux-tdep.c: Fix common/ includes.
14542 * minsyms.c: Fix common/ includes.
14543 * mi/mi-parse.h: Fix common/ includes.
14544 * mi/mi-main.c: Fix common/ includes.
14545 * mi/mi-cmd-env.c: Fix common/ includes.
14546 * memrange.h: Fix common/ includes.
14547 * memattr.c: Fix common/ includes.
14548 * maint.h: Fix common/ includes.
14549 * maint.c: Fix common/ includes.
14550 * main.c: Fix common/ includes.
14551 * machoread.c: Fix common/ includes.
14552 * location.c: Fix common/ includes.
14553 * linux-thread-db.c: Fix common/ includes.
14554 * linux-nat.c: Fix common/ includes.
14555 * linux-fork.c: Fix common/ includes.
14556 * inline-frame.c: Fix common/ includes.
14557 * infrun.c: Fix common/ includes.
14558 * inflow.c: Fix common/ includes.
14559 * inferior.h: Fix common/ includes.
14560 * inferior.c: Fix common/ includes.
14561 * infcmd.c: Fix common/ includes.
14562 * inf-ptrace.c: Fix common/ includes.
14563 * inf-child.c: Fix common/ includes.
14564 * ia64-linux-nat.c: Fix common/ includes.
14565 * i387-tdep.c: Fix common/ includes.
14566 * i386-tdep.c: Fix common/ includes.
14567 * i386-linux-tdep.c: Fix common/ includes.
14568 * i386-linux-nat.c: Fix common/ includes.
14569 * i386-go32-tdep.c: Fix common/ includes.
14570 * i386-fbsd-tdep.c: Fix common/ includes.
14571 * i386-fbsd-nat.c: Fix common/ includes.
14572 * guile/scm-type.c: Fix common/ includes.
14573 * guile/guile.c: Fix common/ includes.
14574 * go32-nat.c: Fix common/ includes.
14575 * gnu-nat.c: Fix common/ includes.
14576 * gdbthread.h: Fix common/ includes.
14577 * gdbarch-selftests.c: Fix common/ includes.
14578 * gdb_usleep.c: Fix common/ includes.
14579 * gdb_select.h: Fix common/ includes.
14580 * gdb_bfd.c: Fix common/ includes.
14581 * gcore.c: Fix common/ includes.
14582 * fork-child.c: Fix common/ includes.
14583 * findvar.c: Fix common/ includes.
14584 * fbsd-nat.c: Fix common/ includes.
14585 * event-top.c: Fix common/ includes.
14586 * event-loop.c: Fix common/ includes.
14587 * dwarf2read.c: Fix common/ includes.
14588 * dwarf2loc.c: Fix common/ includes.
14589 * dwarf2-frame.c: Fix common/ includes.
14590 * dwarf-index-cache.c: Fix common/ includes.
14591 * dtrace-probe.c: Fix common/ includes.
14592 * disasm-selftests.c: Fix common/ includes.
14593 * defs.h: Fix common/ includes.
14594 * csky-tdep.c: Fix common/ includes.
14595 * cp-valprint.c: Fix common/ includes.
14596 * cp-support.h: Fix common/ includes.
14597 * cp-support.c: Fix common/ includes.
14598 * corelow.c: Fix common/ includes.
14599 * completer.h: Fix common/ includes.
14600 * completer.c: Fix common/ includes.
14601 * compile/compile.c: Fix common/ includes.
14602 * compile/compile-loc2c.c: Fix common/ includes.
14603 * compile/compile-cplus-types.c: Fix common/ includes.
14604 * compile/compile-cplus-symbols.c: Fix common/ includes.
14605 * command.h: Fix common/ includes.
14606 * cli/cli-dump.c: Fix common/ includes.
14607 * cli/cli-cmds.c: Fix common/ includes.
14608 * charset.c: Fix common/ includes.
14609 * build-id.c: Fix common/ includes.
14610 * btrace.h: Fix common/ includes.
14611 * btrace.c: Fix common/ includes.
14612 * breakpoint.h: Fix common/ includes.
14613 * breakpoint.c: Fix common/ includes.
14614 * ax.h:
14615 (enum agent_op): Fix common/ includes.
14616 * ax-general.c (struct aop_map): Fix common/ includes.
14617 * ax-gdb.c: Fix common/ includes.
14618 * auxv.c: Fix common/ includes.
14619 * auto-load.c: Fix common/ includes.
14620 * arm-tdep.c: Fix common/ includes.
14621 * arch/riscv.c: Fix common/ includes.
14622 * arch/ppc-linux-common.c: Fix common/ includes.
14623 * arch/i386.c: Fix common/ includes.
14624 * arch/arm.c: Fix common/ includes.
14625 * arch/arm-linux.c: Fix common/ includes.
14626 * arch/arm-get-next-pcs.c: Fix common/ includes.
14627 * arch/amd64.c: Fix common/ includes.
14628 * arch/aarch64.c: Fix common/ includes.
14629 * arch/aarch64-insn.c: Fix common/ includes.
14630 * arch-utils.c: Fix common/ includes.
14631 * amd64-windows-tdep.c: Fix common/ includes.
14632 * amd64-tdep.c: Fix common/ includes.
14633 * amd64-sol2-tdep.c: Fix common/ includes.
14634 * amd64-obsd-tdep.c: Fix common/ includes.
14635 * amd64-nbsd-tdep.c: Fix common/ includes.
14636 * amd64-linux-tdep.c: Fix common/ includes.
14637 * amd64-linux-nat.c: Fix common/ includes.
14638 * amd64-fbsd-tdep.c: Fix common/ includes.
14639 * amd64-fbsd-nat.c: Fix common/ includes.
14640 * amd64-dicos-tdep.c: Fix common/ includes.
14641 * amd64-darwin-tdep.c: Fix common/ includes.
14642 * agent.c: Fix common/ includes.
14643 * ada-lang.h: Fix common/ includes.
14644 * ada-lang.c: Fix common/ includes.
14645 * aarch64-tdep.c: Fix common/ includes.
14646
2f5c153e
TT
146472019-01-25 Tom Tromey <tom@tromey.com>
14648
14649 * common/create-version.sh: Use common/version.h.
14650
adc6a863
PA
146512019-01-24 Pedro Alves <palves@redhat.com>
14652
14653 * infrun.c (signal_stop, signal_print, signal_program)
14654 (signal_catch, signal_pass): Now arrays instead of pointers.
14655 (update_signals_program_target, do_target_resume)
14656 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
14657 * linux-nat.c (linux_nat_target::pass_signals)
14658 (linux_nat_target::create_inferior, linux_nat_target::attach):
14659 Adjust.
14660 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
14661 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
14662 * procfs.c (procfs_target::pass_signals): Adjust.
14663 * record-full.c (record_full_target::resume): Adjust.
14664 * remote.c (remote_target::pass_signals)
14665 (remote_target::program_signals): Adjust.
14666 * target-debug.h (target_debug_print_signals): Now takes a
14667 gdb::array_view as parameter. Adjust.
14668 * target.h (target_ops) <pass_signals, program_signals>: Replace
14669 pointer and length parameters with gdb::array_view.
14670 (target_pass_signals, target_program_signals): Likewise.
14671 * target-delegates.c: Regenerate.
14672
3046d67a
PA
146732019-01-24 Pedro Alves <palves@redhat.com>
14674
14675 * common/forward-scope-exit.h
14676 (forward_scope_exit::forward_scope_exit): Pass arguments to
14677 m_bind_function directly, instead of creating a std::bind and
14678 copying that.
14679
353229bf
AH
146802019-01-24 Alan Hayward <alan.hayward@arm.com>
14681
14682 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
14683 for static members.
14684 (pass_in_v_vfp_candidate): Likewise.
14685
311dc83a
TT
146862019-01-23 Tom Tromey <tom@tromey.com>
14687 Pedro Alves <palves@redhat.com>
14688
14689 * regcache.c (class regcache_invalidator): Remove.
14690 (regcache::raw_write): Use make_scope_exit.
14691
296bd123
TT
146922019-01-23 Tom Tromey <tom@tromey.com>
14693
14694 * ui-out.h (class ui_out_emit_type): Update comment.
14695
979a0d13
TT
146962019-01-23 Tom Tromey <tom@tromey.com>
14697
14698 * infrun.c (fetch_inferior_event): Update comment.
14699
d238133d
TT
147002019-01-23 Tom Tromey <tom@tromey.com>
14701 Pedro Alves <palves@redhat.com>
14702
14703 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
14704 parameter.
14705 (fetch_inferior_event): Use SCOPE_EXIT.
14706
14707
9885e6bb
TT
147082019-01-23 Tom Tromey <tom@tromey.com>
14709 Pedro Alves <palves@redhat.com>
14710
14711 * infrun.c (disable_thread_events): Delete.
14712 (stop_all_threads): Use SCOPE_EXIT.
14713
286526c1
TT
147142019-01-23 Tom Tromey <tom@tromey.com>
14715 Pedro Alves <palves@redhat.com>
14716
14717 * symfile.c: Include forward-scope-exit.h.
14718 (clear_symtab_users_cleanup): Replace forward declaration with
14719 a FORWARD_SCOPE_EXIT.
14720 (syms_from_objfile_1): Use the forward_scope_exit and
14721 gdb::optional instead of cleanup_function.
14722 (reread_symbols): Use the forward_scope_exit instead of
14723 cleanup_function.
14724 (clear_symtab_users_cleanup): Remove function.
14725
1db93f14
TT
147262019-01-23 Tom Tromey <tom@tromey.com>
14727 Pedro Alves <palves@redhat.com>
14728
14729 * linux-nat.c: Include scope-exit.h.
14730 (cleanup_target_stop): Remove.
14731 (linux_nat_target::static_tracepoint_markers_by_strid): Use
14732 SCOPE_EXIT.
14733
2cc83d1e
TT
147342019-01-23 Tom Tromey <tom@tromey.com>
14735 Pedro Alves <palves@redhat.com>
14736
14737 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
14738 (call_function_by_hand_dummy): Use SCOPE_EXIT.
14739
694c6bf5
TT
147402019-01-23 Tom Tromey <tom@tromey.com>
14741 Andrew Burgess <andrew.burgess@embecosm.com>
14742 Pedro Alves <palves@redhat.com>
14743
14744 * infrun.c (fetch_inferior_event): Use scope_exit.
14745 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
14746 * top.c (execute_command): Use scope_exit.
14747 * breakpoint.c (bpstat_do_actions): Use scope_exit.
14748 * utils.c (do_bpstat_clear_actions_cleanup)
14749 (make_bpstat_clear_actions_cleanup): Remove.
14750
4c41382a
TT
147512019-01-23 Tom Tromey <tom@tromey.com>
14752 Pedro Alves <palves@redhat.com>
14753
14754 * infrun.c: Include "common/scope-exit.h"
14755 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
14756 (wait_for_inferior): Use SCOPE_EXIT.
14757 (fetch_inferior_event): Use scope_exit.
14758
89f8fb50
TT
147592019-01-23 Tom Tromey <tom@tromey.com>
14760 Pedro Alves <palves@redhat.com>
14761
14762 * breakpoint.c (create_breakpoint): Remove cleanup.
14763
5419bdae
TT
147642019-01-23 Tom Tromey <tom@tromey.com>
14765 Andrew Burgess <andrew.burgess@embecosm.com>
14766 Pedro Alves <palves@redhat.com>
14767
e587ef42
PA
147682019-01-23 Pedro Alves <palves@redhat.com>
14769
14770 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
14771
77f0e74c
PA
147722019-01-23 Pedro Alves <palves@redhat.com>
14773 Andrew Burgess <andrew.burgess@embecosm.com>
14774
14775 * gdbthread.h: Include "common/forward-scope-exit.h".
14776 (scoped_finish_thread_state): Redefine custom class in terms of
14777 forward_scope_exit.
14778
5b9b3e53
PA
147792019-01-23 Pedro Alves <palves@redhat.com>
14780 Andrew Burgess <andrew.burgess@embecosm.com>
14781
14782 * common/forward-scope-exit.h: New file.
14783
54b65c9b
PA
147842019-01-23 Pedro Alves <palves@redhat.com>
14785 Andrew Burgess <andrew.burgess@embecosm.com>
14786 Tom Tromey <tom@tromey.com>
14787
14788 * common/scope-exit.h: New file.
14789
cf08fb29
PA
147902019-01-23 Pedro Alves <palves@redhat.com>
14791
14792 * common/preprocessor.h (ESC): Rename to ...
14793 (ESC_PARENS): ... this.
14794 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
14795 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
14796
ae73e2e2
TT
147972019-01-23 Tom Tromey <tom@tromey.com>
14798
14799 * language.h (class scoped_switch_to_sym_language_if_auto):
14800 Initialize m_lang in both cases.
14801
6594e122
AH
148022019-01-23 Alan Hayward <alan.hayward@arm.com>
14803
14804 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
14805 with XCNEW.
14806
a7c9855d
TT
148072019-01-22 Tom Tromey <tom@tromey.com>
14808
14809 * corelow.c: Do not include sys/file.h.
14810
93cc1d53
TT
148112019-01-22 Tom Tromey <tom@tromey.com>
14812
14813 * tui/tui-wingeneral.h: Include gdb_curses.h.
14814
38561778
TT
148152019-01-22 Tom Tromey <tom@tromey.com>
14816
14817 * source-cache.h (class source_cache) <get_source_lines,
14818 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
14819
37b3ab5b
TT
148202019-01-22 Tom Tromey <tom@tromey.com>
14821
14822 * remote-fileio.h (struct remote_target): Declare.
14823
3fabc016
TT
148242019-01-22 Tom Tromey <tom@tromey.com>
14825
14826 * python/py-arch.c: Do not include py-ref.h.
14827 * python/py-bpevent.c: Do not include py-ref.h.
14828 * python/py-cmd.c: Do not include py-ref.h.
14829 * python/py-continueevent.c: Do not include py-ref.h.
14830 * python/py-event.h: Do not include py-ref.h.
14831 * python/py-evtregistry.c: Do not include py-ref.h.
14832 * python/py-finishbreakpoint.c: Do not include py-ref.h.
14833 * python/py-frame.c: Do not include py-ref.h.
14834 * python/py-framefilter.c: Do not include py-ref.h.
14835 * python/py-function.c: Do not include py-ref.h.
14836 * python/py-infevents.c: Do not include py-ref.h.
14837 * python/py-linetable.c: Do not include py-ref.h.
14838 * python/py-objfile.c: Do not include py-ref.h.
14839 * python/py-param.c: Do not include py-ref.h.
14840 * python/py-prettyprint.c: Do not include py-ref.h.
14841 * python/py-progspace.c: Do not include py-ref.h.
14842 * python/py-symbol.c: Do not include py-ref.h.
14843 * python/py-symtab.c: Do not include py-ref.h.
14844 * python/py-type.c: Do not include py-ref.h.
14845 * python/py-unwind.c: Do not include py-ref.h.
14846 * python/py-utils.c: Do not include py-ref.h.
14847 * python/py-value.c: Do not include py-ref.h.
14848 * python/py-varobj.c: Do not include py-ref.h.
14849 * python/py-xmethods.c: Do not include py-ref.h.
14850 * python/python.c: Do not include py-ref.h.
14851 * varobj.c: Do not include py-ref.h.
14852
6b4d7774
TT
148532019-01-22 Tom Tromey <tom@tromey.com>
14854
14855 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
14856 keyword for bcache.
14857
7af7e9b5
TT
148582019-01-22 Tom Tromey <tom@tromey.com>
14859
14860 * compile/compile-cplus-types.c: Remove a comment by #include.
14861
951d1049
TT
148622019-01-22 Tom Tromey <tom@tromey.com>
14863
14864 * compile/gcc-c-plugin.h: Include compile-internal.h.
14865
d65d5705
TT
148662019-01-22 Tom Tromey <tom@tromey.com>
14867
14868 * stabsread.c (EXTERN): Do not define.
14869 (symnum, next_symbol_text_func, processing_gcc_compilation)
14870 (within_function, global_sym_chain, global_stabs)
14871 (previous_stab_code, this_object_header_files)
14872 (n_this_object_header_files)
14873 (n_allocated_this_object_header_files): Define.
14874 * stabsread.h (EXTERN): Never define. Use "extern".
14875
b6fb1ee5
PW
148762019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14877
14878 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
14879 history_value.
14880
be6d4f74
TT
148812019-01-21 Tom Tromey <tom@tromey.com>
14882
14883 * ui-out.c: Fix includes.
14884 * tui/tui-source.c: Fix includes.
14885 * target.c: Fix includes.
14886 * remote.c: Fix includes.
14887 * regcache.c: Fix includes.
14888 * python/py-block.c: Fix includes.
14889 * printcmd.c: Fix includes.
14890 * or1k-tdep.c: Fix includes.
14891 * mi/mi-main.c: Fix includes.
14892 * m32r-tdep.c: Fix includes.
14893 * csky-tdep.c: Fix includes.
14894 * compile/compile-cplus-types.c: Fix includes.
14895 * cli/cli-interp.c: Fix includes.
14896
73021deb
AH
148972019-01-21 Alan Hayward <alan.hayward@arm.com>
14898
14899 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
14900 for padding.
14901
7932255d
TT
149022019-01-16 Tom Tromey <tom@tromey.com>
14903
14904 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
14905 earlier.
14906 (struct objfile) <msymbols_range>: Move from top level.
14907 <msymbols>: New method.
14908 (class objfile_msymbols): Remove.
14909 * symtab.c (default_collect_symbol_completion_matches_break_on):
14910 Update.
14911 * symmisc.c (dump_msymbols): Update.
14912 * stabsread.c (scan_file_globals): Update.
14913 * objc-lang.c (info_selectors_command, info_classes_command)
14914 (find_methods): Update.
14915 * minsyms.c (find_solib_trampoline_target): Update.
14916 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
14917 * coffread.c (coff_symfile_read): Update.
14918 * ada-lang.c (ada_lookup_simple_minsym)
14919 (ada_collect_symbol_completion_matches): Update.
14920
604b1bfb
TT
149212019-01-16 Tom Tromey <tom@tromey.com>
14922
14923 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
14924 type. Remove no-argument constructor.
14925 <iterator::operator++>: Simplify.
14926 <begin>: Update.
14927 <end>: Use minimal_symbol_count.
14928
f252c6d5
TT
149292019-01-16 Tom Tromey <tom@tromey.com>
14930
14931 * objfiles.h (struct objfile) <psymtabs>: New method.
14932 (class objfile_psymtabs): Remove.
14933 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
14934 typedef.
14935 <range>: New method.
14936 (require_partial_symbols): Change return type.
14937 * psymtab.c (require_partial_symbols)
14938 (psym_expand_symtabs_matching): Update.
14939 * mdebugread.c (parse_partial_symbols): Update.
14940 * dbxread.c (dbx_end_psymtab): Update.
14941
b669c953
TT
149422019-01-15 Tom Tromey <tom@tromey.com>
14943
14944 * symtab.c (lookup_objfile_from_block)
14945 (lookup_symbol_in_objfile_symtabs)
14946 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
14947 (find_line_symtab, info_sources_command)
14948 (default_collect_symbol_completion_matches_break_on)
14949 (make_source_files_completion_list): Update.
14950 * symmisc.c (print_objfile_statistics, dump_objfile)
14951 (maintenance_print_symbols, maintenance_info_symtabs)
14952 (maintenance_check_symtabs, maintenance_info_line_tables):
14953 Update.
14954 * source.c (select_source_symtab)
14955 (forget_cached_source_info_for_objfile): Update.
14956 * objfiles.h (class objfile_compunits): Remove.
14957 (struct objfile) <compunits_range>: New typedef.
14958 (compunits): New method.
14959 * objfiles.c (objfile_relocate1): Update.
14960 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
14961 * maint.c (count_symtabs_and_blocks): Update.
14962 * linespec.c (iterate_over_all_matching_symtabs): Update.
14963 * cp-support.c (add_symbol_overload_list_qualified): Update.
14964 * coffread.c (coff_symtab_read): Update.
14965 * ada-lang.c (add_nonlocal_symbols)
14966 (ada_collect_symbol_completion_matches)
14967 (ada_add_global_exceptions): Update.
14968
7e955d83
TT
149692019-01-15 Tom Tromey <tom@tromey.com>
14970
14971 * progspace.h (program_space) <objfiles_safe_range>: New
14972 typedef.
14973 <objfiles_safe>: New method.
14974 * objfiles.h (class all_objfiles_safe): Remove.
14975 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
14976 * jit.c (jit_inferior_exit_hook): Update.
14977
2030c079
TT
149782019-01-17 Tom Tromey <tom@tromey.com>
14979
14980 * progspace.h (program_space) <objfiles_range>: New typedef.
14981 <objfiles>: New method.
14982 <objfiles_head>: Rename from objfiles.
14983 (object_files): Update.
14984 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
14985 * guile/scm-pretty-print.c
14986 (ppscm_find_pretty_printer_from_objfiles): Update.
14987 * guile/scm-objfile.c (gdbscm_objfiles): Update.
14988 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
14989 Update.
14990 * python/py-progspace.c (pspy_get_objfiles): Update.
14991 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
14992 Update.
14993 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
14994 (objfpy_lookup_objfile_by_build_id): Update.
14995 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
14996 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
14997 Update.
14998 * symtab.c (iterate_over_symtabs, matching_obj_sections)
14999 (expand_symtab_containing_pc, lookup_objfile_from_block)
15000 (lookup_static_symbol, basic_lookup_transparent_type)
15001 (find_pc_sect_compunit_symtab, find_symbol_at_address)
15002 (find_line_symtab, info_sources_command)
15003 (default_collect_symbol_completion_matches_break_on)
15004 (make_source_files_completion_list, find_main_name): Update.
15005 * symmisc.c (print_symbol_bcache_statistics)
15006 (print_objfile_statistics, maintenance_print_symbols)
15007 (maintenance_print_msymbols, maintenance_print_objfiles)
15008 (maintenance_info_symtabs, maintenance_check_symtabs)
15009 (maintenance_expand_symtabs, maintenance_info_line_tables):
15010 Update.
15011 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
15012 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
15013 (map_overlay_command, unmap_overlay_command)
15014 (simple_overlay_update, expand_symtabs_matching)
15015 (map_symbol_filenames): Update.
15016 * symfile-debug.c (set_debug_symfile): Update.
15017 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
15018 Update.
15019 * source.c (select_source_symtab, forget_cached_source_info):
15020 Update.
15021 * solib.c (solib_read_symbols): Update.
15022 * solib-spu.c (append_ocl_sos): Update.
15023 * psymtab.c (maintenance_print_psymbols)
15024 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
15025 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
15026 * printcmd.c (info_symbol_command): Update.
15027 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
15028 Update.
15029 * objfiles.h (class all_objfiles): Remove.
15030 * objfiles.c (have_partial_symbols, have_full_symbols)
15031 (have_minimal_symbols, qsort_cmp, update_section_map)
15032 (shared_objfile_contains_address_p)
15033 (default_iterate_over_objfiles_in_search_order): Update.
15034 * objc-lang.c (info_selectors_command, info_classes_command)
15035 (find_methods): Update.
15036 * minsyms.c (find_solib_trampoline_target): Update.
15037 * maint.c (maintenance_info_sections)
15038 (maintenance_translate_address, count_symtabs_and_blocks):
15039 Update.
15040 * main.c (captured_main_1): Update.
15041 * linux-thread-db.c (try_thread_db_load_from_pdir)
15042 (has_libpthread): Update.
15043 * linespec.c (iterate_over_all_matching_symtabs)
15044 (search_minsyms_for_name): Update.
15045 * jit.c (jit_find_objf_with_entry_addr): Update.
15046 * hppa-tdep.c (find_unwind_entry)
15047 (hppa_lookup_stub_minimal_symbol): Update.
15048 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
15049 Update.
15050 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
15051 (elf_gnu_ifunc_resolve_by_got): Update.
15052 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
15053 * dwarf-index-write.c (save_gdb_index_command): Update.
15054 * cp-support.c (add_symbol_overload_list_qualified): Update.
15055 * breakpoint.c (create_overlay_event_breakpoint)
15056 (create_longjmp_master_breakpoint)
15057 (create_std_terminate_master_breakpoint)
15058 (create_exception_master_breakpoint): Update.
15059 * blockframe.c (find_pc_partial_function): Update.
15060 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
15061 (ada_collect_symbol_completion_matches)
15062 (ada_add_global_exceptions): Update.
15063
776489e0
TT
150642019-01-17 Tom Tromey <tom@tromey.com>
15065
15066 * solib-target.c (lm_info_target_p): Remove typedef. Don't
15067 declare VEC.
15068 (solib_target_parse_libraries): Change return type.
15069 (library_list_start_segment, library_list_start_section)
15070 (library_list_end_library, library_list_start_library); Update.
15071 (solib_target_free_library_list): Remove.
15072 (solib_target_parse_libraries): Remove cleanup. Change return
15073 type.
15074 (solib_target_current_sos): Update.
15075
6471e7d2
TT
150762019-01-17 Tom Tromey <tromey@bapiya>
15077
15078 * valprint.c: Replace "the the" with "the".
15079 * symtab.c: Replace "the the" with "the".
15080 * solib.c: Replace "the the" with "the".
15081 * solib-dsbt.c: Replace "the the" with "the".
15082 * linespec.c: Replace "the the" with "the".
15083 * dwarf2loc.h: Replace "the the" with "the".
15084 * amd64-windows-tdep.c: Replace "the the" with "the".
15085 * aarch64-tdep.c: Replace "the the" with "the".
15086
c24bdb02
KS
150872019-01-16 Keith Seitz <keiths@redhat.com>
15088
15089 PR gdb/23773
15090 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
15091 <builder>: Rename to ..
15092 <m_builder>: ... this and make private.
15093 (dwarf2_cu::get_builder): New method. Change all users of
15094 `builder' to use this method.
15095 (dwarf2_start_symtab): Move to ...
15096 (dwarf2_cu::start_symtab): ... here. Update all callers
15097 (setup_type_unit_groups): Move to ...
15098 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
15099 callers.
15100 (dwarf2_cu::reset_builder): New method.
15101 (process_full_compunit, process_full_type_unit): Use
15102 dwarf2_cu::reset_builder.
15103 (follow_die_offset): Record the ancestor CU if it is different
15104 from the followed DIE's CU.
15105 (follow_die_sig_1): Likewise.
15106
8d64371b
TT
151072019-01-15 Tom Tromey <tom@tromey.com>
15108
15109 * remote.c (class remote_state) <buf>: Now a char_vector.
15110 <buf_size>: Remove.
15111 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
15112 parameter.
15113 (remote_target::getpkt_or_notif_sane_1)
15114 (remote_target::getpkt_sane)
15115 (remote_target::getpkt_or_notif_sane): Likewise.
15116 (class remote_target) <putpkt>: New overload.
15117 (remote_target::read_frame): Change type of "buf_p". Remove
15118 sizeof_p parameter.
15119 (packet_ok): New overload.
15120 (packet_check_result): New overload.
15121 Update all uses.
15122
bb277751
TT
151232019-01-14 Tom Tromey <tom@tromey.com>
15124
15125 * remote-notif.c (handle_notification, remote_notif_ack)
15126 (remote_notif_parse): Make "buf" const.
15127 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
15128 const.
15129 (remote_notif_parse, remote_notif_ack, handle_notification):
15130 Likewise.
15131 * remote.c (remote_notif_stop_parse): Make "buf" const.
15132 (remote_target::remote_parse_stop_reply): Make "buf" const.
15133 (remote_notif_stop_ack): Make "buf" const.
15134
05be00a8
TT
151352019-01-14 Tom Tromey <tom@tromey.com>
15136
15137 * remote.c (remote_console_output): Make parameter const.
15138
491adeca
TT
151392019-01-14 Tom Tromey <tom@tromey.com>
15140
15141 * target-debug.h (target_debug_print_signals): Constify.
15142 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
15143 * procfs.c (procfs_target::pass_signals): Update.
15144 * linux-nat.c (linux_nat_target::pass_signals): Update.
15145 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
15146 * target-delegates.c: Rebuild.
15147 * remote.c (remote_target::program_signals): Update.
15148 (remote_target::pass_signals): Update.
15149 * target.c (target_pass_signals): Constify argument.
15150 (target_program_signals): Likewise.
15151 * target.h (struct target_ops) <pass_signals, program_signals>:
15152 Constify argument.
15153 (target_pass_signals, target_program_signals): Constify argument.
15154
bbd94648
TT
151552019-01-14 Tom Tromey <tom@tromey.com>
15156
15157 PR tui/28819:
15158 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
15159
6f072a10
PFC
151602019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
15161
15162 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
15163 field.
15164 * rs6000-tdep.c: Include reggroups.h.
15165 (IS_V_ALIAS_PSEUDOREG): Define.
15166 (rs6000_register_name): Return names for the "vX" aliases.
15167 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
15168 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
15169 aliases. Call default_register_reggroup_p for all other
15170 pseudo-registers.
15171 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
15172 New functions.
15173 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
15174 Handle "vX" aliases.
15175 (v_alias_pseudo_register_collect): New function.
15176 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
15177 (rs6000_gdbarch_init): Initialize "vX" aliases as
15178 pseudo-registers. Restore registration of
15179 rs6000_pseudo_register_reggroup_p with
15180 set_tdesc_pseudo_register_reggroup_p.
15181
1a782351
MF
151822019-01-13 Max Filippov <jcmvbkbc@gmail.com>
15183
15184 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
15185 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
15186 set_gdbarch_num_pseudo_regs.
15187
d73cff18
PW
151882019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15189
15190 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
15191 Remove arg prefixname, add do_set and do_show.
15192 Add member functions set_list and show_list.
15193 * cli/cli-style.c (class cli_style_option): Update accordingly.
15194 (style_set_list): Move to file scope.
15195 (style_show_list): Likewise.
15196 (set_style): Call help_list.
15197 (show_style): Call cmd_show_list.
15198 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
15199 Update to use the new macro.
15200
60a90376
JB
152012019-10-12 Joel Brobecker <brobecker@adacore.com>
15202
15203 * ada-lang.c (_initialize_ada_language): Expand the help text
15204 for the "catch exception" command.
15205
9d7c67bf
PW
152062019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15207
15208 * symtab.c (matching_obj_sections): Initialize obj,
15209 declare it closer to its usage.
15210
7cf47dc4
TT
152112019-01-10 Tom Tromey <tom@tromey.com>
15212
15213 * thread-iter.h (inf_threads_iterator): Use next_iterator.
15214 (basic_inf_threads_range): Remove.
15215 (inf_threads_range, inf_non_exited_threads_range)
15216 (safe_inf_threads_range): Use next_adapter.
15217
d3cb6808
KS
152182019-01-10 Keith Seitz <keiths@redhat.com>
15219
15220 PR gdb/23712
15221 PR symtab/23010
15222 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
15223 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
15224
63a20375
KS
152252019-01-10 Keith Seitz <keiths@redhat.com>
15226
15227 PR gdb/23712
15228 PR symtab/23010
15229 * dictionary.c (pending_to_vector): Remove.
15230 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
15231 Remove _1 suffix, replacing functions of the same name. Update
15232 all callers.
15233 (dict_create_hashed, dict_create_hashed_expandable)
15234 (dict_create_linear, dict_create_linear_expandable, dict_free)
15235 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
15236 Make functions static.
15237
b026f593
KS
152382019-01-10 Keith Seitz <keiths@redhat.com>
15239
15240 PR gdb/23712
15241 PR symtab/23010
15242 * dictionary.h (struct dictionary): Replace declaration with
15243 multidictionary.
15244 (dict_create_hashed, dict_create_hashed_expandable)
15245 (dict_create_linear, dict_create_linear_expandable)
15246 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
15247 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
15248 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
15249 taking multidictionary argument.
15250 [ALL_DICT_SYMBOLS]: Update for multidictionary.
15251 * block.h (struct block) <dict>: Change to multidictionary
15252 and rename `multidict'.
15253 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
15254 symmisc.c: Update all dictionary references to multidictionary.
15255
c7748ee9
KS
152562019-01-10 Keith Seitz <keiths@redhat.com>
15257
15258 PR gdb/23712
15259 PR symtab/23010
15260 * dictionary.c: Include unordered_map.
15261 (pending_to_vector): New function.
15262 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
15263 Rewrite the non-"_1" functions to take vector instead
15264 of linked list.
15265 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
15266 "new" _1 versions of the same name.
15267 (multidictionary): Define.
15268 (std::hash<enum language): New definition.
15269 (collate_pending_symbols_by_language, mdict_create_hashed)
15270 (mdict_create_hashed_expandable, mdict_create_linear)
15271 (mdict_create_linear_expandable, mdict_free)
15272 (find_language_dictionary, create_new_language_dictionary)
15273 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
15274 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
15275 (mdict_size, mdict_empty): New functions.
15276 * dictionary.h (mdict_iterator): Define.
15277
67aa1f3c
PA
152782019-01-10 Pedro Alves <palves@redhat.com>
15279
15280 * breakpoint.c (read_uploaded_action)
15281 (create_tracepoint_from_upload): Adjust to use
15282 gdb::unique_xmalloc_ptr.
15283 * ctf.c (ctf_write_uploaded_tp):
15284 (SET_ARRAY_FIELD): Use emplace_back.
15285 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
15286 * tracefile-tfile.c (tfile_write_uploaded_tp):
15287 * tracepoint.c (parse_tracepoint_definition): Adjust to use
15288 gdb::unique_xmalloc_ptr.
15289 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
15290 at_string, cond_string, cmd_strings>: Replace char pointers
15291 with gdb::unique_xmalloc_ptr.
15292
2f667667
PA
152932019-01-10 Pedro Alves <palves@redhat.com>
15294
15295 * solib-target.c (library_list_start_library): Don't xstrdup name.
15296
36cb7237
PA
152972019-01-10 Pedro Alves <palves@redhat.com>
15298
15299 * mdebugread.c (parse_partial_symbols): Use
15300 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
15301
da584958
AB
153022019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
15303
15304 * linux-fork.c (scoped_switch_fork_info)
15305 <~scoped_switch_fork_info>: Fix incorrect variable name.
15306
1ef8573c
AB
153072019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
15308
15309 * linux-fork.c (scoped_switch_fork_info)
15310 <scoped_switch_fork_info>: Make explicit.
15311 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
15312
8d7bcccb
TT
153132019-01-10 Tom Tromey <tom@tromey.com>
15314
15315 * objfiles.h (objfile::reset_psymtabs): Update.
15316 * objfiles.c (objfile::objfile): Update.
15317 * psymtab.h (psymtab_storage::obstack): Update.
15318 (psymtab_storage::m_obstack): Use gdb::optional.
15319 (class psymtab_storage): Update comment. Remove objfile
15320 parameter.
15321 * psymtab.c (psymtab_storage::psymtab_storage): Update.
15322
b596a3c7
TT
153232019-01-10 Tom Tromey <tom@tromey.com>
15324
15325 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
15326 <free_psymtabs>: Now private.
15327 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
15328 (allocate_psymtab): Use new method.
15329
a9342b62
TT
153302019-01-10 Tom Tromey <tom@tromey.com>
15331
15332 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
15333 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
15334 * mdebugread.c (parse_partial_symbols): Use
15335 allocate_dependencies.
15336 * dwarf2read.c (dwarf2_create_include_psymtab): Use
15337 allocate_dependencies.
15338 (process_psymtab_comp_unit_reader)
15339 (build_type_psymtab_dependencies): Likewise.
15340 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
15341
5af70966
TT
153422019-01-10 Tom Tromey <tom@tromey.com>
15343
15344 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
15345 PSYMBOL_SET_LANGUAGE.
15346 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
15347
5923a04c
TT
153482019-01-10 Tom Tromey <tom@tromey.com>
15349
15350 * psymtab.h (psymtab_storage::obstack): New method.
15351 <m_obstack>: Rename from obstack; now private.
15352 * psymtab.c (psymtab_storage): Update.
15353 * dwarf2read.c (create_addrmap_from_index)
15354 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
15355 Update.
15356
6d6a12bf
TT
153572019-01-10 Tom Tromey <tom@tromey.com>
15358
15359 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
15360 * objfiles.h (objfile::reset_psymtabs): New method.
15361
d320c2b5
TT
153622019-01-10 Tom Tromey <tom@tromey.com>
15363
15364 * symmisc.c (print_symbol_bcache_statistics): Update.
15365 (print_objfile_statistics): Update.
15366 * symfile.c (reread_symbols): Update.
15367 * psymtab.h (class psymtab_storage): New.
15368 * psymtab.c (psymtab_storage): New constructor.
15369 (~psymtab_storage): New destructor.
15370 (require_partial_symbols): Update.
15371 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
15372 (find_pc_sect_psymtab, find_pc_sect_psymbol)
15373 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
15374 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
15375 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
15376 (start_psymtab_common, end_psymtab_common)
15377 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
15378 (allocate_psymtab): Update.
15379 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
15380 Update.
15381 (dump_psymtab_addrmap, maintenance_print_psymbols)
15382 (maintenance_check_psymtabs): Update.
15383 (class objfile_psymtabs): Move to objfiles.h.
15384 * psympriv.h (discard_psymtab): Now inline.
15385 (psymtab_discarder::psymtab_discarder): Update.
15386 (psymtab_discarder::~psymtab_discarder): Update.
15387 (ALL_OBJFILE_PSYMTABS): Rewrite.
15388 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
15389 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
15390 Remove fields.
15391 <partial_symtabs>: New field.
15392 (class objfile_psymtabs): Move from psymtab.h. Update.
15393 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
15394 psymbol_cache.
15395 (objfile::~objfile): Don't destroy psymbol_cache.
15396 * mdebugread.c (parse_partial_symbols): Update.
15397 * dwarf2read.c (create_addrmap_from_index)
15398 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
15399 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
15400 (add_partial_subprogram, dwarf2_ranges_read): Update.
15401 * dwarf-index-write.c (write_address_map)
15402 (write_one_signatured_type, recursively_write_psymbols)
15403 (class debug_names, class debug_names, write_psymtabs_to_index):
15404 Update.
15405
1d94a5a3
TT
154062019-01-10 Tom Tromey <tom@tromey.com>
15407
15408 * symtab.h (SYMBOL_SET_NAMES): Update.
15409 (symbol_set_names): Update.
15410 (MSYMBOL_SET_NAMES): Update.
15411 * symtab.c (symbol_set_names): Change argument to be an
15412 objfile_per_bfd_storage.
15413 * psymtab.c (add_psymbol_to_bcache): Update.
15414 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
15415
0f14768a
TT
154162019-01-10 Tom Tromey <tom@tromey.com>
15417
15418 * symtab.c (create_demangled_names_hash): Change argument to be an
15419 objfile_per_bfd_storage.
15420 (symbol_set_names): Update.
15421
6eee24ce
TT
154222019-01-10 Tom Tromey <tom@tromey.com>
15423
15424 * xcoffread.c (xcoff_initial_scan): Unconditionally call
15425 init_psymbol_list.
15426 * psymtab.c (init_psymbol_list): Do nothing if already called.
15427 * psympriv.h (init_psymbol_list): Add comment.
15428 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
15429 init_psymbol_list.
15430 * dbxread.c (dbx_symfile_read): Unconditionally call
15431 init_psymbol_list.
15432
75aedd27
TT
154332019-01-10 Tom Tromey <tom@tromey.com>
15434
15435 * xcoffread.c (scan_xcoff_symtab): Update.
15436 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
15437 "where".
15438 * mdebugread.c (parse_partial_symbols)
15439 (handle_psymbol_enumerators): Update.
15440 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
15441 * dbxread.c (read_dbx_symtab): Update.
15442 * psympriv.h (psymbol_placement): New enum.
15443 (add_psymbol_to_list): Update.
15444
939652a5
TT
154452019-01-10 Tom Tromey <tom@tromey.com>
15446
15447 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
15448 static_psymbols parameters.
15449 (scan_xcoff_symtab): Update.
15450 * psymtab.c (start_psymtab_common): Remove global_psymbols and
15451 static_psymbols parameters.
15452 * psympriv.h (start_psymtab_common): Update.
15453 * mdebugread.c (parse_partial_symbols): Update.
15454 * dwarf2read.c (create_partial_symtab): Update.
15455 * dbxread.c (read_dbx_symtab): Update.
15456 (start_psymtab): Remove global_psymbols and static_psymbols
15457 parameters.
15458
baa62830
TT
154592019-01-10 Tom Tromey <tom@tromey.com>
15460
15461 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
15462 * psymtab.c (allocate_psymtab): Add comment.
15463 * psympriv.h (allocate_psymtab): Add comment.
15464 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
15465 initializations.
15466 * dbxread.c (dbx_end_psymtab): Remove some initializations.
15467
0e8f53ba
TT
154682019-01-10 Tom Tromey <tom@tromey.com>
15469
15470 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
15471 Don't declare.
15472 * mipsread.c: Include mdebugread.h.
15473 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
15474 Declare.
15475 * elfread.c: Include mdebugread.h.
15476
b22a7c6a
TT
154772019-01-09 Tom Tromey <tom@tromey.com>
15478
15479 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
15480 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
15481 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
15482 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
15483 (psym_lookup_symbol, psym_find_last_source_symtab)
15484 (psym_forget_cached_source_info, psym_print_stats)
15485 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
15486 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
15487 (psym_map_matching_symbols, psym_expand_symtabs_matching)
15488 (psym_find_compunit_symtab_by_address)
15489 (maintenance_print_psymbols, maintenance_info_psymtabs)
15490 (maintenance_check_psymtabs): Use ranged for.
15491 * psymtab.h (class objfile_psymtabs): New.
15492 (require_partial_symbols): Return objfile_psymtabs.
15493 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
15494
3b9d3ac2
TT
154952019-01-09 Tom Tromey <tom@tromey.com>
15496
15497 * symfile.c (overlay_invalidate_all, find_pc_overlay)
15498 (find_pc_mapped_section, list_overlays_command)
15499 (map_overlay_command, unmap_overlay_command)
15500 (simple_overlay_update): Use all_objfiles.
15501 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
15502 * printcmd.c (info_symbol_command): Use all_objfiles.
15503 * objfiles.h (ALL_OBJSECTIONS): Remove.
15504 * maint.c (maintenance_translate_address): Use all_objfiles.
15505 * gcore.c (gcore_create_callback): Use all_objfiles.
15506 (objfile_find_memory_regions): Likewise.
15507
8b31193a
TT
155082019-01-09 Tom Tromey <tom@tromey.com>
15509
15510 * symtab.c (find_line_symtab, info_sources_command)
15511 (make_source_files_completion_list): Use objfile_compunits.
15512 * source.c (select_source_symtab): Use objfile_compunits.
15513 * objfiles.h (struct objfile): Update comment.
15514 (ALL_OBJFILES): Remove.
15515 (ALL_FILETABS): Remove.
15516 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
15517 objfile_compunits.
15518
d5da8b3c
TT
155192019-01-09 Tom Tromey <tom@tromey.com>
15520
15521 * symmisc.c (print_objfile_statistics, dump_objfile)
15522 (maintenance_print_symbols): Use compunit_filetabs.
15523 * source.c (forget_cached_source_info_for_objfile): Use
15524 compunit_filetabs.
15525 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
15526 (ALL_FILETABS): Use compunit_filetabs.
15527 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
15528 * coffread.c (coff_symtab_read): Use compunit_filetabs.
15529
5accd1a0
TT
155302019-01-09 Tom Tromey <tom@tromey.com>
15531
15532 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
15533 (compunit_filetabs): New.
15534 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
15535 compunit_filetabs.
15536 (info_sources_command, make_source_files_completion_list): Remove
15537 declaration.
15538 * symmisc.c (print_objfile_statistics, dump_objfile)
15539 (maintenance_print_symbols): Remove declaration.
15540 (maintenance_info_symtabs): Use compunit_filetabs.
15541 (maintenance_info_line_tables): Likewise.
15542 * source.c (select_source_symtab): Change local variable name.
15543 (forget_cached_source_info_for_objfile): Remove declaration.
15544 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
15545 * objfiles.c (objfile_relocate1): Remove declaration.
15546 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
15547 declaration.
15548 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
15549 * coffread.c (coff_symtab_read): Remove declaration.
15550 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
15551 compunit_filetabs.
15552
d8aeb77f
TT
155532019-01-09 Tom Tromey <tom@tromey.com>
15554
15555 * symtab.c (lookup_objfile_from_block)
15556 (find_pc_sect_compunit_symtab, search_symbols)
15557 (default_collect_symbol_completion_matches_break_on): Use
15558 objfile_compunits.
15559 * objfiles.h (ALL_COMPUNITS): Remove.
15560 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
15561 * cp-support.c (add_symbol_overload_list_qualified): Use
15562 objfile_compunits.
15563 * ada-lang.c (ada_collect_symbol_completion_matches)
15564 (ada_add_global_exceptions): Use objfile_compunits.
15565
592553c4
TT
155662019-01-09 Tom Tromey <tom@tromey.com>
15567
15568 * source.c (select_source_symtab)
15569 (forget_cached_source_info_for_objfile): Remove declaration.
15570 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
15571 declaration.
15572 * maint.c (count_symtabs_and_blocks): Remove declaration.
15573 * cp-support.c (add_symbol_overload_list_qualified): Remove
15574 declaration.
15575 * coffread.c (coff_symtab_read): Remove declaration.
15576 * symtab.c (lookup_symbol_in_objfile_symtabs)
15577 (basic_lookup_transparent_type_1): Use objfile_compunits.
15578 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
15579 (info_sources_command, search_symbols)
15580 (default_collect_symbol_completion_matches_break_on)
15581 (make_source_files_completion_list): Remove declaration.
15582 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
15583 (ada_collect_symbol_completion_matches)
15584 (ada_add_global_exceptions): Remove declaration.
15585 * linespec.c (iterate_over_all_matching_symtabs): Use
15586 objfile_compunits.
15587 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
15588 (class objfile_compunits): New.
15589 (ALL_COMPUNITS): Use objfile_compunits.
15590 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
15591 (maintenance_check_symtabs, maintenance_info_line_tables): Use
15592 objfile_compunits.
15593 * objfiles.c (objfile_relocate1): Use objfile_compunits.
15594
5325b9bf
TT
155952019-01-09 Tom Tromey <tom@tromey.com>
15596
15597 * symtab.c (search_symbols)
15598 (default_collect_symbol_completion_matches_break_on): Use
15599 objfile_msymbols.
15600 * ada-lang.c (ada_lookup_simple_minsym)
15601 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
15602 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
15603 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
15604 objfile_msymbols.
15605 * coffread.c (coff_symfile_read): Use objfile_msymbols.
15606 * symmisc.c (dump_msymbols): Use objfile_msymbols.
15607 * objc-lang.c (find_methods): Use objfile_msymbols.
15608 (info_selectors_command, info_classes_command): Likewise.
15609 * stabsread.c (scan_file_globals): Use objfile_msymbols.
15610 * objfiles.h (class objfile_msymbols): New.
15611 (ALL_OBJFILE_MSYMBOLS): Remove.
15612 (ALL_MSYMBOLS): Remove.
15613
cac85af2
TT
156142019-01-09 Tom Tromey <tom@tromey.com>
15615
15616 * common/next-iterator.h (next_adapter): Add Iterator template
15617 parameter.
15618 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
15619 (class all_objfiles_safe): New.
15620 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
15621 * objfiles.c (put_objfile_before): Update comment.
15622 (add_separate_debug_objfile): Likewise.
15623 (free_all_objfiles): Use all_objfiles_safe.
15624 (objfile_purge_solibs): Likewise.
15625
aed57c53
TT
156262019-01-09 Tom Tromey <tom@tromey.com>
15627
15628 * symtab.c (iterate_over_symtabs, matching_obj_sections)
15629 (expand_symtab_containing_pc, lookup_static_symbol)
15630 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
15631 (find_symbol_at_address, find_line_symtab, find_main_name): Use
15632 all_objfiles.
15633 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
15634 * breakpoint.c (create_overlay_event_breakpoint)
15635 (create_longjmp_master_breakpoint)
15636 (create_std_terminate_master_breakpoint)
15637 (create_exception_master_breakpoint): Use all_objfiles.
15638 * linux-thread-db.c (try_thread_db_load_from_pdir)
15639 (has_libpthread): Use all_objfiles.
15640 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
15641 * linespec.c (iterate_over_all_matching_symtabs)
15642 (search_minsyms_for_name): Use all_objfiles.
15643 * maint.c (maintenance_info_sections): Use all_objfiles.
15644 * main.c (captured_main_1): Use all_objfiles.
15645 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
15646 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
15647 * guile/scm-pretty-print.c
15648 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
15649 * solib-spu.c (append_ocl_sos): Use all_objfiles.
15650 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
15651 (maintenance_print_msymbols): Use all_objfiles.
15652 * source.c (select_source_symtab): Use all_objfiles.
15653 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
15654 * symfile.c (remove_symbol_file_command)
15655 (expand_symtabs_matching, map_symbol_filenames): Use
15656 all_objfiles.
15657 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
15658 all_objfiles.
15659 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
15660 * objc-lang.c (find_methods): Use all_objfiles.
15661 * objfiles.c (have_partial_symbols, have_full_symbols)
15662 (have_minimal_symbols, qsort_cmp)
15663 (default_iterate_over_objfiles_in_search_order): Use
15664 all_objfiles.
15665 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
15666 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
15667 (maintenance_check_psymtabs): Use all_objfiles.
15668 (ALL_PSYMTABS): Remove.
15669 * compile/compile-object-run.c (do_module_cleanup): Use
15670 all_objfiles.
15671 * blockframe.c (find_pc_partial_function): Use all_objfiles.
15672 * cp-support.c (add_symbol_overload_list_qualified): Use
15673 all_objfiles.
15674 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
15675 Use all_objfiles.
15676 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
15677 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
15678 all_objfiles.
15679 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
15680 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
15681 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
15682 Uses all_objfiles.
15683 * solib.c (solib_read_symbols): Use all_objfiles
15684
99d89cde
TT
156852019-01-09 Tom Tromey <tom@tromey.com>
15686
15687 * probe.c (parse_probes_in_pspace): Use all_objfiles.
15688 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
15689 all_objfiles.
15690 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
15691 * symmisc.c (print_symbol_bcache_statistics)
15692 (print_objfile_statistics, maintenance_print_objfiles)
15693 (maintenance_info_symtabs, maintenance_check_symtabs)
15694 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
15695 all_objfiles.
15696 * source.c (forget_cached_source_info): Use all_objfiles.
15697 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
15698 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
15699 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
15700 * objfiles.c (update_section_map): Use all_objfiles.
15701 (shared_objfile_contains_address_p): Likewise.
15702 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
15703 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
15704
21708325
TT
157052019-01-09 Tom Tromey <tom@tromey.com>
15706
15707 * common/next-iterator.h: New file.
15708 * objfiles.h (class all_objfiles): New.
15709 (struct objfile_iterator): New.
15710
669e09f6
PW
157112019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15712
15713 * NEWS: Move the description of the changed "frame", "select-frame",
15714 and "info frame" commands to the Changed commands section.
15715
041be526
SM
157162019-01-09 Simon Marchi <simon.marchi@ericsson.com>
15717
15718 * gdbtypes.c (check_stub_method_group): Remove handling of old
15719 mangling schemes.
15720 * linespec.c (find_methods): Likewise.
15721 * stabsread.c (read_member_functions): Likewise.
15722 * valops.c (search_struct_method): Likewise.
15723 (value_struct_elt_for_reference): Likewise.
15724 * NEWS: Mention this change.
15725
0e2a2133
AB
157262019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15727
15728 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
15729 print_source_lines.
15730 * source.c (print_source_lines_base): Update line number check.
15731 (print_source_lines): New function.
15732 (source_lines_range::source_lines_range): New function.
15733 * source.h (class source_lines_range): New class.
15734 (print_source_lines): New declaration.
15735
1055a3b4
PW
157362019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15737
15738 * linespec.c (linespec_state_destructor): Free self->canonical_names.
15739
cfeadda5
TT
157402019-01-08 Tom Tromey <tom@tromey.com>
15741 Simon Marchi <simon.marchi@ericsson.com>
15742
15743 PR gdb/24060
15744 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
15745 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
15746 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
15747 * f-exp.y (DOLLAR_VARIABLE): Likewise.
15748 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
15749 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
15750
583068ca
AB
157512019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15752
15753 * source.c (select_source_symtab): Move header comment to
15754 declaration in source.h.
15755 (forget_cached_source_info_for_objfile): Likewise.
15756 (forget_cached_source_info): Likewise.
15757 (identify_source_line): Likewise.
15758 * source.h (identify_source_line): Move declaration from symtab.h
15759 and add comment from source.c
15760 (print_source_lines): Likewise.
15761 (forget_cached_source_info_for_objfile): Likewise.
15762 (forget_cached_source_info): Likewise.
15763 (select_source_symtab): Likewise.
15764 (enum print_source_lines_flag): Move definition from symtab.h.
15765 * symtab.h (identify_source_line): Move declaration to source.h.
15766 (print_source_lines): Likewise.
15767 (forget_cached_source_info_for_objfile): Likewise.
15768 (forget_cached_source_info): Likewise.
15769 (select_source_symtab): Likewise.
15770 (enum print_source_lines_flag): Move definition to source.h.
15771 * tui/tui-hooks.c: Add 'source.h' include.
15772
ec98a4ad
AB
157732019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15774
15775 * source.c (print_source_lines_base): Handle requests to print
15776 reverse line number sequences, and guard against empty lines
15777 string.
15778
62ea19c1
AB
157792019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15780
15781 * source.c (print_source_lines_base): Fix skip of '\r' if next
15782 character is '\n'.
15783
9d30e1fd
TT
157842019-01-06 Tom Tromey <tom@tromey.com>
15785
15786 * c-exp.y (struct c_parse_state) <macro_original_text,
15787 expansion_obstack>: New member.
15788 (macro_original_text, expansion_obstack): Remove globals.
15789 (scan_macro_expansion, scanning_macro_expansion)
15790 (finished_macro_expansion): Update.
15791 (scan_macro_cleanup): Remove.
15792 (yylex, c_parse): Update.
15793
c65bac38
TT
157942019-01-06 Tom Tromey <tom@tromey.com>
15795
15796 * c-exp.y (struct c_parse_state) <strings>: New member.
15797 (operator_stoken): Update.
15798
02e12e38
TT
157992019-01-06 Tom Tromey <tom@tromey.com>
15800
15801 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
15802 (union type_stack_elt) <typelist_val>: Now a pointer to
15803 std::vector.
15804 (type_stack_cleanup): Don't declare.
15805 (push_typelist): Update.
15806 * parse.c (pop_typelist): Return a std::vector.
15807 (push_typelist): Take a std::vector.
15808 (follow_types): Update. Do not free args.
15809 (type_stack_cleanup): Remove.
15810 * c-exp.y (struct c_parse_state): New.
15811 (cpstate): New global.
15812 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
15813 (nonempty_typelist): Update.
15814 (func_mod): Create a new vector.
15815 (c_parse): Create a c_parse_state.
15816 (check_parameter_typelist): Do not delete params.
15817 (function_method): Update. Do not delete type_list.
15818
f097f5ad
TT
158192019-01-06 Tom Tromey <tom@tromey.com>
15820
15821 PR gdb/28155:
15822 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
15823 check_typedef.
15824 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
15825 (print_return_value): Likewise.
15826
d2adf9f1
TT
158272019-01-05 Tom Tromey <tom@tromey.com>
15828
15829 * contrib/cleanup_check.py: Remove.
15830 * contrib/gcc-with-excheck: Remove.
15831 * contrib/exsummary.py: Remove.
15832 * contrib/excheck.py: Remove.
15833
2eab46b1
JB
158342019-01-05 Joel Brobecker <brobecker@adacore.com>
15835
15836 * thread.c (delete_thread_1): Add gdb_assert that THR is not
15837 NULL. Initialize tpprev to NULL instead of assigning it
15838 to NULL on the next statement.
15839 * windows-nat.c (windows_delete_thread): Remove check for
15840 main_thread_id before printing thread exit notifications.
15841 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
15842 Remove thread ID check against main_thread_id.
15843 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
15844 windows_delete_thread.
15845 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
15846
48c5e7e2
TT
158472019-01-04 Tom Tromey <tom@tromey.com>
15848
15849 * compile/compile.c (_initialize_compile): Use upper case for
15850 metasyntactic variables.
15851 * symmisc.c (_initialize_symmisc): Use upper case for
15852 metasyntactic variables.
15853 * psymtab.c (_initialize_psymtab): Use upper case for
15854 metasyntactic variables.
15855 * demangle.c (demangle_command): Use upper case for metasyntactic
15856 variables.
15857 (_initialize_demangler): Likewise.
15858 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
15859 variables.
15860
986041cd
TT
158612019-01-03 Tom Tromey <tom@tromey.com>
15862
15863 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
15864
7c711119
TT
158652019-01-03 Tom Tromey <tom@tromey.com>
15866
15867 * python/py-symtab.c (salpy_str): Update.
15868 (struct salpy_sal_object) <symtab>: Now a PyObject.
15869 (salpy_dealloc): Update.
15870 (del_objfile_sal): Use gdbpy_ref.
15871
1b20edf0
TT
158722019-01-03 Tom Tromey <tom@tromey.com>
15873
15874 * python/py-type.c (convert_field): Use new_reference. Return
15875 gdbpy_ref.
15876 (make_fielditem): Return gdbpy_ref.
15877 (typy_fields): Update.
15878 (typy_getitem): Update.
15879 (field_name): Return gdbpy_ref. Use new_reference.
15880 (typy_iterator_iternext): Update.
15881
ea41325b
TT
158822019-01-03 Tom Tromey <tom@tromey.com>
15883
15884 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
15885
2a3c71d6
TT
158862019-01-03 Tom Tromey <tom@tromey.com>
15887
15888 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
15889 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
15890 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
15891 (pspy_set_frame_filters, pspy_set_frame_unwinders)
15892 (pspy_set_type_printers): Likewise.
15893 * python/py-function.c (fnpy_init): Use gdbpy_ref.
15894 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
15895 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
15896 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
15897 (objfpy_set_type_printers): Likewise.
15898
5c329e6a
TT
158992019-01-03 Tom Tromey <tom@tromey.com>
15900
15901 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
15902 (gdbpy_print_stack): Use gdbpy_err_fetch.
15903 * python/python-internal.h (class gdbpy_err_fetch): New class.
15904 (class gdbpy_enter) <m_error_type, m_error_value,
15905 m_error_traceback>: Remove.
15906 <m_error>: New member.
15907 (gdbpy_exception_to_string): Don't declare.
15908 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
15909 * python/py-value.c (convert_value_from_python): Use
15910 gdbpy_err_fetch.
15911 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
15912 gdbpy_exception_to_string.
15913 (gdbpy_handle_exception): Use gdbpy_err_fetch.
15914 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
15915 gdbpy_err_fetch.
15916
169bb27b
AB
159172019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15918
15919 * linux-nat.c (delete_lwp_cleanup): Delete.
15920 (struct lwp_deleter): New struct.
15921 (lwp_info_up): New typedef.
15922 (linux_nat_target::follow_fork): Delete cleanup, and make use of
15923 lwp_info_up.
15924
a07c8880
AB
159252019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15926
15927 * linux-fork.c (class scoped_switch_fork_info): New class.
15928 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
15929
26089c49
AB
159302019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15931
15932 * valops.c (find_overload_match): Remove use of null_cleanup, and
15933 calls to do_cleanups.
15934
06d3e5b0
AB
159352019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15936
15937 * compile/compile-cplus-types.c
15938 (compile_cplus_instance::decl_name): Handle changes to
15939 cp_func_name.
15940 * cp-support.c (cp_func_name): Update header comment, update
15941 return type.
15942 * cp-support.h (cp_func_name): Update return type in declaration.
15943 * valops.c (find_overload_match): Move temp_func local to top
15944 level of function and change its type. Use temp_func to hold and
15945 delete temporary string obtained from cp_func_name.
15946
66644cd3
AB
159472019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15948
15949 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
15950 gdb::char_vector, remove cleanup, and update uses of `msg`.
15951
592d8c0a
JW
159522019-01-03 Jim Wilson <jimw@sifive.com>
15953
15954 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
15955
c55d06ec
TT
159562019-01-02 Tom Tromey <tom@tromey.com>
15957
15958 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
15959 (tdesc_parse_xml): Remove cleanups.
15960 * target-descriptions.h (make_cleanup_free_target_description):
15961 Don't declare.
15962 (target_desc_deleter): New struct.
15963 (target_desc_up): New typedef.
15964 * target-descriptions.c (target_desc_deleter::operator()): Rename
15965 from free_target_description.
15966 (make_cleanup_free_target_description): Remove.
15967
3a6ae42d
TT
159682019-01-02 Tom Tromey <tom@tromey.com>
15969
15970 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
15971 constructor, destructor.
15972 (linespec_parser): Remove typedef.
15973 (~linespec_parser): Rename from linespec_parser_delete.
15974 (linespec_lex_to_end, linespec_complete_label)
15975 (linespec_complete): Update.
15976 (decode_line_full): Remove cleanups.
15977 (decode_line_1): Update.
15978
61fd3e73
TT
159792019-01-02 Tom Tromey <tom@tromey.com>
15980
15981 * python/python-internal.h (inferior_to_inferior_object): Change
15982 return type.
15983 * python/py-exitedevent.c (create_exited_event_object): Update.
15984 * python/py-inferior.c (inferior_to_inferior_object): Return
15985 gdbpy_ref.
15986 (python_new_inferior, python_inferior_deleted)
15987 (thread_to_thread_object, delete_thread_object)
15988 (build_inferior_list, gdbpy_selected_inferior): Update.
15989 * python/py-infthread.c (create_thread_object): Update. Also fail
15990 if inferior_to_inferior_object fails.
15991
d20172fc
SM
159922019-01-02 Simon Marchi <simon.marchi@ericsson.com>
15993
15994 * inferior.h (class inferior) <displaced_step_state>: New field.
15995 * infrun.h (struct displaced_step_state): Move here from
15996 infrun.c. Initialize fields, add constructor.
15997 <inf>: Remove field.
15998 <reset>: New method.
15999 * infrun.c (struct displaced_step_inferior_state): Move to
16000 infrun.h.
16001 (displaced_step_inferior_states): Remove.
16002 (get_displaced_stepping_state): Adust.
16003 (displaced_step_in_progress_any_inferior): Adjust.
16004 (displaced_step_in_progress_thread): Adjust.
16005 (displaced_step_in_progress): Adjust.
16006 (add_displaced_stepping_state): Remove.
16007 (get_displaced_step_closure_by_addr): Adjust.
16008 (remove_displaced_stepping_state): Remove.
16009 (infrun_inferior_exit): Call displaced_step_state.reset.
16010 (use_displaced_stepping): Don't check for NULL.
16011 (displaced_step_prepare_throw): Call
16012 get_displaced_stepping_state.
16013 (displaced_step_fixup): Don't check for NULL.
16014 (prepare_for_detach): Don't check for NULL.
16015
e3319240
PW
160162019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16017
16018 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
16019 in case of call that did not complete.
16020
5d36dfb9
AU
160212019-01-02 Andrey Utkin <autkin@undo.io>
16022
16023 * symfile.c (find_separate_debug_file): Fix search of debug files for
16024 remote debuggee.
16025
8833fbf0
TT
160262019-01-02 Tom Tromey <tom@tromey.com>
16027
16028 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
16029 indentation.
16030 * python/py-frame.c (frapy_older): Remove cast.
16031 (frapy_newer): Likewise.
16032 * python/py-breakpoint.c (local_setattro): Remove cast.
16033 * python/py-arch.c (archpy_name): Remove local variable.
16034 * python/py-type.c (gdbpy_lookup_type): Remove cast.
16035
4ada3dfd
JB
160362019-01-02 Joel Brobecker <brobecker@adacore.com>
16037
16038 * unittests/basic_string_view/element_access/char/empty.cc:
16039 Fix year range in copyright header.
16040
113b7b81
AB
160412019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
16042
16043 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
16044 Delete.
16045 <operator==>: Update with for removed field.
16046 <hash>: Likewise.
16047 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
16048 <isa_features>: ...this.
16049 <abi_features>: New field.
16050 (riscv_isa_flen): Update comment.
16051 (riscv_abi_xlen): New declaration.
16052 (riscv_abi_flen): New declaration.
16053 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
16054 isa_features.
16055 (riscv_abi_xlen): New function.
16056 (riscv_isa_flen): Update to get answer from isa_features.
16057 (riscv_abi_flen): New function.
16058 (riscv_has_fp_abi): Update to get answer from abi_features.
16059 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
16060 xlen and flen.
16061 (riscv_call_info) <xlen, flen>: Update comment.
16062 (riscv_call_arg_struct): Remove invalid assertions
16063 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
16064 is removed.
16065 (riscv_gdbarch_init): Gather isa features and abi features
16066 separately, ensure both match on the gdbarch when reusing an old
16067 gdbarch. Relax an error check to allow 32-bit abi float to run on
16068 a target with 64-bit float hardware.
16069
b18ca514
PW
160702019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16071
16072 * source.c (search_command_helper): Stop reverse search
16073 when line 1 has been searched.
16074
ec70d8db
PW
160752019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16076
16077 * record-full.c (record_full_base_target::close): Rewrite
16078 record_full_core_buf_list free logic.
16079
5b38f9c1
PW
160802019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16081
16082 * break-catch-syscall.c (print_one_catch_syscall): xfree
16083 the last text.
16084
66d91b39
JB
160852019-01-01 Joel Brobecker <brobecker@adacore.com>
16086
16087 * top.c (print_gdb_version): Update Copyright year in version
16088 message.
16089
42a4f53d
JB
160902019-01-01 Joel Brobecker <brobecker@adacore.com>
16091
16092 Update copyright year range in all GDB files.
16093
7e955d83 160942019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
2139e8dc 16095
5bbd631d 16096 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
2139e8dc 16097
5bbd631d 16098For older changes see ChangeLog-2018.
c906108c
SS
16099\f
16100Local Variables:
16101mode: change-log
16102left-margin: 8
16103fill-column: 74
16104version-control: never
57da7796 16105coding: utf-8
c906108c 16106End:
5bbd631d 16107
This page took 2.970786 seconds and 4 git commands to generate.