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