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