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