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