Fortran function calls with arguments
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2019-03-06 Richard Bunt <richard.bunt@arm.com>
2 Dirk Schubert <dirk.schubert@arm.com>
3 Chris January <chris.january@arm.com>
4
5 * eval.c (evaluate_subexp_standard): Call Fortran argument
6 wrapping logic.
7 * f-lang.c (struct value): A value which can be passed into a
8 Fortran function call.
9 (fortran_argument_convert): Wrap Fortran arguments in a pointer
10 where appropriate.
11 (struct type): Value ready for a Fortran function call.
12 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
13 is needed.
14 * f-lang.h (fortran_argument_convert): Declaration.
15 (fortran_preserve_arg_pointer): Declaration.
16 * infcall.c (value_arg_coerce): Call Fortran argument logic.
17
18 2019-03-05 Tom Tromey <tromey@adacore.com>
19
20 * python/py-prettyprint.c (print_string_repr): Remove #if.
21 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
22
23 2019-03-05 Tom Tromey <tromey@adacore.com>
24
25 * target.c (the_dummy_target): Move later. Change type to
26 "dummy_target".
27 (initialize_targets): Don't initialize the_dummy_target.
28
29 2019-03-05 Tom Tromey <tromey@adacore.com>
30
31 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
32 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
33
34 2019-03-05 Tom Tromey <tromey@adacore.com>
35
36 * windows-nat.c (windows_nat_target::attach)
37 (windows_nat_target::detach): Don't call gdb_flush.
38 * valprint.c (generic_val_print, val_print, val_print_string):
39 Don't call gdb_flush.
40 * utils.c (defaulted_query): Don't call gdb_flush.
41 * typeprint.c (print_type_scalar): Don't call gdb_flush.
42 * target.c (target_announce_detach): Don't call gdb_flush.
43 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
44 * remote.c (extended_remote_target::attach): Don't call
45 gdb_flush.
46 * procfs.c (procfs_target::detach): Don't call gdb_flush.
47 * printcmd.c (do_examine): Don't call gdb_flush.
48 (info_display_command): Don't call gdb_flush.
49 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
50 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
51 * memattr.c (info_mem_command): Don't call gdb_flush.
52 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
53 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
54 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
55 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
56 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
57 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
58 (gnu_nat_target::detach): Don't call gdb_flush.
59 * f-valprint.c (f_val_print): Don't call gdb_flush.
60 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
61 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
62 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
63 gdb_flush.
64 * c-valprint.c (c_val_print): Don't call gdb_flush.
65 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
66
67 2019-03-05 Tom Tromey <tromey@adacore.com>
68
69 * varobj.c (update_dynamic_varobj_children): Update.
70 (install_default_visualizer): Use reset, not release.
71 * value.c (set_internalvar): Update.
72 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
73 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
74 ATTRIBUTE_UNUSED_RESULT.
75
76 2019-03-05 Tom Tromey <tromey@adacore.com>
77
78 * remote.c (class scoped_remote_fd) <release>: Add
79 ATTRIBUTE_UNUSED_RESULT.
80
81 2019-03-05 Tom Tromey <tromey@adacore.com>
82
83 * macroexp.c (struct macro_buffer) <release>: Add
84 ATTRIBUTE_UNUSED_RESULT.
85
86 2019-03-05 Tom Tromey <tromey@adacore.com>
87
88 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
89 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
90 ATTRIBUTE_UNUSED_RESULT.
91
92 2019-03-05 Tom Tromey <tromey@adacore.com>
93
94 * common/scoped_fd.h (class scoped_fd) <release>: Add
95 ATTRIBUTE_UNUSED_RESULT.
96
97 2019-03-05 Tom Tromey <tromey@adacore.com>
98
99 * parser-defs.h (struct parser_state) <release>: Add
100 ATTRIBUTE_UNUSED_RESULT.
101
102 2019-03-05 Tom Tromey <tromey@adacore.com>
103
104 * utils.h (class gdb_argv) <release>: Add
105 ATTRIBUTE_UNUSED_RESULT.
106 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
107
108 2019-03-02 Eli Zaretskii <eliz@gnu.org>
109
110 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
111 for-loop range, to avoid compiler warnings.
112
113 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
114 avoid compiler warnings about unused variables.
115
116 * NEWS: Mention end of support for native debugging on MS-Windows
117 before XP.
118
119 PR gdb/24292
120 * common/netstuff.c:
121 * gdbserver/gdbreplay.c
122 * gdbserver/remote-utils.c:
123 * ser-tcp.c:
124 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
125 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
126 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
127 'getaddrinfo' and 'freeaddrinfo' were not available before
128 Windows XP, and mingw.org's MinGW headers by default define
129 _WIN32_WINNT to 0x500.
130
131 2019-03-01 Gary Benson <gbenson@redhat.com>
132
133 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
134
135 2019-02-28 Brian Vandenberg <phantall@gmail.com>
136 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
137
138 PR gdb/8527
139 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
140 set_sigint_trap, clear_sigint_trap.
141
142 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
143
144 * target.c (target_detach): Clear the regcache and the
145 frame cache.
146
147 2019-02-27 Pedro Alves <palves@redhat.com>
148
149 * utils.c (set_screen_size): When we cap the height/width sizes,
150 tweak the corresponding command variable to show "unlimited":
151
152 2019-02-27 Saagar Jha <saagar@saagarjha.com>
153 Pedro Alves <palves@redhat.com>
154
155 * utils.c (set_screen_size): Reduce "infinite" rows and columns
156 before calling rl_set_screen_size.
157
158 2019-02-27 Tom Tromey <tromey@adacore.com>
159
160 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
161 define.
162 * python/py-value.c: Remove Python 2.4 workaround.
163 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
164 workaround.
165 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
166 Python 2.4 workaround.
167 * python/python-internal.h: Remove Python 2.4 comment.
168 (Py_ssize_t): Don't define.
169 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
170 (gdb_Py_DECREF): Remove Python 2.4 workaround.
171 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
172 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
173 * python/python.c (do_start_initialization): Remove Python 2.4
174 workaround.
175 * python/py-prettyprint.c (class dummy_python_frame): Remove.
176 (print_children): Remove Python 2.4 workaround.
177 * python/py-inferior.c (buffer_procs): Remove Python 2.4
178 workaround.
179 (CHARBUFFERPROC_NAME): Remove.
180 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
181 Python 2.4 workaround.
182
183 2019-02-27 Kevin Buettner <kevinb@redhat.com>
184
185 * NEWS: Note minimum Python version.
186
187 2019-02-27 Kevin Buettner <kevinb@redhat.com>
188
189 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
190 code from these functions. Remove corresponding ifdefs. Use
191 Py_buffer_up instead of explicit calls to PyBuffer_Release.
192 Remove gotos and target of gotos.
193 (infpy_search_memory): Likewise.
194
195 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
196
197 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
198 (hppa_gdbarch_init): Don't register deleted functions with
199 gdbarch.
200
201 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
202
203 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
204 (h8300_unwind_sp): Delete.
205 (h8300_dummy_id): Delete.
206 (h8300_gdbarch_init): Don't register deleted functions with
207 gdbarch.
208
209 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
210
211 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
212 (ft32_unwind_pc): Delete.
213 (ft32_unwind_sp): Delete.
214 (ft32_gdbarch_init): Don't register deleted functions with
215 gdbarch.
216
217 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
218
219 * gdb/frv-tdep.c (frv_dummy_id): Delete.
220 (frv_unwind_pc): Delete.
221 (frv_unwind_sp): Delete.
222 (frv_gdbarch_init): Don't register deleted functions with
223 gdbarch.
224
225 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
226
227 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
228 (riscv_unwind_pc): Delete.
229 (riscv_unwind_sp): Delete.
230 (riscv_gdbarch_init): Don't register deleted functions with
231 gdbarch.
232
233 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
234
235 * gdb/csky-tdep.c (csky_dummy_id): Delete.
236 (csky_unwind_pc): Delete.
237 (csky_unwind_sp): Delete.
238 (csky_gdbarch_init): Don't register deleted functions with
239 gdbarch.
240
241 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
242
243 * gdb/cris-tdep.c (cris_dummy_id): Delete.
244 (cris_unwind_pc): Delete.
245 (cris_unwind_sp): Delete.
246 (cris_gdbarch_init): Don't register deleted functions with
247 gdbarch.
248
249 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
250
251 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
252 (bfin_unwind_pc): Delete.
253 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
254
255 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
256
257 * gdb/arm-tdep.c (arm_dummy_id): Delete.
258 (arm_unwind_pc): Delete.
259 (arm_unwind_sp): Delete.
260 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
261
262 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
263
264 * gdb/arc-tdep.c (arc_dummy_id): Delete.
265 (arc_unwind_pc): Delete.
266 (arc_unwind_sp): Delete.
267 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
268
269 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
270
271 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
272 (alpha_unwind_pc): Delete.
273 (alpha_gdbarch_init): Don't register deleted functions with
274 gdbarch.
275
276 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
277
278 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
279 (aarch64_unwind_pc): Delete.
280 (aarch64_unwind_sp): Delete.
281 (aarch64_gdbarch_init): Don't register deleted functions with
282 gdbarch.
283
284 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
285
286 * gdbtypes.c (type_align): Don't consider static members when
287 computing structure alignment.
288
289 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
290
291 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
292 return 0 for other types.
293 * arch-utils.c (default_type_align): Always return 0.
294 * gdbarch.h: Regenerate.
295 * gdbarch.sh (type_align): Extend comment.
296 * gdbtypes.c (type_align): Add additional comments, always call
297 gdbarch_type_align before applying the default rules.
298 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
299 generic code will then apply a suitable default.
300 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
301 types, return 0 for other types.
302
303 2019-02-27 Joel Brobecker <brobecker@adacore.com>
304
305 * NEWS: Create a new section for the next release branch.
306 Rename the section of the current branch, now that it has
307 been cut.
308
309 2019-02-27 Joel Brobecker <brobecker@adacore.com>
310
311 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
312 * version.in: Bump version to 8.3.50.DATE-git.
313
314 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
315
316 * aix-thread.c (ptid_cmp): Remove unused variable.
317 (get_signaled_thread): Likewise.
318 (store_regs_user_thread): Likewise.
319 (store_regs_kernel_thread): Likewise.
320 (fetch_regs_kernel_thread): Remove shadowed variable.
321
322 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
323
324 * features/riscv/32bit-cpu.xml: Add register numbers.
325 * features/riscv/32bit-fpu.c: Regenerate.
326 * features/riscv/32bit-fpu.xml: Add register numbers.
327 * features/riscv/64bit-cpu.xml: Add register numbers.
328 * features/riscv/64bit-fpu.c: Regenerate.
329 * features/riscv/64bit-fpu.xml: Add register numbers.
330
331 2019-02-26 Kevin Buettner <kevinb@redhat.com>
332
333 * NEWS: Mention two argument form of gdb.Value constructor.
334 * python/py-value.c (convert_buffer_and_type_to_value): New
335 function.
336 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
337 Add support for handling an optional second argument. Call
338 convert_buffer_and_type_to_value as appropriate.
339 * python/python-internal.h (Py_buffer_deleter): New struct.
340 (Py_buffer_up): New typedef.
341
342 2019-02-25 John Baldwin <jhb@FreeBSD.org>
343
344 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
345 instead of releasing ownership.
346
347 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
348
349 * dwarf2read.c (open_and_init_dwp_file): Call
350 elf_numsections instead of bfd_count_sections to initialize
351 dwp_file->num_sections.
352
353 2019-02-25 Tom Tromey <tromey@adacore.com>
354
355 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
356
357 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
358
359 * gcore.in: Add '--readnever' option when invoking GDB.
360
361 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
362
363 * MAINTAINERS: Update my email address.
364
365 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
366
367 * build-id.c (build_id_to_debug_bfd_1): New function.
368 (build_id_to_debug_bfd): Look for separate debug file in
369 sysroot.
370
371 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
372
373 * gdbarch.sh: Update the copyright year range that is placed into
374 generated files.
375
376 2019-02-22 Keith Seitz <keiths@redhat.com>
377
378 PR symtab/23853
379 * linespec.c (create_sals_line_offset): Search for the default
380 symtab's filename instead of its fullname.
381
382 2019-02-21 Alan Hayward <alan.hayward@arm.com>
383
384 * NEWS: Update style defaults.
385
386 2019-02-21 Alan Hayward <alan.hayward@arm.com>
387
388 * main.c (captured_main_1): Disable styling in batch mode.
389
390 2019-02-20 Tom Tromey <tom@tromey.com>
391
392 * symtab.c (symtab_symbol_info): Fix typos.
393
394 2019-02-20 Tom Tromey <tromey@adacore.com>
395
396 * findcmd.c (_initialize_mem_search): Use upper case for
397 metasyntactic variables.
398
399 2019-02-20 Alan Hayward <alan.hayward@arm.com>
400
401 * aarch64-tdep.c (aarch64_add_reggroups): New function.
402 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
403
404 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
405
406 * top.h (source_file_name): Change to std::string.
407 * top.c (source_file_name): Likewise.
408 (command_line_input): Adjust.
409 * cli/cli-script.c (script_from_file): Adjust.
410
411 2019-02-19 Tom Tromey <tromey@adacore.com>
412
413 * ravenscar-thread.c
414 (ravenscar_thread_target::update_thread_list): Don't call
415 ada_build_task_list.
416 * ada-lang.h (ada_build_task_list): Don't declare.
417 * ada-tasks.c (struct ada_tasks_inferior_data)
418 <task_list_valid_p>: Now bool.
419 (read_known_tasks, ada_task_list_changed)
420 (ada_tasks_invalidate_inferior_data): Update.
421 (read_known_tasks_array): Return bool.
422 (read_known_tasks_list): Likewise.
423 (read_known_tasks): Return void.
424 (ada_build_task_list): Now static.
425
426 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
427
428 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
429 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
430
431 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
432
433 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
434 variant for ada_tasks_pspace_data_handle and
435 ada_tasks_inferior_data_handle.
436 (ada_tasks_pspace_data_cleanup): New function.
437 (ada_tasks_inferior_data_cleanup): New function.
438
439 2019-02-17 Tom Tromey <tom@tromey.com>
440
441 * macrotab.h (macro_source_fullname): Return a std::string.
442 * macrotab.c (macro_include, check_for_redefinition)
443 (macro_undef, macro_lookup_definition, foreach_macro)
444 (foreach_macro_in_scope): Update.
445 (macro_source_fullname): Return a std::string.
446 * macrocmd.c (show_pp_source_pos): Update.
447
448 2019-02-17 Tom Tromey <tom@tromey.com>
449
450 * macrocmd.c (show_pp_source_pos): Style the file names.
451
452 2019-02-17 Tom Tromey <tom@tromey.com>
453
454 PR tui/24197:
455 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
456
457 2019-02-17 Tom Tromey <tom@tromey.com>
458
459 * ada-lang.c (user_select_syms): Use filtered printing.
460 * utils.c (wrap_style): New global.
461 (desired_style): Remove.
462 (emit_style_escape): Add stream parameter.
463 (set_output_style, reset_terminal_style, prompt_for_continue):
464 Update.
465 (flush_wrap_buffer): Only flush gdb_stdout.
466 (wrap_here): Set wrap_style.
467 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
468 treat escape sequences as a character. Change when wrap buffer is
469 flushed.
470 (fputs_styled): Do not set the output style when the default is
471 requested.
472 * ui-style.h (struct ui_file_style) <is_default>: New method.
473 * source.c (print_source_lines_base): Emit escape sequences in one
474 piece.
475
476 2019-02-17 Joel Brobecker <brobecker@adacore.com>
477
478 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
479 integers and enumeration types.
480
481 2019-02-17 Joel Brobecker <brobecker@adacore.com>
482
483 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
484 instead of lookup_symbol_in_language
485 (do_exact_match): New function.
486 (ada_get_symbol_name_matcher): Return do_exact_match when
487 doing a verbatim match.
488
489 2019-02-15 Tom Tromey <tromey@adacore.com>
490
491 * ravenscar-thread.c (ravenscar_thread_target::resume)
492 (ravenscar_thread_target::wait): Special case wildcard requests.
493
494 2019-02-15 Tom Tromey <tromey@adacore.com>
495
496 * ravenscar-thread.c (base_ptid): Remove.
497 (struct ravenscar_thread_target) <close>: New method.
498 <m_base_ptid>: New member.
499 <update_inferior_ptid, active_task, task_is_currently_active,
500 runtime_initialized>: Declare methods.
501 <ravenscar_thread_target>: Add constructor.
502 (ravenscar_thread_target::task_is_currently_active)
503 (ravenscar_thread_target::update_inferior_ptid)
504 (ravenscar_runtime_initialized): Rename. Now methods.
505 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
506 (ravenscar_thread_target::update_thread_list): Update.
507 (ravenscar_thread_target::active_task): Now method.
508 (ravenscar_thread_target::store_registers)
509 (ravenscar_thread_target::prepare_to_store)
510 (ravenscar_thread_target::prepare_to_store)
511 (ravenscar_thread_target::mourn_inferior): Update.
512 (ravenscar_inferior_created): Use "new" to create target.
513 (ravenscar_thread_target::get_ada_task_ptid): Update.
514 (_initialize_ravenscar): Don't initialize base_ptid.
515 (ravenscar_ops): Remove global.
516
517 2019-02-15 Tom Tromey <tromey@adacore.com>
518
519 * target.h (push_target): Declare new overload.
520 * target.c (push_target): New overload, taking an rvalue reference.
521 * remote.c (remote_target::open_1): Use push_target overload.
522 * corelow.c (core_target_open): Use push_target overload.
523
524 2019-02-15 Tom Tromey <tromey@adacore.com>
525
526 * ravenscar-thread.c (is_ravenscar_task)
527 (ravenscar_task_is_currently_active): Return bool.
528 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
529 (_initialize_ravenscar): Remove "(void)".
530 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
531 Return bool.
532
533 2019-02-15 Tom Tromey <tromey@adacore.com>
534
535 * ravenscar-thread.c (ravenscar_runtime_initializer)
536 (has_ravenscar_runtime, get_running_thread_id)
537 (ravenscar_thread_target::resume): Fix indentation.
538
539 2019-02-15 Tom Tromey <tromey@adacore.com>
540
541 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
542 from ravenscar_arch_ops.
543 (sparc_ravenscar_ops::fetch_registers)
544 (sparc_ravenscar_ops::store_registers): Now methods.
545 (sparc_ravenscar_prepare_to_store): Remove.
546 (sparc_ravenscar_ops): Redefine.
547 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
548 methods and destructor. Remove members.
549 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
550 (ravenscar_thread_target::store_registers)
551 (ravenscar_thread_target::prepare_to_store): Update.
552 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
553 Remove.
554 (struct ppc_ravenscar_powerpc_ops): Derive from
555 ravenscar_arch_ops.
556 (ppc_ravenscar_powerpc_ops::fetch_registers)
557 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
558 (ppc_ravenscar_powerpc_ops): Redefine.
559 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
560 (ppc_ravenscar_e500_ops::fetch_registers)
561 (ppc_ravenscar_e500_ops::store_registers): Now methods.
562 (ppc_ravenscar_e500_ops): Redefine.
563 * aarch64-ravenscar-thread.c
564 (aarch64_ravenscar_generic_prepare_to_store): Remove.
565 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
566 (aarch64_ravenscar_fetch_registers)
567 (aarch64_ravenscar_store_registers): Now methods.
568 (aarch64_ravenscar_ops): Redefine.
569
570 2019-02-15 Tom Tromey <tromey@adacore.com>
571
572 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
573 (ravenscar_thread_target::stopped_by_hw_breakpoint)
574 (ravenscar_thread_target::stopped_by_watchpoint)
575 (ravenscar_thread_target::stopped_data_address)
576 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
577
578 2019-02-15 Tom Tromey <tromey@adacore.com>
579
580 * ravenscar-thread.c: Fix some typos.
581
582 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
583 Tom Tromey <tromey@adacore.com>
584
585 * ada-lang.c (ada_exception_sal): Change addr_string to a
586 std::string.
587 (create_ada_exception_catchpoint): Update.
588
589 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
590 Tom Tromey <tromey@adacore.com>
591
592 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
593 (bp_location_ops): Remove.
594 (base_breakpoint_allocate_location): Update.
595 (free_bp_location): Update.
596 * ada-lang.c (class ada_catchpoint_location)
597 <ada_catchpoint_location>: Remove ops parameter.
598 (ada_catchpoint_location_dtor): Remove.
599 (ada_catchpoint_location_ops): Remove.
600 (allocate_location_exception): Update.
601 * breakpoint.h (struct bp_location_ops): Remove.
602 (class bp_location) <bp_location>: Remove bp_location_ops
603 parameter.
604 <~bp_location>: Add destructor.
605 <ops>: Remove.
606
607 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
608 Pedro Alves <palves@redhat.com>
609
610 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
611 'PATH_MAX'.
612
613 2019-02-14 David Michael <fedora.dm0@gmail.com>
614 Samuel Thibault <samuel.thibault@gnu.org>
615 Thomas Schwinge <thomas@codesourcery.com>
616
617 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
618 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
619
620 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
621
622 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
623 (check_empty): Use "const char *".
624
625 * gnu-nat.c (gnu_nat_target::detach): Instead of
626 'detach_inferior (pid)' call
627 'detach_inferior (find_inferior_pid (pid))'.
628
629 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
630 'nat/fork-inferior.o'.
631 * gnu-nat.c: #include "nat/fork-inferior.h".
632
633 * gnu-nat.c (gnu_nat_target::detach): Instead of
634 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
635 * gnu-nat.h: #include "inf-child.h".
636 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
637 'i386_gnu_nat_target::fetch_registers'.
638 (gnu_store_registers): Rename/move to
639 'i386_gnu_nat_target::store_registers'.
640
641 * config/i386/nm-i386gnu.h: Don't "#include" any files.
642 * gnu-nat.h (mach_thread_info): New function.
643 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
644
645 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
646
647 2019-02-14 Frederic Konrad <konrad@adacore.com>
648
649 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
650
651 2019-02-14 Joel Brobecker <brobecker@adacore.com>
652
653 * windows-nat.c (windows_add_thread): Add new parameter
654 "main_thread_p" with default value set to false. Update
655 function documentation as well as all callers.
656 (windows_delete_thread): Likewise.
657 (fake_create_process): Update call to windows_add_thread.
658 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
659 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
660 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
661 call to windows_delete_thread.
662
663 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
664
665 * MAINTAINERS: Add Andrew Burgess as global maintainer.
666
667 2019-02-12 John Baldwin <jhb@FreeBSD.org>
668
669 * symfile.c (find_separate_debug_file): Use canonical path of
670 sysroot with child_path instead of gdb_sysroot if it is valid.
671
672 2019-02-12 John Baldwin <jhb@FreeBSD.org>
673
674 * symfile.c (find_separate_debug_file): Use child_path to
675 determine if an object file is under a sysroot.
676
677 2019-02-12 John Baldwin <jhb@FreeBSD.org>
678
679 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
680 unittests/child-path-selftests.c.
681 * common/pathstuff.c (child_path): New function.
682 * common/pathstuff.h (child_path): New prototype.
683 * unittests/child-path-selftests.c: New file.
684
685 2019-02-12 John Baldwin <jhb@FreeBSD.org>
686
687 * symfile.c (find_separate_debug_file): Look for separate debug
688 files in debug directories under the sysroot.
689
690 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
691
692 * symtab.h (struct minimal_symbol data_p): New const method.
693 (struct minimal_symbol text_p): Likewise.
694 * symtab.c (output_source_filename): Use file name style
695 to print file name.
696 (print_symbol_info): Likewise.
697 (print_msymbol_info): Use address style to print addresses.
698 Use function name style to print executable text symbols.
699 (expand_symtab_containing_pc): Use data_p.
700 (find_pc_sect_compunit_symtab): Likewise.
701
702 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
703
704 * breakpoint.c (describe_other_breakpoints): Use address style
705 to print addresses.
706 (say_where): Likewise.
707
708 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
709
710 * ada-typeprint.c (print_func_type): Print function name
711 style to print function name.
712 * c-typeprint.c (c_print_type_1): Likewise.
713
714 2019-02-11 Alan Hayward <alan.hayward@arm.com>
715
716 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
717 for execve.
718
719 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
720
721 * c-exp.y (direct_abs_decl): Use emplace_back to record the
722 type_stack.
723
724 2019-02-10 Joel Brobecker <brobecker@adacore.com>
725
726 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
727 TYPE_CODE_REF types.
728
729 2019-02-08 Jim Wilson <jimw@sifive.com>
730
731 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
732 (riscv_linux_fregset): New.
733 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
734
735 2019-02-07 Tom Tromey <tom@tromey.com>
736
737 * thread.c (thread_cancel_execution_command): Update.
738 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
739 methods.
740 (struct thread_fsm_ops): Remove.
741 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
742 (thread_fsm_should_stop, thread_fsm_return_value)
743 (thread_fsm_set_finished, thread_fsm_finished_p)
744 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
745 Don't declare.
746 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
747 * infrun.c (clear_proceed_status_thread)
748 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
749 (print_stop_event): Update.
750 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
751 Add constructor.
752 (step_command_fsm_ops): Remove.
753 (new_step_command_fsm): Remove.
754 (step_1): Update.
755 (step_command_fsm::should_stop): Rename from
756 step_command_fsm_should_stop.
757 (step_command_fsm::clean_up): Rename from
758 step_command_fsm_clean_up.
759 (step_command_fsm::do_async_reply_reason): Rename from
760 step_command_fsm_async_reply_reason.
761 (struct until_next_fsm): Inherit from thread_fsm. Add
762 constructor.
763 (until_next_fsm_ops): Remove.
764 (new_until_next_fsm): Remove.
765 (until_next_fsm::should_stop): Rename from
766 until_next_fsm_should_stop.
767 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
768 (until_next_fsm::do_async_reply_reason): Rename from
769 until_next_fsm_async_reply_reason.
770 (struct finish_command_fsm): Inherit from thread_fsm. Add
771 constructor. Change type of breakpoint.
772 (finish_command_fsm_ops): Remove.
773 (new_finish_command_fsm): Remove.
774 (finish_command_fsm::should_stop): Rename from
775 finish_command_fsm_should_stop.
776 (finish_command_fsm::clean_up): Rename from
777 finish_command_fsm_clean_up.
778 (finish_command_fsm::return_value): Rename from
779 finish_command_fsm_return_value.
780 (finish_command_fsm::do_async_reply_reason): Rename from
781 finish_command_fsm_async_reply_reason.
782 (finish_command): Update.
783 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
784 Add constructor.
785 (call_thread_fsm_ops): Remove.
786 (call_thread_fsm::call_thread_fsm): Rename from
787 new_call_thread_fsm.
788 (call_thread_fsm::should_stop): Rename from
789 call_thread_fsm_should_stop.
790 (call_thread_fsm::should_notify_stop): Rename from
791 call_thread_fsm_should_notify_stop.
792 (run_inferior_call, call_function_by_hand_dummy): Update.
793 * cli/cli-interp.c (should_print_stop_to_console): Update.
794 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
795 Add constructor. Change type of location_breakpoint,
796 caller_breakpoint.
797 (until_break_fsm_ops): Remove.
798 (new_until_break_fsm): Remove.
799 (until_break_fsm::should_stop): Rename from
800 until_break_fsm_should_stop.
801 (until_break_fsm::clean_up): Rename from
802 until_break_fsm_clean_up.
803 (until_break_fsm::do_async_reply_reason): Rename from
804 until_break_fsm_async_reply_reason.
805 (until_break_command): Update.
806 * thread-fsm.c: Remove.
807 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
808
809 2019-02-07 Tom Tromey <tom@tromey.com>
810
811 * yy-remap.h: Add include guard.
812 * xtensa-tdep.h: Add include guard.
813 * xcoffread.h: Rename include guard.
814 * varobj-iter.h: Add include guard.
815 * tui/tui.h: Rename include guard.
816 * tui/tui-winsource.h: Rename include guard.
817 * tui/tui-wingeneral.h: Rename include guard.
818 * tui/tui-windata.h: Rename include guard.
819 * tui/tui-win.h: Rename include guard.
820 * tui/tui-stack.h: Rename include guard.
821 * tui/tui-source.h: Rename include guard.
822 * tui/tui-regs.h: Rename include guard.
823 * tui/tui-out.h: Rename include guard.
824 * tui/tui-layout.h: Rename include guard.
825 * tui/tui-io.h: Rename include guard.
826 * tui/tui-hooks.h: Rename include guard.
827 * tui/tui-file.h: Rename include guard.
828 * tui/tui-disasm.h: Rename include guard.
829 * tui/tui-data.h: Rename include guard.
830 * tui/tui-command.h: Rename include guard.
831 * tic6x-tdep.h: Add include guard.
832 * target/waitstatus.h: Rename include guard.
833 * target/wait.h: Rename include guard.
834 * target/target.h: Rename include guard.
835 * target/resume.h: Rename include guard.
836 * target-float.h: Rename include guard.
837 * stabsread.h: Add include guard.
838 * rs6000-tdep.h: Add include guard.
839 * riscv-fbsd-tdep.h: Add include guard.
840 * regformats/regdef.h: Rename include guard.
841 * record.h: Rename include guard.
842 * python/python.h: Rename include guard.
843 * python/python-internal.h: Rename include guard.
844 * python/py-stopevent.h: Rename include guard.
845 * python/py-ref.h: Rename include guard.
846 * python/py-record.h: Rename include guard.
847 * python/py-record-full.h: Rename include guard.
848 * python/py-record-btrace.h: Rename include guard.
849 * python/py-instruction.h: Rename include guard.
850 * python/py-events.h: Rename include guard.
851 * python/py-event.h: Rename include guard.
852 * procfs.h: Add include guard.
853 * proc-utils.h: Add include guard.
854 * p-lang.h: Add include guard.
855 * or1k-tdep.h: Rename include guard.
856 * observable.h: Rename include guard.
857 * nto-tdep.h: Rename include guard.
858 * nat/x86-linux.h: Rename include guard.
859 * nat/x86-linux-dregs.h: Rename include guard.
860 * nat/x86-gcc-cpuid.h: Add include guard.
861 * nat/x86-dregs.h: Rename include guard.
862 * nat/x86-cpuid.h: Rename include guard.
863 * nat/ppc-linux.h: Rename include guard.
864 * nat/mips-linux-watch.h: Rename include guard.
865 * nat/linux-waitpid.h: Rename include guard.
866 * nat/linux-ptrace.h: Rename include guard.
867 * nat/linux-procfs.h: Rename include guard.
868 * nat/linux-osdata.h: Rename include guard.
869 * nat/linux-nat.h: Rename include guard.
870 * nat/linux-namespaces.h: Rename include guard.
871 * nat/linux-btrace.h: Rename include guard.
872 * nat/glibc_thread_db.h: Rename include guard.
873 * nat/gdb_thread_db.h: Rename include guard.
874 * nat/gdb_ptrace.h: Rename include guard.
875 * nat/fork-inferior.h: Rename include guard.
876 * nat/amd64-linux-siginfo.h: Rename include guard.
877 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
878 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
879 * nat/aarch64-linux.h: Rename include guard.
880 * nat/aarch64-linux-hw-point.h: Rename include guard.
881 * mn10300-tdep.h: Add include guard.
882 * mips-linux-tdep.h: Add include guard.
883 * mi/mi-parse.h: Rename include guard.
884 * mi/mi-out.h: Rename include guard.
885 * mi/mi-main.h: Rename include guard.
886 * mi/mi-interp.h: Rename include guard.
887 * mi/mi-getopt.h: Rename include guard.
888 * mi/mi-console.h: Rename include guard.
889 * mi/mi-common.h: Rename include guard.
890 * mi/mi-cmds.h: Rename include guard.
891 * mi/mi-cmd-break.h: Rename include guard.
892 * m2-lang.h: Add include guard.
893 * location.h: Rename include guard.
894 * linux-record.h: Rename include guard.
895 * linux-nat.h: Add include guard.
896 * linux-fork.h: Add include guard.
897 * i386-darwin-tdep.h: Rename include guard.
898 * hppa-linux-offsets.h: Add include guard.
899 * guile/guile.h: Rename include guard.
900 * guile/guile-internal.h: Rename include guard.
901 * gnu-nat.h: Rename include guard.
902 * gdb-stabs.h: Rename include guard.
903 * frv-tdep.h: Add include guard.
904 * f-lang.h: Add include guard.
905 * event-loop.h: Add include guard.
906 * darwin-nat.h: Rename include guard.
907 * cp-abi.h: Rename include guard.
908 * config/sparc/nm-sol2.h: Rename include guard.
909 * config/nm-nto.h: Rename include guard.
910 * config/nm-linux.h: Add include guard.
911 * config/i386/nm-i386gnu.h: Rename include guard.
912 * config/djgpp/nl_types.h: Rename include guard.
913 * config/djgpp/langinfo.h: Rename include guard.
914 * compile/gcc-cp-plugin.h: Add include guard.
915 * compile/gcc-c-plugin.h: Add include guard.
916 * compile/compile.h: Rename include guard.
917 * compile/compile-object-run.h: Rename include guard.
918 * compile/compile-object-load.h: Rename include guard.
919 * compile/compile-internal.h: Rename include guard.
920 * compile/compile-cplus.h: Rename include guard.
921 * compile/compile-c.h: Rename include guard.
922 * common/xml-utils.h: Rename include guard.
923 * common/x86-xstate.h: Rename include guard.
924 * common/version.h: Rename include guard.
925 * common/vec.h: Rename include guard.
926 * common/tdesc.h: Rename include guard.
927 * common/selftest.h: Rename include guard.
928 * common/scoped_restore.h: Rename include guard.
929 * common/scoped_mmap.h: Rename include guard.
930 * common/scoped_fd.h: Rename include guard.
931 * common/safe-iterator.h: Rename include guard.
932 * common/run-time-clock.h: Rename include guard.
933 * common/refcounted-object.h: Rename include guard.
934 * common/queue.h: Rename include guard.
935 * common/ptid.h: Rename include guard.
936 * common/print-utils.h: Rename include guard.
937 * common/preprocessor.h: Rename include guard.
938 * common/pathstuff.h: Rename include guard.
939 * common/observable.h: Rename include guard.
940 * common/netstuff.h: Rename include guard.
941 * common/job-control.h: Rename include guard.
942 * common/host-defs.h: Rename include guard.
943 * common/gdb_wait.h: Rename include guard.
944 * common/gdb_vecs.h: Rename include guard.
945 * common/gdb_unlinker.h: Rename include guard.
946 * common/gdb_unique_ptr.h: Rename include guard.
947 * common/gdb_tilde_expand.h: Rename include guard.
948 * common/gdb_sys_time.h: Rename include guard.
949 * common/gdb_string_view.h: Rename include guard.
950 * common/gdb_splay_tree.h: Rename include guard.
951 * common/gdb_setjmp.h: Rename include guard.
952 * common/gdb_ref_ptr.h: Rename include guard.
953 * common/gdb_optional.h: Rename include guard.
954 * common/gdb_locale.h: Rename include guard.
955 * common/gdb_assert.h: Rename include guard.
956 * common/filtered-iterator.h: Rename include guard.
957 * common/filestuff.h: Rename include guard.
958 * common/fileio.h: Rename include guard.
959 * common/environ.h: Rename include guard.
960 * common/common-utils.h: Rename include guard.
961 * common/common-types.h: Rename include guard.
962 * common/common-regcache.h: Rename include guard.
963 * common/common-inferior.h: Rename include guard.
964 * common/common-gdbthread.h: Rename include guard.
965 * common/common-exceptions.h: Rename include guard.
966 * common/common-defs.h: Rename include guard.
967 * common/common-debug.h: Rename include guard.
968 * common/cleanups.h: Rename include guard.
969 * common/buffer.h: Rename include guard.
970 * common/btrace-common.h: Rename include guard.
971 * common/break-common.h: Rename include guard.
972 * cli/cli-utils.h: Rename include guard.
973 * cli/cli-style.h: Rename include guard.
974 * cli/cli-setshow.h: Rename include guard.
975 * cli/cli-script.h: Rename include guard.
976 * cli/cli-interp.h: Rename include guard.
977 * cli/cli-decode.h: Rename include guard.
978 * cli/cli-cmds.h: Rename include guard.
979 * charset-list.h: Add include guard.
980 * buildsym-legacy.h: Rename include guard.
981 * bfin-tdep.h: Add include guard.
982 * ax.h: Rename include guard.
983 * arm-linux-tdep.h: Add include guard.
984 * arm-fbsd-tdep.h: Add include guard.
985 * arch/xtensa.h: Rename include guard.
986 * arch/tic6x.h: Add include guard.
987 * arch/i386.h: Add include guard.
988 * arch/arm.h: Rename include guard.
989 * arch/arm-linux.h: Rename include guard.
990 * arch/arm-get-next-pcs.h: Rename include guard.
991 * arch/amd64.h: Add include guard.
992 * arch/aarch64-insn.h: Rename include guard.
993 * arch-utils.h: Rename include guard.
994 * annotate.h: Add include guard.
995 * amd64-darwin-tdep.h: Rename include guard.
996 * aarch64-linux-tdep.h: Add include guard.
997 * aarch64-fbsd-tdep.h: Add include guard.
998 * aarch32-linux-nat.h: Add include guard.
999
1000 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1001
1002 * macrotab.c (macro_define_internal): New function that
1003 factorizes macro_define_object_internal and macro_define_function
1004 code.
1005 (macro_define_object_internal): Use macro_define_internal.
1006 (macro_define_function): Likewise.
1007
1008 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1009
1010 * macrocmd.c (extract_identifier): Return
1011 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
1012 callers.
1013
1014 2019-02-06 John Baldwin <jhb@FreeBSD.org>
1015
1016 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
1017
1018 2019-02-05 Tom Tromey <tom@tromey.com>
1019
1020 * target.c (target_stack::unpush): Move assertion earlier.
1021
1022 2019-01-30 Tom Tromey <tom@tromey.com>
1023
1024 PR python/23615:
1025 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
1026 (gdbpy_parse_and_eval): Likewise.
1027 * python/python-internal.h (gdbpy_allow_threads): New class.
1028
1029 2019-01-28 John Baldwin <jhb@FreeBSD.org>
1030
1031 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
1032 (aarch64_fbsd_fpregmap): Move earlier.
1033 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
1034 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
1035 instead of individual calls to trad_frame_set_reg_addr.
1036 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
1037 earlier.
1038 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
1039 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
1040 instead of individual calls to trad_frame_set_reg_addr.
1041
1042 2019-01-28 Alan Hayward <alan.hayward@arm.com>
1043
1044 * CONTRIBUTE: Replace contribution list with wiki link.
1045
1046 2019-01-25 Tom Tromey <tom@tromey.com>
1047
1048 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
1049
1050 2019-01-25 Tom Tromey <tom@tromey.com>
1051
1052 * xtensa-linux-nat.c: Fix common/ includes.
1053 * xml-support.h: Fix common/ includes.
1054 * xml-support.c: Fix common/ includes.
1055 * x86-linux-nat.c: Fix common/ includes.
1056 * windows-nat.c: Fix common/ includes.
1057 * varobj.h: Fix common/ includes.
1058 * varobj.c: Fix common/ includes.
1059 * value.c: Fix common/ includes.
1060 * valops.c: Fix common/ includes.
1061 * utils.c: Fix common/ includes.
1062 * unittests/xml-utils-selftests.c: Fix common/ includes.
1063 * unittests/utils-selftests.c: Fix common/ includes.
1064 * unittests/unpack-selftests.c: Fix common/ includes.
1065 * unittests/tracepoint-selftests.c: Fix common/ includes.
1066 * unittests/style-selftests.c: Fix common/ includes.
1067 * unittests/string_view-selftests.c: Fix common/ includes.
1068 * unittests/scoped_restore-selftests.c: Fix common/ includes.
1069 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
1070 * unittests/scoped_fd-selftests.c: Fix common/ includes.
1071 * unittests/rsp-low-selftests.c: Fix common/ includes.
1072 * unittests/parse-connection-spec-selftests.c: Fix common/
1073 includes.
1074 * unittests/optional-selftests.c: Fix common/ includes.
1075 * unittests/offset-type-selftests.c: Fix common/ includes.
1076 * unittests/observable-selftests.c: Fix common/ includes.
1077 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
1078 * unittests/memrange-selftests.c: Fix common/ includes.
1079 * unittests/memory-map-selftests.c: Fix common/ includes.
1080 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
1081 * unittests/function-view-selftests.c: Fix common/ includes.
1082 * unittests/environ-selftests.c: Fix common/ includes.
1083 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
1084 * unittests/common-utils-selftests.c: Fix common/ includes.
1085 * unittests/cli-utils-selftests.c: Fix common/ includes.
1086 * unittests/array-view-selftests.c: Fix common/ includes.
1087 * ui-file.c: Fix common/ includes.
1088 * tui/tui-io.c: Fix common/ includes.
1089 * tracepoint.h: Fix common/ includes.
1090 * tracepoint.c: Fix common/ includes.
1091 * tracefile-tfile.c: Fix common/ includes.
1092 * top.h: Fix common/ includes.
1093 * top.c: Fix common/ includes.
1094 * thread.c: Fix common/ includes.
1095 * target/waitstatus.h: Fix common/ includes.
1096 * target/waitstatus.c: Fix common/ includes.
1097 * target.h: Fix common/ includes.
1098 * target.c: Fix common/ includes.
1099 * target-memory.c: Fix common/ includes.
1100 * target-descriptions.c: Fix common/ includes.
1101 * symtab.h: Fix common/ includes.
1102 * symfile.c: Fix common/ includes.
1103 * stap-probe.c: Fix common/ includes.
1104 * spu-linux-nat.c: Fix common/ includes.
1105 * sparc-nat.c: Fix common/ includes.
1106 * source.c: Fix common/ includes.
1107 * solib.c: Fix common/ includes.
1108 * solib-target.c: Fix common/ includes.
1109 * ser-unix.c: Fix common/ includes.
1110 * ser-tcp.c: Fix common/ includes.
1111 * ser-pipe.c: Fix common/ includes.
1112 * ser-base.c: Fix common/ includes.
1113 * selftest-arch.c: Fix common/ includes.
1114 * s12z-tdep.c: Fix common/ includes.
1115 * rust-exp.y: Fix common/ includes.
1116 * rs6000-aix-tdep.c: Fix common/ includes.
1117 * riscv-tdep.c: Fix common/ includes.
1118 * remote.c: Fix common/ includes.
1119 * remote-notif.h: Fix common/ includes.
1120 * remote-fileio.h: Fix common/ includes.
1121 * remote-fileio.c: Fix common/ includes.
1122 * regcache.h: Fix common/ includes.
1123 * regcache.c: Fix common/ includes.
1124 * record-btrace.c: Fix common/ includes.
1125 * python/python.c: Fix common/ includes.
1126 * python/py-type.c: Fix common/ includes.
1127 * python/py-inferior.c: Fix common/ includes.
1128 * progspace.h: Fix common/ includes.
1129 * producer.c: Fix common/ includes.
1130 * procfs.c: Fix common/ includes.
1131 * proc-api.c: Fix common/ includes.
1132 * printcmd.c: Fix common/ includes.
1133 * ppc-linux-nat.c: Fix common/ includes.
1134 * parser-defs.h: Fix common/ includes.
1135 * osdata.c: Fix common/ includes.
1136 * obsd-nat.c: Fix common/ includes.
1137 * nat/x86-linux.c: Fix common/ includes.
1138 * nat/x86-linux-dregs.c: Fix common/ includes.
1139 * nat/x86-dregs.h: Fix common/ includes.
1140 * nat/x86-dregs.c: Fix common/ includes.
1141 * nat/ppc-linux.c: Fix common/ includes.
1142 * nat/mips-linux-watch.h: Fix common/ includes.
1143 * nat/mips-linux-watch.c: Fix common/ includes.
1144 * nat/linux-waitpid.c: Fix common/ includes.
1145 * nat/linux-ptrace.h: Fix common/ includes.
1146 * nat/linux-ptrace.c: Fix common/ includes.
1147 * nat/linux-procfs.c: Fix common/ includes.
1148 * nat/linux-personality.c: Fix common/ includes.
1149 * nat/linux-osdata.c: Fix common/ includes.
1150 * nat/linux-namespaces.c: Fix common/ includes.
1151 * nat/linux-btrace.h: Fix common/ includes.
1152 * nat/linux-btrace.c: Fix common/ includes.
1153 * nat/fork-inferior.c: Fix common/ includes.
1154 * nat/amd64-linux-siginfo.c: Fix common/ includes.
1155 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
1156 * nat/aarch64-linux.c: Fix common/ includes.
1157 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
1158 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
1159 * namespace.h: Fix common/ includes.
1160 * mips-linux-tdep.c: Fix common/ includes.
1161 * minsyms.c: Fix common/ includes.
1162 * mi/mi-parse.h: Fix common/ includes.
1163 * mi/mi-main.c: Fix common/ includes.
1164 * mi/mi-cmd-env.c: Fix common/ includes.
1165 * memrange.h: Fix common/ includes.
1166 * memattr.c: Fix common/ includes.
1167 * maint.h: Fix common/ includes.
1168 * maint.c: Fix common/ includes.
1169 * main.c: Fix common/ includes.
1170 * machoread.c: Fix common/ includes.
1171 * location.c: Fix common/ includes.
1172 * linux-thread-db.c: Fix common/ includes.
1173 * linux-nat.c: Fix common/ includes.
1174 * linux-fork.c: Fix common/ includes.
1175 * inline-frame.c: Fix common/ includes.
1176 * infrun.c: Fix common/ includes.
1177 * inflow.c: Fix common/ includes.
1178 * inferior.h: Fix common/ includes.
1179 * inferior.c: Fix common/ includes.
1180 * infcmd.c: Fix common/ includes.
1181 * inf-ptrace.c: Fix common/ includes.
1182 * inf-child.c: Fix common/ includes.
1183 * ia64-linux-nat.c: Fix common/ includes.
1184 * i387-tdep.c: Fix common/ includes.
1185 * i386-tdep.c: Fix common/ includes.
1186 * i386-linux-tdep.c: Fix common/ includes.
1187 * i386-linux-nat.c: Fix common/ includes.
1188 * i386-go32-tdep.c: Fix common/ includes.
1189 * i386-fbsd-tdep.c: Fix common/ includes.
1190 * i386-fbsd-nat.c: Fix common/ includes.
1191 * guile/scm-type.c: Fix common/ includes.
1192 * guile/guile.c: Fix common/ includes.
1193 * go32-nat.c: Fix common/ includes.
1194 * gnu-nat.c: Fix common/ includes.
1195 * gdbthread.h: Fix common/ includes.
1196 * gdbarch-selftests.c: Fix common/ includes.
1197 * gdb_usleep.c: Fix common/ includes.
1198 * gdb_select.h: Fix common/ includes.
1199 * gdb_bfd.c: Fix common/ includes.
1200 * gcore.c: Fix common/ includes.
1201 * fork-child.c: Fix common/ includes.
1202 * findvar.c: Fix common/ includes.
1203 * fbsd-nat.c: Fix common/ includes.
1204 * event-top.c: Fix common/ includes.
1205 * event-loop.c: Fix common/ includes.
1206 * dwarf2read.c: Fix common/ includes.
1207 * dwarf2loc.c: Fix common/ includes.
1208 * dwarf2-frame.c: Fix common/ includes.
1209 * dwarf-index-cache.c: Fix common/ includes.
1210 * dtrace-probe.c: Fix common/ includes.
1211 * disasm-selftests.c: Fix common/ includes.
1212 * defs.h: Fix common/ includes.
1213 * csky-tdep.c: Fix common/ includes.
1214 * cp-valprint.c: Fix common/ includes.
1215 * cp-support.h: Fix common/ includes.
1216 * cp-support.c: Fix common/ includes.
1217 * corelow.c: Fix common/ includes.
1218 * completer.h: Fix common/ includes.
1219 * completer.c: Fix common/ includes.
1220 * compile/compile.c: Fix common/ includes.
1221 * compile/compile-loc2c.c: Fix common/ includes.
1222 * compile/compile-cplus-types.c: Fix common/ includes.
1223 * compile/compile-cplus-symbols.c: Fix common/ includes.
1224 * command.h: Fix common/ includes.
1225 * cli/cli-dump.c: Fix common/ includes.
1226 * cli/cli-cmds.c: Fix common/ includes.
1227 * charset.c: Fix common/ includes.
1228 * build-id.c: Fix common/ includes.
1229 * btrace.h: Fix common/ includes.
1230 * btrace.c: Fix common/ includes.
1231 * breakpoint.h: Fix common/ includes.
1232 * breakpoint.c: Fix common/ includes.
1233 * ax.h:
1234 (enum agent_op): Fix common/ includes.
1235 * ax-general.c (struct aop_map): Fix common/ includes.
1236 * ax-gdb.c: Fix common/ includes.
1237 * auxv.c: Fix common/ includes.
1238 * auto-load.c: Fix common/ includes.
1239 * arm-tdep.c: Fix common/ includes.
1240 * arch/riscv.c: Fix common/ includes.
1241 * arch/ppc-linux-common.c: Fix common/ includes.
1242 * arch/i386.c: Fix common/ includes.
1243 * arch/arm.c: Fix common/ includes.
1244 * arch/arm-linux.c: Fix common/ includes.
1245 * arch/arm-get-next-pcs.c: Fix common/ includes.
1246 * arch/amd64.c: Fix common/ includes.
1247 * arch/aarch64.c: Fix common/ includes.
1248 * arch/aarch64-insn.c: Fix common/ includes.
1249 * arch-utils.c: Fix common/ includes.
1250 * amd64-windows-tdep.c: Fix common/ includes.
1251 * amd64-tdep.c: Fix common/ includes.
1252 * amd64-sol2-tdep.c: Fix common/ includes.
1253 * amd64-obsd-tdep.c: Fix common/ includes.
1254 * amd64-nbsd-tdep.c: Fix common/ includes.
1255 * amd64-linux-tdep.c: Fix common/ includes.
1256 * amd64-linux-nat.c: Fix common/ includes.
1257 * amd64-fbsd-tdep.c: Fix common/ includes.
1258 * amd64-fbsd-nat.c: Fix common/ includes.
1259 * amd64-dicos-tdep.c: Fix common/ includes.
1260 * amd64-darwin-tdep.c: Fix common/ includes.
1261 * agent.c: Fix common/ includes.
1262 * ada-lang.h: Fix common/ includes.
1263 * ada-lang.c: Fix common/ includes.
1264 * aarch64-tdep.c: Fix common/ includes.
1265
1266 2019-01-25 Tom Tromey <tom@tromey.com>
1267
1268 * common/create-version.sh: Use common/version.h.
1269
1270 2019-01-24 Pedro Alves <palves@redhat.com>
1271
1272 * infrun.c (signal_stop, signal_print, signal_program)
1273 (signal_catch, signal_pass): Now arrays instead of pointers.
1274 (update_signals_program_target, do_target_resume)
1275 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
1276 * linux-nat.c (linux_nat_target::pass_signals)
1277 (linux_nat_target::create_inferior, linux_nat_target::attach):
1278 Adjust.
1279 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
1280 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
1281 * procfs.c (procfs_target::pass_signals): Adjust.
1282 * record-full.c (record_full_target::resume): Adjust.
1283 * remote.c (remote_target::pass_signals)
1284 (remote_target::program_signals): Adjust.
1285 * target-debug.h (target_debug_print_signals): Now takes a
1286 gdb::array_view as parameter. Adjust.
1287 * target.h (target_ops) <pass_signals, program_signals>: Replace
1288 pointer and length parameters with gdb::array_view.
1289 (target_pass_signals, target_program_signals): Likewise.
1290 * target-delegates.c: Regenerate.
1291
1292 2019-01-24 Pedro Alves <palves@redhat.com>
1293
1294 * common/forward-scope-exit.h
1295 (forward_scope_exit::forward_scope_exit): Pass arguments to
1296 m_bind_function directly, instead of creating a std::bind and
1297 copying that.
1298
1299 2019-01-24 Alan Hayward <alan.hayward@arm.com>
1300
1301 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
1302 for static members.
1303 (pass_in_v_vfp_candidate): Likewise.
1304
1305 2019-01-23 Tom Tromey <tom@tromey.com>
1306 Pedro Alves <palves@redhat.com>
1307
1308 * regcache.c (class regcache_invalidator): Remove.
1309 (regcache::raw_write): Use make_scope_exit.
1310
1311 2019-01-23 Tom Tromey <tom@tromey.com>
1312
1313 * ui-out.h (class ui_out_emit_type): Update comment.
1314
1315 2019-01-23 Tom Tromey <tom@tromey.com>
1316
1317 * infrun.c (fetch_inferior_event): Update comment.
1318
1319 2019-01-23 Tom Tromey <tom@tromey.com>
1320 Pedro Alves <palves@redhat.com>
1321
1322 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
1323 parameter.
1324 (fetch_inferior_event): Use SCOPE_EXIT.
1325
1326
1327 2019-01-23 Tom Tromey <tom@tromey.com>
1328 Pedro Alves <palves@redhat.com>
1329
1330 * infrun.c (disable_thread_events): Delete.
1331 (stop_all_threads): Use SCOPE_EXIT.
1332
1333 2019-01-23 Tom Tromey <tom@tromey.com>
1334 Pedro Alves <palves@redhat.com>
1335
1336 * symfile.c: Include forward-scope-exit.h.
1337 (clear_symtab_users_cleanup): Replace forward declaration with
1338 a FORWARD_SCOPE_EXIT.
1339 (syms_from_objfile_1): Use the forward_scope_exit and
1340 gdb::optional instead of cleanup_function.
1341 (reread_symbols): Use the forward_scope_exit instead of
1342 cleanup_function.
1343 (clear_symtab_users_cleanup): Remove function.
1344
1345 2019-01-23 Tom Tromey <tom@tromey.com>
1346 Pedro Alves <palves@redhat.com>
1347
1348 * linux-nat.c: Include scope-exit.h.
1349 (cleanup_target_stop): Remove.
1350 (linux_nat_target::static_tracepoint_markers_by_strid): Use
1351 SCOPE_EXIT.
1352
1353 2019-01-23 Tom Tromey <tom@tromey.com>
1354 Pedro Alves <palves@redhat.com>
1355
1356 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
1357 (call_function_by_hand_dummy): Use SCOPE_EXIT.
1358
1359 2019-01-23 Tom Tromey <tom@tromey.com>
1360 Andrew Burgess <andrew.burgess@embecosm.com>
1361 Pedro Alves <palves@redhat.com>
1362
1363 * infrun.c (fetch_inferior_event): Use scope_exit.
1364 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
1365 * top.c (execute_command): Use scope_exit.
1366 * breakpoint.c (bpstat_do_actions): Use scope_exit.
1367 * utils.c (do_bpstat_clear_actions_cleanup)
1368 (make_bpstat_clear_actions_cleanup): Remove.
1369
1370 2019-01-23 Tom Tromey <tom@tromey.com>
1371 Pedro Alves <palves@redhat.com>
1372
1373 * infrun.c: Include "common/scope-exit.h"
1374 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
1375 (wait_for_inferior): Use SCOPE_EXIT.
1376 (fetch_inferior_event): Use scope_exit.
1377
1378 2019-01-23 Tom Tromey <tom@tromey.com>
1379 Pedro Alves <palves@redhat.com>
1380
1381 * breakpoint.c (create_breakpoint): Remove cleanup.
1382
1383 2019-01-23 Tom Tromey <tom@tromey.com>
1384 Andrew Burgess <andrew.burgess@embecosm.com>
1385 Pedro Alves <palves@redhat.com>
1386
1387 2019-01-23 Pedro Alves <palves@redhat.com>
1388
1389 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
1390
1391 2019-01-23 Pedro Alves <palves@redhat.com>
1392 Andrew Burgess <andrew.burgess@embecosm.com>
1393
1394 * gdbthread.h: Include "common/forward-scope-exit.h".
1395 (scoped_finish_thread_state): Redefine custom class in terms of
1396 forward_scope_exit.
1397
1398 2019-01-23 Pedro Alves <palves@redhat.com>
1399 Andrew Burgess <andrew.burgess@embecosm.com>
1400
1401 * common/forward-scope-exit.h: New file.
1402
1403 2019-01-23 Pedro Alves <palves@redhat.com>
1404 Andrew Burgess <andrew.burgess@embecosm.com>
1405 Tom Tromey <tom@tromey.com>
1406
1407 * common/scope-exit.h: New file.
1408
1409 2019-01-23 Pedro Alves <palves@redhat.com>
1410
1411 * common/preprocessor.h (ESC): Rename to ...
1412 (ESC_PARENS): ... this.
1413 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
1414 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
1415
1416 2019-01-23 Tom Tromey <tom@tromey.com>
1417
1418 * language.h (class scoped_switch_to_sym_language_if_auto):
1419 Initialize m_lang in both cases.
1420
1421 2019-01-23 Alan Hayward <alan.hayward@arm.com>
1422
1423 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
1424 with XCNEW.
1425
1426 2019-01-22 Tom Tromey <tom@tromey.com>
1427
1428 * corelow.c: Do not include sys/file.h.
1429
1430 2019-01-22 Tom Tromey <tom@tromey.com>
1431
1432 * tui/tui-wingeneral.h: Include gdb_curses.h.
1433
1434 2019-01-22 Tom Tromey <tom@tromey.com>
1435
1436 * source-cache.h (class source_cache) <get_source_lines,
1437 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
1438
1439 2019-01-22 Tom Tromey <tom@tromey.com>
1440
1441 * remote-fileio.h (struct remote_target): Declare.
1442
1443 2019-01-22 Tom Tromey <tom@tromey.com>
1444
1445 * python/py-arch.c: Do not include py-ref.h.
1446 * python/py-bpevent.c: Do not include py-ref.h.
1447 * python/py-cmd.c: Do not include py-ref.h.
1448 * python/py-continueevent.c: Do not include py-ref.h.
1449 * python/py-event.h: Do not include py-ref.h.
1450 * python/py-evtregistry.c: Do not include py-ref.h.
1451 * python/py-finishbreakpoint.c: Do not include py-ref.h.
1452 * python/py-frame.c: Do not include py-ref.h.
1453 * python/py-framefilter.c: Do not include py-ref.h.
1454 * python/py-function.c: Do not include py-ref.h.
1455 * python/py-infevents.c: Do not include py-ref.h.
1456 * python/py-linetable.c: Do not include py-ref.h.
1457 * python/py-objfile.c: Do not include py-ref.h.
1458 * python/py-param.c: Do not include py-ref.h.
1459 * python/py-prettyprint.c: Do not include py-ref.h.
1460 * python/py-progspace.c: Do not include py-ref.h.
1461 * python/py-symbol.c: Do not include py-ref.h.
1462 * python/py-symtab.c: Do not include py-ref.h.
1463 * python/py-type.c: Do not include py-ref.h.
1464 * python/py-unwind.c: Do not include py-ref.h.
1465 * python/py-utils.c: Do not include py-ref.h.
1466 * python/py-value.c: Do not include py-ref.h.
1467 * python/py-varobj.c: Do not include py-ref.h.
1468 * python/py-xmethods.c: Do not include py-ref.h.
1469 * python/python.c: Do not include py-ref.h.
1470 * varobj.c: Do not include py-ref.h.
1471
1472 2019-01-22 Tom Tromey <tom@tromey.com>
1473
1474 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
1475 keyword for bcache.
1476
1477 2019-01-22 Tom Tromey <tom@tromey.com>
1478
1479 * compile/compile-cplus-types.c: Remove a comment by #include.
1480
1481 2019-01-22 Tom Tromey <tom@tromey.com>
1482
1483 * compile/gcc-c-plugin.h: Include compile-internal.h.
1484
1485 2019-01-22 Tom Tromey <tom@tromey.com>
1486
1487 * stabsread.c (EXTERN): Do not define.
1488 (symnum, next_symbol_text_func, processing_gcc_compilation)
1489 (within_function, global_sym_chain, global_stabs)
1490 (previous_stab_code, this_object_header_files)
1491 (n_this_object_header_files)
1492 (n_allocated_this_object_header_files): Define.
1493 * stabsread.h (EXTERN): Never define. Use "extern".
1494
1495 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1496
1497 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
1498 history_value.
1499
1500 2019-01-21 Tom Tromey <tom@tromey.com>
1501
1502 * ui-out.c: Fix includes.
1503 * tui/tui-source.c: Fix includes.
1504 * target.c: Fix includes.
1505 * remote.c: Fix includes.
1506 * regcache.c: Fix includes.
1507 * python/py-block.c: Fix includes.
1508 * printcmd.c: Fix includes.
1509 * or1k-tdep.c: Fix includes.
1510 * mi/mi-main.c: Fix includes.
1511 * m32r-tdep.c: Fix includes.
1512 * csky-tdep.c: Fix includes.
1513 * compile/compile-cplus-types.c: Fix includes.
1514 * cli/cli-interp.c: Fix includes.
1515
1516 2019-01-21 Alan Hayward <alan.hayward@arm.com>
1517
1518 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
1519 for padding.
1520
1521 2019-01-16 Tom Tromey <tom@tromey.com>
1522
1523 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
1524 earlier.
1525 (struct objfile) <msymbols_range>: Move from top level.
1526 <msymbols>: New method.
1527 (class objfile_msymbols): Remove.
1528 * symtab.c (default_collect_symbol_completion_matches_break_on):
1529 Update.
1530 * symmisc.c (dump_msymbols): Update.
1531 * stabsread.c (scan_file_globals): Update.
1532 * objc-lang.c (info_selectors_command, info_classes_command)
1533 (find_methods): Update.
1534 * minsyms.c (find_solib_trampoline_target): Update.
1535 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
1536 * coffread.c (coff_symfile_read): Update.
1537 * ada-lang.c (ada_lookup_simple_minsym)
1538 (ada_collect_symbol_completion_matches): Update.
1539
1540 2019-01-16 Tom Tromey <tom@tromey.com>
1541
1542 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
1543 type. Remove no-argument constructor.
1544 <iterator::operator++>: Simplify.
1545 <begin>: Update.
1546 <end>: Use minimal_symbol_count.
1547
1548 2019-01-16 Tom Tromey <tom@tromey.com>
1549
1550 * objfiles.h (struct objfile) <psymtabs>: New method.
1551 (class objfile_psymtabs): Remove.
1552 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
1553 typedef.
1554 <range>: New method.
1555 (require_partial_symbols): Change return type.
1556 * psymtab.c (require_partial_symbols)
1557 (psym_expand_symtabs_matching): Update.
1558 * mdebugread.c (parse_partial_symbols): Update.
1559 * dbxread.c (dbx_end_psymtab): Update.
1560
1561 2019-01-15 Tom Tromey <tom@tromey.com>
1562
1563 * symtab.c (lookup_objfile_from_block)
1564 (lookup_symbol_in_objfile_symtabs)
1565 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
1566 (find_line_symtab, info_sources_command)
1567 (default_collect_symbol_completion_matches_break_on)
1568 (make_source_files_completion_list): Update.
1569 * symmisc.c (print_objfile_statistics, dump_objfile)
1570 (maintenance_print_symbols, maintenance_info_symtabs)
1571 (maintenance_check_symtabs, maintenance_info_line_tables):
1572 Update.
1573 * source.c (select_source_symtab)
1574 (forget_cached_source_info_for_objfile): Update.
1575 * objfiles.h (class objfile_compunits): Remove.
1576 (struct objfile) <compunits_range>: New typedef.
1577 (compunits): New method.
1578 * objfiles.c (objfile_relocate1): Update.
1579 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
1580 * maint.c (count_symtabs_and_blocks): Update.
1581 * linespec.c (iterate_over_all_matching_symtabs): Update.
1582 * cp-support.c (add_symbol_overload_list_qualified): Update.
1583 * coffread.c (coff_symtab_read): Update.
1584 * ada-lang.c (add_nonlocal_symbols)
1585 (ada_collect_symbol_completion_matches)
1586 (ada_add_global_exceptions): Update.
1587
1588 2019-01-15 Tom Tromey <tom@tromey.com>
1589
1590 * progspace.h (program_space) <objfiles_safe_range>: New
1591 typedef.
1592 <objfiles_safe>: New method.
1593 * objfiles.h (class all_objfiles_safe): Remove.
1594 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
1595 * jit.c (jit_inferior_exit_hook): Update.
1596
1597 2019-01-17 Tom Tromey <tom@tromey.com>
1598
1599 * progspace.h (program_space) <objfiles_range>: New typedef.
1600 <objfiles>: New method.
1601 <objfiles_head>: Rename from objfiles.
1602 (object_files): Update.
1603 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
1604 * guile/scm-pretty-print.c
1605 (ppscm_find_pretty_printer_from_objfiles): Update.
1606 * guile/scm-objfile.c (gdbscm_objfiles): Update.
1607 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
1608 Update.
1609 * python/py-progspace.c (pspy_get_objfiles): Update.
1610 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
1611 Update.
1612 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
1613 (objfpy_lookup_objfile_by_build_id): Update.
1614 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
1615 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
1616 Update.
1617 * symtab.c (iterate_over_symtabs, matching_obj_sections)
1618 (expand_symtab_containing_pc, lookup_objfile_from_block)
1619 (lookup_static_symbol, basic_lookup_transparent_type)
1620 (find_pc_sect_compunit_symtab, find_symbol_at_address)
1621 (find_line_symtab, info_sources_command)
1622 (default_collect_symbol_completion_matches_break_on)
1623 (make_source_files_completion_list, find_main_name): Update.
1624 * symmisc.c (print_symbol_bcache_statistics)
1625 (print_objfile_statistics, maintenance_print_symbols)
1626 (maintenance_print_msymbols, maintenance_print_objfiles)
1627 (maintenance_info_symtabs, maintenance_check_symtabs)
1628 (maintenance_expand_symtabs, maintenance_info_line_tables):
1629 Update.
1630 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
1631 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
1632 (map_overlay_command, unmap_overlay_command)
1633 (simple_overlay_update, expand_symtabs_matching)
1634 (map_symbol_filenames): Update.
1635 * symfile-debug.c (set_debug_symfile): Update.
1636 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
1637 Update.
1638 * source.c (select_source_symtab, forget_cached_source_info):
1639 Update.
1640 * solib.c (solib_read_symbols): Update.
1641 * solib-spu.c (append_ocl_sos): Update.
1642 * psymtab.c (maintenance_print_psymbols)
1643 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
1644 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
1645 * printcmd.c (info_symbol_command): Update.
1646 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
1647 Update.
1648 * objfiles.h (class all_objfiles): Remove.
1649 * objfiles.c (have_partial_symbols, have_full_symbols)
1650 (have_minimal_symbols, qsort_cmp, update_section_map)
1651 (shared_objfile_contains_address_p)
1652 (default_iterate_over_objfiles_in_search_order): Update.
1653 * objc-lang.c (info_selectors_command, info_classes_command)
1654 (find_methods): Update.
1655 * minsyms.c (find_solib_trampoline_target): Update.
1656 * maint.c (maintenance_info_sections)
1657 (maintenance_translate_address, count_symtabs_and_blocks):
1658 Update.
1659 * main.c (captured_main_1): Update.
1660 * linux-thread-db.c (try_thread_db_load_from_pdir)
1661 (has_libpthread): Update.
1662 * linespec.c (iterate_over_all_matching_symtabs)
1663 (search_minsyms_for_name): Update.
1664 * jit.c (jit_find_objf_with_entry_addr): Update.
1665 * hppa-tdep.c (find_unwind_entry)
1666 (hppa_lookup_stub_minimal_symbol): Update.
1667 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
1668 Update.
1669 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
1670 (elf_gnu_ifunc_resolve_by_got): Update.
1671 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
1672 * dwarf-index-write.c (save_gdb_index_command): Update.
1673 * cp-support.c (add_symbol_overload_list_qualified): Update.
1674 * breakpoint.c (create_overlay_event_breakpoint)
1675 (create_longjmp_master_breakpoint)
1676 (create_std_terminate_master_breakpoint)
1677 (create_exception_master_breakpoint): Update.
1678 * blockframe.c (find_pc_partial_function): Update.
1679 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
1680 (ada_collect_symbol_completion_matches)
1681 (ada_add_global_exceptions): Update.
1682
1683 2019-01-17 Tom Tromey <tom@tromey.com>
1684
1685 * solib-target.c (lm_info_target_p): Remove typedef. Don't
1686 declare VEC.
1687 (solib_target_parse_libraries): Change return type.
1688 (library_list_start_segment, library_list_start_section)
1689 (library_list_end_library, library_list_start_library); Update.
1690 (solib_target_free_library_list): Remove.
1691 (solib_target_parse_libraries): Remove cleanup. Change return
1692 type.
1693 (solib_target_current_sos): Update.
1694
1695 2019-01-17 Tom Tromey <tromey@bapiya>
1696
1697 * valprint.c: Replace "the the" with "the".
1698 * symtab.c: Replace "the the" with "the".
1699 * solib.c: Replace "the the" with "the".
1700 * solib-dsbt.c: Replace "the the" with "the".
1701 * linespec.c: Replace "the the" with "the".
1702 * dwarf2loc.h: Replace "the the" with "the".
1703 * amd64-windows-tdep.c: Replace "the the" with "the".
1704 * aarch64-tdep.c: Replace "the the" with "the".
1705
1706 2019-01-16 Keith Seitz <keiths@redhat.com>
1707
1708 PR gdb/23773
1709 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
1710 <builder>: Rename to ..
1711 <m_builder>: ... this and make private.
1712 (dwarf2_cu::get_builder): New method. Change all users of
1713 `builder' to use this method.
1714 (dwarf2_start_symtab): Move to ...
1715 (dwarf2_cu::start_symtab): ... here. Update all callers
1716 (setup_type_unit_groups): Move to ...
1717 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
1718 callers.
1719 (dwarf2_cu::reset_builder): New method.
1720 (process_full_compunit, process_full_type_unit): Use
1721 dwarf2_cu::reset_builder.
1722 (follow_die_offset): Record the ancestor CU if it is different
1723 from the followed DIE's CU.
1724 (follow_die_sig_1): Likewise.
1725
1726 2019-01-15 Tom Tromey <tom@tromey.com>
1727
1728 * remote.c (class remote_state) <buf>: Now a char_vector.
1729 <buf_size>: Remove.
1730 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
1731 parameter.
1732 (remote_target::getpkt_or_notif_sane_1)
1733 (remote_target::getpkt_sane)
1734 (remote_target::getpkt_or_notif_sane): Likewise.
1735 (class remote_target) <putpkt>: New overload.
1736 (remote_target::read_frame): Change type of "buf_p". Remove
1737 sizeof_p parameter.
1738 (packet_ok): New overload.
1739 (packet_check_result): New overload.
1740 Update all uses.
1741
1742 2019-01-14 Tom Tromey <tom@tromey.com>
1743
1744 * remote-notif.c (handle_notification, remote_notif_ack)
1745 (remote_notif_parse): Make "buf" const.
1746 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
1747 const.
1748 (remote_notif_parse, remote_notif_ack, handle_notification):
1749 Likewise.
1750 * remote.c (remote_notif_stop_parse): Make "buf" const.
1751 (remote_target::remote_parse_stop_reply): Make "buf" const.
1752 (remote_notif_stop_ack): Make "buf" const.
1753
1754 2019-01-14 Tom Tromey <tom@tromey.com>
1755
1756 * remote.c (remote_console_output): Make parameter const.
1757
1758 2019-01-14 Tom Tromey <tom@tromey.com>
1759
1760 * target-debug.h (target_debug_print_signals): Constify.
1761 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
1762 * procfs.c (procfs_target::pass_signals): Update.
1763 * linux-nat.c (linux_nat_target::pass_signals): Update.
1764 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
1765 * target-delegates.c: Rebuild.
1766 * remote.c (remote_target::program_signals): Update.
1767 (remote_target::pass_signals): Update.
1768 * target.c (target_pass_signals): Constify argument.
1769 (target_program_signals): Likewise.
1770 * target.h (struct target_ops) <pass_signals, program_signals>:
1771 Constify argument.
1772 (target_pass_signals, target_program_signals): Constify argument.
1773
1774 2019-01-14 Tom Tromey <tom@tromey.com>
1775
1776 PR tui/28819:
1777 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
1778
1779 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1780
1781 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
1782 field.
1783 * rs6000-tdep.c: Include reggroups.h.
1784 (IS_V_ALIAS_PSEUDOREG): Define.
1785 (rs6000_register_name): Return names for the "vX" aliases.
1786 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
1787 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
1788 aliases. Call default_register_reggroup_p for all other
1789 pseudo-registers.
1790 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
1791 New functions.
1792 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
1793 Handle "vX" aliases.
1794 (v_alias_pseudo_register_collect): New function.
1795 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
1796 (rs6000_gdbarch_init): Initialize "vX" aliases as
1797 pseudo-registers. Restore registration of
1798 rs6000_pseudo_register_reggroup_p with
1799 set_tdesc_pseudo_register_reggroup_p.
1800
1801 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
1802
1803 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
1804 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
1805 set_gdbarch_num_pseudo_regs.
1806
1807 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1808
1809 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
1810 Remove arg prefixname, add do_set and do_show.
1811 Add member functions set_list and show_list.
1812 * cli/cli-style.c (class cli_style_option): Update accordingly.
1813 (style_set_list): Move to file scope.
1814 (style_show_list): Likewise.
1815 (set_style): Call help_list.
1816 (show_style): Call cmd_show_list.
1817 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
1818 Update to use the new macro.
1819
1820 2019-10-12 Joel Brobecker <brobecker@adacore.com>
1821
1822 * ada-lang.c (_initialize_ada_language): Expand the help text
1823 for the "catch exception" command.
1824
1825 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1826
1827 * symtab.c (matching_obj_sections): Initialize obj,
1828 declare it closer to its usage.
1829
1830 2019-01-10 Tom Tromey <tom@tromey.com>
1831
1832 * thread-iter.h (inf_threads_iterator): Use next_iterator.
1833 (basic_inf_threads_range): Remove.
1834 (inf_threads_range, inf_non_exited_threads_range)
1835 (safe_inf_threads_range): Use next_adapter.
1836
1837 2019-01-10 Keith Seitz <keiths@redhat.com>
1838
1839 PR gdb/23712
1840 PR symtab/23010
1841 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
1842 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
1843
1844 2019-01-10 Keith Seitz <keiths@redhat.com>
1845
1846 PR gdb/23712
1847 PR symtab/23010
1848 * dictionary.c (pending_to_vector): Remove.
1849 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
1850 Remove _1 suffix, replacing functions of the same name. Update
1851 all callers.
1852 (dict_create_hashed, dict_create_hashed_expandable)
1853 (dict_create_linear, dict_create_linear_expandable, dict_free)
1854 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
1855 Make functions static.
1856
1857 2019-01-10 Keith Seitz <keiths@redhat.com>
1858
1859 PR gdb/23712
1860 PR symtab/23010
1861 * dictionary.h (struct dictionary): Replace declaration with
1862 multidictionary.
1863 (dict_create_hashed, dict_create_hashed_expandable)
1864 (dict_create_linear, dict_create_linear_expandable)
1865 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
1866 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
1867 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
1868 taking multidictionary argument.
1869 [ALL_DICT_SYMBOLS]: Update for multidictionary.
1870 * block.h (struct block) <dict>: Change to multidictionary
1871 and rename `multidict'.
1872 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
1873 symmisc.c: Update all dictionary references to multidictionary.
1874
1875 2019-01-10 Keith Seitz <keiths@redhat.com>
1876
1877 PR gdb/23712
1878 PR symtab/23010
1879 * dictionary.c: Include unordered_map.
1880 (pending_to_vector): New function.
1881 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
1882 Rewrite the non-"_1" functions to take vector instead
1883 of linked list.
1884 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
1885 "new" _1 versions of the same name.
1886 (multidictionary): Define.
1887 (std::hash<enum language): New definition.
1888 (collate_pending_symbols_by_language, mdict_create_hashed)
1889 (mdict_create_hashed_expandable, mdict_create_linear)
1890 (mdict_create_linear_expandable, mdict_free)
1891 (find_language_dictionary, create_new_language_dictionary)
1892 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
1893 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
1894 (mdict_size, mdict_empty): New functions.
1895 * dictionary.h (mdict_iterator): Define.
1896
1897 2019-01-10 Pedro Alves <palves@redhat.com>
1898
1899 * breakpoint.c (read_uploaded_action)
1900 (create_tracepoint_from_upload): Adjust to use
1901 gdb::unique_xmalloc_ptr.
1902 * ctf.c (ctf_write_uploaded_tp):
1903 (SET_ARRAY_FIELD): Use emplace_back.
1904 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
1905 * tracefile-tfile.c (tfile_write_uploaded_tp):
1906 * tracepoint.c (parse_tracepoint_definition): Adjust to use
1907 gdb::unique_xmalloc_ptr.
1908 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
1909 at_string, cond_string, cmd_strings>: Replace char pointers
1910 with gdb::unique_xmalloc_ptr.
1911
1912 2019-01-10 Pedro Alves <palves@redhat.com>
1913
1914 * solib-target.c (library_list_start_library): Don't xstrdup name.
1915
1916 2019-01-10 Pedro Alves <palves@redhat.com>
1917
1918 * mdebugread.c (parse_partial_symbols): Use
1919 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
1920
1921 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
1922
1923 * linux-fork.c (scoped_switch_fork_info)
1924 <~scoped_switch_fork_info>: Fix incorrect variable name.
1925
1926 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
1927
1928 * linux-fork.c (scoped_switch_fork_info)
1929 <scoped_switch_fork_info>: Make explicit.
1930 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
1931
1932 2019-01-10 Tom Tromey <tom@tromey.com>
1933
1934 * objfiles.h (objfile::reset_psymtabs): Update.
1935 * objfiles.c (objfile::objfile): Update.
1936 * psymtab.h (psymtab_storage::obstack): Update.
1937 (psymtab_storage::m_obstack): Use gdb::optional.
1938 (class psymtab_storage): Update comment. Remove objfile
1939 parameter.
1940 * psymtab.c (psymtab_storage::psymtab_storage): Update.
1941
1942 2019-01-10 Tom Tromey <tom@tromey.com>
1943
1944 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
1945 <free_psymtabs>: Now private.
1946 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
1947 (allocate_psymtab): Use new method.
1948
1949 2019-01-10 Tom Tromey <tom@tromey.com>
1950
1951 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
1952 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
1953 * mdebugread.c (parse_partial_symbols): Use
1954 allocate_dependencies.
1955 * dwarf2read.c (dwarf2_create_include_psymtab): Use
1956 allocate_dependencies.
1957 (process_psymtab_comp_unit_reader)
1958 (build_type_psymtab_dependencies): Likewise.
1959 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
1960
1961 2019-01-10 Tom Tromey <tom@tromey.com>
1962
1963 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
1964 PSYMBOL_SET_LANGUAGE.
1965 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
1966
1967 2019-01-10 Tom Tromey <tom@tromey.com>
1968
1969 * psymtab.h (psymtab_storage::obstack): New method.
1970 <m_obstack>: Rename from obstack; now private.
1971 * psymtab.c (psymtab_storage): Update.
1972 * dwarf2read.c (create_addrmap_from_index)
1973 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
1974 Update.
1975
1976 2019-01-10 Tom Tromey <tom@tromey.com>
1977
1978 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
1979 * objfiles.h (objfile::reset_psymtabs): New method.
1980
1981 2019-01-10 Tom Tromey <tom@tromey.com>
1982
1983 * symmisc.c (print_symbol_bcache_statistics): Update.
1984 (print_objfile_statistics): Update.
1985 * symfile.c (reread_symbols): Update.
1986 * psymtab.h (class psymtab_storage): New.
1987 * psymtab.c (psymtab_storage): New constructor.
1988 (~psymtab_storage): New destructor.
1989 (require_partial_symbols): Update.
1990 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
1991 (find_pc_sect_psymtab, find_pc_sect_psymbol)
1992 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
1993 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
1994 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
1995 (start_psymtab_common, end_psymtab_common)
1996 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
1997 (allocate_psymtab): Update.
1998 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
1999 Update.
2000 (dump_psymtab_addrmap, maintenance_print_psymbols)
2001 (maintenance_check_psymtabs): Update.
2002 (class objfile_psymtabs): Move to objfiles.h.
2003 * psympriv.h (discard_psymtab): Now inline.
2004 (psymtab_discarder::psymtab_discarder): Update.
2005 (psymtab_discarder::~psymtab_discarder): Update.
2006 (ALL_OBJFILE_PSYMTABS): Rewrite.
2007 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
2008 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
2009 Remove fields.
2010 <partial_symtabs>: New field.
2011 (class objfile_psymtabs): Move from psymtab.h. Update.
2012 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
2013 psymbol_cache.
2014 (objfile::~objfile): Don't destroy psymbol_cache.
2015 * mdebugread.c (parse_partial_symbols): Update.
2016 * dwarf2read.c (create_addrmap_from_index)
2017 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
2018 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
2019 (add_partial_subprogram, dwarf2_ranges_read): Update.
2020 * dwarf-index-write.c (write_address_map)
2021 (write_one_signatured_type, recursively_write_psymbols)
2022 (class debug_names, class debug_names, write_psymtabs_to_index):
2023 Update.
2024
2025 2019-01-10 Tom Tromey <tom@tromey.com>
2026
2027 * symtab.h (SYMBOL_SET_NAMES): Update.
2028 (symbol_set_names): Update.
2029 (MSYMBOL_SET_NAMES): Update.
2030 * symtab.c (symbol_set_names): Change argument to be an
2031 objfile_per_bfd_storage.
2032 * psymtab.c (add_psymbol_to_bcache): Update.
2033 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
2034
2035 2019-01-10 Tom Tromey <tom@tromey.com>
2036
2037 * symtab.c (create_demangled_names_hash): Change argument to be an
2038 objfile_per_bfd_storage.
2039 (symbol_set_names): Update.
2040
2041 2019-01-10 Tom Tromey <tom@tromey.com>
2042
2043 * xcoffread.c (xcoff_initial_scan): Unconditionally call
2044 init_psymbol_list.
2045 * psymtab.c (init_psymbol_list): Do nothing if already called.
2046 * psympriv.h (init_psymbol_list): Add comment.
2047 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
2048 init_psymbol_list.
2049 * dbxread.c (dbx_symfile_read): Unconditionally call
2050 init_psymbol_list.
2051
2052 2019-01-10 Tom Tromey <tom@tromey.com>
2053
2054 * xcoffread.c (scan_xcoff_symtab): Update.
2055 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
2056 "where".
2057 * mdebugread.c (parse_partial_symbols)
2058 (handle_psymbol_enumerators): Update.
2059 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
2060 * dbxread.c (read_dbx_symtab): Update.
2061 * psympriv.h (psymbol_placement): New enum.
2062 (add_psymbol_to_list): Update.
2063
2064 2019-01-10 Tom Tromey <tom@tromey.com>
2065
2066 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
2067 static_psymbols parameters.
2068 (scan_xcoff_symtab): Update.
2069 * psymtab.c (start_psymtab_common): Remove global_psymbols and
2070 static_psymbols parameters.
2071 * psympriv.h (start_psymtab_common): Update.
2072 * mdebugread.c (parse_partial_symbols): Update.
2073 * dwarf2read.c (create_partial_symtab): Update.
2074 * dbxread.c (read_dbx_symtab): Update.
2075 (start_psymtab): Remove global_psymbols and static_psymbols
2076 parameters.
2077
2078 2019-01-10 Tom Tromey <tom@tromey.com>
2079
2080 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
2081 * psymtab.c (allocate_psymtab): Add comment.
2082 * psympriv.h (allocate_psymtab): Add comment.
2083 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
2084 initializations.
2085 * dbxread.c (dbx_end_psymtab): Remove some initializations.
2086
2087 2019-01-10 Tom Tromey <tom@tromey.com>
2088
2089 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
2090 Don't declare.
2091 * mipsread.c: Include mdebugread.h.
2092 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
2093 Declare.
2094 * elfread.c: Include mdebugread.h.
2095
2096 2019-01-09 Tom Tromey <tom@tromey.com>
2097
2098 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
2099 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
2100 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
2101 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
2102 (psym_lookup_symbol, psym_find_last_source_symtab)
2103 (psym_forget_cached_source_info, psym_print_stats)
2104 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
2105 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
2106 (psym_map_matching_symbols, psym_expand_symtabs_matching)
2107 (psym_find_compunit_symtab_by_address)
2108 (maintenance_print_psymbols, maintenance_info_psymtabs)
2109 (maintenance_check_psymtabs): Use ranged for.
2110 * psymtab.h (class objfile_psymtabs): New.
2111 (require_partial_symbols): Return objfile_psymtabs.
2112 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
2113
2114 2019-01-09 Tom Tromey <tom@tromey.com>
2115
2116 * symfile.c (overlay_invalidate_all, find_pc_overlay)
2117 (find_pc_mapped_section, list_overlays_command)
2118 (map_overlay_command, unmap_overlay_command)
2119 (simple_overlay_update): Use all_objfiles.
2120 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
2121 * printcmd.c (info_symbol_command): Use all_objfiles.
2122 * objfiles.h (ALL_OBJSECTIONS): Remove.
2123 * maint.c (maintenance_translate_address): Use all_objfiles.
2124 * gcore.c (gcore_create_callback): Use all_objfiles.
2125 (objfile_find_memory_regions): Likewise.
2126
2127 2019-01-09 Tom Tromey <tom@tromey.com>
2128
2129 * symtab.c (find_line_symtab, info_sources_command)
2130 (make_source_files_completion_list): Use objfile_compunits.
2131 * source.c (select_source_symtab): Use objfile_compunits.
2132 * objfiles.h (struct objfile): Update comment.
2133 (ALL_OBJFILES): Remove.
2134 (ALL_FILETABS): Remove.
2135 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
2136 objfile_compunits.
2137
2138 2019-01-09 Tom Tromey <tom@tromey.com>
2139
2140 * symmisc.c (print_objfile_statistics, dump_objfile)
2141 (maintenance_print_symbols): Use compunit_filetabs.
2142 * source.c (forget_cached_source_info_for_objfile): Use
2143 compunit_filetabs.
2144 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
2145 (ALL_FILETABS): Use compunit_filetabs.
2146 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
2147 * coffread.c (coff_symtab_read): Use compunit_filetabs.
2148
2149 2019-01-09 Tom Tromey <tom@tromey.com>
2150
2151 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
2152 (compunit_filetabs): New.
2153 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
2154 compunit_filetabs.
2155 (info_sources_command, make_source_files_completion_list): Remove
2156 declaration.
2157 * symmisc.c (print_objfile_statistics, dump_objfile)
2158 (maintenance_print_symbols): Remove declaration.
2159 (maintenance_info_symtabs): Use compunit_filetabs.
2160 (maintenance_info_line_tables): Likewise.
2161 * source.c (select_source_symtab): Change local variable name.
2162 (forget_cached_source_info_for_objfile): Remove declaration.
2163 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
2164 * objfiles.c (objfile_relocate1): Remove declaration.
2165 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
2166 declaration.
2167 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
2168 * coffread.c (coff_symtab_read): Remove declaration.
2169 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
2170 compunit_filetabs.
2171
2172 2019-01-09 Tom Tromey <tom@tromey.com>
2173
2174 * symtab.c (lookup_objfile_from_block)
2175 (find_pc_sect_compunit_symtab, search_symbols)
2176 (default_collect_symbol_completion_matches_break_on): Use
2177 objfile_compunits.
2178 * objfiles.h (ALL_COMPUNITS): Remove.
2179 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
2180 * cp-support.c (add_symbol_overload_list_qualified): Use
2181 objfile_compunits.
2182 * ada-lang.c (ada_collect_symbol_completion_matches)
2183 (ada_add_global_exceptions): Use objfile_compunits.
2184
2185 2019-01-09 Tom Tromey <tom@tromey.com>
2186
2187 * source.c (select_source_symtab)
2188 (forget_cached_source_info_for_objfile): Remove declaration.
2189 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
2190 declaration.
2191 * maint.c (count_symtabs_and_blocks): Remove declaration.
2192 * cp-support.c (add_symbol_overload_list_qualified): Remove
2193 declaration.
2194 * coffread.c (coff_symtab_read): Remove declaration.
2195 * symtab.c (lookup_symbol_in_objfile_symtabs)
2196 (basic_lookup_transparent_type_1): Use objfile_compunits.
2197 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
2198 (info_sources_command, search_symbols)
2199 (default_collect_symbol_completion_matches_break_on)
2200 (make_source_files_completion_list): Remove declaration.
2201 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
2202 (ada_collect_symbol_completion_matches)
2203 (ada_add_global_exceptions): Remove declaration.
2204 * linespec.c (iterate_over_all_matching_symtabs): Use
2205 objfile_compunits.
2206 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
2207 (class objfile_compunits): New.
2208 (ALL_COMPUNITS): Use objfile_compunits.
2209 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
2210 (maintenance_check_symtabs, maintenance_info_line_tables): Use
2211 objfile_compunits.
2212 * objfiles.c (objfile_relocate1): Use objfile_compunits.
2213
2214 2019-01-09 Tom Tromey <tom@tromey.com>
2215
2216 * symtab.c (search_symbols)
2217 (default_collect_symbol_completion_matches_break_on): Use
2218 objfile_msymbols.
2219 * ada-lang.c (ada_lookup_simple_minsym)
2220 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
2221 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
2222 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
2223 objfile_msymbols.
2224 * coffread.c (coff_symfile_read): Use objfile_msymbols.
2225 * symmisc.c (dump_msymbols): Use objfile_msymbols.
2226 * objc-lang.c (find_methods): Use objfile_msymbols.
2227 (info_selectors_command, info_classes_command): Likewise.
2228 * stabsread.c (scan_file_globals): Use objfile_msymbols.
2229 * objfiles.h (class objfile_msymbols): New.
2230 (ALL_OBJFILE_MSYMBOLS): Remove.
2231 (ALL_MSYMBOLS): Remove.
2232
2233 2019-01-09 Tom Tromey <tom@tromey.com>
2234
2235 * common/next-iterator.h (next_adapter): Add Iterator template
2236 parameter.
2237 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
2238 (class all_objfiles_safe): New.
2239 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
2240 * objfiles.c (put_objfile_before): Update comment.
2241 (add_separate_debug_objfile): Likewise.
2242 (free_all_objfiles): Use all_objfiles_safe.
2243 (objfile_purge_solibs): Likewise.
2244
2245 2019-01-09 Tom Tromey <tom@tromey.com>
2246
2247 * symtab.c (iterate_over_symtabs, matching_obj_sections)
2248 (expand_symtab_containing_pc, lookup_static_symbol)
2249 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
2250 (find_symbol_at_address, find_line_symtab, find_main_name): Use
2251 all_objfiles.
2252 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
2253 * breakpoint.c (create_overlay_event_breakpoint)
2254 (create_longjmp_master_breakpoint)
2255 (create_std_terminate_master_breakpoint)
2256 (create_exception_master_breakpoint): Use all_objfiles.
2257 * linux-thread-db.c (try_thread_db_load_from_pdir)
2258 (has_libpthread): Use all_objfiles.
2259 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
2260 * linespec.c (iterate_over_all_matching_symtabs)
2261 (search_minsyms_for_name): Use all_objfiles.
2262 * maint.c (maintenance_info_sections): Use all_objfiles.
2263 * main.c (captured_main_1): Use all_objfiles.
2264 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
2265 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
2266 * guile/scm-pretty-print.c
2267 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
2268 * solib-spu.c (append_ocl_sos): Use all_objfiles.
2269 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
2270 (maintenance_print_msymbols): Use all_objfiles.
2271 * source.c (select_source_symtab): Use all_objfiles.
2272 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
2273 * symfile.c (remove_symbol_file_command)
2274 (expand_symtabs_matching, map_symbol_filenames): Use
2275 all_objfiles.
2276 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
2277 all_objfiles.
2278 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
2279 * objc-lang.c (find_methods): Use all_objfiles.
2280 * objfiles.c (have_partial_symbols, have_full_symbols)
2281 (have_minimal_symbols, qsort_cmp)
2282 (default_iterate_over_objfiles_in_search_order): Use
2283 all_objfiles.
2284 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
2285 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
2286 (maintenance_check_psymtabs): Use all_objfiles.
2287 (ALL_PSYMTABS): Remove.
2288 * compile/compile-object-run.c (do_module_cleanup): Use
2289 all_objfiles.
2290 * blockframe.c (find_pc_partial_function): Use all_objfiles.
2291 * cp-support.c (add_symbol_overload_list_qualified): Use
2292 all_objfiles.
2293 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
2294 Use all_objfiles.
2295 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
2296 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
2297 all_objfiles.
2298 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
2299 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
2300 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
2301 Uses all_objfiles.
2302 * solib.c (solib_read_symbols): Use all_objfiles
2303
2304 2019-01-09 Tom Tromey <tom@tromey.com>
2305
2306 * probe.c (parse_probes_in_pspace): Use all_objfiles.
2307 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
2308 all_objfiles.
2309 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
2310 * symmisc.c (print_symbol_bcache_statistics)
2311 (print_objfile_statistics, maintenance_print_objfiles)
2312 (maintenance_info_symtabs, maintenance_check_symtabs)
2313 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
2314 all_objfiles.
2315 * source.c (forget_cached_source_info): Use all_objfiles.
2316 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
2317 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
2318 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
2319 * objfiles.c (update_section_map): Use all_objfiles.
2320 (shared_objfile_contains_address_p): Likewise.
2321 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
2322 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
2323
2324 2019-01-09 Tom Tromey <tom@tromey.com>
2325
2326 * common/next-iterator.h: New file.
2327 * objfiles.h (class all_objfiles): New.
2328 (struct objfile_iterator): New.
2329
2330 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2331
2332 * NEWS: Move the description of the changed "frame", "select-frame",
2333 and "info frame" commands to the Changed commands section.
2334
2335 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
2336
2337 * gdbtypes.c (check_stub_method_group): Remove handling of old
2338 mangling schemes.
2339 * linespec.c (find_methods): Likewise.
2340 * stabsread.c (read_member_functions): Likewise.
2341 * valops.c (search_struct_method): Likewise.
2342 (value_struct_elt_for_reference): Likewise.
2343 * NEWS: Mention this change.
2344
2345 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
2346
2347 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
2348 print_source_lines.
2349 * source.c (print_source_lines_base): Update line number check.
2350 (print_source_lines): New function.
2351 (source_lines_range::source_lines_range): New function.
2352 * source.h (class source_lines_range): New class.
2353 (print_source_lines): New declaration.
2354
2355 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2356
2357 * linespec.c (linespec_state_destructor): Free self->canonical_names.
2358
2359 2019-01-08 Tom Tromey <tom@tromey.com>
2360 Simon Marchi <simon.marchi@ericsson.com>
2361
2362 PR gdb/24060
2363 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
2364 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
2365 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
2366 * f-exp.y (DOLLAR_VARIABLE): Likewise.
2367 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
2368 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
2369
2370 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
2371
2372 * source.c (select_source_symtab): Move header comment to
2373 declaration in source.h.
2374 (forget_cached_source_info_for_objfile): Likewise.
2375 (forget_cached_source_info): Likewise.
2376 (identify_source_line): Likewise.
2377 * source.h (identify_source_line): Move declaration from symtab.h
2378 and add comment from source.c
2379 (print_source_lines): Likewise.
2380 (forget_cached_source_info_for_objfile): Likewise.
2381 (forget_cached_source_info): Likewise.
2382 (select_source_symtab): Likewise.
2383 (enum print_source_lines_flag): Move definition from symtab.h.
2384 * symtab.h (identify_source_line): Move declaration to source.h.
2385 (print_source_lines): Likewise.
2386 (forget_cached_source_info_for_objfile): Likewise.
2387 (forget_cached_source_info): Likewise.
2388 (select_source_symtab): Likewise.
2389 (enum print_source_lines_flag): Move definition to source.h.
2390 * tui/tui-hooks.c: Add 'source.h' include.
2391
2392 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
2393
2394 * source.c (print_source_lines_base): Handle requests to print
2395 reverse line number sequences, and guard against empty lines
2396 string.
2397
2398 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
2399
2400 * source.c (print_source_lines_base): Fix skip of '\r' if next
2401 character is '\n'.
2402
2403 2019-01-06 Tom Tromey <tom@tromey.com>
2404
2405 * c-exp.y (struct c_parse_state) <macro_original_text,
2406 expansion_obstack>: New member.
2407 (macro_original_text, expansion_obstack): Remove globals.
2408 (scan_macro_expansion, scanning_macro_expansion)
2409 (finished_macro_expansion): Update.
2410 (scan_macro_cleanup): Remove.
2411 (yylex, c_parse): Update.
2412
2413 2019-01-06 Tom Tromey <tom@tromey.com>
2414
2415 * c-exp.y (struct c_parse_state) <strings>: New member.
2416 (operator_stoken): Update.
2417
2418 2019-01-06 Tom Tromey <tom@tromey.com>
2419
2420 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
2421 (union type_stack_elt) <typelist_val>: Now a pointer to
2422 std::vector.
2423 (type_stack_cleanup): Don't declare.
2424 (push_typelist): Update.
2425 * parse.c (pop_typelist): Return a std::vector.
2426 (push_typelist): Take a std::vector.
2427 (follow_types): Update. Do not free args.
2428 (type_stack_cleanup): Remove.
2429 * c-exp.y (struct c_parse_state): New.
2430 (cpstate): New global.
2431 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
2432 (nonempty_typelist): Update.
2433 (func_mod): Create a new vector.
2434 (c_parse): Create a c_parse_state.
2435 (check_parameter_typelist): Do not delete params.
2436 (function_method): Update. Do not delete type_list.
2437
2438 2019-01-06 Tom Tromey <tom@tromey.com>
2439
2440 PR gdb/28155:
2441 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
2442 check_typedef.
2443 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
2444 (print_return_value): Likewise.
2445
2446 2019-01-05 Tom Tromey <tom@tromey.com>
2447
2448 * contrib/cleanup_check.py: Remove.
2449 * contrib/gcc-with-excheck: Remove.
2450 * contrib/exsummary.py: Remove.
2451 * contrib/excheck.py: Remove.
2452
2453 2019-01-05 Joel Brobecker <brobecker@adacore.com>
2454
2455 * thread.c (delete_thread_1): Add gdb_assert that THR is not
2456 NULL. Initialize tpprev to NULL instead of assigning it
2457 to NULL on the next statement.
2458 * windows-nat.c (windows_delete_thread): Remove check for
2459 main_thread_id before printing thread exit notifications.
2460 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
2461 Remove thread ID check against main_thread_id.
2462 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
2463 windows_delete_thread.
2464 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
2465
2466 2019-01-04 Tom Tromey <tom@tromey.com>
2467
2468 * compile/compile.c (_initialize_compile): Use upper case for
2469 metasyntactic variables.
2470 * symmisc.c (_initialize_symmisc): Use upper case for
2471 metasyntactic variables.
2472 * psymtab.c (_initialize_psymtab): Use upper case for
2473 metasyntactic variables.
2474 * demangle.c (demangle_command): Use upper case for metasyntactic
2475 variables.
2476 (_initialize_demangler): Likewise.
2477 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
2478 variables.
2479
2480 2019-01-03 Tom Tromey <tom@tromey.com>
2481
2482 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
2483
2484 2019-01-03 Tom Tromey <tom@tromey.com>
2485
2486 * python/py-symtab.c (salpy_str): Update.
2487 (struct salpy_sal_object) <symtab>: Now a PyObject.
2488 (salpy_dealloc): Update.
2489 (del_objfile_sal): Use gdbpy_ref.
2490
2491 2019-01-03 Tom Tromey <tom@tromey.com>
2492
2493 * python/py-type.c (convert_field): Use new_reference. Return
2494 gdbpy_ref.
2495 (make_fielditem): Return gdbpy_ref.
2496 (typy_fields): Update.
2497 (typy_getitem): Update.
2498 (field_name): Return gdbpy_ref. Use new_reference.
2499 (typy_iterator_iternext): Update.
2500
2501 2019-01-03 Tom Tromey <tom@tromey.com>
2502
2503 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
2504
2505 2019-01-03 Tom Tromey <tom@tromey.com>
2506
2507 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
2508 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
2509 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
2510 (pspy_set_frame_filters, pspy_set_frame_unwinders)
2511 (pspy_set_type_printers): Likewise.
2512 * python/py-function.c (fnpy_init): Use gdbpy_ref.
2513 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
2514 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
2515 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
2516 (objfpy_set_type_printers): Likewise.
2517
2518 2019-01-03 Tom Tromey <tom@tromey.com>
2519
2520 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
2521 (gdbpy_print_stack): Use gdbpy_err_fetch.
2522 * python/python-internal.h (class gdbpy_err_fetch): New class.
2523 (class gdbpy_enter) <m_error_type, m_error_value,
2524 m_error_traceback>: Remove.
2525 <m_error>: New member.
2526 (gdbpy_exception_to_string): Don't declare.
2527 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
2528 * python/py-value.c (convert_value_from_python): Use
2529 gdbpy_err_fetch.
2530 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
2531 gdbpy_exception_to_string.
2532 (gdbpy_handle_exception): Use gdbpy_err_fetch.
2533 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
2534 gdbpy_err_fetch.
2535
2536 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
2537
2538 * linux-nat.c (delete_lwp_cleanup): Delete.
2539 (struct lwp_deleter): New struct.
2540 (lwp_info_up): New typedef.
2541 (linux_nat_target::follow_fork): Delete cleanup, and make use of
2542 lwp_info_up.
2543
2544 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
2545
2546 * linux-fork.c (class scoped_switch_fork_info): New class.
2547 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
2548
2549 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
2550
2551 * valops.c (find_overload_match): Remove use of null_cleanup, and
2552 calls to do_cleanups.
2553
2554 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
2555
2556 * compile/compile-cplus-types.c
2557 (compile_cplus_instance::decl_name): Handle changes to
2558 cp_func_name.
2559 * cp-support.c (cp_func_name): Update header comment, update
2560 return type.
2561 * cp-support.h (cp_func_name): Update return type in declaration.
2562 * valops.c (find_overload_match): Move temp_func local to top
2563 level of function and change its type. Use temp_func to hold and
2564 delete temporary string obtained from cp_func_name.
2565
2566 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
2567
2568 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
2569 gdb::char_vector, remove cleanup, and update uses of `msg`.
2570
2571 2019-01-03 Jim Wilson <jimw@sifive.com>
2572
2573 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
2574
2575 2019-01-02 Tom Tromey <tom@tromey.com>
2576
2577 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
2578 (tdesc_parse_xml): Remove cleanups.
2579 * target-descriptions.h (make_cleanup_free_target_description):
2580 Don't declare.
2581 (target_desc_deleter): New struct.
2582 (target_desc_up): New typedef.
2583 * target-descriptions.c (target_desc_deleter::operator()): Rename
2584 from free_target_description.
2585 (make_cleanup_free_target_description): Remove.
2586
2587 2019-01-02 Tom Tromey <tom@tromey.com>
2588
2589 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
2590 constructor, destructor.
2591 (linespec_parser): Remove typedef.
2592 (~linespec_parser): Rename from linespec_parser_delete.
2593 (linespec_lex_to_end, linespec_complete_label)
2594 (linespec_complete): Update.
2595 (decode_line_full): Remove cleanups.
2596 (decode_line_1): Update.
2597
2598 2019-01-02 Tom Tromey <tom@tromey.com>
2599
2600 * python/python-internal.h (inferior_to_inferior_object): Change
2601 return type.
2602 * python/py-exitedevent.c (create_exited_event_object): Update.
2603 * python/py-inferior.c (inferior_to_inferior_object): Return
2604 gdbpy_ref.
2605 (python_new_inferior, python_inferior_deleted)
2606 (thread_to_thread_object, delete_thread_object)
2607 (build_inferior_list, gdbpy_selected_inferior): Update.
2608 * python/py-infthread.c (create_thread_object): Update. Also fail
2609 if inferior_to_inferior_object fails.
2610
2611 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
2612
2613 * inferior.h (class inferior) <displaced_step_state>: New field.
2614 * infrun.h (struct displaced_step_state): Move here from
2615 infrun.c. Initialize fields, add constructor.
2616 <inf>: Remove field.
2617 <reset>: New method.
2618 * infrun.c (struct displaced_step_inferior_state): Move to
2619 infrun.h.
2620 (displaced_step_inferior_states): Remove.
2621 (get_displaced_stepping_state): Adust.
2622 (displaced_step_in_progress_any_inferior): Adjust.
2623 (displaced_step_in_progress_thread): Adjust.
2624 (displaced_step_in_progress): Adjust.
2625 (add_displaced_stepping_state): Remove.
2626 (get_displaced_step_closure_by_addr): Adjust.
2627 (remove_displaced_stepping_state): Remove.
2628 (infrun_inferior_exit): Call displaced_step_state.reset.
2629 (use_displaced_stepping): Don't check for NULL.
2630 (displaced_step_prepare_throw): Call
2631 get_displaced_stepping_state.
2632 (displaced_step_fixup): Don't check for NULL.
2633 (prepare_for_detach): Don't check for NULL.
2634
2635 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2636
2637 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
2638 in case of call that did not complete.
2639
2640 2019-01-02 Andrey Utkin <autkin@undo.io>
2641
2642 * symfile.c (find_separate_debug_file): Fix search of debug files for
2643 remote debuggee.
2644
2645 2019-01-02 Tom Tromey <tom@tromey.com>
2646
2647 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
2648 indentation.
2649 * python/py-frame.c (frapy_older): Remove cast.
2650 (frapy_newer): Likewise.
2651 * python/py-breakpoint.c (local_setattro): Remove cast.
2652 * python/py-arch.c (archpy_name): Remove local variable.
2653 * python/py-type.c (gdbpy_lookup_type): Remove cast.
2654
2655 2019-01-02 Joel Brobecker <brobecker@adacore.com>
2656
2657 * unittests/basic_string_view/element_access/char/empty.cc:
2658 Fix year range in copyright header.
2659
2660 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
2661
2662 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
2663 Delete.
2664 <operator==>: Update with for removed field.
2665 <hash>: Likewise.
2666 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
2667 <isa_features>: ...this.
2668 <abi_features>: New field.
2669 (riscv_isa_flen): Update comment.
2670 (riscv_abi_xlen): New declaration.
2671 (riscv_abi_flen): New declaration.
2672 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
2673 isa_features.
2674 (riscv_abi_xlen): New function.
2675 (riscv_isa_flen): Update to get answer from isa_features.
2676 (riscv_abi_flen): New function.
2677 (riscv_has_fp_abi): Update to get answer from abi_features.
2678 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
2679 xlen and flen.
2680 (riscv_call_info) <xlen, flen>: Update comment.
2681 (riscv_call_arg_struct): Remove invalid assertions
2682 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
2683 is removed.
2684 (riscv_gdbarch_init): Gather isa features and abi features
2685 separately, ensure both match on the gdbarch when reusing an old
2686 gdbarch. Relax an error check to allow 32-bit abi float to run on
2687 a target with 64-bit float hardware.
2688
2689 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2690
2691 * source.c (search_command_helper): Stop reverse search
2692 when line 1 has been searched.
2693
2694 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2695
2696 * record-full.c (record_full_base_target::close): Rewrite
2697 record_full_core_buf_list free logic.
2698
2699 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2700
2701 * break-catch-syscall.c (print_one_catch_syscall): xfree
2702 the last text.
2703
2704 2019-01-01 Joel Brobecker <brobecker@adacore.com>
2705
2706 * top.c (print_gdb_version): Update Copyright year in version
2707 message.
2708
2709 2019-01-01 Joel Brobecker <brobecker@adacore.com>
2710
2711 Update copyright year range in all GDB files.
2712
2713 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
2714
2715 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
2716
2717 For older changes see ChangeLog-2018.
2718 \f
2719 Local Variables:
2720 mode: change-log
2721 left-margin: 8
2722 fill-column: 74
2723 version-control: never
2724 coding: utf-8
2725 End:
2726
This page took 0.085225 seconds and 4 git commands to generate.