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