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