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