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