gdb/riscv: Remove riscv_type_alignment function
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
2
3 * riscv-tdep.c (riscv_type_align): New function.
4 (riscv_type_alignment): Delete.
5 (riscv_arg_location): Use 'type_align'.
6 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
7
8 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
9
10 * gdbtypes.c (type_align): A struct with no non-static fields also
11 has alignment of 1.
12
13 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
14
15 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
16 component to 0.
17 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
18 member.
19 (riscv_struct_info::analyse): New implementation using new
20 analyse_inner member function.
21 (riscv_struct_info::field_offset): New member function.
22 (riscv_struct_info::m_offsets): New member variable.
23 (riscv_struct_info::analyse_inner): New private member function,
24 takes the old implementation of riscv_struct_info::analyse but
25 extended to track field offsets.
26 (riscv_call_arg_struct): Update the struct folding special cases
27 to handle cases where empty C++ structs, which are non-zero
28 length, are found.
29 (riscv_arg_location): Initialise the length of each location, a
30 non-zero length now indicates the location is in use.
31 (riscv_push_dummy_call): Allow for the first location having a
32 non-zero offset when setting up arguments.
33 (riscv_return_value): Likewise, but for return values.
34
35 2019-04-11 Tom Tromey <tromey@adacore.com>
36
37 * utils.c (internal_vproblem): Make "msg" const.
38
39 2019-04-11 Alan Hayward <alan.hayward@arm.com>
40
41 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
42 * trad-frame.c (trad_frame_reset_saved_regs): New function.
43 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
44 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
45
46 2019-04-10 Kevin Buettner <kevinb@redhat.com>
47
48 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
49 function.
50 (fill_gregset): Call amd64_linux_collect_native_gregset instead
51 of amd64_collect_native_gregset.
52 (amd64_linux_nat_target::store_registers): Likewise.
53
54 2019-04-10 Tom Tromey <tom@tromey.com>
55
56 * symtab.c (lookup_global_symbol_from_objfile)
57 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
58 * objfiles.h (class separate_debug_iterator): New.
59 (class separate_debug_range): New.
60 (struct objfile) <separate_debug_objfiles>: New method.
61 (objfile_separate_debug_iterate): Don't declare.
62 * objfiles.c (separate_debug_iterator::operator++): Rename from
63 objfile_separate_debug_iterate.
64 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
65 iterator.
66 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
67 iterator.
68
69 2019-04-10 Tom Tromey <tom@tromey.com>
70
71 * symfile.c (reread_symbols): Remove old comment.
72 * objfiles.c (free_all_objfiles): Fix a typo.
73
74 2019-04-10 Tom Tromey <tom@tromey.com>
75
76 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
77 * minsyms.c (lookup_minimal_symbol): Use foreach.
78 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
79 (lookup_minimal_symbol_solib_trampoline): Likewise.
80 * symfile.c (reread_symbols): Use foreach.
81
82 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
83 Tom Tromey <tromey@adacore.com>
84
85 PR rust/24414:
86 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
87 (rust_lex_int_test): Change "value" to be LONGEST.
88 (rust_lex_tests): Add test for long integer literal.
89
90 2019-04-09 Tom Tromey <tromey@adacore.com>
91
92 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
93 to bool.
94 (extended_remote_target::attach): Update.
95 (remote_target::remote_notice_new_inferior): Update.
96 (remote_target::add_current_inferior_and_thread): Update.
97 * inferior.c (exit_inferior_1): Use "false".
98 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
99
100 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
101
102 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
103 the "start" command.
104
105 2019-04-08 Kevin Buettner <kevinb@redhat.com>
106
107 * python/py-inferior.c (infpy_thread_from_thread_handle):
108 Adjust comments to reflect renaming of thread_from_thread_handle
109 to thread_from_handle. Adjust keywords. Fix type error message.
110 (inferior_object_methods): Add thread_from_handle. Retain
111 thread_from_thread_handle, but mark it as deprecated.
112
113 2019-04-08 Kevin Buettner <kevinb@redhat.com>
114
115 * gdbthread.h (find_thread_by_handle): Revise declaration.
116 * thread.c (find_thread_by_handle): Likewise. Adjust
117 implementation too.
118 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
119 support for buffer objects as handles.
120
121 2019-04-08 Kevin Buettner <kevinb@redhat.com>
122
123 * python/py-infthread.c (thpy_thread_handle): New function.
124 (thread_object_methods): Register thpy_thread_handle.
125
126 2019-04-08 Kevin Buettner <kevinb@redhat.com>
127
128 * gdbthread.h (thread_to_thread_handle): Declare.
129 * thread.c (gdbtypes.h): Include.
130 (thread_to_thread_handle): New function.
131
132 * target.h (struct target_ops): Add thread_info_to_thread_handle.
133 (target_thread_info_to_thread_handle): Declare.
134 * target.c (target_thread_info_to_thread_handle): New function.
135 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
136 * target-delegates.c: Regenerate.
137
138 * linux-thread-db.c (class thread_db_target): Add method
139 thread_info_to_thread_handle.
140 (thread_db_target::thread_info_to_thread_handle): Define.
141 * remote.c (class remote_target): Add new method
142 thread_info_to_thread_handle.
143 (remote_target::thread_info_to_thread_handle): Define.
144
145 2019-04-08 Pedro Alves <palves@redhat.com>
146
147 * common/common-exceptions.c (throw_exception): Don't create
148 named object to throw; throw directly.
149 (throw_it): Likewise. Don't initialize gdb_exception::message
150 here, with new; pass FMT and AP to the ctor instead.
151 * common/common-exceptions.h: Include <string>.
152 (gdb_exception::gdb_exception(enum return_reason, enum errors,
153 const char *, va_list)): New ctor. Use std::make_shared.
154 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
155 errors)): Delete.
156 (gdb_exception_error::gdb_exception_error(enum errors, const char
157 *, va_list)): New.
158 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
159 Add assertion.
160 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
161 errors)): Delete.
162 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
163 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
164 Add assertion.
165
166 2019-04-08 Tom Tromey <tom@tromey.com>
167
168 * valops.c (value_rtti_indirect_type): Replace throw_exception
169 with throw.
170 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
171 with throw.
172 * thread.c (thr_try_catch_cmd): Replace throw_exception with
173 throw.
174 * target.c (target_translate_tls_address): Replace throw_exception
175 with throw.
176 * stack.c (frame_apply_command_count): Replace throw_exception
177 with throw.
178 * solib-spu.c (append_ocl_sos): Replace throw_exception with
179 throw.
180 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
181 with throw.
182 * rs6000-tdep.c (rs6000_frame_cache)
183 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
184 * remote.c: Replace throw_exception with throw.
185 * record-full.c (record_full_message, record_full_wait_1)
186 (record_full_restore): Replace throw_exception with throw.
187 * record-btrace.c:
188 (get_thread_current_frame_id, record_btrace_start_replaying)
189 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
190 (cmd_record_btrace_start): Replace throw_exception with throw.
191 * parse.c (parse_exp_in_context_1): Replace throw_exception with
192 throw.
193 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
194 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
195 * linespec.c:
196 (find_linespec_symbols): Replace throw_exception with throw.
197 * infrun.c (displaced_step_prepare, resume): Replace
198 throw_exception with throw.
199 * infcmd.c (post_create_inferior): Replace throw_exception with
200 throw.
201 * inf-loop.c (inferior_event_handler): Replace throw_exception
202 with throw.
203 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
204 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
205 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
206 (get_prev_frame_always, get_frame_pc_if_available)
207 (get_frame_address_in_block_if_available, get_frame_language):
208 Replace throw_exception with throw.
209 * frame-unwind.c (frame_unwind_try_unwinder): Replace
210 throw_exception with throw.
211 * eval.c (fetch_subexp_value, evaluate_var_value)
212 (evaluate_funcall, evaluate_subexp_standard): Replace
213 throw_exception with throw.
214 * dwarf2loc.c (call_site_find_chain)
215 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
216 Replace throw_exception with throw.
217 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
218 with throw.
219 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
220 throw.
221 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
222 * completer.c (complete_line_internal): Replace throw_exception
223 with throw.
224 * compile/compile-object-run.c (compile_object_run): Replace
225 throw_exception with throw.
226 * cli/cli-script.c (process_next_line): Replace throw_exception
227 with throw.
228 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
229 (btrace_enable, btrace_maint_update_pt_packets): Replace
230 throw_exception with throw.
231 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
232 throw_exception with throw.
233 * break-catch-throw.c (re_set_exception_catchpoint): Replace
234 throw_exception with throw.
235 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
236 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
237 * aarch64-tdep.c (aarch64_make_prologue_cache)
238 (aarch64_make_stub_cache): Replace throw_exception with throw.
239
240 2019-04-08 Tom Tromey <tom@tromey.com>
241
242 * common/common-exceptions.c (throw_exception): Rename from
243 throw_exception_cxx. Remove old copy. Make argument const.
244 (throw_it): Create and throw exception objects directly.
245 * common/common-exceptions.h (throw_exception): Make argument
246 const.
247 (struct gdb_exception_error): Add constructor.
248 (struct gdb_exception_quit): Add constructor.
249
250 2019-04-08 Tom Tromey <tom@tromey.com>
251
252 * common/common-exceptions.h (exception_rethrow): Don't declare.
253 (TRY_SJLJ): Update comment.
254 (TRY, CATCH, END_CATCH): Remove.
255 * common/common-exceptions.c (exception_rethrow): Remove.
256
257 2019-04-08 Tom Tromey <tom@tromey.com>
258
259 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
260 Remove.
261 (gdb_exception_error): Rename from
262 gdb_exception_RETURN_MASK_ERROR.
263 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
264 (gdb_quit_bad_alloc): Update.
265 * aarch64-tdep.c: Update.
266 * ada-lang.c: Update.
267 * ada-typeprint.c: Update.
268 * ada-valprint.c: Update.
269 * amd64-tdep.c: Update.
270 * arch-utils.c: Update.
271 * break-catch-throw.c: Update.
272 * breakpoint.c: Update.
273 * btrace.c: Update.
274 * c-varobj.c: Update.
275 * cli/cli-cmds.c: Update.
276 * cli/cli-interp.c: Update.
277 * cli/cli-script.c: Update.
278 * common/common-exceptions.c: Update.
279 * common/new-op.c: Update.
280 * common/selftest.c: Update.
281 * compile/compile-c-symbols.c: Update.
282 * compile/compile-cplus-symbols.c: Update.
283 * compile/compile-object-load.c: Update.
284 * compile/compile-object-run.c: Update.
285 * completer.c: Update.
286 * corelow.c: Update.
287 * cp-abi.c: Update.
288 * cp-support.c: Update.
289 * cp-valprint.c: Update.
290 * darwin-nat.c: Update.
291 * disasm-selftests.c: Update.
292 * dtrace-probe.c: Update.
293 * dwarf-index-cache.c: Update.
294 * dwarf-index-write.c: Update.
295 * dwarf2-frame-tailcall.c: Update.
296 * dwarf2-frame.c: Update.
297 * dwarf2loc.c: Update.
298 * dwarf2read.c: Update.
299 * eval.c: Update.
300 * event-loop.c: Update.
301 * event-top.c: Update.
302 * exec.c: Update.
303 * f-valprint.c: Update.
304 * fbsd-tdep.c: Update.
305 * frame-unwind.c: Update.
306 * frame.c: Update.
307 * gdbtypes.c: Update.
308 * gnu-v3-abi.c: Update.
309 * guile/guile-internal.h: Update.
310 * guile/scm-block.c: Update.
311 * guile/scm-breakpoint.c: Update.
312 * guile/scm-cmd.c: Update.
313 * guile/scm-disasm.c: Update.
314 * guile/scm-frame.c: Update.
315 * guile/scm-lazy-string.c: Update.
316 * guile/scm-math.c: Update.
317 * guile/scm-param.c: Update.
318 * guile/scm-ports.c: Update.
319 * guile/scm-pretty-print.c: Update.
320 * guile/scm-symbol.c: Update.
321 * guile/scm-symtab.c: Update.
322 * guile/scm-type.c: Update.
323 * guile/scm-value.c: Update.
324 * i386-linux-tdep.c: Update.
325 * i386-tdep.c: Update.
326 * inf-loop.c: Update.
327 * infcall.c: Update.
328 * infcmd.c: Update.
329 * infrun.c: Update.
330 * jit.c: Update.
331 * language.c: Update.
332 * linespec.c: Update.
333 * linux-fork.c: Update.
334 * linux-nat.c: Update.
335 * linux-tdep.c: Update.
336 * linux-thread-db.c: Update.
337 * main.c: Update.
338 * mi/mi-cmd-break.c: Update.
339 * mi/mi-cmd-stack.c: Update.
340 * mi/mi-interp.c: Update.
341 * mi/mi-main.c: Update.
342 * objc-lang.c: Update.
343 * p-valprint.c: Update.
344 * parse.c: Update.
345 * ppc-linux-tdep.c: Update.
346 * printcmd.c: Update.
347 * python/py-arch.c: Update.
348 * python/py-breakpoint.c: Update.
349 * python/py-cmd.c: Update.
350 * python/py-finishbreakpoint.c: Update.
351 * python/py-frame.c: Update.
352 * python/py-framefilter.c: Update.
353 * python/py-gdb-readline.c: Update.
354 * python/py-inferior.c: Update.
355 * python/py-infthread.c: Update.
356 * python/py-lazy-string.c: Update.
357 * python/py-linetable.c: Update.
358 * python/py-objfile.c: Update.
359 * python/py-param.c: Update.
360 * python/py-prettyprint.c: Update.
361 * python/py-progspace.c: Update.
362 * python/py-record-btrace.c: Update.
363 * python/py-record.c: Update.
364 * python/py-symbol.c: Update.
365 * python/py-type.c: Update.
366 * python/py-unwind.c: Update.
367 * python/py-utils.c: Update.
368 * python/py-value.c: Update.
369 * python/python.c: Update.
370 * record-btrace.c: Update.
371 * record-full.c: Update.
372 * remote-fileio.c: Update.
373 * remote.c: Update.
374 * riscv-tdep.c: Update.
375 * rs6000-aix-tdep.c: Update.
376 * rs6000-tdep.c: Update.
377 * rust-exp.y: Update.
378 * rust-lang.c: Update.
379 * s390-tdep.c: Update.
380 * selftest-arch.c: Update.
381 * solib-dsbt.c: Update.
382 * solib-frv.c: Update.
383 * solib-spu.c: Update.
384 * solib-svr4.c: Update.
385 * solib.c: Update.
386 * sparc64-linux-tdep.c: Update.
387 * stack.c: Update.
388 * symfile-mem.c: Update.
389 * symmisc.c: Update.
390 * target.c: Update.
391 * thread.c: Update.
392 * top.c: Update.
393 * tracefile-tfile.c: Update.
394 * tui/tui.c: Update.
395 * typeprint.c: Update.
396 * unittests/cli-utils-selftests.c: Update.
397 * unittests/parse-connection-spec-selftests.c: Update.
398 * valops.c: Update.
399 * valprint.c: Update.
400 * value.c: Update.
401 * varobj.c: Update.
402 * windows-nat.c: Update.
403 * x86-linux-nat.c: Update.
404 * xml-support.c: Update.
405
406 2019-04-08 Tom Tromey <tom@tromey.com>
407
408 * xml-support.c: Use C++ exception handling.
409 * x86-linux-nat.c: Use C++ exception handling.
410 * windows-nat.c: Use C++ exception handling.
411 * varobj.c: Use C++ exception handling.
412 * value.c: Use C++ exception handling.
413 * valprint.c: Use C++ exception handling.
414 * valops.c: Use C++ exception handling.
415 * unittests/parse-connection-spec-selftests.c: Use C++ exception
416 handling.
417 * unittests/cli-utils-selftests.c: Use C++ exception handling.
418 * typeprint.c: Use C++ exception handling.
419 * tui/tui.c: Use C++ exception handling.
420 * tracefile-tfile.c: Use C++ exception handling.
421 * top.c: Use C++ exception handling.
422 * thread.c: Use C++ exception handling.
423 * target.c: Use C++ exception handling.
424 * symmisc.c: Use C++ exception handling.
425 * symfile-mem.c: Use C++ exception handling.
426 * stack.c: Use C++ exception handling.
427 * sparc64-linux-tdep.c: Use C++ exception handling.
428 * solib.c: Use C++ exception handling.
429 * solib-svr4.c: Use C++ exception handling.
430 * solib-spu.c: Use C++ exception handling.
431 * solib-frv.c: Use C++ exception handling.
432 * solib-dsbt.c: Use C++ exception handling.
433 * selftest-arch.c: Use C++ exception handling.
434 * s390-tdep.c: Use C++ exception handling.
435 * rust-lang.c: Use C++ exception handling.
436 * rust-exp.y: Use C++ exception handling.
437 * rs6000-tdep.c: Use C++ exception handling.
438 * rs6000-aix-tdep.c: Use C++ exception handling.
439 * riscv-tdep.c: Use C++ exception handling.
440 * remote.c: Use C++ exception handling.
441 * remote-fileio.c: Use C++ exception handling.
442 * record-full.c: Use C++ exception handling.
443 * record-btrace.c: Use C++ exception handling.
444 * python/python.c: Use C++ exception handling.
445 * python/py-value.c: Use C++ exception handling.
446 * python/py-utils.c: Use C++ exception handling.
447 * python/py-unwind.c: Use C++ exception handling.
448 * python/py-type.c: Use C++ exception handling.
449 * python/py-symbol.c: Use C++ exception handling.
450 * python/py-record.c: Use C++ exception handling.
451 * python/py-record-btrace.c: Use C++ exception handling.
452 * python/py-progspace.c: Use C++ exception handling.
453 * python/py-prettyprint.c: Use C++ exception handling.
454 * python/py-param.c: Use C++ exception handling.
455 * python/py-objfile.c: Use C++ exception handling.
456 * python/py-linetable.c: Use C++ exception handling.
457 * python/py-lazy-string.c: Use C++ exception handling.
458 * python/py-infthread.c: Use C++ exception handling.
459 * python/py-inferior.c: Use C++ exception handling.
460 * python/py-gdb-readline.c: Use C++ exception handling.
461 * python/py-framefilter.c: Use C++ exception handling.
462 * python/py-frame.c: Use C++ exception handling.
463 * python/py-finishbreakpoint.c: Use C++ exception handling.
464 * python/py-cmd.c: Use C++ exception handling.
465 * python/py-breakpoint.c: Use C++ exception handling.
466 * python/py-arch.c: Use C++ exception handling.
467 * printcmd.c: Use C++ exception handling.
468 * ppc-linux-tdep.c: Use C++ exception handling.
469 * parse.c: Use C++ exception handling.
470 * p-valprint.c: Use C++ exception handling.
471 * objc-lang.c: Use C++ exception handling.
472 * mi/mi-main.c: Use C++ exception handling.
473 * mi/mi-interp.c: Use C++ exception handling.
474 * mi/mi-cmd-stack.c: Use C++ exception handling.
475 * mi/mi-cmd-break.c: Use C++ exception handling.
476 * main.c: Use C++ exception handling.
477 * linux-thread-db.c: Use C++ exception handling.
478 * linux-tdep.c: Use C++ exception handling.
479 * linux-nat.c: Use C++ exception handling.
480 * linux-fork.c: Use C++ exception handling.
481 * linespec.c: Use C++ exception handling.
482 * language.c: Use C++ exception handling.
483 * jit.c: Use C++ exception handling.
484 * infrun.c: Use C++ exception handling.
485 * infcmd.c: Use C++ exception handling.
486 * infcall.c: Use C++ exception handling.
487 * inf-loop.c: Use C++ exception handling.
488 * i386-tdep.c: Use C++ exception handling.
489 * i386-linux-tdep.c: Use C++ exception handling.
490 * guile/scm-value.c: Use C++ exception handling.
491 * guile/scm-type.c: Use C++ exception handling.
492 * guile/scm-symtab.c: Use C++ exception handling.
493 * guile/scm-symbol.c: Use C++ exception handling.
494 * guile/scm-pretty-print.c: Use C++ exception handling.
495 * guile/scm-ports.c: Use C++ exception handling.
496 * guile/scm-param.c: Use C++ exception handling.
497 * guile/scm-math.c: Use C++ exception handling.
498 * guile/scm-lazy-string.c: Use C++ exception handling.
499 * guile/scm-frame.c: Use C++ exception handling.
500 * guile/scm-disasm.c: Use C++ exception handling.
501 * guile/scm-cmd.c: Use C++ exception handling.
502 * guile/scm-breakpoint.c: Use C++ exception handling.
503 * guile/scm-block.c: Use C++ exception handling.
504 * guile/guile-internal.h: Use C++ exception handling.
505 * gnu-v3-abi.c: Use C++ exception handling.
506 * gdbtypes.c: Use C++ exception handling.
507 * frame.c: Use C++ exception handling.
508 * frame-unwind.c: Use C++ exception handling.
509 * fbsd-tdep.c: Use C++ exception handling.
510 * f-valprint.c: Use C++ exception handling.
511 * exec.c: Use C++ exception handling.
512 * event-top.c: Use C++ exception handling.
513 * event-loop.c: Use C++ exception handling.
514 * eval.c: Use C++ exception handling.
515 * dwarf2read.c: Use C++ exception handling.
516 * dwarf2loc.c: Use C++ exception handling.
517 * dwarf2-frame.c: Use C++ exception handling.
518 * dwarf2-frame-tailcall.c: Use C++ exception handling.
519 * dwarf-index-write.c: Use C++ exception handling.
520 * dwarf-index-cache.c: Use C++ exception handling.
521 * dtrace-probe.c: Use C++ exception handling.
522 * disasm-selftests.c: Use C++ exception handling.
523 * darwin-nat.c: Use C++ exception handling.
524 * cp-valprint.c: Use C++ exception handling.
525 * cp-support.c: Use C++ exception handling.
526 * cp-abi.c: Use C++ exception handling.
527 * corelow.c: Use C++ exception handling.
528 * completer.c: Use C++ exception handling.
529 * compile/compile-object-run.c: Use C++ exception handling.
530 * compile/compile-object-load.c: Use C++ exception handling.
531 * compile/compile-cplus-symbols.c: Use C++ exception handling.
532 * compile/compile-c-symbols.c: Use C++ exception handling.
533 * common/selftest.c: Use C++ exception handling.
534 * common/new-op.c: Use C++ exception handling.
535 * cli/cli-script.c: Use C++ exception handling.
536 * cli/cli-interp.c: Use C++ exception handling.
537 * cli/cli-cmds.c: Use C++ exception handling.
538 * c-varobj.c: Use C++ exception handling.
539 * btrace.c: Use C++ exception handling.
540 * breakpoint.c: Use C++ exception handling.
541 * break-catch-throw.c: Use C++ exception handling.
542 * arch-utils.c: Use C++ exception handling.
543 * amd64-tdep.c: Use C++ exception handling.
544 * ada-valprint.c: Use C++ exception handling.
545 * ada-typeprint.c: Use C++ exception handling.
546 * ada-lang.c: Use C++ exception handling.
547 * aarch64-tdep.c: Use C++ exception handling.
548
549 2019-04-08 Tom Tromey <tom@tromey.com>
550
551 * xml-support.c (gdb_xml_parser::parse): Update.
552 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
553 * value.c (show_convenience): Update.
554 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
555 (test_parse_flags_qcs): Update.
556 * thread.c (thr_try_catch_cmd): Update.
557 * target.c (target_translate_tls_address): Update.
558 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
559 (info_frame_command_core, frame_apply_command_count): Update.
560 * rust-exp.y (rust_lex_exception_test): Update.
561 * riscv-tdep.c (riscv_print_one_register_info): Update.
562 * remote.c (remote_target::enable_btrace): Update.
563 * record-btrace.c (record_btrace_enable_warn): Update.
564 * python/py-utils.c (gdbpy_convert_exception): Update.
565 * printcmd.c (do_one_display, print_variable_and_value): Update.
566 * mi/mi-main.c (mi_print_exception): Update.
567 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
568 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
569 * linux-nat.c (linux_nat_target::attach): Update.
570 * linux-fork.c (class scoped_switch_fork_info): Update.
571 * infrun.c (displaced_step_prepare): Update.
572 * infcall.c (call_function_by_hand_dummy): Update.
573 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
574 * gnu-v3-abi.c (print_one_vtable): Update.
575 * frame.c (get_prev_frame_always): Update.
576 * f-valprint.c (info_common_command_for_block): Update.
577 * exec.c (try_open_exec_file): Update.
578 * exceptions.c (print_exception, exception_print)
579 (exception_fprintf, exception_print_same): Update.
580 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
581 * dwarf-index-cache.c (index_cache::store)
582 (index_cache::lookup_gdb_index): Update.
583 * darwin-nat.c (maybe_cache_shell): Update.
584 * cp-valprint.c (cp_print_value_fields): Update.
585 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
586 (gcc_cplus_symbol_address): Update.
587 * compile/compile-c-symbols.c (gcc_convert_symbol)
588 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
589 * common/selftest.c: Update.
590 * common/common-exceptions.h (struct gdb_exception) <message>: Now
591 a std::string.
592 (exception_try_scope_entry, exception_try_scope_exit): Don't
593 declare.
594 (struct exception_try_scope): Remove.
595 (TRY): Don't use exception_try_scope.
596 (struct gdb_exception): Add constructor, operator=.
597 <what>: New method.
598 (struct gdb_exception_RETURN_MASK_ALL)
599 (struct gdb_exception_RETURN_MASK_ERROR)
600 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
601 (struct gdb_quit_bad_alloc): Update.
602 * common/common-exceptions.c (exception_none): Change
603 initializer.
604 (struct catcher) <state, exception>: Initialize inline.
605 <prev>: Remove member.
606 (current_catcher): Remove.
607 (catchers): New global.
608 (exceptions_state_mc_init): Simplify.
609 (catcher_pop): Remove.
610 (exceptions_state_mc, exceptions_state_mc_catch): Update.
611 (try_scope_depth, exception_try_scope_entry)
612 (exception_try_scope_exit): Remove.
613 (throw_exception_sjlj): Update.
614 (exception_messages, exception_messages_size): Remove.
615 (throw_it): Simplify.
616 (gdb_exception_sliced_copy): Remove.
617 (throw_exception_cxx): Update.
618 * cli/cli-script.c (script_from_file): Update.
619 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
620 Update.
621 * ada-valprint.c (ada_val_print): Update.
622 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
623 (create_excep_cond_exprs): Update.
624
625 2019-04-08 Tom Tromey <tom@tromey.com>
626
627 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
628 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
629 (TRY, CATCH, END_CATCH): Remove some definitions.
630 * common/common-exceptions.c: Don't use GDB_XCPT.
631 (catcher_list_size): Remove.
632 (throw_exception, throw_it): Simplify.
633
634 2019-04-05 Tom Tromey <tom@tromey.com>
635
636 Revert the header-sorting patch.
637 * ft32-tdep.c: Revert.
638 * frv-tdep.c: Revert.
639 * frv-linux-tdep.c: Revert.
640 * frame.c: Revert.
641 * frame-unwind.c: Revert.
642 * frame-base.c: Revert.
643 * fork-child.c: Revert.
644 * findvar.c: Revert.
645 * findcmd.c: Revert.
646 * filesystem.c: Revert.
647 * filename-seen-cache.h: Revert.
648 * filename-seen-cache.c: Revert.
649 * fbsd-tdep.c: Revert.
650 * fbsd-nat.h: Revert.
651 * fbsd-nat.c: Revert.
652 * f-valprint.c: Revert.
653 * f-typeprint.c: Revert.
654 * f-lang.c: Revert.
655 * extension.h: Revert.
656 * extension.c: Revert.
657 * extension-priv.h: Revert.
658 * expprint.c: Revert.
659 * exec.h: Revert.
660 * exec.c: Revert.
661 * exceptions.c: Revert.
662 * event-top.c: Revert.
663 * event-loop.c: Revert.
664 * eval.c: Revert.
665 * elfread.c: Revert.
666 * dwarf2read.h: Revert.
667 * dwarf2read.c: Revert.
668 * dwarf2loc.c: Revert.
669 * dwarf2expr.h: Revert.
670 * dwarf2expr.c: Revert.
671 * dwarf2-frame.c: Revert.
672 * dwarf2-frame-tailcall.c: Revert.
673 * dwarf-index-write.h: Revert.
674 * dwarf-index-write.c: Revert.
675 * dwarf-index-common.c: Revert.
676 * dwarf-index-cache.h: Revert.
677 * dwarf-index-cache.c: Revert.
678 * dummy-frame.c: Revert.
679 * dtrace-probe.c: Revert.
680 * disasm.h: Revert.
681 * disasm.c: Revert.
682 * disasm-selftests.c: Revert.
683 * dictionary.c: Revert.
684 * dicos-tdep.c: Revert.
685 * demangle.c: Revert.
686 * dcache.h: Revert.
687 * dcache.c: Revert.
688 * darwin-nat.h: Revert.
689 * darwin-nat.c: Revert.
690 * darwin-nat-info.c: Revert.
691 * d-valprint.c: Revert.
692 * d-namespace.c: Revert.
693 * d-lang.c: Revert.
694 * ctf.c: Revert.
695 * csky-tdep.c: Revert.
696 * csky-linux-tdep.c: Revert.
697 * cris-tdep.c: Revert.
698 * cris-linux-tdep.c: Revert.
699 * cp-valprint.c: Revert.
700 * cp-support.c: Revert.
701 * cp-namespace.c: Revert.
702 * cp-abi.c: Revert.
703 * corelow.c: Revert.
704 * corefile.c: Revert.
705 * continuations.c: Revert.
706 * completer.h: Revert.
707 * completer.c: Revert.
708 * complaints.c: Revert.
709 * coffread.c: Revert.
710 * coff-pe-read.c: Revert.
711 * cli-out.h: Revert.
712 * cli-out.c: Revert.
713 * charset.c: Revert.
714 * c-varobj.c: Revert.
715 * c-valprint.c: Revert.
716 * c-typeprint.c: Revert.
717 * c-lang.c: Revert.
718 * buildsym.c: Revert.
719 * buildsym-legacy.c: Revert.
720 * build-id.h: Revert.
721 * build-id.c: Revert.
722 * btrace.c: Revert.
723 * bsd-uthread.c: Revert.
724 * breakpoint.h: Revert.
725 * breakpoint.c: Revert.
726 * break-catch-throw.c: Revert.
727 * break-catch-syscall.c: Revert.
728 * break-catch-sig.c: Revert.
729 * blockframe.c: Revert.
730 * block.c: Revert.
731 * bfin-tdep.c: Revert.
732 * bfin-linux-tdep.c: Revert.
733 * bfd-target.c: Revert.
734 * bcache.c: Revert.
735 * ax-general.c: Revert.
736 * ax-gdb.h: Revert.
737 * ax-gdb.c: Revert.
738 * avr-tdep.c: Revert.
739 * auxv.c: Revert.
740 * auto-load.c: Revert.
741 * arm-wince-tdep.c: Revert.
742 * arm-tdep.c: Revert.
743 * arm-symbian-tdep.c: Revert.
744 * arm-pikeos-tdep.c: Revert.
745 * arm-obsd-tdep.c: Revert.
746 * arm-nbsd-tdep.c: Revert.
747 * arm-nbsd-nat.c: Revert.
748 * arm-linux-tdep.c: Revert.
749 * arm-linux-nat.c: Revert.
750 * arm-fbsd-tdep.c: Revert.
751 * arm-fbsd-nat.c: Revert.
752 * arm-bsd-tdep.c: Revert.
753 * arch-utils.c: Revert.
754 * arc-tdep.c: Revert.
755 * arc-newlib-tdep.c: Revert.
756 * annotate.h: Revert.
757 * annotate.c: Revert.
758 * amd64-windows-tdep.c: Revert.
759 * amd64-windows-nat.c: Revert.
760 * amd64-tdep.c: Revert.
761 * amd64-sol2-tdep.c: Revert.
762 * amd64-obsd-tdep.c: Revert.
763 * amd64-obsd-nat.c: Revert.
764 * amd64-nbsd-tdep.c: Revert.
765 * amd64-nbsd-nat.c: Revert.
766 * amd64-nat.c: Revert.
767 * amd64-linux-tdep.c: Revert.
768 * amd64-linux-nat.c: Revert.
769 * amd64-fbsd-tdep.c: Revert.
770 * amd64-fbsd-nat.c: Revert.
771 * amd64-dicos-tdep.c: Revert.
772 * amd64-darwin-tdep.c: Revert.
773 * amd64-bsd-nat.c: Revert.
774 * alpha-tdep.c: Revert.
775 * alpha-obsd-tdep.c: Revert.
776 * alpha-nbsd-tdep.c: Revert.
777 * alpha-mdebug-tdep.c: Revert.
778 * alpha-linux-tdep.c: Revert.
779 * alpha-linux-nat.c: Revert.
780 * alpha-bsd-tdep.c: Revert.
781 * alpha-bsd-nat.c: Revert.
782 * aix-thread.c: Revert.
783 * agent.c: Revert.
784 * addrmap.c: Revert.
785 * ada-varobj.c: Revert.
786 * ada-valprint.c: Revert.
787 * ada-typeprint.c: Revert.
788 * ada-tasks.c: Revert.
789 * ada-lang.c: Revert.
790 * aarch64-tdep.c: Revert.
791 * aarch64-ravenscar-thread.c: Revert.
792 * aarch64-newlib-tdep.c: Revert.
793 * aarch64-linux-tdep.c: Revert.
794 * aarch64-linux-nat.c: Revert.
795 * aarch64-fbsd-tdep.c: Revert.
796 * aarch64-fbsd-nat.c: Revert.
797 * aarch32-linux-nat.c: Revert.
798
799 2019-04-05 Tom Tromey <tom@tromey.com>
800
801 * ft32-tdep.c: Sort headers.
802 * frv-tdep.c: Sort headers.
803 * frv-linux-tdep.c: Sort headers.
804 * frame.c: Sort headers.
805 * frame-unwind.c: Sort headers.
806 * frame-base.c: Sort headers.
807 * fork-child.c: Sort headers.
808 * findvar.c: Sort headers.
809 * findcmd.c: Sort headers.
810 * filesystem.c: Sort headers.
811 * filename-seen-cache.h: Sort headers.
812 * filename-seen-cache.c: Sort headers.
813 * fbsd-tdep.c: Sort headers.
814 * fbsd-nat.h: Sort headers.
815 * fbsd-nat.c: Sort headers.
816 * f-valprint.c: Sort headers.
817 * f-typeprint.c: Sort headers.
818 * f-lang.c: Sort headers.
819 * extension.h: Sort headers.
820 * extension.c: Sort headers.
821 * extension-priv.h: Sort headers.
822 * expprint.c: Sort headers.
823 * exec.h: Sort headers.
824 * exec.c: Sort headers.
825 * exceptions.c: Sort headers.
826 * event-top.c: Sort headers.
827 * event-loop.c: Sort headers.
828 * eval.c: Sort headers.
829 * elfread.c: Sort headers.
830 * dwarf2read.h: Sort headers.
831 * dwarf2read.c: Sort headers.
832 * dwarf2loc.c: Sort headers.
833 * dwarf2expr.h: Sort headers.
834 * dwarf2expr.c: Sort headers.
835 * dwarf2-frame.c: Sort headers.
836 * dwarf2-frame-tailcall.c: Sort headers.
837 * dwarf-index-write.h: Sort headers.
838 * dwarf-index-write.c: Sort headers.
839 * dwarf-index-common.c: Sort headers.
840 * dwarf-index-cache.h: Sort headers.
841 * dwarf-index-cache.c: Sort headers.
842 * dummy-frame.c: Sort headers.
843 * dtrace-probe.c: Sort headers.
844 * disasm.h: Sort headers.
845 * disasm.c: Sort headers.
846 * disasm-selftests.c: Sort headers.
847 * dictionary.c: Sort headers.
848 * dicos-tdep.c: Sort headers.
849 * demangle.c: Sort headers.
850 * dcache.h: Sort headers.
851 * dcache.c: Sort headers.
852 * darwin-nat.h: Sort headers.
853 * darwin-nat.c: Sort headers.
854 * darwin-nat-info.c: Sort headers.
855 * d-valprint.c: Sort headers.
856 * d-namespace.c: Sort headers.
857 * d-lang.c: Sort headers.
858 * ctf.c: Sort headers.
859 * csky-tdep.c: Sort headers.
860 * csky-linux-tdep.c: Sort headers.
861 * cris-tdep.c: Sort headers.
862 * cris-linux-tdep.c: Sort headers.
863 * cp-valprint.c: Sort headers.
864 * cp-support.c: Sort headers.
865 * cp-namespace.c: Sort headers.
866 * cp-abi.c: Sort headers.
867 * corelow.c: Sort headers.
868 * corefile.c: Sort headers.
869 * continuations.c: Sort headers.
870 * completer.h: Sort headers.
871 * completer.c: Sort headers.
872 * complaints.c: Sort headers.
873 * coffread.c: Sort headers.
874 * coff-pe-read.c: Sort headers.
875 * cli-out.h: Sort headers.
876 * cli-out.c: Sort headers.
877 * charset.c: Sort headers.
878 * c-varobj.c: Sort headers.
879 * c-valprint.c: Sort headers.
880 * c-typeprint.c: Sort headers.
881 * c-lang.c: Sort headers.
882 * buildsym.c: Sort headers.
883 * buildsym-legacy.c: Sort headers.
884 * build-id.h: Sort headers.
885 * build-id.c: Sort headers.
886 * btrace.c: Sort headers.
887 * bsd-uthread.c: Sort headers.
888 * breakpoint.h: Sort headers.
889 * breakpoint.c: Sort headers.
890 * break-catch-throw.c: Sort headers.
891 * break-catch-syscall.c: Sort headers.
892 * break-catch-sig.c: Sort headers.
893 * blockframe.c: Sort headers.
894 * block.c: Sort headers.
895 * bfin-tdep.c: Sort headers.
896 * bfin-linux-tdep.c: Sort headers.
897 * bfd-target.c: Sort headers.
898 * bcache.c: Sort headers.
899 * ax-general.c: Sort headers.
900 * ax-gdb.h: Sort headers.
901 * ax-gdb.c: Sort headers.
902 * avr-tdep.c: Sort headers.
903 * auxv.c: Sort headers.
904 * auto-load.c: Sort headers.
905 * arm-wince-tdep.c: Sort headers.
906 * arm-tdep.c: Sort headers.
907 * arm-symbian-tdep.c: Sort headers.
908 * arm-pikeos-tdep.c: Sort headers.
909 * arm-obsd-tdep.c: Sort headers.
910 * arm-nbsd-tdep.c: Sort headers.
911 * arm-nbsd-nat.c: Sort headers.
912 * arm-linux-tdep.c: Sort headers.
913 * arm-linux-nat.c: Sort headers.
914 * arm-fbsd-tdep.c: Sort headers.
915 * arm-fbsd-nat.c: Sort headers.
916 * arm-bsd-tdep.c: Sort headers.
917 * arch-utils.c: Sort headers.
918 * arc-tdep.c: Sort headers.
919 * arc-newlib-tdep.c: Sort headers.
920 * annotate.h: Sort headers.
921 * annotate.c: Sort headers.
922 * amd64-windows-tdep.c: Sort headers.
923 * amd64-windows-nat.c: Sort headers.
924 * amd64-tdep.c: Sort headers.
925 * amd64-sol2-tdep.c: Sort headers.
926 * amd64-obsd-tdep.c: Sort headers.
927 * amd64-obsd-nat.c: Sort headers.
928 * amd64-nbsd-tdep.c: Sort headers.
929 * amd64-nbsd-nat.c: Sort headers.
930 * amd64-nat.c: Sort headers.
931 * amd64-linux-tdep.c: Sort headers.
932 * amd64-linux-nat.c: Sort headers.
933 * amd64-fbsd-tdep.c: Sort headers.
934 * amd64-fbsd-nat.c: Sort headers.
935 * amd64-dicos-tdep.c: Sort headers.
936 * amd64-darwin-tdep.c: Sort headers.
937 * amd64-bsd-nat.c: Sort headers.
938 * alpha-tdep.c: Sort headers.
939 * alpha-obsd-tdep.c: Sort headers.
940 * alpha-nbsd-tdep.c: Sort headers.
941 * alpha-mdebug-tdep.c: Sort headers.
942 * alpha-linux-tdep.c: Sort headers.
943 * alpha-linux-nat.c: Sort headers.
944 * alpha-bsd-tdep.c: Sort headers.
945 * alpha-bsd-nat.c: Sort headers.
946 * aix-thread.c: Sort headers.
947 * agent.c: Sort headers.
948 * addrmap.c: Sort headers.
949 * ada-varobj.c: Sort headers.
950 * ada-valprint.c: Sort headers.
951 * ada-typeprint.c: Sort headers.
952 * ada-tasks.c: Sort headers.
953 * ada-lang.c: Sort headers.
954 * aarch64-tdep.c: Sort headers.
955 * aarch64-ravenscar-thread.c: Sort headers.
956 * aarch64-newlib-tdep.c: Sort headers.
957 * aarch64-linux-tdep.c: Sort headers.
958 * aarch64-linux-nat.c: Sort headers.
959 * aarch64-fbsd-tdep.c: Sort headers.
960 * aarch64-fbsd-nat.c: Sort headers.
961 * aarch32-linux-nat.c: Sort headers.
962
963 2019-04-04 Tom Tromey <tom@tromey.com>
964
965 * varobj.c (varobj_create): Update.
966 * rust-exp.y (struct rust_parser) <update_innermost_block,
967 lookup_symbol>: New methods.
968 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
969 Rename.
970 (rust_parser::rust_lookup_type)
971 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
972 * printcmd.c (display_command, do_one_display): Update.
973 * parser-defs.h (struct parser_state) <parser_state>: Add
974 "tracker" parameter.
975 (block_tracker): New member.
976 (class innermost_block_tracker) <innermost_block_tracker>: Add
977 "types" parameter.
978 <reset>: Remove method.
979 (innermost_block): Don't declare.
980 (null_post_parser): Update.
981 * parse.c (innermost_block): Remove global.
982 (write_dollar_variable): Update.
983 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
984 Remove "tracker_types" parameter.
985 (parse_expression): Add "tracker" parameter.
986 (parse_expression_for_completion): Update.
987 (null_post_parser): Add "tracker" parameter.
988 * p-exp.y: Update rules.
989 * m2-exp.y: Update rules.
990 * language.h (struct language_defn) <la_post_parser>: Add
991 "tracker" parameter.
992 * go-exp.y: Update rules.
993 * f-exp.y: Update rules.
994 * expression.h (parse_expression, parse_exp_1): Add "tracker"
995 parameter.
996 * d-exp.y: Update rules.
997 * c-exp.y: Update rules.
998 * breakpoint.c (set_breakpoint_condition): Create an
999 innermost_block_tracker.
1000 (watch_command_1): Likewise.
1001 * ada-lang.c (resolve): Add "tracker" parameter.
1002 (resolve_subexp): Likewise.
1003 * ada-exp.y (write_var_from_sym): Update.
1004
1005 2019-04-04 Tom Tromey <tom@tromey.com>
1006
1007 * type-stack.h: New file.
1008 * type-stack.c: New file.
1009 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
1010 type-stack.h.
1011 (insert_into_type_stack, insert_type, push_type, push_type_int)
1012 (insert_type_address_space, pop_type, pop_type_int)
1013 (pop_typelist, pop_type_stack, append_type_stack)
1014 (push_type_stack, get_type_stack, push_typelist)
1015 (follow_type_instance_flags, follow_types): Don't declare.
1016 * parse.c (type_stack): Remove global.
1017 (parse_exp_in_context): Update.
1018 (insert_into_type_stack, insert_type, push_type, push_type_int)
1019 (insert_type_address_space, pop_type, pop_type_int)
1020 (pop_typelist, pop_type_stack, append_type_stack)
1021 (push_type_stack, get_type_stack, push_typelist)
1022 (follow_type_instance_flags, follow_types): Remove (moved to
1023 type-stack.c).
1024 * f-exp.y (type_stack): New global.
1025 Update rules.
1026 (push_kind_type, f_parse): Update.
1027 * d-exp.y (type_stack): New global.
1028 Update rules.
1029 (d_parse): Update.
1030 * c-exp.y (struct c_parse_state) <type_stack>: New member.
1031 Update rules.
1032 * Makefile.in (COMMON_SFILES): Add type-stack.c.
1033 (HFILES_NO_SRCDIR): Add type-stack.h.
1034
1035 2019-04-04 Tom Tromey <tom@tromey.com>
1036
1037 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
1038 (rust_parser::convert_ast_to_expression, rust_parse)
1039 (rust_lex_test_completion, rust_lex_tests): Update.
1040 * parser-defs.h (struct expr_completion_state): New.
1041 (struct parser_state) <parser_state>: Add completion parameter.
1042 <mark_struct_expression, mark_completion_tag>: New methods.
1043 <parse_completion, m_completion_state>: New members.
1044 (prefixify_expression, null_post_parser): Update.
1045 (mark_struct_expression, mark_completion_tag): Don't declare.
1046 * parse.c (parse_completion, expout_last_struct)
1047 (expout_tag_completion_type, expout_completion_name): Remove
1048 globals.
1049 (parser_state::mark_struct_expression)
1050 (parser_state::mark_completion_tag): Now methods.
1051 (prefixify_expression): Add last_struct parameter.
1052 (prefixify_subexp): Likewise.
1053 (parse_exp_1): Update.
1054 (parse_exp_in_context): Add cstate parameter. Update.
1055 (parse_expression_for_completion): Create an
1056 expr_completion_state.
1057 (null_post_parser): Add "completion" parameter.
1058 * p-exp.y: Update rules.
1059 (yylex): Update.
1060 * language.h (struct language_defn) <la_post_parser>: Add
1061 "completing" parameter.
1062 * go-exp.y: Update rules.
1063 (lex_one_token): Update.
1064 * expression.h (parse_completion): Don't declare.
1065 * d-exp.y: Update rules.
1066 (lex_one_token): Update rules.
1067 * c-exp.y: Update rules.
1068 (lex_one_token): Update.
1069 * ada-lang.c (resolve): Add "parse_completion" parameter.
1070 (resolve_subexp): Likewise.
1071 (ada_resolve_function): Likewise.
1072
1073 2019-04-04 Tom Tromey <tom@tromey.com>
1074
1075 * parser-defs.h (struct parser_state) <start_arglist,
1076 end_arglist>: New methods.
1077 <arglist_len, m_funcall_chain>: New members.
1078 (arglist_len, start_arglist, end_arglist): Don't declare.
1079 * parse.c (arglist_len, funcall_chain): Remove global.
1080 (start_arglist, end_arglist): Remove functions.
1081 (parse_exp_in_context): Update.
1082 * p-exp.y: Update rules.
1083 * m2-exp.y: Update rules.
1084 * go-exp.y: Update rules.
1085 * f-exp.y: Update rules.
1086 * d-exp.y: Update rules.
1087 * c-exp.y: Update rules.
1088
1089 2019-04-04 Tom Tromey <tom@tromey.com>
1090
1091 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
1092 lex_operator, push_back>: New methods.
1093 Update all rules.
1094 (rust_parser::lex_hex, lex_escape): Rename and update.
1095 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
1096 (rust_parser::lex_operator): Rename and update.
1097 (rust_parser::lex_number, rustyylex, rustyyerror)
1098 (rust_lex_test_init, rust_lex_test_sequence)
1099 (rust_lex_test_push_back, rust_lex_tests): Update.
1100 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
1101 parameter.
1102 <lexptr, prev_lexptr>: New members.
1103 (lexptr, prev_lexptr): Don't declare.
1104 * parse.c (lexptr, prev_lexptr): Remove globals.
1105 (parse_exp_in_context): Update.
1106 * p-exp.y (yylex, yyerror): Update.
1107 * m2-exp.y (parse_number, yylex, yyerror): Update.
1108 * go-exp.y (lex_one_token, yyerror): Update.
1109 * f-exp.y (match_string_literal, yylex, yyerror): Update.
1110 * d-exp.y (lex_one_token, yyerror): Update.
1111 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
1112 (lex_one_token, yyerror): Update.
1113 * ada-lex.l (YY_INPUT): Update.
1114 (rewind_to_char): Update.
1115 * ada-exp.y (yyerror): Update.
1116
1117 2019-04-04 Tom Tromey <tom@tromey.com>
1118
1119 * rust-exp.y (rustyylex, rust_lex_tests): Update.
1120 * parser-defs.h (struct parser_state) <parser_state>: Add new
1121 parameter.
1122 <comma_terminates>: New member.
1123 (comma_terminates): Don't declare global.
1124 * parse.c (comma_terminates): Remove global.
1125 (parse_exp_in_context): Update.
1126 * p-exp.y (yylex): Update.
1127 * m2-exp.y (yylex): Update.
1128 * go-exp.y (lex_one_token): Update.
1129 * f-exp.y (yylex): Update.
1130 * d-exp.y (lex_one_token): Update.
1131 * c-exp.y (lex_one_token): Update.
1132 * ada-lex.l: Update.
1133
1134 2019-04-04 Tom Tromey <tom@tromey.com>
1135
1136 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
1137 (rustyylex, rust_lex_test_init, rust_lex_test_one)
1138 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
1139 * parser-defs.h (paren_depth): Don't declare.
1140 * parse.c (paren_depth): Remove global.
1141 (parse_exp_in_context): Update.
1142 * p-exp.y (paren_depth): New global.
1143 (pascal_parse): Initialize it.
1144 * m2-exp.y (paren_depth): New global.
1145 (m2_parse): Initialize it.
1146 * go-exp.y (paren_depth): New global.
1147 (go_parse): Initialize it.
1148 * f-exp.y (paren_depth): New global.
1149 (f_parse): Initialize it.
1150 * d-exp.y (paren_depth): New global.
1151 (d_parse): Initialize it.
1152 * c-exp.y (paren_depth): New global.
1153 (c_parse): Initialize it.
1154 * ada-lex.l (paren_depth): New global.
1155 (lexer_init): Initialize it.
1156
1157 2019-04-04 Tom Tromey <tom@tromey.com>
1158
1159 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
1160 (rust_parser::convert_ast_to_type)
1161 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
1162 * parser-defs.h (struct parser_state) <parser_state>: Add
1163 parameters. Initialize new members.
1164 <expression_context_block, expression_context_pc>: New members.
1165 * parse.c (expression_context_block, expression_context_pc):
1166 Remove globals.
1167 (parse_exp_in_context): Update.
1168 * p-exp.y: Update all rules.
1169 (yylex): Update.
1170 * m2-exp.y: Update all rules.
1171 (yylex): Update.
1172 * go-exp.y (yylex): Update.
1173 * f-exp.y (yylex): Update.
1174 * d-exp.y: Update all rules.
1175 (yylex): Update.
1176 * c-exp.y: Update all rules.
1177 (lex_one_token, classify_name, yylex, c_parse): Update.
1178 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
1179
1180 2019-04-04 Tom Tromey <tom@tromey.com>
1181
1182 * gdbarch.h, gdbarch.c: Rebuild.
1183 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
1184 * stap-probe.h:
1185 (struct stap_parse_info): Replace "parser_state" with
1186 "expr_builder".
1187 * parser-defs.h (struct expr_builder): Rename from "parser_state".
1188 (parser_state): New class.
1189 * parse.c (expr_builder): Rename.
1190 (expr_builder::release): Rename.
1191 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
1192 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
1193 (write_exp_elt_longcst, write_exp_elt_floatcst)
1194 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
1195 (write_exp_string_vector, write_exp_bitstring)
1196 (write_exp_msymbol, mark_struct_expression)
1197 (write_dollar_variable)
1198 (insert_type_address_space, increase_expout_size): Replace
1199 "parser_state" with "expr_builder".
1200 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
1201 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
1202 "parser_state" with "expr_builder".
1203
1204 2019-04-04 Tom Tromey <tom@tromey.com>
1205
1206 * rust-exp.y: Replace "parse_language" with method call.
1207 * p-exp.y:
1208 (yylex): Replace "parse_language" with method call.
1209 * m2-exp.y:
1210 (yylex): Replace "parse_language" with method call.
1211 * go-exp.y (classify_name): Replace "parse_language" with method
1212 call.
1213 * f-exp.y (yylex): Replace "parse_language" with method call.
1214 * d-exp.y (lex_one_token): Replace "parse_language" with method
1215 call.
1216 * c-exp.y:
1217 (lex_one_token, classify_name, yylex): Replace "parse_language"
1218 with method call.
1219 * ada-exp.y (find_primitive_type, type_char)
1220 (type_system_address): Replace "parse_language" with method call.
1221
1222 2019-04-04 Tom Tromey <tom@tromey.com>
1223
1224 * rust-exp.y: Replace "parse_gdbarch" with method call.
1225 * parse.c (write_dollar_variable, insert_type_address_space):
1226 Replace "parse_gdbarch" with method call.
1227 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
1228 call.
1229 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
1230 call.
1231 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
1232 "parse_gdbarch" with method call.
1233 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
1234 with method call.
1235 * f-exp.y (parse_type, parse_f_type, yylex): Replace
1236 "parse_gdbarch" with method call.
1237 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
1238 "parse_gdbarch" with method call.
1239 * c-exp.y (parse_type, parse_number, classify_name): Replace
1240 "parse_gdbarch" with method call.
1241 * ada-lex.l: Replace "parse_gdbarch" with method call.
1242 * ada-exp.y (parse_type, find_primitive_type, type_char)
1243 (type_system_address): Replace "parse_gdbarch" with method call.
1244
1245 2019-04-04 Tom Tromey <tom@tromey.com>
1246
1247 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
1248 * stap-probe.c (stap_parse_argument): Update.
1249 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
1250 initial_size parameter.
1251 * rust-exp.y (rust_lex_tests): Update.
1252 * parse.c (parser_state): Update.
1253 (parse_exp_in_context): Update.
1254 * parser-defs.h (struct parser_state) <parser_state>: Remove
1255 "initial_size" parameter.
1256
1257 2019-04-04 Tom Tromey <tom@tromey.com>
1258
1259 * parser-defs.h (increase_expout_size): Don't declare.
1260 * parse.c (increase_expout_size): Now static.
1261
1262 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
1263
1264 * gnu-nat.c (gnu_nat_target::wait): Fix
1265 target_waitstatus_to_string call.
1266
1267 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
1268
1269 * eval.c (evaluate_subexp_standard): Handle internal functions
1270 during Fortran function call handling.
1271
1272 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
1273
1274 * NEWS: Mention new internal functions.
1275 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
1276 (read_base_type): Use dwarf2_init_complex_target_type.
1277 * value.c (creal_internal_fn): New function.
1278 (cimag_internal_fn): New function.
1279 (_initialize_values): Register new internal functions.
1280
1281 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1282
1283 * infrun.c (stop_all_threads): If debug_infrun, always
1284 trace the wait status after wait_one, using
1285 target_waitstatus_to_string and target_pid_to_str.
1286 (handle_inferior_event): Replace various trace of
1287 wait status kind by a single trace.
1288 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
1289 wait status kind image by target_waitstatus_to_string.
1290 * target/waitstatus.c (target_waitstatus_to_string): Fix
1291 obsolete comment.
1292
1293 2019-04-01 Tom Tromey <tromey@adacore.com>
1294
1295 PR symtab/23331:
1296 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
1297
1298 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
1299 Pedro Alves <palves@redhat.com>
1300
1301 * top.c (quit_force): Call 'finalize_values'.
1302 * value.c (finalize_values): New function.
1303 * value.h (finalize_values): Declare.
1304
1305 2019-03-30 Eli Zaretskii <eliz@gnu.org>
1306
1307 * NEWS: Announce $_gdb_major and $_gdb_minor.
1308
1309 * top.c (init_gdb_version_vars): New function.
1310 (gdb_init): Call init_gdb_version_vars.
1311
1312 2019-03-29 Tom Tromey <tromey@adacore.com>
1313
1314 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
1315 help text. Remove dead code.
1316
1317 2019-03-29 Keith Seitz <keiths@redhat.com>
1318
1319 From Siddhesh Poyarekar:
1320 * f-lang.h (f77_get_upperbound): Return LONGEST.
1321 (f77_get_lowerbound): Likewise.
1322 * f-typeprint.c (f_type_print_varspec_suffix): Expand
1323 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
1324 print them.
1325 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
1326 plongest to format print it.
1327 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
1328 (f77_get_upperbound): Likewise.
1329 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
1330 LOWER_BOUND to LONGEST.
1331 (f77_create_arrayprint_offset_tbl): Likewise.
1332
1333 2019-03-29 Keith Seitz <keiths@redhat.com>
1334
1335 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
1336 %s/pulongest for TYPE_LENGTH instead of %d in format
1337 strings.
1338 * ada-typerint.c (ada_print_type): Likewise.
1339 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
1340 * compile/compile-c-support.c (generate_register_struct): Likewise.
1341 * gdbtypes.c (recursive_dump_type): Likewise.
1342 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
1343 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
1344 instead of %d in format strings.
1345 * riscv-tdep.c (riscv_type_alignment): Cast second argument
1346 to std::min to ULONGEST.
1347 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
1348 instead of %d in format strings.
1349 * tracepoint.c (info_scope_command): Likewise.
1350 * typeprint.c (print_offset_data::update)
1351 (print_offset_data::finish): Likewise.
1352 * xtensa-tdep.c (xtensa_store_return_value)
1353 (xtensa_push_dummy_call): Likewise.
1354
1355 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
1356
1357 * windows-nat.c (display_selector): Fixed format specifications
1358 for 64-bit Cygwin.
1359
1360 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1361
1362 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
1363
1364 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
1365
1366 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
1367 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
1368 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
1369 (nios2_linux_init_abi): Install it.
1370
1371 2019-03-28 Alan Hayward <alan.hayward@arm.com>
1372
1373 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
1374
1375 2019-03-28 Alan Hayward <alan.hayward@arm.com>
1376
1377 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
1378
1379 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1380 Tom Tromey <tromey@adacore.com>
1381
1382 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
1383
1384 2019-03-26 Joel Brobecker <brobecker@adacore.com>
1385
1386 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
1387 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
1388 method to compute the bounds of range types. Also print "[evaluated]"
1389 if the bounds' values come from a dynamic evaluation.
1390
1391 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
1392
1393 * cp-valprint.c (cp_print_value_fields): Don't print trailing
1394 whitespace when pretty printing is on.
1395
1396 2019-03-26 Alan Hayward <alan.hayward@arm.com>
1397
1398 * ppc-linux-nat.c: Add include.
1399
1400 2019-03-26 Alan Hayward <alan.hayward@arm.com>
1401
1402 * NEWS: Mention AArch64 Pointer Authentication.
1403
1404 2019-03-26 Alan Hayward <alan.hayward@arm.com>
1405
1406 * arm-linux-nat.c: Add include.
1407
1408 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
1409
1410 * source-cache.c (source_cache::get_source_lines): Re-read
1411 fullname after calling open_source_file.
1412
1413 2019-03-25 John Baldwin <jhb@FreeBSD.org>
1414
1415 * NEWS: Mention TLS support for FreeBSD.
1416
1417 2019-03-25 Tom Tromey <tromey@adacore.com>
1418
1419 * minsyms.c (BUNCH_SIZE): Update comment.
1420 (~minimal_symbol_reader): Remove old comment.
1421 (compact_minimal_symbols): Update comment.
1422 (minimal_symbol_reader::install): Remove old comment. Update
1423 other comments.
1424
1425 2019-03-25 Alan Hayward <alan.hayward@arm.com>
1426
1427 * s390-linux-nat.c: Add include.
1428
1429 2019-03-25 Alan Hayward <alan.hayward@arm.com>
1430
1431 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
1432 Call linux_get_hwcap.
1433 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
1434 Likewise.
1435 (aarch64_linux_get_hwcap): Remove function.
1436 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
1437 declaration.
1438 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
1439 linux_get_hwcap.
1440 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
1441 * linux-tdep.c (linux_get_hwcap): Add function.
1442 (linux_get_hwcap2): Likewise.
1443 * linux-tdep.h (linux_get_hwcap): Add declaration.
1444 (linux_get_hwcap2): Likewise.
1445 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
1446 (ppc_linux_get_hwcap2): Likewise.
1447 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
1448 linux_get_hwcap.
1449 (ppc_linux_nat_target::insert_watchpoint): Likewise.
1450 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
1451 (ppc_linux_nat_target::read_description): Likewise.
1452 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
1453 * s390-linux-nat.c: Likewise.
1454 * s390-linux-tdep.c (s390_core_read_description): Likewise.
1455
1456 2019-03-24 Tom Tromey <tom@tromey.com>
1457
1458 * ada-lang.c (standard_lookup): Simplify initialization.
1459 (ada_lookup_symbol_nonlocal): Simplify return.
1460 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
1461 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
1462 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
1463 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
1464 initialization.
1465 * solib.c (solib_global_lookup): Simplify.
1466 * symtab.c (null_block_symbol): Remove.
1467 (symbol_cache_lookup): Simplify returns.
1468 (lookup_language_this): Simplify returns.
1469 (lookup_symbol_aux): Simplify return.
1470 (lookup_local_symbol): Simplify returns.
1471 (lookup_global_symbol_from_objfile): Simplify return.
1472 (lookup_symbol_in_objfile_symtabs)
1473 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
1474 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
1475 (lookup_static_symbol, lookup_global_symbol): Simplify return.
1476 * cp-namespace.c (cp_lookup_bare_symbol)
1477 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
1478 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
1479 (cp_lookup_nested_symbol): Don't use null_block_symbol.
1480 (cp_lookup_symbol_via_imports): Simplify initialization.
1481 (find_symbol_in_baseclass): Likewise.
1482 * symtab.h (null_block_symbol): Remove.
1483 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
1484 (d_lookup_nested_symbol, d_lookup_symbol_imports)
1485 (d_lookup_symbol_module): Likewise.
1486 (find_symbol_in_baseclass): Simplify initialization.
1487
1488 2019-03-24 Tom Tromey <tom@tromey.com>
1489
1490 * expression.h: Don't include symtab.h.
1491 (struct block): Forward declare.
1492
1493 2019-03-24 Tom Tromey <tom@tromey.com>
1494
1495 * c-exp.y (typebase): Remove casts.
1496 * gdbtypes.c (lookup_unsigned_typename, )
1497 (lookup_signed_typename): Remove cast.
1498 * eval.c (parse_to_comma_and_eval): Remove cast.
1499 * parse.c (write_dollar_variable): Remove cast.
1500 * block.h (struct block) <superblock>: Now const.
1501 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
1502 * psymtab.c (psym_map_matching_symbols): Make "block" const.
1503 (map_block): Make "block" const.
1504 * symfile.h (struct quick_symbol_functions)
1505 <map_matching_symbols>: Constify block argument to "callback".
1506 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
1507 const.
1508 (find_pc_sect_compunit_symtab): Make "b" const.
1509 (find_symbol_at_address): Likewise.
1510 (search_symbols): Likewise.
1511 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
1512 (dw2_debug_names_lookup_symbol): Likewise.
1513 (dw2_map_matching_symbols): Update.
1514 * p-valprint.c (pascal_val_print): Remove "block".
1515 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
1516 (aux_add_nonlocal_symbols): Make "block" const.
1517 (resolve_subexp): Remove cast.
1518 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
1519 const.
1520 (iterate_over_file_blocks): Likewise.
1521 * f-exp.y (%union) <bval>: Remove.
1522 * coffread.c (patch_opaque_types): Make "b" const.
1523 * spu-tdep.c (spu_catch_start): Make "block" const.
1524 * c-valprint.c (print_unpacked_pointer): Remove "block".
1525 * symmisc.c (dump_symtab_1): Make "b" const.
1526 (block_depth): Make "block" const.
1527 * d-exp.y (%union) <bval>: Remove.
1528 * cp-support.h (cp_lookup_rtti_type): Update.
1529 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
1530 * psymtab.c (psym_lookup_symbol): Make "block" const.
1531 (maintenance_check_psymtabs): Make "b" const.
1532 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
1533 (enumerate_locals, enumerate_args): Update.
1534 * python/py-symtab.c (stpy_global_block): Make "block" const.
1535 (stpy_static_block): Likewise.
1536 * inline-frame.c (block_starting_point_at): Make "new_block"
1537 const.
1538 * block.c (find_block_in_blockvector): Make return type const.
1539 (blockvector_for_pc_sect): Make "b" const.
1540 (find_block_in_blockvector): Make "b" const.
1541
1542 2019-03-23 Tom Tromey <tom@tromey.com>
1543
1544 * varobj.c (varobj_create): Update.
1545 * symfile.c (clear_symtab_users): Don't reset innermost_block.
1546 * printcmd.c (display_command, do_one_display): Don't reset
1547 innermost_block.
1548 * parser-defs.h (enum innermost_block_tracker_type): Move to
1549 expression.h.
1550 (innermost_block): Update comment.
1551 * parse.c (parse_exp_1): Add tracker_types parameter.
1552 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
1553 tracker_types parameter. Reset innermost_block.
1554 (parse_exp_in_context): Remove.
1555 (parse_expression_for_completion): Update.
1556 * objfiles.c (~objfile): Don't reset expression_context_block or
1557 innermost_block.
1558 * expression.h (enum innermost_block_tracker_type): Move from
1559 parser-defs.h.
1560 (parse_exp_1): Add tracker_types parameter.
1561 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
1562 reset innermost_block.
1563
1564 2019-03-23 Tom Tromey <tom@tromey.com>
1565
1566 * objfiles.h: Include bcache.h.
1567
1568 2019-03-23 Tom Tromey <tom@tromey.com>
1569
1570 * linespec.c (get_current_search_block): Use
1571 scoped_restore_current_language.
1572 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
1573
1574 2019-03-22 Alan Hayward <alan.hayward@arm.com>
1575 Jiong Wang <jiong.wang@arm.com>
1576
1577 * aarch64-linux-tdep.c
1578 (aarch64_linux_iterate_over_regset_sections): Check for pauth
1579 section.
1580 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
1581
1582 2019-03-22 Alan Hayward <alan.hayward@arm.com>
1583 Jiong Wang <jiong.wang@arm.com>
1584
1585 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
1586 instructions.
1587 (aarch64_analyze_prologue_test): Add PACIASP test.
1588 (aarch64_prologue_prev_register): Unmask PC value.
1589
1590 2019-03-22 Alan Hayward <alan.hayward@arm.com>
1591 Jiong Wang <jiong.wang@arm.com>
1592
1593 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
1594 (aarch64_dwarf2_prev_register): Unmask PC value.
1595 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
1596 (aarch64_execute_dwarf_cfa_vendor_op): Check for
1597 DW_CFA_AARCH64_negate_ra_state.
1598 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
1599
1600 2019-03-22 Alan Hayward <alan.hayward@arm.com>
1601 Jiong Wang <jiong.wang@arm.com>
1602
1603 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
1604 registers.
1605 (aarch64_pseudo_register_name): Likewise.
1606 (aarch64_pseudo_register_type): Likewise.
1607 (aarch64_pseudo_register_reggroup_p): Likewise.
1608 (aarch64_gdbarch_init): Add pauth registers.
1609 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
1610 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
1611 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
1612 (struct gdbarch_tdep): Add regnum for ra_state.
1613
1614 2019-03-22 Alan Hayward <alan.hayward@arm.com>
1615 Jiong Wang <jiong.wang@arm.com>
1616
1617 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
1618
1619 2019-03-22 Alan Hayward <alan.hayward@arm.com>
1620 Jiong Wang <jiong.wang@arm.com>
1621
1622 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
1623 function.
1624 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
1625 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
1626 (aarch64_gdbarch_init): Add puth registers.
1627 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
1628 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
1629 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
1630
1631 2019-03-22 Alan Hayward <alan.hayward@arm.com>
1632 Jiong Wang <jiong.wang@arm.com>
1633
1634 * aarch64-linux-nat.c
1635 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
1636 * aarch64-linux-tdep.c
1637 (aarch64_linux_core_read_description): Likewise.
1638 (aarch64_linux_get_hwcap): New function.
1639 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
1640 (aarch64_linux_get_hwcap): New declaration.
1641
1642 2019-03-22 Alan Hayward <alan.hayward@arm.com>
1643 Jiong Wang <jiong.wang@arm.com>
1644
1645 * aarch64-linux-nat.c
1646 (aarch64_linux_nat_target::read_description): Add pauth param.
1647 * aarch64-linux-tdep.c
1648 (aarch64_linux_core_read_description): Likewise.
1649 * aarch64-tdep.c (struct target_desc): Add in pauth.
1650 (aarch64_read_description): Add pauth param.
1651 (aarch64_gdbarch_init): Likewise.
1652 * aarch64-tdep.h (aarch64_read_description): Likewise.
1653 * arch/aarch64.c (aarch64_create_target_description): Likewise.
1654 * arch/aarch64.h (aarch64_create_target_description): Likewise.
1655 * features/Makefile: Add new files.
1656 * features/aarch64-pauth.c: New file.
1657 * features/aarch64-pauth.xml: New file.
1658
1659 2019-03-20 Tom Tromey <tromey@adacore.com>
1660
1661 * infrun.c (handle_inferior_event): Rename from
1662 handle_inferior_event_1. Create a scoped_value_mark.
1663 (handle_inferior_event): Remove.
1664
1665 2019-03-19 Tom Tromey <tromey@adacore.com>
1666
1667 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
1668 * infrun.h (print_stop_event): Add "displays" parameter.
1669 * infrun.c (print_stop_event): Add "displays" parameter.
1670
1671 2019-03-19 Pedro Alves <palves@redhat.com>
1672
1673 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
1674 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
1675 to -1. Fix TABs vs spaces.
1676 (tui_ui_out::tui_ui_out): Don't initialize fields here.
1677 * tui/tui-out.h (tui_ui_out) Add intro comments.
1678 <m_line, m_start_of_line>: In-class initialize, and add describing
1679 comment.
1680
1681 2019-03-18 Alan Hayward <alan.hayward@arm.com>
1682
1683 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
1684 variable names.
1685 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
1686
1687 2019-03-18 Pedro Alves <palves@redhat.com>
1688 Eli Zaretskii <eliz@gnu.org>
1689
1690 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
1691 m_line and m_start_of_line.
1692
1693 2019-03-18 Eli Zaretskii <eliz@gnu.org>
1694
1695 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
1696 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
1697 it returns a newline. This fixes a regression in TU mode, whereby
1698 the next line is output on the same screen line as the user input.
1699
1700 2019-03-18 Tom Tromey <tromey@adacore.com>
1701
1702 * minsyms.c (minimal_symbol_reader::install): Remove call to
1703 obstack_blank.
1704
1705 2019-03-18 Pedro Alves <palves@redhat.com>
1706
1707 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
1708 New globals.
1709 (apply_style): New, factored out from ...
1710 (apply_ansi_escape): ... this. Handle reverse video mode.
1711 (tui_set_reverse_mode): New function.
1712 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
1713 * tui/tui-winsource.c (tui_show_source_line): Use
1714 tui_set_reverse_mode instead of setting A_STANDOUT.
1715 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
1716 New setter methods.
1717
1718 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
1719
1720 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
1721 Handle tabs.
1722
1723 2019-03-18 Tom Tromey <tromey@adacore.com>
1724
1725 * ada-lang.c (empty_array): Add "high" parameter.
1726 (ada_evaluate_subexp): Update.
1727
1728 2019-03-17 Sergei Trofimovich <siarheit@google.com>
1729
1730 * unittests/string_view-selftests.c: Define
1731 _initialize_string_view_selftests unconditionally.
1732
1733 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
1734
1735 PR gdb/24350
1736 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
1737
1738 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
1739
1740 PR gdb/24351
1741 * windows-nat.c (display_selector): Fix format specifiers.
1742
1743 2019-03-17 Eli Zaretskii <eliz@gnu.org>
1744
1745 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
1746 tui_refill_source_window instead of tui_refresh_win, to update the
1747 current execution line. This fixes redisplay of the current line
1748 when stepping through the code with "next" or "step".
1749
1750 2019-03-16 Eli Zaretskii <eliz@gnu.org>
1751
1752 * source-cache.c (source_cache::get_source_lines): Call
1753 find_source_lines to initialize s->nlines. This fixes vertical
1754 scrolling of TUI source window when the DOWN arrow is pressed.
1755
1756 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1757
1758 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
1759 linux-thread-db.c (_initialize_thread_db): Likewise.
1760
1761 2019-03-16 Eli Zaretskii <eliz@gnu.org>
1762
1763 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
1764 wclrtoeol in tui_show_source_line". This reverts changes made in
1765 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
1766
1767 2019-03-15 Tom Tromey <tom@tromey.com>
1768
1769 * symtab.h (struct minimal_symbol): Derive from
1770 general_symbol_info.
1771 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
1772 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
1773 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
1774 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
1775 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
1776 (MSYMBOL_SEARCH_NAME): Update.
1777 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
1778 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
1779 * minsyms.c (minimal_symbol_reader::record_full): Update.
1780
1781 2019-03-15 Tom Tromey <tom@tromey.com>
1782
1783 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
1784
1785 2019-03-15 Tom Tromey <tom@tromey.com>
1786
1787 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
1788 unique_xmalloc_ptr.
1789 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
1790 Update.
1791 * minsyms.c (lookup_minimal_symbol_by_pc_section)
1792 (build_minimal_symbol_hash_tables)
1793 (minimal_symbol_reader::install): Update.
1794
1795 2019-03-15 Tom Tromey <tom@tromey.com>
1796
1797 * symtab.c (create_demangled_names_hash): Update.
1798 (symbol_set_names): Update.
1799 * objfiles.h (struct objfile_per_bfd_storage)
1800 <demangled_names_hash>: Now an htab_up.
1801 * objfiles.c (objfile_per_bfd_storage): Simplify.
1802
1803 2019-03-15 Tom Tromey <tom@tromey.com>
1804
1805 * objfiles.h (struct objfile_per_bfd_storage): Declare
1806 destructor.
1807 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
1808 New.
1809 (get_objfile_bfd_data): Use new. Don't initialize
1810 language_of_main.
1811 (free_objfile_per_bfd_storage): Remove.
1812 (objfile_bfd_data_free, objfile::~objfile): Use delete.
1813
1814 2019-03-15 Tom Tromey <tom@tromey.com>
1815
1816 * symfile.c (reread_symbols): Update.
1817 * objfiles.c (objfile::objfile): Update.
1818 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
1819 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
1820 comment.
1821 (minimal_symbol_reader::install): Update.
1822 (terminate_minimal_symbol_table): Remove.
1823 * jit.c (jit_object_close_impl): Update.
1824
1825 2019-03-15 Tom Tromey <tom@tromey.com>
1826
1827 * minsyms.c (minimal_symbol_reader::record_full): Remove some
1828 initializations.
1829
1830 2019-03-15 Tom Tromey <tom@tromey.com>
1831
1832 * objfiles.h (struct objfile_per_bfd_storage)
1833 <demangled_hash_languages>: Now a bitset.
1834 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
1835 (lookup_minimal_symbol): Update.
1836
1837 2019-03-15 Tom Tromey <tom@tromey.com>
1838
1839 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
1840 Don't return the symbol.
1841 * coffread.c (record_minimal_symbol): Use record_full.
1842
1843 2019-03-14 Eli Zaretskii <eliz@gnu.org>
1844
1845 The MS-Windows port of ncurses fails to switch to a color pair if
1846 one or both of the colors are the implicit default colors. This
1847 change records the default colors when TUI is initialized, and
1848 then specifies them explicitly when a color pair uses the default
1849 colors. This allows color styling in TUI mode on MS-Windows.
1850
1851 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
1852 ncurses_norm_attr.
1853 (tui_initialize_io) [__MINGW32__]: Record the default terminal
1854 colors in ncurses_norm_attr.
1855 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
1856 "none", replace it with the default color recorded in
1857 ncurses_norm_attr.
1858
1859 2019-03-14 Tom Tromey <tromey@adacore.com>
1860
1861 * source-cache.h (class source_cache) <get_source_lines>: Return
1862 std::string.
1863 * source-cache.c (source_cache::extract_lines): Handle case where
1864 first_pos==npos. Return std::string.
1865 (source_cache::get_source_lines): Update.
1866
1867 2019-03-14 Tom Tromey <tromey@adacore.com>
1868
1869 * NEWS: Add item for "style sources" commands.
1870 * source-cache.c (source_cache::get_source_lines): Check
1871 source_styling.
1872 * cli/cli-style.c (source_styling): New global.
1873 (_initialize_cli_style): Add "style sources" commands.
1874 (show_style_sources): New function.
1875 * cli/cli-style.h (source_styling): Declare.
1876
1877 2019-03-14 Pedro Alves <palves@redhat.com>
1878 Tom Tromey <tromey@adacore.com>
1879
1880 * tui/tui-winsource.h (tui_refill_source_window): Declare.
1881 * tui/tui-winsource.c (tui_refill_source_window): New function,
1882 from...
1883 (tui_horizontal_source_scroll): ... here. Move some logic.
1884 * cli/cli-style.c (set_style_enabled): Notify new observable.
1885 * tui/tui-hooks.c (tui_redisplay_source): New function.
1886 (tui_attach_detach_observers): Attach or detach
1887 tui_redisplay_source.
1888 * observable.h (source_styling_changed): New observable.
1889 * observable.c: Define source_styling_changed observable.
1890
1891 2019-03-13 Tom Tromey <tromey@adacore.com>
1892
1893 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
1894 (i386_gnu_nat_target::store_registers): Update.
1895 * target-debug.h (target_debug_print_std_string): New macro.
1896 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
1897 * windows-tdep.c (display_one_tib): Update.
1898 * tui/tui-stack.c (tui_make_status_line): Update.
1899 * top.c (print_inferior_quit_action): Update.
1900 * thread.c (thr_try_catch_cmd): Update.
1901 (add_thread_with_info): Update.
1902 (thread_target_id_str): Update.
1903 (thr_try_catch_cmd): Update.
1904 (thread_command): Update.
1905 (thread_find_command): Update.
1906 * record-btrace.c (record_btrace_target::info_record)
1907 (record_btrace_resume_thread, record_btrace_target::resume)
1908 (record_btrace_cancel_resume, record_btrace_step_thread)
1909 (record_btrace_target::wait, record_btrace_target::wait)
1910 (record_btrace_target::wait, record_btrace_target::stop): Update.
1911 * progspace.c (print_program_space): Update.
1912 * process-stratum-target.c
1913 (process_stratum_target::thread_address_space): Update.
1914 * linux-fork.c (linux_fork_mourn_inferior)
1915 (detach_checkpoint_command, info_checkpoints_command)
1916 (linux_fork_context): Update.
1917 (linux_fork_detach): Update.
1918 (class scoped_switch_fork_info): Update.
1919 (delete_checkpoint_command): Update.
1920 * infrun.c (follow_fork_inferior): Update.
1921 (follow_fork_inferior): Update.
1922 (proceed_after_vfork_done): Update.
1923 (handle_vfork_child_exec_or_exit): Update.
1924 (follow_exec): Update.
1925 (displaced_step_prepare_throw): Update.
1926 (displaced_step_restore): Update.
1927 (start_step_over): Update.
1928 (resume_1): Update.
1929 (clear_proceed_status_thread): Update.
1930 (proceed): Update.
1931 (print_target_wait_results): Update.
1932 (do_target_wait): Update.
1933 (context_switch): Update.
1934 (stop_all_threads): Update.
1935 (restart_threads): Update.
1936 (finish_step_over): Update.
1937 (handle_signal_stop): Update.
1938 (switch_back_to_stepped_thread): Update.
1939 (keep_going_pass_signal): Update.
1940 (print_exited_reason): Update.
1941 (normal_stop): Update.
1942 * inferior.c (inferior_pid_to_str): Change return type.
1943 (print_selected_inferior): Update.
1944 (add_inferior): Update.
1945 (detach_inferior): Update.
1946 * dummy-frame.c (fprint_dummy_frames): Update.
1947 * dcache.c (dcache_info_1): Update.
1948 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
1949 (btrace_fetch, btrace_clear): Update.
1950 * linux-tdep.c (linux_core_pid_to_str): Change return type.
1951 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
1952 type.
1953 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
1954 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
1955 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
1956 * gdbarch.c, gdbarch.h: Rebuild.
1957 * gdbarch.sh (core_pid_to_str): Change return type.
1958 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
1959 return type.
1960 (windows_nat_target::pid_to_str): Change return type.
1961 (windows_delete_thread): Update.
1962 (windows_nat_target::attach): Update.
1963 (windows_nat_target::files_info): Update.
1964 * target-delegates.c: Rebuild.
1965 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
1966 return type.
1967 (sol_thread_target::pid_to_str): Change return type.
1968 * remote.c (class remote_target) <pid_to_str>: Change return
1969 type.
1970 (remote_target::pid_to_str): Change return type.
1971 (extended_remote_target::attach, remote_target::remote_stop_ns)
1972 (remote_target::remote_notif_remove_queued_reply)
1973 (remote_target::push_stop_reply, remote_target::disable_btrace):
1974 Update.
1975 (extended_remote_target::attach): Update.
1976 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
1977 type.
1978 (gdbsim_target::pid_to_str): Change return type.
1979 * ravenscar-thread.c (struct ravenscar_thread_target)
1980 <pid_to_str>: Change return type.
1981 (ravenscar_thread_target::pid_to_str): Change return type.
1982 * procfs.c (class procfs_target) <pid_to_str>: Change return
1983 type.
1984 (procfs_target::pid_to_str): Change return type.
1985 (procfs_target::attach): Update.
1986 (procfs_target::detach): Update.
1987 (procfs_target::fetch_registers): Update.
1988 (procfs_target::store_registers): Update.
1989 (procfs_target::wait): Update.
1990 (procfs_target::files_info): Update.
1991 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
1992 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
1993 return type.
1994 (nto_procfs_target::pid_to_str): Change return type.
1995 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
1996 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
1997 return type.
1998 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
1999 (exit_lwp): Update.
2000 (attach_proc_task_lwp_callback, get_detach_signal)
2001 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
2002 (linux_nat_target::resume, wait_lwp, stop_callback)
2003 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
2004 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
2005 (linux_nat_wait_1, resume_stopped_resumed_lwps)
2006 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
2007 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
2008 type.
2009 (inf_ptrace_target::attach): Update.
2010 (inf_ptrace_target::files_info): Update.
2011 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
2012 type.
2013 (go32_nat_target::pid_to_str): Change return type.
2014 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
2015 (gnu_nat_target::wait): Update.
2016 (gnu_nat_target::wait): Update.
2017 (gnu_nat_target::resume): Update.
2018 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
2019 (fbsd_nat_target::wait): Update.
2020 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
2021 type.
2022 (darwin_nat_target::attach): Update.
2023 * corelow.c (class core_target) <pid_to_str>: Change return type.
2024 (core_target::pid_to_str): Change return type.
2025 * target.c (normal_pid_to_str): Change return type.
2026 (default_pid_to_str): Likewise.
2027 (target_pid_to_str): Change return type.
2028 (target_translate_tls_address): Update.
2029 (target_announce_detach): Update.
2030 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
2031 return type.
2032 (bsd_uthread_target::pid_to_str): Change return type.
2033 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
2034 type.
2035 (bsd_kvm_target::pid_to_str): Change return type.
2036 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
2037 return type.
2038 (aix_thread_target::pid_to_str): Change return type.
2039 * target.h (struct target_ops) <pid_to_str>: Change return type.
2040 (target_pid_to_str, normal_pid_to_str): Likewise.
2041 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
2042 type.
2043 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
2044 type.
2045 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
2046 return type.
2047 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
2048 type.
2049 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
2050 type.
2051 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
2052 return type.
2053
2054 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
2055
2056 * NEWS: Mention that the new default MI version is 3. Mention
2057 changes to the output of commands and events that deal with
2058 multi-location breakpoints.
2059 * breakpoint.c: Include "mi/mi-out.h".
2060 (print_one_breakpoint): Change output syntax if using MI version
2061 >= 3.
2062 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
2063 New.
2064 (mi_multi_location_breakpoint_output_fixed): New.
2065 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
2066 (mi_cmd_fix_multi_location_breakpoint_output): New.
2067 (mi_multi_location_breakpoint_output_fixed): New.
2068 * mi/mi-cmds.c (mi_cmds): Register command
2069 -fix-multi-location-breakpoint-output.
2070 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
2071 interpreter "mi".
2072
2073 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
2074
2075 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
2076 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
2077 instantiate mi_ui_out based on interpreter name.
2078 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
2079 * mi/mi-main.c (mi_load_progress): Likewise.
2080
2081 2019-03-12 John Baldwin <jhb@FreeBSD.org>
2082
2083 * NEWS: Combine separate "New targets" sections for 8.3.
2084
2085 2019-03-12 John Baldwin <jhb@FreeBSD.org>
2086
2087 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
2088 (ppcfbsd_init_abi): Install gdbarch
2089 "fetch_tls_load_module_address" and "get_thread_local_address"
2090 methods.
2091
2092 2019-03-12 John Baldwin <jhb@FreeBSD.org>
2093
2094 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
2095 (riscv_fbsd_init_abi): Install gdbarch
2096 "fetch_tls_load_module_address" and "get_thread_local_address"
2097 methods.
2098
2099 2019-03-12 John Baldwin <jhb@FreeBSD.org>
2100
2101 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
2102 (i386fbsd_init_abi): Install gdbarch
2103 "fetch_tls_load_module_address" and "get_thread_local_address"
2104 methods.
2105
2106 2019-03-12 John Baldwin <jhb@FreeBSD.org>
2107
2108 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
2109 (amd64fbsd_init_abi): Install gdbarch
2110 "fetch_tls_load_module_address" and "get_thread_local_address"
2111 methods.
2112
2113 2019-03-12 John Baldwin <jhb@FreeBSD.org>
2114
2115 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
2116 (struct fbsd_pspace_data): New type.
2117 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
2118 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
2119 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
2120 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
2121 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
2122
2123 2019-03-12 John Baldwin <jhb@FreeBSD.org>
2124
2125 * gdbtypes.c (lookup_struct_elt): New function.
2126 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
2127 * gdbtypes.h (struct struct_elt): New type.
2128 (lookup_struct_elt): New prototype.
2129
2130 2019-03-12 John Baldwin <jhb@FreeBSD.org>
2131
2132 * gdbtypes.c (lookup_struct_elt_type): Update comment and
2133 remove disabled code block.
2134
2135 2019-03-12 John Baldwin <jhb@FreeBSD.org>
2136
2137 * gdbarch.sh (get_thread_local_address): New method.
2138 * gdbarch.h, gdbarch.c: Regenerate.
2139 * target.c (target_translate_tls_address): Use
2140 gdbarch_get_thread_local_address if present instead of
2141 target::get_thread_local_address.
2142
2143 2019-03-12 John Baldwin <jhb@FreeBSD.org>
2144
2145 * target.h (target::get_thread_local_address): Update comment.
2146
2147 2019-03-12 John Baldwin <jhb@FreeBSD.org>
2148
2149 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
2150 objfile->separate_debug_objfile_backlink if not NULL.
2151
2152 2019-03-12 John Baldwin <jhb@FreeBSD.org>
2153
2154 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
2155 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
2156 (amd64bsd_store_inferior_registers): Likewise.
2157 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
2158 Enable segment base registers.
2159 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
2160 PT_GETFSBASE and PT_GETGSBASE.
2161 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
2162 PT_SETGSBASE.
2163 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
2164 segment base registers.
2165 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
2166
2167 2019-03-12 John Baldwin <jhb@FreeBSD.org>
2168
2169 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
2170 Update calls to i386_target_description to add 'segments'
2171 parameter.
2172 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
2173 add segment base registers.
2174 * arch/i386.c (i386_create_target_description): Add 'segments'
2175 parameter to enable segment base registers.
2176 * arch/i386.h (i386_create_target_description): Likewise.
2177 * features/i386/32bit-segments.xml: New file.
2178 * features/i386/32bit-segments.c: Generate.
2179 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
2180 call to i386_target_description to add 'segments' parameter.
2181 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
2182 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
2183 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
2184 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
2185 if feature is present.
2186 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
2187 Add 'segments' parameter to call to i386_target_description.
2188 (i386_target_description): Add 'segments' parameter to enable
2189 segment base registers.
2190 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
2191 to call to i386_target_description.
2192 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
2193 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
2194 Define I386_NUM_REGS.
2195 (i386_target_description): Add 'segments' parameter to enable
2196 segment base registers.
2197
2198 2019-03-12 Eli Zaretskii <eliz@gnu.org>
2199
2200 PR/24325
2201 * source-cache.c: #undef open and close, to avoid unresolved
2202 externals during linking.
2203
2204 2019-03-12 Tom Tromey <tromey@adacore.com>
2205
2206 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
2207 const. Add initializers.
2208 (_initialize_remote): Don't initialize ptid globals.
2209
2210 2019-03-12 Pedro Alves <palves@redhat.com>
2211
2212 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
2213
2214 2019-03-12 Pedro Alves <palves@redhat.com>
2215
2216 * cp-name-parser.y (main): Remove unused 'len' variable.
2217
2218 2019-03-12 Tom Tromey <tromey@adacore.com>
2219
2220 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
2221 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
2222
2223 2019-03-12 Tom Tromey <tromey@adacore.com>
2224
2225 * linux-nat.c (iterate_over_lwps): Update.
2226 (stop_callback): Remove parameter.
2227 (stop_wait_callback, detach_callback, resume_set_callback)
2228 (select_singlestep_lwp_callback, set_ignore_sigint)
2229 (status_callback, resumed_callback, resume_clear_callback)
2230 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
2231 data parameter.
2232 (linux_nat_target::detach, linux_nat_target::resume)
2233 (linux_stop_and_wait_all_lwps, select_event_lwp)
2234 (linux_nat_filter_event, linux_nat_wait_1)
2235 (linux_nat_target::kill, linux_nat_target::stop)
2236 (linux_nat_target::stop): Update.
2237 (linux_nat_resume_callback): Change type.
2238 (resume_stopped_resumed_lwps, count_events_callback)
2239 (select_event_lwp_callback): Likewise.
2240 (linux_stop_lwp, linux_nat_stop_lwp): Update.
2241 * arm-linux-nat.c (struct update_registers_data): Remove.
2242 (update_registers_callback): Change type.
2243 (arm_linux_insert_hw_breakpoint1): Update.
2244 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
2245 parameter.
2246 (x86_linux_dr_set_addr): Update.
2247 (x86_linux_dr_set_control): Update.
2248 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
2249 (iterate_over_lwps): Use gdb::function_view.
2250 * nat/aarch64-linux-hw-point.c (struct
2251 aarch64_dr_update_callback_param): Remove.
2252 (debug_reg_change_callback): Change type.
2253 (aarch64_notify_debug_reg_change): Update.
2254 * s390-linux-nat.c (s390_refresh_per_info): Update.
2255
2256 2019-03-11 Tom Tromey <tromey@adacore.com>
2257
2258 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
2259 redundant assignment to "this_cu".
2260
2261 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
2262
2263 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
2264
2265 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
2266
2267 * gdbtypes.c (rank_one_type_parm_set): New function extracted
2268 from...
2269 (rank_one_type): ... this.
2270
2271 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
2272
2273 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
2274 from...
2275 (rank_one_type): ... this.
2276
2277 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
2278
2279 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
2280 from...
2281 (rank_one_type): ... this.
2282
2283 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
2284
2285 * gdbtypes.c (rank_one_type_parm_float): New function extracted
2286 from...
2287 (rank_one_type): ... this.
2288
2289 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
2290
2291 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
2292 from...
2293 (rank_one_type): ... this.
2294
2295 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
2296
2297 * gdbtypes.c (rank_one_type_parm_range): New function extracted
2298 from...
2299 (rank_one_type): ... this.
2300
2301 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
2302
2303 * gdbtypes.c (rank_one_type_parm_char): New function extracted
2304 from...
2305 (rank_one_type): ... this.
2306
2307 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
2308
2309 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
2310 from...
2311 (rank_one_type): ... this.
2312
2313 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
2314
2315 * gdbtypes.c (rank_one_type_parm_int): New function extracted
2316 from...
2317 (rank_one_type): ... this.
2318
2319 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
2320
2321 * gdbtypes.c (rank_one_type_parm_func): New function extracted
2322 from...
2323 (rank_one_type): ... this.
2324
2325 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
2326
2327 * gdbtypes.c (rank_one_type_parm_array): New function extracted
2328 from...
2329 (rank_one_type): ... this.
2330
2331 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
2332
2333 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
2334 from...
2335 (rank_one_type): ... this.
2336
2337 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2338
2339 * inferior.c (initialize_inferiors): Ensure 'help set/show print
2340 inferior-events' shows the example events.
2341
2342 2019-03-08 Eli Zaretskii <eliz@gnu.org>
2343
2344 Support styling on native MS-Windows console
2345
2346 PR/24315
2347 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
2348 on MS-Windows if $TERM is not defined.
2349
2350 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
2351
2352 * posix-hdep.c (gdb_console_fputs):
2353 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
2354 functions.
2355 * ui-file.h (gdb_console_fputs): Add prototype.
2356
2357 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
2358 back to fputs only if the former returns zero.
2359
2360 2019-03-07 Tom Tromey <tom@tromey.com>
2361
2362 * symmisc.c (print_symbol_bcache_statistics): Update.
2363 (print_objfile_statistics): Update.
2364 * symfile.c (allocate_symtab): Update.
2365 * stabsread.c: Don't include bcache.h.
2366 * psymtab.h (struct psymbol_bcache): Don't declare.
2367 (class psymtab_storage) <psymbol_cache>: Now a bcache.
2368 (psymbol_bcache_init, psymbol_bcache_free)
2369 (psymbol_bcache_get_bcache): Don't declare.
2370 * psymtab.c (struct psymbol_bcache): Remove.
2371 (psymtab_storage::psymtab_storage): Update.
2372 (psymtab_storage::~psymtab_storage): Update.
2373 (psymbol_bcache_init, psymbol_bcache_free)
2374 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
2375 (add_psymbol_to_bcache): Update.
2376 (allocate_psymtab): Update.
2377 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
2378 macro_cache>: No longer pointers.
2379 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
2380 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
2381 * macrotab.c (macro_bcache): Update.
2382 * macroexp.c: Don't include bcache.h.
2383 * gdbtypes.c (check_types_worklist): Update.
2384 (types_deeply_equal): Remove TRY/CATCH. Update.
2385 * elfread.c (elf_symtab_read): Update.
2386 * dwarf2read.c: Don't include bcache.h.
2387 * buildsym.c (buildsym_compunit::get_macro_table): Update.
2388 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
2389 (print_bcache_statistics, bcache_memory_used): Don't declare.
2390 (struct bcache): Move from bcache.c. Add constructor, destructor,
2391 methods. Rename all data members.
2392 * bcache.c (struct bcache): Move to bcache.h.
2393 (bcache::expand_hash_table): Rename from expand_hash_table.
2394 (bcache): Remove.
2395 (bcache::insert): Rename from bcache_full.
2396 (bcache::compare): Rename from bcache_compare.
2397 (bcache_xmalloc): Remove.
2398 (bcache::~bcache): Rename from bcache_xfree.
2399 (bcache::print_statistics): Rename from print_bcache_statistics.
2400 (bcache::memory_used): Rename from bcache_memory_used.
2401
2402 2019-03-07 Pedro Alves <palves@redhat.com>
2403
2404 * infrun.c (normal_stop): Also check for
2405 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
2406
2407 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
2408
2409 * f-lang.c (value_from_host_double): Moved to...
2410 * value.c (value_from_host_double): ...here.
2411 * value.h (value_from_host_double): Declare.
2412 * guile/scm-math.c (vlscm_convert_typed_number): Use
2413 value_from_host_double.
2414 (vlscm_convert_number): Likewise.
2415 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
2416 * python/py-value.c (convert_value_from_python): Likewise.
2417
2418 2019-03-06 Tom Tromey <tom@tromey.com>
2419
2420 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
2421
2422 2019-03-06 Tom Tromey <tom@tromey.com>
2423
2424 * utils.h (free_current_contents): Don't declare.
2425 * utils.c (free_current_contents): Remove.
2426
2427 2019-03-06 Tom Tromey <tom@tromey.com>
2428
2429 * top.c (quit_force): Update.
2430 * main.c (captured_command_loop): Update.
2431 * common/new-op.c (operator new): Update.
2432 * common/common-exceptions.c (struct catcher)
2433 <save_cleanup_chain>: Remove member.
2434 (exceptions_state_mc_init): Update.
2435 (exception_try_scope_entry): Return nullptr.
2436 (exception_try_scope_exit, exception_rethrow)
2437 (throw_exception_sjlj, throw_exception_cxx): Update.
2438 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
2439 (all_cleanups, do_cleanups, discard_cleanups)
2440 (discard_final_cleanups, save_cleanups, save_final_cleanups)
2441 (restore_cleanups, restore_final_cleanups): Don't declare.
2442 (do_final_cleanups): Remove parameter.
2443 * common/cleanups.c (cleanup_chain, make_cleanup)
2444 (make_cleanup_dtor, all_cleanups, do_cleanups)
2445 (discard_my_cleanups, discard_cleanups)
2446 (discard_final_cleanups, save_my_cleanups, save_cleanups)
2447 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
2448 (null_cleanup): Remove.
2449 (do_final_cleanups): Remove parameter.
2450
2451 2019-03-06 Tom Tromey <tom@tromey.com>
2452
2453 * remote.c (remote_target::remote_parse_stop_reply): Use
2454 unique_xmalloc_ptr.
2455
2456 2019-03-06 Tom Tromey <tom@tromey.com>
2457
2458 * stabsread.c (struct stabs_field_info): Rename from field_info.
2459 <list, fnlist>: Add initializers.
2460 <obstack>: New member.
2461 (read_member_functions, read_struct_fields, read_baseclasses):
2462 Allocate on obstack. Don't use cleanups.
2463 (read_one_struct_field, read_member_functions, read_struct_fields)
2464 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
2465 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
2466 (read_struct_type): Update.
2467
2468 2019-03-06 Tom Tromey <tom@tromey.com>
2469
2470 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
2471 * common/filestuff.h (make_cleanup_close): Don't declare.
2472 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
2473 Remove.
2474
2475 2019-03-06 Tom Tromey <tom@tromey.com>
2476
2477 * solib-aix.c: Use make_scope_exit.
2478
2479 2019-03-06 Tom Tromey <tom@tromey.com>
2480
2481 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
2482 Use make_scope_exit.
2483
2484 2019-03-06 Tom Tromey <tom@tromey.com>
2485
2486 * solib-svr4.c (disable_probes_interface): Remove parameter.
2487 (svr4_handle_solib_event): Use make_scope_exit.
2488
2489 2019-03-06 Tom Tromey <tom@tromey.com>
2490
2491 * remote.c (struct stop_reply_deleter): Remove.
2492 (stop_reply_up): Update.
2493 (struct stop_reply): Derive from notif_event. Don't typedef.
2494 <regcache>: Now a std::vector.
2495 (stop_reply_xfree): Remove.
2496 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
2497 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
2498 (remote_target::discard_pending_stop_replies): Use delete.
2499 (remote_target::remote_parse_stop_reply): Update.
2500 (remote_target::process_stop_reply): Update.
2501 * remote-notif.h (struct notif_event): Add virtual destructor.
2502 Remove "dtr" member.
2503 (struct notif_client) <alloc_event>: Return a unique_ptr.
2504 (notif_event_xfree): Don't declare.
2505 (notif_event_up): New typedef.
2506 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
2507 (notif_event_xfree, do_notif_event_xfree): Remove.
2508 (remote_notif_state_xfree): Update.
2509
2510 2019-03-06 Tom Tromey <tom@tromey.com>
2511
2512 * infrun.c (displaced_step_clear_cleanup): Now a
2513 forward_scope_exit type.
2514 (displaced_step_prepare_throw): Update.
2515 (displaced_step_fixup): Update.
2516
2517 2019-03-06 Tom Tromey <tom@tromey.com>
2518
2519 * inferior.h (class inferior): Update comment.
2520 * gdbthread.h (class thread_info): Update comment.
2521
2522 2019-03-06 Joel Brobecker <brobecker@adacore.com>
2523 Tom Tromey <tom@tromey.com>
2524
2525 * stabsread.h (struct stab_section_list): Remove.
2526 (coffstab_build_psymtabs): Update.
2527 * dbxread.c (symbuf_sections): Now a std::vector.
2528 (sect_idx): New global.
2529 (fill_symbuf): Update.
2530 (coffstab_build_psymtabs): Change type of stabsects parameter.
2531 Update.
2532 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
2533 std::vector.
2534 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
2535 (coff_locate_sections): Update.
2536 (coff_symfile_read): Remove cleanups. Update.
2537 (init_stringtab): Add storage parameter.
2538 (free_stringtab, free_stringtab_cleanup): Remove.
2539 (init_lineno): Add storage parameter.
2540 (free_linetab, free_linetab_cleanup): Remove.
2541
2542 2019-03-06 Pedro Alves <palves@redhat.com>
2543
2544 * linux-fork.c (fork_info::clobber_regs): Delete.
2545 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
2546 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
2547 comment. Adjust.
2548 (scoped_switch_fork_info::scoped_switch_fork_info)
2549 (checkpoint_command, linux_fork_context): Adjust
2550 fork_save_infrun_state calls.
2551
2552 2019-03-06 Pedro Alves <palves@redhat.com>
2553
2554 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
2555 (inf_has_multiple_threads): Return 'bool' and rewrite using
2556 inferior_info::threads().
2557
2558 2019-03-06 Pedro Alves <palves@redhat.com>
2559
2560 * linux-fork.c: Include <list>.
2561 (fork_list): Now a std::list instance.
2562 (fork_info): Add ctor, dtor, and in-class initialize all fields.
2563 (forks_exist_p, find_last_fork): Adjust.
2564 (new_fork): Delete.
2565 (one_fork_p): New.
2566 (add_fork): Adjust.
2567 (free_fork): Delete, folded into fork_info::~fork_info().
2568 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
2569 Adjust.
2570 (init_fork_list): Delete.
2571 (linux_fork_killall, linux_fork_mourn_inferior)
2572 (linux_fork_detach, info_checkpoints_command): Adjust.
2573 (_initialize_linux_fork): No longer call init_fork_list.
2574
2575 2019-03-06 Pedro Alves <palves@redhat.com>
2576
2577 * linux-fork.c (new_fork): New, split out of ...
2578 (add_fork): ... this. Return void. Move "first fork" special
2579 case from here, to ...
2580 (checkpoint_command): ... here.
2581 * linux-linux.h (add_fork): Return void.
2582
2583 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
2584
2585 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
2586
2587 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
2588 Chris January <chris.january@arm.com>
2589 David Lecomber <david.lecomber@arm.com>
2590
2591 * f-exp.y: New token, UNOP_INTRINSIC.
2592 (exp): New pattern using UNOP_INTRINSIC token.
2593 (f77_keywords): Add 'abs' keyword.
2594 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
2595 (value_from_host_double): New function.
2596 (evaluate_subexp_f): Support UNOP_ABS.
2597
2598 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
2599
2600 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
2601 types.
2602
2603 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
2604
2605 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
2606 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
2607 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
2608
2609 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
2610
2611 * f-exp.y (convert_to_kind_type): Handle more type kinds.
2612
2613 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
2614 Chris January <chris.january@arm.com>
2615
2616 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
2617 * f-exp.y: Define 'KIND' token.
2618 (exp): New pattern for KIND expressions.
2619 (ptype): Handle types with a kind extension.
2620 (direct_abs_decl): Extend to spot kind extensions.
2621 (f77_keywords): Add 'kind' to the list.
2622 (push_kind_type): New function.
2623 (convert_to_kind_type): New function.
2624 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
2625 * parse.c (operator_length_standard): Likewise.
2626 * parser-defs.h (enum type_pieces): Add tp_kind.
2627 * std-operator.def: Add UNOP_KIND.
2628
2629 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
2630
2631 * f-exp.y (f_parse): Set yydebug.
2632
2633 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
2634
2635 * f-lang.c (evaluate_subexp_f): New function.
2636 (exp_descriptor_f): New global.
2637 (f_language_defn): Use exp_descriptor_f instead of
2638 exp_descriptor_standard.
2639
2640 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
2641
2642 * f-exp.y (struct token): Add comments.
2643 (dot_ops): Remove uppercase versions and the end marker.
2644 (f77_keywords): Likewise.
2645 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
2646 entries in the dot_ops array are case insensitive, and use
2647 strncasecmp to compare strings. Also some whitespace cleanup in
2648 this area. Similar for the f77_keywords array, except entries in
2649 this list might be case sensitive.
2650
2651 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
2652
2653 * f-exp.y (struct f77_boolean_val): Add comments.
2654 (boolean_values): Remove uppercase versions, and end marker.
2655 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
2656 and use strncasecmp to achieve case insensitivity. Additionally,
2657 perform whitespace cleanup around this code.
2658
2659 2019-03-06 Tom Tromey <tromey@adacore.com>
2660
2661 * remote-sim.c (gdbsim_target_open): Use result of
2662 gdb_argv::release.
2663
2664 2019-03-06 Richard Bunt <richard.bunt@arm.com>
2665 Dirk Schubert <dirk.schubert@arm.com>
2666 Chris January <chris.january@arm.com>
2667
2668 * eval.c (evaluate_subexp_standard): Call Fortran argument
2669 wrapping logic.
2670 * f-lang.c (struct value): A value which can be passed into a
2671 Fortran function call.
2672 (fortran_argument_convert): Wrap Fortran arguments in a pointer
2673 where appropriate.
2674 (struct type): Value ready for a Fortran function call.
2675 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
2676 is needed.
2677 * f-lang.h (fortran_argument_convert): Declaration.
2678 (fortran_preserve_arg_pointer): Declaration.
2679 * infcall.c (value_arg_coerce): Call Fortran argument logic.
2680
2681 2019-03-05 Tom Tromey <tromey@adacore.com>
2682
2683 * python/py-prettyprint.c (print_string_repr): Remove #if.
2684 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
2685
2686 2019-03-05 Tom Tromey <tromey@adacore.com>
2687
2688 * target.c (the_dummy_target): Move later. Change type to
2689 "dummy_target".
2690 (initialize_targets): Don't initialize the_dummy_target.
2691
2692 2019-03-05 Tom Tromey <tromey@adacore.com>
2693
2694 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
2695 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
2696
2697 2019-03-05 Tom Tromey <tromey@adacore.com>
2698
2699 * windows-nat.c (windows_nat_target::attach)
2700 (windows_nat_target::detach): Don't call gdb_flush.
2701 * valprint.c (generic_val_print, val_print, val_print_string):
2702 Don't call gdb_flush.
2703 * utils.c (defaulted_query): Don't call gdb_flush.
2704 * typeprint.c (print_type_scalar): Don't call gdb_flush.
2705 * target.c (target_announce_detach): Don't call gdb_flush.
2706 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
2707 * remote.c (extended_remote_target::attach): Don't call
2708 gdb_flush.
2709 * procfs.c (procfs_target::detach): Don't call gdb_flush.
2710 * printcmd.c (do_examine): Don't call gdb_flush.
2711 (info_display_command): Don't call gdb_flush.
2712 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
2713 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
2714 * memattr.c (info_mem_command): Don't call gdb_flush.
2715 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
2716 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
2717 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
2718 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
2719 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
2720 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
2721 (gnu_nat_target::detach): Don't call gdb_flush.
2722 * f-valprint.c (f_val_print): Don't call gdb_flush.
2723 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
2724 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
2725 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
2726 gdb_flush.
2727 * c-valprint.c (c_val_print): Don't call gdb_flush.
2728 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
2729
2730 2019-03-05 Tom Tromey <tromey@adacore.com>
2731
2732 * varobj.c (update_dynamic_varobj_children): Update.
2733 (install_default_visualizer): Use reset, not release.
2734 * value.c (set_internalvar): Update.
2735 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
2736 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
2737 ATTRIBUTE_UNUSED_RESULT.
2738
2739 2019-03-05 Tom Tromey <tromey@adacore.com>
2740
2741 * remote.c (class scoped_remote_fd) <release>: Add
2742 ATTRIBUTE_UNUSED_RESULT.
2743
2744 2019-03-05 Tom Tromey <tromey@adacore.com>
2745
2746 * macroexp.c (struct macro_buffer) <release>: Add
2747 ATTRIBUTE_UNUSED_RESULT.
2748
2749 2019-03-05 Tom Tromey <tromey@adacore.com>
2750
2751 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
2752 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
2753 ATTRIBUTE_UNUSED_RESULT.
2754
2755 2019-03-05 Tom Tromey <tromey@adacore.com>
2756
2757 * common/scoped_fd.h (class scoped_fd) <release>: Add
2758 ATTRIBUTE_UNUSED_RESULT.
2759
2760 2019-03-05 Tom Tromey <tromey@adacore.com>
2761
2762 * parser-defs.h (struct parser_state) <release>: Add
2763 ATTRIBUTE_UNUSED_RESULT.
2764
2765 2019-03-05 Tom Tromey <tromey@adacore.com>
2766
2767 * utils.h (class gdb_argv) <release>: Add
2768 ATTRIBUTE_UNUSED_RESULT.
2769 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
2770
2771 2019-03-02 Eli Zaretskii <eliz@gnu.org>
2772
2773 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
2774 for-loop range, to avoid compiler warnings.
2775
2776 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
2777 avoid compiler warnings about unused variables.
2778
2779 * NEWS: Mention end of support for native debugging on MS-Windows
2780 before XP.
2781
2782 PR gdb/24292
2783 * common/netstuff.c:
2784 * gdbserver/gdbreplay.c
2785 * gdbserver/remote-utils.c:
2786 * ser-tcp.c:
2787 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
2788 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
2789 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
2790 'getaddrinfo' and 'freeaddrinfo' were not available before
2791 Windows XP, and mingw.org's MinGW headers by default define
2792 _WIN32_WINNT to 0x500.
2793
2794 2019-03-01 Gary Benson <gbenson@redhat.com>
2795
2796 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
2797
2798 2019-02-28 Brian Vandenberg <phantall@gmail.com>
2799 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2800
2801 PR gdb/8527
2802 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
2803 set_sigint_trap, clear_sigint_trap.
2804
2805 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2806
2807 * target.c (target_detach): Clear the regcache and the
2808 frame cache.
2809
2810 2019-02-27 Pedro Alves <palves@redhat.com>
2811
2812 * utils.c (set_screen_size): When we cap the height/width sizes,
2813 tweak the corresponding command variable to show "unlimited":
2814
2815 2019-02-27 Saagar Jha <saagar@saagarjha.com>
2816 Pedro Alves <palves@redhat.com>
2817
2818 * utils.c (set_screen_size): Reduce "infinite" rows and columns
2819 before calling rl_set_screen_size.
2820
2821 2019-02-27 Tom Tromey <tromey@adacore.com>
2822
2823 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
2824 define.
2825 * python/py-value.c: Remove Python 2.4 workaround.
2826 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
2827 workaround.
2828 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
2829 Python 2.4 workaround.
2830 * python/python-internal.h: Remove Python 2.4 comment.
2831 (Py_ssize_t): Don't define.
2832 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
2833 (gdb_Py_DECREF): Remove Python 2.4 workaround.
2834 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
2835 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
2836 * python/python.c (do_start_initialization): Remove Python 2.4
2837 workaround.
2838 * python/py-prettyprint.c (class dummy_python_frame): Remove.
2839 (print_children): Remove Python 2.4 workaround.
2840 * python/py-inferior.c (buffer_procs): Remove Python 2.4
2841 workaround.
2842 (CHARBUFFERPROC_NAME): Remove.
2843 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
2844 Python 2.4 workaround.
2845
2846 2019-02-27 Kevin Buettner <kevinb@redhat.com>
2847
2848 * NEWS: Note minimum Python version.
2849
2850 2019-02-27 Kevin Buettner <kevinb@redhat.com>
2851
2852 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
2853 code from these functions. Remove corresponding ifdefs. Use
2854 Py_buffer_up instead of explicit calls to PyBuffer_Release.
2855 Remove gotos and target of gotos.
2856 (infpy_search_memory): Likewise.
2857
2858 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
2859
2860 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
2861 (hppa_gdbarch_init): Don't register deleted functions with
2862 gdbarch.
2863
2864 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
2865
2866 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
2867 (h8300_unwind_sp): Delete.
2868 (h8300_dummy_id): Delete.
2869 (h8300_gdbarch_init): Don't register deleted functions with
2870 gdbarch.
2871
2872 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
2873
2874 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
2875 (ft32_unwind_pc): Delete.
2876 (ft32_unwind_sp): Delete.
2877 (ft32_gdbarch_init): Don't register deleted functions with
2878 gdbarch.
2879
2880 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
2881
2882 * gdb/frv-tdep.c (frv_dummy_id): Delete.
2883 (frv_unwind_pc): Delete.
2884 (frv_unwind_sp): Delete.
2885 (frv_gdbarch_init): Don't register deleted functions with
2886 gdbarch.
2887
2888 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
2889
2890 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
2891 (riscv_unwind_pc): Delete.
2892 (riscv_unwind_sp): Delete.
2893 (riscv_gdbarch_init): Don't register deleted functions with
2894 gdbarch.
2895
2896 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
2897
2898 * gdb/csky-tdep.c (csky_dummy_id): Delete.
2899 (csky_unwind_pc): Delete.
2900 (csky_unwind_sp): Delete.
2901 (csky_gdbarch_init): Don't register deleted functions with
2902 gdbarch.
2903
2904 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
2905
2906 * gdb/cris-tdep.c (cris_dummy_id): Delete.
2907 (cris_unwind_pc): Delete.
2908 (cris_unwind_sp): Delete.
2909 (cris_gdbarch_init): Don't register deleted functions with
2910 gdbarch.
2911
2912 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
2913
2914 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
2915 (bfin_unwind_pc): Delete.
2916 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
2917
2918 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
2919
2920 * gdb/arm-tdep.c (arm_dummy_id): Delete.
2921 (arm_unwind_pc): Delete.
2922 (arm_unwind_sp): Delete.
2923 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
2924
2925 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
2926
2927 * gdb/arc-tdep.c (arc_dummy_id): Delete.
2928 (arc_unwind_pc): Delete.
2929 (arc_unwind_sp): Delete.
2930 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
2931
2932 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
2933
2934 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
2935 (alpha_unwind_pc): Delete.
2936 (alpha_gdbarch_init): Don't register deleted functions with
2937 gdbarch.
2938
2939 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
2940
2941 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
2942 (aarch64_unwind_pc): Delete.
2943 (aarch64_unwind_sp): Delete.
2944 (aarch64_gdbarch_init): Don't register deleted functions with
2945 gdbarch.
2946
2947 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
2948
2949 * gdbtypes.c (type_align): Don't consider static members when
2950 computing structure alignment.
2951
2952 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
2953
2954 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
2955 return 0 for other types.
2956 * arch-utils.c (default_type_align): Always return 0.
2957 * gdbarch.h: Regenerate.
2958 * gdbarch.sh (type_align): Extend comment.
2959 * gdbtypes.c (type_align): Add additional comments, always call
2960 gdbarch_type_align before applying the default rules.
2961 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
2962 generic code will then apply a suitable default.
2963 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
2964 types, return 0 for other types.
2965
2966 2019-02-27 Joel Brobecker <brobecker@adacore.com>
2967
2968 * NEWS: Create a new section for the next release branch.
2969 Rename the section of the current branch, now that it has
2970 been cut.
2971
2972 2019-02-27 Joel Brobecker <brobecker@adacore.com>
2973
2974 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
2975 * version.in: Bump version to 8.3.50.DATE-git.
2976
2977 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
2978
2979 * aix-thread.c (ptid_cmp): Remove unused variable.
2980 (get_signaled_thread): Likewise.
2981 (store_regs_user_thread): Likewise.
2982 (store_regs_kernel_thread): Likewise.
2983 (fetch_regs_kernel_thread): Remove shadowed variable.
2984
2985 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
2986
2987 * features/riscv/32bit-cpu.xml: Add register numbers.
2988 * features/riscv/32bit-fpu.c: Regenerate.
2989 * features/riscv/32bit-fpu.xml: Add register numbers.
2990 * features/riscv/64bit-cpu.xml: Add register numbers.
2991 * features/riscv/64bit-fpu.c: Regenerate.
2992 * features/riscv/64bit-fpu.xml: Add register numbers.
2993
2994 2019-02-26 Kevin Buettner <kevinb@redhat.com>
2995
2996 * NEWS: Mention two argument form of gdb.Value constructor.
2997 * python/py-value.c (convert_buffer_and_type_to_value): New
2998 function.
2999 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
3000 Add support for handling an optional second argument. Call
3001 convert_buffer_and_type_to_value as appropriate.
3002 * python/python-internal.h (Py_buffer_deleter): New struct.
3003 (Py_buffer_up): New typedef.
3004
3005 2019-02-25 John Baldwin <jhb@FreeBSD.org>
3006
3007 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
3008 instead of releasing ownership.
3009
3010 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
3011
3012 * dwarf2read.c (open_and_init_dwp_file): Call
3013 elf_numsections instead of bfd_count_sections to initialize
3014 dwp_file->num_sections.
3015
3016 2019-02-25 Tom Tromey <tromey@adacore.com>
3017
3018 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
3019
3020 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
3021
3022 * gcore.in: Add '--readnever' option when invoking GDB.
3023
3024 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
3025
3026 * MAINTAINERS: Update my email address.
3027
3028 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
3029
3030 * build-id.c (build_id_to_debug_bfd_1): New function.
3031 (build_id_to_debug_bfd): Look for separate debug file in
3032 sysroot.
3033
3034 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
3035
3036 * gdbarch.sh: Update the copyright year range that is placed into
3037 generated files.
3038
3039 2019-02-22 Keith Seitz <keiths@redhat.com>
3040
3041 PR symtab/23853
3042 * linespec.c (create_sals_line_offset): Search for the default
3043 symtab's filename instead of its fullname.
3044
3045 2019-02-21 Alan Hayward <alan.hayward@arm.com>
3046
3047 * NEWS: Update style defaults.
3048
3049 2019-02-21 Alan Hayward <alan.hayward@arm.com>
3050
3051 * main.c (captured_main_1): Disable styling in batch mode.
3052
3053 2019-02-20 Tom Tromey <tom@tromey.com>
3054
3055 * symtab.c (symtab_symbol_info): Fix typos.
3056
3057 2019-02-20 Tom Tromey <tromey@adacore.com>
3058
3059 * findcmd.c (_initialize_mem_search): Use upper case for
3060 metasyntactic variables.
3061
3062 2019-02-20 Alan Hayward <alan.hayward@arm.com>
3063
3064 * aarch64-tdep.c (aarch64_add_reggroups): New function.
3065 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
3066
3067 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
3068
3069 * top.h (source_file_name): Change to std::string.
3070 * top.c (source_file_name): Likewise.
3071 (command_line_input): Adjust.
3072 * cli/cli-script.c (script_from_file): Adjust.
3073
3074 2019-02-19 Tom Tromey <tromey@adacore.com>
3075
3076 * ravenscar-thread.c
3077 (ravenscar_thread_target::update_thread_list): Don't call
3078 ada_build_task_list.
3079 * ada-lang.h (ada_build_task_list): Don't declare.
3080 * ada-tasks.c (struct ada_tasks_inferior_data)
3081 <task_list_valid_p>: Now bool.
3082 (read_known_tasks, ada_task_list_changed)
3083 (ada_tasks_invalidate_inferior_data): Update.
3084 (read_known_tasks_array): Return bool.
3085 (read_known_tasks_list): Likewise.
3086 (read_known_tasks): Return void.
3087 (ada_build_task_list): Now static.
3088
3089 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
3090
3091 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
3092 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
3093
3094 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3095
3096 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
3097 variant for ada_tasks_pspace_data_handle and
3098 ada_tasks_inferior_data_handle.
3099 (ada_tasks_pspace_data_cleanup): New function.
3100 (ada_tasks_inferior_data_cleanup): New function.
3101
3102 2019-02-17 Tom Tromey <tom@tromey.com>
3103
3104 * macrotab.h (macro_source_fullname): Return a std::string.
3105 * macrotab.c (macro_include, check_for_redefinition)
3106 (macro_undef, macro_lookup_definition, foreach_macro)
3107 (foreach_macro_in_scope): Update.
3108 (macro_source_fullname): Return a std::string.
3109 * macrocmd.c (show_pp_source_pos): Update.
3110
3111 2019-02-17 Tom Tromey <tom@tromey.com>
3112
3113 * macrocmd.c (show_pp_source_pos): Style the file names.
3114
3115 2019-02-17 Tom Tromey <tom@tromey.com>
3116
3117 PR tui/24197:
3118 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
3119
3120 2019-02-17 Tom Tromey <tom@tromey.com>
3121
3122 * ada-lang.c (user_select_syms): Use filtered printing.
3123 * utils.c (wrap_style): New global.
3124 (desired_style): Remove.
3125 (emit_style_escape): Add stream parameter.
3126 (set_output_style, reset_terminal_style, prompt_for_continue):
3127 Update.
3128 (flush_wrap_buffer): Only flush gdb_stdout.
3129 (wrap_here): Set wrap_style.
3130 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
3131 treat escape sequences as a character. Change when wrap buffer is
3132 flushed.
3133 (fputs_styled): Do not set the output style when the default is
3134 requested.
3135 * ui-style.h (struct ui_file_style) <is_default>: New method.
3136 * source.c (print_source_lines_base): Emit escape sequences in one
3137 piece.
3138
3139 2019-02-17 Joel Brobecker <brobecker@adacore.com>
3140
3141 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
3142 integers and enumeration types.
3143
3144 2019-02-17 Joel Brobecker <brobecker@adacore.com>
3145
3146 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
3147 instead of lookup_symbol_in_language
3148 (do_exact_match): New function.
3149 (ada_get_symbol_name_matcher): Return do_exact_match when
3150 doing a verbatim match.
3151
3152 2019-02-15 Tom Tromey <tromey@adacore.com>
3153
3154 * ravenscar-thread.c (ravenscar_thread_target::resume)
3155 (ravenscar_thread_target::wait): Special case wildcard requests.
3156
3157 2019-02-15 Tom Tromey <tromey@adacore.com>
3158
3159 * ravenscar-thread.c (base_ptid): Remove.
3160 (struct ravenscar_thread_target) <close>: New method.
3161 <m_base_ptid>: New member.
3162 <update_inferior_ptid, active_task, task_is_currently_active,
3163 runtime_initialized>: Declare methods.
3164 <ravenscar_thread_target>: Add constructor.
3165 (ravenscar_thread_target::task_is_currently_active)
3166 (ravenscar_thread_target::update_inferior_ptid)
3167 (ravenscar_runtime_initialized): Rename. Now methods.
3168 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
3169 (ravenscar_thread_target::update_thread_list): Update.
3170 (ravenscar_thread_target::active_task): Now method.
3171 (ravenscar_thread_target::store_registers)
3172 (ravenscar_thread_target::prepare_to_store)
3173 (ravenscar_thread_target::prepare_to_store)
3174 (ravenscar_thread_target::mourn_inferior): Update.
3175 (ravenscar_inferior_created): Use "new" to create target.
3176 (ravenscar_thread_target::get_ada_task_ptid): Update.
3177 (_initialize_ravenscar): Don't initialize base_ptid.
3178 (ravenscar_ops): Remove global.
3179
3180 2019-02-15 Tom Tromey <tromey@adacore.com>
3181
3182 * target.h (push_target): Declare new overload.
3183 * target.c (push_target): New overload, taking an rvalue reference.
3184 * remote.c (remote_target::open_1): Use push_target overload.
3185 * corelow.c (core_target_open): Use push_target overload.
3186
3187 2019-02-15 Tom Tromey <tromey@adacore.com>
3188
3189 * ravenscar-thread.c (is_ravenscar_task)
3190 (ravenscar_task_is_currently_active): Return bool.
3191 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
3192 (_initialize_ravenscar): Remove "(void)".
3193 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
3194 Return bool.
3195
3196 2019-02-15 Tom Tromey <tromey@adacore.com>
3197
3198 * ravenscar-thread.c (ravenscar_runtime_initializer)
3199 (has_ravenscar_runtime, get_running_thread_id)
3200 (ravenscar_thread_target::resume): Fix indentation.
3201
3202 2019-02-15 Tom Tromey <tromey@adacore.com>
3203
3204 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
3205 from ravenscar_arch_ops.
3206 (sparc_ravenscar_ops::fetch_registers)
3207 (sparc_ravenscar_ops::store_registers): Now methods.
3208 (sparc_ravenscar_prepare_to_store): Remove.
3209 (sparc_ravenscar_ops): Redefine.
3210 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
3211 methods and destructor. Remove members.
3212 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
3213 (ravenscar_thread_target::store_registers)
3214 (ravenscar_thread_target::prepare_to_store): Update.
3215 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
3216 Remove.
3217 (struct ppc_ravenscar_powerpc_ops): Derive from
3218 ravenscar_arch_ops.
3219 (ppc_ravenscar_powerpc_ops::fetch_registers)
3220 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
3221 (ppc_ravenscar_powerpc_ops): Redefine.
3222 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
3223 (ppc_ravenscar_e500_ops::fetch_registers)
3224 (ppc_ravenscar_e500_ops::store_registers): Now methods.
3225 (ppc_ravenscar_e500_ops): Redefine.
3226 * aarch64-ravenscar-thread.c
3227 (aarch64_ravenscar_generic_prepare_to_store): Remove.
3228 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
3229 (aarch64_ravenscar_fetch_registers)
3230 (aarch64_ravenscar_store_registers): Now methods.
3231 (aarch64_ravenscar_ops): Redefine.
3232
3233 2019-02-15 Tom Tromey <tromey@adacore.com>
3234
3235 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
3236 (ravenscar_thread_target::stopped_by_hw_breakpoint)
3237 (ravenscar_thread_target::stopped_by_watchpoint)
3238 (ravenscar_thread_target::stopped_data_address)
3239 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
3240
3241 2019-02-15 Tom Tromey <tromey@adacore.com>
3242
3243 * ravenscar-thread.c: Fix some typos.
3244
3245 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3246 Tom Tromey <tromey@adacore.com>
3247
3248 * ada-lang.c (ada_exception_sal): Change addr_string to a
3249 std::string.
3250 (create_ada_exception_catchpoint): Update.
3251
3252 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3253 Tom Tromey <tromey@adacore.com>
3254
3255 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
3256 (bp_location_ops): Remove.
3257 (base_breakpoint_allocate_location): Update.
3258 (free_bp_location): Update.
3259 * ada-lang.c (class ada_catchpoint_location)
3260 <ada_catchpoint_location>: Remove ops parameter.
3261 (ada_catchpoint_location_dtor): Remove.
3262 (ada_catchpoint_location_ops): Remove.
3263 (allocate_location_exception): Update.
3264 * breakpoint.h (struct bp_location_ops): Remove.
3265 (class bp_location) <bp_location>: Remove bp_location_ops
3266 parameter.
3267 <~bp_location>: Add destructor.
3268 <ops>: Remove.
3269
3270 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
3271 Pedro Alves <palves@redhat.com>
3272
3273 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
3274 'PATH_MAX'.
3275
3276 2019-02-14 David Michael <fedora.dm0@gmail.com>
3277 Samuel Thibault <samuel.thibault@gnu.org>
3278 Thomas Schwinge <thomas@codesourcery.com>
3279
3280 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
3281 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
3282
3283 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
3284
3285 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
3286 (check_empty): Use "const char *".
3287
3288 * gnu-nat.c (gnu_nat_target::detach): Instead of
3289 'detach_inferior (pid)' call
3290 'detach_inferior (find_inferior_pid (pid))'.
3291
3292 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
3293 'nat/fork-inferior.o'.
3294 * gnu-nat.c: #include "nat/fork-inferior.h".
3295
3296 * gnu-nat.c (gnu_nat_target::detach): Instead of
3297 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
3298 * gnu-nat.h: #include "inf-child.h".
3299 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
3300 'i386_gnu_nat_target::fetch_registers'.
3301 (gnu_store_registers): Rename/move to
3302 'i386_gnu_nat_target::store_registers'.
3303
3304 * config/i386/nm-i386gnu.h: Don't "#include" any files.
3305 * gnu-nat.h (mach_thread_info): New function.
3306 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
3307
3308 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
3309
3310 2019-02-14 Frederic Konrad <konrad@adacore.com>
3311
3312 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
3313
3314 2019-02-14 Joel Brobecker <brobecker@adacore.com>
3315
3316 * windows-nat.c (windows_add_thread): Add new parameter
3317 "main_thread_p" with default value set to false. Update
3318 function documentation as well as all callers.
3319 (windows_delete_thread): Likewise.
3320 (fake_create_process): Update call to windows_add_thread.
3321 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
3322 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
3323 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
3324 call to windows_delete_thread.
3325
3326 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
3327
3328 * MAINTAINERS: Add Andrew Burgess as global maintainer.
3329
3330 2019-02-12 John Baldwin <jhb@FreeBSD.org>
3331
3332 * symfile.c (find_separate_debug_file): Use canonical path of
3333 sysroot with child_path instead of gdb_sysroot if it is valid.
3334
3335 2019-02-12 John Baldwin <jhb@FreeBSD.org>
3336
3337 * symfile.c (find_separate_debug_file): Use child_path to
3338 determine if an object file is under a sysroot.
3339
3340 2019-02-12 John Baldwin <jhb@FreeBSD.org>
3341
3342 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
3343 unittests/child-path-selftests.c.
3344 * common/pathstuff.c (child_path): New function.
3345 * common/pathstuff.h (child_path): New prototype.
3346 * unittests/child-path-selftests.c: New file.
3347
3348 2019-02-12 John Baldwin <jhb@FreeBSD.org>
3349
3350 * symfile.c (find_separate_debug_file): Look for separate debug
3351 files in debug directories under the sysroot.
3352
3353 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3354
3355 * symtab.h (struct minimal_symbol data_p): New const method.
3356 (struct minimal_symbol text_p): Likewise.
3357 * symtab.c (output_source_filename): Use file name style
3358 to print file name.
3359 (print_symbol_info): Likewise.
3360 (print_msymbol_info): Use address style to print addresses.
3361 Use function name style to print executable text symbols.
3362 (expand_symtab_containing_pc): Use data_p.
3363 (find_pc_sect_compunit_symtab): Likewise.
3364
3365 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3366
3367 * breakpoint.c (describe_other_breakpoints): Use address style
3368 to print addresses.
3369 (say_where): Likewise.
3370
3371 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3372
3373 * ada-typeprint.c (print_func_type): Print function name
3374 style to print function name.
3375 * c-typeprint.c (c_print_type_1): Likewise.
3376
3377 2019-02-11 Alan Hayward <alan.hayward@arm.com>
3378
3379 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
3380 for execve.
3381
3382 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3383
3384 * c-exp.y (direct_abs_decl): Use emplace_back to record the
3385 type_stack.
3386
3387 2019-02-10 Joel Brobecker <brobecker@adacore.com>
3388
3389 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
3390 TYPE_CODE_REF types.
3391
3392 2019-02-08 Jim Wilson <jimw@sifive.com>
3393
3394 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
3395 (riscv_linux_fregset): New.
3396 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
3397
3398 2019-02-07 Tom Tromey <tom@tromey.com>
3399
3400 * thread.c (thread_cancel_execution_command): Update.
3401 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
3402 methods.
3403 (struct thread_fsm_ops): Remove.
3404 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
3405 (thread_fsm_should_stop, thread_fsm_return_value)
3406 (thread_fsm_set_finished, thread_fsm_finished_p)
3407 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
3408 Don't declare.
3409 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
3410 * infrun.c (clear_proceed_status_thread)
3411 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
3412 (print_stop_event): Update.
3413 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
3414 Add constructor.
3415 (step_command_fsm_ops): Remove.
3416 (new_step_command_fsm): Remove.
3417 (step_1): Update.
3418 (step_command_fsm::should_stop): Rename from
3419 step_command_fsm_should_stop.
3420 (step_command_fsm::clean_up): Rename from
3421 step_command_fsm_clean_up.
3422 (step_command_fsm::do_async_reply_reason): Rename from
3423 step_command_fsm_async_reply_reason.
3424 (struct until_next_fsm): Inherit from thread_fsm. Add
3425 constructor.
3426 (until_next_fsm_ops): Remove.
3427 (new_until_next_fsm): Remove.
3428 (until_next_fsm::should_stop): Rename from
3429 until_next_fsm_should_stop.
3430 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
3431 (until_next_fsm::do_async_reply_reason): Rename from
3432 until_next_fsm_async_reply_reason.
3433 (struct finish_command_fsm): Inherit from thread_fsm. Add
3434 constructor. Change type of breakpoint.
3435 (finish_command_fsm_ops): Remove.
3436 (new_finish_command_fsm): Remove.
3437 (finish_command_fsm::should_stop): Rename from
3438 finish_command_fsm_should_stop.
3439 (finish_command_fsm::clean_up): Rename from
3440 finish_command_fsm_clean_up.
3441 (finish_command_fsm::return_value): Rename from
3442 finish_command_fsm_return_value.
3443 (finish_command_fsm::do_async_reply_reason): Rename from
3444 finish_command_fsm_async_reply_reason.
3445 (finish_command): Update.
3446 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
3447 Add constructor.
3448 (call_thread_fsm_ops): Remove.
3449 (call_thread_fsm::call_thread_fsm): Rename from
3450 new_call_thread_fsm.
3451 (call_thread_fsm::should_stop): Rename from
3452 call_thread_fsm_should_stop.
3453 (call_thread_fsm::should_notify_stop): Rename from
3454 call_thread_fsm_should_notify_stop.
3455 (run_inferior_call, call_function_by_hand_dummy): Update.
3456 * cli/cli-interp.c (should_print_stop_to_console): Update.
3457 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
3458 Add constructor. Change type of location_breakpoint,
3459 caller_breakpoint.
3460 (until_break_fsm_ops): Remove.
3461 (new_until_break_fsm): Remove.
3462 (until_break_fsm::should_stop): Rename from
3463 until_break_fsm_should_stop.
3464 (until_break_fsm::clean_up): Rename from
3465 until_break_fsm_clean_up.
3466 (until_break_fsm::do_async_reply_reason): Rename from
3467 until_break_fsm_async_reply_reason.
3468 (until_break_command): Update.
3469 * thread-fsm.c: Remove.
3470 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
3471
3472 2019-02-07 Tom Tromey <tom@tromey.com>
3473
3474 * yy-remap.h: Add include guard.
3475 * xtensa-tdep.h: Add include guard.
3476 * xcoffread.h: Rename include guard.
3477 * varobj-iter.h: Add include guard.
3478 * tui/tui.h: Rename include guard.
3479 * tui/tui-winsource.h: Rename include guard.
3480 * tui/tui-wingeneral.h: Rename include guard.
3481 * tui/tui-windata.h: Rename include guard.
3482 * tui/tui-win.h: Rename include guard.
3483 * tui/tui-stack.h: Rename include guard.
3484 * tui/tui-source.h: Rename include guard.
3485 * tui/tui-regs.h: Rename include guard.
3486 * tui/tui-out.h: Rename include guard.
3487 * tui/tui-layout.h: Rename include guard.
3488 * tui/tui-io.h: Rename include guard.
3489 * tui/tui-hooks.h: Rename include guard.
3490 * tui/tui-file.h: Rename include guard.
3491 * tui/tui-disasm.h: Rename include guard.
3492 * tui/tui-data.h: Rename include guard.
3493 * tui/tui-command.h: Rename include guard.
3494 * tic6x-tdep.h: Add include guard.
3495 * target/waitstatus.h: Rename include guard.
3496 * target/wait.h: Rename include guard.
3497 * target/target.h: Rename include guard.
3498 * target/resume.h: Rename include guard.
3499 * target-float.h: Rename include guard.
3500 * stabsread.h: Add include guard.
3501 * rs6000-tdep.h: Add include guard.
3502 * riscv-fbsd-tdep.h: Add include guard.
3503 * regformats/regdef.h: Rename include guard.
3504 * record.h: Rename include guard.
3505 * python/python.h: Rename include guard.
3506 * python/python-internal.h: Rename include guard.
3507 * python/py-stopevent.h: Rename include guard.
3508 * python/py-ref.h: Rename include guard.
3509 * python/py-record.h: Rename include guard.
3510 * python/py-record-full.h: Rename include guard.
3511 * python/py-record-btrace.h: Rename include guard.
3512 * python/py-instruction.h: Rename include guard.
3513 * python/py-events.h: Rename include guard.
3514 * python/py-event.h: Rename include guard.
3515 * procfs.h: Add include guard.
3516 * proc-utils.h: Add include guard.
3517 * p-lang.h: Add include guard.
3518 * or1k-tdep.h: Rename include guard.
3519 * observable.h: Rename include guard.
3520 * nto-tdep.h: Rename include guard.
3521 * nat/x86-linux.h: Rename include guard.
3522 * nat/x86-linux-dregs.h: Rename include guard.
3523 * nat/x86-gcc-cpuid.h: Add include guard.
3524 * nat/x86-dregs.h: Rename include guard.
3525 * nat/x86-cpuid.h: Rename include guard.
3526 * nat/ppc-linux.h: Rename include guard.
3527 * nat/mips-linux-watch.h: Rename include guard.
3528 * nat/linux-waitpid.h: Rename include guard.
3529 * nat/linux-ptrace.h: Rename include guard.
3530 * nat/linux-procfs.h: Rename include guard.
3531 * nat/linux-osdata.h: Rename include guard.
3532 * nat/linux-nat.h: Rename include guard.
3533 * nat/linux-namespaces.h: Rename include guard.
3534 * nat/linux-btrace.h: Rename include guard.
3535 * nat/glibc_thread_db.h: Rename include guard.
3536 * nat/gdb_thread_db.h: Rename include guard.
3537 * nat/gdb_ptrace.h: Rename include guard.
3538 * nat/fork-inferior.h: Rename include guard.
3539 * nat/amd64-linux-siginfo.h: Rename include guard.
3540 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
3541 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
3542 * nat/aarch64-linux.h: Rename include guard.
3543 * nat/aarch64-linux-hw-point.h: Rename include guard.
3544 * mn10300-tdep.h: Add include guard.
3545 * mips-linux-tdep.h: Add include guard.
3546 * mi/mi-parse.h: Rename include guard.
3547 * mi/mi-out.h: Rename include guard.
3548 * mi/mi-main.h: Rename include guard.
3549 * mi/mi-interp.h: Rename include guard.
3550 * mi/mi-getopt.h: Rename include guard.
3551 * mi/mi-console.h: Rename include guard.
3552 * mi/mi-common.h: Rename include guard.
3553 * mi/mi-cmds.h: Rename include guard.
3554 * mi/mi-cmd-break.h: Rename include guard.
3555 * m2-lang.h: Add include guard.
3556 * location.h: Rename include guard.
3557 * linux-record.h: Rename include guard.
3558 * linux-nat.h: Add include guard.
3559 * linux-fork.h: Add include guard.
3560 * i386-darwin-tdep.h: Rename include guard.
3561 * hppa-linux-offsets.h: Add include guard.
3562 * guile/guile.h: Rename include guard.
3563 * guile/guile-internal.h: Rename include guard.
3564 * gnu-nat.h: Rename include guard.
3565 * gdb-stabs.h: Rename include guard.
3566 * frv-tdep.h: Add include guard.
3567 * f-lang.h: Add include guard.
3568 * event-loop.h: Add include guard.
3569 * darwin-nat.h: Rename include guard.
3570 * cp-abi.h: Rename include guard.
3571 * config/sparc/nm-sol2.h: Rename include guard.
3572 * config/nm-nto.h: Rename include guard.
3573 * config/nm-linux.h: Add include guard.
3574 * config/i386/nm-i386gnu.h: Rename include guard.
3575 * config/djgpp/nl_types.h: Rename include guard.
3576 * config/djgpp/langinfo.h: Rename include guard.
3577 * compile/gcc-cp-plugin.h: Add include guard.
3578 * compile/gcc-c-plugin.h: Add include guard.
3579 * compile/compile.h: Rename include guard.
3580 * compile/compile-object-run.h: Rename include guard.
3581 * compile/compile-object-load.h: Rename include guard.
3582 * compile/compile-internal.h: Rename include guard.
3583 * compile/compile-cplus.h: Rename include guard.
3584 * compile/compile-c.h: Rename include guard.
3585 * common/xml-utils.h: Rename include guard.
3586 * common/x86-xstate.h: Rename include guard.
3587 * common/version.h: Rename include guard.
3588 * common/vec.h: Rename include guard.
3589 * common/tdesc.h: Rename include guard.
3590 * common/selftest.h: Rename include guard.
3591 * common/scoped_restore.h: Rename include guard.
3592 * common/scoped_mmap.h: Rename include guard.
3593 * common/scoped_fd.h: Rename include guard.
3594 * common/safe-iterator.h: Rename include guard.
3595 * common/run-time-clock.h: Rename include guard.
3596 * common/refcounted-object.h: Rename include guard.
3597 * common/queue.h: Rename include guard.
3598 * common/ptid.h: Rename include guard.
3599 * common/print-utils.h: Rename include guard.
3600 * common/preprocessor.h: Rename include guard.
3601 * common/pathstuff.h: Rename include guard.
3602 * common/observable.h: Rename include guard.
3603 * common/netstuff.h: Rename include guard.
3604 * common/job-control.h: Rename include guard.
3605 * common/host-defs.h: Rename include guard.
3606 * common/gdb_wait.h: Rename include guard.
3607 * common/gdb_vecs.h: Rename include guard.
3608 * common/gdb_unlinker.h: Rename include guard.
3609 * common/gdb_unique_ptr.h: Rename include guard.
3610 * common/gdb_tilde_expand.h: Rename include guard.
3611 * common/gdb_sys_time.h: Rename include guard.
3612 * common/gdb_string_view.h: Rename include guard.
3613 * common/gdb_splay_tree.h: Rename include guard.
3614 * common/gdb_setjmp.h: Rename include guard.
3615 * common/gdb_ref_ptr.h: Rename include guard.
3616 * common/gdb_optional.h: Rename include guard.
3617 * common/gdb_locale.h: Rename include guard.
3618 * common/gdb_assert.h: Rename include guard.
3619 * common/filtered-iterator.h: Rename include guard.
3620 * common/filestuff.h: Rename include guard.
3621 * common/fileio.h: Rename include guard.
3622 * common/environ.h: Rename include guard.
3623 * common/common-utils.h: Rename include guard.
3624 * common/common-types.h: Rename include guard.
3625 * common/common-regcache.h: Rename include guard.
3626 * common/common-inferior.h: Rename include guard.
3627 * common/common-gdbthread.h: Rename include guard.
3628 * common/common-exceptions.h: Rename include guard.
3629 * common/common-defs.h: Rename include guard.
3630 * common/common-debug.h: Rename include guard.
3631 * common/cleanups.h: Rename include guard.
3632 * common/buffer.h: Rename include guard.
3633 * common/btrace-common.h: Rename include guard.
3634 * common/break-common.h: Rename include guard.
3635 * cli/cli-utils.h: Rename include guard.
3636 * cli/cli-style.h: Rename include guard.
3637 * cli/cli-setshow.h: Rename include guard.
3638 * cli/cli-script.h: Rename include guard.
3639 * cli/cli-interp.h: Rename include guard.
3640 * cli/cli-decode.h: Rename include guard.
3641 * cli/cli-cmds.h: Rename include guard.
3642 * charset-list.h: Add include guard.
3643 * buildsym-legacy.h: Rename include guard.
3644 * bfin-tdep.h: Add include guard.
3645 * ax.h: Rename include guard.
3646 * arm-linux-tdep.h: Add include guard.
3647 * arm-fbsd-tdep.h: Add include guard.
3648 * arch/xtensa.h: Rename include guard.
3649 * arch/tic6x.h: Add include guard.
3650 * arch/i386.h: Add include guard.
3651 * arch/arm.h: Rename include guard.
3652 * arch/arm-linux.h: Rename include guard.
3653 * arch/arm-get-next-pcs.h: Rename include guard.
3654 * arch/amd64.h: Add include guard.
3655 * arch/aarch64-insn.h: Rename include guard.
3656 * arch-utils.h: Rename include guard.
3657 * annotate.h: Add include guard.
3658 * amd64-darwin-tdep.h: Rename include guard.
3659 * aarch64-linux-tdep.h: Add include guard.
3660 * aarch64-fbsd-tdep.h: Add include guard.
3661 * aarch32-linux-nat.h: Add include guard.
3662
3663 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3664
3665 * macrotab.c (macro_define_internal): New function that
3666 factorizes macro_define_object_internal and macro_define_function
3667 code.
3668 (macro_define_object_internal): Use macro_define_internal.
3669 (macro_define_function): Likewise.
3670
3671 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3672
3673 * macrocmd.c (extract_identifier): Return
3674 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
3675 callers.
3676
3677 2019-02-06 John Baldwin <jhb@FreeBSD.org>
3678
3679 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
3680
3681 2019-02-05 Tom Tromey <tom@tromey.com>
3682
3683 * target.c (target_stack::unpush): Move assertion earlier.
3684
3685 2019-01-30 Tom Tromey <tom@tromey.com>
3686
3687 PR python/23615:
3688 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
3689 (gdbpy_parse_and_eval): Likewise.
3690 * python/python-internal.h (gdbpy_allow_threads): New class.
3691
3692 2019-01-28 John Baldwin <jhb@FreeBSD.org>
3693
3694 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
3695 (aarch64_fbsd_fpregmap): Move earlier.
3696 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
3697 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
3698 instead of individual calls to trad_frame_set_reg_addr.
3699 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
3700 earlier.
3701 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
3702 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
3703 instead of individual calls to trad_frame_set_reg_addr.
3704
3705 2019-01-28 Alan Hayward <alan.hayward@arm.com>
3706
3707 * CONTRIBUTE: Replace contribution list with wiki link.
3708
3709 2019-01-25 Tom Tromey <tom@tromey.com>
3710
3711 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
3712
3713 2019-01-25 Tom Tromey <tom@tromey.com>
3714
3715 * xtensa-linux-nat.c: Fix common/ includes.
3716 * xml-support.h: Fix common/ includes.
3717 * xml-support.c: Fix common/ includes.
3718 * x86-linux-nat.c: Fix common/ includes.
3719 * windows-nat.c: Fix common/ includes.
3720 * varobj.h: Fix common/ includes.
3721 * varobj.c: Fix common/ includes.
3722 * value.c: Fix common/ includes.
3723 * valops.c: Fix common/ includes.
3724 * utils.c: Fix common/ includes.
3725 * unittests/xml-utils-selftests.c: Fix common/ includes.
3726 * unittests/utils-selftests.c: Fix common/ includes.
3727 * unittests/unpack-selftests.c: Fix common/ includes.
3728 * unittests/tracepoint-selftests.c: Fix common/ includes.
3729 * unittests/style-selftests.c: Fix common/ includes.
3730 * unittests/string_view-selftests.c: Fix common/ includes.
3731 * unittests/scoped_restore-selftests.c: Fix common/ includes.
3732 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
3733 * unittests/scoped_fd-selftests.c: Fix common/ includes.
3734 * unittests/rsp-low-selftests.c: Fix common/ includes.
3735 * unittests/parse-connection-spec-selftests.c: Fix common/
3736 includes.
3737 * unittests/optional-selftests.c: Fix common/ includes.
3738 * unittests/offset-type-selftests.c: Fix common/ includes.
3739 * unittests/observable-selftests.c: Fix common/ includes.
3740 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
3741 * unittests/memrange-selftests.c: Fix common/ includes.
3742 * unittests/memory-map-selftests.c: Fix common/ includes.
3743 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
3744 * unittests/function-view-selftests.c: Fix common/ includes.
3745 * unittests/environ-selftests.c: Fix common/ includes.
3746 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
3747 * unittests/common-utils-selftests.c: Fix common/ includes.
3748 * unittests/cli-utils-selftests.c: Fix common/ includes.
3749 * unittests/array-view-selftests.c: Fix common/ includes.
3750 * ui-file.c: Fix common/ includes.
3751 * tui/tui-io.c: Fix common/ includes.
3752 * tracepoint.h: Fix common/ includes.
3753 * tracepoint.c: Fix common/ includes.
3754 * tracefile-tfile.c: Fix common/ includes.
3755 * top.h: Fix common/ includes.
3756 * top.c: Fix common/ includes.
3757 * thread.c: Fix common/ includes.
3758 * target/waitstatus.h: Fix common/ includes.
3759 * target/waitstatus.c: Fix common/ includes.
3760 * target.h: Fix common/ includes.
3761 * target.c: Fix common/ includes.
3762 * target-memory.c: Fix common/ includes.
3763 * target-descriptions.c: Fix common/ includes.
3764 * symtab.h: Fix common/ includes.
3765 * symfile.c: Fix common/ includes.
3766 * stap-probe.c: Fix common/ includes.
3767 * spu-linux-nat.c: Fix common/ includes.
3768 * sparc-nat.c: Fix common/ includes.
3769 * source.c: Fix common/ includes.
3770 * solib.c: Fix common/ includes.
3771 * solib-target.c: Fix common/ includes.
3772 * ser-unix.c: Fix common/ includes.
3773 * ser-tcp.c: Fix common/ includes.
3774 * ser-pipe.c: Fix common/ includes.
3775 * ser-base.c: Fix common/ includes.
3776 * selftest-arch.c: Fix common/ includes.
3777 * s12z-tdep.c: Fix common/ includes.
3778 * rust-exp.y: Fix common/ includes.
3779 * rs6000-aix-tdep.c: Fix common/ includes.
3780 * riscv-tdep.c: Fix common/ includes.
3781 * remote.c: Fix common/ includes.
3782 * remote-notif.h: Fix common/ includes.
3783 * remote-fileio.h: Fix common/ includes.
3784 * remote-fileio.c: Fix common/ includes.
3785 * regcache.h: Fix common/ includes.
3786 * regcache.c: Fix common/ includes.
3787 * record-btrace.c: Fix common/ includes.
3788 * python/python.c: Fix common/ includes.
3789 * python/py-type.c: Fix common/ includes.
3790 * python/py-inferior.c: Fix common/ includes.
3791 * progspace.h: Fix common/ includes.
3792 * producer.c: Fix common/ includes.
3793 * procfs.c: Fix common/ includes.
3794 * proc-api.c: Fix common/ includes.
3795 * printcmd.c: Fix common/ includes.
3796 * ppc-linux-nat.c: Fix common/ includes.
3797 * parser-defs.h: Fix common/ includes.
3798 * osdata.c: Fix common/ includes.
3799 * obsd-nat.c: Fix common/ includes.
3800 * nat/x86-linux.c: Fix common/ includes.
3801 * nat/x86-linux-dregs.c: Fix common/ includes.
3802 * nat/x86-dregs.h: Fix common/ includes.
3803 * nat/x86-dregs.c: Fix common/ includes.
3804 * nat/ppc-linux.c: Fix common/ includes.
3805 * nat/mips-linux-watch.h: Fix common/ includes.
3806 * nat/mips-linux-watch.c: Fix common/ includes.
3807 * nat/linux-waitpid.c: Fix common/ includes.
3808 * nat/linux-ptrace.h: Fix common/ includes.
3809 * nat/linux-ptrace.c: Fix common/ includes.
3810 * nat/linux-procfs.c: Fix common/ includes.
3811 * nat/linux-personality.c: Fix common/ includes.
3812 * nat/linux-osdata.c: Fix common/ includes.
3813 * nat/linux-namespaces.c: Fix common/ includes.
3814 * nat/linux-btrace.h: Fix common/ includes.
3815 * nat/linux-btrace.c: Fix common/ includes.
3816 * nat/fork-inferior.c: Fix common/ includes.
3817 * nat/amd64-linux-siginfo.c: Fix common/ includes.
3818 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
3819 * nat/aarch64-linux.c: Fix common/ includes.
3820 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
3821 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
3822 * namespace.h: Fix common/ includes.
3823 * mips-linux-tdep.c: Fix common/ includes.
3824 * minsyms.c: Fix common/ includes.
3825 * mi/mi-parse.h: Fix common/ includes.
3826 * mi/mi-main.c: Fix common/ includes.
3827 * mi/mi-cmd-env.c: Fix common/ includes.
3828 * memrange.h: Fix common/ includes.
3829 * memattr.c: Fix common/ includes.
3830 * maint.h: Fix common/ includes.
3831 * maint.c: Fix common/ includes.
3832 * main.c: Fix common/ includes.
3833 * machoread.c: Fix common/ includes.
3834 * location.c: Fix common/ includes.
3835 * linux-thread-db.c: Fix common/ includes.
3836 * linux-nat.c: Fix common/ includes.
3837 * linux-fork.c: Fix common/ includes.
3838 * inline-frame.c: Fix common/ includes.
3839 * infrun.c: Fix common/ includes.
3840 * inflow.c: Fix common/ includes.
3841 * inferior.h: Fix common/ includes.
3842 * inferior.c: Fix common/ includes.
3843 * infcmd.c: Fix common/ includes.
3844 * inf-ptrace.c: Fix common/ includes.
3845 * inf-child.c: Fix common/ includes.
3846 * ia64-linux-nat.c: Fix common/ includes.
3847 * i387-tdep.c: Fix common/ includes.
3848 * i386-tdep.c: Fix common/ includes.
3849 * i386-linux-tdep.c: Fix common/ includes.
3850 * i386-linux-nat.c: Fix common/ includes.
3851 * i386-go32-tdep.c: Fix common/ includes.
3852 * i386-fbsd-tdep.c: Fix common/ includes.
3853 * i386-fbsd-nat.c: Fix common/ includes.
3854 * guile/scm-type.c: Fix common/ includes.
3855 * guile/guile.c: Fix common/ includes.
3856 * go32-nat.c: Fix common/ includes.
3857 * gnu-nat.c: Fix common/ includes.
3858 * gdbthread.h: Fix common/ includes.
3859 * gdbarch-selftests.c: Fix common/ includes.
3860 * gdb_usleep.c: Fix common/ includes.
3861 * gdb_select.h: Fix common/ includes.
3862 * gdb_bfd.c: Fix common/ includes.
3863 * gcore.c: Fix common/ includes.
3864 * fork-child.c: Fix common/ includes.
3865 * findvar.c: Fix common/ includes.
3866 * fbsd-nat.c: Fix common/ includes.
3867 * event-top.c: Fix common/ includes.
3868 * event-loop.c: Fix common/ includes.
3869 * dwarf2read.c: Fix common/ includes.
3870 * dwarf2loc.c: Fix common/ includes.
3871 * dwarf2-frame.c: Fix common/ includes.
3872 * dwarf-index-cache.c: Fix common/ includes.
3873 * dtrace-probe.c: Fix common/ includes.
3874 * disasm-selftests.c: Fix common/ includes.
3875 * defs.h: Fix common/ includes.
3876 * csky-tdep.c: Fix common/ includes.
3877 * cp-valprint.c: Fix common/ includes.
3878 * cp-support.h: Fix common/ includes.
3879 * cp-support.c: Fix common/ includes.
3880 * corelow.c: Fix common/ includes.
3881 * completer.h: Fix common/ includes.
3882 * completer.c: Fix common/ includes.
3883 * compile/compile.c: Fix common/ includes.
3884 * compile/compile-loc2c.c: Fix common/ includes.
3885 * compile/compile-cplus-types.c: Fix common/ includes.
3886 * compile/compile-cplus-symbols.c: Fix common/ includes.
3887 * command.h: Fix common/ includes.
3888 * cli/cli-dump.c: Fix common/ includes.
3889 * cli/cli-cmds.c: Fix common/ includes.
3890 * charset.c: Fix common/ includes.
3891 * build-id.c: Fix common/ includes.
3892 * btrace.h: Fix common/ includes.
3893 * btrace.c: Fix common/ includes.
3894 * breakpoint.h: Fix common/ includes.
3895 * breakpoint.c: Fix common/ includes.
3896 * ax.h:
3897 (enum agent_op): Fix common/ includes.
3898 * ax-general.c (struct aop_map): Fix common/ includes.
3899 * ax-gdb.c: Fix common/ includes.
3900 * auxv.c: Fix common/ includes.
3901 * auto-load.c: Fix common/ includes.
3902 * arm-tdep.c: Fix common/ includes.
3903 * arch/riscv.c: Fix common/ includes.
3904 * arch/ppc-linux-common.c: Fix common/ includes.
3905 * arch/i386.c: Fix common/ includes.
3906 * arch/arm.c: Fix common/ includes.
3907 * arch/arm-linux.c: Fix common/ includes.
3908 * arch/arm-get-next-pcs.c: Fix common/ includes.
3909 * arch/amd64.c: Fix common/ includes.
3910 * arch/aarch64.c: Fix common/ includes.
3911 * arch/aarch64-insn.c: Fix common/ includes.
3912 * arch-utils.c: Fix common/ includes.
3913 * amd64-windows-tdep.c: Fix common/ includes.
3914 * amd64-tdep.c: Fix common/ includes.
3915 * amd64-sol2-tdep.c: Fix common/ includes.
3916 * amd64-obsd-tdep.c: Fix common/ includes.
3917 * amd64-nbsd-tdep.c: Fix common/ includes.
3918 * amd64-linux-tdep.c: Fix common/ includes.
3919 * amd64-linux-nat.c: Fix common/ includes.
3920 * amd64-fbsd-tdep.c: Fix common/ includes.
3921 * amd64-fbsd-nat.c: Fix common/ includes.
3922 * amd64-dicos-tdep.c: Fix common/ includes.
3923 * amd64-darwin-tdep.c: Fix common/ includes.
3924 * agent.c: Fix common/ includes.
3925 * ada-lang.h: Fix common/ includes.
3926 * ada-lang.c: Fix common/ includes.
3927 * aarch64-tdep.c: Fix common/ includes.
3928
3929 2019-01-25 Tom Tromey <tom@tromey.com>
3930
3931 * common/create-version.sh: Use common/version.h.
3932
3933 2019-01-24 Pedro Alves <palves@redhat.com>
3934
3935 * infrun.c (signal_stop, signal_print, signal_program)
3936 (signal_catch, signal_pass): Now arrays instead of pointers.
3937 (update_signals_program_target, do_target_resume)
3938 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
3939 * linux-nat.c (linux_nat_target::pass_signals)
3940 (linux_nat_target::create_inferior, linux_nat_target::attach):
3941 Adjust.
3942 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
3943 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
3944 * procfs.c (procfs_target::pass_signals): Adjust.
3945 * record-full.c (record_full_target::resume): Adjust.
3946 * remote.c (remote_target::pass_signals)
3947 (remote_target::program_signals): Adjust.
3948 * target-debug.h (target_debug_print_signals): Now takes a
3949 gdb::array_view as parameter. Adjust.
3950 * target.h (target_ops) <pass_signals, program_signals>: Replace
3951 pointer and length parameters with gdb::array_view.
3952 (target_pass_signals, target_program_signals): Likewise.
3953 * target-delegates.c: Regenerate.
3954
3955 2019-01-24 Pedro Alves <palves@redhat.com>
3956
3957 * common/forward-scope-exit.h
3958 (forward_scope_exit::forward_scope_exit): Pass arguments to
3959 m_bind_function directly, instead of creating a std::bind and
3960 copying that.
3961
3962 2019-01-24 Alan Hayward <alan.hayward@arm.com>
3963
3964 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
3965 for static members.
3966 (pass_in_v_vfp_candidate): Likewise.
3967
3968 2019-01-23 Tom Tromey <tom@tromey.com>
3969 Pedro Alves <palves@redhat.com>
3970
3971 * regcache.c (class regcache_invalidator): Remove.
3972 (regcache::raw_write): Use make_scope_exit.
3973
3974 2019-01-23 Tom Tromey <tom@tromey.com>
3975
3976 * ui-out.h (class ui_out_emit_type): Update comment.
3977
3978 2019-01-23 Tom Tromey <tom@tromey.com>
3979
3980 * infrun.c (fetch_inferior_event): Update comment.
3981
3982 2019-01-23 Tom Tromey <tom@tromey.com>
3983 Pedro Alves <palves@redhat.com>
3984
3985 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
3986 parameter.
3987 (fetch_inferior_event): Use SCOPE_EXIT.
3988
3989
3990 2019-01-23 Tom Tromey <tom@tromey.com>
3991 Pedro Alves <palves@redhat.com>
3992
3993 * infrun.c (disable_thread_events): Delete.
3994 (stop_all_threads): Use SCOPE_EXIT.
3995
3996 2019-01-23 Tom Tromey <tom@tromey.com>
3997 Pedro Alves <palves@redhat.com>
3998
3999 * symfile.c: Include forward-scope-exit.h.
4000 (clear_symtab_users_cleanup): Replace forward declaration with
4001 a FORWARD_SCOPE_EXIT.
4002 (syms_from_objfile_1): Use the forward_scope_exit and
4003 gdb::optional instead of cleanup_function.
4004 (reread_symbols): Use the forward_scope_exit instead of
4005 cleanup_function.
4006 (clear_symtab_users_cleanup): Remove function.
4007
4008 2019-01-23 Tom Tromey <tom@tromey.com>
4009 Pedro Alves <palves@redhat.com>
4010
4011 * linux-nat.c: Include scope-exit.h.
4012 (cleanup_target_stop): Remove.
4013 (linux_nat_target::static_tracepoint_markers_by_strid): Use
4014 SCOPE_EXIT.
4015
4016 2019-01-23 Tom Tromey <tom@tromey.com>
4017 Pedro Alves <palves@redhat.com>
4018
4019 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
4020 (call_function_by_hand_dummy): Use SCOPE_EXIT.
4021
4022 2019-01-23 Tom Tromey <tom@tromey.com>
4023 Andrew Burgess <andrew.burgess@embecosm.com>
4024 Pedro Alves <palves@redhat.com>
4025
4026 * infrun.c (fetch_inferior_event): Use scope_exit.
4027 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
4028 * top.c (execute_command): Use scope_exit.
4029 * breakpoint.c (bpstat_do_actions): Use scope_exit.
4030 * utils.c (do_bpstat_clear_actions_cleanup)
4031 (make_bpstat_clear_actions_cleanup): Remove.
4032
4033 2019-01-23 Tom Tromey <tom@tromey.com>
4034 Pedro Alves <palves@redhat.com>
4035
4036 * infrun.c: Include "common/scope-exit.h"
4037 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
4038 (wait_for_inferior): Use SCOPE_EXIT.
4039 (fetch_inferior_event): Use scope_exit.
4040
4041 2019-01-23 Tom Tromey <tom@tromey.com>
4042 Pedro Alves <palves@redhat.com>
4043
4044 * breakpoint.c (create_breakpoint): Remove cleanup.
4045
4046 2019-01-23 Tom Tromey <tom@tromey.com>
4047 Andrew Burgess <andrew.burgess@embecosm.com>
4048 Pedro Alves <palves@redhat.com>
4049
4050 2019-01-23 Pedro Alves <palves@redhat.com>
4051
4052 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
4053
4054 2019-01-23 Pedro Alves <palves@redhat.com>
4055 Andrew Burgess <andrew.burgess@embecosm.com>
4056
4057 * gdbthread.h: Include "common/forward-scope-exit.h".
4058 (scoped_finish_thread_state): Redefine custom class in terms of
4059 forward_scope_exit.
4060
4061 2019-01-23 Pedro Alves <palves@redhat.com>
4062 Andrew Burgess <andrew.burgess@embecosm.com>
4063
4064 * common/forward-scope-exit.h: New file.
4065
4066 2019-01-23 Pedro Alves <palves@redhat.com>
4067 Andrew Burgess <andrew.burgess@embecosm.com>
4068 Tom Tromey <tom@tromey.com>
4069
4070 * common/scope-exit.h: New file.
4071
4072 2019-01-23 Pedro Alves <palves@redhat.com>
4073
4074 * common/preprocessor.h (ESC): Rename to ...
4075 (ESC_PARENS): ... this.
4076 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
4077 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
4078
4079 2019-01-23 Tom Tromey <tom@tromey.com>
4080
4081 * language.h (class scoped_switch_to_sym_language_if_auto):
4082 Initialize m_lang in both cases.
4083
4084 2019-01-23 Alan Hayward <alan.hayward@arm.com>
4085
4086 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
4087 with XCNEW.
4088
4089 2019-01-22 Tom Tromey <tom@tromey.com>
4090
4091 * corelow.c: Do not include sys/file.h.
4092
4093 2019-01-22 Tom Tromey <tom@tromey.com>
4094
4095 * tui/tui-wingeneral.h: Include gdb_curses.h.
4096
4097 2019-01-22 Tom Tromey <tom@tromey.com>
4098
4099 * source-cache.h (class source_cache) <get_source_lines,
4100 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
4101
4102 2019-01-22 Tom Tromey <tom@tromey.com>
4103
4104 * remote-fileio.h (struct remote_target): Declare.
4105
4106 2019-01-22 Tom Tromey <tom@tromey.com>
4107
4108 * python/py-arch.c: Do not include py-ref.h.
4109 * python/py-bpevent.c: Do not include py-ref.h.
4110 * python/py-cmd.c: Do not include py-ref.h.
4111 * python/py-continueevent.c: Do not include py-ref.h.
4112 * python/py-event.h: Do not include py-ref.h.
4113 * python/py-evtregistry.c: Do not include py-ref.h.
4114 * python/py-finishbreakpoint.c: Do not include py-ref.h.
4115 * python/py-frame.c: Do not include py-ref.h.
4116 * python/py-framefilter.c: Do not include py-ref.h.
4117 * python/py-function.c: Do not include py-ref.h.
4118 * python/py-infevents.c: Do not include py-ref.h.
4119 * python/py-linetable.c: Do not include py-ref.h.
4120 * python/py-objfile.c: Do not include py-ref.h.
4121 * python/py-param.c: Do not include py-ref.h.
4122 * python/py-prettyprint.c: Do not include py-ref.h.
4123 * python/py-progspace.c: Do not include py-ref.h.
4124 * python/py-symbol.c: Do not include py-ref.h.
4125 * python/py-symtab.c: Do not include py-ref.h.
4126 * python/py-type.c: Do not include py-ref.h.
4127 * python/py-unwind.c: Do not include py-ref.h.
4128 * python/py-utils.c: Do not include py-ref.h.
4129 * python/py-value.c: Do not include py-ref.h.
4130 * python/py-varobj.c: Do not include py-ref.h.
4131 * python/py-xmethods.c: Do not include py-ref.h.
4132 * python/python.c: Do not include py-ref.h.
4133 * varobj.c: Do not include py-ref.h.
4134
4135 2019-01-22 Tom Tromey <tom@tromey.com>
4136
4137 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
4138 keyword for bcache.
4139
4140 2019-01-22 Tom Tromey <tom@tromey.com>
4141
4142 * compile/compile-cplus-types.c: Remove a comment by #include.
4143
4144 2019-01-22 Tom Tromey <tom@tromey.com>
4145
4146 * compile/gcc-c-plugin.h: Include compile-internal.h.
4147
4148 2019-01-22 Tom Tromey <tom@tromey.com>
4149
4150 * stabsread.c (EXTERN): Do not define.
4151 (symnum, next_symbol_text_func, processing_gcc_compilation)
4152 (within_function, global_sym_chain, global_stabs)
4153 (previous_stab_code, this_object_header_files)
4154 (n_this_object_header_files)
4155 (n_allocated_this_object_header_files): Define.
4156 * stabsread.h (EXTERN): Never define. Use "extern".
4157
4158 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4159
4160 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
4161 history_value.
4162
4163 2019-01-21 Tom Tromey <tom@tromey.com>
4164
4165 * ui-out.c: Fix includes.
4166 * tui/tui-source.c: Fix includes.
4167 * target.c: Fix includes.
4168 * remote.c: Fix includes.
4169 * regcache.c: Fix includes.
4170 * python/py-block.c: Fix includes.
4171 * printcmd.c: Fix includes.
4172 * or1k-tdep.c: Fix includes.
4173 * mi/mi-main.c: Fix includes.
4174 * m32r-tdep.c: Fix includes.
4175 * csky-tdep.c: Fix includes.
4176 * compile/compile-cplus-types.c: Fix includes.
4177 * cli/cli-interp.c: Fix includes.
4178
4179 2019-01-21 Alan Hayward <alan.hayward@arm.com>
4180
4181 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
4182 for padding.
4183
4184 2019-01-16 Tom Tromey <tom@tromey.com>
4185
4186 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
4187 earlier.
4188 (struct objfile) <msymbols_range>: Move from top level.
4189 <msymbols>: New method.
4190 (class objfile_msymbols): Remove.
4191 * symtab.c (default_collect_symbol_completion_matches_break_on):
4192 Update.
4193 * symmisc.c (dump_msymbols): Update.
4194 * stabsread.c (scan_file_globals): Update.
4195 * objc-lang.c (info_selectors_command, info_classes_command)
4196 (find_methods): Update.
4197 * minsyms.c (find_solib_trampoline_target): Update.
4198 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
4199 * coffread.c (coff_symfile_read): Update.
4200 * ada-lang.c (ada_lookup_simple_minsym)
4201 (ada_collect_symbol_completion_matches): Update.
4202
4203 2019-01-16 Tom Tromey <tom@tromey.com>
4204
4205 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
4206 type. Remove no-argument constructor.
4207 <iterator::operator++>: Simplify.
4208 <begin>: Update.
4209 <end>: Use minimal_symbol_count.
4210
4211 2019-01-16 Tom Tromey <tom@tromey.com>
4212
4213 * objfiles.h (struct objfile) <psymtabs>: New method.
4214 (class objfile_psymtabs): Remove.
4215 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
4216 typedef.
4217 <range>: New method.
4218 (require_partial_symbols): Change return type.
4219 * psymtab.c (require_partial_symbols)
4220 (psym_expand_symtabs_matching): Update.
4221 * mdebugread.c (parse_partial_symbols): Update.
4222 * dbxread.c (dbx_end_psymtab): Update.
4223
4224 2019-01-15 Tom Tromey <tom@tromey.com>
4225
4226 * symtab.c (lookup_objfile_from_block)
4227 (lookup_symbol_in_objfile_symtabs)
4228 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
4229 (find_line_symtab, info_sources_command)
4230 (default_collect_symbol_completion_matches_break_on)
4231 (make_source_files_completion_list): Update.
4232 * symmisc.c (print_objfile_statistics, dump_objfile)
4233 (maintenance_print_symbols, maintenance_info_symtabs)
4234 (maintenance_check_symtabs, maintenance_info_line_tables):
4235 Update.
4236 * source.c (select_source_symtab)
4237 (forget_cached_source_info_for_objfile): Update.
4238 * objfiles.h (class objfile_compunits): Remove.
4239 (struct objfile) <compunits_range>: New typedef.
4240 (compunits): New method.
4241 * objfiles.c (objfile_relocate1): Update.
4242 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
4243 * maint.c (count_symtabs_and_blocks): Update.
4244 * linespec.c (iterate_over_all_matching_symtabs): Update.
4245 * cp-support.c (add_symbol_overload_list_qualified): Update.
4246 * coffread.c (coff_symtab_read): Update.
4247 * ada-lang.c (add_nonlocal_symbols)
4248 (ada_collect_symbol_completion_matches)
4249 (ada_add_global_exceptions): Update.
4250
4251 2019-01-15 Tom Tromey <tom@tromey.com>
4252
4253 * progspace.h (program_space) <objfiles_safe_range>: New
4254 typedef.
4255 <objfiles_safe>: New method.
4256 * objfiles.h (class all_objfiles_safe): Remove.
4257 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
4258 * jit.c (jit_inferior_exit_hook): Update.
4259
4260 2019-01-17 Tom Tromey <tom@tromey.com>
4261
4262 * progspace.h (program_space) <objfiles_range>: New typedef.
4263 <objfiles>: New method.
4264 <objfiles_head>: Rename from objfiles.
4265 (object_files): Update.
4266 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
4267 * guile/scm-pretty-print.c
4268 (ppscm_find_pretty_printer_from_objfiles): Update.
4269 * guile/scm-objfile.c (gdbscm_objfiles): Update.
4270 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
4271 Update.
4272 * python/py-progspace.c (pspy_get_objfiles): Update.
4273 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
4274 Update.
4275 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
4276 (objfpy_lookup_objfile_by_build_id): Update.
4277 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
4278 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
4279 Update.
4280 * symtab.c (iterate_over_symtabs, matching_obj_sections)
4281 (expand_symtab_containing_pc, lookup_objfile_from_block)
4282 (lookup_static_symbol, basic_lookup_transparent_type)
4283 (find_pc_sect_compunit_symtab, find_symbol_at_address)
4284 (find_line_symtab, info_sources_command)
4285 (default_collect_symbol_completion_matches_break_on)
4286 (make_source_files_completion_list, find_main_name): Update.
4287 * symmisc.c (print_symbol_bcache_statistics)
4288 (print_objfile_statistics, maintenance_print_symbols)
4289 (maintenance_print_msymbols, maintenance_print_objfiles)
4290 (maintenance_info_symtabs, maintenance_check_symtabs)
4291 (maintenance_expand_symtabs, maintenance_info_line_tables):
4292 Update.
4293 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
4294 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
4295 (map_overlay_command, unmap_overlay_command)
4296 (simple_overlay_update, expand_symtabs_matching)
4297 (map_symbol_filenames): Update.
4298 * symfile-debug.c (set_debug_symfile): Update.
4299 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
4300 Update.
4301 * source.c (select_source_symtab, forget_cached_source_info):
4302 Update.
4303 * solib.c (solib_read_symbols): Update.
4304 * solib-spu.c (append_ocl_sos): Update.
4305 * psymtab.c (maintenance_print_psymbols)
4306 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
4307 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
4308 * printcmd.c (info_symbol_command): Update.
4309 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
4310 Update.
4311 * objfiles.h (class all_objfiles): Remove.
4312 * objfiles.c (have_partial_symbols, have_full_symbols)
4313 (have_minimal_symbols, qsort_cmp, update_section_map)
4314 (shared_objfile_contains_address_p)
4315 (default_iterate_over_objfiles_in_search_order): Update.
4316 * objc-lang.c (info_selectors_command, info_classes_command)
4317 (find_methods): Update.
4318 * minsyms.c (find_solib_trampoline_target): Update.
4319 * maint.c (maintenance_info_sections)
4320 (maintenance_translate_address, count_symtabs_and_blocks):
4321 Update.
4322 * main.c (captured_main_1): Update.
4323 * linux-thread-db.c (try_thread_db_load_from_pdir)
4324 (has_libpthread): Update.
4325 * linespec.c (iterate_over_all_matching_symtabs)
4326 (search_minsyms_for_name): Update.
4327 * jit.c (jit_find_objf_with_entry_addr): Update.
4328 * hppa-tdep.c (find_unwind_entry)
4329 (hppa_lookup_stub_minimal_symbol): Update.
4330 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
4331 Update.
4332 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
4333 (elf_gnu_ifunc_resolve_by_got): Update.
4334 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
4335 * dwarf-index-write.c (save_gdb_index_command): Update.
4336 * cp-support.c (add_symbol_overload_list_qualified): Update.
4337 * breakpoint.c (create_overlay_event_breakpoint)
4338 (create_longjmp_master_breakpoint)
4339 (create_std_terminate_master_breakpoint)
4340 (create_exception_master_breakpoint): Update.
4341 * blockframe.c (find_pc_partial_function): Update.
4342 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
4343 (ada_collect_symbol_completion_matches)
4344 (ada_add_global_exceptions): Update.
4345
4346 2019-01-17 Tom Tromey <tom@tromey.com>
4347
4348 * solib-target.c (lm_info_target_p): Remove typedef. Don't
4349 declare VEC.
4350 (solib_target_parse_libraries): Change return type.
4351 (library_list_start_segment, library_list_start_section)
4352 (library_list_end_library, library_list_start_library); Update.
4353 (solib_target_free_library_list): Remove.
4354 (solib_target_parse_libraries): Remove cleanup. Change return
4355 type.
4356 (solib_target_current_sos): Update.
4357
4358 2019-01-17 Tom Tromey <tromey@bapiya>
4359
4360 * valprint.c: Replace "the the" with "the".
4361 * symtab.c: Replace "the the" with "the".
4362 * solib.c: Replace "the the" with "the".
4363 * solib-dsbt.c: Replace "the the" with "the".
4364 * linespec.c: Replace "the the" with "the".
4365 * dwarf2loc.h: Replace "the the" with "the".
4366 * amd64-windows-tdep.c: Replace "the the" with "the".
4367 * aarch64-tdep.c: Replace "the the" with "the".
4368
4369 2019-01-16 Keith Seitz <keiths@redhat.com>
4370
4371 PR gdb/23773
4372 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
4373 <builder>: Rename to ..
4374 <m_builder>: ... this and make private.
4375 (dwarf2_cu::get_builder): New method. Change all users of
4376 `builder' to use this method.
4377 (dwarf2_start_symtab): Move to ...
4378 (dwarf2_cu::start_symtab): ... here. Update all callers
4379 (setup_type_unit_groups): Move to ...
4380 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
4381 callers.
4382 (dwarf2_cu::reset_builder): New method.
4383 (process_full_compunit, process_full_type_unit): Use
4384 dwarf2_cu::reset_builder.
4385 (follow_die_offset): Record the ancestor CU if it is different
4386 from the followed DIE's CU.
4387 (follow_die_sig_1): Likewise.
4388
4389 2019-01-15 Tom Tromey <tom@tromey.com>
4390
4391 * remote.c (class remote_state) <buf>: Now a char_vector.
4392 <buf_size>: Remove.
4393 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
4394 parameter.
4395 (remote_target::getpkt_or_notif_sane_1)
4396 (remote_target::getpkt_sane)
4397 (remote_target::getpkt_or_notif_sane): Likewise.
4398 (class remote_target) <putpkt>: New overload.
4399 (remote_target::read_frame): Change type of "buf_p". Remove
4400 sizeof_p parameter.
4401 (packet_ok): New overload.
4402 (packet_check_result): New overload.
4403 Update all uses.
4404
4405 2019-01-14 Tom Tromey <tom@tromey.com>
4406
4407 * remote-notif.c (handle_notification, remote_notif_ack)
4408 (remote_notif_parse): Make "buf" const.
4409 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
4410 const.
4411 (remote_notif_parse, remote_notif_ack, handle_notification):
4412 Likewise.
4413 * remote.c (remote_notif_stop_parse): Make "buf" const.
4414 (remote_target::remote_parse_stop_reply): Make "buf" const.
4415 (remote_notif_stop_ack): Make "buf" const.
4416
4417 2019-01-14 Tom Tromey <tom@tromey.com>
4418
4419 * remote.c (remote_console_output): Make parameter const.
4420
4421 2019-01-14 Tom Tromey <tom@tromey.com>
4422
4423 * target-debug.h (target_debug_print_signals): Constify.
4424 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
4425 * procfs.c (procfs_target::pass_signals): Update.
4426 * linux-nat.c (linux_nat_target::pass_signals): Update.
4427 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
4428 * target-delegates.c: Rebuild.
4429 * remote.c (remote_target::program_signals): Update.
4430 (remote_target::pass_signals): Update.
4431 * target.c (target_pass_signals): Constify argument.
4432 (target_program_signals): Likewise.
4433 * target.h (struct target_ops) <pass_signals, program_signals>:
4434 Constify argument.
4435 (target_pass_signals, target_program_signals): Constify argument.
4436
4437 2019-01-14 Tom Tromey <tom@tromey.com>
4438
4439 PR tui/28819:
4440 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
4441
4442 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4443
4444 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
4445 field.
4446 * rs6000-tdep.c: Include reggroups.h.
4447 (IS_V_ALIAS_PSEUDOREG): Define.
4448 (rs6000_register_name): Return names for the "vX" aliases.
4449 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
4450 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
4451 aliases. Call default_register_reggroup_p for all other
4452 pseudo-registers.
4453 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
4454 New functions.
4455 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
4456 Handle "vX" aliases.
4457 (v_alias_pseudo_register_collect): New function.
4458 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
4459 (rs6000_gdbarch_init): Initialize "vX" aliases as
4460 pseudo-registers. Restore registration of
4461 rs6000_pseudo_register_reggroup_p with
4462 set_tdesc_pseudo_register_reggroup_p.
4463
4464 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
4465
4466 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
4467 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
4468 set_gdbarch_num_pseudo_regs.
4469
4470 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4471
4472 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
4473 Remove arg prefixname, add do_set and do_show.
4474 Add member functions set_list and show_list.
4475 * cli/cli-style.c (class cli_style_option): Update accordingly.
4476 (style_set_list): Move to file scope.
4477 (style_show_list): Likewise.
4478 (set_style): Call help_list.
4479 (show_style): Call cmd_show_list.
4480 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
4481 Update to use the new macro.
4482
4483 2019-10-12 Joel Brobecker <brobecker@adacore.com>
4484
4485 * ada-lang.c (_initialize_ada_language): Expand the help text
4486 for the "catch exception" command.
4487
4488 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4489
4490 * symtab.c (matching_obj_sections): Initialize obj,
4491 declare it closer to its usage.
4492
4493 2019-01-10 Tom Tromey <tom@tromey.com>
4494
4495 * thread-iter.h (inf_threads_iterator): Use next_iterator.
4496 (basic_inf_threads_range): Remove.
4497 (inf_threads_range, inf_non_exited_threads_range)
4498 (safe_inf_threads_range): Use next_adapter.
4499
4500 2019-01-10 Keith Seitz <keiths@redhat.com>
4501
4502 PR gdb/23712
4503 PR symtab/23010
4504 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
4505 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
4506
4507 2019-01-10 Keith Seitz <keiths@redhat.com>
4508
4509 PR gdb/23712
4510 PR symtab/23010
4511 * dictionary.c (pending_to_vector): Remove.
4512 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
4513 Remove _1 suffix, replacing functions of the same name. Update
4514 all callers.
4515 (dict_create_hashed, dict_create_hashed_expandable)
4516 (dict_create_linear, dict_create_linear_expandable, dict_free)
4517 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
4518 Make functions static.
4519
4520 2019-01-10 Keith Seitz <keiths@redhat.com>
4521
4522 PR gdb/23712
4523 PR symtab/23010
4524 * dictionary.h (struct dictionary): Replace declaration with
4525 multidictionary.
4526 (dict_create_hashed, dict_create_hashed_expandable)
4527 (dict_create_linear, dict_create_linear_expandable)
4528 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
4529 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
4530 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
4531 taking multidictionary argument.
4532 [ALL_DICT_SYMBOLS]: Update for multidictionary.
4533 * block.h (struct block) <dict>: Change to multidictionary
4534 and rename `multidict'.
4535 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
4536 symmisc.c: Update all dictionary references to multidictionary.
4537
4538 2019-01-10 Keith Seitz <keiths@redhat.com>
4539
4540 PR gdb/23712
4541 PR symtab/23010
4542 * dictionary.c: Include unordered_map.
4543 (pending_to_vector): New function.
4544 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
4545 Rewrite the non-"_1" functions to take vector instead
4546 of linked list.
4547 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
4548 "new" _1 versions of the same name.
4549 (multidictionary): Define.
4550 (std::hash<enum language): New definition.
4551 (collate_pending_symbols_by_language, mdict_create_hashed)
4552 (mdict_create_hashed_expandable, mdict_create_linear)
4553 (mdict_create_linear_expandable, mdict_free)
4554 (find_language_dictionary, create_new_language_dictionary)
4555 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
4556 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
4557 (mdict_size, mdict_empty): New functions.
4558 * dictionary.h (mdict_iterator): Define.
4559
4560 2019-01-10 Pedro Alves <palves@redhat.com>
4561
4562 * breakpoint.c (read_uploaded_action)
4563 (create_tracepoint_from_upload): Adjust to use
4564 gdb::unique_xmalloc_ptr.
4565 * ctf.c (ctf_write_uploaded_tp):
4566 (SET_ARRAY_FIELD): Use emplace_back.
4567 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
4568 * tracefile-tfile.c (tfile_write_uploaded_tp):
4569 * tracepoint.c (parse_tracepoint_definition): Adjust to use
4570 gdb::unique_xmalloc_ptr.
4571 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
4572 at_string, cond_string, cmd_strings>: Replace char pointers
4573 with gdb::unique_xmalloc_ptr.
4574
4575 2019-01-10 Pedro Alves <palves@redhat.com>
4576
4577 * solib-target.c (library_list_start_library): Don't xstrdup name.
4578
4579 2019-01-10 Pedro Alves <palves@redhat.com>
4580
4581 * mdebugread.c (parse_partial_symbols): Use
4582 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
4583
4584 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
4585
4586 * linux-fork.c (scoped_switch_fork_info)
4587 <~scoped_switch_fork_info>: Fix incorrect variable name.
4588
4589 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
4590
4591 * linux-fork.c (scoped_switch_fork_info)
4592 <scoped_switch_fork_info>: Make explicit.
4593 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
4594
4595 2019-01-10 Tom Tromey <tom@tromey.com>
4596
4597 * objfiles.h (objfile::reset_psymtabs): Update.
4598 * objfiles.c (objfile::objfile): Update.
4599 * psymtab.h (psymtab_storage::obstack): Update.
4600 (psymtab_storage::m_obstack): Use gdb::optional.
4601 (class psymtab_storage): Update comment. Remove objfile
4602 parameter.
4603 * psymtab.c (psymtab_storage::psymtab_storage): Update.
4604
4605 2019-01-10 Tom Tromey <tom@tromey.com>
4606
4607 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
4608 <free_psymtabs>: Now private.
4609 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
4610 (allocate_psymtab): Use new method.
4611
4612 2019-01-10 Tom Tromey <tom@tromey.com>
4613
4614 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
4615 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
4616 * mdebugread.c (parse_partial_symbols): Use
4617 allocate_dependencies.
4618 * dwarf2read.c (dwarf2_create_include_psymtab): Use
4619 allocate_dependencies.
4620 (process_psymtab_comp_unit_reader)
4621 (build_type_psymtab_dependencies): Likewise.
4622 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
4623
4624 2019-01-10 Tom Tromey <tom@tromey.com>
4625
4626 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
4627 PSYMBOL_SET_LANGUAGE.
4628 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
4629
4630 2019-01-10 Tom Tromey <tom@tromey.com>
4631
4632 * psymtab.h (psymtab_storage::obstack): New method.
4633 <m_obstack>: Rename from obstack; now private.
4634 * psymtab.c (psymtab_storage): Update.
4635 * dwarf2read.c (create_addrmap_from_index)
4636 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
4637 Update.
4638
4639 2019-01-10 Tom Tromey <tom@tromey.com>
4640
4641 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
4642 * objfiles.h (objfile::reset_psymtabs): New method.
4643
4644 2019-01-10 Tom Tromey <tom@tromey.com>
4645
4646 * symmisc.c (print_symbol_bcache_statistics): Update.
4647 (print_objfile_statistics): Update.
4648 * symfile.c (reread_symbols): Update.
4649 * psymtab.h (class psymtab_storage): New.
4650 * psymtab.c (psymtab_storage): New constructor.
4651 (~psymtab_storage): New destructor.
4652 (require_partial_symbols): Update.
4653 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
4654 (find_pc_sect_psymtab, find_pc_sect_psymbol)
4655 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
4656 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
4657 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
4658 (start_psymtab_common, end_psymtab_common)
4659 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
4660 (allocate_psymtab): Update.
4661 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
4662 Update.
4663 (dump_psymtab_addrmap, maintenance_print_psymbols)
4664 (maintenance_check_psymtabs): Update.
4665 (class objfile_psymtabs): Move to objfiles.h.
4666 * psympriv.h (discard_psymtab): Now inline.
4667 (psymtab_discarder::psymtab_discarder): Update.
4668 (psymtab_discarder::~psymtab_discarder): Update.
4669 (ALL_OBJFILE_PSYMTABS): Rewrite.
4670 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
4671 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
4672 Remove fields.
4673 <partial_symtabs>: New field.
4674 (class objfile_psymtabs): Move from psymtab.h. Update.
4675 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
4676 psymbol_cache.
4677 (objfile::~objfile): Don't destroy psymbol_cache.
4678 * mdebugread.c (parse_partial_symbols): Update.
4679 * dwarf2read.c (create_addrmap_from_index)
4680 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
4681 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
4682 (add_partial_subprogram, dwarf2_ranges_read): Update.
4683 * dwarf-index-write.c (write_address_map)
4684 (write_one_signatured_type, recursively_write_psymbols)
4685 (class debug_names, class debug_names, write_psymtabs_to_index):
4686 Update.
4687
4688 2019-01-10 Tom Tromey <tom@tromey.com>
4689
4690 * symtab.h (SYMBOL_SET_NAMES): Update.
4691 (symbol_set_names): Update.
4692 (MSYMBOL_SET_NAMES): Update.
4693 * symtab.c (symbol_set_names): Change argument to be an
4694 objfile_per_bfd_storage.
4695 * psymtab.c (add_psymbol_to_bcache): Update.
4696 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
4697
4698 2019-01-10 Tom Tromey <tom@tromey.com>
4699
4700 * symtab.c (create_demangled_names_hash): Change argument to be an
4701 objfile_per_bfd_storage.
4702 (symbol_set_names): Update.
4703
4704 2019-01-10 Tom Tromey <tom@tromey.com>
4705
4706 * xcoffread.c (xcoff_initial_scan): Unconditionally call
4707 init_psymbol_list.
4708 * psymtab.c (init_psymbol_list): Do nothing if already called.
4709 * psympriv.h (init_psymbol_list): Add comment.
4710 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
4711 init_psymbol_list.
4712 * dbxread.c (dbx_symfile_read): Unconditionally call
4713 init_psymbol_list.
4714
4715 2019-01-10 Tom Tromey <tom@tromey.com>
4716
4717 * xcoffread.c (scan_xcoff_symtab): Update.
4718 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
4719 "where".
4720 * mdebugread.c (parse_partial_symbols)
4721 (handle_psymbol_enumerators): Update.
4722 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
4723 * dbxread.c (read_dbx_symtab): Update.
4724 * psympriv.h (psymbol_placement): New enum.
4725 (add_psymbol_to_list): Update.
4726
4727 2019-01-10 Tom Tromey <tom@tromey.com>
4728
4729 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
4730 static_psymbols parameters.
4731 (scan_xcoff_symtab): Update.
4732 * psymtab.c (start_psymtab_common): Remove global_psymbols and
4733 static_psymbols parameters.
4734 * psympriv.h (start_psymtab_common): Update.
4735 * mdebugread.c (parse_partial_symbols): Update.
4736 * dwarf2read.c (create_partial_symtab): Update.
4737 * dbxread.c (read_dbx_symtab): Update.
4738 (start_psymtab): Remove global_psymbols and static_psymbols
4739 parameters.
4740
4741 2019-01-10 Tom Tromey <tom@tromey.com>
4742
4743 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
4744 * psymtab.c (allocate_psymtab): Add comment.
4745 * psympriv.h (allocate_psymtab): Add comment.
4746 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
4747 initializations.
4748 * dbxread.c (dbx_end_psymtab): Remove some initializations.
4749
4750 2019-01-10 Tom Tromey <tom@tromey.com>
4751
4752 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
4753 Don't declare.
4754 * mipsread.c: Include mdebugread.h.
4755 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
4756 Declare.
4757 * elfread.c: Include mdebugread.h.
4758
4759 2019-01-09 Tom Tromey <tom@tromey.com>
4760
4761 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
4762 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
4763 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
4764 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
4765 (psym_lookup_symbol, psym_find_last_source_symtab)
4766 (psym_forget_cached_source_info, psym_print_stats)
4767 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
4768 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
4769 (psym_map_matching_symbols, psym_expand_symtabs_matching)
4770 (psym_find_compunit_symtab_by_address)
4771 (maintenance_print_psymbols, maintenance_info_psymtabs)
4772 (maintenance_check_psymtabs): Use ranged for.
4773 * psymtab.h (class objfile_psymtabs): New.
4774 (require_partial_symbols): Return objfile_psymtabs.
4775 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
4776
4777 2019-01-09 Tom Tromey <tom@tromey.com>
4778
4779 * symfile.c (overlay_invalidate_all, find_pc_overlay)
4780 (find_pc_mapped_section, list_overlays_command)
4781 (map_overlay_command, unmap_overlay_command)
4782 (simple_overlay_update): Use all_objfiles.
4783 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
4784 * printcmd.c (info_symbol_command): Use all_objfiles.
4785 * objfiles.h (ALL_OBJSECTIONS): Remove.
4786 * maint.c (maintenance_translate_address): Use all_objfiles.
4787 * gcore.c (gcore_create_callback): Use all_objfiles.
4788 (objfile_find_memory_regions): Likewise.
4789
4790 2019-01-09 Tom Tromey <tom@tromey.com>
4791
4792 * symtab.c (find_line_symtab, info_sources_command)
4793 (make_source_files_completion_list): Use objfile_compunits.
4794 * source.c (select_source_symtab): Use objfile_compunits.
4795 * objfiles.h (struct objfile): Update comment.
4796 (ALL_OBJFILES): Remove.
4797 (ALL_FILETABS): Remove.
4798 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
4799 objfile_compunits.
4800
4801 2019-01-09 Tom Tromey <tom@tromey.com>
4802
4803 * symmisc.c (print_objfile_statistics, dump_objfile)
4804 (maintenance_print_symbols): Use compunit_filetabs.
4805 * source.c (forget_cached_source_info_for_objfile): Use
4806 compunit_filetabs.
4807 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
4808 (ALL_FILETABS): Use compunit_filetabs.
4809 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
4810 * coffread.c (coff_symtab_read): Use compunit_filetabs.
4811
4812 2019-01-09 Tom Tromey <tom@tromey.com>
4813
4814 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
4815 (compunit_filetabs): New.
4816 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
4817 compunit_filetabs.
4818 (info_sources_command, make_source_files_completion_list): Remove
4819 declaration.
4820 * symmisc.c (print_objfile_statistics, dump_objfile)
4821 (maintenance_print_symbols): Remove declaration.
4822 (maintenance_info_symtabs): Use compunit_filetabs.
4823 (maintenance_info_line_tables): Likewise.
4824 * source.c (select_source_symtab): Change local variable name.
4825 (forget_cached_source_info_for_objfile): Remove declaration.
4826 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
4827 * objfiles.c (objfile_relocate1): Remove declaration.
4828 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
4829 declaration.
4830 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
4831 * coffread.c (coff_symtab_read): Remove declaration.
4832 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
4833 compunit_filetabs.
4834
4835 2019-01-09 Tom Tromey <tom@tromey.com>
4836
4837 * symtab.c (lookup_objfile_from_block)
4838 (find_pc_sect_compunit_symtab, search_symbols)
4839 (default_collect_symbol_completion_matches_break_on): Use
4840 objfile_compunits.
4841 * objfiles.h (ALL_COMPUNITS): Remove.
4842 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
4843 * cp-support.c (add_symbol_overload_list_qualified): Use
4844 objfile_compunits.
4845 * ada-lang.c (ada_collect_symbol_completion_matches)
4846 (ada_add_global_exceptions): Use objfile_compunits.
4847
4848 2019-01-09 Tom Tromey <tom@tromey.com>
4849
4850 * source.c (select_source_symtab)
4851 (forget_cached_source_info_for_objfile): Remove declaration.
4852 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
4853 declaration.
4854 * maint.c (count_symtabs_and_blocks): Remove declaration.
4855 * cp-support.c (add_symbol_overload_list_qualified): Remove
4856 declaration.
4857 * coffread.c (coff_symtab_read): Remove declaration.
4858 * symtab.c (lookup_symbol_in_objfile_symtabs)
4859 (basic_lookup_transparent_type_1): Use objfile_compunits.
4860 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
4861 (info_sources_command, search_symbols)
4862 (default_collect_symbol_completion_matches_break_on)
4863 (make_source_files_completion_list): Remove declaration.
4864 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
4865 (ada_collect_symbol_completion_matches)
4866 (ada_add_global_exceptions): Remove declaration.
4867 * linespec.c (iterate_over_all_matching_symtabs): Use
4868 objfile_compunits.
4869 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
4870 (class objfile_compunits): New.
4871 (ALL_COMPUNITS): Use objfile_compunits.
4872 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
4873 (maintenance_check_symtabs, maintenance_info_line_tables): Use
4874 objfile_compunits.
4875 * objfiles.c (objfile_relocate1): Use objfile_compunits.
4876
4877 2019-01-09 Tom Tromey <tom@tromey.com>
4878
4879 * symtab.c (search_symbols)
4880 (default_collect_symbol_completion_matches_break_on): Use
4881 objfile_msymbols.
4882 * ada-lang.c (ada_lookup_simple_minsym)
4883 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
4884 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
4885 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
4886 objfile_msymbols.
4887 * coffread.c (coff_symfile_read): Use objfile_msymbols.
4888 * symmisc.c (dump_msymbols): Use objfile_msymbols.
4889 * objc-lang.c (find_methods): Use objfile_msymbols.
4890 (info_selectors_command, info_classes_command): Likewise.
4891 * stabsread.c (scan_file_globals): Use objfile_msymbols.
4892 * objfiles.h (class objfile_msymbols): New.
4893 (ALL_OBJFILE_MSYMBOLS): Remove.
4894 (ALL_MSYMBOLS): Remove.
4895
4896 2019-01-09 Tom Tromey <tom@tromey.com>
4897
4898 * common/next-iterator.h (next_adapter): Add Iterator template
4899 parameter.
4900 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
4901 (class all_objfiles_safe): New.
4902 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
4903 * objfiles.c (put_objfile_before): Update comment.
4904 (add_separate_debug_objfile): Likewise.
4905 (free_all_objfiles): Use all_objfiles_safe.
4906 (objfile_purge_solibs): Likewise.
4907
4908 2019-01-09 Tom Tromey <tom@tromey.com>
4909
4910 * symtab.c (iterate_over_symtabs, matching_obj_sections)
4911 (expand_symtab_containing_pc, lookup_static_symbol)
4912 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
4913 (find_symbol_at_address, find_line_symtab, find_main_name): Use
4914 all_objfiles.
4915 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
4916 * breakpoint.c (create_overlay_event_breakpoint)
4917 (create_longjmp_master_breakpoint)
4918 (create_std_terminate_master_breakpoint)
4919 (create_exception_master_breakpoint): Use all_objfiles.
4920 * linux-thread-db.c (try_thread_db_load_from_pdir)
4921 (has_libpthread): Use all_objfiles.
4922 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
4923 * linespec.c (iterate_over_all_matching_symtabs)
4924 (search_minsyms_for_name): Use all_objfiles.
4925 * maint.c (maintenance_info_sections): Use all_objfiles.
4926 * main.c (captured_main_1): Use all_objfiles.
4927 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
4928 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
4929 * guile/scm-pretty-print.c
4930 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
4931 * solib-spu.c (append_ocl_sos): Use all_objfiles.
4932 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
4933 (maintenance_print_msymbols): Use all_objfiles.
4934 * source.c (select_source_symtab): Use all_objfiles.
4935 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
4936 * symfile.c (remove_symbol_file_command)
4937 (expand_symtabs_matching, map_symbol_filenames): Use
4938 all_objfiles.
4939 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
4940 all_objfiles.
4941 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
4942 * objc-lang.c (find_methods): Use all_objfiles.
4943 * objfiles.c (have_partial_symbols, have_full_symbols)
4944 (have_minimal_symbols, qsort_cmp)
4945 (default_iterate_over_objfiles_in_search_order): Use
4946 all_objfiles.
4947 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
4948 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
4949 (maintenance_check_psymtabs): Use all_objfiles.
4950 (ALL_PSYMTABS): Remove.
4951 * compile/compile-object-run.c (do_module_cleanup): Use
4952 all_objfiles.
4953 * blockframe.c (find_pc_partial_function): Use all_objfiles.
4954 * cp-support.c (add_symbol_overload_list_qualified): Use
4955 all_objfiles.
4956 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
4957 Use all_objfiles.
4958 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
4959 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
4960 all_objfiles.
4961 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
4962 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
4963 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
4964 Uses all_objfiles.
4965 * solib.c (solib_read_symbols): Use all_objfiles
4966
4967 2019-01-09 Tom Tromey <tom@tromey.com>
4968
4969 * probe.c (parse_probes_in_pspace): Use all_objfiles.
4970 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
4971 all_objfiles.
4972 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
4973 * symmisc.c (print_symbol_bcache_statistics)
4974 (print_objfile_statistics, maintenance_print_objfiles)
4975 (maintenance_info_symtabs, maintenance_check_symtabs)
4976 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
4977 all_objfiles.
4978 * source.c (forget_cached_source_info): Use all_objfiles.
4979 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
4980 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
4981 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
4982 * objfiles.c (update_section_map): Use all_objfiles.
4983 (shared_objfile_contains_address_p): Likewise.
4984 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
4985 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
4986
4987 2019-01-09 Tom Tromey <tom@tromey.com>
4988
4989 * common/next-iterator.h: New file.
4990 * objfiles.h (class all_objfiles): New.
4991 (struct objfile_iterator): New.
4992
4993 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4994
4995 * NEWS: Move the description of the changed "frame", "select-frame",
4996 and "info frame" commands to the Changed commands section.
4997
4998 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
4999
5000 * gdbtypes.c (check_stub_method_group): Remove handling of old
5001 mangling schemes.
5002 * linespec.c (find_methods): Likewise.
5003 * stabsread.c (read_member_functions): Likewise.
5004 * valops.c (search_struct_method): Likewise.
5005 (value_struct_elt_for_reference): Likewise.
5006 * NEWS: Mention this change.
5007
5008 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
5009
5010 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
5011 print_source_lines.
5012 * source.c (print_source_lines_base): Update line number check.
5013 (print_source_lines): New function.
5014 (source_lines_range::source_lines_range): New function.
5015 * source.h (class source_lines_range): New class.
5016 (print_source_lines): New declaration.
5017
5018 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5019
5020 * linespec.c (linespec_state_destructor): Free self->canonical_names.
5021
5022 2019-01-08 Tom Tromey <tom@tromey.com>
5023 Simon Marchi <simon.marchi@ericsson.com>
5024
5025 PR gdb/24060
5026 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
5027 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
5028 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
5029 * f-exp.y (DOLLAR_VARIABLE): Likewise.
5030 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
5031 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
5032
5033 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
5034
5035 * source.c (select_source_symtab): Move header comment to
5036 declaration in source.h.
5037 (forget_cached_source_info_for_objfile): Likewise.
5038 (forget_cached_source_info): Likewise.
5039 (identify_source_line): Likewise.
5040 * source.h (identify_source_line): Move declaration from symtab.h
5041 and add comment from source.c
5042 (print_source_lines): Likewise.
5043 (forget_cached_source_info_for_objfile): Likewise.
5044 (forget_cached_source_info): Likewise.
5045 (select_source_symtab): Likewise.
5046 (enum print_source_lines_flag): Move definition from symtab.h.
5047 * symtab.h (identify_source_line): Move declaration to source.h.
5048 (print_source_lines): Likewise.
5049 (forget_cached_source_info_for_objfile): Likewise.
5050 (forget_cached_source_info): Likewise.
5051 (select_source_symtab): Likewise.
5052 (enum print_source_lines_flag): Move definition to source.h.
5053 * tui/tui-hooks.c: Add 'source.h' include.
5054
5055 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
5056
5057 * source.c (print_source_lines_base): Handle requests to print
5058 reverse line number sequences, and guard against empty lines
5059 string.
5060
5061 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
5062
5063 * source.c (print_source_lines_base): Fix skip of '\r' if next
5064 character is '\n'.
5065
5066 2019-01-06 Tom Tromey <tom@tromey.com>
5067
5068 * c-exp.y (struct c_parse_state) <macro_original_text,
5069 expansion_obstack>: New member.
5070 (macro_original_text, expansion_obstack): Remove globals.
5071 (scan_macro_expansion, scanning_macro_expansion)
5072 (finished_macro_expansion): Update.
5073 (scan_macro_cleanup): Remove.
5074 (yylex, c_parse): Update.
5075
5076 2019-01-06 Tom Tromey <tom@tromey.com>
5077
5078 * c-exp.y (struct c_parse_state) <strings>: New member.
5079 (operator_stoken): Update.
5080
5081 2019-01-06 Tom Tromey <tom@tromey.com>
5082
5083 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
5084 (union type_stack_elt) <typelist_val>: Now a pointer to
5085 std::vector.
5086 (type_stack_cleanup): Don't declare.
5087 (push_typelist): Update.
5088 * parse.c (pop_typelist): Return a std::vector.
5089 (push_typelist): Take a std::vector.
5090 (follow_types): Update. Do not free args.
5091 (type_stack_cleanup): Remove.
5092 * c-exp.y (struct c_parse_state): New.
5093 (cpstate): New global.
5094 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
5095 (nonempty_typelist): Update.
5096 (func_mod): Create a new vector.
5097 (c_parse): Create a c_parse_state.
5098 (check_parameter_typelist): Do not delete params.
5099 (function_method): Update. Do not delete type_list.
5100
5101 2019-01-06 Tom Tromey <tom@tromey.com>
5102
5103 PR gdb/28155:
5104 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
5105 check_typedef.
5106 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
5107 (print_return_value): Likewise.
5108
5109 2019-01-05 Tom Tromey <tom@tromey.com>
5110
5111 * contrib/cleanup_check.py: Remove.
5112 * contrib/gcc-with-excheck: Remove.
5113 * contrib/exsummary.py: Remove.
5114 * contrib/excheck.py: Remove.
5115
5116 2019-01-05 Joel Brobecker <brobecker@adacore.com>
5117
5118 * thread.c (delete_thread_1): Add gdb_assert that THR is not
5119 NULL. Initialize tpprev to NULL instead of assigning it
5120 to NULL on the next statement.
5121 * windows-nat.c (windows_delete_thread): Remove check for
5122 main_thread_id before printing thread exit notifications.
5123 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
5124 Remove thread ID check against main_thread_id.
5125 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
5126 windows_delete_thread.
5127 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
5128
5129 2019-01-04 Tom Tromey <tom@tromey.com>
5130
5131 * compile/compile.c (_initialize_compile): Use upper case for
5132 metasyntactic variables.
5133 * symmisc.c (_initialize_symmisc): Use upper case for
5134 metasyntactic variables.
5135 * psymtab.c (_initialize_psymtab): Use upper case for
5136 metasyntactic variables.
5137 * demangle.c (demangle_command): Use upper case for metasyntactic
5138 variables.
5139 (_initialize_demangler): Likewise.
5140 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
5141 variables.
5142
5143 2019-01-03 Tom Tromey <tom@tromey.com>
5144
5145 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
5146
5147 2019-01-03 Tom Tromey <tom@tromey.com>
5148
5149 * python/py-symtab.c (salpy_str): Update.
5150 (struct salpy_sal_object) <symtab>: Now a PyObject.
5151 (salpy_dealloc): Update.
5152 (del_objfile_sal): Use gdbpy_ref.
5153
5154 2019-01-03 Tom Tromey <tom@tromey.com>
5155
5156 * python/py-type.c (convert_field): Use new_reference. Return
5157 gdbpy_ref.
5158 (make_fielditem): Return gdbpy_ref.
5159 (typy_fields): Update.
5160 (typy_getitem): Update.
5161 (field_name): Return gdbpy_ref. Use new_reference.
5162 (typy_iterator_iternext): Update.
5163
5164 2019-01-03 Tom Tromey <tom@tromey.com>
5165
5166 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
5167
5168 2019-01-03 Tom Tromey <tom@tromey.com>
5169
5170 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
5171 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
5172 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
5173 (pspy_set_frame_filters, pspy_set_frame_unwinders)
5174 (pspy_set_type_printers): Likewise.
5175 * python/py-function.c (fnpy_init): Use gdbpy_ref.
5176 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
5177 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
5178 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
5179 (objfpy_set_type_printers): Likewise.
5180
5181 2019-01-03 Tom Tromey <tom@tromey.com>
5182
5183 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
5184 (gdbpy_print_stack): Use gdbpy_err_fetch.
5185 * python/python-internal.h (class gdbpy_err_fetch): New class.
5186 (class gdbpy_enter) <m_error_type, m_error_value,
5187 m_error_traceback>: Remove.
5188 <m_error>: New member.
5189 (gdbpy_exception_to_string): Don't declare.
5190 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
5191 * python/py-value.c (convert_value_from_python): Use
5192 gdbpy_err_fetch.
5193 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
5194 gdbpy_exception_to_string.
5195 (gdbpy_handle_exception): Use gdbpy_err_fetch.
5196 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
5197 gdbpy_err_fetch.
5198
5199 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
5200
5201 * linux-nat.c (delete_lwp_cleanup): Delete.
5202 (struct lwp_deleter): New struct.
5203 (lwp_info_up): New typedef.
5204 (linux_nat_target::follow_fork): Delete cleanup, and make use of
5205 lwp_info_up.
5206
5207 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
5208
5209 * linux-fork.c (class scoped_switch_fork_info): New class.
5210 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
5211
5212 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
5213
5214 * valops.c (find_overload_match): Remove use of null_cleanup, and
5215 calls to do_cleanups.
5216
5217 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
5218
5219 * compile/compile-cplus-types.c
5220 (compile_cplus_instance::decl_name): Handle changes to
5221 cp_func_name.
5222 * cp-support.c (cp_func_name): Update header comment, update
5223 return type.
5224 * cp-support.h (cp_func_name): Update return type in declaration.
5225 * valops.c (find_overload_match): Move temp_func local to top
5226 level of function and change its type. Use temp_func to hold and
5227 delete temporary string obtained from cp_func_name.
5228
5229 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
5230
5231 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
5232 gdb::char_vector, remove cleanup, and update uses of `msg`.
5233
5234 2019-01-03 Jim Wilson <jimw@sifive.com>
5235
5236 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
5237
5238 2019-01-02 Tom Tromey <tom@tromey.com>
5239
5240 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
5241 (tdesc_parse_xml): Remove cleanups.
5242 * target-descriptions.h (make_cleanup_free_target_description):
5243 Don't declare.
5244 (target_desc_deleter): New struct.
5245 (target_desc_up): New typedef.
5246 * target-descriptions.c (target_desc_deleter::operator()): Rename
5247 from free_target_description.
5248 (make_cleanup_free_target_description): Remove.
5249
5250 2019-01-02 Tom Tromey <tom@tromey.com>
5251
5252 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
5253 constructor, destructor.
5254 (linespec_parser): Remove typedef.
5255 (~linespec_parser): Rename from linespec_parser_delete.
5256 (linespec_lex_to_end, linespec_complete_label)
5257 (linespec_complete): Update.
5258 (decode_line_full): Remove cleanups.
5259 (decode_line_1): Update.
5260
5261 2019-01-02 Tom Tromey <tom@tromey.com>
5262
5263 * python/python-internal.h (inferior_to_inferior_object): Change
5264 return type.
5265 * python/py-exitedevent.c (create_exited_event_object): Update.
5266 * python/py-inferior.c (inferior_to_inferior_object): Return
5267 gdbpy_ref.
5268 (python_new_inferior, python_inferior_deleted)
5269 (thread_to_thread_object, delete_thread_object)
5270 (build_inferior_list, gdbpy_selected_inferior): Update.
5271 * python/py-infthread.c (create_thread_object): Update. Also fail
5272 if inferior_to_inferior_object fails.
5273
5274 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
5275
5276 * inferior.h (class inferior) <displaced_step_state>: New field.
5277 * infrun.h (struct displaced_step_state): Move here from
5278 infrun.c. Initialize fields, add constructor.
5279 <inf>: Remove field.
5280 <reset>: New method.
5281 * infrun.c (struct displaced_step_inferior_state): Move to
5282 infrun.h.
5283 (displaced_step_inferior_states): Remove.
5284 (get_displaced_stepping_state): Adust.
5285 (displaced_step_in_progress_any_inferior): Adjust.
5286 (displaced_step_in_progress_thread): Adjust.
5287 (displaced_step_in_progress): Adjust.
5288 (add_displaced_stepping_state): Remove.
5289 (get_displaced_step_closure_by_addr): Adjust.
5290 (remove_displaced_stepping_state): Remove.
5291 (infrun_inferior_exit): Call displaced_step_state.reset.
5292 (use_displaced_stepping): Don't check for NULL.
5293 (displaced_step_prepare_throw): Call
5294 get_displaced_stepping_state.
5295 (displaced_step_fixup): Don't check for NULL.
5296 (prepare_for_detach): Don't check for NULL.
5297
5298 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5299
5300 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
5301 in case of call that did not complete.
5302
5303 2019-01-02 Andrey Utkin <autkin@undo.io>
5304
5305 * symfile.c (find_separate_debug_file): Fix search of debug files for
5306 remote debuggee.
5307
5308 2019-01-02 Tom Tromey <tom@tromey.com>
5309
5310 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
5311 indentation.
5312 * python/py-frame.c (frapy_older): Remove cast.
5313 (frapy_newer): Likewise.
5314 * python/py-breakpoint.c (local_setattro): Remove cast.
5315 * python/py-arch.c (archpy_name): Remove local variable.
5316 * python/py-type.c (gdbpy_lookup_type): Remove cast.
5317
5318 2019-01-02 Joel Brobecker <brobecker@adacore.com>
5319
5320 * unittests/basic_string_view/element_access/char/empty.cc:
5321 Fix year range in copyright header.
5322
5323 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
5324
5325 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
5326 Delete.
5327 <operator==>: Update with for removed field.
5328 <hash>: Likewise.
5329 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
5330 <isa_features>: ...this.
5331 <abi_features>: New field.
5332 (riscv_isa_flen): Update comment.
5333 (riscv_abi_xlen): New declaration.
5334 (riscv_abi_flen): New declaration.
5335 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
5336 isa_features.
5337 (riscv_abi_xlen): New function.
5338 (riscv_isa_flen): Update to get answer from isa_features.
5339 (riscv_abi_flen): New function.
5340 (riscv_has_fp_abi): Update to get answer from abi_features.
5341 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
5342 xlen and flen.
5343 (riscv_call_info) <xlen, flen>: Update comment.
5344 (riscv_call_arg_struct): Remove invalid assertions
5345 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
5346 is removed.
5347 (riscv_gdbarch_init): Gather isa features and abi features
5348 separately, ensure both match on the gdbarch when reusing an old
5349 gdbarch. Relax an error check to allow 32-bit abi float to run on
5350 a target with 64-bit float hardware.
5351
5352 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5353
5354 * source.c (search_command_helper): Stop reverse search
5355 when line 1 has been searched.
5356
5357 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5358
5359 * record-full.c (record_full_base_target::close): Rewrite
5360 record_full_core_buf_list free logic.
5361
5362 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5363
5364 * break-catch-syscall.c (print_one_catch_syscall): xfree
5365 the last text.
5366
5367 2019-01-01 Joel Brobecker <brobecker@adacore.com>
5368
5369 * top.c (print_gdb_version): Update Copyright year in version
5370 message.
5371
5372 2019-01-01 Joel Brobecker <brobecker@adacore.com>
5373
5374 Update copyright year range in all GDB files.
5375
5376 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
5377
5378 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
5379
5380 For older changes see ChangeLog-2018.
5381 \f
5382 Local Variables:
5383 mode: change-log
5384 left-margin: 8
5385 fill-column: 74
5386 version-control: never
5387 coding: utf-8
5388 End:
5389
This page took 0.134187 seconds and 5 git commands to generate.