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