Implement struct type_stack with a vector
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
858d8004
SM
12018-08-28 Simon Marchi <simon.marchi@ericsson.com>
2
3 * parser-defs.h (struct type_stack) <elements>: Change type to
4 std::vector<union type_stack_elt>.
5 <depth, size>: Remove.
6 * parse.c (parse_exp_in_context_1): Adjust.
7 (type_stack_reserve): Remove.
8 (check_type_stack_depth): Remove.
9 (insert_into_type_stack): Adjust to std::vector.
10 (insert_type): Likewise.
11 (push_type): Likewise.
12 (push_type_int): Likewise.
13 (insert_type_address_space): Likewise.
14 (pop_type): Likewise.
15 (pop_type_int): Likewise.
16 (pop_typelist): Likewise.
17 (pop_type_stack): Likewise.
18 (append_type_stack): Likewise.
19 (push_type_stack): Likewise.
20 (get_type_stack): Likewise.
21 (type_stack_cleanup): Likewise.
22 (push_typelist): Likewise.
23 (follow_types): Likewise.
24 (_initialize_parse): Likewise.
25
416a69af
HAQ
262018-08-28 Hafiz Abid Qadeer <abidh@codesourcery.com>
27
28 * NEWS: Mention csky target.
29
9d24df82
HAQ
302018-08-28 Jiangshuai Li <jiangshuai_li@c-sky.com>
31 Hafiz Abid Qadeer <abidh@codesourcery.com>
32 Don Breazeal <donb@codesourcery.com>
33
34 * csky-linux-tdep.c: New file.
35 * csky-tdep.c: Likewise.
36 * csky-tdep.h: Likewise.
37 * Makefile.in (ALL_TARGET_OBS): Add csky-linux-tdep.o and
38 csky-tdep.o.
39 (HFILES_NO_SRCDIR): Add csky-tdep.h.
40 (ALLDEPFILES): Add csky-linux-tdep.c and csky-tdep.c
41 * configure.tgt: Add csky support.
42
3bf9c013
JV
432018-08-27 Jan Vrany <jan.vrany@fit.cvut.cz>
44
45 * python/py-framefilter.c (py_print_frame): Print frame architecture
46 when printing on an MI output.
47
d3d8724a
TT
482018-08-27 Tom Tromey <tom@tromey.com>
49
50 PR build/23087:
51 * configure: Rebuild.
52 * warning.m4 (AM_GDB_WARNINGS): Remove -Wno-narrowing.
53
1885053b
TT
542018-08-27 Tom Tromey <tom@tromey.com>
55
56 * aarch64-linux-tdep.c
57 (aarch64_linux_iterate_over_regset_sections) <sve_regmap>: Add
58 casts to int.
59
8406672e
TT
602018-08-27 Tom Tromey <tom@tromey.com>
61
62 * ppc64-tdep.c (insn_d, insn_ds, insn_xfx): Add casts to
63 unsigned.
64 (ppc64_standard_linkage1, ppc64_standard_linkage2)
65 (ppc64_standard_linkage3, ppc64_standard_linkage4)
66 (ppc64_standard_linkage5, ppc64_standard_linkage6)
67 (ppc64_standard_linkage7, ppc64_standard_linkage8): Add casts to
68 unsigned.
69
ec40cf90
TT
702018-08-27 Tom Tromey <tom@tromey.com>
71
72 * xtensa-tdep.h (XTREG_END): Add cast to unsigned.
73 (XTENSA_GDBARCH_TDEP_INSTANTIATE): Likewise.
74
7bc02706
TT
752018-08-27 Tom Tromey <tom@tromey.com>
76
77 * tramp-frame.h (TRAMP_SENTINEL_INSN): Redefine.
78 * tilegx-linux-tdep.c (tilegx_linux_rt_sigframe): Use
79 ULONGEST_MAX.
80 * tic6x-linux-tdep.c (tic6x_linux_rt_sigreturn_tramp_frame): Use
81 ULONGEST_MAX.
82 * sparc64-linux-tdep.c (sparc64_linux_rt_sigframe): Use
83 ULONGEST_MAX.
84 * sparc-linux-tdep.c (sparc32_linux_sigframe)
85 (sparc32_linux_rt_sigframe): Use ULONGEST_MAX.
86 * ppc-nbsd-tdep.c (ppcnbsd_sigtramp, ppcnbsd2_sigtramp): Use
87 ULONGEST_MAX.
88 * ppc-linux-tdep.c (ppc32_linux_sigaction_tramp_frame)
89 (ppc64_linux_sigaction_tramp_frame)
90 (ppc32_linux_sighandler_tramp_frame)
91 (ppc64_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
92 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame)
93 (nios2_r2_linux_rt_sigreturn_tramp_frame): Use ULONGEST_MAX.
94 * mn10300-linux-tdep.c (am33_linux_sigframe)
95 (am33_linux_rt_sigframe): Use ULONGEST_MAX.
96 * mips64-obsd-tdep.c (mips64obsd_sigframe): Use ULONGEST_MAX.
97 * mips-linux-tdep.c (mips_linux_o32_sigframe)
98 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
99 (mips_linux_n64_rt_sigframe, micromips_linux_o32_sigframe)
100 (micromips_linux_o32_rt_sigframe, micromips_linux_n32_rt_sigframe)
101 (micromips_linux_n64_rt_sigframe): Use ULONGEST_MAX.
102 * mips-fbsd-tdep.c (mips_fbsd_sigframe, mipsn32_fbsd_sigframe)
103 (mips64_fbsd_sigframe): Use ULONGEST_MAX.
104 * microblaze-linux-tdep.c
105 (microblaze_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
106 * i386-nbsd-tdep.c (i386nbsd_sigtramp_sc16, i386nbsd_sigtramp_sc2)
107 (i386nbsd_sigtramp_si2, i386nbsd_sigtramp_si31)
108 (i386nbsd_sigtramp_si4): Use ULONGEST_MAX.
109 * hppa-nbsd-tdep.c (hppanbsd_sigtramp_si4): Use ULONGEST_MAX.
110 * common/common-types.h (ULONGEST_MAX): New define.
111 (CORE_ADDR_MAX): Fix formatting.
112 * bfin-linux-tdep.c (bfin_linux_sigframe): Use ULONGEST_MAX.
113 * arm-obsd-tdep.c (armobsd_sigframe): Use ULONGEST_MAX.
114 * arm-linux-tdep.c (arm_linux_sigreturn_tramp_frame)
115 (arm_linux_rt_sigreturn_tramp_frame)
116 (arm_eabi_linux_sigreturn_tramp_frame)
117 (arm_eabi_linux_rt_sigreturn_tramp_frame)
118 (thumb2_eabi_linux_sigreturn_tramp_frame)
119 (thumb2_eabi_linux_rt_sigreturn_tramp_frame)
120 (arm_linux_restart_syscall_tramp_frame)
121 (arm_kernel_linux_restart_syscall_tramp_frame): Use ULONGEST_MAX.
122 * arm-fbsd-tdep.c (arm_fbsd_sigframe): Use ULONGEST_MAX.
123 * aarch64-linux-tdep.c (aarch64_linux_rt_sigframe): Use
124 ULONGEST_MAX.
125 * aarch64-fbsd-tdep.c (aarch64_fbsd_sigframe): Use ULONGEST_MAX.
126
70ab8ccd
TT
1272018-08-27 Tom Tromey <tom@tromey.com>
128
129 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Use
130 CORE_ADDR_MAX.
131 * mips-tdep.c (mips_deal_with_atomic_sequence)
132 (micromips_deal_with_atomic_sequence): Use CORE_ADDR_MAX.
133 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw)
134 (arm_deal_with_atomic_sequence_raw): Use CORE_ADDR_MAX.
135 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Use
136 CORE_ADDR_MAX.
137 * aarch64-tdep.c (aarch64_software_single_step): Use
138 CORE_ADDR_MAX.
139
896a7aa6
TT
1402018-08-27 Tom Tromey <tom@tromey.com>
141
142 * linespec.c (complete_linespec_component): Add cast to "char".
143 * completer.c (completion_tracker::build_completion_result): Add
144 cast to "char".
145
dd33d41d
SM
1462018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
147
148 * solist.h (struct solist, struct target_so_ops): Fix
149 indentation.
150
c645cda4
SM
1512018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
152
153 * ada-tasks.c (ada_task_info_s): Remove typedef.
154 (DEF_VEC_O(ada_task_info_s)): Remove.
155 (struct ada_tasks_inferior_data): Initialize fields.
156 <task_list>: Make an std::vector.
157 (get_ada_tasks_inferior_data): Allocate with new.
158 (ada_get_task_number): Adjust.
159 (get_task_number_from_id): Likewise.
160 (valid_task_id): Likewise.
161 (ada_get_task_info_from_ptid): Likewise.
162 (iterate_over_live_ada_tasks): Likewise.
163 (add_ada_task): Likewise.
164 (read_known_tasks): Likewise.
165 (ada_build_task_list): Likewise.
166 (print_ada_task_info): Likewise.
167 (info_task): Likewise.
168 (task_command_1): Likewise.
169
39e7af3e
SM
1702018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
171
172 * ada-lang.c (add_angle_brackets): Return std::string.
173
bbbbbcee
SM
1742018-08-25 Simon Marchi <simon.marchi@polymtl.ca>
175
176 * python/py-threadevent.c (py_get_event_thread): Initialize
177 pythread.
178
d98fc15b
PA
1792018-08-24 Pedro Alves <palves@redhat.com>
180
181 * python/py-bpevent.c (create_breakpoint_event_object): Use
182 copy-initialization.
183 * python/py-continueevent.c (emit_continue_event): Use
184 copy-initialization.
185 * python/py-exitedevent.c (create_exited_event_object): Return a
186 gdbpy_ref<>.
187 (emit_exited_event): Use copy-initialization.
188 * python/py-inferior.c (python_new_inferior)
189 (python_inferior_deleted, add_thread_object): Use
190 copy-initialization.
191 * python/py-infevents.c (create_inferior_call_event_object)
192 (create_register_changed_event_object)
193 (create_memory_changed_event_object): Return a gdbpy_ref<>.
194 (emit_inferior_call_event, emit_memory_changed_event)
195 (emit_register_changed_event): Use copy-initialization.
196 * python/py-newobjfileevent.c (create_new_objfile_event_object):
197 Return a gdbpy_ref<>.
198 (emit_new_objfile_event): Use copy-initialization.
199 (create_clear_objfiles_event_object): Return a gdbpy_ref<>.
200 (emit_clear_objfiles_event): Use copy-initialization.
201 * python/py-signalevent.c (create_signal_event_object): Use
202 copy-initialization.
203 * python/py-threadevent.c (create_thread_event_object): Use
204 copy-initialization.
205
da3c8738
PA
2062018-08-24 Pedro Alves <palves@redhat.com>
207 Simon Marchi <simon.marchi@ericsson.com>
208
209 PR gdb/23379
210 * python/py-continueevent.c: Include "gdbthread.h".
211 (create_continue_event_object): Add intro comment. Add 'ptid'
212 parameter. Use it to find thread to pass to
213 create_thread_event_object.
214 (emit_continue_event): Pass PTID down to
215 create_continue_event_object.
216 * python/py-event.h (py_get_event_thread): Declare.
217 (create_thread_event_object): Remove default from 'thread'
218 parameter.
219 * python/py-stopevent.c (create_stop_event_object): Use
220 py_get_event_thread.
221 * python/py-threadevent.c (get_event_thread): Rename to ...
222 (py_get_event_thread): ... this, make extern, add 'ptid' parameter
223 and use it to find the thread.
224 (create_thread_event_object): Assert that THREAD isn't null.
225 Don't find the event thread here.
226
26457a9c
KB
2272018-08-23 Kevin Buettner <kevinb@redhat.com>
228
229 * block.h (blockrange, blockranges): New struct declarations.
230 (struct block): Add new field named `ranges'.
231 (BLOCK_RANGES, BLOCK_NRANGES, BLOCK_RANGE, BLOCK_CONTIGUOUS_P)
232 (BLOCK_RANGE_START, BLOCK_RANGE_END, BLOCK_ENTRY_PC): New
233 macros for accessing ranges in struct block.
234 (make_blockranges): New declaration.
235 block.c (make_blockranges): New function.
2d5f09ec
KB
236 * dwarf2read.c (dwarf2_record_block_ranges): Fill in BLOCK_RANGES
237 for block.
fc811edd
KB
238 * symtab.h (find_pc_partial_function): Add new parameter `block'.
239 * blockframe.c (cache_pc_function_block): New static global.
240 (clear_pc_function_cache): Clear cache_pc_function_block.
241 (find_pc_partial_function): Move comment to symtab.h. Add
242 support for non-contiguous blocks.
e9480230
KB
243 * cli/cli-cmds.c (block.h): Include.
244 (print_disassembly): Handle printing of non-contiguous blocks.
245 (disassemble_current_function): Likewise.
246 (disassemble_command): Likewise.
26457a9c 247
2b1ffcfd
KB
248 * ax-gdb.c (gen_var_ref): Use BLOCK_ENTRY_PC in place of
249 BLOCK_START.
250 * blockframe.c (get_pc_function_start): Likewise.
251 * compile/compile-c-symbols.c (convert_one_symbol): Likewise.
252 (gcc_symbol_address): Likewise.
253 * compile/compile-object-run.c (compile_object_run): Likewise.
254 * compile/compile.c (get_expr_block_and_pc): Likewise.
255 * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
256 (func_addr_to_tail_call_list): Likewise.
257 * findvar.c (default_read_var_value): Likewise.
258 * inline-frame.c (inline_frame_this_id): Likewise.
259 (skip-inline_frames): Likewise.
260 * infcmd.c (until_next_command): Likewise.
261 * linespec.c (convert_linespec_to_sals): Likewise.
262 * parse.c (parse_exp_in_context_1): Likewise.
263 * printcmd.c (build_address_symbolic): likewise.
264 (info_address_command): Likewise.
265 symtab.c (find_function_start_sal): Likewise.
266 (skip_prologue_sal): Likewise.
267 (find_function_alias_target): Likewise.
268 (find_gnu_ifunc): Likewise.
269 * stack.c (find_frame_funname): Likewise.
270 * symtab.c (fixup_symbol_section): Likewise.
271 (find_function_start_sal): Likewise.
272 (skip_prologue_sal): Likewsie.
273 (find_function_alias_target): Likewise.
274 (find_gnu_ifunc): Likewise.
275 * tracepoint.c (info_scope_command): Likewise.
276 * value.c (value_fn_field): Likewise.
277
9644dc3a
KB
278 * infrun.c (fill_in_stop_func): Use find_function_entry_range_from_pc
279 in place of find_pc_partial_function.
280 * blockframe.c (find_function_entry_range_from_pc): New function.
281 * symtab.h (find_function_entry_range_from_pc): Declare and document.
282 * objfiles.c (objfile_relocate1): Relocate start and end addresses
283 for each range in a block.
284
285
12a0d0f6
XR
2862018-08-23 Xavier Roirand <roirand@adacore.com>
287
288 * machoread.c (macho_symfile_read_all_oso): Remove uneeded
289 incrementation.
290
d1012b8e
SM
2912018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
292
293 * solib-svr4.c (read_program_headers_from_bfd): Return
294 gdb::optional<gdb::byte_vector>.
295 (svr4_exec_displacement): Adjust.
296
17658d46
SM
2972018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
298
299 * solib-svr4.c (read_program_header): Return
300 gdb::optional<gdb::byte_vector>, remove p_sect_size param.
301 (find_program_interpreter): Return
302 gdb::optional<gdb::byte_vector>.
303 (scan_dyntag_auxv): Adjust.
304 (enable_break): Adjust.
305 (svr4_exec_displacement): Adjust.
306
ae739fe7
SM
3072018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
308
309 * inf-child.h (inf_child_target) <terminal_save_inferior>: New.
310 * inf-child.c (inf_child_target::terminal_save_inferior): New.
311
467dc1e2
SM
3122018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
313
314 * guile/scm-string.c (gdbscm_scm_from_printf): Use
315 string_vprintf.
316 * guile/scm-utils.c (gdbscm_printf): Likewise.
317 * serial.c (serial_printf): Likewise.
318 * xml-support.c (gdb_xml_parser::vdebug): Likewise.
319
6d52907e
JV
3202018-08-22 Jan Vrany <jan.vrany@fit.cvut.cz>
321
322 * stack.c (print_frame): Print frame architecture when printing on
323 an MI output.
324 * NEWS: Mention new "arch" attribute in frame output.
325
9758a8f8
AH
3262018-08-21 Alan Hayward <alan.hayward@arm.com>
327
328 * arch/aarch64.h (aarch64_regnum): Update comment.
329
1461bdac
AH
3302018-08-21 Alan Hayward <alan.hayward@arm.com>
331
332 * NEWS: Add SVE to 8.2 section.
333
4895f384
PA
3342018-08-21 Pedro Alves <palves@redhat.com>
335
336 * guile/scm-utils.c (gdbscm_parse_function_args_1): New, factored
337 out from gdbscm_parse_function_args.
338 (gdbscm_parse_function_args): Rework to use gdbscm_wrap and
339 gdbscm_parse_function_args_1.
340
a4497d2f
SM
3412018-08-21 Simon Marchi <simon.marchi@ericsson.com>
342
343 PR gdb/17816
344 * m32c-tdep.c (m32c_decode_srcdest4): Remove unnecessary ternary
345 operator.
346
c44deb73
SM
3472018-08-19 Simon Marchi <simon.marchi@polymtl.ca>
348
349 * solib-svr4.c (svr4_exec_displacement): Fix formatting.
350
be2d111a
MS
3512018-08-19 Michael Spang <spang@google.com>
352
353 PR gdb/11786
354 * solib-svr4.c (svr4_exec_displacement): Ignore memsz fields
355 for PT_TLS segments.
356
a6b786da
KB
3572018-08-18 Kevin Buettner <kevinb@redhat.com>
358
359 * dwarf2expr.h (struct dwarf_expr_context): Add virtual method
360 dwarf_variable_value.
361 * dwarf2-frame.c (class dwarf_expr_executor):
362 Add override for dwarf_variable_value.
363 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Likewise.
364 (class symbol_needs_eval_context): Likewise.
365 (indirect_synthetic_pointer): Add forward declaration.
366 (sect_variable_value): New function.
367 (dwarf2_compile_expr_to_ax): Add case for DW_OP_GNU_variable_value.
368 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Add case
369 for DW_OP_GNU_variable_value.
370
89fbedf3
TT
3712018-08-16 Tom Tromey <tom@tromey.com>
372
373 * top.c (read_command_file): Update.
374 (command_line_input): Remove "repeat" argument.
375 * ada-lang.c (get_selections): Update.
376 * linespec.c (decode_line_2): Update.
377 * defs.h (command_line_input): Remove argument.
378 * cli/cli-script.c (read_next_line): Update.
379 * python/py-gdb-readline.c: Update.
380
12582533
TT
3812018-08-17 Tom Tromey <tom@tromey.com>
382
383 * cli/cli-script.c (read_next_line): Pass 0 as repeat argument to
384 command_line_input.
385
49514353
TT
3862018-08-15 Tom Tromey <tom@tromey.com>
387
388 * aarch64-linux-tdep.c (aarch64_linux_core_read_vq): Use pulongest.
389
26fb3983
JV
3902018-08-14 Jan Vrany <jan.vrany@fit.cvut.cz>
391
392 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Add -a option.
393 If used, use find_pc_partial_function to find address range
394 to disassemble.
395 * mi/mi-main.c (mi_cmd_list_features): Report
396 "data-disassemble-a-option" feature.
397 * NEWS: Mention new -data-disassemble option -a.
398
a97b53dd
TT
3992018-08-13 Tom Tromey <tom@tromey.com>
400
401 * common/common-defs.h (_FORTIFY_SOURCE): Define.
402
0c76e06d
AH
4032018-08-13 Alan Hayward <alan.hayward@arm.com>
404
405 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): New function.
406 (aarch64_linux_collect_sve_regset): Likewise.
407 (aarch64_linux_iterate_over_regset_sections): Check for SVE.
408 * regcache.h (regcache_map_entry_size): New function.
409
b7fd65b9
AH
4102018-08-13 Alan Hayward <alan.hayward@arm.com>
411
412 * aarch64-linux-tdep.c (SVE_HEADER_SIZE_LENGTH): Add define.
413 (SVE_HEADER_MAX_SIZE_LENGTH): Likewise.
414 (SVE_HEADER_VL_LENGTH): Likewise.
415 (SVE_HEADER_MAX_VL_LENGTH): Likewise.
416 (SVE_HEADER_FLAGS_LENGTH): Likewise.
417 (SVE_HEADER_RESERVED_LENGTH): Likewise.
418 (SVE_HEADER_SIZE_OFFSET): Likewise.
419 (SVE_HEADER_MAX_SIZE_OFFSET): Likewise.
420 (SVE_HEADER_VL_OFFSET): Likewise.
421 (SVE_HEADER_MAX_VL_OFFSET): Likewise.
422 (SVE_HEADER_FLAGS_OFFSET): Likewise.
423 (SVE_HEADER_RESERVED_OFFSET): Likewise.
424 (SVE_HEADER_SIZE): Likewise.
425 (aarch64_linux_core_read_vq): Add function.
426 (aarch64_linux_core_read_description): Check for SVE section.
427
a616bb94
AH
4282018-08-13 Alan Hayward <alan.hayward@arm.com>
429
430 * aarch64-fbsd-tdep.c
431 (aarch64_fbsd_iterate_over_regset_sections): Add supply_size and
432 collect_size.
433 * aarch64-linux-tdep.c
434 (aarch64_linux_iterate_over_regset_sections): Likewise.
435 * alpha-linux-tdep.c
436 (alpha_linux_iterate_over_regset_sections):
437 * alpha-nbsd-tdep.c
438 (alphanbsd_iterate_over_regset_sections): Likewise.
439 * amd64-fbsd-tdep.c
440 (amd64fbsd_iterate_over_regset_sections): Likewise.
441 * amd64-linux-tdep.c
442 (amd64_linux_iterate_over_regset_sections): Likewise.
443 * arm-bsd-tdep.c
444 (armbsd_iterate_over_regset_sections): Likewise.
445 * arm-fbsd-tdep.c
446 (arm_fbsd_iterate_over_regset_sections): Likewise.
447 * arm-linux-tdep.c
448 (arm_linux_iterate_over_regset_sections): Likewise.
449 * corelow.c (get_core_registers_cb): Likewise.
450 (core_target::fetch_registers): Likewise.
451 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
452 * frv-linux-tdep.c (frv_linux_iterate_over_regset_sections): Likewise.
453 * gdbarch.h (void): Regenerate.
454 * gdbarch.sh: Add supply_size and collect_size.
455 * hppa-linux-tdep.c (hppa_linux_iterate_over_regset_sections): Likewise.
456 * hppa-nbsd-tdep.c (hppanbsd_iterate_over_regset_sections): Likewise.
457 * hppa-obsd-tdep.c (hppaobsd_iterate_over_regset_sections): Likewise.
458 * i386-fbsd-tdep.c (i386fbsd_iterate_over_regset_sections): Likewise.
459 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections): Likewise.
460 * i386-tdep.c (i386_iterate_over_regset_sections): Likewise.
461 * ia64-linux-tdep.c (ia64_linux_iterate_over_regset_sections): Likewise.
462 * linux-tdep.c (linux_collect_regset_section_cb): Likewise.
463 * m32r-linux-tdep.c (m32r_linux_iterate_over_regset_sections): Likewise.
464 * m68k-bsd-tdep.c (m68kbsd_iterate_over_regset_sections): Likewise.
465 * m68k-linux-tdep.c (m68k_linux_iterate_over_regset_sections): Likewise.
466 * mips-fbsd-tdep.c (mips_fbsd_iterate_over_regset_sections): Likewise.
467 * mips-linux-tdep.c (mips_linux_iterate_over_regset_sections): Likewise.
468 * mips-nbsd-tdep.c (mipsnbsd_iterate_over_regset_sections): Likewise.
469 * mips64-obsd-tdep.c (mips64obsd_iterate_over_regset_sections): Likewise.
470 * mn10300-linux-tdep.c (am33_iterate_over_regset_sections): Likewise.
471 * nios2-linux-tdep.c (nios2_iterate_over_regset_sections): Likewise.
472 * ppc-fbsd-tdep.c (ppcfbsd_iterate_over_regset_sections): Likewise.
473 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections): Likewise.
474 * ppc-nbsd-tdep.c (ppcnbsd_iterate_over_regset_sections): Likewise.
475 * ppc-obsd-tdep.c (ppcobsd_iterate_over_regset_sections): Likewise.
476 * riscv-linux-tdep.c (riscv_linux_iterate_over_regset_sections): Likewise.
477 * rs6000-aix-tdep.c (rs6000_aix_iterate_over_regset_sections): Likewise.
478 * s390-linux-tdep.c (s390_iterate_over_regset_sections): Likewise.
479 * score-tdep.c (score7_linux_iterate_over_regset_sections): Likewise.
480 * sh-tdep.c (sh_iterate_over_regset_sections): Likewise.
481 * sparc-tdep.c (sparc_iterate_over_regset_sections): Likewise.
482 * tilegx-linux-tdep.c (tilegx_iterate_over_regset_sections): Likewise.
483 * vax-tdep.c (vax_iterate_over_regset_sections): Likewise.
484 * xtensa-tdep.c (xtensa_iterate_over_regset_sections): Likewise.
485
a9925d4f
SM
4862018-08-10 Simon Marchi <simon.marchi@ericsson.com>
487
488 * nat/linux-osdata.c (commandline_from_pid): Replace xstrprintf
489 with string_printf.
490
ad3a68e9
KS
4912018-08-10 Keith Seitz <keiths@redhat.com>
492
493 * compile/compile-c-support.c (add_code_header, add_code_footer):
494 Move into policy class.
495 (c_push_user_expression, pop_user_expression_nop)
496 (c_add_code_header, c_add_code_footer, c_add_input): New policy class.
497 (compile_program): New host class.
498 (c_compile_program): New typedef.
499 (c_compute_porgram): Use c_compile_program.
500
0cfbf430
KS
5012018-08-10 Keith Seitz <keiths@redhat.com>
502
503 * compile/compile-internal.h (compile_instance::~compile_instance):
504 Remove calls to htab_delete.
505 <m_type_map, m_symbol_err_map>: Switch type to htab_up.
506 * compile.c (compile_instance::compile_instance): Initialize
507 htab unique pointers.
508 (compile_instance::get_cached_type, compile_instance::insert_type)
509 (compile_instance::error_symbol_once): Update for unique_ptr.
510
946d3d10
KS
5112018-08-10 Keith Seitz <keiths@redhat.com>
512
513 * compile/compile-c-symbols.c (struct symbol_error)
514 (hash_symbol_error, eq_symbol_error, del_symbol_error)
515 (compile_instance::insert_symbol_error)
516 (compile_instance::error_symbol_once): Move to ...
517 * compile/compile.c: ... here.
518
9cdfd9a2
KS
5192018-08-10 Keith Seitz <keiths@redhat.com>
520
521 * compile/compile-c-support.c (c_get_compile_context): Use `new'
522 instead of `new_compile_instance'.
523 * compile/compile-c-symbols.c (compile_instance::insert_symbol_error):
524 Update description.
525 If the symbol error map is not initialized, create it.
526 (generate_c_for_for_one_symbol): Do not check/initialize
527 the symbol error map.
528 * compile/compile-c-types.c (compile_c_instance): Make a class.
529 Update all callers.
530 (compile_instance::compile_instance): Initialize the type cache.
531 (get_cached_type): New function.
532 (insert_type): Update description.
533 (compile_c_instance::m_default_cflags): Define.
534 (convert_type): Update description. Use get_cached_type.
535 (delete_instance): Moved to destructor.
536 (new_compile_instance): Moved to constructor.
537 * compile/compile-c.h (compile_c_instance): Make class inheriting
538 from compile_instance.
539 <base>: Remove field.
540 <type_map, symbol_err_map>: Move to base class.
541 <c_plugin>: Rename to `m_plugin' and remove pointer type.
542 * compile/compile-internal.h (compile_instance): Make class.
543 <type_map_t, symbol_err_map_t>: Define.
544 <fe>: Rename to `m_gcc_fe'.
545 <scope, block, gcc_target_options>: Add `m_' prefix.
546 <m_type_map, m_symbol_err_map>: New fields, moved from
547 compile_c_instance.
548 <destroy>: Remove.
549 (convert_type, new_compile_instance): Remove.
550 * compile/compile.c (cleanup_compile_instance): Remove.
551 (compile_to_object): Use unique_ptr to eliminate cleanups.
552 (compile_instance::set_print_callback, compile_instance::version)
553 (compile_instance::set_verbose)
554 (compile_instance::set_driver_filename)
555 (compile_instance::set_triplet_regexp)
556 (compile_instance::set_arguments)
557 (compile_instance::set_source_file)
558 (compile_instance::compile): Define.
559
18cdc6d8
KS
5602018-08-10 Keith Seitz <keiths@redhat.com>
561
562 * Makefile.in (HFILES_NO_SRCDIR): Add compile/gcc-c-plugin.h.
563 * compile/compile-c-types.c: Define GCC_METHODN macros and include
564 gcc-c-fe.def to define C plugin.
565 (delete_instance): Delete `c_plugin'.
566 (new_compile_instance): Initialize `c_plugin'.
567 * compile/compile-c.h: Include gcc_c_plugin.h.
568 (struct compile_c_instance) <c_plugin>: New member.
569 * gcc-c-plugin.h: New file.
570 Update all callers with API change.
571
b7dc48b4
KS
5722018-08-10 Keith Seitz <keiths@redhat.com>
573
574 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Move header files ...
575 (HFILES_NO_SRCDIR): ... to here.
576 Add compile-internal.h and compile-c.h.
577 * compile/compile-c-support.c: Include compile-c.h.
578 * compile/compile-c-symbols.c: Include compile-c.h.
579 (generate_c_for_variable_locations): Update comment.
580 * compile/compile-c-types.c: Include compile-c.h.
581 * compile/compile-c.h: New file -- moved C language declarations
582 from other files here.
583 * compile/compile-internal.h: Do not include hashtab.h or
584 common/enum-flags.h.
585 (gcc_qualifiers_flags, struct compile_c_instance, C_CTX)
586 (gcc_convert_symbol, gcc_symbol_address)
587 (generate_c_for_variable_locations, c_get_mode_for_size)
588 (c_get_range_decl_name): Definitions moved to compile-c.h.
589 * compile/compile-loc2c.c: Include compile-c.h.
590
6f36b6d2
KS
5912018-08-10 Keith Seitz <keiths@redhat.com>
592
593 * compile/compile-c-symbols.c (symbol_substitution_name): Rename to ...
594 (c_symbol_substitution_name): ... this.
595 Update all callers.
596
bd923e51
KS
5972018-08-10 Keith Seitz <keiths@redhat.com>
598
599 * compile/compile-c-support.c (c_compute_program): Use
600 unique_xmalloc_ptr to eliminate cleanup.
601 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
602 Return a unique_xmalloc_ptr and eliminate cleanup.
603 * compile/compile-internal.h (generate_c_for_variable_locations):
604 Return unique_xmalloc_ptr and update description.
605
dbd534fe
AH
6062018-08-10 Alan Hayward <alan.hayward@arm.com>
607
608 * corelow.c (core_target::get_core_register_section): Rename
609 min_size to section_min_size.
610
90ad3654
JW
6112018-08-09 Jim Wilson <jimw@sifive.com>
612
52a187f8
JW
613 * Makefile.in (ALL_TARGET_OBS): Add riscv-linux-tdep.c.
614 (ALLDEPFILES): Add riscv-linux-nat.c, and riscv-linux-tdep.c.
615 * NEWS: Mention new GNU/Linux RISC-V target.
616 * configure.host: Add riscv*-*-linux*.
617 * configure.nat: Add riscv*.
618 * configure.tgt: Add riscv*-*-linux*.
3c77f97e 619 * riscv-linux-nat.c: New file.
90ad3654
JW
620 * riscv-linux-tdep.c: New file.
621
aff4e175
AB
6222018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
623
624 * infrun.c (resume): Make static, add forward declaration.
625 (proceed): Update header comment.
626 * infrun.h (resume): Delete declaration.
627
06ab9219
TT
6282018-08-09 Tom Tromey <tom@tromey.com>
629
630 * riscv-tdep.h: Minor formatting fixes.
631
83c8d318
SM
6322018-08-09 Simon Marchi <simon.marchi@ericsson.com>
633
634 * common/scoped_mmap.c (mmap_file): Silence ARI warning.
635 * dwarf-index-cache.c (create_dir_and_check): Likewise.
636 (test_mkdir_recursive): Likewise.
637 * dwarf-index-write.c (write_psymtabs_to_index): Likewise.
638
5ff2bbae
AB
6392018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
640
641 * valarith.c (value_subscripted_rvalue): If an array is not in
642 memory, and we don't know the upper bound, then we can't know that
643 the requested element exists or not.
644
fdbac7d8
SM
6452018-08-08 Simon Marchi <simon.marchi@ericsson.com>
646
647 * target.c (str_comma_list_concat_elem): Fix typo in comment.
648 (target_options_to_string): Add comment.
649
83202f7a
TT
6502018-08-08 Tom Tromey <tom@tromey.com>
651
652 * unittests/scoped_mmap-selftests.c: Check result of "write".
653
411baa47
JW
6542018-08-08 Jim Wilson <jimw@sifive.com>
655
5c720ed8
JW
656 * riscv-tdep.c (enum opcode): Add jump, branch, lr, and sc opcodes.
657 (decode_register_index_short): New.
658 (decode_j_type_insn, decode_cj_type_insn): New.
659 (decode_b_type_insn, decode_cb_type_insn): New.
660 (riscv_insn::decode): Add support for jumps, branches, lr, and sc. New
661 local xlen. Check xlen when decoding ambiguous compressed insns. In
662 compressed decode, use is_c_lui_insn instead of is_lui_insn, and
663 is_c_sw_insn instead of is_sw_insn.
664 (riscv_next_pc, riscv_next_pc_atomic_sequence): New.
665 (riscv_software_single_step): New.
666 * riscv-tdep.h (riscv_software_single_step): Declare.
667
411baa47
JW
668 * riscv-tdep.c (riscv_isa_xlen): Drop static.
669 * riscv-tdep.h (riscv_isa_xlen): Add extern declaration.
670
9d4a934c
AB
6712018-08-08 Andrew Burgess <andrew.burgess@embecosm.com>
672
673 PR gdb/18050:
674 * target.c (dispose_inferior): Don't dispose of inferiors that are
675 already killed.
676
ff36536c
SN
6772018-08-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
678
679 * remote.c (remote_target::download_tracepoint): Change char* to
680 const char*.
681
09ce46f2
SM
6822018-08-07 Simon Marchi <simon.marchi@polymtl.ca>
683
684 * target.h (target_options_to_string): Return an std::string.
685 * target.c (str_comma_list_concat_elem): Return void, use
686 std::string.
687 (do_option): Likewise.
688 (target_options_to_string): Return an std::string.
689 * linux-nat.c (linux_nat_target::wait): Adjust.
690 * target-debug.h (target_debug_print_options): Adjust.
691
9c612964
TT
6922018-08-07 Tom Tromey <tom@tromey.com>
693
694 * Makefile.in (CPPFLAGS): New variable.
695 (INTERNAL_CPPFLAGS): Use it.
696
7d11235d
SM
6972018-08-07 Simon Marchi <simon.marchi@ericsson.com>
698
699 * NEWS: Mention the index cache.
700
87d6a7aa
SM
7012018-08-07 Simon Marchi <simon.marchi@ericsson.com>
702
703 * common/pathstuff.h (get_standard_cache_dir): New.
704 * common/pathstuff.c (get_standard_cache_dir): New.
705 * build-id.h (build_id_to_string): New.
706 * dwarf-index-common.h (INDEX4_SUFFIX, INDEX5_SUFFIX,
707 DEBUG_STR_SUFFIX): Move to here.
708 * dwarf-index-write.c (INDEX4_SUFFIX, INDEX5_SUFFIX,
709 DEBUG_STR_SUFFIX): Move from there.
710 (write_psymtabs_to_index): Make non-static, add basename
711 parameter. Write to temporary files, rename when done.
712 (save_gdb_index_command): Adjust call to
713 write_psymtabs_to_index.
714 * dwarf2read.h (dwarf2_per_objfile) <index_cache_res>: New
715 field.
716 * dwarf2read.c (dwz_file) <index_cache_res>: New field.
717 (get_gdb_index_contents_from_cache): New.
718 (get_gdb_index_contents_from_cache_dwz): New.
719 (dwarf2_initialize_objfile): Read index from cache.
720 (dwarf2_build_psymtabs): Save to index.
721 * dwarf-index-cache.h: New file.
722 * dwarf-index-cache.c: New file.
723 * dwarf-index-write.h: New file.
724
8a99096f
SM
7252018-08-07 Simon Marchi <simon.marchi@ericsson.com>
726
727 * gnulib/aclocal.m4: Re-generate.
728 * gnulib/config.in: Re-generate.
729 * gnulib/configure: Re-generate.
730 * gnulib/import/Makefile.am: Re-generate.
731 * gnulib/import/Makefile.in: Re-generate.
732 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
733 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
734 * gnulib/import/m4/mkdir.m4: New file.
735 * gnulib/import/mkdir.c: New file.
736 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkdir
737 module.
738
5c831bb1
SM
7392018-08-07 Simon Marchi <simon.marchi@ericsson.com>
740
741 * Makefile.in (COMMON_SFILES): Add common/scoped_mmap.c.
742 * common/scoped_mmap.c: New file.
743 * common/scoped_mmap.h (destroy): New method.
744 (~scoped_mmap, reset): Use destroy.
745 (scoped_mmap): New move constructor.
746 (mmap_file): New declaration.
747 * unittests/scoped_mmap-selftests.c (test_normal,
748 test_invalid_filename, run_tests): New functions.
749 (_initialize_scoped_mmap_selftests): Register selftest.
750
4485a1c1
SM
7512018-08-07 Simon Marchi <simon.marchi@ericsson.com>
752
753 * dwarf2read.c (read_gdb_index_from_section): Rename to...
754 (read_gdb_index_from_buffer): ... this. Remove section
755 parameter, add buffer parameter.
756 (get_gdb_index_contents_ftype,
757 get_gdb_index_contents_dwz_ftype): New typedefs.
758 (dwarf2_read_gdb_index): Add callback parameters to get the
759 index contents.
760 (get_gdb_index_contents_from_section): New.
761 (dwarf2_initialize_objfile): Update call to
762 dwarf2_read_gdb_index.
763
528e1572
SM
7642018-08-07 Simon Marchi <simon.marchi@ericsson.com>
765
766 * common/filestuff.h (gdb_fopen_cloexec): New overload.
767 (gdb_open_cloexec): Likewise.
768 * nat/linux-osdata.c (command_from_pid): Use string_printf.
769 (commandline_from_pid): Likewise.
770 (linux_xfer_osdata_threads): Likewise.
771 (linux_xfer_osdata_fds): Likewise.
772 * ada-lang.c (is_package_name): Likewise.
773 * auxv.c (procfs_xfer_auxv): Likewise.
774 * breakpoint.c (print_one_breakpoint_location): Use
775 uiout::field_fmt.
776 (print_one_catch_solib): Use string_printf.
777 * coff-pe-read.c (add_pe_exported_sym): Likewise.
778 (add_pe_forwarded_sym): Likewise.
779 * dwarf2read.c (create_type_unit_group): Likewise.
780 (build_error_marker_type): Likewise.
781 * infcall.c (get_function_name): Likewise.
782 * valprint.c (print_converted_chars_to_obstack): Likewise.
783 * xtensa-tdep.c (xtensa_register_type): Likewise.
784
a7f25a84
SM
7852018-08-06 Simon Marchi <simon.marchi@ericsson.com>
786
787 * remote.c (remote_target::download_tracepoint): Fix format
788 string errors.
789
296956be
PFC
7902018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
791
792 * tracefile.c: Include common/byte-vector.h.
793 (trace_save): Change type of buf to gdb::byte_vector. Initialize
794 with trace_regblock_size if needed. Update uses of buf.
795
a04b9d62
PFC
7962018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
797
798 * tracepoint.h (collection_list) <m_regs_mask>: Change type to
799 std::vector<unsigned char>.
800 * tracepoint.c (collection_list::collection_list): Remove
801 m_regs_mask initializer from initializer list. Resize
802 m_regs_mask using the largest remote register number.
803 (collection_list::add_remote_register): Remove size check on
804 m_regs_mask. Use at to access element.
805 (collection_list::stringify): Change type of temp_buf to
806 gdb::char_vector. Update uses of temp_buf. Resize if needed to
807 stringify the register mask. Use pack_hex_byte for the register
808 mask.
809
4277c4b8
PFC
8102018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
811
812 * tracepoint.h (class collection_list) <add_register>: Remove.
813 <add_remote_register, add_ax_registers, add_local_register>:
814 Declare.
815 <add_memrange>: Add scope parameter.
816 * tracepoint.c (encode_actions_1): Likewise.
817 (collection_list::add_register): Rename to ...
818 (collection_list::add_remote_register): ... this. Update
819 comment.
820 (collection_list::add_ax_registers, add_local_register): New
821 methods.
822 (collection_list::add_memrange): Add scope parameter. Call
823 add_local_register instead of add_register.
824 (finalize_tracepoint_aexpr): New function.
825 (collection_list::collect_symbol): Update calls to add_memrange.
826 Call add_local_register instead of add_register. Call
827 add_ax_registers. Call finalize_tracepoint_aexpr.
828 (encode_actions_1): Get remote regnos for $reg action. Call
829 add_remote_register, add_ax_registers, and add_local_register.
830 Update call to add_memrange. Call finalize_tracepoint_aexpr.
831 (validate_actionline): Call finalize_tracepoint_aexpr.
832
3df3a985
PFC
8332018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
834
835 * remote.c (remote_target::download_tracepoint): Remove BUF_SIZE.
836 Replace array buf with gdb::char_vector buf, of size
837 get_remote_packet_size (). Replace references to buf and
838 BUF_SIZE to buf.data () and buf.size (). Replace strcpy, strcat
839 and xsnprintf with snprintf. Raise errors if the buffer is too
840 small.
841
aa6f3694
PFC
8422018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
843
844 * remote.c (remote_target::download_tracepoint): Fix the has_more
845 predicate in the QTDP action list iteration.
846
05abfc39
PFC
8472018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
848
849 * remote.c (remote_target::download_tracepoint): Fix indentation
850 in for block.
851
821a2682
RO
8522018-08-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
853
854 * proc-api.c (_initialize_proc_api): Remove c, unused.
855 * procfs.c (procfs_init_inferior): Remove signals, unused.
856 (procfs_target::make_corefile_notes): Remove old_chain, fpregs,
857 unused.
858
95347337
AB
8592018-08-06 Sergey Korolev <s.korolev@ndmsystems.com>
860 Andrew Burgess <andrew.burgess@embecosm.com>
861
862 * linux-nat.c (linux_nat_target::follow_fork): Avoid using
863 'W_STOPCODE (0)' as this could be ambiguous.
864
425699f5
SDJ
8652018-08-03 Sergio Durigan Junior <sergiodj@redhat.com>
866
867 * ser-tcp.c (net_open): Fix thinko when deciding whether to
868 disable TCP's Nagle algorithm (use "ai_protocol" instead of
869 "ai_socktype").
870
3e1d3d8c
TT
8712018-08-02 Tom Tromey <tom@tromey.com>
872
873 PR symtab/16842.
874 * dwarf2read.c (read_func_scope): Set symtab on template parameter
875 symbols.
876 (process_structure_scope): Likewise.
877
15843549
XR
8782018-08-02 Xavier Roirand <roirand@adacore.com>
879
880 PR gdb/22629:
881 * darwin-nat.c (darwin_kill_inferior): Fix handling of
882 kill inferior.
883
b5bddbbb
TT
8842018-08-02 Tom Tromey <tom@tromey.com>
885
886 * darwin-nat.c (find_inferior_task_it, darwin_find_thread)
887 (darwin_suspend_inferior, darwin_resume_inferior)
888 (darwin_decode_notify_message, darwin_resume_inferior_threads)
889 (darwin_check_new_threads): Check result of get_darwin_inferior.
890
f61cfa07
JB
8912018-07-31 Joel Brobecker <brobecker@adacore.com>
892
893 GDB 8.1.1 released.
894
5abe0f0c
JV
8952018-07-31 Jan Vrany <jan.vrany@fit.cvut.cz>
896
897 * varobj.c (varobj_get_path_expr_parent): Report an error if
898 parent is a dynamic varobj.
899
472fa5ee
SM
9002018-07-31 Simon Marchi <simon.marchi@ericsson.com>
901
902 * gnulib/aclocal.m4: Re-generate.
903 * gnulib/config.in: Re-generate.
904 * gnulib/configure: Re-generate.
905 * gnulib/import/Makefile.in: Re-generate.
906 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
907 * gnulib/import/m4/onceonly.m4: Re-generate.
908
1c28969e
SM
9092018-07-31 Simon Marchi <simon.marchi@ericsson.com>
910
911 * target-descriptions.c (struct xml_test_tdesc): New.
912 (xml_tdesc): Change type to std::vector<xml_test_tdesc>.
913 (record_xml_tdesc): Update.
914 (maintenance_check_xml_descriptions): Update.
915 * target-descriptions.h (record_xml_tdesc): Update comment.
916
c8f2dc0d
AB
9172018-07-30 Andrew Burgess <andrew.burgess@embecosm.com>
918
919 * eval.c (evaluate_subexp_for_sizeof): Check for array type before
920 checking array bounds are defined.
921
463c08d1
TT
9222018-07-30 Tom Tromey <tom@tromey.com>
923
924 * nat/linux-osdata.c (pid_pgid_entry::operator<): Fix
925 irreflexivity violation.
926
dba7455e
TT
9272018-07-30 Tom Tromey <tom@tromey.com>
928
929 * cli/cli-decode.c (lookup_cmd): Remove lint code.
930 * value.c (unpack_long): Remove lint code.
931 * valops.c (value_ind): Remove lint code.
932 * valarith.c (value_x_binop, value_x_unop, value_equal)
933 (value_pos): Remove lint code.
934
37cc0cae
TV
9352018-07-28 Tom de Vries <tdevries@suse.de>
936
937 * eval.c (evaluate_subexp_for_sizeof): Interpret size of dynamic type
938 with undefined upper bound as <optimized out>.
939
129eb0f1
SDJ
9402018-07-27 Sergio Durigan Junior <sergiodj@redhat.com>
941
942 * gcore.in: Rename variable "name" to "prefix". Expand
943 "usage" text.
944
6af79d7b
JT
9452018-07-14 Jon Turney <jon.turney@dronecode.org.uk>
946
947 * windows-nat.c (windows_nat_target::create_inferior): Update to
948 call close() in global namespace.
949
79748972
TT
9502018-07-26 Tom Tromey <tom@tromey.com>
951
952 * dwarf-index-write.c (add_address_entry): Don't add objfile
953 offsets.
954 * dbxread.c (find_stab_function): Rename from
955 find_stab_function_addr. Return a bound_minimal_symbol.
956 (read_dbx_symtab): Use raw_text_low, raw_text_high.
957 Don't add objfile offsets.
958 (end_psymtab): Use raw_text_low, raw_text_high,
959 MSYMBOL_VALUE_RAW_ADDRESS.
960 (read_ofile_symtab): Update.
961 (process_one_symbol): Update.
962 * dwarf2read.c (create_addrmap_from_index): Don't add objfile
963 offsets.
964 (dw2_relocate): Remove.
965 (dw2_find_pc_sect_symtab): Bias PC by the text offset before
966 searching addrmap.
967 (dwarf2_gdb_index_functions, dwarf2_debug_names_functions):
968 Update.
969 (process_psymtab_comp_unit_reader, add_partial_symbol)
970 (add_partial_subprogram, dwarf2_ranges_read): Update.
971 (load_partial_dies): Update.
972 (add_address_entry): Don't add objfile offsets.
973 (dwarf2_build_include_psymtabs): Update.
974 (create_addrmap_from_aranges): Don't add objfile offsets.
975 (dw2_find_pc_sect_compunit_symtab): Update.
976 * mdebugread.c (parse_symbol): Don't add objfile offsets.
977 (parse_lines): Remove 'pst' parameter, replace with 'textlow'.
978 Update.
979 (parse_partial_symbols): Don't add objfile offsets. Use
980 raw_text_low, raw_text_high. Update.
981 (handle_psymbol_enumerators, psymtab_to_symtab_1): Update.
982 * objfiles.c (objfile_relocate1): Don't relocate psymtabs_addrmap
983 or call 'relocate' quick function. Clear psymbol_map.
984 * psympriv.h (struct partial_symbol) <address>: Add section
985 offset.
986 <set_unrelocated_address>: Rename from set_address.
987 <raw_text_low, raw_text_high>: New methods.
988 <text_low, text_high>: Add objfile parameter.
989 (add_psymbol_to_bcache): Add 'section' parameter. Call
990 set_unrelocated_address.
991 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
992 (find_pc_psymbol): Update.
993 (fixup_psymbol_section, relocate_psymtabs): Remove.
994 (dump_psymtab, psym_functions): Update.
995 (add_psymbol_to_bcache, add_psymbol_to_list): Add 'section'
996 parameter.
997 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
998 (start_psymtab_common): Update.
999 * symfile-debug.c (debug_qf_relocate): Remove.
1000 (debug_sym_quick_functions): Update.
1001 * symfile.h (struct quick_symbol_functions) <relocate>: Remove.
1002 * xcoffread.c (scan_xcoff_symtab): Don't add objfile offsets.
1003 Update.
1004
52948f01
TT
10052018-07-26 Tom Tromey <tromey@redhat.com>
1006
1007 * dbxread.c (end_psymtab): Use text_high_valid and
1008 text_low_valid.
1009 * mdebugread.c (parse_partial_symbols): Use text_low_valid.
1010 (psymtab_to_symtab_1): Use text_high_valid and text_low_valid.
1011 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
1012 Update comment.
1013 <text_low_valid, text_high_valid>: New fields.
1014 <set_text_low, set_text_high>: Update.
1015 * xcoffread.c (scan_xcoff_symtab): Use text_low_valid.
1016
4ae976d1
TT
10172018-07-26 Tom Tromey <tom@tromey.com>
1018
1019 * dbxread.c (read_dbx_symtab, end_psymtab, read_ofile_symtab):
1020 Update.
1021 * dwarf2read.c (dwarf2_create_include_psymtab): Don't initialize
1022 textlow and texthigh fields.
1023 (process_psymtab_comp_unit_reader, dwarf2_build_include_psymtabs):
1024 Update.
1025 * mdebugread.c (parse_lines, parse_partial_symbols)
1026 (psymtab_to_symtab_1): Update.
1027 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
1028 Rename fields. Update comment. Now private.
1029 <text_low, text_high, set_text_low, set_text_high>: New methods.
1030 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
1031 (find_pc_sect_psymbol, relocate_psymtabs, dump_psymtab)
1032 (start_psymtab_common, maintenance_info_psymtabs)
1033 (maintenance_check_psymtabs): Update.
1034 * xcoffread.c (xcoff_end_psymtab): Don't initialize textlow and
1035 texthigh fields.
1036 (scan_xcoff_symtab): Update.
1037
02e9e7f7
TT
10382018-07-26 Tom Tromey <tromey@redhat.com>
1039
1040 * psympriv.h (struct partial_symbol) <unrelocated_address,
1041 address, set_address>: New methods.
1042 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymbol)
1043 (fixup_psymbol_section, relocate_psymtabs): Update.
1044 (print_partial_symbols): Add 'objfile' parameter. Update.
1045 (dump_psymtab, add_psymbol_to_bcache, psym_fill_psymbol_map):
1046 Update.
1047
8a6d4234
TT
10482018-07-26 Tom Tromey <tom@tromey.com>
1049
1050 * dwarf-index-write.c (write_psymbols, debug_names::insert)
1051 (debug_names::write_psymbols): Update.
1052 * psympriv.h (struct partial_symbol): Derive from
1053 general_symbol_info.
1054 <obj_section>: New method.
1055 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.n
1056 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
1057 (find_pc_sect_psymbol, fixup_psymbol_section)
1058 (match_partial_symbol, lookup_partial_symbol, relocate_psymtabs)
1059 (print_partial_symbols, recursively_search_psymtabs)
1060 (compare_psymbols, psymbol_hash, psymbol_compare)
1061 (add_psymbol_to_bcache, maintenance_check_psymtabs)
1062 (psymbol_name_matches, psym_fill_psymbol_map): Update.
1063
08994e1d
TT
10642018-07-26 Tom Tromey <tromey@redhat.com>
1065
1066 * dbxread.c (end_psymtab): Remove dead code.
1067
3c3bb058
AB
10682018-07-26 Andrew Burgess <andrew.burgess@embecosm.com>
1069
1070 * dwarf2-frame-tailcall.c (tailcall_frame_sniffer): Exit early if
1071 DWARF unwinders are disabled.
1072 * dwarf2-frame.c: Add dwarf2read.h include.
1073 (dwarf2_frame_sniffer): Exit early if DWARF unwinders are
1074 disabled.
1075 (dwarf2_frame_unwinders_enabled_p): Define.
1076 (show_dwarf_unwinders_enabled_p): New function.
1077 (_initialize_dwarf2_frame): Register switch to control DWARF
1078 unwinder use.
1079 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Declare.
1080 * dwarf2read.c (set_dwarf_cmdlist): Remove static keyword.
1081 (show_dwarf_cmdlist): Remove static keyword.
1082 * dwarf2read.h (set_dwarf_cmdlist): Declare.
1083 (show_dwarf_cmdlist): Declare.
1084 * NEWS: Document new feature.
1085
9e7f3bbb
TV
10862018-07-26 Tom de Vries <tdevries@suse.de>
1087
1088 PR breakpoints/23366
1089 * infcmd.c (info_program_command): Handle ptid == minus_one_ptid.
1090
506f5c41
TV
10912018-07-26 Tom de Vries <tdevries@suse.de>
1092
1093 * dwarf2read.c (read_subrange_type): Warn if DW_AT_upper_bound or
1094 DW_AT_count can't be translated to a dynamic prop.
1095
16f808ec
TV
10962018-07-25 Tom de Vries <tdevries@suse.de>
1097
1098 * dwarf2loc.c (dwarf2_locexpr_baton_eval): Wrap ctx.eval call in
1099 try/catch.
1100
d7154a8d
JV
11012018-07-25 Jan Vrany <jan.vrany@fit.cvut.cz>
1102
1103 * breakpoint.c (enable_disable_bp_num_loc): Notify observers.
1104
a45389f6
JB
11052018-07-25 Joel Brobecker <brobecker@adacore.com>
1106
1107 * MAINTAINERS (Global Maintainers): Add Tom Tromey.
1108
380618d6
KS
11092018-07-24 Keith Seitz <keiths@redhat.comt
1110
1111 PR symtab/23010
1112 * dwarf2read.c (dw2_add_symbol_to_list): New function.
1113 (fixup_go_packaging, new_symbol): Use dw2_add_symbol_to_list
1114 instead of add_symbol_to_list.
1115 (read_file_scope): Call prepare_one_comp_unit before reading
1116 any other DIEs.
1117
4b17aefe
SM
11182018-07-24 Simon Marchi <simon.marchi@ericsson.com>
1119
1120 * common/scoped_mmap.h (class scoped_mmap): Fix indentation.
1121
29d17e47
TT
11222018-07-24 Tom Tromey <tom@tromey.com>
1123
1124 * utils.c (malloc, realloc, free): Don't declare.
1125 * configure, config.in: Rebuild.
1126 * configure.ac: Don't check for declarations of free, malloc, or
1127 realloc.
1128
cf4088a9
SM
11292018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1130
1131 * aarch64-linux-nat.c
1132 (aarch64_linux_nat_target::stopped_data_address): Remove unused
1133 variable.
1134 * arm-linux-nat.c (fetch_regs): Likewise.
1135 (store_regs): Likewise.
1136 (fetch_vfp_regs): Likewise.
1137 (store_vfp_regs): Likewise.
1138 (arm_linux_nat_target::insert_hw_breakpoint): Likewise.
1139 (arm_linux_nat_target::remove_hw_breakpoint): Likewise.
1140 (arm_linux_nat_target::insert_watchpoint): Likewise.
1141 (arm_linux_nat_target::remove_watchpoint): Likewise.
1142 * mips-linux-nat.c (mips_linux_nat_target::insert_watchpoint):
1143 Likewise.
1144 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs):
1145 Likewise.
1146 * ppc-linux-nat.c (fetch_register): Likewise.
1147 (fetch_all_gp_regs): Likewise.
1148 (fetch_ppc_registers): Likewise.
1149 (store_all_gp_regs): Likewise.
1150 (store_ppc_registers): Likewise.
1151 (hwdebug_insert_point): Likewise.
1152 (can_use_watchpoint_cond_accel): Likewise.
1153 * remote-sim.c (gdb_os_write_stdout): Likewise.
1154
a0de763e
TT
11552018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1156 Tom Tromey <tom@tromey.com>
1157
1158 * warning.m4 (AM_GDB_WARNINGS): Add -Wunused-variable and special
1159 test for it.
1160 * configure: Rebuild.
1161
3b20124b
TT
11622018-07-22 Tom Tromey <tom@tromey.com>
1163
1164 * regformats/regdat.sh: Define xmltarget_${name} inside
1165 #ifndef IN_PROCESS_AGENT.
1166
8c8807f4
TT
11672018-07-22 Tom Tromey <tom@tromey.com>
1168
1169 * value.c (value_fetch_lazy_bitfield): Remove unused variable.
1170
c486b610
TT
11712018-07-22 Tom Tromey <tom@tromey.com>
1172
1173 * symfile.c (reread_symbols): Notify iter, not objfile.
1174
494f80a9
TT
11752018-07-22 Tom Tromey <tom@tromey.com>
1176
1177 * ravenscar-thread.c (ravenscar_thread_target::store_registers):
1178 Use arch_ops.
1179 (ravenscar_thread_target::prepare_to_store): Likewise.
1180
c51f6a54
TT
11812018-07-22 Tom Tromey <tom@tromey.com>
1182
1183 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Remove
1184 unused variable. Call value_fetch_lazy when needed.
1185 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
1186 Remove unused variable. Call value_fetch_lazy when needed.
1187
374fd1fd
TT
11882018-07-22 Tom Tromey <tom@tromey.com>
1189
1190 * m32c-tdep.c (mark_dma): Return void.
1191 (make_regs): Remove unused declarations.
1192
d5e9a511
TT
11932018-07-22 Tom Tromey <tom@tromey.com>
1194
1195 * guile/scm-cmd.c (gdbscm_dont_repeat): Call
1196 cmdscm_get_valid_command_smob_arg_unsafe for effect.
1197 * guile/scm-block.c (gdbscm_make_block_syms_iter): Call
1198 bkscm_get_valid_block_smob_arg_unsafe for effect.
1199
996d693a
TT
12002018-07-22 Tom Tromey <tom@tromey.com>
1201
1202 * bfin-tdep.c (bfin_push_dummy_call): Use arg_type, not
1203 value_type.
1204
15766370
TT
12052018-07-22 Tom Tromey <tom@tromey.com>
1206
1207 * windows-nat.c (saved_context): Conditionally define.
1208 * remote.c (remote_target::remote_btrace_maybe_reopen):
1209 Conditionally declare "warned".
1210 * inflow.c (sigquit_ours): Conditionally define.
1211 (new_tty): Move "tty" declaration inside #if.
1212 * guile/guile.c (guile_datadir): Conditionally define.
1213 * charset.c (set_be_le_names): Move some declarations inside #if.
1214 * btrace.c (parse_xml_btrace): Move "errcode" declaration inside
1215 #if.
1216 (parse_xml_btrace_conf): Likewise.
1217
f4e80e13
TT
12182018-07-22 Tom Tromey <tom@tromey.com>
1219
1220 * spu-tdep.c (spu_get_overlay_table): Remove unused variable.
1221
8d49165d
TT
12222018-07-22 Tom Tromey <tom@tromey.com>
1223
1224 * guile/scm-value.c (gdbscm_value_call): Remove unused variables.
1225 * guile/scm-math.c (vlscm_unop_gdbthrow, vlscm_binop_gdbthrow)
1226 (vlscm_convert_typed_value_from_scheme): Remove unused variable.
1227 * buildsym-legacy.c (get_macro_table): Remove unused variable.
1228 * stack.c (frame_apply_level_command): Remove unused variable.
1229 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused variable.
1230 * sparc64-tdep.c (adi_examine_command): Remove unused variable.
1231 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Remove
1232 unused variable.
1233 * nios2-tdep.c (nios2_push_dummy_call): Remove unused variable.
1234 * mep-tdep.c (mep_push_dummy_call): Remove unused variable.
1235 * ada-lang.c (ada_lookup_symbol_list_worker): Remove unused
1236 variable.
1237 * amd64-tdep.c (amd64_supply_xsave): Remove unused variable.
1238 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Remove unused
1239 variable.
1240 * breakpoint.c (check_no_tracepoint_commands, update_watchpoint):
1241 Remove unused variable.
1242 * cli/cli-script.c (recurse_read_control_structure): Remove unused
1243 variable.
1244 * common/tdesc.c (print_xml_feature::visit): Remove unused
1245 variable.
1246 * compile/compile-object-load.c (store_regs): Remove unused
1247 variables.
1248 * complaints.c (clear_complaints): Remove unused variable.
1249 * corelow.c (core_target_open): Remove unused variable.
1250 * fbsd-tdep.c (fbsd_core_info_proc_status): Remove unused
1251 variable.
1252 * guile/scm-frame.c (gdbscm_frame_read_var): Remove unused
1253 variable.
1254 * guile/scm-symtab.c (stscm_print_sal_smob): Remove unused
1255 variable.
1256 * guile/scm-type.c (gdbscm_field_baseclass_p): Remove unused
1257 variable.
1258 * guile/scm-utils.c (gdbscm_parse_function_args): Remove unused
1259 variable.
1260 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Remove unused
1261 variable.
1262 * ia64-tdep.c (examine_prologue): Remove unused variable.
1263 * infcall.c (run_inferior_call): Remove unused variable.
1264 * inferior.c (exit_inferior): Remove unused variable.
1265 * infrun.c (infrun_thread_ptid_changed): Remove unused variable.
1266 * linespec.c (decode_line_2): Remove unused variable.
1267 * linux-nat.c (super_close): Remove.
1268 * linux-tdep.c (linux_info_proc): Remove unused variable.
1269 * mi/mi-main.c (mi_execute_command): Remove unused variable.
1270 * microblaze-linux-tdep.c (microblaze_linux_sigtramp_cache):
1271 Remove unused variable.
1272 * parse.c (find_minsym_type_and_address): Remove unused variable.
1273 * printcmd.c (info_symbol_command, printf_floating): Remove unused
1274 variable.
1275 * python/py-breakpoint.c (bppy_set_commands): Remove unused
1276 variable.
1277 * python/py-unwind.c (unwind_infopy_dealloc): Remove unused
1278 variables.
1279 * record-btrace.c (record_btrace_target::store_registers): Remove
1280 unused variable.
1281 (cmd_show_record_btrace_cpu): Remove unused variable.
1282 * riscv-tdep.c (riscv_register_reggroup_p)
1283 (riscv_push_dummy_call, riscv_return_value): Remove unused
1284 variable.
1285 * rust-exp.y (literal): Remove unused variable.
1286 * rust-lang.c (rust_evaluate_subexp) <OP_RUST_ARARAY>: Remove
1287 unused variable.
1288 <STRUCTOP_ANONYMOUS>: Likewise.
1289 * s390-linux-tdep.c (s390_linux_init_abi_31)
1290 (s390_linux_init_abi_64): Remove unused variable.
1291 * ser-ming2.c (ser_windows_read_prim, pipe_select_thread)
1292 (file_select_thread, net_windows_open, _initialize_ser_windows):
1293 Remove unused variables.
1294 * symtab.c (find_pc_sect_line): Remove unused variable.
1295 * target-memory.c (compute_garbled_blocks): Remove unused
1296 variable.
1297 (target_write_memory_blocks): Remove unused variable.
1298 * target.c (target_stack::unpush): Remove unused variables.
1299 * tracepoint.c (start_tracing, all_tracepoint_actions)
1300 (merge_uploaded_trace_state_variables)
1301 (print_one_static_tracepoint_marker): Remove unused variable.
1302 * unittests/basic_string_view/element_access/char/1.cc (test01):
1303 Remove unused variable.
1304 * windows-nat.c (windows_continue, windows_add_all_dlls)
1305 (do_initial_windows_stuff, windows_nat_target::create_inferior):
1306 Remove unused variables.
1307
17cbafdb
SM
13082018-07-21 Simon Marchi <simon.marchi@polymtl.ca>
1309
1310 * arm-tdep.c (arm_gdbarch_init): Declare attr_arch and
1311 attr_profile in HAVE_ELF.
1312 * rs6000-tdep.c (bfd_uses_spe_extensions): Declare vector_abi in
1313 HAVE_ELF.
1314
0ee6c332
SM
13152018-07-20 Simon Marchi <simon.marchi@polymtl.ca>
1316
1317 * frame.c (frame_register_unwind): Change parameter name.
1318 (frame_unwind_register): Likewise.
1319 (frame_unwind_register_value): Likewise.
1320 (frame_unwind_register_signed): Likewise.
1321 (frame_unwind_register_unsigned): Likewise.
1322 * frame.h (frame_register_unwind): Likewise.
1323 (frame_unwind_register): Likewise.
1324 (frame_unwind_register_value): Likewise.
1325 (frame_unwind_register_signed): Likewise.
1326 (frame_unwind_register_unsigned): Likewise.
1327 (frame_unwind_arch): Likewise.
1328
e2e31f10
MR
13292018-07-20 Maciej W. Rozycki <macro@mips.com>
1330
1331 * MAINTAINERS: Update my e-mail address, downgrade to MIPS I-IV
1332 ISA maintenance.
1333
2d389915
MR
13342018-07-20 Maciej W. Rozycki <macro@mips.com>
1335
1336 * mips-linux-nat.c (mips_linux_nat_target::read_description):
1337 Call `get_ptrace_pid' rather than extracting the ptrace PID by
1338 hand.
1339
cbb09508
KS
13402018-07-20 Keith Seitz <keiths@redhat.com>
1341
1342 * buildsym.h (struct buildsym_compunit) <m_objfile, m_subfiles,
1343 m_main_subfile, m_comp_dir, m_producer, m_debugformat,
1344 m_compunit_symtab, m_language>: Add "m_" prefix.
1345 Update all uses.
1346 * buildsym.c: Update all uses.
1347
bfe2e011
TT
13482018-07-20 Tom Tromey <tom@tromey.com>
1349
1350 * buildsym-legacy.h (record_line): Don't use record_line_ftype.
1351 * buildsym.h (record_line_ftype): Remove typedef.
1352
0e6f3061
TT
13532018-07-20 Tom Tromey <tom@tromey.com>
1354
1355 * buildsym-legacy.h (augment_type_symtab): Don't declare.
1356 (end_expandable_symtab): Likewise.
1357 (end_symtab_get_static_block): Likewise.
1358 (end_symtab_from_static_block): Likewise.
1359 * buildsym-legacy.c (augment_type_symtab): Remove.
1360 (end_expandable_symtab): Remove.
1361 (end_symtab_get_static_block): Remove.
1362 (end_symtab_from_static_block): Remove.
1363
804d2729
TT
13642018-07-20 Tom Tromey <tom@tromey.com>
1365
1366 * dwarf2read.c: Include buildsym.h.
1367 (struct dwarf2_cu) <builder>: New method.
1368 (fixup_go_packaging): Update.
1369 (process_full_comp_unit, process_full_type_unit): Update. Don't
1370 use scoped_free_pendings.
1371 (using_directives): Add "cu" parameter, remove "language".
1372 (read_import_statement, setup_type_unit_groups, )
1373 (read_func_scope, read_lexical_block_scope)
1374 (dwarf2_record_block_ranges, read_namespace): Update.
1375 (lnp_state_machine::lnp_state_machine): Add cu parameter.
1376 (lnp_state_machine::handle_end_sequence): Update.
1377 (class lnp_state_machine) <m_cu>: New member.
1378 <m_record_line_callback>: Remove.
1379 <m_currently_recording_lines>: New member.
1380 (lnp_state_machine::handle_set_file): Update.
1381 (noop_record_line): Remove.
1382 (dwarf_record_line_p): Add cu parameter.
1383 (dwarf_record_line_1, dwarf_finish_line): Likewise.
1384 (lnp_state_machine::record_line)
1385 (lnp_state_machine::lnp_state_machine)
1386 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
1387 (dwarf_decode_lines): Update.
1388 (dwarf2_start_subfile): Add cu parameter.
1389 (dwarf2_start_symtab, new_symbol): Update.
1390 (macro_start_file, dwarf_decode_macro_bytes): Add cu parameter.
1391 Remove dwarf2_per_objfile parameter.
1392 (dwarf_decode_macros): Update.
1393
80e649fc
TT
13942018-07-20 Tom Tromey <tom@tromey.com>
1395
1396 * stabsread.c (define_symbol): Update.
1397 * buildsym-legacy.h (get_buildsym_compunit): Declare.
1398 * dwarf2read.c (new_symbol): Update.
1399 * cp-support.h (cp_scan_for_anonymous_namespaces): Update.
1400 * cp-namespace.c: Include buildsym.h.
1401 (cp_scan_for_anonymous_namespaces): Add "compunit" parameter.
1402 * buildsym-legacy.c (get_buildsym_compunit): New function.
1403
0baae8db
TT
14042018-07-20 Tom Tromey <tom@tromey.com>
1405
1406 * xcoffread.c: Include buildsym-legacy.h.
1407 * windows-nat.c: Include buildsym-legacy.h.
1408 * stabsread.c: Include buildsym-legacy.h.
1409 * mdebugread.c: Include buildsym-legacy.h.
1410 * buildsym-legacy.h: New file.
1411 * buildsym-legacy.c: New file, from buildsym.c.
1412 * go32-nat.c: Include buildsym-legacy.h.
1413 * dwarf2read.c: Include buildsym-legacy.h.
1414 * dbxread.c: Include buildsym-legacy.h.
1415 * cp-namespace.c: Include buildsym-legacy.h.
1416 * coffread.c: Include buildsym-legacy.h.
1417 * buildsym.h: Move some contents to buildsym-legacy.h.
1418 * buildsym.c: Include buildsym-legacy.h. Move many functions to
1419 buildsym-legacy.c.
1420 * Makefile.in (HFILES_NO_SRCDIR): Add buildsym-legacy.h.
1421
ab209f6f
TT
14222018-07-20 Tom Tromey <tom@tromey.com>
1423
1424 * buildsym.h (struct buildsym_compunit): Move from buildsym.c.
1425 * buildsym.c (struct buildsym_compunit): Move to buildsym.h.
1426 (buildsym_compunit::buildsym_compunit)
1427 (buildsym_compunit::~buildsym_compunit)
1428 (buildsym_compunit::get_macro_table): Define.
1429
74c72eac
TT
14302018-07-20 Tom Tromey <tom@tromey.com>
1431
1432 * buildsym.c (reset_symtab_globals): Remove.
1433 (buildsym_compunit::end_symtab_from_static_block): Update.
1434 (buildsym_compunit::augment_type_symtab): Update.
1435 (end_symtab_from_static_block): Call free_buildsym_compunit.
1436 (augment_type_symtab, end_symtab, end_expandable_symtab):
1437 Likewise.
1438
da6580e5
TT
14392018-07-20 Tom Tromey <tom@tromey.com>
1440
1441 * arch-utils.c: Do not include buildsym.h.
1442 * mipsread.c: Do not include buildsym.h.
1443 * machoread.c: Do not include buildsym.h.
1444 * elfread.c: Do not include buildsym.h.
1445
4a2125f5
TT
14462018-07-20 Tom Tromey <tom@tromey.com>
1447
1448 * buildsym.c (buildsym_compunit::buildsym_compunit): Do more
1449 initialization.
1450 (buildsym_compunit): Add new constructor.
1451 (struct buildsym_compunit) <get_last_source_file, finish_block,
1452 record_block_range, start_subfile, patch_subfile_names,
1453 push_subfile, pop_subfile, record_line, get_compunit_symtab,
1454 set_last_source_start_addr, get_last_source_start_addr,
1455 get_local_using_directives, set_local_using_directives,
1456 get_global_using_directives, outermost_context_p,
1457 get_current_context_stack, get_context_stack_depth,
1458 get_current_subfile, get_local_symbols, get_file_symbols,
1459 get_global_symbols, record_debugformat, record_producer,
1460 push_context, pop_context, end_symtab_get_static_block,
1461 end_symtab_from_static_block, end_symtab, end_expandable_symtab>:
1462 New public methods.
1463 <record_pending_block, finish_block_internal, make_blockvector,
1464 watch_main_source_file_lossage, end_symtab_with_blockvector>: New
1465 private methods.
1466 Update all users.
1467
14682018-05-22 Tom Tromey <tom@tromey.com>
1469
1470 * buildsym.c (record_pending_block): Move earlier. Remove objfile
1471 parameter.
1472 (finish_block_internal): Update.
1473
6b213a47
TT
14742018-07-20 Tom Tromey <tom@tromey.com>
1475
1476 * buildsym.c (record_pending_block): Move earlier. Remove objfile
1477 parameter.
1478 (finish_block_internal): Update.
1479
b80a981d
TT
14802018-07-20 Tom Tromey <tom@tromey.com>
1481
1482 * buildsym.h (EXTERN): Don't define or undef.
1483 * buildsym.c (EXTERN): Don't define.
1484
ddb70602
TT
14852018-07-20 Tom Tromey <tom@tromey.com>
1486
1487 * buildsym.c: Remove TODO comment.
1488
b37dd3bc
TT
14892018-07-20 Tom Tromey <tom@tromey.com>
1490
1491 * coffread.c (coff_symtab_read): Update.
1492 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
1493 (xcoff_new_init): Update.
1494 * mipsread.c (mipscoff_new_init): Update.
1495 * mdebugread.c (mdebug_build_psymtabs): Update.
1496 * elfread.c (elf_new_init): Update.
1497 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
1498 Update.
1499 * dbxread.c (dbx_new_init, dbx_psymtab_to_symtab_1)
1500 (coffstab_build_psymtabs, elfstab_build_psymtabs)
1501 (stabsect_build_psymtabs): Update.
1502 * buildsym.h (buildsym_init): Don't declare.
1503 * buildsym.c: Update comment.
1504 (prepare_for_building): Remove.
1505 (start_symtab, restart_symtab): Update.
1506 (reset_symtab_globals): Update comment.
1507 (buildsym_init): Remove.
1508
e148f09d
TT
15092018-07-20 Tom Tromey <tom@tromey.com>
1510
1511 * xcoffread.c (read_xcoff_symtab, process_xcoff_symbol): Update.
1512 * stabsread.c (patch_block_stabs, define_symbol, read_type)
1513 (read_enum_type, common_block_start, common_block_end)
1514 (cleanup_undefined_types_1, finish_global_stabs): Update.
1515 * mdebugread.c (psymtab_to_symtab_1): Update.
1516 * dwarf2read.c (fixup_go_packaging, read_func_scope)
1517 (read_lexical_block_scope, new_symbol): Update.
1518 * dbxread.c (process_one_symbol): Update.
1519 * coffread.c (coff_symtab_read, process_coff_symbol)
1520 (coff_read_enum_type): Update.
1521 * buildsym.h (file_symbols, global_symbols, local_symbols): Don't
1522 declare.
1523 (get_local_symbols, get_file_symbols, get_global_symbols): New
1524 functions.
1525 * buildsym.c (~buildsym_compunit): Clean up m_file_symbols and
1526 m_global_symbols.
1527 <m_file_symbols, m_local_symbols, m_global_symbols>: New members.
1528 (~scoped_free_pendings): Update.
1529 (finish_block, prepare_for_building, reset_symtab_globals)
1530 (end_symtab_get_static_block, end_symtab_with_blockvector)
1531 (augment_type_symtab, push_context): Update.
1532 (get_local_symbols, get_file_symbols, get_global_symbols): New
1533 functions.
1534 (buildsym_init): Update.
1535
93b8bea4
TT
15362018-07-20 Tom Tromey <tom@tromey.com>
1537
1538 * dwarf2read.c (process_full_comp_unit): Do not set list_in_scope.
1539 (process_full_type_unit): Likewise.
1540 (dwarf2_start_symtab): Set list_in_scope.
1541
f62f6af5
TT
15422018-07-20 Tom Tromey <tom@tromey.com>
1543
1544 * dwarf2read.c (process_psymtab_comp_unit_reader)
1545 (build_type_psymtabs_reader): Do not set list_in_scope.
1546
1d376700
TT
15472018-07-20 Tom Tromey <tom@tromey.com>
1548
1549 * buildsym.c (free_pendings): Remove.
1550 (add_symbol_to_list, scoped_free_pendings)
1551 (finish_block_internal, buildsym_init): Update.
1552
c233e9c6
TT
15532018-07-20 Tom Tromey <tom@tromey.com>
1554
1555 * xcoffread.c (read_xcoff_symtab): Update.
1556 * dwarf2read.c (read_func_scope, read_lexical_block_scope):
1557 Update.
1558 * dbxread.c (process_one_symbol): Update.
1559 * coffread.c (coff_symtab_read): Update.
1560 * buildsym.h (finish_block): Update.
1561 * buildsym.c (finish_block): Remove "listhead" argument.
1562 (end_symtab_get_static_block): Update.
1563
5ac04550
TT
15642018-07-20 Tom Tromey <tom@tromey.com>
1565
1566 * buildsym.h (class scoped_free_pendings): Remove constructor.
1567 * buildsym.c (struct buildsym_compunit) <free_pending_blocks>: New
1568 method.
1569 <m_pending_block_obstack, m_pending_blocks>: New members.
1570 (pending_block_obstack, pending_blocks): Remove.
1571 (scoped_free_pendings::scoped_free_pendings): Default.
1572 (~scoped_free_pendings): Update.
1573 (free_pending_blocks): Remove.
1574 (finish_block_internal, record_pending_block, make_blockvector)
1575 (end_symtab_get_static_block, augment_type_symtab, push_context)
1576 (buildsym_init): Update.
1577
7ea05a7b
TT
15782018-07-20 Tom Tromey <tom@tromey.com>
1579
1580 * buildsym.c (struct buildsym_compunit) <m_pending_addrmap,
1581 m_pending_addrmap_obstack, m_pending_addrmap_interesting>: New
1582 members.
1583 (pending_addrmap, pending_addrmap_obstack)
1584 (pending_addrmap_interesting): Remove.
1585 (scoped_free_pendings, record_block_range, make_blockvector)
1586 (prepare_for_building, reset_symtab_globals, buildsym_init):
1587 Update.
1588
3c65e5b3
TT
15892018-07-20 Tom Tromey <tom@tromey.com>
1590
1591 * xcoffread.c (process_linenos): Update.
1592 * stabsread.c (define_symbol, read_type, read_enum_type): Update.
1593 * mdebugread.c (psymtab_to_symtab_1): Update.
1594 * dwarf2read.c (setup_type_unit_groups)
1595 (lnp_state_machine::handle_set_file, dwarf_record_line_p)
1596 (lnp_state_machine::record_line, dwarf_decode_lines): Update.
1597 * dbxread.c (process_one_symbol): Update.
1598 * coffread.c (coff_symtab_read, enter_linenos)
1599 (process_coff_symbol): Update.
1600 * buildsym.h (current_subfile): Don't declare.
1601 (get_current_subfile): Declare.
1602 * buildsym.c (struct buildsym_compunit) <m_current_subfile>: New
1603 member.
1604 (start_subfile, free_buildsym_compunit, push_subfile)
1605 (prepare_for_building, start_symtab): Update.
1606 (get_current_subfile): New function.
1607
a60f3166
TT
16082018-07-20 Tom Tromey <tom@tromey.com>
1609
1610 * coffread.c (coff_symtab_read): Update.
1611 * xcoffread.c (read_xcoff_symtab): Update.
1612 * dwarf2read.c (new_symbol): Update.
1613 (read_func_scope, read_lexical_block_scope): Update.
1614 * dbxread.c (process_one_symbol): Update.
1615 * buildsym.h (context_stack, context_stack_depth): Don't declare.
1616 (outermost_context_p): Remove macro.
1617 (outermost_context_p, get_current_context_stack)
1618 (get_context_stack_depth): Declare.
1619 (pop_context): Return struct context_stack.
1620 * buildsym.c (struct buildsym_compunit) <m_context_stack: New
1621 member.
1622 (context_stack_size): Remove.
1623 (INITIAL_CONTEXT_STACK_SIZE): Remove.
1624 (prepare_for_building, end_symtab_get_static_block)
1625 (augment_type_symtab, push_context): Update.
1626 (pop_context): Return struct context_stack.
1627 (outermost_context_p, get_current_context_stack)
1628 (get_context_stack_depth): New functions.
1629 (buildsym_init): Update.
1630
56ba65a0
TT
16312018-07-20 Tom Tromey <tom@tromey.com>
1632
1633 * rust-exp.y: Now a pure parser. Update all rules.
1634 (%union): Move earlier.
1635 (current_parser, work_obstack): Remove globals.
1636 (rust_parser, ~rust_parser): Update.
1637 (class rust_parser) <copy_name, concat3, crate_name, super_name,
1638 lex_character, lex_number, lex_string, lex_identifier,
1639 rust_lookup_type, convert_params_to_types, convert_ast_to_type,
1640 convert_name, convert_params_to_expression,
1641 convert_ast_to_expression, ast_basic_type, ast_operation,
1642 ast_compound_assignment, rust_op, ast_literal, ast_dliteral,
1643 ast_structop, ast_structop_anonymous, ast_unary, ast_cast,
1644 ast_call_ish, ast_path, ast_string, ast_struct, ast_range,
1645 ast_array_type, ast_slice_type, ast_reference_type,
1646 ast_pointer_type, ast_function_type, ast_tuple_type>: New methods.
1647 (rust_parse): Update.
1648 (rustyyerror, rustyylex): Add parser parameter.
1649 (rust_lex_test_one, rust_lex_int_test, rust_lex_exception_test)
1650 (rust_lex_stringish_test, rust_lex_test_sequence)
1651 (rust_lex_test_trailing_dot, rust_lex_test_completion)
1652 (rust_lex_test_push_back, rust_lex_tests): Update.
1653
4c693332
PA
16542018-07-19 Pedro Alves <palves@redhat.com>
1655
1656 * guile/guile-internal.h (gdbscm_scm_to_c_string): Now returns a
1657 gdb::unique_xmalloc_ptr.
1658 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x):
1659 Adjust to use dbscm_wrap and gdb::unique_xmalloc_ptr.
1660 * guile/scm-exception.c (gdbscm_exception_message_to_string): Use
1661 copy-initialization.
1662 * guile/scm-pretty-print.c (ppscm_print_children): Use
1663 gdb::unique_xmalloc_ptr instead of cleanups.
1664 (gdbscm_apply_val_pretty_printer): Remove cleanups.
1665 * guile/scm-string.c (gdbscm_scm_to_c_string): Now returns a
1666 gdb::unique_xmalloc_ptr.
1667 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
1668 Adjust to use gdb::unique_xmalloc_ptr.
1669 * guile/scm-utils.c (extract_arg): Adjust.
1670 * guile/scm-value.c (gdbscm_value_field): Adjust to use
1671 gdb::unique_xmalloc_ptr instead of a cleanup.
1672
4581dc82
TT
16732018-07-19 Tom Tromey <tom@tromey.com>
1674
1675 * utils.c (do_value_free_to_mark)
1676 (make_cleanup_value_free_to_mark): Remove.
1677 * utils.h (make_cleanup_value_free_to_mark): Remove.
1678
43cc6c3a
PA
16792018-07-19 Pedro Alves <palves@redhat.com>
1680
1681 * guile/guile-internal.h (gdbscm_wrap): Really make 'args' a
1682 forwarding reference.
1683
3a5f2a48
PA
16842018-07-18 Pedro Alves <palves@redhat.com>
1685
1686 * guile/guile.c (gdbscm_execute_gdb_command): Adjust to use
1687 gdbscm_wrap. Use gdb::unique_xmalloc_ptr<char> instead of a
1688 cleanup.
1689
557e56be
PA
16902018-07-18 Pedro Alves <palves@redhat.com>
1691
1692 * guile/guile-internal.h: Add comment about mixing GDB and Scheme
1693 exceptions.
1694 (GDBSCM_HANDLE_GDB_EXCEPTION_WITH_CLEANUPS): Delete.
1695 (gdbscm_wrap): New.
1696 * guile/scm-frame.c (gdbscm_frame_read_register): Use xfree
1697 directly instead of a cleanup.
1698 * guile/scm-math.c (vlscm_unop_gdbthrow): New, factored out from ...
1699 (vlscm_unop): ... this. Reimplement using gdbscm_wrap.
1700 (vlscm_binop_gdbthrow): New, factored out from ...
1701 (vlscm_binop): ... this. Reimplement using gdbscm_wrap.
1702 (vlscm_rich_compare): Use gdbscm_wrap.
1703 * guile/scm-symbol.c (gdbscm_lookup_symbol): Use xfree directly
1704 instead of a cleanup.
1705 (gdbscm_lookup_global_symbol): Use xfree directly instead of a
1706 cleanup.
1707 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
1708 Use xfree directly instead of a cleanup.
1709 * guile/scm-value.c (gdbscm_make_value, gdbscm_make_lazy_value):
1710 Adjust to use gdbscm_wrap and scoped_value_mark.
1711 (gdbscm_value_optimized_out_p): Adjust to use gdbscm_wrap.
1712 (gdbscm_value_address, gdbscm_value_dereference)
1713 (gdbscm_value_referenced_value): Adjust to use gdbscm_wrap and
1714 scoped_value_mark.
1715 (gdbscm_value_dynamic_type): Use scoped_value_mark.
1716 (vlscm_do_cast, gdbscm_value_field): Adjust to use gdbscm_wrap and
1717 scoped_value_mark.
1718 (gdbscm_value_subscript, gdbscm_value_call): Adjust to use
1719 gdbscm_wrap and scoped_value_mark.
1720 (gdbscm_value_to_string): Use xfree directly instead of a
1721 cleanup. Move 'buffer' unique_ptr to TRY scope.
1722 (gdbscm_value_to_lazy_string): Use xfree directly instead of a
1723 cleanup. Move 'buffer' unique_ptr to TRY scope. Use
1724 scoped_value_mark.
1725 (gdbscm_value_fetch_lazy_x): Use gdbscm_wrap.
1726 (gdbscm_parse_and_eval): Adjust to use gdbscm_wrap and
1727 scoped_value_mark.
1728 (gdbscm_history_ref, gdbscm_history_append_x): Adjust to use
1729 gdbscm_wrap.
1730
42dc7699
TV
17312018-07-18 Tom de Vries <tdevries@suse.de>
1732
1733 * findvar.c (default_read_var_value): Also resolve dynamic type for
1734 LOC_OPTIMIZED_OUT vars.
1735
6592ceed
MR
17362018-07-18 Maciej W. Rozycki <macro@mips.com>
1737
1738 * mips-tdep.c (micromips_next_pc): Add SYSCALL instruction
1739 decoding.
1740
c6c6149a
TT
17412018-07-17 Tom Tromey <tom@tromey.com>
1742
1743 * guile/scm-param.c (pascm_set_func, pascm_show_func)
1744 (compute_enum_list, pascm_set_param_value_x)
1745 (gdbscm_parameter_value): Update.
1746 * guile/guile-internal.h (gdbscm_scm_to_string): Update.
1747 (gdbscm_scm_to_host_string): Update.
1748 * guile/scm-math.c (vlscm_convert_typed_value_from_scheme):
1749 Update.
1750 * guile/scm-cmd.c (cmdscm_add_completion): Update.
1751 * guile/scm-pretty-print.c (ppscm_print_string_repr): Update.
1752 * guile/scm-string.c (gdbscm_scm_to_string): Return
1753 unique_xmalloc_ptr.
1754 (gdbscm_scm_to_host_string): Likewise.
1755
a1a31cb8
TT
17562018-07-17 Tom Tromey <tom@tromey.com>
1757
1758 * guile/guile.c (gdbscm_eval_from_control_command): Update.
1759 * guile/guile-internal.h (gdbscm_safe_eval_string): Update.
1760 * guile/scm-objfile.c (gdbscm_execute_objfile_script): Update.
1761 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Return
1762 unique_xmalloc_ptr.
1763
15bf3002
TT
17642018-07-17 Tom Tromey <tom@tromey.com>
1765
1766 * guile/scm-param.c (pascm_signal_setshow_error): Update.
1767 * guile/guile-internal.h (gdbscm_exception_message_to_string):
1768 Update.
1769 * guile/scm-cmd.c (cmdscm_function): Update.
1770 * guile/scm-pretty-print.c
1771 (ppscm_print_exception_unless_memory_error): Update.
1772 * guile/scm-exception.c (gdbscm_exception_message_to_string):
1773 Return unique_xmalloc_ptr.
1774
7eb1a66c
TT
17752018-07-17 Tom Tromey <tom@tromey.com>
1776
1777 * guile/scm-pretty-print.c (ppscm_make_pp_type_error_exception):
1778 Use string_printf.
1779
ce73f310
JW
17802018-07-17 Jim Wilson <jimw@sifive.com>
1781
27724bad
JW
1782 * riscv-tdep.c (riscv_has_feature): Delete comment that refers to
1783 set_gdbarch_decr_pc_after_break. Call riscv_read_misa_reg always.
1784 (riscv_gdbarch_init): Delete local has_compressed_isa. Delete now
1785 unecessary braces after EF_RISCV_RVC test. Delete call to
1786 set_gdbarch_decr_pc_after_break.
1787
ce73f310
JW
1788 * riscv-tdep.h (DECLARE_CSR): Use RISCV_FIRST_CSR_REGNUM instead of
1789 RISCV_LAST_FP_REGNUM + 1.
1790 (RSICV_CSR_LEGACY_MISA_REGNUM): Add RISCV_FIRST_CSR_REGNUM.
1791
056dec39
TT
17922018-07-17 Tom Tromey <tom@tromey.com>
1793
1794 * configure.ac: Remove --disable-gdbcli.
1795 * configure: Rebuild.
1796 * Makefile.in (SUBDIR_CLI_DEPS, SUBDIR_CLI_LDFLAGS)
1797 (SUBDIR_CLI_CFLAGS): Remove.
1798 (SFILES): Use SUBDIR_CLI_SRCS.
1799 (COMMON_OBS): Use SUBDIR_CLI_OBS.
1800
4735f0ed
TT
18012018-07-17 Tom Tromey <tom@tromey.com>
1802
1803 PR gdb/18624:
1804 * coffread.c (coff_symtab_read): Use scoped_free_pendings.
1805
117a0e99
JW
18062018-07-16 Jim Wilson <jimw@sifive.com>
1807
1808 * riscv-tdep.c (riscv_gdbarch_init): Call gdbarch_init_osabi.
1809
8a67aaa8
SM
18102018-07-16 Simon Marchi <simon.marchi@ericsson.com>
1811
1812 * ia64-libunwind-tdep.c (libunwind_frame_cache): Remove unused
1813 variable.
1814 (libunwind_frame_sniffer): Likewise.
1815 (libunwind_frame_prev_register): Likewise.
1816 (libunwind_sigtramp_frame_sniffer): Likewise.
1817 * ia64-tdep.c (ia64_access_reg): Likewise.
1818 (ia64_access_rse_reg): Likewise.
1819 (ia64_libunwind_sigtramp_frame_this_id): Likewise.
1820 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Likewise.
1821
ec74dcd8
SM
18222018-07-16 Simon Marchi <simon.marchi@ericsson.com>
1823
1824 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Add cast.
1825
a700e753
SM
18262018-07-16 Simon Marchi <simon.marchi@ericsson.com>
1827
1828 * remote-sim.c (gdbsim_target::close,
1829 gdbsim_target::mourn_inferior): Remove unused variables.
1830
8b411ff8
SM
18312018-07-16 Simon Marchi <simon.marchi@polymtl.ca>
1832
1833 * ia64-tdep.c (ktab_buf): New global.
1834 (getunwind_table): Return a gdb::optional<gdb::byte_vector>.
1835 (get_kernel_table): Adjust.
1836
edb0470b
TT
18372018-07-16 Tom Tromey <tom@tromey.com>
1838
1839 * xcoffread.c (read_xcoff_symtab): Use outermost_context_p.
1840 * dwarf2read.c (using_directives, new_symbol): Use
1841 outermost_context_p.
1842 * dbxread.c (process_one_symbol): Use outermost_context_p.
1843 * coffread.c (coff_symtab_read): Use outermost_context_p.
1844
6cccc9a8
TT
18452018-07-16 Tom Tromey <tom@tromey.com>
1846
1847 * dwarf2read.c (using_directives, read_func_scope)
1848 (read_lexical_block_scope): Update.
1849 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
1850 * buildsym.h (local_using_directives, global_using_directives):
1851 Don't declare.
1852 (get_local_using_directives, set_local_using_directives)
1853 (get_global_using_directives): Declare.
1854 * buildsym.c (struct buildsym_compunit) <m_local_using_directives,
1855 m_global_using_directives>: New members.
1856 (finish_block_internal, prepare_for_building)
1857 (reset_symtab_globals, end_symtab_get_static_block)
1858 (push_context): Update.
1859 (get_local_using_directives, set_local_using_directives)
1860 (get_global_using_directives): New functions.
1861 (buildsym_init): Update.
1862
652788a7
TT
18632018-07-16 Tom Tromey <tom@tromey.com>
1864
1865 * xcoffread.c (xcoff_initial_scan): Don't call
1866 free_pending_blocks.
1867 * dbxread.c (dbx_symfile_read): Don't call free_pending_blocks.
1868 * buildsym.h (class scoped_free_pendings): Add constructor.
1869 (free_pending_blocks): Don't declare.
1870 * buildsym.c (scoped_free_pendings::scoped_free_pendings): New.
1871 (free_pending_blocks): Now static.
1872
8419ee53
TT
18732018-07-16 Tom Tromey <tom@tromey.com>
1874
1875 * buildsym.h (push_subfile, pop_subfile): Update declarations.
1876 * buildsym.c (struct buildsym_compunit) <m_subfile_stack>: New
1877 member.
1878 (struct subfile_stack): Remove.
1879 (subfile_stack): Remove.
1880 (push_subfile, pop_subfile, buildsym_init): Update.
1881
ccdac490
TT
18822018-07-16 Tom Tromey <tom@tromey.com>
1883
1884 * buildsym.c (push_subfile): Use gdb_assert.
1885 (pop_subfile): Use gdb_assert.
1886
43130d6f
TT
18872018-07-16 Tom Tromey <tom@tromey.com>
1888
1889 * buildsym.h (merge_symbol_lists): Remove.
1890 * buildsym.c (merge_symbol_lists): Remove.
1891
77d6f1aa
TT
18922018-07-16 Tom Tromey <tom@tromey.com>
1893
1894 * stabsread.c (scan_file_globals): Update comment.
1895 * stabsread.h (scan_file_globals): Move from buildsym.h.
1896 * buildsym.h (scan_file_globals): Move to stabsread.h.
1897
2c722d18
TT
18982018-07-16 Tom Tromey <tom@tromey.com>
1899
1900 * xcoffread.c (xcoff_new_init): Update.
1901 * mipsread.c (mipscoff_new_init): Update.
1902 * mdebugread.c (mdebug_build_psymtabs): Update.
1903 * elfread.c (elf_new_init): Update.
1904 * dbxread.c (dbx_new_init, coffstab_build_psymtabs)
1905 (elfstab_build_psymtabs, stabsect_build_psymtabs): Update.
1906 * buildsym.h (buildsym_new_init): Don't declare.
1907 * buildsym.c (buildsym_new_init): Remove.
1908
5985ac61
TT
19092018-07-16 Tom Tromey <tom@tromey.com>
1910
1911 * stabsread.h (within_function): Move from buildsym.h.
1912 * stabsread.c (start_stabs): Clear within_function.
1913 * coffread.c (coff_start_symtab): Clear within_function.
1914 * buildsym.h (within_function): Move to stabsread.h.
1915 * buildsym.c (prepare_for_building): Update.
1916
6b84eeb2
TT
19172018-07-16 Tom Tromey <tom@tromey.com>
1918
1919 * stabsread.h (processing_gcc_compilation): Move from buildsym.h.
1920 * dwarf2read.c (dwarf2_start_symtab): Don't set
1921 processing_gcc_compilation.
1922 * buildsym.h (processing_gcc_compilation): Move to stabsread.h.
1923
2150c3ef
TT
19242018-07-16 Tom Tromey <tom@tromey.com>
1925
1926 * stabsread.h (HASHSIZE, hashname, symnum, next_symbol_text)
1927 (next_symbol_text_func): Move from buildsym.h.
1928 * stabsread.c (hashname): Move from buildsym.c.
1929 * buildsym.h (HASHSIZE, symnum, next_symbol_text)
1930 (next_symbol_text_func, hashname): Move to stabsread.h.
1931 * buildsym.c: Don't include bcache.h
1932 (hashname): Move to stasbread.c.
1933
0ec44fc0
TT
19342018-07-16 Tom Tromey <tom@tromey.com>
1935
1936 * buildsym.h (context_stack_size): Don't declare.
1937 * buildsym.c (context_stack_size): New global.
1938
81cc346d
TT
19392018-07-16 Tom Tromey <tom@tromey.com>
1940
1941 * dbxread.c (processing_acc_compilation): New global.
1942 * buildsym.h (processing_acc_compilation): Don't declare.
1943
2c99ee5c
TT
19442018-07-16 Tom Tromey <tom@tromey.com>
1945
1946 * xcoffread.c (aix_process_linenos, complete_symtab): Update.
1947 * dbxread.c (read_ofile_symtab): Update.
1948 * coffread.c (coff_start_symtab, coff_end_symtab): Update.
1949 * buildsym.h (last_source_start_addr): Remove.
1950 (set_last_source_start_addr, get_last_source_start_addr):
1951 Declare.
1952 * buildsym.c (buildsym_compunit::buildsym_compunit): Add last_addr
1953 parameter.
1954 (struct buildsym_compunit) <m_last_source_start_addr>: New
1955 member.
1956 (prepare_for_building): Remove start_addr parameter.
1957 (start_symtab, restart_symtab, end_symtab_get_static_block)
1958 (end_symtab_with_blockvector): Update.
1959 (set_last_source_start_addr, get_last_source_start_addr): New
1960 functions.
1961
530fedbc
TT
19622018-07-16 Tom Tromey <tom@tromey.com>
1963
1964 * buildsym.c (struct buildsym_compunit) <m_have_line_numbers>: New
1965 member.
1966 (have_line_numbers): Remove.
1967 (record_line, prepare_for_building, end_symtab_get_static_block)
1968 (augment_type_symtab): Update.
1969
6a976300
TT
19702018-07-16 Tom Tromey <tom@tromey.com>
1971
1972 * buildsym.c (~buildsym_compunit): Free the macro table.
1973 (struct buildsym_compunit) <get_macro_table, release_macros>: New
1974 methods.
1975 <m_pending_macros>: New member.
1976 (pending_macros): Remove.
1977 (~scoped_free_pendings, get_macro_table, prepare_for_building)
1978 (reset_symtab_globals, end_symtab_get_static_block)
1979 (end_symtab_with_blockvector, augment_type_symtab)
1980 (buildsym_init): Update.
1981
c0015d44
TT
19822018-07-16 Tom Tromey <tom@tromey.com>
1983
1984 * buildsym.c (buildsym_compunit::buildsym_compunit): Add name
1985 parameter.
1986 (buildsym_compunit::set_last_source_file): New method.
1987 <m_last_source_file>: New member.
1988 (prepare_for_building): Remove "name" parameter.
1989 (start_symtab, restart_symtab, reset_symtab_globals): Update.
1990 (last_source_file): Remove.
1991 (set_last_source_file, get_last_source_file): Update.
1992
e62cca7c
TT
19932018-07-16 Tom Tromey <tom@tromey.com>
1994
1995 * buildsym.c (prepare_for_building): Add assert.
1996
905eb0e2
TT
19972018-07-16 Tom Tromey <tom@tromey.com>
1998
1999 * buildsym.c (~buildsym_compunit): Update.
2000 (struct buildsym_compunit) <comp_unit>: Now a unique_xmalloc_ptr.
2001 (start_subfile, patch_subfile_names)
2002 (end_symtab_with_blockvector): Update.
2003
b248663f
TT
20042018-07-16 Tom Tromey <tom@tromey.com>
2005
2006 * buildsym.c (struct buildsym_compunit): Add constructor,
2007 destructor, initializers.
2008 (start_buildsym_compunit): Remove.
2009 (free_buildsym_compunit): Use "delete".
2010 (start_symtab, restart_symtab): Use "new".
2011
ff27d073
SM
20122018-07-13 Simon Marchi <simon.marchi@polymtl.ca>
2013
2014 * symfile.c (set_objfile_default_section_offset): Remove struct
2015 keyword.
2016
6a15ecf5
SH
20172018-07-14 Stafford Horne <shorne@gmail.com>
2018
2019 * (Responsible Maintainers): Add myself as or1k maintainer.
2020
027a4c30
TT
20212018-07-13 Tom Tromey <tom@tromey.com>
2022
2023 * symfile.c (set_objfile_default_section_offset): Use extra braces
2024 around initializer.
2025
5c1eda30
AA
20262018-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
2027
2028 * s390-tdep.c (s390_displaced_step_fixup): Adjust PC for a
2029 non-branching basr.
2030
bc7b042b
PW
20312018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2032
2033 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
2034 unittests/cli-utils-selftests.c
2035 * unittests/cli-utils-selftests.c: New file.
2036
a14c4daa
PW
20372018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2038
2039 * NEWS: Mention new commands. Mention change to 'thread apply'.
2040
1fe75df7
PW
20412018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2042
2043 * thread.c (thr_try_catch_cmd): New function.
2044 (thread_apply_all_command): Handle qcs flags.
2045 (thread_apply_command): Handle qcs flags.
2046 (taas_command): New function.
2047 (tfaas_command): New function.
2048 (_initialize_thread): Update to setup the new commands 'taas
2049 and 'tfaas'. Change doc string for 'thread apply'.
2050
6a70eb7d
PW
20512018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2052
2053 * stack.c: (trailing_outermost_frame): New function, mostly
2054 extracted from backtrace_command_1.
2055 (leading_innermost_frame): New function.
2056 (backtrace_command_1): Update to call trailing_outermost_frame.
2057 (frame_apply_command_count): New function.
2058 (frame_apply_level_command): New function.
2059 (frame_apply_all_command): New function.
2060 (frame_apply_command): New function.
2061 (faas_command): New function.
2062 (frame_cmd_list): New variable.
2063 (_initialize_stack): Update to setup the new commands 'frame apply'
2064 and 'faas'.
2065
529c08b2
PW
20662018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2067
2068 * cli-utils.c (number_or_range_parser::get_number): Only handle
2069 numbers or convenience var as numbers.
2070 (parse_flags): New function.
2071 (parse_flags_qcs): New function.
2072 (number_or_range_parser::finished): Ensure parsing end is detected
2073 before end of string.
2074 * cli-utils.h (parse_flags): New function.
2075 (parse_flags_qcs): New function.
2076 (number_or_range_parser): Remove m_finished bool.
2077 (number_or_range_parser::skip_range): Set m_in_range to false.
2078
64b58472
SDJ
20792018-07-12 Sergio Durigan Junior <sergiodj@redhat.com>
2080
2081 * ser-tcp.c (try_connect): Declare 'ioarg' as 'u_long' if building
2082 on Windows.
2083
c7ab0aef
SDJ
20842018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
2085 Jan Kratochvil <jan.kratochvil@redhat.com>
2086 Paul Fertser <fercerpav@gmail.com>
2087 Tsutomu Seki <sekiriki@gmail.com>
2088 Pedro Alves <palves@redhat.com>
2089
2090 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
2091 'unittests/parse-connection-spec-selftests.c'.
2092 (COMMON_SFILES): Add 'common/netstuff.c'.
2093 (HFILES_NO_SRCDIR): Add 'common/netstuff.h'.
2094 * NEWS (Changes since GDB 8.2): Mention IPv6 support.
2095 * common/netstuff.c: New file.
2096 * common/netstuff.h: New file.
2097 * ser-tcp.c: Include 'netstuff.h' and 'wspiapi.h'.
2098 (wait_for_connect): Update comment. New parameter
2099 'gdb::optional<int> sock' instead of 'struct serial *scb'.
2100 Use 'sock' directly instead of 'scb->fd'.
2101 (try_connect): New function, with code from 'net_open'.
2102 (net_open): Rewrite main loop to deal with multiple
2103 sockets/addresses. Handle IPv6-style hostnames; implement
2104 support for IPv6 connections.
2105 * unittests/parse-connection-spec-selftests.c: New file.
2106
4c7333b3
PA
21072018-07-11 Pedro Alves <palves@redhat.com>
2108
2109 PR gdb/23377
2110 * remote.c (remote_target::remote_detach_pid): Call
2111 set_current_process.
2112
a6f88f6e
PA
21132018-07-11 Pedro Alves <palves@redhat.com>
2114
2115 * h8300-tdep.c (h8300_gdbarch_init): Remove
2116 set_gdbarch_ecoff_reg_to_regnum calls.
2117
16ff70dd
SDJ
21182018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
2119
2120 PR c++/23373
2121 * c-typeprint.c (c_type_print_base_struct_union): Don't print
2122 offsets/sizes for static members of a class/struct.
2123
12863263
AH
21242018-07-11 Alan Hayward <alan.hayward@arm.com>
2125
2126 * target-descriptions.c (tdesc_register_bitsize): Rename.
2127 * target-descriptions.h (tdesc_register_bitsize): Likewise.
2128 * rs6000-tdep.c (rs6000_gdbarch_init): Use new name.
2129 * aarch64-tdep.c (aarch64_get_tdesc_vq): Convert size.
2130
1123588c
TT
21312018-07-10 Tom Tromey <tom@tromey.com>
2132
2133 * breakpoint.c (moribund_locations): Now static and a
2134 std::vector.
2135 (breakpoint_init_inferior, moribund_breakpoint_here_p)
2136 (build_bpstat_chain, update_global_location_list)
2137 (breakpoint_retire_moribund): Update.
2138 * breakpoint.h (bp_location_p): Remove typedef. Don't declare
2139 VEC.
2140
8c49aa89
AB
21412018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
2142
2143 * riscv-tdep.c (riscv_is_fp_regno_p): New function.
2144 (riscv_register_reggroup_p): Use new function, remove unneeded
2145 parenthesis.
2146 (riscv_push_dummy_call): Extend assert to compare against xlen or
2147 flen based on register type.
2148
42ecac17
AB
21492018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
2150
2151 * riscv-tdep.c (riscv_print_arg_location): Use TYPE_SAFE_NAME.
2152
055303e2
AB
21532018-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2154
2155 * remote.c (show_hardware_watchpoint_limit): New function.
2156 (show_hardware_watchpoint_length_limit): New function.
2157 (show_hardware_breakpoint_limit): New function.
2158 (_initialize_remote): Use add_setshow_zuinteger_unlimited_cmd
2159 where appropriate, update help text.
2160
8fd32c1c
TT
21612018-07-09 Tom Tromey <tom@tromey.com>
2162
2163 * Makefile.in (CDEPS): Don't mention XM_CDEPS.
2164 (CLIBS): Don't mention NAT_CLIBS.
2165
31278b51
TT
21662018-07-09 Tom Tromey <tom@tromey.com>
2167
2168 * Makefile.in (ADD_FILES, ADD_DEPS): Remove.
2169 (LIBGDB_OBS, clean mostlyclean): Update.
2170 (gdb$(EXEEXT), insight$(EXEEXT)): Update.
2171
e5fd1493
TT
21722018-07-09 Tom Tromey <tom@tromey.com>
2173
2174 * Makefile.in (%.c: %.y): Use ECHO_YACC.
2175 (%.c: %.l): Use ECHO_LEX. Just fail if flex not available.
2176 * silent-rules.mk (ECHO_YACC, ECHO_LEX): New variables.
2177
981e0c0c
TT
21782018-07-09 Tom Tromey <tom@tromey.com>
2179
2180 * Makefile.in (ALLDEPFILES): Remove exec.c.
2181 (COMMON_OBS): Remove exec.o.
2182 (COMMON_SFILES): Add exec.c.
2183
14ccceb2
TT
21842018-07-09 Tom Tromey <tom@tromey.com>
2185
2186 * Makefile.in (LINT, LINTFLAGS, LINTFILES, lint): Remove.
2187
5d3c3a68
TT
21882018-07-09 Tom Tromey <tom@tromey.com>
2189
2190 * Makefile.in (clean mostlyclean): Remove stamp-version.
2191 (version.c): Depend on stamp-version.
2192 (stamp-version): New rule, from version.c rule.
2193
1998086d
TT
21942018-07-09 Tom Tromey <tom@tromey.com>
2195
2196 * Makefile.in (init.c): Depend on stamp-init.
2197 (stamp-init): New rule, from init.c rule.
2198 (clean mostlyclean): Remove stamp-init.
2199
4c754949
TT
22002018-07-09 Tom Tromey <tom@tromey.com>
2201
2202 * Makefile.in (INIT_FILES): Remove CONFIG_SRCS,
2203 SUBDIR_GCC_COMPILE_SRCS.
2204
6497f1dd
TT
22052018-07-09 Tom Tromey <tom@tromey.com>
2206
2207 * Makefile.in (init.c): Remove some unused sed rules.
2208
97a34db9
TT
22092018-07-09 Tom Tromey <tom@tromey.com>
2210
2211 * Makefile.in (TSOBS): Remove.
2212 (INIT_FILES): Update.
2213 (LIBGDB_OBS): Update.
2214 (COMMON_SFILES): Add inflow.c.
2215 (SFILES): Remove inflow.c.
2216
25289ac1
JK
22172018-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2218
2219 * contrib/gdb-add-index.sh ($dwarf5): New, use it.
2220
e83f4d97
SM
22212018-07-07 Simon Marchi <simon.marchi@polymtl.ca>
2222
4869c585
SM
2223 * ia64-libunwind-tdep.c (get_reg_name, get_fpreg_name,
2224 get_saveloc_name, is_signal_frame_name, step_name,
2225 init_remote_name, create_addr_space_name,
2226 destroy_addr_space_name, search_unwind_table_name,
2227 find_dyn_list_name): Constify.
e83f4d97 2228
6821842f
SM
22292018-07-05 Simon Marchi <simon.marchi@polymtl.ca>
2230
2231 * darwin-nat.c (darwin_pthread_kill): New function.
2232 (darwin_resume_thread): Use darwin_pthread_kill.
2233
c530603c
TV
22342018-07-05 Tom de Vries <tdevries@suse.de>
2235
2236 * macroexp.c (macro_buffer) <operator=>: New member function.
2237
a7d0f0f0
TT
22382018-07-04 Tom Tromey <tom@tromey.com>
2239
2240 * darwin-nat.c (darwin_attach_pid): Use exit_inferior.
2241
6242c6a6
SM
22422018-07-04 Simon Marchi <simon.marchi@polymtl.ca>
2243
2244 * common/common-defs.h (HAVE_USEFUL_SBRK): Define.
2245 * main.c: Use HAVE_USEFUL_SBRK instead of HAVE_SBRK.
2246 * maint.c: Likewise.
2247 * top.c: Likewise.
2248
4e5b2f89
JB
22492018-07-04 Joel Brobecker <brobecker@adacore.com>
2250
2251 * NEWS: Create a new section for the next release branch.
2252 Rename the section of the current branch, now that it has
2253 been cut.
2254
538ccc4a
JB
22552018-07-04 Joel Brobecker <brobecker@adacore.com>
2256
2257 GDB 8.2 branch created (1b919490e8ba30bf1d6941df0ed112b0e557017e):
2258 * version.in: Bump version to 8.2.50.DATE-git.
2259
1b919490
VB
22602018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
2261 Pedro Alves <palves@redhat.com>
2262
2263 * linux-nat.c (linux_init_ptrace): Rename to ...
2264 (linux_init_ptrace_procfs): ... this. Call
2265 linux_proc_init_warnings.
2266 (linux_nat_target::post_attach)
2267 (linux_nat_target::post_startup_inferior): Adjust.
2268 * nat/linux-procfs.c (linux_proc_init_warnings): Define function.
2269 * nat/linux-procfs.h (linux_proc_init_warnings): Declare function.
2270
1ea5da02
TV
22712018-07-04 Tom de Vries <tdevries@suse.de>
2272
2273 * dwarf2read.c (error_check_comp_unit_head): Move dwarf version
2274 check ...
2275 (read_comp_unit_head): ... here.
2276
f51e0e20
TT
22772018-07-03 Tom Tromey <tom@tromey.com>
2278
2279 * tracepoint.c (process_tracepoint_on_disconnect, start_tracing)
2280 (stop_tracing, tstatus_command)
2281 (find_matching_tracepoint_location, merge_uploaded_tracepoints)
2282 (print_one_static_tracepoint_marker): Update.
2283 * breakpoint.c (static_tracepoints_here, all_tracepoints): Return
2284 std::vector.
2285 * breakpoint.h (breakpoint_p): Remove typedef. Don't declare
2286 VEC.
2287 (all_tracepoints, static_tracepoints_here): Return std::vector.
2288
d7e15655
TT
22892018-07-03 Tom Tromey <tom@tromey.com>
2290
2291 * common/ptid.c (ptid_equal): Remove.
2292 * common/ptid.h (ptid_equal): Don't declare.
2293 * ada-tasks.c: Update.
2294 * breakpoint.c: Update.
2295 * common/agent.c: Update.
2296 * corelow.c: Update.
2297 * darwin-nat-info.c: Update.
2298 * darwin-nat.c: Update.
2299 * dcache.c: Update.
2300 * dtrace-probe.c: Update.
2301 * dummy-frame.c: Update.
2302 * fbsd-nat.c: Update.
2303 * frame.c: Update.
2304 * gdbthread.h: Update.
2305 * gnu-nat.c: Update.
2306 * go32-nat.c: Update.
2307 * inf-loop.c: Update.
2308 * inf-ptrace.c: Update.
2309 * infcall.c: Update.
2310 * infcmd.c: Update.
2311 * inflow.c: Update.
2312 * infrun.c: Update.
2313 * linux-fork.c: Update.
2314 * linux-nat.c: Update.
2315 * linux-thread-db.c: Update.
2316 * mi/mi-cmd-var.c: Update.
2317 * mi/mi-interp.c: Update.
2318 * mi/mi-main.c: Update.
2319 * nto-procfs.c: Update.
2320 * ppc-linux-tdep.c: Update.
2321 * procfs.c: Update.
2322 * python/py-inferior.c: Update.
2323 * python/py-record-btrace.c: Update.
2324 * python/py-record.c: Update.
2325 * ravenscar-thread.c: Update.
2326 * regcache.c: Update.
2327 * remote-sim.c: Update.
2328 * remote.c: Update.
2329 * sol-thread.c: Update.
2330 * solib.c: Update.
2331 * target.c: Update.
2332 * tui/tui-stack.c: Update.
2333 * varobj.c: Update.
2334 * windows-nat.c: Update.
2335 * windows-tdep.c: Update.
2336
26a57c92
TT
23372018-07-03 Tom Tromey <tom@tromey.com>
2338
2339 * common/ptid.c (ptid_match): Remove.
2340 * common/ptid.h (ptid_match): Don't declare.
2341 * fbsd-nat.c: Update.
2342 * infcmd.c: Update.
2343 * infrun.c: Update.
2344 * linux-nat.c: Update.
2345 * record-btrace.c: Update.
2346 * regcache.c: Update.
2347 * remote.c: Update.
2348
d2a107e3
TT
23492018-07-03 Tom Tromey <tom@tromey.com>
2350
2351 * common/ptid.c (ptid_tid_p): Remove.
2352 * common/ptid.h (ptid_tid_p): Don't declare.
2353 * sol-thread.c: Update.
2354
15a9e13e
TT
23552018-07-03 Tom Tromey <tom@tromey.com>
2356
2357 * common/ptid.c (ptid_lwp_p): Remove.
2358 * common/ptid.h (ptid_lwp_p): Don't declare.
2359 * fbsd-nat.c: Update.
2360 * linux-nat.c: Update.
2361 * nat/linux-procfs.c: Update.
2362 * nat/x86-linux-dregs.c: Update.
2363 * sol-thread.c: Update.
2364
0e998d96
TT
23652018-07-03 Tom Tromey <tom@tromey.com>
2366
2367 * common/ptid.c (ptid_is_pid): Remove.
2368 * common/ptid.h (ptid_is_pid): Don't declare.
2369 * infrun.c: Update.
2370 * linux-nat.c: Update.
2371 * mi/mi-interp.c: Update.
2372 * remote.c: Update.
2373 * thread.c: Update.
2374
cc6bcb54
TT
23752018-07-03 Tom Tromey <tom@tromey.com>
2376
2377 * common/ptid.c (ptid_get_tid): Remove.
2378 * common/ptid.h (ptid_get_tid): Don't declare.
2379 * ada-tasks.c: Update.
2380 * aix-thread.c: Update.
2381 * bsd-uthread.c: Update.
2382 * darwin-nat.c: Update.
2383 * fbsd-nat.c: Update.
2384 * i386-darwin-nat.c: Update.
2385 * infrun.c: Update.
2386 * linux-tdep.c: Update.
2387 * nto-procfs.c: Update.
2388 * ppc-ravenscar-thread.c: Update.
2389 * python/py-infthread.c: Update.
2390 * ravenscar-thread.c: Update.
2391 * sol-thread.c: Update.
2392 * sparc-ravenscar-thread.c: Update.
2393 * windows-nat.c: Update.
2394
e38504b3
TT
23952018-07-03 Tom Tromey <tom@tromey.com>
2396
2397 * common/ptid.c (ptid_get_lwp): Remove.
2398 * common/ptid.h (ptid_get_lwp): Don't declare.
2399 * aarch64-linux-nat.c: Update.
2400 * ada-tasks.c: Update.
2401 * aix-thread.c: Update.
2402 * amd64-linux-nat.c: Update.
2403 * arm-linux-nat.c: Update.
2404 * corelow.c: Update.
2405 * fbsd-nat.c: Update.
2406 * fbsd-tdep.c: Update.
2407 * gnu-nat.c: Update.
2408 * i386-cygwin-tdep.c: Update.
2409 * i386-gnu-nat.c: Update.
2410 * i386-linux-nat.c: Update.
2411 * ia64-linux-nat.c: Update.
2412 * inf-ptrace.c: Update.
2413 * infrun.c: Update.
2414 * linux-fork.c: Update.
2415 * linux-nat.c: Update.
2416 * linux-tdep.c: Update.
2417 * linux-thread-db.c: Update.
2418 * mips-linux-nat.c: Update.
2419 * nat/aarch64-linux-hw-point.c: Update.
2420 * nat/aarch64-linux.c: Update.
2421 * nat/linux-btrace.c: Update.
2422 * nat/linux-osdata.c: Update.
2423 * nat/linux-procfs.c: Update.
2424 * nat/x86-linux-dregs.c: Update.
2425 * obsd-nat.c: Update.
2426 * ppc-fbsd-nat.c: Update.
2427 * ppc-linux-nat.c: Update.
2428 * procfs.c: Update.
2429 * python/py-infthread.c: Update.
2430 * ravenscar-thread.c: Update.
2431 * remote.c: Update.
2432 * s390-linux-nat.c: Update.
2433 * sol-thread.c: Update.
2434 * sol2-tdep.c: Update.
2435 * spu-linux-nat.c: Update.
2436 * x86-linux-nat.c: Update.
2437 * xtensa-linux-nat.c: Update.
2438
e99b03dc
TT
24392018-07-03 Tom Tromey <tom@tromey.com>
2440
2441 * common/ptid.c (ptid_get_pid): Remove.
2442 * common/ptid.h (ptid_get_pid): Don't declare.
2443 * aarch64-linux-nat.c: Update.
2444 * ada-lang.c: Update.
2445 * aix-thread.c: Update.
2446 * alpha-bsd-nat.c: Update.
2447 * amd64-fbsd-nat.c: Update.
2448 * amd64-linux-nat.c: Update.
2449 * arm-linux-nat.c: Update.
2450 * arm-nbsd-nat.c: Update.
2451 * auxv.c: Update.
2452 * break-catch-syscall.c: Update.
2453 * breakpoint.c: Update.
2454 * bsd-uthread.c: Update.
2455 * corelow.c: Update.
2456 * ctf.c: Update.
2457 * darwin-nat.c: Update.
2458 * fbsd-nat.c: Update.
2459 * fbsd-tdep.c: Update.
2460 * gcore.c: Update.
2461 * gnu-nat.c: Update.
2462 * hppa-nbsd-nat.c: Update.
2463 * hppa-obsd-nat.c: Update.
2464 * i386-fbsd-nat.c: Update.
2465 * ia64-linux-nat.c: Update.
2466 * inf-ptrace.c: Update.
2467 * infcmd.c: Update.
2468 * inferior.c: Update.
2469 * inferior.h: Update.
2470 * inflow.c: Update.
2471 * infrun.c: Update.
2472 * linux-fork.c: Update.
2473 * linux-nat.c: Update.
2474 * linux-tdep.c: Update.
2475 * linux-thread-db.c: Update.
2476 * m68k-bsd-nat.c: Update.
2477 * mi/mi-interp.c: Update.
2478 * mi/mi-main.c: Update.
2479 * mips-linux-nat.c: Update.
2480 * mips-nbsd-nat.c: Update.
2481 * mips64-obsd-nat.c: Update.
2482 * nat/aarch64-linux-hw-point.c: Update.
2483 * nat/aarch64-linux.c: Update.
2484 * nat/linux-btrace.c: Update.
2485 * nat/linux-osdata.c: Update.
2486 * nat/linux-procfs.c: Update.
2487 * nat/x86-linux-dregs.c: Update.
2488 * nto-procfs.c: Update.
2489 * obsd-nat.c: Update.
2490 * ppc-linux-nat.c: Update.
2491 * ppc-nbsd-nat.c: Update.
2492 * ppc-obsd-nat.c: Update.
2493 * proc-service.c: Update.
2494 * procfs.c: Update.
2495 * python/py-inferior.c: Update.
2496 * python/py-infthread.c: Update.
2497 * ravenscar-thread.c: Update.
2498 * record.c: Update.
2499 * remote-sim.c: Update.
2500 * remote.c: Update.
2501 * rs6000-nat.c: Update.
2502 * s390-linux-nat.c: Update.
2503 * sh-nbsd-nat.c: Update.
2504 * sol-thread.c: Update.
2505 * sparc-nat.c: Update.
2506 * sparc64-tdep.c: Update.
2507 * spu-linux-nat.c: Update.
2508 * spu-tdep.c: Update.
2509 * target-debug.h: Update.
2510 * target.c: Update.
2511 * thread.c: Update.
2512 * tid-parse.c: Update.
2513 * tracefile-tfile.c: Update.
2514 * vax-bsd-nat.c: Update.
2515 * windows-nat.c: Update.
2516 * x86-linux-nat.c: Update.
2517 * x86-nat.c: Update.
2518
f2907e49
TT
25192018-07-03 Tom Tromey <tom@tromey.com>
2520
2521 * common/ptid.c (pid_to_ptid): Remove.
2522 * common/ptid.h (pid_to_ptid): Don't declare.
2523 * aix-thread.c: Update.
2524 * arm-linux-nat.c: Update.
2525 * common/ptid.c: Update.
2526 * common/ptid.h: Update.
2527 * corelow.c: Update.
2528 * ctf.c: Update.
2529 * darwin-nat.c: Update.
2530 * fbsd-nat.c: Update.
2531 * fork-child.c: Update.
2532 * gnu-nat.c: Update.
2533 * go32-nat.c: Update.
2534 * inf-ptrace.c: Update.
2535 * infcmd.c: Update.
2536 * inferior.c: Update.
2537 * infrun.c: Update.
2538 * linux-fork.c: Update.
2539 * linux-nat.c: Update.
2540 * nat/aarch64-linux-hw-point.c: Update.
2541 * nat/fork-inferior.c: Update.
2542 * nat/x86-linux-dregs.c: Update.
2543 * nto-procfs.c: Update.
2544 * obsd-nat.c: Update.
2545 * procfs.c: Update.
2546 * progspace.c: Update.
2547 * remote.c: Update.
2548 * rs6000-nat.c: Update.
2549 * s390-linux-nat.c: Update.
2550 * sol-thread.c: Update.
2551 * spu-linux-nat.c: Update.
2552 * target.c: Update.
2553 * top.c: Update.
2554 * tracefile-tfile.c: Update.
2555 * windows-nat.c: Update.
2556
fd79271b
TT
25572018-07-03 Tom Tromey <tom@tromey.com>
2558
2559 * common/ptid.h (ptid_build): Don't declare.
2560 * common/ptid.c (ptid_build): Remove.
2561 * aix-thread.c: Update.
2562 * bsd-kvm.c: Update.
2563 * bsd-uthread.c: Update.
2564 * common/agent.c: Update.
2565 * common/ptid.c: Update.
2566 * common/ptid.h: Update.
2567 * corelow.c: Update.
2568 * darwin-nat.c: Update.
2569 * fbsd-nat.c: Update.
2570 * gnu-nat.c: Update.
2571 * linux-fork.c: Update.
2572 * linux-nat.c: Update.
2573 * linux-thread-db.c: Update.
2574 * nat/linux-osdata.c: Update.
2575 * nat/linux-procfs.c: Update.
2576 * nto-procfs.c: Update.
2577 * obsd-nat.c: Update.
2578 * proc-service.c: Update.
2579 * procfs.c: Update.
2580 * ravenscar-thread.c: Update.
2581 * remote-sim.c: Update.
2582 * remote.c: Update.
2583 * sol-thread.c: Update.
2584 * target.c: Update.
2585 * windows-nat.c: Update.
2586
057302ce
TT
25872018-07-03 Tom Tromey <tom@tromey.com>
2588
2589 * infrun.c (follow_exec): Use exit_inferior_silent.
2590 * inferior.c (exit_inferior_num_silent): Remove.
2591 * inferior.h (exit_inferior_num_silent): Don't declare.
2592
a50c11c6
TT
25932018-07-03 Tom Tromey <tom@tromey.com>
2594
2595 PR cli/23340:
2596 * darwin-nat.c (darwin_attach_pid): Reset inferior and
2597 inferior_ptid on error.
2598
471b9d15
MR
25992018-07-02 Maciej W. Rozycki <macro@mips.com>
2600 Simon Marchi <simon.marchi@polymtl.ca>
2601
2602 PR tdep/8282
2603 * disasm.h (gdb_disassembler): Add
2604 `m_disassembler_options_holder'. member
2605 * disasm.c (get_all_disassembler_options): New function.
2606 (gdb_disassembler::gdb_disassembler): Use it.
2607 (gdb_buffered_insn_length_init_dis): Likewise.
2608 (gdb_buffered_insn_length): Adjust accordingly.
2609 (set_disassembler_options): Handle options with arguments.
2610 (show_disassembler_options_sfunc): Likewise. Add a leading new
2611 line if showing options with descriptions.
2612 (disassembler_options_completer): Adapt to using the
2613 `disasm_options_and_args_t' structure.
2614 * mips-tdep.c (mips_disassembler_options): New variable.
2615 (mips_disassembler_options_o32): Likewise.
2616 (mips_disassembler_options_n32): Likewise.
2617 (mips_disassembler_options_n64): Likewise.
2618 (gdb_print_insn_mips): Don't set `disassembler_options'.
2619 (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): Remove
2620 functions.
2621 (mips_gdbarch_init): Always set `gdbarch_print_insn' to
2622 `gdb_print_insn_mips'. Set `gdbarch_disassembler_options',
2623 `gdbarch_disassembler_options_implicit' and
2624 `gdbarch_valid_disassembler_options'.
2625 * arm-tdep.c (_initialize_arm_tdep): Adapt to using the
2626 `disasm_options_and_args_t' structure.
2627 * gdbarch.sh (disassembler_options_implicit): New `gdbarch'
2628 method.
2629 (valid_disassembler_options): Switch from `disasm_options_t' to
2630 the `disasm_options_and_args_t' structure.
2631 * NEWS: Document `set disassembler-options' support for the MIPS
2632 target.
2633 * gdbarch.h: Regenerate.
2634 * gdbarch.c: Regenerate.
2635
41823f29
SH
26362018-07-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
2637
2638 * riscv-tdep.c (riscv_register_aliases): Swap "fp" and "s0" entries.
2639
41206e32
JB
26402018-06-29 Joel Brobecker <brobecker@adacore.com>
2641
2642 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Add missing
2643 parameter in call to amd64_target_description.
2644 * amd64-dicos-tdep.c (amd64_dicos_init_abi): Likewise.
2645 * amd64-fbsd-tdep.c (amd64fbsd_core_read_description)
2646 (amd64fbsd_init_abi): Likewise.
2647 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
2648 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
2649 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
2650 * amd64-fbsd-nat.c (amd64_fbsd_nat_target): Likewise.
2651
de52b960
PA
26522018-06-29 Pedro Alves <palves@redhat.com>
2653
2654 * gdb/amd64-tdep.h (amd64_create_target_description): Add
2655 "segments" parameter.
2656 * gdb/amd64-tdep.c (amd64_none_init_abi, amd64_x32_none_init_abi)
2657 (_initialize_amd64_tdep): Update call to
2658 amd64_create_target_description.
2659 (amd64_target_description): Add "segments" parameter. Adjust
2660 the implementation to use it.
2661 * gdb/amd64-linux-tdep.c (amd64_linux_read_description): Update
2662 call to amd64_create_target_description.
2663 * gdb/amd64-windows-tdep.c (amd64_windows_init_abi): Likewise.
2664 * gdb/arch/amd64.h (amd64_create_target_description): Add
2665 "segments" register.
2666 * gdb/arch/amd64.c (amd64_create_target_description): Add
2667 "segments" parameter. Call create_feature_i386_64bit_segments
2668 only if SEGMENTS is true.
2669 * gdb/gdbserver/win32-i386-low.c (i386_arch_setup): Update
2670 call to amd64_create_target_description.
2671
75acb486
PA
26722018-06-29 Pedro Alves <palves@redhat.com>
2673
2674 * thread.c (thread_target_id_str): New, factored out from ...
2675 (print_thread_info_1): ... here. Use it to compute the max
2676 "Target Id" column width.
2677
c76a8ea3
PA
26782018-06-29 Pedro Alves <palves@redhat.com>
2679
2680 * remote.c (remote_target::extra_thread_info): Delete
2681 'display_buf' and 'n' locals. from the cache, regardless of
2682 packet mechanims is in use. Use cache for qThreadExtra and qP
2683 methods too.
2684
cd2bb709
PA
26852018-06-29 Pedro Alves <palves@redhat.com>
2686
2687 * blockframe.c (find_pc_sect_containing_function): New function.
2688 * breakpoint.c (print_breakpoint_location): Don't call
2689 find_pc_sect_function.
2690 * linespec.c (create_sals_line_offset): Record the location's
2691 symbol in the sal.
2692 * linespec.c (convert_address_location_to_sals): Fill in sal's
2693 symbol with find_pc_sect_containing_function.
2694 * symtab.c (find_function_start_sal): Rename to ...
2695 (find_function_start_sal_1): ... this.
2696 (find_function_start_sal): Reimplement as wrapper around
2697 find_function_start_sal_1, and use
2698 find_pc_sect_containing_function to fill in the sal's symbol.
2699 (find_function_start_sal(symbol*, bool)): Adjust.
2700 * symtab.h (find_pc_function, find_pc_sect_function): Adjust
2701 comments.
2702 (find_pc_sect_containing_function): Declare.
2703
991ff292
PA
27042018-06-29 Pedro Alves <palves@redhat.com>
2705
2706 * inline-frame.c (stopped_by_user_bp_inline_frame): Return
2707 true if the the location has no symbol.
2708
44cee4fd
TT
27092018-06-28 Tom Tromey <tom@tromey.com>
2710
2711 * NEWS: Mention --enable-codesign.
2712 * silent-rules.mk (ECHO_SIGN): New variable.
2713 * configure.ac: Add --enable-codesign.
2714 * configure: Rebuild.
2715 * Makefile.in (CODESIGN, CODESIGN_CERT): New variables.
2716 (gdb$(EXEEXT)): Optionally invoke codesign.
2717
f2ffa92b
PA
27182018-06-28 Pedro Alves <palves@redhat.com>
2719
2720 * gdbthread.h (struct thread_suspend_state) <stop_pc>: Extend
2721 comments.
2722 (switch_to_thread_no_regs): Adjust comment.
2723 * infcmd.c (stop_pc): Delete.
2724 (post_create_inferior, info_program_command): Replace references
2725 to stop_pc with references to thread_info->suspend.stop_pc.
2726 * inferior.h (stop_pc): Delete declaration.
2727 * infrun.c (proceed, handle_syscall_event, fill_in_stop_func)
2728 (handle_inferior_event_1, handle_signal_stop)
2729 (process_event_stop_test, keep_going_stepped_thread)
2730 (handle_step_into_function, handle_step_into_function_backward)
2731 (print_stop_location): Replace references to stop_pc with
2732 references to thread_info->suspend.stop_pc.
2733 (struct infcall_suspend_state) <stop_pc>: Delete field.
2734 (save_infcall_suspend_state, restore_infcall_suspend_state):
2735 Remove references to inf_stat->stop_pc.
2736 * linux-fork.c (fork_load_infrun_state): Likewise.
2737 * record-btrace.c (record_btrace_set_replay): Likewise.
2738 * record-full.c (record_full_goto_entry): Likewise.
2739 * remote.c (print_one_stopped_thread): Likewise.
2740 * target.c (target_resume): Extend comment.
2741 * thread.c (set_executing_thread): New.
2742 (set_executing): Use it.
2743 (switch_to_thread_no_regs, switch_to_no_thread, switch_to_thread):
2744 Remove references to stop_pc.
2745
ecdc3a72
PA
27462018-06-28 Pedro Alves <palves@redhat.com>
2747
2748 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>:
2749 Moving fetching stop_pc until after ecs->event_thread is refreshed.
2750
d95d3aef
TT
27512018-06-28 Tom Tromey <tom@tromey.com>
2752
2753 * coffread.c (coff_symfile_finish): Update.
2754 * xcoffread.c (xcoff_symfile_finish): Update.
2755 * elfread.c (elf_symfile_finish): Update.
2756 * symfile.h (dwarf2_free_objfile): Don't declare.
2757 * dwarf2read.c (_initialize_dwarf2_read): Use
2758 register_objfile_data_with_cleanup.
2759 (dwarf2_free_objfile): Now static. Change signature.
2760
291f9a96
PT
27612018-06-28 Petr Tesarik <ptesarik@suse.cz>
2762
2763 * symfile.c (add_symbol_file_command, _initialize_symfile): Add
2764 option "-o" to add-symbol-file-load to add an offset to each
2765 section's load address.
2766 * symfile.c (set_objfile_default_section_offset): New function.
2767
d81a3eaf
PT
27682018-06-28 Petr Tesarik <ptesarik@suse.cz>
2769
2770 * symfile.c (add_symbol_file_command): Make sure that sections
2771 with the same name are sorted in the same order.
2772
ed6dfe51
PT
27732018-06-28 Petr Tesarik <ptesarik@suse.cz>
2774
2775 * symfile.c (add_symbol_file_command, _initialize_symfile): Do not
2776 require the second argument. If omitted, load sections at the
2777 addresses specified in the file.
2778
d4d429d5
PT
27792018-06-28 Petr Tesarik <ptesarik@suse.cz>
2780
2781 * symfile.c (symbol_file_command, symbol_file_add_main_1)
2782 (_initialize_symfile): Add option "-o" to symbol-file to add an
2783 offset to each section of the symbol file.
2784
39b27ab6
PT
27852018-06-28 Petr Tesarik <ptesarik@suse.cz>
2786
2787 * MAINTAINERS (Write After Approval): Add Petr Tesarik.
2788
41827fc3
TT
27892018-06-27 Tom Tromey <tom@tromey.com>
2790
2791 * stack.c (_initialize_stack): Update "func" help text.
2792
0c6aef22
TT
27932018-06-27 Tom Tromey <tom@tromey.com>
2794
2795 * python/py-unwind.c (unwind_info_object) <saved_regs>: Now a
2796 std::vector.
2797 (unwind_infopy_str, pyuw_create_unwind_info)
2798 (unwind_infopy_add_saved_register, pyuw_sniffer)
2799 (unwind_infopy_dealloc, unwind_infopy_add_saved_register):
2800 Update.
2801 (struct saved_reg): Add constructor.
2802 <value>: Now a gdbpy_ref<>.
2803
63177289
TT
28042018-06-27 Tom Tromey <tom@tromey.com>
2805
2806 * machoread.c (macho_symfile_read): Define "symbol_table" earlier.
2807
e76f78a0
SM
28082018-06-27 Simon Marchi <simon.marchi@ericsson.com>
2809
2810 * gdb-gdb.py.in: Format using autopep8.
2811
9a14af7b
SM
28122018-06-27 Simon Marchi <simon.marchi@ericsson.com>
2813
2814 * gdb-gdb.py.in (CoreAddrPrettyPrinter): New class.
2815 (type_lookup_function): Recognize CORE_ADDR values.
2816
189366cd
SM
28172018-06-27 Simon Marchi <simon.marchi@ericsson.com>
2818
2819 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <to_string>: Don't
2820 print tag_name.
2821
68ad5fb9
SM
28222018-06-27 Simon Marchi <simon.marchi@ericsson.com>
2823
2824 * gdb-gdb.py.in (TypeFlag) <__cmp__>: Remove.
2825 <__lt__>: Add.
2826
141ec9f6
SM
28272018-06-27 Simon Marchi <simon.marchi@ericsson.com>
2828
2829 * gdb-gdb.py: Move to...
2830 * gdb-gdb.py.in: ... here.
2831 * configure.ac (AC_CONFIG_FILES): Add gdb-gdb.py.
2832 * Makefile.in (all): Add gdb-gdb.gdb and gdb-gdb.py as
2833 dependencies.
2834 (distclean): Remove gdb-gdb.py when cleaning.
2835 (gdb-gdb.py, gdb-gdb.gdb): New rules.
2836 * configure: Re-generate.
2837
4c4e7ad4
PA
28382018-06-27 Pedro Alves <palves@redhat.com>
2839
2840 * proc-service.c (get_ps_regcache): New.
2841 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
2842 (ps_lsetfpregs): Use it.
2843
7ab6656f
OJ
28442018-06-27 Omair Javaid <omair.javaid@linaro.org>
2845
2846 PR gdb/21695
2847 * dwarf2read.c (lnp_state_machine::check_line_address): Update declaration.
2848 (dwarf_decode_lines_1): Adjust.
2849
bd583225
SM
28502018-06-27 Simon Marchi <simon.marchi@ericsson.com>
2851
2852 * fbsd-nat.h (class fbsd_nat_target) <find_memory_regions>: Add
2853 override.
2854 <info_proc>: Likewise.
2855
9a325b7b
JB
28562018-06-26 Joel Brobecker <brobecker@adacore.com>
2857
2858 * windows-nat.c (do_windows_fetch_inferior_registers): Rename
2859 to windows_fetch_one_register, and only handle the case of
2860 fetching one register. Move the code that reloads the context
2861 and iterates over all registers if R is negative to...
2862 (windows_nat_target::fetch_registers): ... here.
2863 (do_windows_store_inferior_registers): Rename to
2864 windows_store_one_register, and only handle the case of storing
2865 one register. Move the code that handles the case where r is
2866 negative to...
2867 (windows_nat_target::store_registers) ... here.
2868
a33ccfc7
TT
28692018-06-26 Tom Tromey <tom@tromey.com>
2870
2871 PR rust/22574:
2872 * typeprint.c (whatis_exp): Allow ptype/o for Rust.
2873 * rust-lang.c (rust_print_struct_def): Add podata parameter.
2874 Update.
2875 (rust_internal_print_type): Add podata parameter.
2876 (rust_print_type): Update.
2877
e0c547d1
TT
28782018-06-26 Tom Tromey <tom@tromey.com>
2879
2880 * typeprint.h (struct print_offset_data) <update, finish,
2881 maybe_print_hole>: New methods.
2882 <indentation>: New constant.
2883 * typeprint.c (print_offset_data::indentation): Define.
2884 (print_offset_data::maybe_print_hole, print_offset_data::update)
2885 (print_offset_data::finish): Move from c-typeprint.c and rename.
2886 * c-typeprint.c (OFFSET_SPC_LEN): Remove.
2887 (print_spaces_filtered_with_print_options): Update.
2888 (c_print_type_union_field_offset, maybe_print_hole)
2889 (c_print_type_struct_field_offset): Move to typeprint.c and
2890 rename.
2891 (c_type_print_base_struct_union): Update.
2892
75cbc781
PA
28932018-06-25 Pedro Alves <palves@redhat.com>
2894
2895 * gdbthread.h (thread_info_ref, delete_thread)
2896 (delete_thread_silent, first_thread_of_inferior)
2897 (any_thread_of_inferior, switch_to_thread)
2898 (enable_thread_stack_temporaries)
2899 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
2900 (get_last_thread_stack_temporary)
2901 (value_in_thread_stack_temporaries, can_access_registers_thread):
2902 Spell out "struct thread_info" instead of just "thread_info".
2903 * inferior.h (notice_new_inferior): Likewise.
2904
b7a08269
PA
29052018-06-25 Pedro Alves <palves@redhat.com>
2906
2907 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
2908 pass thread_info pointer to delete_thread.
2909 (windows_nat_target::detach): Pass inferior pointer to
2910 detach_inferior.
2911 * aix-thread.c (sync_threadlists): Pass thread_info pointer to
2912 delete_thread.
2913 * bsd-kvm.c (bsd_kvm_target::close): Use discard_all_inferiors.
2914 * darwin-nat.c (darwin_check_new_threads): Use find_thread_ptid
2915 and pass a thread_info pointer to delete_thread.
2916 * fbsd-nat.c (fbsd_nat_target::wait): Use find_thread_ptid and
2917 pass thread_info pointer to delete_thread.
2918 * go32-nat.c (go32_nat_target::mourn_inferior): Remove
2919 delete_thread_silent call.
2920 * procfs.c (procfs_target::detach): Pass inferior pointer to
2921 detach_inferior.
2922 (procfs_target::wait): Pass thread_info pointer to delete_thread.
2923 * remote-sim.c (gdbsim_target::mourn_inferior): Remove
2924 delete_thread_silent call.
2925 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
2926 pass thread_info pointer to delete_thread.
2927 (windows_nat_target::detach): Pass inferior pointer to
2928 delete_inferior.
2929
8e7767e3
AH
29302018-06-22 Alan Hayward <alan.hayward@arm.com>
2931
2932 * regcache.c (readable_regcache::read_part): Fix asserts.
2933 (reg_buffer::raw_collect_part): New function.
2934 (regcache::write_part): Fix asserts.
2935 (reg_buffer::raw_supply_part): New function.
2936 (regcache::transfer_regset_register): New helper function.
2937 (regcache::transfer_regset): Call new functions.
2938 (regcache_supply_regset): Use gdb_byte*.
2939 (regcache::supply_regset): Likewise.
2940 (regcache_collect_regset): Likewise.
2941 (regcache::collect_regset): Likewise.
2942 * regcache.h (reg_buffer::raw_collect_part): New declaration.
2943 (reg_buffer::raw_supply_part): Likewise.
2944 (regcache::transfer_regset_register): Likewise.
2945 (regcache::transfer_regset): Use gdb_byte*.
2946
bfd60e34
AH
29472018-06-22 Alan Hayward <alan.hayward@arm.com>
2948
2949 * nat/aarch64-sve-linux-ptrace.h (HAS_SVE_STATE): Use &.
2950
00431a78
PA
29512018-06-21 Pedro Alves <palves@redhat.com>
2952
2953 * ada-lang.h (ada_get_task_number): Take a thread_info pointer
2954 instead of a ptid_t. All callers adjusted.
2955 * ada-tasks.c (ada_get_task_number): Likewise. All callers
2956 adjusted.
2957 (print_ada_task_info, display_current_task_id, task_command_1):
2958 Adjust.
2959 * breakpoint.c (watchpoint_in_thread_scope): Adjust to use
2960 inferior_thread.
2961 (breakpoint_kind): Adjust.
2962 (remove_breakpoints_pid): Rename to ...
2963 (remove_breakpoints_inf): ... this. Adjust to take an inferior
2964 pointer. All callers adjusted.
2965 (bpstat_clear_actions): Use inferior_thread.
2966 (get_bpstat_thread): New.
2967 (bpstat_do_actions): Use it.
2968 (bpstat_check_breakpoint_conditions, bpstat_stop_status): Adjust
2969 to take a thread_info pointer. All callers adjusted.
2970 (set_longjmp_breakpoint_for_call_dummy, set_momentary_breakpoint)
2971 (breakpoint_re_set_thread): Use inferior_thread.
2972 * breakpoint.h (struct inferior): Forward declare.
2973 (bpstat_stop_status): Update.
2974 (remove_breakpoints_pid): Delete.
2975 (remove_breakpoints_inf): New.
2976 * bsd-uthread.c (bsd_uthread_target::wait)
2977 (bsd_uthread_target::update_thread_list): Use find_thread_ptid.
2978 * btrace.c (btrace_add_pc, btrace_enable, btrace_fetch)
2979 (maint_btrace_packet_history_cmd)
2980 (maint_btrace_clear_packet_history_cmd): Adjust.
2981 (maint_btrace_clear_cmd, maint_info_btrace_cmd): Adjust to use
2982 inferior_thread.
2983 * cli/cli-interp.c: Include "inferior.h".
2984 * common/refcounted-object.h (struct
2985 refcounted_object_ref_policy): New.
2986 * compile/compile-object-load.c: Include gdbthread.h.
2987 (store_regs): Use inferior_thread.
2988 * corelow.c (core_target::close): Use current_inferior.
2989 (core_target_open): Adjust to use first_thread_of_inferior and use
2990 the current inferior.
2991 * ctf.c (ctf_target::close): Adjust to use current_inferior.
2992 * dummy-frame.c (dummy_frame_id) <ptid>: Delete, replaced by ...
2993 <thread>: ... this new field. All references adjusted.
2994 (dummy_frame_pop, dummy_frame_discard, register_dummy_frame_dtor):
2995 Take a thread_info pointer instead of a ptid_t.
2996 * dummy-frame.h (dummy_frame_push, dummy_frame_pop)
2997 (dummy_frame_discard, register_dummy_frame_dtor): Take a
2998 thread_info pointer instead of a ptid_t.
2999 * elfread.c: Include "inferior.h".
3000 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop):
3001 Use inferior_thread.
3002 * eval.c (evaluate_subexp): Likewise.
3003 * frame.c (frame_pop, has_stack_frames, find_frame_sal): Use
3004 inferior_thread.
3005 * gdb_proc_service.h (struct thread_info): Forward declare.
3006 (struct ps_prochandle) <ptid>: Delete, replaced by ...
3007 <thread>: ... this new field. All references adjusted.
3008 * gdbarch.h, gdbarch.c: Regenerate.
3009 * gdbarch.sh (get_syscall_number): Replace 'ptid' parameter with a
3010 'thread' parameter. All implementations and callers adjusted.
3011 * gdbthread.h (thread_info) <set_running>: New method.
3012 (delete_thread, delete_thread_silent): Take a thread_info pointer
3013 instead of a ptid.
3014 (global_thread_id_to_ptid, ptid_to_global_thread_id): Delete.
3015 (first_thread_of_process): Delete, replaced by ...
3016 (first_thread_of_inferior): ... this new function. All callers
3017 adjusted.
3018 (any_live_thread_of_process): Delete, replaced by ...
3019 (any_live_thread_of_inferior): ... this new function. All callers
3020 adjusted.
3021 (switch_to_thread, switch_to_no_thread): Declare.
3022 (is_executing): Delete.
3023 (enable_thread_stack_temporaries): Update comment.
3024 <enable_thread_stack_temporaries>: Take a thread_info pointer
3025 instead of a ptid_t. Incref the thread.
3026 <~enable_thread_stack_temporaries>: Decref the thread.
3027 <m_ptid>: Delete
3028 <m_thr>: New.
3029 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
3030 (get_last_thread_stack_temporary)
3031 (value_in_thread_stack_temporaries, can_access_registers_thread):
3032 Take a thread_info pointer instead of a ptid_t. All callers
3033 adjusted.
3034 * infcall.c (get_call_return_value): Use inferior_thread.
3035 (run_inferior_call): Work with thread pointers instead of ptid_t.
3036 (call_function_by_hand_dummy): Work with thread pointers instead
3037 of ptid_t. Use thread_info_ref.
3038 * infcmd.c (proceed_thread_callback): Access thread's state
3039 directly.
3040 (ensure_valid_thread, ensure_not_running): Use inferior_thread,
3041 access thread's state directly.
3042 (continue_command): Use inferior_thread.
3043 (info_program_command): Use find_thread_ptid and access thread
3044 state directly.
3045 (proceed_after_attach_callback): Use thread state directly.
3046 (notice_new_inferior): Take a thread_info pointer instead of a
3047 ptid_t. All callers adjusted.
3048 (exit_inferior): Take an inferior pointer instead of a pid. All
3049 callers adjusted.
3050 (exit_inferior_silent): New.
3051 (detach_inferior): Delete.
3052 (valid_gdb_inferior_id, pid_to_gdb_inferior_id)
3053 (gdb_inferior_id_to_pid, in_inferior_list): Delete.
3054 (detach_inferior_command, kill_inferior_command): Use
3055 find_inferior_id instead of valid_gdb_inferior_id and
3056 gdb_inferior_id_to_pid.
3057 (inferior_command): Use inferior and thread pointers.
3058 * inferior.h (struct thread_info): Forward declare.
3059 (notice_new_inferior): Take a thread_info pointer instead of a
3060 ptid_t. All callers adjusted.
3061 (detach_inferior): Delete declaration.
3062 (exit_inferior, exit_inferior_silent): Take an inferior pointer
3063 instead of a pid. All callers adjusted.
3064 (gdb_inferior_id_to_pid, pid_to_gdb_inferior_id, in_inferior_list)
3065 (valid_gdb_inferior_id): Delete.
3066 * infrun.c (follow_fork_inferior, proceed_after_vfork_done)
3067 (handle_vfork_child_exec_or_exit, follow_exec): Adjust.
3068 (struct displaced_step_inferior_state) <pid>: Delete, replaced by
3069 ...
3070 <inf>: ... this new field.
3071 <step_ptid>: Delete, replaced by ...
3072 <step_thread>: ... this new field.
3073 (get_displaced_stepping_state): Take an inferior pointer instead
3074 of a pid. All callers adjusted.
3075 (displaced_step_in_progress_any_inferior): Adjust.
3076 (displaced_step_in_progress_thread): Take a thread pointer instead
3077 of a ptid_t. All callers adjusted.
3078 (displaced_step_in_progress, add_displaced_stepping_state): Take
3079 an inferior pointer instead of a pid. All callers adjusted.
3080 (get_displaced_step_closure_by_addr): Adjust.
3081 (remove_displaced_stepping_state): Take an inferior pointer
3082 instead of a pid. All callers adjusted.
3083 (displaced_step_prepare_throw, displaced_step_prepare)
3084 (displaced_step_fixup): Take a thread pointer instead of a ptid_t.
3085 All callers adjusted.
3086 (start_step_over): Adjust.
3087 (infrun_thread_ptid_changed): Remove bit updating ptids in the
3088 displaced step queue.
3089 (do_target_resume): Adjust.
3090 (fetch_inferior_event): Use inferior_thread.
3091 (context_switch, get_inferior_stop_soon): Take an
3092 execution_control_state pointer instead of a ptid_t. All callers
3093 adjusted.
3094 (switch_to_thread_cleanup): Delete.
3095 (stop_all_threads): Use scoped_restore_current_thread.
3096 * inline-frame.c: Include "gdbthread.h".
3097 (inline_state) <inline_state>: Take a thread pointer instead of a
3098 ptid_t. All callers adjusted.
3099 <ptid>: Delete, replaced by ...
3100 <thread>: ... this new field.
3101 (find_inline_frame_state): Take a thread pointer instead of a
3102 ptid_t. All callers adjusted.
3103 (skip_inline_frames, step_into_inline_frame)
3104 (inline_skipped_frames, inline_skipped_symbol): Take a thread
3105 pointer instead of a ptid_t. All callers adjusted.
3106 * inline-frame.h (skip_inline_frames, step_into_inline_frame)
3107 (inline_skipped_frames, inline_skipped_symbol): Likewise.
3108 * linux-fork.c (delete_checkpoint_command): Adjust to use thread
3109 pointers directly.
3110 * linux-nat.c (get_detach_signal): Likewise.
3111 * linux-thread-db.c (thread_from_lwp): New 'stopped' parameter.
3112 (thread_db_notice_clone): Adjust.
3113 (thread_db_find_new_threads_silently)
3114 (thread_db_find_new_threads_2, thread_db_find_new_threads_1): Take
3115 a thread pointer instead of a ptid_t. All callers adjusted.
3116 * mi/mi-cmd-var.c: Include "inferior.h".
3117 (mi_cmd_var_update_iter): Update to use thread pointers.
3118 * mi/mi-interp.c (mi_new_thread): Update to use the thread's
3119 inferior directly.
3120 (mi_output_running_pid, mi_inferior_count): Delete, bits factored
3121 out to ...
3122 (mi_output_running): ... this new function.
3123 (mi_on_resume_1): Adjust to use it.
3124 (mi_user_selected_context_changed): Adjust to use inferior_thread.
3125 * mi/mi-main.c (proceed_thread): Adjust to use thread pointers
3126 directly.
3127 (interrupt_thread_callback): : Adjust to use thread and inferior
3128 pointers.
3129 * proc-service.c: Include "gdbthread.h".
3130 (ps_pglobal_lookup): Adjust to use the thread's inferior directly.
3131 * progspace-and-thread.c: Include "inferior.h".
3132 * progspace.c: Include "inferior.h".
3133 * python/py-exitedevent.c (create_exited_event_object): Adjust to
3134 hold a reference to an inferior_object.
3135 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust to use
3136 inferior_thread.
3137 * python/py-inferior.c (struct inferior_object): Give the type a
3138 tag name instead of a typedef.
3139 (python_on_normal_stop): No need to check if the current thread is
3140 listed.
3141 (inferior_to_inferior_object): Change return type to
3142 inferior_object. All callers adjusted.
3143 (find_thread_object): Delete, bits factored out to ...
3144 (thread_to_thread_object): ... this new function.
3145 * python/py-infthread.c (create_thread_object): Use
3146 inferior_to_inferior_object.
3147 (thpy_is_stopped): Use thread pointer directly.
3148 (gdbpy_selected_thread): Use inferior_thread.
3149 * python/py-record-btrace.c (btpy_list_object) <ptid>: Delete
3150 field, replaced with ...
3151 <thread>: ... this new field. All users adjusted.
3152 (btpy_insn_or_gap_new): Drop const.
3153 (btpy_list_new): Take a thread pointer instead of a ptid_t. All
3154 callers adjusted.
3155 * python/py-record.c: Include "gdbthread.h".
3156 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
3157 a ptid_t. All callers adjusted.
3158 (gdbpy_current_recording): Use inferior_thread.
3159 * python/py-record.h (recpy_record_object) <ptid>: Delete
3160 field, replaced with ...
3161 <thread>: ... this new field. All users adjusted.
3162 (recpy_element_object) <ptid>: Delete
3163 field, replaced with ...
3164 <thread>: ... this new field. All users adjusted.
3165 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
3166 a ptid_t. All callers adjusted.
3167 * python/py-threadevent.c: Include "gdbthread.h".
3168 (get_event_thread): Use thread_to_thread_object.
3169 * python/python-internal.h (struct inferior_object): Forward
3170 declare.
3171 (find_thread_object, find_inferior_object): Delete declarations.
3172 (thread_to_thread_object, inferior_to_inferior_object): New
3173 declarations.
3174 * record-btrace.c: Include "inferior.h".
3175 (require_btrace_thread): Use inferior_thread.
3176 (record_btrace_frame_sniffer)
3177 (record_btrace_tailcall_frame_sniffer): Use inferior_thread.
3178 (get_thread_current_frame): Use scoped_restore_current_thread and
3179 switch_to_thread.
3180 (get_thread_current_frame): Use thread pointer directly.
3181 (record_btrace_replay_at_breakpoint): Use thread's inferior
3182 pointer directly.
3183 * record-full.c: Include "inferior.h".
3184 * regcache.c: Include "gdbthread.h".
3185 (get_thread_arch_regcache): Use the inferior's address space
3186 directly.
3187 (get_thread_regcache, registers_changed_thread): New.
3188 * regcache.h (get_thread_regcache(thread_info *thread)): New
3189 overload.
3190 (registers_changed_thread): New.
3191 (remote_target) <remote_detach_1>: Swap order of parameters.
3192 (remote_add_thread): <remote_add_thread>: Return the new thread.
3193 (get_remote_thread_info(ptid_t)): New overload.
3194 (remote_target::remote_notice_new_inferior): Use thread pointers
3195 directly.
3196 (remote_target::process_initial_stop_replies): Use
3197 thread_info::set_running.
3198 (remote_target::remote_detach_1, remote_target::detach)
3199 (extended_remote_target::detach): Adjust.
3200 * stack.c (frame_show_address): Use inferior_thread.
3201 * target-debug.h (target_debug_print_thread_info_pp): New.
3202 * target-delegates.c: Regenerate.
3203 * target.c (default_thread_address_space): Delete.
3204 (memory_xfer_partial_1): Use current_inferior.
3205 (target_detach): Use current_inferior.
3206 (target_thread_address_space): Delete.
3207 (generic_mourn_inferior): Use current_inferior.
3208 * target.h (struct target_ops) <thread_address_space>: Delete.
3209 (target_thread_address_space): Delete.
3210 * thread.c (init_thread_list): Use ALL_THREADS_SAFE. Use thread
3211 pointers directly.
3212 (delete_thread_1, delete_thread, delete_thread_silent): Take a
3213 thread pointer instead of a ptid_t. Adjust all callers.
3214 (ptid_to_global_thread_id, global_thread_id_to_ptid): Delete.
3215 (first_thread_of_process): Delete, replaced by ...
3216 (first_thread_of_inferior): ... this new function. All callers
3217 adjusted.
3218 (any_thread_of_process): Rename to ...
3219 (any_thread_of_inferior): ... this, and take an inferior pointer.
3220 (any_live_thread_of_process): Rename to ...
3221 (any_live_thread_of_inferior): ... this, and take an inferior
3222 pointer.
3223 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
3224 (value_in_thread_stack_temporaries)
3225 (get_last_thread_stack_temporary): Take a thread pointer instead
3226 of a ptid_t. Adjust all callers.
3227 (thread_info::set_running): New.
3228 (validate_registers_access): Use inferior_thread.
3229 (can_access_registers_ptid): Rename to ...
3230 (can_access_registers_thread): ... this, and take a thread
3231 pointer.
3232 (print_thread_info_1): Adjust to compare thread pointers instead
3233 of ptids.
3234 (switch_to_no_thread, switch_to_thread): Make extern.
3235 (scoped_restore_current_thread::~scoped_restore_current_thread):
3236 Use m_thread pointer directly.
3237 (scoped_restore_current_thread::scoped_restore_current_thread):
3238 Use inferior_thread.
3239 (thread_command): Use thread pointer directly.
3240 (thread_num_make_value_helper): Use inferior_thread.
3241 * top.c (execute_command): Use inferior_thread.
3242 * tui/tui-interp.c: Include "inferior.h".
3243 * varobj.c (varobj_create): Use inferior_thread.
3244 (value_of_root_1): Use find_thread_global_id instead of
3245 global_thread_id_to_ptid.
3246
33bab475
AH
32472018-06-21 Alan Hayward <alan.hayward@arm.com>
3248
3249 * regcache.c (readable_regcache::read_part): Avoid memcpy when
3250 possible.
3251 (regcache::write_part): Likewise.
3252 (readable_regcache::cooked_read_part): Update comment.
3253 (readable_regcache::cooked_write_part): Likewise.
3254 * regcache.h: (readable_regcache::read_part): Likewise.
3255 (regcache::write_part): Likewise.
3256
8363f9d5
RB
32572018-06-21 Richard Bunt <richard.bunt@arm.com>
3258 Dirk Schubert <dirk.schubert@arm.com>
3259
3260 * aarch64-linux-nat.c (post_attach): New.
3261 (aarch64_linux_nat_target::post_attach): Override post_attach to
3262 record the number of hardware debug registers.
3263
0d0b0ea2
TT
32642018-06-20 Tom Tromey <tom@tromey.com>
3265
3266 * python/py-param.c (add_setshow_generic): Make parameters const.
3267 (parmpy_init): Update.
3268
302abd6e
SM
32692018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
3270
3271 * regcache.h (regcache_cooked_read_ftype): Rename to...
3272 (register_read_ftype): ...this, change type to function_view.
3273 (class reg_buffer) <save>: Remove src parameter.
3274 (readonly_detached_regcache) <readonly_detached_regcache>: Make
3275 parameter non-const in first overload. Remove src parameter in
3276 second overload.
3277 * regcache.c (do_cooked_read): Remove.
3278 (readonly_detached_regcache::readonly_detached_regcache): Make
3279 parameter non-const, adjust call to other constructor.
3280 (reg_buffer::save): Remove src parameter.
3281 * frame.c (do_frame_register_read): Remove.
3282 (frame_save_as_regcache): Use lambda function.
3283 * ppc-linux-tdep.c (ppu2spu_unwind_register): Change type of src
3284 parameter to ppu2spu_data *.
3285 (ppu2spu_sniffer): Use lambda function.
3286
19f3f25f
SM
32872018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
3288
3289 * record-full.c (record_full_target::insert_breakpoint): Remove
3290 "struct" keyword, add const.
3291
d0ac1c44
SM
32922018-06-19 Simon Marchi <simon.marchi@ericsson.com>
3293
3294 * common/common-defs.h (PACKAGE_NAME, PACKAGE_VERSION,
3295 PACKAGE_STRING, PACKAGE_TARNAME): Undefine.
3296 * configure.ac: Remove AC_PREREQ, add missing quoting.
3297 * gnulib/configure.ac: Modernize usage of
3298 AC_INIT/AM_INIT_AUTOMAKE. Remove AC_PREREQ.
3299 * gnulib/update-gnulib.sh (AUTOCONF_VERSION): Bump to 2.69.
3300 (AUTOMAKE_VERSION): Bump to 1.15.1.
3301 * configure: Re-generate.
3302 * config.in: Re-generate.
3303 * aclocal.m4: Re-generate.
3304 * gnulib/aclocal.m4: Re-generate.
3305 * gnulib/config.in: Re-generate.
3306 * gnulib/configure: Re-generate.
3307 * gnulib/import/Makefile.in: Re-generate.
3308
6ae50267
PA
33092018-06-19 Pedro Alves <palves@redhat.com>
3310
3311 * minsyms.c (msym_prefer_to_msym_type): New, factored out from ...
3312 (lookup_minimal_symbol_by_pc_section): ... here with
3313 gdb_assert_not_reached added.
3314
61b04dd0
PA
33152018-06-19 Pedro Alves <palves@redhat.com>
3316
3317 * inline-frame.c (stopped_by_user_bp_inline_frame): Replace PC
3318 parameter with a block parameter. Compare location's block symbol
3319 with the frame's block instead of addresses.
3320 (skip_inline_frames): Pass the current block instead of the
3321 frame's address. Break out as soon as we determine the frame
3322 should not be skipped.
3323
f709fabb
TT
33242018-06-18 Tom Tromey <tom@tromey.com>
3325
3326 * solib-aix.c (solib_aix_get_section_offsets): Return
3327 unique_xmalloc_ptr.
3328 (solib_aix_solib_create_inferior_hook): Update.
3329
668eb2f0
TT
33302018-06-18 Tom Tromey <tom@tromey.com>
3331
3332 * solib-darwin.c (darwin_current_sos): Use unique_xmalloc_ptr.
3333
309822ca
TT
33342018-06-18 Tom Tromey <tom@tromey.com>
3335
3336 * solib-frv.c (frv_relocate_main_executable): Use
3337 unique_xmalloc_ptr.
3338 * solib-dsbt.c (dsbt_relocate_main_executable): Use
3339 unique_xmalloc_ptr.
3340
06424eac
TT
33412018-06-18 Tom Tromey <tom@tromey.com>
3342
3343 * objfiles.h (inhibit_section_map_updates): Update.
3344 (resume_section_map_updates, resume_section_map_updates_cleanup):
3345 Remove.
3346 * solib-svr4.c (svr4_handle_solib_event): Update.
3347 * objfiles.c (inhibit_section_map_updates): Return
3348 scoped_restore_tmpl<int>.
3349 (resume_section_map_updates, resume_section_map_updates_cleanup):
3350 Remove.
3351
b4be9fad
TT
33522018-06-18 Tom Tromey <tom@tromey.com>
3353
3354 * valprint.h (read_string): Update.
3355 * valprint.c (read_string): Change type of "buffer".
3356 (val_print_string): Update.
3357 * python/py-value.c (valpy_string): Update.
3358 * language.h (struct language_defn) <la_get_string>: Change
3359 type of "buffer".
3360 (default_get_string, c_get_string): Update.
3361 * language.c (default_get_string): Change type of "buffer".
3362 * guile/scm-value.c (gdbscm_value_to_string): Update.
3363 * c-lang.c (c_get_string): Change type of "buffer".
3364
3f0dbd67
TT
33652018-06-18 Tom Tromey <tom@tromey.com>
3366
3367 * ser-mingw.c (struct pipe_state_destroyer): New.
3368 (pipe_state_up): New typedef.
3369 (cleanup_pipe_state): Remove.
3370 (pipe_windows_open): Use pipe_state_up. Don't release argv.
3371
69d340c6
TT
33722018-06-18 Tom Tromey <tom@tromey.com>
3373
3374 * rust-lang.h (rust_yyerror): Don't declare.
3375 * rust-lang.c (rust_language_defn): Update.
3376 * rust-exp.y (yyerror): Now static.
3377 * parse.c (parse_exp_in_context_1): Update.
3378 * p-lang.h (p_yyerror): Don't declare.
3379 * p-lang.c (p_language_defn): Update.
3380 * p-exp.y (yyerror): Now static.
3381 * opencl-lang.c (opencl_language_defn): Update.
3382 * objc-lang.c (objc_language_defn): Update.
3383 * m2-lang.h (m2_yyerror): Don't declare.
3384 * m2-lang.c (m2_language_defn): Update.
3385 * m2-exp.y (yyerror): Now static.
3386 * language.h (struct language_defn) <la_error>: Remove.
3387 * language.c (unk_lang_error): Remove.
3388 (unknown_language_defn, auto_language_defn): Remove.
3389 * go-lang.h (go_yyerror): Don't declare.
3390 * go-lang.c (go_language_defn): Update.
3391 * go-exp.y (yyerror): Now static.
3392 * f-lang.h (f_yyerror): Don't declare.
3393 * f-lang.c (f_language_defn): Update.
3394 * f-exp.y (yyerror): Now static.
3395 * d-lang.h (d_yyerror): Don't declare.
3396 * d-lang.c (d_language_defn): Update.
3397 * d-exp.y (yyerror): Now static.
3398 * c-lang.h (c_yyerror): Don't declare.
3399 * c-lang.c (c_language_defn, cplus_language_defn)
3400 (asm_language_defn, minimal_language_defn): Update.
3401 * c-exp.y (yyerror): Now static.
3402 * ada-lang.h (ada_yyerror): Don't declare.
3403 * ada-lang.c (ada_language_defn): Update.
3404 * ada-exp.y (yyerror): Now static.
3405
e9902bfc
AH
34062018-06-18 Alan Hayward <alan.hayward@arm.com>
3407
3408 * aarch64-linux-nat.c (fetch_sveregs_from_thread): New function.
3409 (store_sveregs_to_thread): Likewise.
3410 (aarch64_linux_fetch_inferior_registers): Check for SVE.
3411 (aarch64_linux_store_inferior_registers): Likewise.
3412 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs): New
3413 function.
3414 (aarch64_sve_regs_copy_to_regcache): Likewise.
3415 (aarch64_sve_regs_copy_from_regcache): Likewise.
3416 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_sveregs): New
3417 declaration.
3418 (aarch64_sve_regs_copy_to_regcache): Likewise.
3419 (aarch64_sve_regs_copy_from_regcache): Likewise.
3420 (sve_context): Structure from Linux headers.
3421 (SVE_SIG_ZREGS_SIZE): Define from Linux headers.
3422 (SVE_SIG_ZREG_SIZE): Likewise.
3423 (SVE_SIG_PREG_SIZE): Likewise.
3424 (SVE_SIG_FFR_SIZE): Likewise.
3425 (SVE_SIG_REGS_OFFSET): Likewise.
3426 (SVE_SIG_ZREGS_OFFSET): Likewise.
3427 (SVE_SIG_ZREG_OFFSET): Likewise.
3428 (SVE_SIG_ZREGS_SIZE): Likewise.
3429 (SVE_SIG_PREGS_OFFSET): Likewise.
3430 (SVE_SIG_PREG_OFFSET): Likewise.
3431 (SVE_SIG_PREGS_SIZE): Likewise.
3432 (SVE_SIG_FFR_OFFSET): Likewise.
3433 (SVE_SIG_REGS_SIZE): Likewise.
3434 (SVE_SIG_CONTEXT_SIZE): Likewise.
3435 (SVE_PT_REGS_MASK): Likewise.
3436 (SVE_PT_REGS_FPSIMD): Likewise.
3437 (SVE_PT_REGS_SVE): Likewise.
3438 (SVE_PT_VL_INHERIT): Likewise.
3439 (SVE_PT_VL_ONEXEC): Likewise.
3440 (SVE_PT_REGS_OFFSET): Likewise.
3441 (SVE_PT_FPSIMD_OFFSET): Likewise.
3442 (SVE_PT_FPSIMD_SIZE): Likewise.
3443 (SVE_PT_SVE_ZREG_SIZE): Likewise.
3444 (SVE_PT_SVE_PREG_SIZE): Likewise.
3445 (SVE_PT_SVE_FFR_SIZE): Likewise.
3446 (SVE_PT_SVE_FPSR_SIZE): Likewise.
3447 (SVE_PT_SVE_FPCR_SIZE): Likewise.
3448 (__SVE_SIG_TO_PT): Likewise.
3449 (SVE_PT_SVE_OFFSET): Likewise.
3450 (SVE_PT_SVE_ZREGS_OFFSET): Likewise.
3451 (SVE_PT_SVE_ZREG_OFFSET): Likewise.
3452 (SVE_PT_SVE_ZREGS_SIZE): Likewise.
3453 (SVE_PT_SVE_PREGS_OFFSET): Likewise.
3454 (SVE_PT_SVE_PREG_OFFSET): Likewise.
3455 (SVE_PT_SVE_PREGS_SIZE): Likewise.
3456 (SVE_PT_SVE_FFR_OFFSET): Likewise.
3457 (SVE_PT_SVE_FPSR_OFFSET): Likewise.
3458 (SVE_PT_SVE_FPCR_OFFSET): Likewise.
3459 (SVE_PT_SVE_SIZE): Likewise.
3460 (SVE_PT_SIZE): Likewise.
3461 (HAS_SVE_STATE): New define.
3462
17a1cc89
AH
34632018-06-18 Alan Hayward <alan.hayward@arm.com>
3464
3465 * nat/aarch64-sve-linux-sigcontext.h: New file.
3466 * nat/aarch64-sve-linux-ptrace.h (SVE_VQ_BYTES): Move to
3467 new files.
3468 (SVE_VQ_MIN): Likewise.
3469 (SVE_VQ_MAX): Likewise.
3470 (SVE_VL_MIN): Likewise.
3471 (SVE_VL_MAX): Likewise.
3472 (SVE_NUM_ZREGS): Likewise.
3473 (SVE_NUM_PREGS): Likewise.
3474 (sve_vl_valid): Likewise.
3475 (struct user_sve_header): Likewise.
3476
7010835a
AB
34772018-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
3478 Richard Bunt <Richard.Bunt@arm.com>
3479
3480 * linux-nat.c (stop_wait_callback): Don't discard SIGSTOP if it
3481 was requested by GDB.
3482
479b3ef4
TV
34832018-06-15 Tom de Vries <tdevries@suse.de>
3484
3485 * MAINTAINERS (Write After Approval): Add Tom de Vries.
3486
8199b8f4
SM
34872018-06-14 Simon Marchi <simon.marchi@polymtl.ca>
3488
3489 * gnulib/update-gnulib.sh: Print expected versions of
3490 autoconf/aclocal.
3491
55c748a1
SM
34922018-06-14 Simon Marchi <simon.marchi@ericsson.com>
3493
3494 * arch-utils.c (default_type_align): Use type_length_units.
3495 * gdbtypes.c (type_align): Use type_length_units.
3496
87a8eca7
PW
34972018-06-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3498
3499 * cli/cli-script.c (_initialize_cli_script): Fix online documentation
3500 of 'define' command.
3501
5d9a0608
TV
35022018-06-14 Tom de Vries <tdevries@suse.de>
3503
3504 PR cli/22573
3505 * infcmd.c (print_return_value_1): Use get_user_print_options instead of
3506 get_no_prettyformat_print_options.
3507
ab89b5a5
SM
35082018-06-13 Simon Marchi <simon.marchi@ericsson.com>
3509
3510 * sparc-nat.h: Include target.h.
3511 * sparc64-linux-nat.c (class sparc64_linux_nat_target)
3512 <fetch_registers>: Remove this argument in function call.
3513 <store_registers>: Remove this argument in function call, remove
3514 extra semicolon.
3515 <low_forget_process>: Call sparc64_forget_process instead of
3516 sparc_forget_process.
3517
62c808ae
RO
35182018-06-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3519
3520 * procfs.c (_initialize_procfs): Use add_inf_child_target.
3521 (procfs_target::make_corefile_notes): Adjust to new
3522 target_read_alloc return type.
3523
1840d81a
AB
35242018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
3525 Stephen Roberts <stephen.roberts@arm.com>
3526
3527 PR gdb/22882
3528 * infrun.c (fetch_inferior_event): If GDB is not proceeding then
3529 run INF_EXEC_COMPLETE handler, even when not calling normal_stop.
3530 Move should_notify_stop local into more inner scope.
3531
9516f85a
AB
35322018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
3533 Stephen Roberts <stephen.roberts@arm.com>
3534
3535 PR gdb/22882
3536 * infrun.c (resume_1): Add call to mark_async_event_handler.
3537
defd2172
AB
35382018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
3539
3540 * infrun.c (do_target_wait): Change old version of $pc printed.
3541
7b23e087
SM
35422018-06-11 Simon Marchi <simon.marchi@ericsson.com>
3543
3544 * dwarf2read.c (read_index_from_section): Rename to...
3545 (read_gdb_index_from_section): ... this, update all callers.
3546 (dwarf2_read_index): Rename to...
3547 (dwarf2_read_gdb_index): ... this, update all callers.
3548
69c67a0b
JDA
35492018-06-11 John David Anglin <danglin@gcc.gnu.org>
3550
3551 * gdb/hppa-linux-nat.c
3552 (hppa_linux_nat_target::fetch_inferior_registers): Rename to
3553 hppa_linux_nat_target::fetch_registers.
3554
65d4cada
AH
35552018-06-11 Alan Hayward <alan.hayward@arm.com>
3556
3557 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Add mappings.
3558 * aarch64-tdep.h (AARCH64_DWARF_SVE_VG): Add define.
3559 (AARCH64_DWARF_SVE_FFR): Likewise.
3560 (AARCH64_DWARF_SVE_P0): Likewise.
3561 (AARCH64_DWARF_SVE_Z0): Likewise.
3562
f868386e
AH
35632018-06-11 Alan Hayward <alan.hayward@arm.com>
3564
3565 * common/common-regcache.h (raw_compare): New function.
3566 * regcache.c (regcache::raw_compare): Likewise.
3567 * regcache.h (regcache::raw_compare): New declaration.
3568
9c861883
AH
35692018-06-11 Alan Hayward <alan.hayward@arm.com>
3570
3571 * common/common-regcache.h (reg_buffer_common): New structure.
3572 * regcache.c (reg_buffer::invalidate): Move from detached_regcache.
3573 (reg_buffer::raw_supply): Likewise.
3574 (reg_buffer::raw_supply_integer): Likewise.
3575 (reg_buffer::raw_supply_zeroed): Likewise.
3576 (reg_buffer::raw_collect): Likewise.
3577 (reg_buffer::raw_collect_integer): Likewise.
3578 * regcache.h (reg_buffer::invalidate): Move from detached_regcache.
3579 (reg_buffer::raw_supply): Likewise.
3580 (reg_buffer::raw_supply_integer): Likewise.
3581 (reg_buffer::raw_supply_zeroed): Likewise.
3582 (reg_buffer::raw_collect): Likewise.
3583 (reg_buffer::raw_collect_integer): Likewise.
3584
953edf2b
TT
35852018-06-10 Tom Tromey <tom@tromey.com>
3586
3587 * remote.c (stop_reply_p): Remove typedef. Don't declare queue.
3588 (class remote_state) <stop_reply_queue>: Now std::vector.
3589 (remote_state::~remote_state)
3590 (remote_target::stop_reply_queue_length): Update.
3591 (struct queue_iter_param, remove_child_of_pending_fork)
3592 (struct check_pending_event_prevents_wildcard_vcont_callback_data)
3593 (check_pending_event_prevents_wildcard_vcont_callback)
3594 (remove_stop_reply_for_inferior)
3595 (remove_stop_reply_of_remote_state)
3596 (remote_notif_remove_once_on_match)
3597 (stop_reply_match_ptid_and_ws)
3598 (remote_kill_child_of_pending_fork): Remove.
3599 (remote_target::remove_new_fork_children)
3600 (remote_target::check_pending_events_prevent_wildcard_vcont)
3601 (remote_target::discard_pending_stop_replies)
3602 (remote_target::discard_pending_stop_replies_in_queue)
3603 (remote_target::remote_notif_remove_queued_reply)
3604 (remote_target::queued_stop_reply)
3605 (remote_target::push_stop_reply, remote_target::peek_stop_reply)
3606 (remote_target::wait, remote_target::kill_new_fork_children)
3607 (remote_target::async): Update.
3608
1ddbba9d
TT
36092018-06-10 Tom Tromey <tom@tromey.com>
3610
3611 * record-full.c (record_full_arch_list_cleanups): Remove.
3612 (record_full_message): Use try/catch.
3613 (record_full_wait_cleanups): Remove.
3614 (record_full_wait_1): Use try/catch.
3615 (record_full_restore): Likewise.
3616
219605fd
TT
36172018-06-10 Tom Tromey <tom@tromey.com>
3618
3619 * record-full.c (record_full_breakpoint_p): Remove typedef. Don't
3620 declare VEC. Add constructor.
3621 <in_target_beneath>: Now bool.
3622 (record_full_breakpoints): Now a std::vector, static.
3623 (record_full_sync_record_breakpoints)
3624 (record_full_init_record_breakpoints)
3625 (record_full_target::insert_breakpoint)
3626 (record_full_target::remove_breakpoint): Update. Don't use XNEW.
3627
71b73764
SM
36282018-06-10 Simon Marchi <simon.marchi@polymtl.ca>
3629
3630 * dwarf2read.c (process_cu_includes): Remove struct keyword.
3631 * serial.c (serial_interface_lookup): Remove struct keyword.
3632
4360561f
TT
36332018-06-10 Tom Tromey <tom@tromey.com>
3634
3635 * procfs.c (procfs_target::xfer_partial): Use "beneath" as a
3636 method.
3637 * nto-procfs.c (nto_procfs_target::xfer_partial): Use "beneath" as
3638 a method.
3639 * go32-nat.c (go32_nat_target::xfer_partial): Use "beneath" as a
3640 method.
3641 * arm-linux-nat.c (arm_linux_nat_target::read_description): Use
3642 "beneath" as a method.
3643 * arm-fbsd-nat.c (arm_fbsd_nat_target::read_description):
3644 Use "beneath" as a method.
3645
d14b92bf
TT
36462018-06-10 Tom Tromey <tom@tromey.com>
3647
3648 * tracefile.c (struct trace_file_writer_deleter): New.
3649 <operator()>: Rename from trace_file_writer_xfree.
3650 (trace_file_writer_up): New typedef.
3651 (tsave_command, trace_save_tfile, trace_save_ctf): Update.
3652
835dcf92
SM
36532018-06-09 Simon Marchi <simon.marchi@ericsson.com>
3654
3655 * regcache.h (reg_buffer) <~reg_buffer>: Use default destructor.
3656 <m_registers, m_register_status>: Change type to
3657 std::unique_ptr.
3658 * regcache.c (reg_buffer::reg_buffer): Use new instead of
3659 XCNEWVEC.
3660
aac0d564
SM
36612018-06-09 Simon Marchi <simon.marchi@ericsson.com>
3662
3663 * common/common-regcache.h (enum register_status): Add
3664 underlying type "signed char".
3665 * regcache.h (reg_buffer) <m_register_status>: Change type to
3666 register_status *.
3667 * regcache.c (reg_buffer::reg_buffer): Alocate arrays of
3668 register_status instead of signed char.
3669 (reg_buffer::save): Use REG_UNKNOWN instead of 0.
3670 (reg_buffer::get_register_status): Remove cast.
3671 (readable_regcache::raw_read): Remove cast.
3672 (readable_regcache::cooked_read): Remove cast.
3673
77ad7394
TT
36742018-06-09 Tom Tromey <tom@tromey.com>
3675
3676 * source.c (reverse_search_command, forward_search_command): Use
3677 scoped_fd.
3678
191cca63
TT
36792018-06-09 Tom Tromey <tom@tromey.com>
3680
3681 * serial.c (serial_ops_p): Remove typedef. Don't declare VEC.
3682 (serial_ops_list): Now static, std::vector.
3683 (serial_interface_lookup, serial_add_interface): Update.
3684
c5d0225d
TT
36852018-06-09 Tom Tromey <tom@tromey.com>
3686
3687 * dwarf2read.c (process_cu_includes): Update.
3688 (process_full_comp_unit): Update.
3689 * dwarf2read.h (struct dwarf2_per_objfile) <just_read_cus>: Now a
3690 std::vector.
3691
aeab5128
PK
36922018-06-08 Paul Koning <paul_koning@dell.com>
3693
3694 PR gdb/23252
3695
3696 * python/python.c (do_start_initialization):
3697 Avoid call to internal Python API.
3698 (init__gdb_module): New function.
3699
5045b3d7
GB
37002018-06-08 Gary Benson <gbenson@redhat.com>
3701
3702 * linux-thread-db.c (valprint.h): New include.
3703 (struct check_thread_db_info): New structure.
3704 (check_thread_db_on_load, tdb_testinfo): New static globals.
3705 (check_thread_db, check_thread_db_callback): New functions.
3706 (try_thread_db_load_1): Run integrity checks if requested.
3707 (maintenance_check_libthread_db): New function.
3708 (_initialize_thread_db): Register "maint check libthread-db"
3709 and "maint set/show check-libthread-db".
3710 * NEWS: Mention the above new commands.
3711
2f4f025f
TT
37122018-06-08 Tom Tromey <tom@tromey.com>
3713
3714 * windows-nat.c (windows_nat_target::xfer_partial): "beneath" is
3715 now a method.
3716
343b0027
TT
37172018-06-08 Tom Tromey <tom@tromey.com>
3718
3719 * btrace.c (parse_xml_raw): Use gdb::unique_xmalloc_ptr.
3720
8dcc53b3
TT
37212018-06-08 Tom Tromey <tom@tromey.com>
3722
3723 * common/btrace-common.h (struct btrace_data): Add constructor,
3724 destructor, move assignment operator.
3725 <empty, clear, fini>: New methods.
3726 <format>: Initialize.
3727 (btrace_data_init, btrace_data_fini, btrace_data_clear)
3728 (btrace_data_empty): Don't declare.
3729 * common/btrace-common.c (btrace_data_init): Remove.
3730 (btrace_data::fini): Rename from btrace_data_fini.
3731 (btrace_data::empty): Rename from btrace_data_empty.
3732 (btrace_data::clear): Rename from btrace_data_clear. Return
3733 bool.
3734 * btrace.h (make_cleanup_btrace_data): Don't declare.
3735 * btrace.c (btrace_add_pc, btrace_stitch_trace, btrace_clear)
3736 (parse_xml_btrace): Update.
3737 (do_btrace_data_cleanup, make_cleanup_btrace_data): Remove.
3738 (maint_btrace_clear_packet_history_cmd): Update.
3739
a1740ee1
PA
37402018-06-07 Pedro Alves <palves@redhat.com>
3741
3742 * target.h (target_ops) <beneath>: Now a method. All references
3743 updated.
3744 (class target_stack): New.
3745 * target.c (g_target_stack): New.
3746 (g_current_top_target): Delete.
3747 (current_top_target): Get the top target out of g_target_stack.
3748 (target_stack::push, target_stack::unpush): New.
3749 (push_target, unpush_target): Reimplement.
3750 (target_is_pushed): Reimplement in terms of g_target_stack.
3751 (target_ops::beneath, target_stack::find_beneath): New.
3752
d6ca69cd
PA
37532018-06-07 Pedro Alves <palves@redhat.com>
3754
3755 * target.h (find_target_beneath): Delete declaration.
3756 * target.c (find_target_beneath): Delete definition.
3757 * aix-thread.c: All callers of find_target_beneath adjusted to
3758 call target_ops::beneath instead.
3759 * bsd-uthread.c: Likewise.
3760 * linux-thread-db.c: Likewise.
3761 * ravenscar-thread.c: Likewise.
3762 * sol-thread.c: Likewise.
3763 * spu-multiarch.c: Likewise.
3764
b6a8c27b
PA
37652018-06-07 Pedro Alves <palves@redhat.com>
3766
3767 * target.h (target_ops) <beneath>: Now a method. All references
3768 updated.
3769 (target_ops) <m_beneath>: New.
3770 * target.c (target_ops::beneath): New.
3771 * corelow.c: Adjust all references to target_ops::beneath.
3772 * linux-thread-db.c: Likewise.
3773 * make-target-delegates: Likewise.
3774 * record-btrace.c: Likewise.
3775 * record-full.c: Likewise.
3776 * remote.c: Likewise.
3777 * target.c: Likewise.
3778 * target-delegates.c: Regenerate.
3779
8b88a78e
PA
37802018-06-07 Pedro Alves <palves@redhat.com>
3781
3782 * target.h (target_stack): Delete.
3783 (current_top_target): Declare function.
3784 * target.c (target_stack): Delete.
3785 (g_current_top_target): New.
3786 (current_top_target): New function.
3787 * auxv.c: Use current_top_target instead of target_stack
3788 throughout.
3789 * avr-tdep.c: Likewise.
3790 * breakpoint.c: Likewise.
3791 * corefile.c: Likewise.
3792 * elfread.c: Likewise.
3793 * eval.c: Likewise.
3794 * exceptions.c: Likewise.
3795 * frame.c: Likewise.
3796 * gdbarch-selftests.c: Likewise.
3797 * gnu-v3-abi.c: Likewise.
3798 * ia64-tdep.c: Likewise.
3799 * ia64-vms-tdep.c: Likewise.
3800 * infcall.c: Likewise.
3801 * infcmd.c: Likewise.
3802 * infrun.c: Likewise.
3803 * linespec.c: Likewise.
3804 * linux-tdep.c: Likewise.
3805 * minsyms.c: Likewise.
3806 * ppc-linux-nat.c: Likewise.
3807 * ppc-linux-tdep.c: Likewise.
3808 * procfs.c: Likewise.
3809 * regcache.c: Likewise.
3810 * remote.c: Likewise.
3811 * rs6000-tdep.c: Likewise.
3812 * s390-linux-nat.c: Likewise.
3813 * s390-tdep.c: Likewise.
3814 * solib-aix.c: Likewise.
3815 * solib-darwin.c: Likewise.
3816 * solib-dsbt.c: Likewise.
3817 * solib-spu.c: Likewise.
3818 * solib-svr4.c: Likewise.
3819 * solib-target.c: Likewise.
3820 * sparc-tdep.c: Likewise.
3821 * sparc64-tdep.c: Likewise.
3822 * spu-tdep.c: Likewise.
3823 * symfile.c: Likewise.
3824 * symtab.c: Likewise.
3825 * target-descriptions.c: Likewise.
3826 * target-memory.c: Likewise.
3827 * target.c: Likewise.
3828 * target.h: Likewise.
3829 * tracefile-tfile.c: Likewise.
3830 * tracepoint.c: Likewise.
3831 * valops.c: Likewise.
3832 * valprint.c: Likewise.
3833 * value.c: Likewise.
3834 * windows-tdep.c: Likewise.
3835 * mi/mi-main.c: Likewise.
3836
c7110220
TT
38372018-06-07 Tom Tromey <tom@tromey.com>
3838
3839 * valprint.h (build_address_symbolic): Declare.
3840 * printcmd.c (print_address_symbolic): Update.
3841 (build_address_symbolic): Change "name" and "filename" to
3842 std::string.
3843 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3844 Update.
3845 * defs.h (build_address_symbolic): Remove declaration.
3846
63bad7b6
AH
38472018-06-07 Alan Hayward <alan.hayward@arm.com>
3848
3849 * aarch64-tdep.c (AARCH64_SVE_V0_REGNUM): Add define.
3850 (aarch64_vnv_type): Add function.
3851 (aarch64_pseudo_register_name): Add V regs for SVE.
3852 (aarch64_pseudo_register_type): Likewise.
3853 (aarch64_pseudo_register_reggroup_p): Likewise.
3854 (aarch64_pseudo_read_value_2): Use V0 offset for SVE
3855 (aarch64_pseudo_read_value): Add V regs for SVE.
3856 (aarch64_pseudo_write_2): Use V0 offset for SVE
3857 (aarch64_pseudo_write): Add V regs for SVE.
3858 * aarch64-tdep.h (struct gdbarch_tdep): Add vnv_type.
3859
13e3c608
SDJ
38602018-06-06 Sergio Durigan Junior <sergiodj@redhat.com>
3861
3862 * arch/aarch64.h (sve_vq_from_vl): Guard with #ifndef.
3863 (sve_vl_from_vq): Likewise.
3864
c61b06a1
TT
38652018-06-05 Tom Tromey <tom@tromey.com>
3866
3867 * cli/cli-cmds.c (show_version): Update.
3868 * top.c (print_gdb_version): Add "interactive" parameter.
3869 Update.
3870 * main.c (captured_main_1): Update.
3871 * top.h (print_gdb_version): Add "interactive" parameter and a
3872 comment.
3873
115f7325
DM
38742018-06-05 David Malcolm <dmalcolm@redhat.com>
3875
3876 * common/enum-flags.h: Add trailing semicolon to example in
3877 comment.
3878
eb6af809
TT
38792018-06-05 Tom Tromey <tom@tromey.com>
3880
3881 PR cli/12326:
3882 * NEWS: Add entry about pager.
3883 * utils.c (pagination_disabled_for_command): New global.
3884 (prompt_for_continue): Allow "c" response to prompt.
3885 (reinitialize_more_filter): Clear
3886 pagination_disabled_for_command.
3887 (fputs_maybe_filtered): Check pagination_disabled_for_command.
3888
54d343a2
TT
38892018-06-04 Tom Tromey <tom@tromey.com>
3890
3891 * ada-lang.h (ada_lookup_symbol_list): Update.
3892 * ada-lang.c (resolve_subexp): Update.
3893 (symbols_are_identical_enums): Change type of syms. Remove nsyms
3894 parameter.
3895 (remove_extra_symbols, remove_irrelevant_renamings): Likewise.
3896 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Change
3897 results parameter to std::vector.
3898 (ada_iterate_over_symbols, ada_lookup_symbol, get_var_value):
3899 Update.
3900 * ada-exp.y (block_lookup): Update.
3901 (select_possible_type_sym): Change type of syms. Remove nsyms
3902 parameter.
3903 (write_var_or_type, write_name_assoc): Update.
3904
178d6a63
JB
39052018-06-04 Joel Brobecker <brobecker@adacore.com>
3906
3907 * windows-nat.c (windows_nat_target::xfer_partial): Return
3908 TARGET_XFER_E_IO if we need to delegate to the target beneath
3909 but BENEATH is NULL.
3910
baf00c2d
SM
39112018-06-04 Simon Marchi <simon.marchi@ericsson.com>
3912
3913 * Makefile.in (config.status): Add configure.nat as a
3914 dependency.
3915
214b073c
TT
39162018-06-04 Tom Tromey <tom@tromey.com>
3917
3918 * cp-name-parser.y (cpname_state): Add method declarations.
3919 (HANDLE_QUAL): Update.
3920 (cpname_state::d_grab, cpname_state::fill_comp)
3921 (cpname_state::make_operator, cpname_state::make_dtor)
3922 (cpname_state::make_builtin_type, cpname_state::make_name)
3923 (cpname_state::d_qualify, cpname_state::d_int_type)
3924 (cpname_state::d_unary, cpname_state::d_binary): Now methods.
3925 (%union): Move earlier.
3926
62b74cb8
AH
39272018-06-04 Alan Hayward <alan.hayward@arm.com>
3928
3929 * elfread.c (elf_symfile_segments): Use ELF_SECTION_IN_SEGMENT.
3930
3c5cd5c3
AH
39312018-06-04 Alan Hayward <alan.hayward@arm.com>
3932
3933 * aarch64-tdep.c (aarch64_pseudo_read_value_1): New helper func.
3934 (aarch64_pseudo_write_1): Likewise.
3935 (aarch64_pseudo_read_value): Use helper.
3936 (aarch64_pseudo_write): Likewise.
3937
59f413d5
PA
39382018-06-04 Pedro Alves <palves@redhat.com>
3939
3940 * darwin-nat.c (darwin_ops): Delete.
3941 (darwin_attach_pid): Use get_native_target.
3942
1332a140
AH
39432018-06-04 Alan Hayward <alan.hayward@arm.com>
3944
3945 * aarch64-tdep.c (aarch64_get_tdesc_vq): Use uint64_t for VQ.
3946 * aarch64-tdep.h (struct gdbarch_tdep): Likewise.
3947
ba2d2bb2
AH
39482018-06-04 Alan Hayward <alan.hayward@arm.com>
3949
3950 * aarch64-linux-nat.c (aarch64_linux_read_description): Support SVE.
3951 * aarch64-tdep.c (aarch64_get_tdesc_vq): New function.
3952 (aarch64_gdbarch_init): Check for SVE.
3953 * aarch64-tdep.h (gdbarch_tdep::has_sve): New function.
3954
39552018-06-04 Alan Hayward <alan.hayward@arm.com>
39bfb937
AH
3956
3957 * aarch64-tdep.c (aarch64_read_description): Use uint64_t for VQ.
3958 * aarch64-tdep.h (aarch64_read_description): Likewise.
3959 * arch/aarch64.c (aarch64_create_target_description): Likewise.
3960 * arch/aarch64.h (aarch64_create_target_description): Likewise.
3961 * features/aarch64-sve.c (create_feature_aarch64_sve): Likewise.
3962 * nat/aarch64-sve-linux-ptrace.c(aarch64_sve_get_vq): Likewise.
3963 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_vq): Likewise.
3964
41c60b4b
SM
39652018-06-02 Simon Marchi <simon.marchi@ericsson.com>
3966
3967 * value.c (value_fetch_lazy_bitfield): New.
3968 (value_fetch_lazy_memory): New.
3969 (value_fetch_lazy_register): New.
3970 (value_fetch_lazy): Factor out to smaller functions.
3971
7b640f72
TT
39722018-06-01 Tom Tromey <tom@tromey.com>
3973
3974 * cp-name-parser.y (backslashable, represented): Now const.
3975
98e69eb3
TT
39762018-06-01 Tom Tromey <tom@tromey.com>
3977
3978 * cp-name-parser.y: Include parser-defs.h.
3979 (parser_fprintf): Remove declaration.
3980
49265499
TT
39812018-06-01 Tom Tromey <tom@tromey.com>
3982
3983 * cp-name-parser.y: Use %pure-parser, %lex-param, and
3984 %parse-param.
3985 (lexptr, prev_lexptr, error_lexptr, global_errmsg, demangle_info)
3986 (global_result): Remove globals.
3987 (struct cpname_state): New.
3988 (yyparse): Don't declare.
3989 (yylex, yyerror): Move declarations after %union.
3990 (d_grab, fill_comp, make_operator, make_dtor, make_builtin_type)
3991 (make_name): Add state parameter.
3992 Update all callers.
3993 (d_qualify, d_int_type, d_unary, d_binary, parse_number) Add state
3994 parameter.
3995 (HANDLE_QUAL, HANDLE_SPECIAL, HANDLE_TOKEN2, HANDLE_TOKEN3):
3996 Update.
3997 (yylex): Add lvalp, state parameters.
3998 (yyerror): Add state parameter.
3999 (cp_demangled_name_to_comp): Update.
4000
55b6c984
TT
40012018-06-01 Tom Tromey <tom@tromey.com>
4002
4003 * cp-name-parser.y (parser_fprintf): Declare.
4004 (GDB_YY_REMAP_PREFIX): Define.
4005 Include yy-remap.h. Don't redefine yy* identifiers.
4006
3513a6bb
TT
40072018-06-01 Tom Tromey <tom@tromey.com>
4008
4009 * python/py-type.c (typy_legacy_template_argument): Update.
4010 * cp-support.h (cp_demangled_name_to_comp): Update.
4011 * cp-name-parser.y (cp_demangled_name_to_comp): Change errmsg
4012 parameter to be a "std::string *".
4013 (main): Update.
4014
e9cb46ab
L
40152018-06-01 H.J. Lu <hongjiu.lu@intel.com>
4016
4017 * ada-lex.l: Include "diagnostics.h" instead of
4018 "common/diagnostics.h".
4019 * unittests/environ-selftests.c: Likewise.
4020 * common/diagnostics.h: Moved to ../include.
4021
8e817061
JB
40222018-06-01 Joel Brobecker <brobecker@adacore.com>
4023
4024 * breakpoint.c (breakpoint_re_set): Temporarily force language_mode
4025 to language_mode_manual while calling breakpoint_re_set_one.
4026
a737d952
TT
40272018-06-01 Tom Tromey <tom@tromey.com>
4028
4029 * valops.c (value_cast_structs, destructor_name_p): Update.
4030 * symtab.c (gdb_mangle_name): Update.
4031 * stabsread.c (define_symbol, read_cpp_abbrev, read_baseclasses):
4032 Update.
4033 * p-valprint.c (pascal_object_is_vtbl_ptr_type)
4034 (pascal_object_print_value_fields, pascal_object_print_value):
4035 Update.
4036 * p-typeprint.c (pascal_type_print_derivation_info): Update.
4037 * linespec.c (find_methods): Update.
4038 * gdbtypes.h (type_name_no_tag): Remove.
4039 (type_name_or_error): Rename from type_name_no_tag_or_error.
4040 * gdbtypes.c (type_name_no_tag): Remove.
4041 (type_name_or_error): Rename from type_name_no_tag_or_error.
4042 (lookup_struct_elt_type, check_typedef): Update.
4043 * expprint.c (print_subexp_standard): Update.
4044 * dwarf2read.c (dwarf2_add_field, load_partial_dies): Update.
4045 * d-namespace.c (d_lookup_nested_symbol): Update.
4046 * cp-valprint.c (cp_is_vtbl_ptr_type, cp_print_value_fields)
4047 (cp_print_class_member): Update.
4048 * cp-namespace.c (cp_lookup_nested_symbol): Update.
4049 * completer.c (add_struct_fields): Update.
4050 * c-typeprint.c (cp_type_print_derivation_info)
4051 (c_type_print_varspec_prefix, c_type_print_base_struct_union):
4052 Update.
4053 * ada-lang.c (parse_old_style_renaming, xget_renaming_scope)
4054 (ada_prefer_type, ada_is_exception_sym): Update.
4055
e86ca25f
TT
40562018-06-01 Tom Tromey <tom@tromey.com>
4057
4058 * valops.c (enum_constant_from_type, value_namespace_elt)
4059 (value_maybe_namespace_elt): Update.
4060 * valarith.c (find_size_for_pointer_math): Update.
4061 * target-descriptions.c (make_gdb_type): Update.
4062 * symmisc.c (print_symbol): Update.
4063 * stabsread.c (define_symbol, read_type)
4064 (complain_about_struct_wipeout, add_undefined_type)
4065 (cleanup_undefined_types_1): Update.
4066 * rust-lang.c (rust_tuple_type_p, rust_slice_type_p)
4067 (rust_range_type_p, val_print_struct, rust_print_struct_def)
4068 (rust_internal_print_type, rust_composite_type)
4069 (rust_evaluate_funcall, rust_evaluate_subexp)
4070 (rust_inclusive_range_type_p): Update.
4071 * python/py-type.c (typy_get_tag): Update.
4072 * p-typeprint.c (pascal_type_print_base): Update.
4073 * mdebugread.c (parse_symbol, parse_type): Update.
4074 * m2-typeprint.c (m2_long_set, m2_record_fields, m2_enum):
4075 Update.
4076 * guile/scm-type.c (gdbscm_type_tag): Update.
4077 * go-lang.c (sixg_string_p): Update.
4078 * gnu-v3-abi.c (build_gdb_vtable_type, build_std_type_info_type):
4079 Update.
4080 * gdbtypes.h (struct main_type) <tag_name>: Remove.
4081 (TYPE_TAG_NAME): Remove.
4082 * gdbtypes.c (type_name_no_tag): Simplify.
4083 (check_typedef, check_types_equal, recursive_dump_type)
4084 (copy_type_recursive, arch_composite_type): Update.
4085 * f-typeprint.c (f_type_print_base): Update. Print "Type" prefix
4086 in summary mode when needed.
4087 * eval.c (evaluate_funcall): Update.
4088 * dwarf2read.c (fixup_go_packaging, read_structure_type)
4089 (process_structure_scope, read_enumeration_type)
4090 (read_namespace_type, read_module_type, determine_prefix): Update.
4091 * cp-support.c (inspect_type): Update.
4092 * coffread.c (process_coff_symbol, decode_base_type): Update.
4093 * c-varobj.c (c_is_path_expr_parent): Update.
4094 * c-typeprint.c (c_type_print_base_struct_union): Update.
4095 (c_type_print_base_1): Update. Print struct/class/union/enum in
4096 summary when using C language.
4097 * ax-gdb.c (gen_struct_ref, gen_namespace_elt)
4098 (gen_maybe_namespace_elt): Update.
4099 * ada-lang.c (ada_type_name): Simplify.
4100 (empty_record, ada_template_to_fixed_record_type_1)
4101 (template_to_static_fixed_type)
4102 (to_record_with_fixed_variant_part, ada_check_typedef): Update.
4103
c1ec8cea
TT
41042018-06-01 Tom Tromey <tom@tromey.com>
4105
4106 * dwarf2read.c (dwarf2_compute_name): Pass CU's language to
4107 c_print_type.
4108 * c-typeprint.c (c_print_type_1): Add "language" parameter.
4109 (c_print_type): Update.
4110 (c_print_type): New overload.
4111 (c_type_print_varspec_prefix, c_type_print_args)
4112 (c_type_print_varspec_suffix, c_print_type_no_offsets)
4113 (c_type_print_base_struct_union, c_type_print_base_1)
4114 (cp_type_print_method_args): Add "language" parameter.
4115 (c_type_print_base): Update.
4116 * c-lang.h (c_print_type): Add new overload.
4117
bc8453a7
TT
41182018-06-01 Tom Tromey <tom@tromey.com>
4119
4120 * typeprint.h (c_type_print_varspec_suffix): Don't declare.
4121 * c-typeprint.c (c_type_print_varspec_suffix): Now static.
4122
739e8682
AH
41232018-06-01 Alan Hayward <alan.hayward@arm.com>
4124
4125 * aarch64-tdep.c (aarch64_sve_register_names): New const
4126 var.
4127 * arch/aarch64.h (enum aarch64_regnum): Add SVE entries.
4128 (AARCH64_SVE_Z_REGS_NUM): New define.
4129 (AARCH64_SVE_P_REGS_NUM): Likewise.
4130 (AARCH64_SVE_NUM_REGS): Likewise.
4131
8a60efe7
UB
41322018-05-31 Uros Bizjak <ubizjak@gmail.com>
4133
4134 * nat/linux-ptrace.h [__alpha__]
4135 (GDB_ARCH_IS_TRAP_BRKPT, GDB_ARCH_IS_TRAP_HWBKPT): Remove
4136 definitions.
4137
4b2dfa9d
MR
41382018-05-31 Maciej W. Rozycki <macro@mips.com>
4139
4140 * arch-utils.c (gdbarch_info_fill): Set `default_byte_order' to
4141 the endianness selected.
4142 * NEWS: Document `set endian auto' mode operation update.
4143
122394f1
AH
41442018-05-31 Alan Hayward <alan.hayward@arm.com>
4145
4146 * Makefile.in: Add new header.
4147 * gdb/arch/aarch64.h (sve_vg_from_vl): New macro.
4148 (sve_vl_from_vg): Likewise.
4149 (sve_vq_from_vl): Likewise.
4150 (sve_vl_from_vq): Likewise.
4151 (sve_vq_from_vg): Likewise.
4152 (sve_vg_from_vq): Likewise.
4153 * configure.nat: Add new c file.
4154 * nat/aarch64-sve-linux-ptrace.c: New file.
4155 * nat/aarch64-sve-linux-ptrace.h: New file.
4156
95228a0d
AH
41572018-05-31 Alan Hayward <alan.hayward@arm.com>
4158
4159 * aarch64-linux-nat.c (aarch64_linux_read_description):
4160 Add parmeter zero.
4161 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
4162 Likewise.
4163 * aarch64-tdep.c (tdesc_aarch64_list): Add.
4164 (aarch64_read_description): Use VQ to index tdesc_aarch64_list.
4165 (aarch64_gdbarch_init): Add parmeter zero.
4166 * aarch64-tdep.h (aarch64_read_description): Add VQ parmeter.
4167 * arch/aarch64.c (aarch64_create_target_description): Check VQ.
4168 * arch/aarch64.h (aarch64_create_target_description): Add VQ.
4169 parmeter.
4170 * doc/gdb.texinfo: Describe SVE feature
4171 * features/aarch64-sve.c: New file.
4172
5969f0db
OJ
41732018-05-31 Omair Javaid <omair.javaid@linaro.org>
4174
4175 PR gdb/23210
4176 * gdbarch.sh (significant_addr_bit): Default to zero when
4177 not set by target architecture.
4178 * gdbarch.c: Re-generated.
4179 * utils.c (address_significant): Update.
4180
61367c61
JB
41812018-05-30 Joel Brobecker <brobecker@adacore.com>
4182
4183 * stack.c (func_command): Remove trailing newline in call to error.
4184
34a79281
SM
41852018-05-30 Simon Marchi <simon.marchi@ericsson.com>
4186
4187 * regcache.h (regcache_raw_collect): Remove, update callers to
4188 use regcache::raw_collect.
4189 * regcache.c (regcache_raw_collect): Remove.
4190
73e1c03f
SM
41912018-05-30 Simon Marchi <simon.marchi@ericsson.com>
4192
4193 * regcache.h (regcache_raw_supply): Remove, update callers to
4194 use detached_regcache::raw_supply.
4195 * regcache.c (regcache_raw_supply): Remove.
4196
e4c4a59b
SM
41972018-05-30 Simon Marchi <simon.marchi@ericsson.com>
4198
4199 * regcache.h (regcache_cooked_write_part): Remove, update
4200 callers to use regcache::cooked_write_part.
4201 * regcache.c (regcache_cooked_write_part): Remove.
4202
73bb0000
SM
42032018-05-30 Simon Marchi <simon.marchi@ericsson.com>
4204
4205 * regcache.h (regcache_cooked_read_part): Remove, update callers
4206 to use readable_regcache::cooked_read_part.
4207 * regcache.c (regcache_cooked_read_part): Remove.
4208
46a45e9d
SM
42092018-05-30 Simon Marchi <simon.marchi@ericsson.com>
4210
4211 * regcache.h (regcache_cooked_read_value): Remove, update
4212 callers to use readable_regcache::cooked_read_value.
4213 * regcache.c (regcache_cooked_read_value): Remove.
4214
b66f5587
SM
42152018-05-30 Simon Marchi <simon.marchi@ericsson.com>
4216
4217 * regcache.h (regcache_cooked_write): Remove, update callers to
4218 use regcache::cooked_write.
4219 * regcache.c (regcache_cooked_write): Remove.
4220
6aa7d724
SM
42212018-05-30 Simon Marchi <simon.marchi@ericsson.com>
4222
4223 * regcache.h (regcache_invalidate): Remove, update callers to
4224 use detached_regcache::invalidate instead.
4225 * regcache.c (regcache_invalidate): Remove.
4226
4f0420fd
SM
42272018-05-30 Simon Marchi <simon.marchi@ericsson.com>
4228
4229 * regcache.h (regcache_raw_write_part): Remove, update callers
4230 to use regcache::raw_write_part instead.
4231 * regcache.c (regcache_raw_write_part): Remove.
4232
502fe83e
SM
42332018-05-30 Simon Marchi <simon.marchi@ericsson.com>
4234
4235 * regcache.h (regcache_raw_read_part): Remove, update callers to
4236 use readable_regcache::raw_read_part instead.
4237 * regcache.c (regcache_raw_read_part): Remove.
4238
dca08e1f
SM
42392018-05-30 Simon Marchi <simon.marchi@ericsson.com>
4240
4241 * regcache.h (regcache_cooked_read): Remove, update callers to
4242 use readable_regcache::cooked_read instead.
4243 * regcache.c (regcache_cooked_read): Remove.
4244
10eaee5f
SM
42452018-05-30 Simon Marchi <simon.marchi@ericsson.com>
4246
4247 * regcache.h (regcache_raw_write): Remove, update callers to use
4248 regcache::raw_write instead.
4249 * regcache.c (regcache_raw_write): Remove.
4250
0b883586
SM
42512018-05-30 Simon Marchi <simon.marchi@ericsson.com>
4252
4253 * regcache.h (regcache_raw_read): Remove, update callers to use
4254 readable_regcache::raw_read instead.
4255 * regcache.c (regcache_raw_read): Remove.
4256
0b47d985
SM
42572018-05-30 Simon Marchi <simon.marchi@ericsson.com>
4258
4259 * regcache.h (regcache_raw_update): Remove, update callers to
4260 use readable_regcache::raw_update instead.
4261 * regcache.c (regcache_raw_update): Remove.
4262
0ec9f114
SM
42632018-05-30 Simon Marchi <simon.marchi@ericsson.com>
4264
4265 * regcache.h (regcache_register_status): Remove, update callers
4266 to use reg_buffer::get_register_status directly instead.
4267 * regcache.c (regcache_register_status): Remove.
4268
222312d3
SM
42692018-05-30 Simon Marchi <simon.marchi@ericsson.com>
4270
4271 * regcache.h (regcache_get_ptid): Remove, update all callers to
4272 call regcache::ptid instead.
4273 * regcache.c (regcache_get_ptid): Remove.
4274
fdbe37e3
SM
42752018-05-30 Simon Marchi <simon.marchi@ericsson.com>
4276
4277 * Makefile.in (ALL_TARGET_OBS): Add or1k-tdep.o.
4278
f7c6f423
PA
42792018-05-30 Pedro Alves <palves@redhat.com>
4280
4281 * common/common-exceptions.h (exception_rethrow): Use
4282 ATTRIBUTE_NORETURN.
4283
52941706
SM
42842018-05-29 Simon Marchi <simon.marchi@polymtl.ca>
4285
4286 * breakpoint.c (print_solib_event, check_status_catch_solib):
4287 Remove struct keyword in range-based for loops.
4288 * dbxread.c (find_corresponding_bincl_psymtab): Likewise.
4289 * dwarf2read.c (compute_delayed_physnames, rust_union_quirks);
4290 Likewise.
4291 * linespec.c (find_superclass_methods, search_minsyms_for_name):
4292 Likewise.
4293 * symfile.c (addr_info_make_relative): Likewise.
4294 * thread.c (value_in_thread_stack_temporaries): Likewise.
4295
bf2977b5
WP
42962018-06-12 Weimin Pan <weimin.pan@oracle.com>
4297
4298 PR gdb/16841
4299 * valops.c (value_struct_elt_for_reference): Call check_typedef on
4300 aggregate type to get its real type before accessing it.
4301
64cc34d8
WP
43022018-05-29 Weimin Pan <weimin.pan@oracle.com>
4303
4304 * minsyms.h (lookup_minimal_symbol_and_objfile): Remove declaration.
4305 * minsyms.c (lookup_minimal_symbol_and_objfile): Remove definition.
4306 * coff-pe-read.c (add_pe_forwarded_sym): Replace
4307 lookup_minimal_symbol_and_objfile with lookup_bound_minimal_symbol.
4308 * glibc-tdep.c (glibc_skip_solib_resolver): Likewise.
4309 * jit.c (jit_breakpoint_re_set_internal): Likewise.
4310 * printcmd.c (info_address_command): Likewise.
4311
e7ec8713
TT
43122018-05-29 Tom Tromey <tom@tromey.com>
4313
4314 * windows-nat.c (handle_exception): Update fall-through comment.
4315
bcb430e4
TT
43162018-05-29 Tom Tromey <tom@tromey.com>
4317
4318 * progspace.h (so_list_ptr): Remove typedef. Don't declare VEC.
4319 (struct program_space) <added_solibs>: Now a std::vector.
4320 * breakpoint.c (print_solib_event): Update.
4321 (check_status_catch_solib): Update.
4322 * progspace.c (clear_program_space_solib_cache): Update.
4323 * solib.c (update_solib_list): Update.
4324
894882e3
TT
43252018-05-29 Tom Tromey <tom@tromey.com>
4326
4327 * python/py-type.c (typy_richcompare): Update.
4328 * guile/scm-type.c (tyscm_equal_p_type_smob): Update.
4329 * gdbtypes.h (types_deeply_equal): Return bool.
4330 (types_equal): Likewise.
4331 * gdbtypes.c (type_equality_entry_d): Remove typedef. Don't
4332 declare VEC.
4333 (check_types_equal): Change worklist to std::vector. Return
4334 bool.
4335 (struct type_equality_entry): Add constructor.
4336 (compare_maybe_null_strings): Return bool.
4337 (check_types_worklist): Return bool. Change worklist to
4338 std::vector.
4339 (types_deeply_equal): Use std::vector.
4340 (types_equal): Return bool.
4341 (compare_maybe_null_strings): Simplify.
4342
10b2ded4
TT
43432018-05-29 Tom Tromey <tom@tromey.com>
4344
4345 * record-btrace.c (tp_t): Remove typedef. Don't declare VEC.
4346
4f7deebe
TT
43472018-05-29 Tom Tromey <tom@tromey.com>
4348
4349 * objc-lang.h: Don't include cp-support.h.
4350 * common/gdb_vecs.h (const_char_ptr): Remove typedef. Don't
4351 declare VEC.
4352
b8283aea
TT
43532018-05-27 Tom Tromey <tom@tromey.com>
4354
4355 * Makefile.in (DEPFILES): Don't reference REMOTE_OBS.
4356
41a883c8
TT
43572018-05-25 Tom Tromey <tom@tromey.com>
4358
4359 * value.c (value::location): Initialize.
4360
bf259e25
TT
43612018-05-25 Tom Tromey <tom@tromey.com>
4362
4363 * dbxread.c (init_bincl_list): Remove.
4364 (bincl_list): Now a std::vector.
4365 (bincls_allocated, next_bincl): Remove.
4366 (free_bincl_list, do_free_bincl_list_cleanup)
4367 (make_cleanup_free_bincl_list): Remove.
4368 (dbx_read_symtab, elfstab_build_psymtabs): Use scoped_restore,
4369 unique_xmalloc_ptr.
4370 (find_corresponding_bincl_psymtab, read_dbx_symtab): Update.
4371 (struct header_file_location): Add constructor.
4372 (add_bincl_to_list): Remove.
4373
d525a99b
TT
43742018-05-25 Tom Tromey <tom@tromey.com>
4375
4376 * tui/tui.c (tui_enable): Update.
4377 * mi/mi-interp.c (mi_interp::init): Update.
4378 * interps.h (class interp) <name>: New method.
4379 <m_name>: Rename from name.
4380 (~scoped_restore_interp): Update.
4381 * interps.c (interp::interp): Update.
4382 (interp_add, interp_set, interp_lookup_existing)
4383 (current_interp_named_p): Update.
4384
da505cff
TT
43852018-05-25 Tom Tromey <tom@tromey.com>
4386
4387 * interps.c (interp_name): Remove.
4388 * mi/mi-interp.c (mi_interp::init): Update.
4389 * interps.h (interp_name): Remove.
4390 (~scoped_restore_interp): Update.
4391 * tui/tui.c (tui_enable): Update.
4392
29f94340
TT
43932018-05-25 Tom Tromey <tom@tromey.com>
4394
4395 * utils.c (fputs_maybe_filtered): Update.
4396 * linespec.c (decode_line_full): Update.
4397 * mi/mi-interp.c (mi_on_normal_stop_1, mi_tsv_modified)
4398 (mi_print_breakpoint_for_event, mi_solib_loaded)
4399 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
4400 (mi_user_selected_context_changed): Update.
4401 * mi/mi-main.c (mi_execute_command): Update.
4402 * cli/cli-script.c (execute_control_command): Update.
4403 * python/python.c (execute_gdb_command): Update.
4404 * solib.c (info_sharedlibrary_command): Update.
4405 * interps.c (interp_ui_out): Remove.
4406 * interps.h (interp_ui_out): Remove.
4407
716b8bc5
TT
44082018-05-25 Tom Tromey <tom@tromey.com>
4409
4410 * tui/tui-interp.c (as_tui_interp): Use dynamic_cast.
4411 * mi/mi-interp.c (as_mi_interp): Use dynamic_cast.
4412 * cli/cli-interp.c (as_cli_interp): Use dynamic_cast.
4413
753ff9bd
TT
44142018-05-25 Tom Tromey <tom@tromey.com>
4415
4416 * cli/cli-interp.c (safe_execute_command): Use scoped_restore.
4417 * interps.c (interp_exec): Use scoped_restore.
4418
5ca3b260
TT
44192018-05-25 Tom Tromey <tom@tromey.com>
4420
4421 * remote.c (remote_target::remote_file_get): Use
4422 gdb::byte_vector.
4423 (remote_target::remote_file_put): Likewise.
4424
3173aa2f
TT
44252018-05-25 Tom Tromey <tom@tromey.com>
4426
4427 * coff-pe-read.c (struct read_pe_section_data) <section_name>: Now
4428 a std::string.
4429 (get_pe_section_index, add_pe_exported_sym): Update.
4430 (read_pe_exported_syms): Use gdb::def_vector.
4431
09a5e1b5
TT
44322018-05-25 Tom Tromey <tom@tromey.com>
4433
4434 * frame.c (remove_prev_frame): Remove.
4435 (get_prev_frame_if_no_cycle): Use TRY/CATCH.
4436
d8dab6c3
MR
44372018-05-25 Maciej W. Rozycki <macro@mips.com>
4438
4439 * mips-linux-tdep.h (mips_supply_fpregset, mips_fill_fpregset):
4440 Remove prototypes.
4441 * mips-linux-nat.c (supply_fpregset): Always call
4442 `mips64_supply_fpregset' rather than `mips_supply_fpregset'.
4443 (fill_fpregset): Always call `mips64_fill_fpregset' rather than
4444 `mips_fill_fpregset'.
4445 * mips-linux-tdep.c (mips_supply_fpregset)
4446 (mips_supply_fpregset_wrapper, mips_fill_fpregset)
4447 (mips_fill_fpregset_wrapper): Remove functions.
4448 (mips64_supply_fpregset, mips64_fill_fpregset): Update comments.
4449 (mips_linux_fpregset): Remove variable.
4450 (mips_linux_iterate_over_regset_sections): Use
4451 `mips64_linux_fpregset' in place of `mips_linux_fpregset'.
4452 (mips_linux_o32_sigframe_init): Remove comment.
4453
3c69da40
PA
44542018-05-25 Pedro Alves <palves@redhat.com>
4455
4456 * remote.c (struct vCont_action_support, MAXTHREADLISTRESULTS)
4457 (struct readahead_cache, struct packet_reg, struct
4458 remote_arch_state, class remote_state): Move higher up in the
4459 file.
4460 (remote_target::m_remote_state): Now an object instead of a pointer.
4461 (remote_target::get_remote_state): Adjust.
4462
39f0c204
AB
44632018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
4464
4465 * stack.c (select_and_print_frame): Delete.
4466 (struct function_bounds): Move struct within function.
4467 (func_command): Most content moved into new function
4468 find_frame_for_function, use new function, print result, add
4469 function comment.
4470 (find_frame_for_function): New function, now returns a result.
4471
d392224a
PW
44722018-05-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4473
4474 * stack.c (iterate_over_block_arg_vars): Fix comment.
4475 (print_frame_arg_vars): Pass stream in cb_data, not gdb_stdout.
4476
45f25d6c
AB
44772018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
4478
4479 PR gdb/23203
4480 * frame.c
4481 (scoped_restore_selected_frame::scoped_restore_selected_frame):
4482 Define.
4483 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
4484 Define.
4485 * frame.h (class scoped_restore_selected_frame): New class.
4486 * stack.c (print_frame_local_vars): Remove catching and rethrowing
4487 of any exception, use scoped_restore_selected_frame to restore the
4488 frame instead.
4489
da05d921
PA
44902018-05-24 Pedro Alves <palves@redhat.com>
4491
4492 * darwin-nat.h (darwin_nat_target::create_inferior): Mark with
4493 override.
4494
a8be540e
TT
44952018-05-23 Tom Tromey <tom@tromey.com>
4496
4497 * complaints.c (struct complaints): Remove.
4498 (symfile_complaint_book): Remove.
4499 (series): New global.
4500 (complaint_internal): Update.
4501 (clear_complaints): Update.
4502
ff1cf532
TT
45032018-05-23 Tom Tromey <tom@tromey.com>
4504
4505 * complaints.c (counters): New global.
4506 (struct complain): Remove.
4507 (struct complaints) <root>: Remove.
4508 (complaint_sentinel): Remove.
4509 (symfile_complaint_book): Update.
4510 (find_complaint) Remove.
4511 (complaint_internal, clear_complaints): Update.
4512
7ff88174
TT
45132018-05-23 Tom Tromey <tom@tromey.com>
4514
4515 * complaints.c (struct complain) <file, line>: Remove.
4516 (find_complaint): Remove file, line parameters.
4517 (complaint_internal): Update.
4518
de54e1a5
TT
45192018-05-23 Tom Tromey <tom@tromey.com>
4520
4521 * complaints.c (vcomplaint): Remove.
4522 (complaint_internal) Merge in contents of vcomplaint.
4523
2ac237e5
TT
45242018-05-23 Tom Tromey <tom@tromey.com>
4525
4526 * complaints.c (struct complaints) <explanation>: Remove.
4527 (symfile_explanations): Remove.
4528 (symfile_complaint_book): Update.
4529 (vcomplaint): Update.
4530 (struct explanation): Remove.
4531
b98664d3
TT
45322018-05-23 Tom Tromey <tom@tromey.com>
4533
4534 * complaints.c (symfile_complaints): Remove.
4535 (complaint_internal): Remove "complaints" parameter.
4536 (clear_complaints, vcomplaint): Remove "c" parameter.
4537 (get_complaints): Remove.
4538 * dwarf2read.c (dwarf2_statement_list_fits_in_line_number_section_complaint)
4539 (dwarf2_debug_line_missing_file_complaint)
4540 (dwarf2_debug_line_missing_end_sequence_complaint)
4541 (dwarf2_complex_location_expr_complaint)
4542 (dwarf2_const_value_length_mismatch_complaint)
4543 (dwarf2_section_buffer_overflow_complaint)
4544 (dwarf2_macro_malformed_definition_complaint)
4545 (dwarf2_invalid_attrib_class_complaint)
4546 (create_addrmap_from_index, dw2_symtab_iter_next)
4547 (dw2_expand_marked_cus)
4548 (dw2_debug_names_iterator::find_vec_in_debug_names)
4549 (dw2_debug_names_iterator::next, dw2_debug_names_iterator::next)
4550 (create_debug_type_hash_table, init_cutu_and_read_dies)
4551 (partial_die_parent_scope, add_partial_enumeration)
4552 (skip_one_die, fixup_go_packaging, quirk_rust_enum, process_die)
4553 (dwarf2_compute_name, dwarf2_physname, read_namespace_alias)
4554 (read_import_statement, read_file_scope, create_dwo_cu_reader)
4555 (create_cus_hash_table, create_dwp_hash_table)
4556 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
4557 (dwarf2_rnglists_process, dwarf2_ranges_process)
4558 (dwarf2_add_type_defn, dwarf2_attach_fields_to_type)
4559 (dwarf2_add_member_fn, get_alignment, maybe_set_alignment)
4560 (handle_struct_member_die, process_structure_scope)
4561 (read_array_type, read_common_block, read_module_type)
4562 (read_tag_pointer_type, read_typedef, read_base_type)
4563 (read_subrange_type, load_partial_dies, partial_die_info::read)
4564 (partial_die_info::read, partial_die_info::read)
4565 (partial_die_info::read, read_checked_initial_length_and_offset)
4566 (dwarf2_string_attr, read_formatted_entries)
4567 (dwarf_decode_line_header)
4568 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
4569 (new_symbol, dwarf2_const_value_attr, lookup_die_type)
4570 (read_type_die_1, determine_prefix, dwarf2_get_ref_die_offset)
4571 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
4572 (get_signatured_type, get_DW_AT_signature_type)
4573 (decode_locdesc, file_file_name, consume_improper_spaces)
4574 (skip_form_bytes, skip_unknown_opcode, dwarf_parse_macro_header)
4575 (dwarf_decode_macro_bytes, dwarf_decode_macros)
4576 (dwarf2_symbol_mark_computed, set_die_type)
4577 (read_attribute_value): Update.
4578 * stap-probe.c (handle_stap_probe, get_stap_base_address):
4579 Update.
4580 * dbxread.c (unknown_symtype_complaint)
4581 (lbrac_mismatch_complaint, repeated_header_complaint)
4582 (set_namestring, function_outside_compilation_unit_complaint)
4583 (read_dbx_symtab, process_one_symbol): Update.
4584 * gdbtypes.c (stub_noname_complaint): Update.
4585 * windows-nat.c (handle_unload_dll): Update.
4586 * coffread.c (coff_symtab_read, enter_linenos, decode_type)
4587 (decode_base_type): Update.
4588 * xcoffread.c (bf_notfound_complaint, ef_complaint)
4589 (eb_complaint, record_include_begin, record_include_end)
4590 (enter_line_range, xcoff_next_symbol_text, read_xcoff_symtab)
4591 (process_xcoff_symbol, read_symbol)
4592 (function_outside_compilation_unit_complaint)
4593 (scan_xcoff_symtab): Update.
4594 * machoread.c (macho_symtab_read, macho_add_oso_symfile): Update.
4595 * buildsym.c (finish_block_internal, make_blockvector)
4596 (end_symtab_get_static_block, augment_type_symtab): Update.
4597 * dtrace-probe.c (dtrace_process_dof)
4598 (dtrace_static_probe_ops::get_probes): Update.
4599 * complaints.h (struct complaint): Don't declare.
4600 (symfile_complaints): Remove.
4601 (complaint_internal): Remove "complaints" parameter.
4602 (complaint): Likewise.
4603 (clear_complaints): Likewise.
4604 * symfile.c (syms_from_objfile_1, finish_new_objfile)
4605 (reread_symbols): Update.
4606 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
4607 (dwarf2_frame_cache, decode_frame_entry): Update.
4608 * dwarf2loc.c (dwarf_reg_to_regnum): Update.
4609 * objc-lang.c (lookup_objc_class, lookup_child_selector)
4610 (info_selectors_command): Update.
4611 * macrotab.c (macro_include, check_for_redefinition)
4612 (macro_undef): Update.
4613 * objfiles.c (filter_overlapping_sections): Update.
4614 * stabsread.c (invalid_cpp_abbrev_complaint)
4615 (reg_value_complaint, stabs_general_complaint, dbx_lookup_type)
4616 (define_symbol, error_type, read_type, rs6000_builtin_type)
4617 (stabs_method_name_from_physname, read_member_functions)
4618 (read_cpp_abbrev, read_baseclasses, read_tilde_fields)
4619 (attach_fields_to_type, complain_about_struct_wipeout)
4620 (read_range_type, read_args, common_block_start)
4621 (common_block_end, cleanup_undefined_types_1, scan_file_globals):
4622 Update.
4623 * mdebugread.c (index_complaint, unknown_ext_complaint)
4624 (basic_type_complaint, bad_tag_guess_complaint)
4625 (bad_rfd_entry_complaint, unexpected_type_code_complaint)
4626 (reg_value_complaint, parse_symbol, parse_type, upgrade_type)
4627 (parse_procedure, parse_lines)
4628 (function_outside_compilation_unit_complaint)
4629 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref)
4630 (bad_tag_guess_complaint, reg_value_complaint): Update.
4631 * cp-support.c (demangled_name_complaint): Update.
4632 * macroscope.c (sal_macro_scope): Update.
4633 * dwarf-index-write.c (class debug_names): Update.
4634
4e9668d0
TT
46352018-05-23 Tom Tromey <tom@tromey.com>
4636
4637 * complaints.c (clear_complaints): Remove "noisy" parameter.
4638 * complaints.h (clear_complaints): Update.
4639 * symfile.c (syms_from_objfile_1, finish_new_objfile)
4640 (reread_symbols): Update.
4641
43ba33c7
TT
46422018-05-23 Tom Tromey <tom@tromey.com>
4643
4644 * complaints.c (enum complaint_series): Remove FIRST_MESSAGE,
4645 SUBSEQUENT_MESSAGE.
4646 (vcomplaint, clear_complaints): Update.
4647 (symfile_explanations): Remove some messages.
4648
2b9496b2
TT
46492018-05-23 Tom Tromey <tom@tromey.com>
4650
4651 * complaints.c (internal_complaint): Remove.
4652 * complaints.h (internal_complaint): Remove.
4653
35f1fea3
MR
46542018-05-22 Maciej W. Rozycki <macro@mips.com>
4655
4656 * i387-tdep.c (i387_collect_xsave): Make `i' unsigned.
4657
6b8edb51
PA
46582018-05-22 Pedro Alves <palves@redhat.com>
4659
4660 * remote-fileio.c (remote_fileio_reply, remote_fileio_ioerror)
4661 (remote_fileio_badfd, remote_fileio_return_errno)
4662 (remote_fileio_return_success, remote_fileio_func_open)
4663 (remote_fileio_func_open, remote_fileio_func_close)
4664 (remote_fileio_func_read, remote_fileio_func_write)
4665 (remote_fileio_func_lseek, remote_fileio_func_rename)
4666 (remote_fileio_func_unlink, remote_fileio_func_stat)
4667 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
4668 (remote_fileio_func_isatty, remote_fileio_func_system): Add
4669 remote_target parameter.
4670 (remote_fio_func_map) <func>: Add remote_target parameter.
4671 (do_remote_fileio_request, remote_fileio_request):
4672 * remote-fileio.h (remote_fileio_request):
4673 * remote-notif.c (remote_notif_ack, remote_notif_parse, ): Add
4674 remote_target parameter.
4675 (remote_notif_process, handle_notification): Adjust to pass down
4676 the remote.
4677 (remote_notif_state_allocate): Add remote_target parameter. Save
4678 it.
4679 * remote-notif.h (struct remote_target): Forward declare.
4680 (struct notif_client) <parse, ack, can_get_pending_events>: Add
4681 remote_target parameter.
4682 (struct remote_notif_state) <remote>: New field.
4683 (remote_notif_ack, remote_notif_parse): Add remote_target
4684 parameter.
4685 (remote_notif_state_allocate, remote_notif_state_allocate): Add
4686 remote_target parameter.
4687 * remote.c (OPAQUETHREADBYTES, threadref, gdb_ext_thread_info)
4688 (threads_listing_context, rmt_thread_action, protocol_feature)
4689 (packet_reg, stop_reply, stop_reply_p, enum packet_support)
4690 (packet_result, struct threads_listing_context, remote_state):
4691 Move definitions and declarations higher up.
4692 (remote_target) <~remote_target>: Declare.
4693 (remote_download_command_source, remote_file_put, remote_file_get)
4694 (remote_file_delete, remote_hostio_pread, remote_hostio_pwrite)
4695 (remote_hostio_pread_vFile, remote_hostio_send_command)
4696 (remote_hostio_set_filesystem, remote_hostio_open)
4697 (remote_hostio_close, remote_hostio_unlink, remote_state)
4698 (get_remote_state, get_remote_packet_size, get_memory_packet_size)
4699 (get_memory_write_packet_size, get_memory_read_packet_size)
4700 (append_pending_thread_resumptions, remote_detach_1)
4701 (append_resumption, remote_resume_with_vcont)
4702 (add_current_inferior_and_thread, wait_ns, wait_as)
4703 (process_stop_reply, remote_notice_new_inferior)
4704 (process_initial_stop_replies, remote_add_thread)
4705 (btrace_sync_conf, remote_btrace_maybe_reopen)
4706 (remove_new_fork_children, kill_new_fork_children)
4707 (discard_pending_stop_replies, stop_reply_queue_length)
4708 (check_pending_events_prevent_wildcard_vcont)
4709 (discard_pending_stop_replies_in_queue, stop_reply)
4710 (remote_notif_remove_queued_reply, stop_reply *queued_stop_reply)
4711 (peek_stop_reply, remote_parse_stop_reply, remote_stop_ns)
4712 (remote_interrupt_as, remote_interrupt_ns)
4713 (remote_get_noisy_reply, remote_query_attached)
4714 (remote_add_inferior, remote_current_thread, get_current_thread)
4715 (set_thread, set_general_thread, set_continue_thread)
4716 (set_general_process, write_ptid)
4717 (remote_unpack_thread_info_response, remote_get_threadinfo)
4718 (parse_threadlist_response, remote_get_threadlist)
4719 (remote_threadlist_iterator, remote_get_threads_with_ql)
4720 (remote_get_threads_with_qxfer)
4721 (remote_get_threads_with_qthreadinfo, extended_remote_restart)
4722 (get_offsets, remote_check_symbols, remote_supported_packet)
4723 (remote_query_supported, remote_packet_size)
4724 (remote_serial_quit_handler, remote_detach_pid)
4725 (remote_vcont_probe, remote_resume_with_hc)
4726 (send_interrupt_sequence, interrupt_query)
4727 (remote_notif_get_pending_events, fetch_register_using_p)
4728 (send_g_packet, process_g_packet, fetch_registers_using_g)
4729 (store_register_using_P, store_registers_using_G)
4730 (set_remote_traceframe, check_binary_download)
4731 (remote_write_bytes_aux, remote_write_bytes, remote_read_bytes_1)
4732 (remote_xfer_live_readonly_partial, remote_read_bytes)
4733 (remote_send_printf, remote_flash_write, readchar)
4734 (remote_serial_write, putpkt, putpkt_binary, skip_frame)
4735 (read_frame, getpkt, getpkt_or_notif_sane_1, getpkt_sane)
4736 (getpkt_or_notif_sane, remote_vkill, remote_kill_k)
4737 (extended_remote_disable_randomization, extended_remote_run)
4738 (send_environment_packet, extended_remote_environment_support)
4739 (extended_remote_set_inferior_cwd, remote_write_qxfer)
4740 (remote_read_qxfer, push_stop_reply, vcont_r_supported)
4741 (packet_command): Now methods of ...
4742 (remote_target): ... this class.
4743 (m_remote_state) <remote_target>: New field.
4744 (struct remote_state) <stop_reply_queue,
4745 remote_async_inferior_event_token, wait_forever_enabled_p>: New
4746 fields.
4747 (remote_state::remote_state): Allocate stop_reply_queue.
4748 (remote_state): Delete global.
4749 (get_remote_state_raw): Delete.
4750 (remote_target::get_remote_state): Allocate m_remote_state on
4751 demand.
4752 (get_current_remote_target): New.
4753 (remote_ops, extended_remote_ops): Delete.
4754 (wait_forever_enabled_p, remote_async_inferior_event_token):
4755 Delete, moved to struct remote_state.
4756 (remote_target::close): Delete self. Destruction bits split to
4757 ...
4758 (remote_target::~remote_target): ... this.
4759 (show_memory_packet_size): Adjust to use
4760 get_current_remote_target.
4761 (struct protocol_feature) <func>: Add remote_target parameter.
4762 All callers adjusted.
4763 (curr_quit_handler_target): New.
4764 (remote_serial_quit_handler): Reimplement.
4765 (remote_target::open_1): Adjust to use get_current_remote_target.
4766 Heap-allocate remote_target/extended_remote_target instances.
4767 (vcont_builder::vcont_builder): Add remote_target parameter, and
4768 save it in m_remote. All callers adjusted.
4769 (vcont_builder::m_remote): New field.
4770 (vcont_builder::restart, vcont_builder::flush)
4771 (vcont_builder::push_action): Use it.
4772 (remote_target::commit_resume): Use it.
4773 (struct queue_iter_param) <remote>: New field.
4774 (remote_target::remove_new_fork_children): Fill in 'remote' field.
4775 (check_pending_event_prevents_wildcard_vcont_callback_data): New.
4776 (check_pending_event_prevents_wildcard_vcont_callback)
4777 (remote_target::check_pending_events_prevent_wildcard_vcont)
4778 (remote_target::discard_pending_stop_replies)
4779 (remote_target::discard_pending_stop_replies_in_queue)
4780 (remote_target::remote_notif_remove_queued_reply): Fill in
4781 'remote' field.
4782 (remote_notif_get_pending_events): New.
4783 (remote_target::readchar, remote_target::remote_serial_write):
4784 Save/restore curr_quit_handler_target.
4785 (putpkt): New.
4786 (kill_new_fork_children): Fill in 'remote' field.
4787 (packet_command): Use get_current_remote_target, defer to
4788 remote_target method of same name.
4789 (scoped_remote_fd::scoped_remote_fd): Add 'remote_target'
4790 parameter, and save it in m_remote. All callers adjusted.
4791 (scoped_remote_fd::release): Use m_remote.
4792 (scoped_remote_fd::m_remote): New field.
4793 (remote_file_put, remote_file_get, remote_file_delete): Use
4794 get_current_remote_target, defer to remote_target method of same
4795 name.
4796 (remote_btrace_reset): Add remote_state paremeter. Update all
4797 callers.
4798 (remote_async_inferior_event_handler). Pass down 'data'.
4799 (remote_new_objfile): Use get_current_remote_target.
4800 (remote_target::vcont_r_supported): New.
4801 (set_range_stepping): Use get_current_remote_target and
4802 remote_target::vcont_r_supported.
4803 (_initialize_remote): Don't allocate 'remote_state' and
4804 'stop_reply_queue' globals.
4805 * remote.h (struct remote_target): Forward declare.
4806 (getpkt, putpkt, remote_notif_get_pending_events): Add
4807 'remote_target' parameter.
4808
f5db4863
PA
48092018-05-22 Pedro Alves <palves@redhat.com>
4810
4811 * remote.c (vcont_builder): Now a class. Make all data members
4812 private.
4813 (vcont_builder) <vcont_builder, restart, flush, push_action>:
4814 Declare methods.
4815 (vcont_builder_restart): Rename to ...
4816 (vcont_builder::restart): ... this.
4817 (vcont_builder_flush): Rename to ...
4818 (vcont_builder::flush): ... this.
4819 (vcont_builder_push_action): Rename to ...
4820 (vcont_builder::push_action): ... this.
4821 (remote_target::commit_resume): Adjust.
4822
cc0be08f
PA
48232018-05-22 Pedro Alves <palves@redhat.com>
4824
4825 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE): Rename to ...
4826 (DEFAULT_MAX_MEMORY_PACKET_SIZE_FIXED): ... this.
4827 (get_fixed_memory_packet_size): New.
4828 (get_memory_packet_size): Use it.
4829 (set_memory_packet_size): Don't override the config size with
4830 DEFAULT_MAX_MEMORY_PACKET_SIZE.
4831 (show_memory_packet_size): Use get_fixed_memory_packet_size.
4832 Don't refer to get_memory_packet_size if not connected to a remote
4833 target. Show "(default)" if configured size is 0.
4834
9607784a
PA
48352018-05-22 Pedro Alves <palves@redhat.com>
4836
4837 * remote.c (remote_target::mourn_inferior): Move
4838 discard_pending_stop_replies call here from ...
4839 (_initialize_remote): ... here.
4840
0e9a6b2f
PA
48412018-05-22 Pedro Alves <palves@redhat.com>
4842
4843 * remote.c (compare_section_command): Remove set_general_process
4844 call.
4845
43c3a0e4
PA
48462018-05-22 Pedro Alves <palves@redhat.com>
4847
4848 * remote.c (struct packet_reg, struct remote_arch_state):
4849 Move higher up in the file.
4850 (remote_state) <m_arch_states>: Store remote_arch_state values
4851 instead of remote_arch_state pointers.
4852 (remote_state::get_remote_arch_state): Adjust.
4853
9d6eea31
PA
48542018-05-22 Pedro Alves <palves@redhat.com>
4855
4856 * remote.c: Include <unordered_map>.
4857 (remote_state): Now a class.
4858 (remote_state) <get_remote_arch_state>: Declare method.
4859 <get_remote_arch_state>: New field.
4860 (remote_arch_state) <remote_arch_state>: Declare ctor.
4861 <regs>: Now a unique_ptr.
4862 (remote_gdbarch_data_handle): Delete.
4863 (get_remote_arch_state): Delete.
4864 (remote_state::get_remote_arch_state): New.
4865 (get_remote_state): Adjust to call remote_state's
4866 get_remote_arch_state method.
4867 (init_remote_state): Delete, bits factored out to ...
4868 (remote_arch_state::remote_arch_state): ... this new method.
4869 (get_remote_packet_size, get_memory_packet_size)
4870 (process_g_packet, remote_target::fetch_registers)
4871 (remote_target::prepare_to_store, store_registers_using_G)
4872 (remote_target::store_registers, remote_target::get_trace_status):
4873 Adjust to call remote_state's method.
4874 (_initialize_remote): Remove reference to
4875 remote_gdbarch_data_handle.
4876
dd194f6b
PA
48772018-05-22 Pedro Alves <palves@redhat.com>
4878
4879 * remote.c (struct readahead_cache) <invalidate, invalidate_fd,
4880 pread>: New method declarations.
4881 (remote_target::open_1): Adjust.
4882 (readahead_cache_invalidate): Rename to ...
4883 (readahead_cache::invalidate): ... this, and adjust to be a class
4884 method.
4885 (readahead_cache_invalidate_fd): Rename to ...
4886 (readahead_cache::invalidate_fd): ... this, and adjust to be a
4887 class method.
4888 (remote_hostio_pwrite): Adjust.
4889 (remote_hostio_pread_from_cache): Rename to ...
4890 (readahead_cache::pread): ... this, and adjust to be a class
4891 method.
4892 (remote_hostio_close): Adjust.
4893
440b7aec
PA
48942018-05-22 Pedro Alves <palves@redhat.com>
4895
4896 * remote.c (remote_hostio_close_cleanup): Delete.
4897 (class scoped_remote_fd): New.
4898 (remote_file_put, remote_file_get): Use it.
4899
de44f5a7
PA
49002018-05-22 Pedro Alves <palves@redhat.com>
4901
4902 (struct vCont_action_support): Use bool and initialize all fields.
4903 (struct readahead_cache): Initialize all fields.
4904 (remote_state): Use bool and initialize all fields.
4905 (remote_state::remote_state, remote_state::~remote_state): New.
4906 (new_remote_state): Delete.
4907 (_initialize_remote): Use new to allocate remote_state.
4908
b1b60145
PA
49092018-05-22 Pedro Alves <palves@redhat.com>
4910 張俊芝 <zjz@zjz.name>
4911
4912 PR gdb/22973
4913 * c-exp.y: Include "c-support.h".
4914 (parse_number, c_parse_escape, lex_one_token): Use TOLOWER instead
4915 of tolower. Use c_ident_is_alpha to scan names.
4916 * c-lang.c: Include "c-support.h".
4917 (convert_ucn, convert_octal, convert_hex, convert_escape): Use
4918 ISXDIGIT instead of isxdigit and ISDIGIT instead of isdigit.
4919 * c-support.h: New file, with bits factored out from ...
4920 * cp-name-parser.y: ... this file.
4921 Include "c-support.h".
4922 (cp_ident_is_alpha, cp_ident_is_alnum): Deleted, moved to
4923 c-support.h and renamed.
4924 (symbol_end, yylex): Adjust.
4925
0ec848ad
PFC
49262018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
4927
4928 * arch/ppc-linux-common.c (ppc_linux_has_isa205): Change the
4929 parameter type to CORE_ADDR.
4930 * arch/ppc-linux-common.h (ppc_linux_has_isa205): Change the
4931 parameter type in declaration to CORE_ADDR.
4932 * ppc-linux-tdep.c (ppc_linux_core_read_description): Call
4933 target_auxv_search to get AT_HWCAP and use the result to get the
4934 target description.
4935 * ppc-linux-nat.c (ppc_linux_get_hwcap): Change the return type
4936 to CORE_ADDR. Remove the cast of the return value to unsigned
4937 long. Fix error predicate of target_auxv_search.
4938 (ppc_linux_nat_target::read_description): Change the type of the
4939 hwcap variable to CORE_ADDR.
4940
0fb2aaa1
PFC
49412018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
4942
4943 * rs6000-tdep.c (rs6000_gdbarch_init): Assign 1 to have_dfp only
4944 if the size of fpscr is larger than 32 bits.
4945
2c3305f6
PFC
49462018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
4947
4948 * ppc-linux-tdep.c (ppc_linux_vsxregset): New function.
4949 (ppc32_linux_vsxregmap): New global.
4950 (ppc32_linux_vsxregset): Initialize with ppc32_linux_vsxregmap,
4951 regcache_supply_regset, and regcache_collect_regset.
4952 * ppc-linux-tdep.h (ppc_linux_vsxregset): Declare.
4953 * ppc-linux-nat.c (supply_vsxregset, fill_vsxregset): Remove.
4954 (fetch_vsx_register, store_vsx_register): Remove.
4955 (fetch_vsx_registers): Add regno parameter. Get regset using
4956 ppc_linux_vsxregset. Use regset to supply registers.
4957 (store_vsx_registers): Add regno parameter. Get regset using
4958 ppc_linux_vsxregset. Use regset to collect registers.
4959 (fetch_register): Call fetch_vsx_registers instead of
4960 fetch_vsx_register.
4961 (store_register): Call store_vsx_registers instead of
4962 store_vsx_register.
4963 (fetch_ppc_registers): Call fetch_vsx_registers with -1 for the
4964 new regno parameter.
4965 (store_ppc_registers): Call store_vsx_registers with -1 for the
4966 new regno parameter.
4967 * rs6000-tdep.c (ppc_vsx_support_p, ppc_supply_vsxreget)
4968 (ppc_collect_vsxregset): Remove.
4969
1d75a658
PFC
49702018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
4971
4972 * ppc-tdep.h (struct ppc_reg_offsets): Remove vector register
4973 offset fields.
4974 * ppc-fbsd-tdep.c (ppc32_fbsd_reg_offsets): Remove initializers
4975 for vector register offset fields.
4976 (ppc64_fbsd_reg_offsets): Likewise.
4977 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
4978 to vector register offset fields.
4979 * ppc-obsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
4980 to vector register offset fields.
4981 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Remove assignment to
4982 vector register offset fields.
4983 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Remove
4984 initializers for vector register offset fields.
4985 (rs6000_aix64_reg_offsets): Likewise.
4986 * rs6000-tdep.c (ppc_vrreg_offset): Remove.
4987 (ppc_supply_vrregset): Remove.
4988 (ppc_collect_vrregset): Remove.
4989 * ppc-linux-tdep.c (ppc_linux_collect_vrregset): New function.
4990 (ppc_linux_vrregset) : New function.
4991 (ppc32_le_linux_vrregmap, ppc32_be_linux_vrregmap)
4992 (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): New globals.
4993 (ppc32_linux_vrregset): Remove.
4994 (ppc_linux_iterate_over_regset_sections): Call ppc_linux_vrregset
4995 and use result instead of ppc32_linux_vrregset.
4996 (ppc32_linux_reg_offsets): Remove initializers for vector register
4997 offset fields.
4998 (ppc64_linux_reg_offsets): Likewise.
4999 * ppc-linux-tdep.h (ppc_linux_vrregset): New declaration.
5000 * ppc-linux-nat.c: Include regset.h.
5001 (gdb_vrregset_t): Adjust comment to account for little-endian
5002 mode.
5003 (supply_vrregset, fill_vrregset): Remove.
5004 (fetch_altivec_register, store_altivec_register): Remove.
5005 (fetch_altivec_registers): Add regno parameter. Get regset using
5006 ppc_linux_vrregset. Use regset to supply registers.
5007 (store_altivec_registers): Add regno parameter. Get regset using
5008 ppc_linux_vrregset. Use regset to collect registers.
5009 (fetch_register): Call fetch_altivec_registers instead of
5010 fetch_altivec_register.
5011 (store_register): Call store_altivec_registers instead of
5012 store_altivec_register.
5013 (fetch_ppc_registers): Call fetch_altivec_registers with -1 for
5014 the new regno parameter.
5015 (store_ppc_registers): Call store_altivec_registers with -1 for
5016 the new regno parameter.
5017
d078308a
PFC
50182018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5019
5020 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_VRREGSET)
5021 (PPC_LINUX_SIZEOF_VSXREGSET): Define.
5022 * ppc-linux-nat.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
5023 (gdb_vrregset_t): Change array type size to
5024 PPC_LINUX_SIZEOF_VRREGSET.
5025 (gdb_vsxregset_t): Change array type size to
5026 PPC_LINUX_SIZEOF_VSXREGSET.
5027 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections):
5028 Change integer literals to PPC_LINUX_SIZEOF_VRREGSET and
5029 PPC_LINUX_SIZEOF_VSXREGSET.
5030
2e077f5e
PFC
50312018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5032
5033 * configure.nat <linux powerpc>: Add ppc-linux.o to NATDEPFILES.
5034 * ppc-linux-nat.c (ppc_linux_target_wordsize): Move to
5035 nat/ppc-linux.c.
5036 (ppc_linux_nat_target::auxv_parse): Get thread id tid. Call
5037 ppc_linux_target_wordsize with tid.
5038 (ppc_linux_nat_target::read_description): Call ppc_linux_target
5039 wordsize with tid.
5040 * nat/ppc-linux.c: Include nat/gdb_ptrace.h.
5041 (ppc64_64bit_inferior_p): Add static and inline specifiers.
5042 (ppc_linux_target_wordsize): Move here from ppc-linux-nat.c. Add
5043 tid parameter. Remove static specifier.
5044 * nat/ppc-linux.h (ppc64_64bit_inferior_p): Remove declaration.
5045 (ppc_linux_target_wordsize): New declaration.
5046
bd64614e
PFC
50472018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5048
5049 * arch/ppc-linux-common.c: New file.
5050 * arch/ppc-linux-common.h: New file.
5051 * arch/ppc-linux-tdesc.h: New file.
5052 * configure.tgt (powerpc*-*-linux*): Add arch/ppc-linux-common.o.
5053 * Makefile.in (ALL_TARGET_OBS): Add arch/ppc-linux-common.o.
5054 (HFILES_NO_SRCDIR): Add arch/ppc-linux-common.h and
5055 arch/ppc-linux-tdesc.h.
5056 * ppc-linux-nat.c: Include arch/ppc-linux-common.h and
5057 arch/ppc-linux-tdesc.h.
5058 (ppc_linux_nat_target::read_description): Remove target
5059 description matching code. Fill a ppc_linux_features struct and
5060 call ppc_linux_match_description with it. Move comment about ISA
5061 2.05 to ppc-linux-common.c.
5062 * ppc-linux-tdep.c: Include arch/ppc-linux-common.h and
5063 arch/ppc-linux-tdesc.h.
5064 (ppc_linux_core_read_description): Remove target description
5065 matching code. Fill a ppc_linux_features struct and call
5066 ppc_linux_match_description with it.
5067 * ppc-linux-tdep.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
5068 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
5069 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
5070 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
5071 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
5072 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
5073 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
5074 (tdesc_powerpc_e500l): Remove.
5075
241db429
JB
50762018-05-22 Joel Brobecker <brobecker@adacore.com>
5077
5078 * ada-lang.c (catch_assert_command): Pass empty string instead
5079 of NULL for excep_string argument.
5080
75d74cca
MR
50812018-05-22 Maciej W. Rozycki <macro@mips.com>
5082
5083 * mips-linux-nat.c (mips64_linux_register_addr): Return -1 if
5084 the width of the requested register exceeds the width of the
5085 `ptrace' data type.
5086
122b53ea
TT
50872018-05-21 Tom Tromey <tom@tromey.com>
5088
5089 * printcmd.c (output_command): Remove.
5090 (output_command_const): Rename to output_command.
5091 * valprint.h (output_command): Rename from output_command_const.
5092 * tracepoint.c (trace_dump_actions): Call output_command.
5093
bc18fbb5
TT
50942018-05-21 Tom Tromey <tom@tromey.com>
5095
5096 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
5097 (mi_cmd_catch_exception, mi_cmd_catch_handlers): Update.
5098 * ada-lang.h (create_ada_exception_catchpoint): Update.
5099 * ada-lang.c (struct ada_catchpoint) <excep_string>: Now a
5100 std::string.
5101 (create_excep_cond_exprs, ~ada_catchpoint)
5102 (should_stop_exception, print_one_exception)
5103 (print_mention_exception, print_recreate_exception): Update.
5104 (ada_get_next_arg): Remove.
5105 (catch_ada_exception_command_split): Use std::string. Change type
5106 of "excep_string", "cond_string".
5107 (catch_ada_exception_command): Update.
5108 (create_ada_exception_catchpoint): Change type of excep_string.
5109 (ada_exception_sal): Remove excep_string parameter.
5110 (~ada_catchpoint): Remove.
5111
790217f6
TT
51122018-05-21 Tom Tromey <tom@tromey.com>
5113
5114 * ada-lang.c (ada_collect_symbol_completion_matches): Remove
5115 cleanup.
5116
6f46ac85
TT
51172018-05-21 Tom Tromey <tom@tromey.com>
5118
5119 * ada-lang.c (ada_exception_message_1, ada_exception_message):
5120 Return unique_xmalloc_ptr.
5121 (print_it_exception): Update.
5122
15b6611c
TT
51232018-05-21 Tom Tromey <tom@tromey.com>
5124
5125 * tracepoint.c (trace_dump_actions): Use std::string.
5126
c0c9f665
TT
51272018-05-21 Tom Tromey <tom@tromey.com>
5128
5129 * symfile.c (reread_symbols): Use std::string for original_name.
5130
22ca247e
TT
51312018-05-21 Tom Tromey <tom@tromey.com>
5132
5133 * dwarf2read.c (dwarf2_read_debug_names): Use std::unique_ptr.
5134 (mapped_index_base): Use DISABLE_COPY_AND_ASSIGN. Default
5135 constructor.
5136
184cde75
SM
51372018-05-20 Simon Marchi <simon.marchi@polymtl.ca>
5138
5139 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Rename the wrong
5140 instance to...
5141 (HAVE_IS_TRIVIALLY_CONSTRUCTIBLE): ... this.
5142 * objfiles.c (get_objfile_bfd_data): Allocate
5143 objfile_per_bfd_storage with obstack_new when allocating on
5144 obstack.
5145
e39db4db
SM
51462018-05-20 Simon Marchi <simon.marchi@ericsson.com>
5147
5148 * ada-lang.c (cache_symbol): Use XOBNEW and/or XOBNEWVEC and/or
5149 OBSTACK_ZALLOC.
5150 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
5151 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
5152 * mdebugread.c (mdebug_build_psymtabs): Likewise.
5153 (add_pending): Likewise.
5154 (parse_symbol): Likewise.
5155 (parse_partial_symbols): Likewise.
5156 (psymtab_to_symtab_1): Likewise.
5157 (new_psymtab): Likewise.
5158 (elfmdebug_build_psymtabs): Likewise.
5159 * minsyms.c (terminate_minimal_symbol_table): Likewise.
5160 * objfiles.c (get_objfile_bfd_data): Likewise.
5161 (objfile_register_static_link): Likewise.
5162 * psymtab.c (allocate_psymtab): Likewise.
5163 * stabsread.c (read_member_functions): Likewise.
5164 * xcoffread.c (xcoff_end_psymtab): Likewise.
5165
284a0e3c
SM
51662018-05-20 Simon Marchi <simon.marchi@ericsson.com>
5167
5168 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Define if
5169 compiler supports std::is_trivially_constructible.
5170 * common/poison.h: Include obstack.h.
5171 (IsMallocable): Define to is_trivially_constructible if the
5172 compiler supports it, define to true_type otherwise.
5173 (xobnew): New.
5174 (XOBNEW): Redefine.
5175 (xobnewvec): New.
5176 (XOBNEWVEC): Redefine.
5177 * gdb_obstack.h (obstack_zalloc): New.
5178 (OBSTACK_ZALLOC): Redefine.
5179 (obstack_calloc): New.
5180 (OBSTACK_CALLOC): Redefine.
5181 (obstack_new): New.
5182 * gdbarch.sh: Include gdb_obstack in gdbarch.h.
5183 (gdbarch_obstack): New declaration in gdbarch.h, definition in
5184 gdbarch.c.
5185 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Use
5186 obstack_calloc/obstack_zalloc.
5187 (gdbarch_obstack_zalloc): Remove.
5188 * target-descriptions.c (tdesc_data_init): Use obstack_new.
5189
59f66be3
PW
51902018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5191
5192 * stack.c (backtrace_command_1): Remove useless variable int i.
5193
50c65c2d
PW
51942018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5195
5196 * stack.c (print_frame_info): Fix comment.
5197
7ff8cb8c
TT
51982018-05-18 Tom Tromey <tom@tromey.com>
5199
5200 * dwarf2read.c (struct dwz_file): Add constructor, initializers.
5201 <dwz_bfd>: Now a gdb_bfd_ref_ptr.
5202 (~dwarf2_per_objfile): Update
5203 (dwarf2_get_dwz_file): Use new.
5204 * dwarf2read.h (struct dwarf2_per_objfile) <dwz_file>: Now a
5205 unique_ptr.
5206
400174b1
TT
52072018-05-18 Tom Tromey <tom@tromey.com>
5208
5209 * dwarf2read.h (struct dwarf2_per_objfile) <dwp_file>: Now a
5210 unique_ptr.
5211 * dwarf2read.c (struct dwp_file): Add constructor and
5212 initializers.
5213 (open_and_init_dwp_file): Return a unique_ptr.
5214 (dwarf2_per_objfile, create_dwp_hash_table)
5215 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2)
5216 (lookup_dwo_unit_in_dwp): Update.
5217 (open_and_init_dwp_file, get_dwp_file): Update.
5218
3063847f
TT
52192018-05-18 Tom Tromey <tom@tromey.com>
5220
5221 * dwarf2read.c (dwarf2_per_objfile): Update.
5222 (struct mapped_index): Add initializers.
5223 (dwarf2_read_index): Use new.
5224 (dw2_symtab_iter_init): Update.
5225 * dwarf2read.h (struct dwarf2_per_objfile) <index_table>: Now a
5226 unique_ptr.
5227
d3d02dee
SM
52282018-05-18 Simon Marchi <simon.marchi@ericsson.com>
5229
5230 * dwarf2read.c (mapped_index) <total_size>: Remove.
5231
1d143c36
SM
52322018-05-18 Simon Marchi <simon.marchi@ericsson.com>
5233
5234 * unittests/format_pieces-selftests.c (test_format_specifier):
5235 Add ARI comments.
5236
ce1e8424
TT
52372018-05-18 Tom Tromey <tom@tromey.com>
5238
5239 * c-typeprint.c (maybe_print_hole): New function.
5240 (c_print_type_struct_field_offset): Update.
5241 (c_type_print_base_struct_union): Call maybe_print_hole.
5242
ddfe970e
KS
52432018-05-17 Keith Seitz <keiths@redhat.com>
5244
5245 * breakpoint.c (build_bpstat_chain): New function, moved from
5246 bpstat_stop_status.
5247 (bpstat_stop_status): Add optional parameter, `stop_chain'.
5248 If no stop chain is passed, call build_bpstat_chain to build it.
5249 * breakpoint.h (build_bpstat_chain): Declare.
5250 (bpstat_stop_status): Move documentation here from breakpoint.c.
5251 * infrun.c (handle_signal_stop): Before eliding inlined frames,
5252 build the stop chain and pass it to skip_inline_frames.
5253 Pass this stop chain to bpstat_stop_status.
5254 * inline-frame.c: Include breakpoint.h.
5255 (stopped_by_user_bp_inline_frame): New function.
5256 (skip_inline_frames): Add parameter `stop_chain'.
5257 Move documention to inline-frame.h.
5258 If non-NULL, use stopped_by_user_bp_inline_frame to determine
5259 whether the frame should be elided.
5260 * inline-frame.h (skip_inline_frames): Add parameter `stop_chain'.
5261 Add moved documentation and update for new parameter.
5262
b17992c1
SM
52632018-05-17 Simon Marchi <simon.marchi@ericsson.com>
5264
5265 PR cli/14975
5266 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
5267 unittests/format_pieces-selftests.c.
5268 * common/format.h (format_piece) <operator==>: New.
5269 (format_pieces) <operator[]>: Remove.
5270 * common/format.c (format_pieces::format_pieces): Handle \e.
5271 * unittests/format_pieces-selftests.c: New.
5272
58f0c718
TT
52732018-05-17 Tom Tromey <tom@tromey.com>
5274
5275 PR symtab/23010:
5276 * dwarf2read.c (load_cu, dw2_do_instantiate_symtab)
5277 (dw2_instantiate_symtab): Add skip_partial parameter.
5278 (dw2_find_last_source_symtab, dw2_map_expand_apply)
5279 (dw2_lookup_symbol, dw2_expand_symtabs_for_function)
5280 (dw2_expand_all_symtabs, dw2_expand_symtabs_with_fullname)
5281 (dw2_expand_symtabs_matching_one)
5282 (dw2_find_pc_sect_compunit_symtab)
5283 (dw2_debug_names_lookup_symbol)
5284 (dw2_debug_names_expand_symtabs_for_function): Update.
5285 (init_cutu_and_read_dies): Add skip_partial parameter.
5286 (process_psymtab_comp_unit, build_type_psymtabs_1)
5287 (process_skeletonless_type_unit, load_partial_comp_unit)
5288 (psymtab_to_symtab_1): Update.
5289 (load_full_comp_unit): Add skip_partial parameter.
5290 (process_imported_unit_die, dwarf2_read_addr_index)
5291 (follow_die_offset, dwarf2_fetch_die_loc_sect_off)
5292 (dwarf2_fetch_constant_bytes, dwarf2_fetch_die_type_sect_off)
5293 (read_signatured_type): Update.
5294
3e618834
SM
52952018-05-17 Simon Marchi <simon.marchi@ericsson.com>
5296
5297 * value.c (release_value): Remove unused variable.
5298 (record_latest_value): Likewise.
5299 (access_value_history): Likewise.
5300 (preserve_values): Likewise.
5301
fe10fe31
TT
53022018-05-17 Tom Tromey <tom@tromey.com>
5303
5304 * extension.h (struct ext_lang_type_printers) <py_type_printers>:
5305 Initialize.
5306
1d761124
MR
53072018-05-16 Maciej W. Rozycki <macro@mips.com>
5308
5309 PR gdb/22286
5310 * linux-nat-trad.c (linux_nat_trad_target::fetch_register):
5311 Also handle registers whose width is not a multiple of
5312 PTRACE_TYPE_RET.
5313 (linux_nat_trad_target::store_register): Likewise.
5314
06333fea
TT
53152018-05-16 Tom Tromey <tom@tromey.com>
5316
5317 * gdbcore.h (core_bfd): Redefine.
5318 * corelow.c (core_target::close): Update.
5319 (core_target_open): Update.
5320 * progspace.h (struct program_space) <cbfd>: Now a
5321 gdb_bfd_ref_ptr.
5322
921222e2
TT
53232018-05-16 Tom Tromey <tom@tromey.com>
5324
5325 PR cli/19551:
5326 * symfile-add-flags.h (enum symfile_add_flags)
5327 <SYMFILE_NOT_FILENAME>: New constant.
5328 * symfile.c (read_symbols): Use SYMFILE_NOT_FILENAME. Get
5329 objfile name from BFD.
5330 (symbol_file_add_with_addrs): Check SYMFILE_NOT_FILENAME.
5331 * minidebug.c (find_separate_debug_file_in_section): Put
5332 ".gnu_debugdata" into BFD's file name.
5333
3acb7083
SM
53342018-05-16 Simon Marchi <simon.marchi@ericsson.com>
5335
5336 * regcache.c (regcache_read_ftype, regcache_write_ftype):
5337 Remove.
5338
561a72d4
TC
53392018-05-15 Tamar Christina <tamar.christina@arm.com>
5340
5341 PR binutils/21446
5342 * aarch64-tdep.c (aarch64_analyze_prologue,
5343 aarch64_software_single_step, aarch64_displaced_step_copy_insn):
5344 Indicate not interested in errors.
5345
4e6ff0e1
MR
53462018-05-15 Maciej W. Rozycki <macro@mips.com>
5347
5348 * mips-linux-nat.c (mips_linux_nat_target::fetch_registers):
5349 Supply the MIPS_ZERO_REGNUM register.
5350
ea33cd92
MR
53512018-05-15 Maciej W. Rozycki <macro@mips.com>
5352
5353 * mips-tdep.c (mask_address_var): Make variable static.
5354
2d79090e
TT
53552018-05-14 Tom Tromey <tom@tromey.com>
5356
5357 * dwarf2read.c (rust_union_quirks): Clear rust_unions.
5358
cf4912ae
AB
53592018-05-11 Andrew Burgess <andrew.burgess@embecosm.com>
5360
5361 * i387-tdep.c (i387_collect_xsave): Use FXSAVE_MXCSR_ADDR not
5362 FXSAVE_ADDR for the mxcsr register.
5363
67e6f569
MF
53642018-05-11 Max Filippov <jcmvbkbc@gmail.com>
5365
5366 * configure.tgt (xtensa*-*-linux*): Drop gdb_target definition.
5367
15244507
PA
53682018-05-11 Pedro Alves <palves@redhat.com>
5369
5370 * corelow.c (core_target) <core_target>: No longer inline.
5371 Initialize m_core_gdbarch, m_core_vec and build the section table
5372 here.
5373 <~core_target>: New.
5374 <core_gdbarch, get_core_register_section>: New methods.
5375 <m_core_section_table, m_core_vec, m_core_gdbarch>: New fields,
5376 factored out from ...
5377 <core_data, core_vec, core_gdbarch>: ... these deleted globals.
5378 (core_ops): Delete.
5379 (sniff_core_bfd): Add gdbarch parameter.
5380 (core_close): Delete, merged into ...
5381 (core_target::close): ... here. Delete self.
5382 (core_close_cleanup): Delete.
5383 (core_target_open): Allocate a core_target on the heap. Use a
5384 unique_ptr instead of a cleanup. Bits moved into the core_target
5385 ctor. Adjust to use core_target methods instead of globals.
5386 (get_core_register_section): Rename to ...
5387 (core_target::get_core_register_section): ... this and adjust.
5388 (struct get_core_registers_cb_data): New.
5389 (get_core_registers_cb): Use it. Use bool.
5390 (core_target::fetch_registers, core_target::files_info)
5391 (core_target::xfer_partial, core_target::read_description)
5392 (core_target::pid_to, core_target::thread_name): Adjust to
5393 reference class fields instead of globals.
5394 * target.h (struct target_ops_deleter, target_ops_up): New.
5395
451953fa
PA
53962018-05-11 Pedro Alves <palves@redhat.com>
5397
5398 * corefile.c (core_file_command): Move to corelow.c.
5399 * corelow.c (the_core_target): Delete.
5400 (core_file_command): Moved from corefile.c. Check exec_bfd
5401 instead of the_core_target. Use target_detach instead of calling
5402 into the_core_target directly.
5403 (maybe_say_no_core_file_now): New.
5404 (core_target::detach): Use it.
5405 (_initialize_corelow): Remove references to the_core_target.
5406 * gdbcore.h (the_core_target): Delete.
5407
e540a5a2 54082018-05-11 Tom Tromey <tromey@redhat.com>
3afc23a6 5409 Pedro Alves <palves@redhat.com>
e540a5a2
TT
5410
5411 * corefile.c (core_bfd): Remove.
5412 * gdbcore.h (core_bfd): Now a macro.
5413 * progspace.h (struct program_space) <cbfd>: New field.
5414
633cf254
TT
54152018-05-11 Tom Tromey <tom@tromey.com>
5416
5417 * mdebugread.c (parse_partial_symbols, psymtab_to_symtab_1): Use
5418 gdb::def_vector.
5419
1a34f210
TT
54202018-05-10 Tom Tromey <tom@tromey.com>
5421
5422 * configure: Rebuild.
5423 * warning.m4 (AM_GDB_WARNINGS): Use -Wimplicit-fallthrough=3.
5424
190852c8
JB
54252018-05-10 Joel Brobecker <brobecker@adacore.com>
5426
5427 PR server/23158:
5428 * regformats/regdat.sh: Adjust script, following the addition
5429 of the new expedite_regs parameter to init_target_desc.
5430
8727de56
OJ
54312018-05-10 Omair Javaid <omair.javaid@linaro.org>
5432
5433 PR gdb/23127
5434 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add call to
5435 set_gdbarch_significant_addr_bit.
5436 * aarch64-tdep.c (aarch64_gdbarch_init): Remove call to
5437 set_gdbarch_significant_addr_bit.
5438 * utils.c (address_significant): Update to sign extend addr.
5439
37d9e062
MF
54402018-05-09 Max Filippov <jcmvbkbc@gmail.com>
5441
5442 * xtensa-linux-tdep.c (xtensa-tdep.h): New include.
5443 (xtensa_linux_init_abi): Limit tdep->num_regs by
5444 tdep->num_nopriv_regs.
5445 * xtensa-tdep.c (xtensa_derive_tdep): Calculate
5446 tdep->num_nopriv_regs and only copy it to tdep->num_regs if it's
5447 not initialized.
5448
7402fbca
SM
54492018-05-08 Simon Marchi <simon.marchi@ericsson.com>
5450
5451 * unittests/string_view-selftests.c: Define GNULIB_NAMESPACE.
5452
8ee22052
AB
54532018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
5454
5455 * common/x86-xstate.h (I387_FCTRL_INIT_VAL): New constant.
5456 (I387_MXCSR_INIT_VAL): New constant.
5457 * amd64-tdep.c (amd64_supply_xsave): Only read state from xsave
5458 buffer if it was supplied by the inferior.
5459 * i387-tdep.c (i387_supply_fsave): Use I387_MXCSR_INIT_VAL.
5460 (i387_xsave_get_clear_bv): New function.
5461 (i387_supply_xsave): Only read x87 control registers from the
5462 xsave buffer if the feature is enabled, and the state will have
5463 been written, otherwise, provide a suitable default.
5464 (i387_collect_xsave): Pre-clear all registers in xsave buffer,
5465 including x87 control registers. Update control registers if they
5466 have changed from the default value, and mark features as enabled
5467 as required.
5468 * i387-tdep.h (i387_xsave_get_clear_bv): Declare.
5469
968ae51b
UW
54702018-05-08 Ulrich Weigand <uweigand@de.ibm.com>
5471
5472 * spu-tdep.c (info_spu_event_command): Fix output formatting.
5473
aff689d3
TT
54742018-05-07 Tom Tromey <tom@tromey.com>
5475
5476 * configure: Rebuild.
5477 * warning.m4 (AM_GDB_WARNINGS): Add -Wduplicated-cond.
5478
ce887586
TT
54792018-05-07 Tom Tromey <tom@tromey.com>
5480
5481 PR tdep/20362:
5482 * arm-tdep.c (arm_record_vfp_data_proc_insn): Properly mask off D
5483 bit. Use correct value for VDIV.
5484
85e26832
TT
54852018-05-04 Tom Tromey <tom@tromey.com>
5486
5487 * configure: Rebuild.
5488 * warning.m4 (AM_GDB_WARNINGS): Add -Wimplicit-fallthrough.
5489
449b1ac7
TT
54902018-05-04 Tom Tromey <tom@tromey.com>
5491
5492 * linux-record.c (record_linux_system_call) <case
5493 RECORD_SYS_RECVFROM>: Add "break".
5494
15c9ffd6
TT
54952018-05-04 Tom Tromey <tom@tromey.com>
5496
5497 * mi/mi-main.c (mi_cmd_trace_frame_collected) <REGISTERS_FORMAT>:
5498 Add missing "break".
5499 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals) <NO_FRAME_FILTERS>:
5500 Add missing "break".
5501
e3829d13
TT
55022018-05-04 Tom Tromey <tom@tromey.com>
5503
5504 * rs6000-tdep.c (ppc_process_record_op4)
5505 (ppc_process_record_op63): Add fall-through comment.
5506
da0e1563
TT
55072018-05-04 Tom Tromey <tom@tromey.com>
5508
5509 * i386-tdep.c (i386_process_record): Add fall-through comment.
5510
0019cd49
TT
55112018-05-04 Tom Tromey <tom@tromey.com>
5512
5513 * stabsread.c (define_symbol) <case 'p'>: Add fall-through
5514 comment.
5515
565e0eda
TT
55162018-05-04 Tom Tromey <tom@tromey.com>
5517
5518 * riscv-tdep.c (riscv_isa_xlen): Add fall-through comment.
5519 * utils.c (can_dump_core) <LIMIT_CUR>: Add fall-through comment.
5520 * eval.c (fetch_subexp_value) <MEMORY_ERROR>: Add fall-through
5521 comment.
5522 * d-valprint.c (d_val_print) <TYPE_CODE_STRUCT>: Add fall-through
5523 comment.
5524 * coffread.c (coff_symtab_read) <C_LABEL>: Add fall-through
5525 comment.
5526
621846f4
TT
55272018-05-04 Tom Tromey <tom@tromey.com>
5528
5529 * dwarf2loc.c (unimplemented): Add ATTRIBUTE_NORETURN.
5530
86a73007
TT
55312018-05-04 Tom Tromey <tom@tromey.com>
5532
5533 * s390-tdep.c (s390_process_record): Fix fall-through comments.
5534 * xcoffread.c (scan_xcoff_symtab): Move comment later.
5535 * symfile.c (section_is_mapped): Fix fall-through comment.
5536 * stabsread.c (define_symbol, read_member_functions): Fix
5537 fall-through comment.
5538 * s390-linux-tdep.c (s390_process_record): Fix fall-through
5539 comment.
5540 * remote.c (remote_wait_as): Fix fall-through comment.
5541 * p-exp.y (yylex): Fix fall-through comment.
5542 * nat/x86-dregs.c (x86_length_and_rw_bits): Fix fall-through
5543 comment.
5544 * msp430-tdep.c (msp430_gdbarch_init): Fix fall-through comment.
5545 * mdebugread.c (parse_partial_symbols): Fix fall-through comment.
5546 * jv-exp.y (yylex): Fix fall-through comment.
5547 * go-exp.y (lex_one_token): Fix fall-through comment.
5548 * gdbtypes.c (get_discrete_bounds, rank_one_type): Fix
5549 fall-through comment.
5550 * f-exp.y (yylex): Fix fall-through comment.
5551 * dwarf2read.c (process_die): Fix fall-through comments.
5552 * dbxread.c (process_one_symbol): Fix fall-through comment.
5553 * d-exp.y (lex_one_token): Fix fall-through comment.
5554 * cp-name-parser.y (yylex): Fix fall-through comment.
5555 * coffread.c (coff_symtab_read): Fix fall-through comment.
5556 * c-exp.y (lex_one_token): Fix fall-through comment.
5557 * arm-tdep.c (arm_decode_miscellaneous): Fix fall-through
5558 comment.
5559 * arch/arm.c (arm_instruction_changes_pc): Fix fall-through
5560 comment.
5561
56bcdbea
TT
55622018-05-04 Tom Tromey <tom@tromey.com>
5563
5564 PR python/22730:
5565 * NEWS: Mention gdb.execute change.
5566 * gdbcmd.h (execute_control_command): Don't declare.
5567 * python/python.c (execute_gdb_command): Use read_command_lines_1,
5568 execute_control_commands, execute_control_commands_to_string.
5569 * cli/cli-script.h (execute_control_commands)
5570 (execute_control_commands_to_string): Declare.
5571 (execute_control_command): Add from_tty parameter.
5572 * cli/cli-script.c (execute_control_commands)
5573 (execute_control_commands_to_string): New functions.
5574 (execute_user_command): Use execute_control_commands.
5575 (execute_control_command_1): Add "from_tty" parameter. Update.
5576 (execute_control_command): Likewise.
5577
a913fffb
TT
55782018-05-04 Tom Tromey <tom@tromey.com>
5579
5580 PR python/22731:
5581 * NEWS: Mention that breakpoint commands are writable.
5582 * python/py-breakpoint.c (bppy_set_commands): New function.
5583 (breakpoint_object_getset) <"commands">: Use it.
5584
60b3cef2
TT
55852018-05-04 Tom Tromey <tom@tromey.com>
5586
5587 * tracepoint.c (actions_command): Update.
5588 * mi/mi-cmd-break.c (mi_command_line_array)
5589 (mi_command_line_array_cnt, mi_command_line_array_ptr)
5590 (mi_read_next_line): Remove.
5591 (mi_cmd_break_commands): Update.
5592 * cli/cli-script.h (read_command_lines, read_command_lines_1): Use
5593 function_view.
5594 * cli/cli-script.c (get_command_line): Update.
5595 (process_next_line): Use function_view. Constify.
5596 (recurse_read_control_structure, read_command_lines)
5597 (read_command_lines_1): Change argument types to function_view.
5598 (do_define_command, document_command): Update.
5599 * breakpoint.h (check_tracepoint_command): Don't declare.
5600 * breakpoint.c (check_tracepoint_command): Remove.
5601 (commands_command_1, create_tracepoint_from_upload): Update.
5602
7a2c85f2
TT
56032018-05-04 Tom Tromey <tom@tromey.com>
5604
5605 PR gdb/11750:
5606 * cli/cli-script.h (enum command_control_type) <define_control>:
5607 New constant.
5608 * cli/cli-script.c (multi_line_command_p): Handle define_control.
5609 (build_command_line, execute_control_command_1)
5610 (process_next_line): Likewise.
5611 (do_define_command): New function, extracted from define_command.
5612 (define_command): Use it.
5613
295dc222
TT
56142018-05-04 Tom Tromey <tom@tromey.com>
5615
5616 * tracepoint.c (actions_command): Update.
5617 * cli/cli-script.h (read_command_lines): Update.
5618 * cli/cli-script.c (read_command_lines): Constify prompt_arg.
5619 (MAX_TMPBUF): Remove define.
5620 (define_command): Use string_printf.
5621 (document_command): Likewise.
5622 * breakpoint.c (commands_command_1): Update.
5623
1263a9d5
TT
56242018-05-04 Tom Tromey <tom@tromey.com>
5625
5626 * top.c (execute_command): Update.
5627 * cli/cli-script.h (print_command_lines): Now varargs.
5628 * cli/cli-script.c (print_command_lines): Now varargs.
5629 (execute_control_command_1) <case while_control, case if_control>:
5630 Update.
5631
12973681
TT
56322018-05-04 Tom Tromey <tom@tromey.com>
5633
5634 * tracepoint.c (all_tracepoint_actions): Rename from
5635 all_tracepoint_actions_and_cleanup. Change return type.
5636 (actions_command, encode_actions_1, encode_actions)
5637 (trace_dump_actions, tdump_command): Update.
5638 * remote.c (remote_download_command_source): Update.
5639 * python/python.c (gdbpy_eval_from_control_command)
5640 (python_command, python_interactive_command): Update.
5641 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
5642 * guile/guile.c (guile_command)
5643 (gdbscm_eval_from_control_command, guile_command): Update.
5644 * compile/compile.c (compile_code_command)
5645 (compile_print_command, compile_to_object): Update.
5646 * cli/cli-script.h (struct command_lines_deleter): New.
5647 (counted_command_line): New typedef.
5648 (struct command_line): Add constructor, destructor.
5649 <body_list>: Remove.
5650 <body_list_0, body_list_1>: New members.
5651 (command_line_up): Remove typedef.
5652 (read_command_lines, read_command_lines_1, get_command_line):
5653 Update.
5654 (copy_command_lines): Don't declare.
5655 * cli/cli-script.c (build_command_line): Use "new".
5656 (get_command_line): Return counted_command_line.
5657 (print_command_lines, execute_user_command)
5658 (execute_control_command_1, while_command, if_command): Update.
5659 (realloc_body_list): Remove.
5660 (process_next_line, recurse_read_control_structure): Update.
5661 (read_command_lines, read_command_lines_1): Return counted_command_line.
5662 (free_command_lines): Use "delete".
5663 (copy_command_lines): Remove.
5664 (define_command, document_command, show_user_1): Update.
5665 * cli/cli-decode.h (struct cmd_list_element) <user_commands>: Now
5666 a counted_command_line.
5667 * breakpoint.h (counted_command_line): Remove typedef.
5668 (breakpoint_set_commands): Update.
5669 * breakpoint.c (check_no_tracepoint_commands)
5670 (validate_commands_for_breakpoint): Update.
5671 (breakpoint_set_commands): Change commands to be a
5672 counted_command_line.
5673 (commands_command_1, update_dprintf_command_list)
5674 (create_tracepoint_from_upload): Update.
5675
e2fc72e2
TT
56762018-05-04 Tom Tromey <tom@tromey.com>
5677
5678 * cli/cli-decode.h (cmd_list_element): New constructor.
5679 (~cmd_list_element): New destructor.
5680 (struct cmd_list_element): Add initializers.
5681 * cli/cli-decode.c (do_add_cmd): Use "new".
5682 (delete_cmd): Use "delete".
5683
a3b60e45
JK
56842018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5685 Pedro Alves <palves@redhat.com>
5686
5687 PR breakpoints/19806 and support for PR external/20207.
5688 * NEWS: Mention Aarch64 watchpoint improvements.
5689 * aarch64-linux-nat.c (aarch64_linux_stopped_data_address): Fix missed
5690 watchpoints and PR external/20207 watchpoints.
5691 * nat/aarch64-linux-hw-point.c
5692 (kernel_supports_any_contiguous_range): New.
5693 (aarch64_watchpoint_offset): New.
5694 (aarch64_watchpoint_length): Support PR external/20207 watchpoints.
5695 (aarch64_point_encode_ctrl_reg): New parameter offset, new asserts.
5696 (aarch64_point_is_aligned): Support PR external/20207 watchpoints.
5697 (aarch64_align_watchpoint): New parameters aligned_offset_p and
5698 next_addr_orig_p. Support PR external/20207 watchpoints.
5699 (aarch64_downgrade_regs): New.
5700 (aarch64_dr_state_insert_one_point): New parameters offset and
5701 addr_orig.
5702 (aarch64_dr_state_remove_one_point): Likewise.
5703 (aarch64_handle_breakpoint): Update caller.
5704 (aarch64_handle_aligned_watchpoint): Likewise.
5705 (aarch64_handle_unaligned_watchpoint): Support addr_orig and
5706 aligned_offset.
5707 (aarch64_linux_set_debug_regs): Remove const from state. Call
5708 aarch64_downgrade_regs.
5709 (aarch64_show_debug_reg_state): Print also dr_addr_orig_wp.
5710 * nat/aarch64-linux-hw-point.h (DR_CONTROL_LENGTH): Rename to ...
5711 (DR_CONTROL_MASK): ... this.
5712 (struct aarch64_debug_reg_state): New field dr_addr_orig_wp.
5713 (unsigned int aarch64_watchpoint_offset): New prototype.
5714 (aarch64_linux_set_debug_regs): Remove const from state.
5715 * utils.c (align_up, align_down): Move to ...
5716 * common/common-utils.c (align_up, align_down): ... here.
5717 * utils.h (align_up, align_down): Move to ...
5718 * common/common-utils.h (align_up, align_down): ... here.
5719
05bc7456
JB
57202018-05-04 Joel Brobecker <brobecker@adacore.com>
5721
5722 * sparc-tdep.c (sparc_structure_return_p): Re-implement to
5723 match the ABI as summarized in GCC's gcc/config/sparc/sparc.c.
5724 (sparc_arg_by_memory_p): Renamed from sparc_arg_on_registers_p.
5725 Re-implement to match the ABI as summarized in GCC's
5726 gcc/config/sparc/sparc.c. All callers updated.
5727 (sparc32_store_arguments): Remove assertion.
5728
2f433492
TT
57292018-05-04 Tom Tromey <tom@tromey.com>
5730
5731 * printcmd.c: Don't include tui.h.
5732 (decode_format): Use skip_spaces.
5733
9be2ae8f
TT
57342018-05-04 Tom Tromey <tom@tromey.com>
5735
5736 PR gdb/22619:
5737 * printcmd.c (last_count): New global.
5738 (x_command): Use saved count when repeating.
5739
f0b3976b
TT
57402018-05-04 Tom Tromey <tom@tromey.com>
5741
5742 * nto-procfs.c (do_closedir_cleanup): Remove.
5743 (procfs_pidlist): Use gdb_dir_up.
5744 * procfs.c (do_closedir_cleanup): Remove.
5745 (proc_update_threads): Use gdb_dir_up.
5746 * common/filestuff.h (struct gdb_dir_deleter): New.
5747 (gdb_dir_up): New typedef.
5748
862d101a
TT
57492018-05-04 Tom Tromey <tom@tromey.com>
5750
5751 * ada-lang.c (print_mention_exception): Use std::string.
5752
cb7de75e
TT
57532018-05-04 Tom Tromey <tom@tromey.com>
5754
5755 * ada-lang.c (create_excep_cond_exprs): Update.
5756 (ada_exception_catchpoint_cond_string): Use std::string.
5757
49d83361
TT
57582018-05-04 Tom Tromey <tom@tromey.com>
5759
5760 * ada-lang.c (xget_renaming_scope): Return std::string.
5761 (old_renaming_is_invisible): Update.
5762
ade72a34
TT
57632018-05-04 Tom Tromey <tom@tromey.com>
5764
5765 * bfd-target.c (target_bfd::m_bfd): Now a gdb_bfd_ref_ptr.
5766 (target_bfd::target_bfd, target_bfd::~target_bfd): Update.
5767
2be4d7f0
UW
57682018-05-04 Ulrich Weigand <uweigand@de.ibm.com>
5769
5770 * spu-linux-nat.c (spu_linux_nat_target::wait): Fix syntax error.
5771
69b6ecb0
TT
57722018-05-04 Tom Tromey <tom@tromey.com>
5773
5774 * remote.c (remote_query_supported_append): Change type.
5775 (remote_check_symbols): Update.
5776
bf27f0e2
PP
57772018-05-04 Paul Pluzhnikov <ppluzhnikov@google.com>
5778
5779 PR gdb/11420
5780 * configure.ac: Prepend libpython.
5781 * python/python-config.py: Likewise.
5782 * configure: Regenerate.
5783
4ea17de8
SM
57842018-05-03 Simon Marchi <simon.marchi@ericsson.com>
5785
5786 * Makefile.in (%.c: %.l): Use -t instead of --stdout.
5787
bd732259
PA
57882018-05-03 Pedro Alves <palves@redhat.com>
5789
5790 * s390-linux-nat.c
5791 (s390_linux_nat_target::have_continuable_watchpoint): Mark with
5792 override. Write 'true' instead of '1'.
5793 (s390_linux_nat_target::watchpoint_addr_within_range): Remove
5794 declaration.
5795
d9f719f1
PA
57962018-05-02 Pedro Alves <palves@redhat.com>
5797
5798 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Use
5799 add_inf_child_target.
5800 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Use
5801 add_inf_child_target.
5802 * aix-thread.c (aix_thread_target_info): New.
5803 (aix_thread_target) <shortname, longname, doc>: Delete.
5804 <info>: New.
5805 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Use
5806 add_inf_child_target.
5807 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Use
5808 add_inf_child_target.
5809 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Use
5810 add_inf_child_target.
5811 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Use
5812 add_inf_child_target.
5813 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Use
5814 add_inf_child_target.
5815 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Use
5816 add_inf_child_target.
5817 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Use
5818 add_inf_child_target.
5819 * arm-linux-nat.c (_initialize_arm_linux_nat): Use
5820 add_inf_child_target.
5821 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Use
5822 add_inf_child_target.
5823 * bfd-target.c (target_bfd_target_info): New.
5824 (target_bfd) <shortname, longname, doc>: Delete.
5825 <info>: New.
5826 * bsd-kvm.c (bsd_kvm_target_info): New.
5827 (bsd_kvm_target) <shortname, longname, doc>: Delete.
5828 <info>: New.
5829 (bsd_kvm_target::open): Rename to ...
5830 (bsd_kvm_target_open): ... this. Adjust.
5831 * bsd-uthread.c (bsd_uthread_target_info): New.
5832 (bsd_uthread_target) <shortname, longname, doc>: Delete.
5833 <info>: New.
5834 * corefile.c (core_file_command): Adjust.
5835 * corelow.c (core_target_info): New.
5836 (core_target) <shortname, longname, doc>: Delete.
5837 <info>: New.
5838 (core_target::open): Rename to ...
5839 (core_target_open): ... this. Adjust.
5840 * ctf.c (ctf_target_info): New.
5841 (ctf_target) <shortname, longname, doc>: Delete.
5842 <info>: New.
5843 (ctf_target::open): Rename to ...
5844 (ctf_target_open): ... this.
5845 (_initialize_ctf): Adjust.
5846 * exec.c (exec_target_info): New.
5847 (exec_target) <shortname, longname, doc>: Delete.
5848 <info>: New.
5849 (exec_target::open): Rename to ...
5850 (exec_target_open): ... this.
5851 * gdbcore.h (core_target_open): Declare.
5852 * go32-nat.c (_initialize_go32_nat): Use add_inf_child_target.
5853 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Use
5854 add_inf_child_target.
5855 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Use
5856 add_inf_child_target.
5857 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Use
5858 add_inf_child_target.
5859 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Use
5860 add_inf_child_target.
5861 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Use
5862 add_inf_child_target.
5863 * i386-gnu-nat.c (_initialize_i386gnu_nat): Use
5864 add_inf_child_target.
5865 * i386-linux-nat.c (_initialize_i386_linux_nat): Use
5866 add_inf_child_target.
5867 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Use
5868 add_inf_child_target.
5869 * i386-obsd-nat.c (_initialize_i386obsd_nat): Use
5870 add_inf_child_target.
5871 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Use
5872 add_inf_child_target.
5873 * inf-child.c (inf_child_target_info): New.
5874 (inf_child_target::info): New.
5875 (inf_child_open_target): Remove 'target' parameter. Use
5876 get_native_target instead.
5877 (inf_child_target::open): Delete.
5878 (add_inf_child_target): New.
5879 * inf-child.h (inf_child_target) <shortname, longname, doc, open>:
5880 Delete.
5881 <info>: New.
5882 (add_inf_child_target): Declare.
5883 (inf_child_open_target): Declare.
5884 * linux-thread-db.c (thread_db_target_info): New.
5885 (thread_db_target) <shortname, longname, doc>: Delete.
5886 <info>: New.
5887 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Use
5888 add_inf_child_target.
5889 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Use
5890 add_inf_child_target.
5891 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Use
5892 add_inf_child_target.
5893 * m88k-bsd-nat.c (_initialize_m88kbsd_nat): Use
5894 add_inf_child_target.
5895 * make-target-delegates (print_class): Adjust.
5896 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Use
5897 add_inf_child_target.
5898 * mips-linux-nat.c (_initialize_mips_linux_nat): Use
5899 add_inf_child_target.
5900 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Use
5901 add_inf_child_target.
5902 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Use
5903 add_inf_child_target.
5904 * nto-procfs.c (nto_native_target_info): New.
5905 (nto_procfs_target_native) <shortname, longname, doc>:
5906 Delete.
5907 <info>: New.
5908 (nto_procfs_target_info): New.
5909 (nto_procfs_target_procfs) <shortname, longname, doc>:
5910 Delete.
5911 <info>: New.
5912 (init_procfs_targets): Adjust.
5913 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Use
5914 add_inf_child_target.
5915 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Use
5916 add_inf_child_target.
5917 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Use
5918 add_inf_child_target.
5919 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Use
5920 add_inf_child_target.
5921 * ravenscar-thread.c (ravenscar_target_info): New.
5922 (ravenscar_thread_target) <shortname, longname, doc>:
5923 Delete.
5924 <info>: New.
5925 * record-btrace.c (record_btrace_target_info):
5926 (record_btrace_target) <shortname, longname, doc>: Delete.
5927 <info>: New.
5928 (record_btrace_target::open): Rename to ...
5929 (record_btrace_target_open): ... this. Adjust.
5930 * record-full.c (record_longname, record_doc): New.
5931 (record_full_base_target) <shortname, longname, doc>: Delete.
5932 <info>: New.
5933 (record_full_target_info): New.
5934 (record_full_target): <shortname>: Delete.
5935 <info>: New.
5936 (record_full_core_open_1, record_full_open_1): Update comments.
5937 (record_full_base_target::open): Rename to ...
5938 (record_full_open): ... this.
5939 (cmd_record_full_restore): Update.
5940 (_initialize_record_full): Update.
5941 * remote-sim.c (remote_sim_target_info): New.
5942 (gdbsim_target) <shortname, longname, doc>: Delete.
5943 <info>: New.
5944 (gdbsim_target::open): Rename to ...
5945 (gdbsim_target_open): ... this.
5946 (_initialize_remote_sim): Adjust.
5947 * remote.c (remote_doc): New.
5948 (remote_target_info): New.
5949 (remote_target) <shortname, longname, doc>: Delete.
5950 <info>: New.
5951 (extended_remote_target_info): New.
5952 (extended_remote_target) <shortname, longname, doc>: Delete.
5953 <info>: New.
5954 (remote_target::open_1): Make static. Adjust.
5955 * rs6000-nat.c (_initialize_rs6000_nat): Use add_inf_child_target.
5956 * s390-linux-nat.c (_initialize_s390_nat): Use
5957 add_inf_child_target.
5958 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Use
5959 add_inf_child_target.
5960 * sol-thread.c (thread_db_target_info): New.
5961 (sol_thread_target) <shortname, longname, doc>: Delete.
5962 <info>: New.
5963 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Use
5964 add_inf_child_target.
5965 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Use
5966 add_inf_child_target.
5967 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Use
5968 add_inf_child_target.
5969 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Use
5970 add_inf_child_target.
5971 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Use
5972 add_inf_child_target.
5973 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Use
5974 add_inf_child_target.
5975 * spu-linux-nat.c (_initialize_spu_nat): Use
5976 add_inf_child_target.
5977 * spu-multiarch.c (spu_multiarch_target_info): New.
5978 (spu_multiarch_target) <shortname, longname, doc>: Delete.
5979 <info>: New.
5980 * target-delegates.c: Regenerate.
5981 * target.c: Include <unordered_map>.
5982 (target_ops_p): Delete.
5983 (DEF_VEC_P(target_ops_p)): Delete.
5984 (target_factories): New.
5985 (test_target_info): New.
5986 (test_target_ops::info): New.
5987 (open_target): Adjust to use target_factories.
5988 (add_target_with_completer): Rename to ...
5989 (add_target): ... this. Change prototype. Register target_info
5990 and open callback in target_factories. Register target_info in
5991 command context instead of target_ops.
5992 (add_target): Delete old implementation.
5993 (add_deprecated_target_alias): Change prototype. Adjust.
5994 (the_native_target): New.
5995 (set_native_target, get_native_target): New.
5996 (find_default_run_target): Use the_native_target.
5997 (find_attach_target, find_run_target): Simplify.
5998 (target_ops::open): Delete.
5999 (dummy_target_info): New.
6000 (dummy_target::shortname, dummy_target::longname)
6001 (dummy_target::doc): Delete.
6002 (dummy_target::info): New.
6003 (debug_target::shortname, debug_target::longname)
6004 (debug_target::doc): Delete.
6005 (debug_target::info): New.
6006 * target.h (struct target_info): New.
6007 (target_ops::~target_ops): Add comment.
6008 (target_ops::info): New.
6009 (target_ops::shortname, target_ops::longname, target_ops::doc): No
6010 longer virtual. Implement in terms of target_info.
6011 (set_native_target, get_native_target): Declare.
6012 (target_open_ftype): New.
6013 (add_target, add_target_with_completer)
6014 (add_deprecated_target_alias): Change prototype.
6015 (test_target) <shortname, longname, doc>: Delete.
6016 <info>: New.
6017 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Use
6018 add_inf_child_target.
6019 * tracefile-tfile.c (tfile_target_info): New.
6020 (tfile_target) <shortname, longname, doc>: Delete.
6021 <info>: New.
6022 (tfile_target::open): Rename to ...
6023 (tfile_target_open): ... this.
6024 (_initialize_tracefile_tfile): Adjust.
6025 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Use
6026 add_inf_child_target.
6027 * windows-nat.c (_initialize_windows_nat): Use
6028 add_inf_child_target.
6029 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Use
6030 add_inf_child_target.
6031
135340af
PA
60322018-05-02 Pedro Alves <palves@redhat.com>
6033
6034 * linux-nat.h (linux_nat_target) <low_new_thread,
6035 low_delete_thread, low_new_fork, low_forget_process,
6036 low_prepare_to_resume, low_siginfo_fixup, low_status_is_event>:
6037 New virtual methods.
6038 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
6039 (linux_nat_new_fork_ftype, linux_nat_set_new_fork)
6040 (linux_nat_forget_process_ftype, linux_nat_set_forget_process)
6041 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
6042 (linux_nat_set_prepare_to_resume, linux_nat_set_status_is_event):
6043 Delete.
6044 * linux-fork.c (delete_fork): Adjust to call low method.
6045 * linux-nat.c (linux_nat_new_thread, linux_nat_delete_thread)
6046 (linux_nat_new_fork, linux_nat_forget_process_hook)
6047 (linux_nat_prepare_to_resume, linux_nat_siginfo_fixup)
6048 (linux_nat_status_is_event):
6049 (linux_nat_target::follow_fork, lwp_free, add_lwp, detach_one_lwp)
6050 (linux_resume_one_lwp_throw, linux_handle_extended_wait): Adjust
6051 to call low method.
6052 (sigtrap_is_event): Rename to ...
6053 (linux_nat_target::low_status_is_event): ... this.
6054 (linux_nat_set_status_is_event): Delete.
6055 (save_stop_reason, linux_nat_wait_1)
6056 (linux_nat_target::mourn_inferior, siginfo_fixup): Adjust to call
6057 low methods.
6058 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
6059 (linux_nat_set_new_fork, linux_nat_set_forget_process)
6060 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
6061 (linux_nat_set_prepare_to_resume): Delete.
6062 * aarch64-linux-nat.c: All linux_nat_set_* callbacks converted to
6063 low virtual methods.
6064 * amd64-linux-nat.c: Likewise.
6065 * arm-linux-nat.c: Likewise.
6066 * i386-linux-nat.c: Likewise.
6067 * ia64-linux-nat.c: Likewise.
6068 * mips-linux-nat.c: Likewise.
6069 * ppc-linux-nat.c: Likewise.
6070 * s390-linux-nat.c: Likewise.
6071 * sparc64-linux-nat.c: Likewise.
6072 * x86-linux-nat.c: Likewise.
6073 * x86-linux-nat.h: Include "nat/x86-linux.h".
6074 (x86_linux_nat_target) <low_new_fork, low_forget_process,
6075 low_prepare_to_resume, low_new_thread, low_delete_thread>:
6076 Override methods.
6077
57810aa7
PA
60782018-05-02 Pedro Alves <palves@redhat.com>
6079
6080 * target.h (target_ops)
6081 <stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
6082 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint,
6083 stopped_by_watchpoint, have_continuable_watchpoint,
6084 stopped_data_address, watchpoint_addr_within_range,
6085 can_accel_watchpoint_condition, can_run, thread_alive,
6086 has_all_memory, has_memory, has_stack, has_registers,
6087 has_execution, can_async_p, is_async_p, supports_non_stop,
6088 always_non_stop_p, can_execute_reverse, supports_multi_process,
6089 supports_enable_disable_tracepoint,
6090 supports_disable_randomization, supports_string_tracing,
6091 supports_evaluation_of_breakpoint_conditions,
6092 can_run_breakpoint_commands, filesystem_is_local,
6093 can_download_tracepoint, get_trace_state_variable_value,
6094 set_trace_notes, get_tib_address, use_agent, can_use_agent,
6095 record_is_replaying, record_will_replay,
6096 augmented_libraries_svr4_read>: Adjust to return bool.
6097 * aarch64-linux-nat.c: All implementations adjusted.
6098 * aix-thread.c: All implementations adjusted.
6099 * arm-linux-nat.c: All implementations adjusted.
6100 * breakpoint.c: All implementations adjusted.
6101 * bsd-kvm.c: All implementations adjusted.
6102 * bsd-uthread.c: All implementations adjusted.
6103 * corelow.c: All implementations adjusted.
6104 * ctf.c: All implementations adjusted.
6105 * darwin-nat.c: All implementations adjusted.
6106 * darwin-nat.h: All implementations adjusted.
6107 * exec.c: All implementations adjusted.
6108 * fbsd-nat.c: All implementations adjusted.
6109 * fbsd-nat.h: All implementations adjusted.
6110 * gnu-nat.c: All implementations adjusted.
6111 * gnu-nat.h: All implementations adjusted.
6112 * go32-nat.c: All implementations adjusted.
6113 * ia64-linux-nat.c: All implementations adjusted.
6114 * inf-child.c: All implementations adjusted.
6115 * inf-child.h: All implementations adjusted.
6116 * inf-ptrace.c: All implementations adjusted.
6117 * inf-ptrace.h: All implementations adjusted.
6118 * linux-nat.c: All implementations adjusted.
6119 * linux-nat.h: All implementations adjusted.
6120 * mips-linux-nat.c: All implementations adjusted.
6121 * nto-procfs.c: All implementations adjusted.
6122 * ppc-linux-nat.c: All implementations adjusted.
6123 * procfs.c: All implementations adjusted.
6124 * ravenscar-thread.c: All implementations adjusted.
6125 * record-btrace.c: All implementations adjusted.
6126 * record-full.c: All implementations adjusted.
6127 * remote-sim.c: All implementations adjusted.
6128 * remote.c: All implementations adjusted.
6129 * s390-linux-nat.c: All implementations adjusted.
6130 * sol-thread.c: All implementations adjusted.
6131 * spu-multiarch.c: All implementations adjusted.
6132 * target-delegates.c: All implementations adjusted.
6133 * target.c: All implementations adjusted.
6134 * target.h: All implementations adjusted.
6135 * tracefile-tfile.c: All implementations adjusted.
6136 * tracefile.c: All implementations adjusted.
6137 * tracefile.h: All implementations adjusted.
6138 * windows-nat.c: All implementations adjusted.
6139 * x86-linux-nat.h: All implementations adjusted.
6140 * x86-nat.h: All implementations adjusted.
6141
ad6a4e2d
PA
61422018-05-02 Pedro Alves <palves@redhat.com>
6143
6144 * make-target-delegates (scan_target_h): Don't trim lines here.
6145 Replace sequences of tabs and/or whitespace with a single
6146 whitespace.
6147 (top level, parsing methods): Trim each line before processing it
6148 here.
6149
f6ac5f3d
PA
61502018-05-02 Pedro Alves <palves@redhat.com>
6151 John Baldwin <jhb@freebsd.org>
6152
6153 * target.h (enum strata) <debug_stratum>: New.
6154 (struct target_ops) <all delegation methods>: Replace by C++
6155 virtual methods, and drop "to_" prefix. All references updated
6156 throughout.
6157 <to_shortname, to_longname, to_doc, to_data,
6158 to_have_steppable_watchpoint, to_have_continuable_watchpoint,
6159 to_has_thread_control, to_attach_no_wait>: Delete, replaced by
6160 virtual methods. All references updated throughout.
6161 <can_attach, supports_terminal_ours, can_create_inferior,
6162 get_thread_control_capabilities, attach_no_wait>: New
6163 virtual methods.
6164 <insert_breakpoint, remove_breakpoint>: Now
6165 TARGET_DEFAULT_NORETURN methods.
6166 <info_proc>: Now returns bool.
6167 <to_magic>: Delete.
6168 (OPS_MAGIC): Delete.
6169 (current_target): Delete. All references replaced by references
6170 to ...
6171 (target_stack): ... this. New.
6172 (target_shortname, target_longname): Adjust.
6173 (target_can_run): Now a function declaration.
6174 (default_child_has_all_memory, default_child_has_memory)
6175 (default_child_has_stack, default_child_has_registers)
6176 (default_child_has_execution): Remove target_ops parameter.
6177 (complete_target_initialization): Delete.
6178 (memory_breakpoint_target): New template class.
6179 (test_target_ops): Refactor as a C++ class with virtual methods.
6180 * make-target-delegates (NAME_PART): Tighten.
6181 (POINTER_PART, CP_SYMBOL): New.
6182 (SIMPLE_RETURN_PART): Reimplement.
6183 (VEC_RETURN_PART): Expect less.
6184 (RETURN_PART, VIRTUAL_PART): New.
6185 (METHOD): Adjust to C++ virtual methods.
6186 (scan_target_h): Remove reference to C99.
6187 (dname): Output "target_ops::" prefix.
6188 (write_function_header): Adjust to output a C++ class method.
6189 (write_declaration): New.
6190 (write_delegator): Adjust to output a C++ class method.
6191 (tdname): Output "dummy_target::" prefix.
6192 (write_tdefault, write_debugmethod): Adjust to output a C++ class
6193 method.
6194 (tdefault_names, debug_names): Delete.
6195 (return_types, tdefaults, styles, argtypes_array): New.
6196 (top level): All methods are delegators.
6197 (print_class): New.
6198 (top level): Print dummy_target and debug_target classes.
6199 * target-delegates.c: Regenerate.
6200 * target-debug.h (target_debug_print_enum_info_proc_what)
6201 (target_debug_print_thread_control_capabilities)
6202 (target_debug_print_thread_info_p): New.
6203 * target.c (dummy_target): Delete.
6204 (the_dummy_target, the_debug_target): New.
6205 (target_stack): Now extern.
6206 (set_targetdebug): Push/unpush debug target.
6207 (default_child_has_all_memory, default_child_has_memory)
6208 (default_child_has_stack, default_child_has_registers)
6209 (default_child_has_execution): Remove target_ops parameter.
6210 (complete_target_initialization): Delete.
6211 (add_target_with_completer): No longer call
6212 complete_target_initialization.
6213 (target_supports_terminal_ours): Use regular delegation.
6214 (update_current_target): Delete.
6215 (push_target): No longer check magic number. Don't call
6216 update_current_target.
6217 (unpush_target): Don't call update_current_target.
6218 (target_is_pushed): No longer check magic number.
6219 (target_require_runnable): Skip for all stratums over
6220 process_stratum.
6221 (target_ops::info_proc): New.
6222 (target_info_proc): Use find_target_at and
6223 find_default_run_target.
6224 (target_supports_disable_randomization): Use regular delegation.
6225 (target_get_osdata): Use find_target_at.
6226 (target_ops::open, target_ops::close, target_ops::can_attach)
6227 (target_ops::attach, target_ops::can_create_inferior)
6228 (target_ops::create_inferior, target_ops::can_run)
6229 (target_can_run): New.
6230 (default_fileio_target): Use regular delegation.
6231 (target_ops::fileio_open, target_ops::fileio_pwrite)
6232 (target_ops::fileio_pread, target_ops::fileio_fstat)
6233 (target_ops::fileio_close, target_ops::fileio_unlink)
6234 (target_ops::fileio_readlink): New.
6235 (target_fileio_open_1, target_fileio_unlink)
6236 (target_fileio_readlink): Always call the target method. Handle
6237 FILEIO_ENOSYS.
6238 (return_zero, return_zero_has_execution): Delete.
6239 (init_dummy_target): Delete.
6240 (dummy_target::dummy_target, dummy_target::shortname)
6241 (dummy_target::longname, dummy_target::doc)
6242 (debug_target::debug_target, debug_target::shortname)
6243 (debug_target::longname, debug_target::doc): New.
6244 (target_supports_delete_record): Use regular delegation.
6245 (setup_target_debug): Delete.
6246 (maintenance_print_target_stack): Skip debug_stratum.
6247 (initialize_targets): Instantiate the_dummy_target and
6248 the_debug_target.
6249 * auxv.c (target_auxv_parse): Remove 'ops' parameter. Adjust to
6250 use target_stack.
6251 (target_auxv_search, fprint_target_auxv): Adjust.
6252 (info_auxv_command): Adjust to use target_stack.
6253 * auxv.h (target_auxv_parse): Remove 'ops' parameter.
6254 * exceptions.c (print_flush): Handle a NULL target_stack.
6255 * regcache.c (target_ops_no_register): Refactor as class with
6256 virtual methods.
6257
6258 * exec.c (exec_target): New class.
6259 (exec_ops): Now an exec_target.
6260 (exec_open, exec_close_1, exec_get_section_table)
6261 (exec_xfer_partial, exec_files_info, exec_has_memory)
6262 (exec_make_note_section): Refactor as exec_target methods.
6263 (exec_file_clear, ignore, exec_remove_breakpoint, init_exec_ops):
6264 Delete.
6265 (exec_target::find_memory_regions): New.
6266 (_initialize_exec): Don't call init_exec_ops.
6267 * gdbcore.h (exec_file_clear): Delete.
6268
6269 * corefile.c (core_target): Delete.
6270 (core_file_command): Adjust.
6271 * corelow.c (core_target): New class.
6272 (the_core_target): New.
6273 (core_close): Remove target_ops parameter.
6274 (core_close_cleanup): Adjust.
6275 (core_target::close): New.
6276 (core_open, core_detach, get_core_registers, core_files_info)
6277 (core_xfer_partial, core_thread_alive, core_read_description)
6278 (core_pid_to_str, core_thread_name, core_has_memory)
6279 (core_has_stack, core_has_registers, core_info_proc): Rework as
6280 core_target methods.
6281 (ignore, core_remove_breakpoint, init_core_ops): Delete.
6282 (_initialize_corelow): Initialize the_core_target.
6283 * gdbcore.h (core_target): Delete.
6284 (the_core_target): New.
6285
6286 * ctf.c: (ctf_target): New class.
6287 (ctf_ops): Now a ctf_target.
6288 (ctf_open, ctf_close, ctf_files_info, ctf_fetch_registers)
6289 (ctf_xfer_partial, ctf_get_trace_state_variable_value)
6290 (ctf_trace_find, ctf_traceframe_info): Refactor as ctf_target
6291 methods.
6292 (init_ctf_ops): Delete.
6293 (_initialize_ctf): Don't call it.
6294 * tracefile-tfile.c (tfile_target): New class.
6295 (tfile_ops): Now a tfile_target.
6296 (tfile_open, tfile_close, tfile_files_info)
6297 (tfile_get_tracepoint_status, tfile_trace_find)
6298 (tfile_fetch_registers, tfile_xfer_partial)
6299 (tfile_get_trace_state_variable_value, tfile_traceframe_info):
6300 Refactor as tfile_target methods.
6301 (tfile_xfer_partial_features): Remove target_ops parameter.
6302 (init_tfile_ops): Delete.
6303 (_initialize_tracefile_tfile): Don't call it.
6304 * tracefile.c (tracefile_has_all_memory, tracefile_has_memory)
6305 (tracefile_has_stack, tracefile_has_registers)
6306 (tracefile_thread_alive, tracefile_get_trace_status): Refactor as
6307 tracefile_target methods.
6308 (init_tracefile_ops): Delete.
6309 (tracefile_target::tracefile_target): New.
6310 * tracefile.h: Include "target.h".
6311 (tracefile_target): New class.
6312 (init_tracefile_ops): Delete.
6313
6314 * spu-multiarch.c (spu_multiarch_target): New class.
6315 (spu_ops): Now a spu_multiarch_target.
6316 (spu_thread_architecture, spu_region_ok_for_hw_watchpoint)
6317 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
6318 (spu_search_memory, spu_mourn_inferior): Refactor as
6319 spu_multiarch_target methods.
6320 (init_spu_ops): Delete.
6321 (_initialize_spu_multiarch): Remove references to init_spu_ops,
6322 complete_target_initialization.
6323
6324 * ravenscar-thread.c (ravenscar_thread_target): New class.
6325 (ravenscar_ops): Now a ravenscar_thread_target.
6326 (ravenscar_resume, ravenscar_wait, ravenscar_update_thread_list)
6327 (ravenscar_thread_alive, ravenscar_pid_to_str)
6328 (ravenscar_fetch_registers, ravenscar_store_registers)
6329 (ravenscar_prepare_to_store, ravenscar_stopped_by_sw_breakpoint)
6330 (ravenscar_stopped_by_hw_breakpoint)
6331 (ravenscar_stopped_by_watchpoint, ravenscar_stopped_data_address)
6332 (ravenscar_mourn_inferior, ravenscar_core_of_thread)
6333 (ravenscar_get_ada_task_ptid): Refactor as ravenscar_thread_target
6334 methods.
6335 (init_ravenscar_thread_ops): Delete.
6336 (_initialize_ravenscar): Remove references to
6337 init_ravenscar_thread_ops and complete_target_initialization.
6338
6339 * bsd-uthread.c (bsd_uthread_ops_hack): Delete.
6340 (bsd_uthread_target): New class.
6341 (bsd_uthread_ops): Now a bsd_uthread_target.
6342 (bsd_uthread_activate): Adjust to refer to bsd_uthread_ops.
6343 (bsd_uthread_close, bsd_uthread_mourn_inferior)
6344 (bsd_uthread_fetch_registers, bsd_uthread_store_registers)
6345 (bsd_uthread_wait, bsd_uthread_resume, bsd_uthread_thread_alive)
6346 (bsd_uthread_update_thread_list, bsd_uthread_extra_thread_info)
6347 (bsd_uthread_pid_to_str): Refactor as bsd_uthread_target methods.
6348 (bsd_uthread_target): Delete function.
6349 (_initialize_bsd_uthread): Remove reference to
6350 complete_target_initialization.
6351
6352 * bfd-target.c (target_bfd_data): Delete. Fields folded into ...
6353 (target_bfd): ... this new class.
6354 (target_bfd_xfer_partial, target_bfd_get_section_table)
6355 (target_bfd_close): Refactor as target_bfd methods.
6356 (target_bfd::~target_bfd): New.
6357 (target_bfd_reopen): Adjust.
6358 (target_bfd::close): New.
6359
6360 * record-btrace.c (record_btrace_target): New class.
6361 (record_btrace_ops): Now a record_btrace_target.
6362 (record_btrace_open, record_btrace_stop_recording)
6363 (record_btrace_disconnect, record_btrace_close)
6364 (record_btrace_async, record_btrace_info)
6365 (record_btrace_insn_history, record_btrace_insn_history_range)
6366 (record_btrace_insn_history_from, record_btrace_call_history)
6367 (record_btrace_call_history_range)
6368 (record_btrace_call_history_from, record_btrace_record_method)
6369 (record_btrace_is_replaying, record_btrace_will_replay)
6370 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
6371 (record_btrace_remove_breakpoint, record_btrace_fetch_registers)
6372 (record_btrace_store_registers, record_btrace_prepare_to_store)
6373 (record_btrace_to_get_unwinder)
6374 (record_btrace_to_get_tailcall_unwinder, record_btrace_resume)
6375 (record_btrace_commit_resume, record_btrace_wait)
6376 (record_btrace_stop, record_btrace_can_execute_reverse)
6377 (record_btrace_stopped_by_sw_breakpoint)
6378 (record_btrace_supports_stopped_by_sw_breakpoint)
6379 (record_btrace_stopped_by_hw_breakpoint)
6380 (record_btrace_supports_stopped_by_hw_breakpoint)
6381 (record_btrace_update_thread_list, record_btrace_thread_alive)
6382 (record_btrace_goto_begin, record_btrace_goto_end)
6383 (record_btrace_goto, record_btrace_stop_replaying_all)
6384 (record_btrace_execution_direction)
6385 (record_btrace_prepare_to_generate_core)
6386 (record_btrace_done_generating_core): Refactor as
6387 record_btrace_target methods.
6388 (init_record_btrace_ops): Delete.
6389 (_initialize_record_btrace): Remove reference to
6390 init_record_btrace_ops.
6391 * record-full.c (RECORD_FULL_IS_REPLAY): Adjust to always refer to
6392 the execution_direction global.
6393 (record_full_base_target, record_full_target)
6394 (record_full_core_target): New classes.
6395 (record_full_ops): Now a record_full_target.
6396 (record_full_core_ops): Now a record_full_core_target.
6397 (record_full_target::detach, record_full_target::disconnect)
6398 (record_full_core_target::disconnect)
6399 (record_full_target::mourn_inferior, record_full_target::kill):
6400 New.
6401 (record_full_open, record_full_close, record_full_async): Refactor
6402 as methods of the record_full_base_target class.
6403 (record_full_resume, record_full_commit_resume): Refactor
6404 as methods of the record_full_target class.
6405 (record_full_wait, record_full_stopped_by_watchpoint)
6406 (record_full_stopped_data_address)
6407 (record_full_stopped_by_sw_breakpoint)
6408 (record_full_supports_stopped_by_sw_breakpoint)
6409 (record_full_stopped_by_hw_breakpoint)
6410 (record_full_supports_stopped_by_hw_breakpoint): Refactor as
6411 methods of the record_full_base_target class.
6412 (record_full_store_registers, record_full_xfer_partial)
6413 (record_full_insert_breakpoint, record_full_remove_breakpoint):
6414 Refactor as methods of the record_full_target class.
6415 (record_full_can_execute_reverse, record_full_get_bookmark)
6416 (record_full_goto_bookmark, record_full_execution_direction)
6417 (record_full_record_method, record_full_info, record_full_delete)
6418 (record_full_is_replaying, record_full_will_replay)
6419 (record_full_goto_begin, record_full_goto_end, record_full_goto)
6420 (record_full_stop_replaying): Refactor as methods of the
6421 record_full_base_target class.
6422 (record_full_core_resume, record_full_core_kill)
6423 (record_full_core_fetch_registers)
6424 (record_full_core_prepare_to_store)
6425 (record_full_core_store_registers, record_full_core_xfer_partial)
6426 (record_full_core_insert_breakpoint)
6427 (record_full_core_remove_breakpoint)
6428 (record_full_core_has_execution): Refactor
6429 as methods of the record_full_core_target class.
6430 (record_full_base_target::supports_delete_record): New.
6431 (init_record_full_ops): Delete.
6432 (init_record_full_core_ops): Delete.
6433 (record_full_save): Refactor as method of the
6434 record_full_base_target class.
6435 (_initialize_record_full): Remove references to
6436 init_record_full_ops and init_record_full_core_ops.
6437
6438 * remote.c (remote_target, extended_remote_target): New classes.
6439 (remote_ops): Now a remote_target.
6440 (extended_remote_ops): Now an extended_remote_target.
6441 (remote_insert_fork_catchpoint, remote_remove_fork_catchpoint)
6442 (remote_insert_vfork_catchpoint, remote_remove_vfork_catchpoint)
6443 (remote_insert_exec_catchpoint, remote_remove_exec_catchpoint)
6444 (remote_pass_signals, remote_set_syscall_catchpoint)
6445 (remote_program_signals, )
6446 (remote_thread_always_alive): Remove target_ops parameter.
6447 (remote_thread_alive, remote_thread_name)
6448 (remote_update_thread_list, remote_threads_extra_info)
6449 (remote_static_tracepoint_marker_at)
6450 (remote_static_tracepoint_markers_by_strid)
6451 (remote_get_ada_task_ptid, remote_close, remote_start_remote)
6452 (remote_open): Refactor as methods of remote_target.
6453 (extended_remote_open, extended_remote_detach)
6454 (extended_remote_attach, extended_remote_post_attach):
6455 (extended_remote_supports_disable_randomization)
6456 (extended_remote_create_inferior): : Refactor as method of
6457 extended_remote_target.
6458 (remote_set_permissions, remote_open_1, remote_detach)
6459 (remote_follow_fork, remote_follow_exec, remote_disconnect)
6460 (remote_resume, remote_commit_resume, remote_stop)
6461 (remote_interrupt, remote_pass_ctrlc, remote_terminal_inferior)
6462 (remote_terminal_ours, remote_wait, remote_fetch_registers)
6463 (remote_prepare_to_store, remote_store_registers)
6464 (remote_flash_erase, remote_flash_done, remote_files_info)
6465 (remote_kill, remote_mourn, remote_insert_breakpoint)
6466 (remote_remove_breakpoint, remote_insert_watchpoint)
6467 (remote_watchpoint_addr_within_range)
6468 (remote_remove_watchpoint, remote_region_ok_for_hw_watchpoint)
6469 (remote_check_watch_resources, remote_stopped_by_sw_breakpoint)
6470 (remote_supports_stopped_by_sw_breakpoint)
6471 (remote_stopped_by_hw_breakpoint)
6472 (remote_supports_stopped_by_hw_breakpoint)
6473 (remote_stopped_by_watchpoint, remote_stopped_data_address)
6474 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
6475 (remote_verify_memory): Refactor as methods of remote_target.
6476 (remote_write_qxfer, remote_read_qxfer): Remove target_ops
6477 parameter.
6478 (remote_xfer_partial, remote_get_memory_xfer_limit)
6479 (remote_search_memory, remote_rcmd, remote_memory_map)
6480 (remote_pid_to_str, remote_get_thread_local_address)
6481 (remote_get_tib_address, remote_read_description): Refactor as
6482 methods of remote_target.
6483 (remote_target::fileio_open, remote_target::fileio_pwrite)
6484 (remote_target::fileio_pread, remote_target::fileio_close): New.
6485 (remote_hostio_readlink, remote_hostio_fstat)
6486 (remote_filesystem_is_local, remote_can_execute_reverse)
6487 (remote_supports_non_stop, remote_supports_disable_randomization)
6488 (remote_supports_multi_process, remote_supports_cond_breakpoints)
6489 (remote_supports_enable_disable_tracepoint)
6490 (remote_supports_string_tracing)
6491 (remote_can_run_breakpoint_commands, remote_trace_init)
6492 (remote_download_tracepoint, remote_can_download_tracepoint)
6493 (remote_download_trace_state_variable, remote_enable_tracepoint)
6494 (remote_disable_tracepoint, remote_trace_set_readonly_regions)
6495 (remote_trace_start, remote_get_trace_status)
6496 (remote_get_tracepoint_status, remote_trace_stop)
6497 (remote_trace_find, remote_get_trace_state_variable_value)
6498 (remote_save_trace_data, remote_get_raw_trace_data)
6499 (remote_set_disconnected_tracing, remote_core_of_thread)
6500 (remote_set_circular_trace_buffer, remote_traceframe_info)
6501 (remote_get_min_fast_tracepoint_insn_len)
6502 (remote_set_trace_buffer_size, remote_set_trace_notes)
6503 (remote_use_agent, remote_can_use_agent, remote_enable_btrace)
6504 (remote_disable_btrace, remote_teardown_btrace)
6505 (remote_read_btrace, remote_btrace_conf)
6506 (remote_augmented_libraries_svr4_read, remote_load)
6507 (remote_pid_to_exec_file, remote_can_do_single_step)
6508 (remote_execution_direction, remote_thread_handle_to_thread_info):
6509 Refactor as methods of remote_target.
6510 (init_remote_ops, init_extended_remote_ops): Delete.
6511 (remote_can_async_p, remote_is_async_p, remote_async)
6512 (remote_thread_events, remote_upload_tracepoints)
6513 (remote_upload_trace_state_variables): Refactor as methods of
6514 remote_target.
6515 (_initialize_remote): Remove references to init_remote_ops and
6516 init_extended_remote_ops.
6517
6518 * remote-sim.c (gdbsim_target): New class.
6519 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_kill)
6520 (gdbsim_load, gdbsim_create_inferior, gdbsim_open, gdbsim_close)
6521 (gdbsim_detach, gdbsim_resume, gdbsim_interrupt)
6522 (gdbsim_wait, gdbsim_prepare_to_store, gdbsim_xfer_partial)
6523 (gdbsim_files_info, gdbsim_mourn_inferior, gdbsim_thread_alive)
6524 (gdbsim_pid_to_str, gdbsim_has_all_memory, gdbsim_has_memory):
6525 Refactor as methods of gdbsim_target.
6526 (gdbsim_ops): Now a gdbsim_target.
6527 (init_gdbsim_ops): Delete.
6528 (gdbsim_cntrl_c): Adjust.
6529 (_initialize_remote_sim): Remove reference to init_gdbsim_ops.
6530
6531 * amd64-linux-nat.c (amd64_linux_nat_target): New class.
6532 (the_amd64_linux_nat_target): New.
6533 (amd64_linux_fetch_inferior_registers)
6534 (amd64_linux_store_inferior_registers): Refactor as methods of
6535 amd64_linux_nat_target.
6536 (_initialize_amd64_linux_nat): Adjust. Set linux_target.
6537 * i386-linux-nat.c: Don't include "linux-nat.h".
6538 (i386_linux_nat_target): New class.
6539 (the_i386_linux_nat_target): New.
6540 (i386_linux_fetch_inferior_registers)
6541 (i386_linux_store_inferior_registers, i386_linux_resume): Refactor
6542 as methods of i386_linux_nat_target.
6543 (_initialize_i386_linux_nat): Adjust. Set linux_target.
6544 * inf-child.c (inf_child_ops): Delete.
6545 (inf_child_fetch_inferior_registers)
6546 (inf_child_store_inferior_registers): Delete.
6547 (inf_child_post_attach, inf_child_prepare_to_store): Refactor as
6548 methods of inf_child_target.
6549 (inf_child_target::supports_terminal_ours)
6550 (inf_child_target::terminal_init)
6551 (inf_child_target::terminal_inferior)
6552 (inf_child_target::terminal_ours_for_output)
6553 (inf_child_target::terminal_ours, inf_child_target::interrupt)
6554 (inf_child_target::pass_ctrlc, inf_child_target::terminal_info):
6555 New.
6556 (inf_child_open, inf_child_disconnect, inf_child_close)
6557 (inf_child_mourn_inferior, inf_child_maybe_unpush_target)
6558 (inf_child_post_startup_inferior, inf_child_can_run)
6559 (inf_child_pid_to_exec_file): Refactor as methods of
6560 inf_child_target.
6561 (inf_child_follow_fork): Delete.
6562 (inf_child_target::can_create_inferior)
6563 (inf_child_target::can_attach): New.
6564 (inf_child_target::has_all_memory, inf_child_target::has_memory)
6565 (inf_child_target::has_stack, inf_child_target::has_registers)
6566 (inf_child_target::has_execution): New.
6567 (inf_child_fileio_open, inf_child_fileio_pwrite)
6568 (inf_child_fileio_pread, inf_child_fileio_fstat)
6569 (inf_child_fileio_close, inf_child_fileio_unlink)
6570 (inf_child_fileio_readlink, inf_child_use_agent)
6571 (inf_child_can_use_agent): Refactor as methods of
6572 inf_child_target.
6573 (return_zero, inf_child_target): Delete.
6574 (inf_child_target::inf_child_target): New.
6575 * inf-child.h: Include "target.h".
6576 (inf_child_target): Delete function prototype.
6577 (inf_child_target): New class.
6578 (inf_child_open_target, inf_child_mourn_inferior)
6579 (inf_child_maybe_unpush_target): Delete.
6580 * inf-ptrace.c (inf_ptrace_target::~inf_ptrace_target): New.
6581 (inf_ptrace_follow_fork, inf_ptrace_insert_fork_catchpoint)
6582 (inf_ptrace_remove_fork_catchpoint, inf_ptrace_create_inferior)
6583 (inf_ptrace_post_startup_inferior, inf_ptrace_mourn_inferior)
6584 (inf_ptrace_attach, inf_ptrace_post_attach, inf_ptrace_detach)
6585 (inf_ptrace_detach_success, inf_ptrace_kill, inf_ptrace_resume)
6586 (inf_ptrace_wait, inf_ptrace_xfer_partial)
6587 (inf_ptrace_thread_alive, inf_ptrace_files_info)
6588 (inf_ptrace_pid_to_str, inf_ptrace_auxv_parse): Refactor as
6589 methods of inf_ptrace_target.
6590 (inf_ptrace_target): Delete function.
6591 * inf-ptrace.h: Include "inf-child.h".
6592 (inf_ptrace_target): Delete function declaration.
6593 (inf_ptrace_target): New class.
6594 (inf_ptrace_trad_target, inf_ptrace_detach_success): Delete.
6595 * linux-nat.c (linux_target): New.
6596 (linux_ops, linux_ops_saved, super_xfer_partial): Delete.
6597 (linux_nat_target::~linux_nat_target): New.
6598 (linux_child_post_attach, linux_child_post_startup_inferior)
6599 (linux_child_follow_fork, linux_child_insert_fork_catchpoint)
6600 (linux_child_remove_fork_catchpoint)
6601 (linux_child_insert_vfork_catchpoint)
6602 (linux_child_remove_vfork_catchpoint)
6603 (linux_child_insert_exec_catchpoint)
6604 (linux_child_remove_exec_catchpoint)
6605 (linux_child_set_syscall_catchpoint, linux_nat_pass_signals)
6606 (linux_nat_create_inferior, linux_nat_attach, linux_nat_detach)
6607 (linux_nat_resume, linux_nat_stopped_by_watchpoint)
6608 (linux_nat_stopped_data_address)
6609 (linux_nat_stopped_by_sw_breakpoint)
6610 (linux_nat_supports_stopped_by_sw_breakpoint)
6611 (linux_nat_stopped_by_hw_breakpoint)
6612 (linux_nat_supports_stopped_by_hw_breakpoint, linux_nat_wait)
6613 (linux_nat_kill, linux_nat_mourn_inferior)
6614 (linux_nat_xfer_partial, linux_nat_thread_alive)
6615 (linux_nat_update_thread_list, linux_nat_pid_to_str)
6616 (linux_nat_thread_name, linux_child_pid_to_exec_file)
6617 (linux_child_static_tracepoint_markers_by_strid)
6618 (linux_nat_is_async_p, linux_nat_can_async_p)
6619 (linux_nat_supports_non_stop, linux_nat_always_non_stop_p)
6620 (linux_nat_supports_multi_process)
6621 (linux_nat_supports_disable_randomization, linux_nat_async)
6622 (linux_nat_stop, linux_nat_close, linux_nat_thread_address_space)
6623 (linux_nat_core_of_thread, linux_nat_filesystem_is_local)
6624 (linux_nat_fileio_open, linux_nat_fileio_readlink)
6625 (linux_nat_fileio_unlink, linux_nat_thread_events): Refactor as
6626 methods of linux_nat_target.
6627 (linux_nat_wait_1, linux_xfer_siginfo, linux_proc_xfer_partial)
6628 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Remove target_ops
6629 parameter.
6630 (check_stopped_by_watchpoint): Adjust.
6631 (linux_xfer_partial): Delete.
6632 (linux_target_install_ops, linux_target, linux_nat_add_target):
6633 Delete.
6634 (linux_nat_target::linux_nat_target): New.
6635 * linux-nat.h: Include "inf-ptrace.h".
6636 (linux_nat_target): New.
6637 (linux_target, linux_target_install_ops, linux_nat_add_target):
6638 Delete function declarations.
6639 (linux_target): Declare global.
6640 * linux-thread-db.c (thread_db_target): New.
6641 (thread_db_target::thread_db_target): New.
6642 (thread_db_ops): Delete.
6643 (the_thread_db_target): New.
6644 (thread_db_detach, thread_db_wait, thread_db_mourn_inferior)
6645 (thread_db_update_thread_list, thread_db_pid_to_str)
6646 (thread_db_extra_thread_info)
6647 (thread_db_thread_handle_to_thread_info)
6648 (thread_db_get_thread_local_address, thread_db_get_ada_task_ptid)
6649 (thread_db_resume): Refactor as methods of thread_db_target.
6650 (init_thread_db_ops): Delete.
6651 (_initialize_thread_db): Remove reference to init_thread_db_ops.
6652 * x86-linux-nat.c: Don't include "linux-nat.h".
6653 (super_post_startup_inferior): Delete.
6654 (x86_linux_nat_target::~x86_linux_nat_target): New.
6655 (x86_linux_child_post_startup_inferior)
6656 (x86_linux_read_description, x86_linux_enable_btrace)
6657 (x86_linux_disable_btrace, x86_linux_teardown_btrace)
6658 (x86_linux_read_btrace, x86_linux_btrace_conf): Refactor as
6659 methods of x86_linux_nat_target.
6660 (x86_linux_create_target): Delete. Bits folded ...
6661 (x86_linux_add_target): ... here. Now takes a linux_nat_target
6662 pointer.
6663 * x86-linux-nat.h: Include "linux-nat.h" and "x86-nat.h".
6664 (x86_linux_nat_target): New class.
6665 (x86_linux_create_target): Delete.
6666 (x86_linux_add_target): Now takes a linux_nat_target pointer.
6667 * x86-nat.c (x86_insert_watchpoint, x86_remove_watchpoint)
6668 (x86_region_ok_for_watchpoint, x86_stopped_data_address)
6669 (x86_stopped_by_watchpoint, x86_insert_hw_breakpoint)
6670 (x86_remove_hw_breakpoint, x86_can_use_hw_breakpoint)
6671 (x86_stopped_by_hw_breakpoint): Remove target_ops parameter and
6672 make extern.
6673 (x86_use_watchpoints): Delete.
6674 * x86-nat.h: Include "breakpoint.h" and "target.h".
6675 (x86_use_watchpoints): Delete.
6676 (x86_can_use_hw_breakpoint, x86_region_ok_for_hw_watchpoint)
6677 (x86_stopped_by_watchpoint, x86_stopped_data_address)
6678 (x86_insert_watchpoint, x86_remove_watchpoint)
6679 (x86_insert_hw_breakpoint, x86_remove_hw_breakpoint)
6680 (x86_stopped_by_hw_breakpoint): New declarations.
6681 (x86_nat_target): New template class.
6682
6683 * ppc-linux-nat.c (ppc_linux_nat_target): New class.
6684 (the_ppc_linux_nat_target): New.
6685 (ppc_linux_fetch_inferior_registers)
6686 (ppc_linux_can_use_hw_breakpoint)
6687 (ppc_linux_region_ok_for_hw_watchpoint)
6688 (ppc_linux_ranged_break_num_registers)
6689 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
6690 (ppc_linux_insert_mask_watchpoint)
6691 (ppc_linux_remove_mask_watchpoint)
6692 (ppc_linux_can_accel_watchpoint_condition)
6693 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint)
6694 (ppc_linux_stopped_data_address, ppc_linux_stopped_by_watchpoint)
6695 (ppc_linux_watchpoint_addr_within_range)
6696 (ppc_linux_masked_watch_num_registers)
6697 (ppc_linux_store_inferior_registers, ppc_linux_auxv_parse)
6698 (ppc_linux_read_description): Refactor as methods of
6699 ppc_linux_nat_target.
6700 (_initialize_ppc_linux_nat): Adjust. Set linux_target.
6701
6702 * procfs.c (procfs_xfer_partial): Delete forward declaration.
6703 (procfs_target): New class.
6704 (the_procfs_target): New.
6705 (procfs_target): Delete function.
6706 (procfs_auxv_parse, procfs_attach, procfs_detach)
6707 (procfs_fetch_registers, procfs_store_registers, procfs_wait)
6708 (procfs_xfer_partial, procfs_resume, procfs_pass_signals)
6709 (procfs_files_info, procfs_kill_inferior, procfs_mourn_inferior)
6710 (procfs_create_inferior, procfs_update_thread_list)
6711 (procfs_thread_alive, procfs_pid_to_str)
6712 (procfs_can_use_hw_breakpoint, procfs_stopped_by_watchpoint)
6713 (procfs_stopped_data_address, procfs_insert_watchpoint)
6714 (procfs_remove_watchpoint, procfs_region_ok_for_hw_watchpoint)
6715 (proc_find_memory_regions, procfs_info_proc)
6716 (procfs_make_note_section): Refactor as methods of procfs_target.
6717 (_initialize_procfs): Adjust.
6718 * sol-thread.c (sol_thread_target): New class.
6719 (sol_thread_ops): Now a sol_thread_target.
6720 (sol_thread_detach, sol_thread_resume, sol_thread_wait)
6721 (sol_thread_fetch_registers, sol_thread_store_registers)
6722 (sol_thread_xfer_partial, sol_thread_mourn_inferior)
6723 (sol_thread_alive, solaris_pid_to_str, sol_update_thread_list)
6724 (sol_get_ada_task_ptid): Refactor as methods of sol_thread_target.
6725 (init_sol_thread_ops): Delete.
6726 (_initialize_sol_thread): Adjust. Remove references to
6727 init_sol_thread_ops and complete_target_initialization.
6728
6729 * windows-nat.c (windows_nat_target): New class.
6730 (windows_fetch_inferior_registers)
6731 (windows_store_inferior_registers, windows_resume, windows_wait)
6732 (windows_attach, windows_detach, windows_pid_to_exec_file)
6733 (windows_files_info, windows_create_inferior)
6734 (windows_mourn_inferior, windows_interrupt, windows_kill_inferior)
6735 (windows_close, windows_pid_to_str, windows_xfer_partial)
6736 (windows_get_tib_address, windows_get_ada_task_ptid)
6737 (windows_thread_name, windows_thread_alive): Refactor as
6738 windows_nat_target methods.
6739 (do_initial_windows_stuff): Adjust.
6740 (windows_target): Delete function.
6741 (_initialize_windows_nat): Adjust.
6742
6743 * darwin-nat.c (darwin_resume, darwin_wait_to, darwin_interrupt)
6744 (darwin_mourn_inferior, darwin_kill_inferior)
6745 (darwin_create_inferior, darwin_attach, darwin_detach)
6746 (darwin_pid_to_str, darwin_thread_alive, darwin_xfer_partial)
6747 (darwin_pid_to_exec_file, darwin_get_ada_task_ptid)
6748 (darwin_supports_multi_process): Refactor as darwin_nat_target
6749 methods.
6750 (darwin_resume_to, darwin_files_info): Delete.
6751 (_initialize_darwin_inferior): Rename to ...
6752 (_initialize_darwin_nat): ... this. Adjust to C++ification.
6753 * darwin-nat.h: Include "inf-child.h".
6754 (darwin_nat_target): New class.
6755 (darwin_complete_target): Delete.
6756 * i386-darwin-nat.c (i386_darwin_nat_target): New class.
6757 (darwin_target): New.
6758 (i386_darwin_fetch_inferior_registers)
6759 (i386_darwin_store_inferior_registers): Refactor as methods of
6760 darwin_nat_target.
6761 (darwin_complete_target): Delete, with ...
6762 (_initialize_i386_darwin_nat): ... bits factored out here.
6763
6764 * alpha-linux-nat.c (alpha_linux_nat_target): New class.
6765 (the_alpha_linux_nat_target): New.
6766 (alpha_linux_register_u_offset): Refactor as
6767 alpha_linux_nat_target method.
6768 (_initialize_alpha_linux_nat): Adjust.
6769 * linux-nat-trad.c (inf_ptrace_register_u_offset): Delete.
6770 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
6771 (inf_ptrace_store_register, inf_ptrace_store_registers): Refact as
6772 methods of linux_nat_trad_target.
6773 (linux_trad_target): Delete.
6774 * linux-nat-trad.h (linux_trad_target): Delete function.
6775 (linux_nat_trad_target): New class.
6776 * mips-linux-nat.c (mips_linux_nat_target): New class.
6777 (super_fetch_registers, super_store_registers, super_close):
6778 Delete.
6779 (the_mips_linux_nat_target): New.
6780 (mips64_linux_regsets_fetch_registers)
6781 (mips64_linux_regsets_store_registers)
6782 (mips64_linux_fetch_registers, mips64_linux_store_registers)
6783 (mips_linux_register_u_offset, mips_linux_read_description)
6784 (mips_linux_can_use_hw_breakpoint)
6785 (mips_linux_stopped_by_watchpoint)
6786 (mips_linux_stopped_data_address)
6787 (mips_linux_region_ok_for_hw_watchpoint)
6788 (mips_linux_insert_watchpoint, mips_linux_remove_watchpoint)
6789 (mips_linux_close): Refactor as methods of mips_linux_nat.
6790 (_initialize_mips_linux_nat): Adjust to C++ification.
6791
6792 * aix-thread.c (aix_thread_target): New class.
6793 (aix_thread_ops): Now an aix_thread_target.
6794 (aix_thread_detach, aix_thread_resume, aix_thread_wait)
6795 (aix_thread_fetch_registers, aix_thread_store_registers)
6796 (aix_thread_xfer_partial, aix_thread_mourn_inferior)
6797 (aix_thread_thread_alive, aix_thread_pid_to_str)
6798 (aix_thread_extra_thread_info, aix_thread_get_ada_task_ptid):
6799 Refactor as methods of aix_thread_target.
6800 (init_aix_thread_ops): Delete.
6801 (_initialize_aix_thread): Remove references to init_aix_thread_ops
6802 and complete_target_initialization.
6803 * rs6000-nat.c (rs6000_xfer_shared_libraries): Delete.
6804 (rs6000_nat_target): New class.
6805 (the_rs6000_nat_target): New.
6806 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers)
6807 (rs6000_xfer_partial, rs6000_wait, rs6000_create_inferior)
6808 (rs6000_xfer_shared_libraries): Refactor as rs6000_nat_target methods.
6809 (super_create_inferior): Delete.
6810 (_initialize_rs6000_nat): Adjust to C++ification.
6811
6812 * arm-linux-nat.c (arm_linux_nat_target): New class.
6813 (the_arm_linux_nat_target): New.
6814 (arm_linux_fetch_inferior_registers)
6815 (arm_linux_store_inferior_registers, arm_linux_read_description)
6816 (arm_linux_can_use_hw_breakpoint, arm_linux_insert_hw_breakpoint)
6817 (arm_linux_remove_hw_breakpoint)
6818 (arm_linux_region_ok_for_hw_watchpoint)
6819 (arm_linux_insert_watchpoint, arm_linux_remove_watchpoint)
6820 (arm_linux_stopped_data_address, arm_linux_stopped_by_watchpoint)
6821 (arm_linux_watchpoint_addr_within_range): Refactor as methods of
6822 arm_linux_nat_target.
6823 (_initialize_arm_linux_nat): Adjust to C++ification.
6824
6825 * aarch64-linux-nat.c (aarch64_linux_nat_target): New class.
6826 (the_aarch64_linux_nat_target): New.
6827 (aarch64_linux_fetch_inferior_registers)
6828 (aarch64_linux_store_inferior_registers)
6829 (aarch64_linux_child_post_startup_inferior)
6830 (aarch64_linux_read_description)
6831 (aarch64_linux_can_use_hw_breakpoint)
6832 (aarch64_linux_insert_hw_breakpoint)
6833 (aarch64_linux_remove_hw_breakpoint)
6834 (aarch64_linux_insert_watchpoint, aarch64_linux_remove_watchpoint)
6835 (aarch64_linux_region_ok_for_hw_watchpoint)
6836 (aarch64_linux_stopped_data_address)
6837 (aarch64_linux_stopped_by_watchpoint)
6838 (aarch64_linux_watchpoint_addr_within_range)
6839 (aarch64_linux_can_do_single_step): Refactor as methods of
6840 aarch64_linux_nat_target.
6841 (super_post_startup_inferior): Delete.
6842 (_initialize_aarch64_linux_nat): Adjust to C++ification.
6843
6844 * hppa-linux-nat.c (hppa_linux_nat_target): New class.
6845 (the_hppa_linux_nat_target): New.
6846 (hppa_linux_fetch_inferior_registers)
6847 (hppa_linux_store_inferior_registers): Refactor as methods of
6848 hppa_linux_nat_target.
6849 (_initialize_hppa_linux_nat): Adjust to C++ification.
6850
6851 * ia64-linux-nat.c (ia64_linux_nat_target): New class.
6852 (the_ia64_linux_nat_target): New.
6853 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint)
6854 (ia64_linux_stopped_data_address)
6855 (ia64_linux_stopped_by_watchpoint, ia64_linux_fetch_registers)
6856 (ia64_linux_store_registers, ia64_linux_xfer_partial): Refactor as
6857 ia64_linux_nat_target methods.
6858 (super_xfer_partial): Delete.
6859 (_initialize_ia64_linux_nat): Adjust to C++ification.
6860
6861 * m32r-linux-nat.c (m32r_linux_nat_target): New class.
6862 (the_m32r_linux_nat_target): New.
6863 (m32r_linux_fetch_inferior_registers)
6864 (m32r_linux_store_inferior_registers): Refactor as
6865 m32r_linux_nat_target methods.
6866 (_initialize_m32r_linux_nat): Adjust to C++ification.
6867
6868 * m68k-linux-nat.c (m68k_linux_nat_target): New class.
6869 (the_m68k_linux_nat_target): New.
6870 (m68k_linux_fetch_inferior_registers)
6871 (m68k_linux_store_inferior_registers): Refactor as
6872 m68k_linux_nat_target methods.
6873 (_initialize_m68k_linux_nat): Adjust to C++ification.
6874
6875 * s390-linux-nat.c (s390_linux_nat_target): New class.
6876 (the_s390_linux_nat_target): New.
6877 (s390_linux_fetch_inferior_registers)
6878 (s390_linux_store_inferior_registers, s390_stopped_by_watchpoint)
6879 (s390_insert_watchpoint, s390_remove_watchpoint)
6880 (s390_can_use_hw_breakpoint, s390_insert_hw_breakpoint)
6881 (s390_remove_hw_breakpoint, s390_region_ok_for_hw_watchpoint)
6882 (s390_auxv_parse, s390_read_description): Refactor as methods of
6883 s390_linux_nat_target.
6884 (_initialize_s390_nat): Adjust to C++ification.
6885
6886 * sparc-linux-nat.c (sparc_linux_nat_target): New class.
6887 (the_sparc_linux_nat_target): New.
6888 (_initialize_sparc_linux_nat): Adjust to C++ification.
6889 * sparc-nat.c (sparc_fetch_inferior_registers)
6890 (sparc_store_inferior_registers): Remove target_ops parameter.
6891 * sparc-nat.h (sparc_fetch_inferior_registers)
6892 (sparc_store_inferior_registers): Remove target_ops parameter.
6893 * sparc64-linux-nat.c (sparc64_linux_nat_target): New class.
6894 (the_sparc64_linux_nat_target): New.
6895 (_initialize_sparc64_linux_nat): Adjust to C++ification.
6896
6897 * spu-linux-nat.c (spu_linux_nat_target): New class.
6898 (the_spu_linux_nat_target): New.
6899 (spu_child_post_startup_inferior, spu_child_post_attach)
6900 (spu_child_wait, spu_fetch_inferior_registers)
6901 (spu_store_inferior_registers, spu_xfer_partial)
6902 (spu_can_use_hw_breakpoint): Refactor as spu_linux_nat_target
6903 methods.
6904 (_initialize_spu_nat): Adjust to C++ification.
6905
6906 * tilegx-linux-nat.c (tilegx_linux_nat_target): New class.
6907 (the_tilegx_linux_nat_target): New.
6908 (fetch_inferior_registers, store_inferior_registers):
6909 Refactor as methods.
6910 (_initialize_tile_linux_nat): Adjust to C++ification.
6911
6912 * xtensa-linux-nat.c (xtensa_linux_nat_target): New class.
6913 (the_xtensa_linux_nat_target): New.
6914 (xtensa_linux_fetch_inferior_registers)
6915 (xtensa_linux_store_inferior_registers): Refactor as
6916 xtensa_linux_nat_target methods.
6917 (_initialize_xtensa_linux_nat): Adjust to C++ification.
6918
6919 * fbsd-nat.c (USE_SIGTRAP_SIGINFO): Delete.
6920 (fbsd_pid_to_exec_file, fbsd_find_memory_regions)
6921 (fbsd_find_memory_regions, fbsd_info_proc, fbsd_xfer_partial)
6922 (fbsd_thread_alive, fbsd_pid_to_str, fbsd_thread_name)
6923 (fbsd_update_thread_list, fbsd_resume, fbsd_wait)
6924 (fbsd_stopped_by_sw_breakpoint)
6925 (fbsd_supports_stopped_by_sw_breakpoint, fbsd_follow_fork)
6926 (fbsd_insert_fork_catchpoint, fbsd_remove_fork_catchpoint)
6927 (fbsd_insert_vfork_catchpoint, fbsd_remove_vfork_catchpoint)
6928 (fbsd_post_startup_inferior, fbsd_post_attach)
6929 (fbsd_insert_exec_catchpoint, fbsd_remove_exec_catchpoint)
6930 (fbsd_set_syscall_catchpoint)
6931 (super_xfer_partial, super_resume, super_wait)
6932 (fbsd_supports_stopped_by_hw_breakpoint): Delete.
6933 (fbsd_handle_debug_trap): Remove target_ops parameter.
6934 (fbsd_nat_add_target): Delete.
6935 * fbsd-nat.h: Include "inf-ptrace.h".
6936 (fbsd_nat_add_target): Delete.
6937 (USE_SIGTRAP_SIGINFO): Define.
6938 (fbsd_nat_target): New class.
6939
6940 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers)
6941 (amd64bsd_store_inferior_registers): Remove target_ops parameter.
6942 (amd64bsd_target): Delete.
6943 * amd64-bsd-nat.h: New file.
6944 * amd64-fbsd-nat.c: Include "amd64-bsd-nat.h" instead of
6945 "x86-bsd-nat.h".
6946 (amd64_fbsd_nat_target): New class.
6947 (the_amd64_fbsd_nat_target): New.
6948 (amd64fbsd_read_description): Refactor as method of
6949 amd64_fbsd_nat_target.
6950 (amd64_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
6951 (_initialize_amd64fbsd_nat): Adjust to C++ification.
6952 * amd64-nat.h (amd64bsd_target): Delete function declaration.
6953 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers)
6954 (i386bsd_store_inferior_registers): Remove target_ops parameter.
6955 (i386bsd_target): Delete.
6956 * i386-bsd-nat.h (i386bsd_target): Delete function declaration.
6957 (i386bsd_fetch_inferior_registers)
6958 (i386bsd_store_inferior_registers): Declare.
6959 (i386_bsd_nat_target): New class.
6960 * i386-fbsd-nat.c (i386_fbsd_nat_target): New class.
6961 (the_i386_fbsd_nat_target): New.
6962 (i386fbsd_resume, i386fbsd_read_description): Refactor as
6963 i386_fbsd_nat_target methods.
6964 (i386_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
6965 (_initialize_i386fbsd_nat): Adjust to C++ification.
6966 * x86-bsd-nat.c (super_mourn_inferior): Delete.
6967 (x86bsd_mourn_inferior, x86bsd_target): Delete.
6968 (_initialize_x86_bsd_nat): Adjust to C++ification.
6969 * x86-bsd-nat.h: Include "x86-nat.h".
6970 (x86bsd_target): Delete declaration.
6971 (x86bsd_nat_target): New class.
6972
6973 * aarch64-fbsd-nat.c (aarch64_fbsd_nat_target): New class.
6974 (the_aarch64_fbsd_nat_target): New.
6975 (aarch64_fbsd_fetch_inferior_registers)
6976 (aarch64_fbsd_store_inferior_registers): Refactor as methods of
6977 aarch64_fbsd_nat_target.
6978 (_initialize_aarch64_fbsd_nat): Adjust to C++ification.
6979 * alpha-bsd-nat.c (alpha_bsd_nat_target): New class.
6980 (the_alpha_bsd_nat_target): New.
6981 (alphabsd_fetch_inferior_registers)
6982 (alphabsd_store_inferior_registers): Refactor as
6983 alpha_bsd_nat_target methods.
6984 (_initialize_alphabsd_nat): Refactor as methods of
6985 alpha_bsd_nat_target.
6986 * amd64-nbsd-nat.c: Include "amd64-bsd-nat.h".
6987 (the_amd64_nbsd_nat_target): New.
6988 (_initialize_amd64nbsd_nat): Adjust to C++ification.
6989 * amd64-obsd-nat.c: Include "amd64-bsd-nat.h".
6990 (the_amd64_obsd_nat_target): New.
6991 (_initialize_amd64obsd_nat): Adjust to C++ification.
6992 * arm-fbsd-nat.c (arm_fbsd_nat_target): New.
6993 (the_arm_fbsd_nat_target): New.
6994 (arm_fbsd_fetch_inferior_registers)
6995 (arm_fbsd_store_inferior_registers, arm_fbsd_read_description):
6996 (_initialize_arm_fbsd_nat): Refactor as methods of
6997 arm_fbsd_nat_target.
6998 (_initialize_arm_fbsd_nat): Adjust to C++ification.
6999 * arm-nbsd-nat.c (arm_netbsd_nat_target): New class.
7000 (the_arm_netbsd_nat_target): New.
7001 (armnbsd_fetch_registers, armnbsd_store_registers): Refactor as
7002 arm_netbsd_nat_target.
7003 (_initialize_arm_netbsd_nat): Adjust to C++ification.
7004 * hppa-nbsd-nat.c (hppa_nbsd_nat_target): New class.
7005 (the_hppa_nbsd_nat_target): New.
7006 (hppanbsd_fetch_registers, hppanbsd_store_registers): Refactor as
7007 hppa_nbsd_nat_target methods.
7008 (_initialize_hppanbsd_nat): Adjust to C++ification.
7009 * hppa-obsd-nat.c (hppa_obsd_nat_target): New class.
7010 (the_hppa_obsd_nat_target): New.
7011 (hppaobsd_fetch_registers, hppaobsd_store_registers): Refactor as
7012 methods of hppa_obsd_nat_target.
7013 (_initialize_hppaobsd_nat): Adjust to C++ification. Use
7014 add_target.
7015 * i386-nbsd-nat.c (the_i386_nbsd_nat_target): New.
7016 (_initialize_i386nbsd_nat): Adjust to C++ification. Use
7017 add_target.
7018 * i386-obsd-nat.c (the_i386_obsd_nat_target): New.
7019 (_initialize_i386obsd_nat): Use add_target.
7020 * m68k-bsd-nat.c (m68k_bsd_nat_target): New class.
7021 (the_m68k_bsd_nat_target): New.
7022 (m68kbsd_fetch_inferior_registers)
7023 (m68kbsd_store_inferior_registers): Refactor as methods of
7024 m68k_bsd_nat_target.
7025 (_initialize_m68kbsd_nat): Adjust to C++ification.
7026 * mips-fbsd-nat.c (mips_fbsd_nat_target): New class.
7027 (the_mips_fbsd_nat_target): New.
7028 (mips_fbsd_fetch_inferior_registers)
7029 (mips_fbsd_store_inferior_registers): Refactor as methods of
7030 mips_fbsd_nat_target.
7031 (_initialize_mips_fbsd_nat): Adjust to C++ification. Use
7032 add_target.
7033 * mips-nbsd-nat.c (mips_nbsd_nat_target): New class.
7034 (the_mips_nbsd_nat_target): New.
7035 (mipsnbsd_fetch_inferior_registers)
7036 (mipsnbsd_store_inferior_registers): Refactor as methods of
7037 mips_nbsd_nat_target.
7038 (_initialize_mipsnbsd_nat): Adjust to C++ification.
7039 * mips64-obsd-nat.c (mips64_obsd_nat_target): New class.
7040 (the_mips64_obsd_nat_target): New.
7041 (mips64obsd_fetch_inferior_registers)
7042 (mips64obsd_store_inferior_registers): Refactor as methods of
7043 mips64_obsd_nat_target.
7044 (_initialize_mips64obsd_nat): Adjust to C++ification. Use
7045 add_target.
7046 * nbsd-nat.c (nbsd_pid_to_exec_file): Refactor as method of
7047 nbsd_nat_target.
7048 * nbsd-nat.h: Include "inf-ptrace.h".
7049 (nbsd_nat_target): New class.
7050 * obsd-nat.c (obsd_pid_to_str, obsd_update_thread_list)
7051 (obsd_wait): Refactor as methods of obsd_nat_target.
7052 (obsd_add_target): Delete.
7053 * obsd-nat.h: Include "inf-ptrace.h".
7054 (obsd_nat_target): New class.
7055 * ppc-fbsd-nat.c (ppc_fbsd_nat_target): New class.
7056 (the_ppc_fbsd_nat_target): New.
7057 (ppcfbsd_fetch_inferior_registers)
7058 (ppcfbsd_store_inferior_registers): Refactor as methods of
7059 ppc_fbsd_nat_target.
7060 (_initialize_ppcfbsd_nat): Adjust to C++ification. Use
7061 add_target.
7062 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): New class.
7063 (the_ppc_nbsd_nat_target): New.
7064 (ppcnbsd_fetch_inferior_registers)
7065 (ppcnbsd_store_inferior_registers): Refactor as methods of
7066 ppc_nbsd_nat_target.
7067 (_initialize_ppcnbsd_nat): Adjust to C++ification.
7068 * ppc-obsd-nat.c (ppc_obsd_nat_target): New class.
7069 (the_ppc_obsd_nat_target): New.
7070 (ppcobsd_fetch_registers, ppcobsd_store_registers): Refactor as
7071 methods of ppc_obsd_nat_target.
7072 (_initialize_ppcobsd_nat): Adjust to C++ification. Use
7073 add_target.
7074 * sh-nbsd-nat.c (sh_nbsd_nat_target): New class.
7075 (the_sh_nbsd_nat_target): New.
7076 (shnbsd_fetch_inferior_registers)
7077 (shnbsd_store_inferior_registers): Refactor as methods of
7078 sh_nbsd_nat_target.
7079 (_initialize_shnbsd_nat): Adjust to C++ification.
7080 * sparc-nat.c (sparc_xfer_wcookie): Make extern.
7081 (inf_ptrace_xfer_partial): Delete.
7082 (sparc_xfer_partial, sparc_target): Delete.
7083 * sparc-nat.h (sparc_fetch_inferior_registers)
7084 (sparc_store_inferior_registers, sparc_xfer_wcookie): Declare.
7085 (sparc_target): Delete function declaration.
7086 (sparc_target): New template class.
7087 * sparc-nbsd-nat.c (the_sparc_nbsd_nat_target): New.
7088 (_initialize_sparcnbsd_nat): Adjust to C++ification.
7089 * sparc64-fbsd-nat.c (the_sparc64_fbsd_nat_target): New.
7090 (_initialize_sparc64fbsd_nat): Adjust to C++ification. Use
7091 add_target.
7092 * sparc64-nbsd-nat.c (the_sparc64_nbsd_nat_target): New.
7093 (_initialize_sparc64nbsd_nat): Adjust to C++ification.
7094 * sparc64-obsd-nat.c (the_sparc64_obsd_nat_target): New.
7095 (_initialize_sparc64obsd_nat): Adjust to C++ification. Use
7096 add_target.
7097 * vax-bsd-nat.c (vax_bsd_nat_target): New class.
7098 (the_vax_bsd_nat_target): New.
7099 (vaxbsd_fetch_inferior_registers)
7100 (vaxbsd_store_inferior_registers): Refactor as vax_bsd_nat_target
7101 methods.
7102 (_initialize_vaxbsd_nat): Adjust to C++ification.
7103
7104 * bsd-kvm.c (bsd_kvm_target): New class.
7105 (bsd_kvm_ops): Now a bsd_kvm_target.
7106 (bsd_kvm_open, bsd_kvm_close, bsd_kvm_xfer_partial)
7107 (bsd_kvm_files_info, bsd_kvm_fetch_registers)
7108 (bsd_kvm_thread_alive, bsd_kvm_pid_to_str): Refactor as methods of
7109 bsd_kvm_target.
7110 (bsd_kvm_return_one): Delete.
7111 (bsd_kvm_add_target): Adjust to C++ification.
7112
7113 * nto-procfs.c (nto_procfs_target, nto_procfs_target_native)
7114 (nto_procfs_target_procfs): New classes.
7115 (procfs_open_1, procfs_thread_alive, procfs_update_thread_list)
7116 (procfs_files_info, procfs_pid_to_exec_file, procfs_attach)
7117 (procfs_post_attach, procfs_wait, procfs_fetch_registers)
7118 (procfs_xfer_partial, procfs_detach, procfs_insert_breakpoint)
7119 (procfs_remove_breakpoint, procfs_insert_hw_breakpoint)
7120 (procfs_remove_hw_breakpoint, procfs_resume)
7121 (procfs_mourn_inferior, procfs_create_inferior, procfs_interrupt)
7122 (procfs_kill_inferior, procfs_store_registers)
7123 (procfs_pass_signals, procfs_pid_to_str, procfs_can_run): Refactor
7124 as methods of nto_procfs_target.
7125 (nto_procfs_ops): Now an nto_procfs_target_procfs.
7126 (nto_native_ops): Delete.
7127 (procfs_open, procfs_native_open): Delete.
7128 (nto_native_ops): Now an nto_procfs_target_native.
7129 (init_procfs_targets): Adjust to C++ification.
7130 (procfs_can_use_hw_breakpoint, procfs_remove_hw_watchpoint)
7131 (procfs_insert_hw_watchpoint, procfs_stopped_by_watchpoint):
7132 Refactor as methods of nto_procfs_target.
7133
7134 * go32-nat.c (go32_nat_target): New class.
7135 (the_go32_nat_target): New.
7136 (go32_attach, go32_resume, go32_wait, go32_fetch_registers)
7137 (go32_store_registers, go32_xfer_partial, go32_files_info)
7138 (go32_kill_inferior, go32_create_inferior, go32_mourn_inferior)
7139 (go32_terminal_init, go32_terminal_info, go32_terminal_inferior)
7140 (go32_terminal_ours, go32_pass_ctrlc, go32_thread_alive)
7141 (go32_pid_to_str): Refactor as methods of go32_nat_target.
7142 (go32_target): Delete.
7143 (_initialize_go32_nat): Adjust to C++ification.
7144
7145 * gnu-nat.c (gnu_wait, gnu_resume, gnu_kill_inferior)
7146 (gnu_mourn_inferior, gnu_create_inferior, gnu_attach, gnu_detach)
7147 (gnu_stop, gnu_thread_alive, gnu_xfer_partial)
7148 (gnu_find_memory_regions, gnu_pid_to_str): Refactor as methods of
7149 gnu_nat_target.
7150 (gnu_target): Delete.
7151 * gnu-nat.h (gnu_target): Delete.
7152 (gnu_nat_target): New class.
7153 * i386-gnu-nat.c (gnu_base_target): New.
7154 (i386_gnu_nat_target): New class.
7155 (the_i386_gnu_nat_target): New.
7156 (_initialize_i386gnu_nat): Adjust to C++ification.
7157
3fffc070
PA
71582018-05-02 Pedro Alves <palves@redhat.com>
7159
7160 * bfd-target.c (target_bfd_xclose): Rename to ...
7161 (target_bfd_close): ... this.
7162 (target_bfd_reopen): Adjust.
7163 * target.c (target_close): Remove references to to_xclose.
7164 * target.h (target_ops::to_xclose): Delete.
7165 (target_ops::to_close): Update comments.
7166
6798487f
PA
71672018-05-02 Pedro Alves <palves@redhat.com>
7168
7169 * alpha-linux-nat.c: Include "linux-nat-trad.h" instead of
7170 "linux-nat.h".
7171 * configure.nat (alpha-linux, linux-mips): Add linux-nat-trad.o.
7172 * inf-ptrace.c (inf_ptrace_register_u_offset)
7173 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
7174 (inf_ptrace_store_register, inf_ptrace_store_registers)
7175 (inf_ptrace_trad_target): Move to ...
7176 * linux-nat-trad.c: ... this new file.
7177 * linux-nat-trad.h: New file.
7178 * linux-nat.c (linux_target_install_ops): Make extern.
7179 (linux_trad_target): Delete.
7180 * linux-nat.h (linux_trad_target): Delete declaration.
7181 (linux_target_install_ops): Declare.
7182 * mips-linux-nat.c: Include "linux-nat-trad.h" instead of
7183 "linux-nat.h".
7184
c1955e17
PA
71852018-05-02 Pedro Alves <palves@redhat.com>
7186
7187 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
7188 procfs_target/add_target here.
7189 * procfs.c (procfs_target): Make static.
7190 (_initialize_procfs): Call add_target here.
7191 * procfs.h (struct target_ops): Remove forward declaration.
7192 (procfs_target): Remove declaration.
7193 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Delete.
7194
b5c8fcb1
PA
71952018-05-02 Pedro Alves <palves@redhat.com>
7196
7197 * procfs.c (procfs_stopped_by_watchpoint)
7198 (procfs_insert_watchpoint, procfs_remove_watchpoint)
7199 (procfs_region_ok_for_hw_watchpoint, procfs_stopped_data_address):
7200 Forward declare.
7201 (procfs_use_watchpoints): Delete, move contents...
7202 (procfs_target): ... here.
7203 * procfs.h (procfs_use_watchpoints): Delete declaration.
7204 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
7205 procfs_use_watchpoints.
7206 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Don't call
7207 procfs_use_watchpoints.
7208
0489430a
TT
72092018-05-02 Tom Tromey <tom@tromey.com>
7210
7211 PR python/20084:
7212 * python/python.c (gdbpy_parameter_value): Handle var_zuinteger
7213 and var_zuinteger_unlimited.
7214 * python/py-param.c (struct parm_constant): Add PARAM_ZUINTEGER
7215 and PARAM_ZUINTEGER_UNLIMITED.
7216 (set_parameter_value): Handle var_zuinteger and
7217 var_zuinteger_unlimited.
7218 (add_setshow_generic): Likewise.
7219 (parmpy_init): Likewise.
7220
1632f8ba
DR
72212018-04-28 Dan Robertson <danlrobertson89@gmail.com>
7222
7223 PR rust/23124
7224 * gdb/rust-exp.y (convert_params_to_types): Ensure that the params
7225 pointer is not null before dereferencing it.
7226
76761936
TT
72272018-04-30 Tom Tromey <tom@tromey.com>
7228
7229 * darwin-nat-info.c (darwin_debug_regions_recurse): Remove use of
7230 is_mi_like_p.
7231
2d33446d
TT
72322018-04-30 Tom Tromey <tom@tromey.com>
7233
7234 * breakpoint.c (mention): Remove use of is_mi_like_p.
7235 (print_mention_ranged_breakpoint): Likewise.
7236 * break-catch-throw.c (print_it_exception_catchpoint): Remove use
7237 of is_mi_like_p.
7238
f3c6abab
TT
72392018-04-30 Tom Tromey <tom@tromey.com>
7240
7241 * tracepoint.c (tvariables_info_1): Remove use of is_mi_like_p.
7242
40c03530
TT
72432018-04-30 Tom Tromey <tom@tromey.com>
7244
7245 * spu-tdep.c (info_spu_mailbox_list, info_spu_dma_cmdlist)
7246 (info_spu_event_command): Remove some uses of is_mi_like_p.
7247
2038b7fd
TT
72482018-04-30 Tom Tromey <tom@tromey.com>
7249
7250 * python/py-framefilter.c (py_print_single_arg)
7251 (enumerate_locals, py_print_args, py_print_frame): Remove some
7252 uses of is_mi_like_p.
7253
4904c3c6
TT
72542018-04-30 Tom Tromey <tom@tromey.com>
7255
7256 * ui-out.c: Update.
7257 * cli-out.h (cli_ui_out::do_is_mi_like_p): Update.
7258 * ui-out.h (ui_out::is_mi_like_p): Now const.
7259 (ui_out::do_is_mi_like_p): Now const.
7260 * mi/mi-out.h (mi_ui_out::do_is_mi_like_p): Update.
7261
7c66fffc
TT
72622018-04-30 Tom Tromey <tom@tromey.com>
7263
7264 * varobj.c (varobj_set_visualizer): Use new_reference.
7265 * python/python.c (gdbpy_decode_line): Use new_reference.
7266 * python/py-cmd.c (cmdpy_function, cmdpy_completer_helper): Use
7267 new_reference.
7268
bbfa6f00
TT
72692018-04-30 Tom Tromey <tom@tromey.com>
7270
7271 * varobj.c (install_new_value): Use new_reference.
7272 * value.h (value_incref): Return void. Swap intro comment with
7273 value_decref.
7274 * value.c (set_value_parent): Use new_reference.
7275 (value_incref): Return void. Update intro comment.
7276 (release_value): Use new_reference.
7277 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use new_reference.
7278
1831a9f9
TT
72792018-04-30 Tom Tromey <tom@tromey.com>
7280
7281 * symfile-mem.c (symbol_file_add_from_memory): Use new_reference.
7282 * gdb_bfd.h (new_bfd_ref): Remove.
7283 (gdb_bfd_open): Update comment.
7284 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
7285 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_record_inclusion)
7286 (gdb_bfd_fdopenr): Use new_reference.
7287 * exec.c (exec_file_attach): Use new_reference.
7288
7c1b5f3d
TT
72892018-04-30 Tom Tromey <tom@tromey.com>
7290
7291 * common/gdb_ref_ptr.h (ref_ptr::new_reference): New static
7292 method.
7293
e11fb955
TT
72942018-04-30 Tom Tromey <tom@tromey.com>
7295
7296 * jit.c (jit_read_code_entry): Use type_align.
7297 * i386-tdep.c (i386_gdbarch_init): Don't call
7298 set_gdbarch_long_long_align_bit.
7299 * gdbarch.sh: Remove long_long_align_bit.
7300 * gdbarch.c, gdbarch.h: Rebuild.
7301 * arc-tdep.c (arc_type_align): New function.
7302 (arc_gdbarch_init): Use arc_type_align. Don't call
7303 set_gdbarch_long_long_align_bit.
7304
2fff16dd
TT
73052018-04-30 Tom Tromey <tom@tromey.com>
7306
7307 * rust-lang.c (rust_type_alignment): Remove.
7308 (rust_composite_type): Use type_align.
7309
6d7bb824
TT
73102018-04-30 Tom Tromey <tom@tromey.com>
7311
7312 * NEWS: Mention Type.align.
7313 * python/py-type.c (typy_get_alignof): New function.
7314 (type_object_getset): Add "alignof".
7315
007e1530
TT
73162018-04-30 Tom Tromey <tom@tromey.com>
7317
7318 PR exp/17095:
7319 * NEWS: Update.
7320 * std-operator.def (UNOP_ALIGNOF): New operator.
7321 * expprint.c (dump_subexp_body_standard) <case UNOP_ALIGNOF>:
7322 New.
7323 * eval.c (evaluate_subexp_standard) <case UNOP_ALIGNOF>: New.
7324 * c-lang.c (c_op_print_tab): Add alignof.
7325 * c-exp.y (ALIGNOF): New token.
7326 (exp): Add "ALIGNOF" production.
7327 (ident_tokens): Add _Alignof and alignof.
7328
2b4424c3
TT
73292018-04-30 Tom Tromey <tom@tromey.com>
7330
7331 * i386-tdep.c (i386_type_align): New function.
7332 (i386_gdbarch_init): Update.
7333 * gdbarch.sh (type_align): New method.
7334 * gdbarch.c, gdbarch.h: Rebuild.
7335 * arch-utils.h (default_type_align): Declare.
7336 * arch-utils.c (default_type_align): New function.
7337 * gdbtypes.h (TYPE_ALIGN_BITS): New define.
7338 (struct type) <align_log2>: New field.
7339 <instance_flags>: Now a bitfield.
7340 (TYPE_RAW_ALIGN): New macro.
7341 (type_align, type_raw_align, set_type_align): Declare.
7342 * gdbtypes.c (type_align, type_raw_align, set_type_align): New
7343 functions.
7344 * dwarf2read.c (quirk_rust_enum): Set type alignment.
7345 (get_alignment, maybe_set_alignment): New functions.
7346 (read_structure_type, read_enumeration_type, read_array_type)
7347 (read_set_type, read_tag_pointer_type, read_tag_reference_type)
7348 (read_subrange_type, read_base_type): Set type alignment.
7349
d33bc52e
SM
73502018-04-30 Simon Marchi <simon.marchi@ericsson.com>
7351
7352 * dwarf2read.c (read_index_from_section): Use bool.
7353
e28b63a9
FG
73542018-04-29 Fabian Groffen <grobian@gentoo.org>
7355
7356 PR gdb/22950
7357 * proc-events.c (init_syscall_table): Guard usage os SYS_uuidsys
7358 with #ifdef.
7359
cd8c76e4
JR
73602018-04-29 John Reiser <jreiser@BitWagon.com>
7361
7362 PR build/22873
7363 * gdb/Makefile.in: (.c:.l, .c:.y): Write the target only in the
7364 last step, and do it atomically.
7365
476d250e
AO
73662018-04-27 Alexandre Oliva <aoliva@redhat.com>
7367
7368 * compile/compile-c-types.c (convert_int, convert_float):
7369 Update for C FE v1.
7370
6873858b
TT
73712018-04-27 Tom Tromey <tom@tromey.com>
7372
7373 PR rust/22545:
7374 * rust-lang.c (rust_inclusive_range_type_p): New function.
7375 (rust_range): Handle inclusive ranges.
7376 (rust_compute_range): Likewise.
7377 * rust-exp.y (struct rust_op) <inclusive>: New field.
7378 (DOTDOTEQ): New constant.
7379 (range_expr): Add "..=" productions.
7380 (operator_tokens): Add "..=" token.
7381 (ast_range): Add "inclusive" parameter.
7382 (convert_ast_to_expression) <case OP_RANGE>: Handle inclusive
7383 ranges.
7384 * parse.c (operator_length_standard) <case OP_RANGE>: Handle new
7385 bounds values.
7386 * expression.h (enum range_type) <NONE_BOUND_DEFAULT_EXCLUSIVE,
7387 LOW_BOUND_DEFAULT_EXCLUSIVE>: New constants.
7388 Update comments.
7389 * expprint.c (print_subexp_standard): Handle new bounds values.
7390 (dump_subexp_body_standard): Likewise.
7391
632e107b
TT
73922018-04-27 Tom Tromey <tom@tromey.com>
7393
7394 * configure: Rebuild.
7395 * warning.m4 (AM_GDB_WARNINGS): Add -Wsuggest-override.
7396 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Use "override", not
7397 "OVERRIDE".
7398 (class symbol_needs_eval_context): Likewise.
7399 * dwarf2read.c (mock_mapped_index::symbol_name_count)
7400 (mock_mapped_index::symbol_name_at): Use "override". Remove
7401 "virtual".
7402 * dwarf2-frame.c (dwarf_expr_executor::get_addr_index): Use
7403 "override".
7404 (class dwarf_expr_executor): Use "override", not "OVERRIDE".
7405 * aarch64-tdep.c (instruction_reader::read): Use "override".
7406 (instruction_reader_test::read): Likewise.
7407 * arm-tdep.c (instruction_reader::read): Use "override".
7408 (instruction_reader_thumb::read): Likewise.
7409
b75abf5b
AK
74102018-04-26 Andrzej Kaczmarek <andrzej.kaczmarek@codecoup.pl>
7411
7412 PR remote/9665
7413 * remote.c (send_g_packet): Use putpkt/getpkt/packet_check_result
7414 instead of remote_send.
7415 (remote_send): Remove.
7416
79188d8d
PA
74172018-04-26 Pedro Alves <palves@redhat.com>
7418
7419 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Use
7420 find_function_start_sal instead of find_pc_line.
7421
f50776aa
PA
74222018-04-26 Pedro Alves <palves@redhat.com>
7423
7424 * breakpoint.c (set_breakpoint_location_function): Handle
7425 mst_data_gnu_ifunc.
7426 * c-exp.y (variable production): Handle mst_data_gnu_ifunc.
7427 * elfread.c (elf_symtab_read): Give data symbols with
7428 BSF_GNU_INDIRECT_FUNCTION set mst_data_gnu_ifunc type.
7429 (elf_rel_plt_read): Update comment.
7430 * linespec.c (convert_linespec_to_sals): Handle
7431 mst_data_gnu_ifunc.
7432 (minsym_found): Handle mst_data_gnu_ifunc.
7433 * minsyms.c (msymbol_is_function, minimal_symbol_reader::record)
7434 (find_solib_trampoline_target): Handle mst_data_gnu_ifunc.
7435 * parse.c (find_minsym_type_and_address): Handle
7436 mst_data_gnu_ifunc.
7437 * symmisc.c (dump_msymbols): Handle mst_data_gnu_ifunc.
7438 * symtab.c (find_gnu_ifunc): Handle mst_data_gnu_ifunc.
7439 * symtab.h (minimal_symbol_type) <mst_text_gnu_ifunc>: Update
7440 comment.
7441 <mst_data_gnu_ifunc>: New enumerator.
7442
20944a6e
PA
74432018-04-26 Pedro Alves <palves@redhat.com>
7444
7445 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Rename to ...
7446 (lookup_minimal_symbol_by_pc_section): ... this. Replace
7447 'want_trampoline' parameter by a lookup_msym_prefer parameter.
7448 Handle it.
7449 (lookup_minimal_symbol_by_pc_section): Delete old implementation.
7450 (lookup_minimal_symbol_by_pc): Adjust.
7451 (in_gnu_ifunc_stub): Prefer GNU ifunc symbols.
7452 (lookup_solib_trampoline_symbol_by_pc): Adjust.
7453 * minsyms.h (lookup_msym_prefer): New enum.
7454 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
7455 parameter by a lookup_msym_prefer parameter.
7456
1adeb822
PA
74572018-04-26 Pedro Alves <palves@redhat.com>
7458
7459 * elfread.c (elf_gnu_ifunc_record_cache): Check if the symbol name
7460 ends in "@plt" instead of looking at the symbol's section.
7461
a0aca7b0
PA
74622018-04-26 Pedro Alves <palves@redhat.com>
7463
7464 * blockframe.c (cache_pc_function_is_gnu_ifunc): Delete. Remove
7465 all references.
7466 (find_pc_partial_function_gnu_ifunc): Rename to ...
7467 (find_pc_partial_function): ... this, and remove references to
7468 'is_gnu_ifunc_p'.
7469 (find_pc_partial_function): Delete old implementation.
7470 * symtab.h (find_pc_partial_function_gnu_ifunc): Delete.
7471
76af0f26
PA
74722018-04-26 Pedro Alves <palves@redhat.com>
7473
7474 * linespec.c (struct bound_minimal_symbol_search_key): New.
7475 (convert_linespec_to_sals): Sort minimal symbols earlier. Don't
7476 skip first line if we found a GNU ifunc minimal symbol by name.
7477 (compare_msymbols): Change parameters to work with a destructured
7478 lhs minsym.
7479 (compare_msymbols_for_qsort, compare_msymbols_for_bsearch): New
7480 functions.
7481
3467ec66
PA
74822018-04-26 Pedro Alves <palves@redhat.com>
7483
7484 * breakpoint.c (set_breakpoint_location_function): Don't resolve
7485 ifunc targets here. Instead, if we have an ifunc minsym, use its
7486 address/name.
7487 (add_location_to_breakpoint): Store the minsym and the objfile in
7488 the breakpoint location.
7489 * breakpoint.h (bp_location) <msymbol, objfile>: New fields.
7490 * linespec.c (minsym_found): Resolve GNU ifunc targets here.
7491 Record the minsym in the sal.
7492 * symtab.h (symtab_and_line) <msymbol>: New field.
7493
28f4fa4d
PA
74942018-04-26 Pedro Alves <palves@redhat.com>
7495
7496 * elfread.c (elf_gnu_ifunc_resolve_by_got): Don't write to *ADDR_P
7497 unless we actually resolved the ifunc.
7498
ca31ab1d
PA
74992018-04-26 Pedro Alves <palves@redhat.com>
7500
7501 * c-exp.y (variable production): Prefer ifunc minsyms over
7502 regular function symbols.
7503 * symtab.c (find_gnu_ifunc): New function.
7504 * minsyms.h (lookup_msym_prefer): New enum.
7505 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
7506 parameter by a lookup_msym_prefer parameter.
7507 * symtab.h (find_gnu_ifunc): New declaration.
7508
8388016d
PA
75092018-04-26 Pedro Alves <palves@redhat.com>
7510
7511 * blockframe.c (find_gnu_ifunc_target_type): New function.
7512 (find_function_type): New.
7513 * eval.c (evaluate_var_msym_value): For GNU ifunc types, always
7514 return a value with a memory address.
7515 (eval_call): For calls to GNU ifunc functions, try to find the
7516 type of the target function from the type that the resolver
7517 returns.
7518 * gdbtypes.c (objfile_type): Don't install a return type for ifunc
7519 symbols.
7520 * infcall.c (find_function_return_type): Delete.
7521 (find_function_addr): Add 'function_type' parameter. For calls to
7522 GNU ifunc functions, try to find the type of the target function
7523 from the type that the resolver returns, and return it via
7524 FUNCTION_TYPE.
7525 (call_function_by_hand_dummy): Adjust to use the function type
7526 returned by find_function_addr.
7527 (find_function_addr): Add 'function_type' parameter and move
7528 description here.
7529 * symtab.h (find_function_type, find_gnu_ifunc_target_type): New
7530 declarations.
7531
a376e11d
PA
75322018-04-26 Pedro Alves <palves@redhat.com>
7533
7534 * c-exp.y (variable production): Skip finding an alias for ifunc
7535 symbols.
7536
02e169e2
PA
75372018-04-26 Pedro Alves <palves@redhat.com>
7538
7539 * elfread.c (elf_rel_plt_read): Look for relocations for .got.plt too.
7540
249b5733
PA
75412018-04-25 Pedro Alves <palves@redhat.com>
7542
7543 * infcmd.c (kill_command): Print the pid as string, not the whole
7544 thread's ptid. Add comment. s/has been killed/killed/ in output
7545 message.
7546 * remote.c (remote_detach_1): Print the pid as string, not the
7547 whole thread's ptid.
7548
f67c0c91
SDJ
75492018-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
7550 Sergio Durigan Junior <sergiodj@redhat.com>
7551 Pedro Alves <palves@redhat.com>
7552
7553 * infcmd.c (kill_command): Print message when inferior has
7554 been killed.
7555 * inferior.c (print_inferior_events): Remove 'static'. Set as
7556 '1'.
7557 (add_inferior): Improve message printed when
7558 'print_inferior_events' is on.
7559 (exit_inferior): Remove message printed when
7560 'print_inferior_events' is on.
7561 (detach_inferior): Improve message printed when
7562 'print_inferior_events' is on.
7563 (initialize_inferiors): Use 'add_inferior_silent' to set
7564 'current_inferior_'.
7565 * inferior.h (print_inferior_events): Declare here as
7566 'extern'.
7567 * infrun.c (follow_fork_inferior): Print '[Attaching...]' or
7568 '[Detaching...]' messages when 'print_inferior_events' is on.
7569 Use 'add_thread_silent' instead of 'add_thread'. Add '[' and ']'
7570 as prefix/suffix for messages. Remove periods. Fix erroneous
7571 'Detaching after fork from child...', replace it by '... from
7572 parent...'.
7573 (handle_vfork_child_exec_or_exit): Add '[' and ']' as
7574 prefix/suffix when printing 'Detaching...' messages. Print
7575 them when 'print_inferior_events' is on.
7576 * remote.c (remote_detach_1): Print message when detaching
7577 from inferior and '!is_fork_parent'.
7578
e427af18
TT
75792018-04-24 Tom Tromey <tom@tromey.com>
7580
7581 * cli-out.h: Reindent.
7582
05b1d8d6
TT
75832018-04-24 Tom Tromey <tom@tromey.com>
7584
7585 * cli-out.c (cli_ui_out::out_field_fmt): Remove.
7586 (cli_ui_out::do_field_string): Use fputs_filtered.
7587 * cli-out.h (class cli_ui_out) <out_field_fmt>: Remove.
7588
a95c7dab
TT
75892018-04-23 Tom Tromey <tom@tromey.com>
7590
7591 * guile/scm-frame.c (gdbscm_frame_read_var): Use
7592 gdb::unique_xmalloc_ptr.
7593
458412c3
TT
75942018-04-23 Tom Tromey <tom@tromey.com>
7595
7596 * configure: Rebuild.
7597
db86b02b
RS
75982018-04-22 Rajendra SY <rajendra.sy@gmail.com>
7599
7600 PR gdb/23095
7601 * gdb/testsuite/gdb.base/break-probes.exp: Pass shlib_load to
7602 prepare_for_testing. Set normal_bp to r_debug_state if target
7603 is bsd.
7604
00aecdcf
PA
76052018-04-21 Pedro Alves <palves@redhat.com>
7606 Rajendra SY <rajendra.sy@gmail.com>
7607
7608 * inf-ptrace.c (inf_ptrace_attach): Mark the thread as executing.
7609 * remote.c (extended_remote_attach): In all-stop mode, mark the
7610 thread as executing.
7611
224608c3
PW
76122018-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7613
7614 * thread.c (thread_apply_all_command): Fix comment.
7615 (thread_command): Fix comment.
7616
3b74854b
AH
76172018-04-10 Alan Hayward <alan.hayward@arm.com>
7618
7619 * common/tdesc.h (tdesc_create_feature): Remove xml filename
7620 parameter.
7621 * features/aarch64-core.c (create_feature_aarch64_core):
7622 Regenerate.
7623 * features/aarch64-fpu.c (create_feature_aarch64_fpu):
7624 Likewise.
7625 * features/i386/32bit-avx.c (create_feature_i386_32bit_avx):
7626 Likewise.
7627 * features/i386/32bit-avx512.c
7628 (create_feature_i386_32bit_avx512): Likewise.
7629 * features/i386/32bit-core.c (create_feature_i386_32bit_core):
7630 Likewise.
7631 * features/i386/32bit-linux.c (create_feature_i386_32bit_linux):
7632 Likewise.
7633 * features/i386/32bit-mpx.c (create_feature_i386_32bit_mpx):
7634 Likewise.
7635 * features/i386/32bit-pkeys.c (create_feature_i386_32bit_pkeys):
7636 Likewise.
7637 * features/i386/32bit-sse.c (create_feature_i386_32bit_sse):
7638 Likewise.
7639 * features/i386/64bit-avx.c (create_feature_i386_64bit_avx):
7640 Likewise.
7641 * features/i386/64bit-avx512.c
7642 (create_feature_i386_64bit_avx512): Likewise.
7643 * features/i386/64bit-core.c (create_feature_i386_64bit_core):
7644 Likewise.
7645 * features/i386/64bit-linux.c (create_feature_i386_64bit_linux):
7646 Likewise.
7647 * features/i386/64bit-mpx.c (create_feature_i386_64bit_mpx):
7648 Likewise.
7649 * features/i386/64bit-pkeys.c (create_feature_i386_64bit_pkeys):
7650 Likewise.
7651 * features/i386/64bit-segments.c
7652 (create_feature_i386_64bit_segments): Likewise.
7653 * features/i386/64bit-sse.c (create_feature_i386_64bit_sse):
7654 Likewise.
7655 * features/i386/x32-core.c
7656 (create_feature_i386_x32_core): Likewise.
7657 * features/tic6x-c6xp.c (create_feature_tic6x_c6xp): Likewise.
7658 * features/tic6x-core.c (create_feature_tic6x_core): Likewise.
7659 * features/tic6x-gp.c (create_feature_tic6x_gp): Likewise.
7660 * target-descriptions.c: In generated code, don't pass xml
7661 filename.
7662
e98577a9
AH
76632018-04-18 Alan Hayward <alan.hayward@arm.com>
7664
7665 * common/tdesc.c (print_xml_feature::visit_pre): Add xml parsing.
7666 (print_xml_feature::visit_post): Likewise.
7667 (print_xml_feature::visit): Likewise.
7668 * common/tdesc.h (tdesc_get_features_xml): Use const tdesc.
7669 (print_xml_feature): Add new class.
7670 * regformats/regdat.sh: Null xmltarget on feature targets.
7671 * target-descriptions.c (struct target_desc): Add xmltarget.
7672 (maintenance_check_tdesc_xml_convert): Add unittest function.
7673 (tdesc_get_features_xml): Add function to get xml.
7674 (maintenance_check_xml_descriptions): Test xml generation.
7675 * xml-tdesc.c (string_read_description_xml): Add function.
7676 * xml-tdesc.h (string_read_description_xml): Add declaration.
7677
ad7fc756
AH
76782018-04-18 Alan Hayward <alan.hayward@arm.com>
7679
7680 * features/Makefile: Add feature marker to targets with new style
7681 target descriptions.
7682 * regformats/aarch64.dat: Regenerate.
7683 * regformats/i386/amd64-avx-avx512-linux.dat: Likewise.
7684 * regformats/i386/amd64-avx-linux.dat: Likewise.
7685 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Likewise.
7686 * regformats/i386/amd64-avx-mpx-linux.dat: Likewise.
7687 * regformats/i386/amd64-linux.dat: Likewise.
7688 * regformats/i386/amd64-mpx-linux.dat: Likewise.
7689 * regformats/i386/amd64.dat: Likewise.
7690 * regformats/i386/i386-avx-avx512-linux.dat: Likewise.
7691 * regformats/i386/i386-avx-linux.dat: Likewise.
7692 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Likewise.
7693 * regformats/i386/i386-avx-mpx-linux.dat: Likewise.
7694 * regformats/i386/i386-linux.dat: Likewise.
7695 * regformats/i386/i386-mmx-linux.dat: Likewise.
7696 * regformats/i386/i386-mpx-linux.dat: Likewise.
7697 * regformats/i386/i386.dat: Likewise.
7698 * regformats/i386/x32-avx-avx512-linux.dat: Likewise.
7699 * regformats/i386/x32-avx-linux.dat: Likewise.
7700 * regformats/i386/x32-linux.dat: Likewise.
7701 * regformats/tic6x-c62x-linux.dat: Likewise.
7702 * regformats/tic6x-c64x-linux.dat: Likewise.
7703 * regformats/tic6x-c64xp-linux.dat: Likewise.
7704 * regformats/regdat.sh: Parse feature marker.
7705
d278f585
AH
77062018-04-18 Alan Hayward <alan.hayward@arm.com>
7707
7708 * common/tdesc.h (tdesc_architecture_name): Add new declaration.
7709 (tdesc_osabi_name): Likewise.
7710 * target-descriptions.c (tdesc_architecture_name): Add new
7711 function.
7712 (tdesc_osabi_name): Likewise.
7713
eee8a18d
AH
77142018-04-18 Alan Hayward <alan.hayward@arm.com>
7715
7716 * common/tdesc.c (tdesc_predefined_type): Move to here.
7717 (tdesc_named_type): Likewise.
7718 (tdesc_create_vector): Likewise.
7719 (tdesc_create_struct): Likewise.
7720 (tdesc_set_struct_size): Likewise.
7721 (tdesc_create_union): Likewise.
7722 (tdesc_create_flags): Likewise.
7723 (tdesc_create_enum): Likewise.
7724 (tdesc_add_field): Likewise.
7725 (tdesc_add_typed_bitfield): Likewise.
7726 (tdesc_add_bitfield): Likewise.
7727 (tdesc_add_flag): Likewise.
7728 (tdesc_add_enum_value): Likewise.
7729 * common/tdesc.h (struct tdesc_type_builtin): Likewise.
7730 (struct tdesc_type_vector): Likewise.
7731 (struct tdesc_type_field): Likewise.
7732 (struct tdesc_type_with_fields): Likewise.
7733 (tdesc_create_enum): Add declaration.
7734 (tdesc_add_typed_bitfield): Likewise.
7735 (tdesc_add_enum_value): Likewise.
7736 * target-descriptions.c (tdesc_type_field): Move from here.
7737 (tdesc_type_builtin): Likewise.
7738 (tdesc_type_vector): Likewise.
7739 (tdesc_type_with_fields): Likewise.
7740 (tdesc_predefined_types): Likewise.
7741 (tdesc_named_type): Likewise.
7742 (tdesc_create_vector): Likewise.
7743 (tdesc_create_struct): Likewise.
7744 (tdesc_set_struct_size): Likewise.
7745 (tdesc_create_union): Likewise.
7746 (tdesc_create_flags): Likewise.
7747 (tdesc_create_enum): Likewise.
7748 (tdesc_add_field): Likewise.
7749 (tdesc_add_typed_bitfield): Likewise.
7750 (tdesc_add_bitfield): Likewise.
7751 (tdesc_add_flag): Likewise.
7752 (tdesc_add_enum_value): Likewise.
7753 * gdb/target-descriptions.h (tdesc_create_enum): Likewise.
7754 (tdesc_add_typed_bitfield): Likewise.
7755 (tdesc_add_enum_value): Likewise.
7756
82ec9bc7
AH
77572018-04-18 Alan Hayward <alan.hayward@arm.com>
7758
7759 * common/tdesc.c (tdesc_feature::accept): Move to here.
7760 (tdesc_feature::operator==): Likewise.
7761 (tdesc_create_reg): Likewise.
7762 * common/tdesc.h (tdesc_type_kind): Likewise.
7763 (struct tdesc_type): Likewise.
7764 (struct tdesc_feature): Likewise.
7765 * regformats/regdat.sh: Create a feature.
7766 * target-descriptions.c (tdesc_type_kind): Move from here.
7767 (tdesc_type): Likewise.
7768 (tdesc_type_up): Likewise.
7769 (tdesc_feature): Likewise.
7770 (tdesc_create_reg): Likewise.
7771
ea3e7d71
AH
77722018-04-18 Alan Hayward <alan.hayward@arm.com>
7773
7774 * Makefile.in: Add arch/tdesc.c
7775 * common/tdesc.c: New file.
7776 * common/tdesc.h (tdesc_element_visitor): Move to here.
7777 (tdesc_element): Likewise.
7778 (tdesc_reg): Likewise.
7779 (tdesc_reg_up): Likewise.
7780 * regformats/regdef.h (reg): Add offset to constructors.
7781 * target-descriptions.c (tdesc_element_visitor): Move from here.
7782 (tdesc_element): Likewise.
7783 (tdesc_reg): Likewise.
7784 (tdesc_reg_up): Likewise.
7785
bedda9ac
TT
77862018-04-17 Tom Tromey <tom@tromey.com>
7787
7788 * dwarf2read.c (quirk_rust_enum): Conditionally drop the
7789 discriminant field.
7790
a037790e
TT
77912018-04-17 Tom Tromey <tom@tromey.com>
7792
7793 * dwarf2read.c (quirk_rust_enum): Handle unions correctly.
7794
c7dcbf88
AA
77952018-04-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
7796
7797 * symtab.c (print_symbol_info): Skip printing filename and line
7798 number when `last' is NULL.
7799 (symtab_symbol_info): Use empty string instead of NULL for first
7800 invocation of print_symbol_info.
7801 (rbreak_command): Pass NULL to `last' parameter of
7802 print_symbol_info.
7803
07d28c77
SM
78042018-04-16 Simon Marchi <simon.marchi@ericsson.com>
7805
7806 * linux-tdep.c (linux_spu_make_corefile_notes): Return note_data
7807 instead of nullptr.
7808
8a3de5e1
PA
78092018-04-16 Pedro Alves <palves@redhat.com>
7810
7811 * MAINTAINERS (sh): Remove.
7812 * Makefile.in (ALL_TARGET_OBS): Remove sh64-tdep.o.
7813 (HFILES_NO_SRCDIR): Remove sh64-tdep.h.
7814 (ALLDEPFILES): Remove sh64-tdep.c.
7815 * NEWS: Mentions that support for SH-5/SH64 is removed.
7816 * configure.tgt (sh*-*-linux*): Remove reference to sh64-tdep.o.
7817 (sh*-*-openbsd*): Ditto.
7818 (sh64-*-elf*): Remove.
7819 (sh*): Remove.
7820 * regcache.c (cooked_write_test): Remove bfd_mach_sh5 case.
7821 * sh-linux-tdep.c: Remove reference to bfd_mach_sh5.
7822 * sh-tdep.c: No longer include "sh64-tdep.h".
7823 (sh_gdbarch_init): Remove reference to bfd_mach_sh5.
7824 * sh64-tdep.c, sh64-tdep.h: Remove files.
7825
a2a79012
PA
78262018-04-16 Pedro Alves <palves@redhat.com>
7827
7828 * MAINTAINERS: Remove m88k.
7829 * Makefile.in (ALL_TARGET_OBS): Remove m88k-tdep.o.
7830 (HFILES_NO_SRCDIR): Remove m88k-tdep.h.
7831 (ALLDEPFILES): Remove m88k-bsd-nat.c and m88k-tdep.c.
7832 * NEWS: Mention that support for m88k was removed.
7833 * configure.host (m88*-*-*): Remove support.
7834 * configure.nat (m88k-*-*): Remove support.
7835 * configure.tgt (m88*-*-openbsd*): Remove.
7836 * m88k-bsd-nat.c, m88k-tdep.c, m88k-tdep.h: Delete.
7837
eda4efb1
SM
78382018-04-15 Simon Marchi <simon.marchi@polymtl.ca>
7839
7840 * configure.tgt (x86_tobjs): New variable.
7841 (amd64_tobjs, i386_tobjs): Use it.
7842
b744723f
AA
78432018-04-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7844
7845 * symtab.c (print_symbol_info): Precede the symbol definition by
7846 the line number when available.
7847 * NEWS: Advertise this enhancement.
7848
4a4495d6
MM
78492018-04-13 Markus Metzger <markus.t.metzger@intel.com>
7850
7851 * NEWS (New options): announce set/show record btrace cpu.
7852 * btrace.c: Include record-btrace.h.
7853 (btrace_compute_ftrace_pt): Skip enabling errata workarounds if
7854 the vendor is unknown.
7855 (btrace_compute_ftrace_1): Add cpu parameter. Update callers.
7856 Maybe overwrite the btrace configuration's cpu.
7857 (btrace_compute_ftrace): Add cpu parameter. Update callers.
7858 (btrace_fetch): Add cpu parameter. Update callers.
7859 (btrace_maint_update_pt_packets): Call record_btrace_get_cpu.
7860 Maybe overwrite the btrace configuration's cpu. Skip enabling
7861 errata workarounds if the vendor is unknown.
7862 * python/py-record-btrace.c: Include record-btrace.h.
7863 (recpy_bt_begin, recpy_bt_end, recpy_bt_instruction_history)
7864 (recpy_bt_function_call_history): Call record_btrace_get_cpu.
7865 * record-btrace.c (record_btrace_cpu_state_kind): New.
7866 (record_btrace_cpu): New.
7867 (set_record_btrace_cpu_cmdlist): New.
7868 (record_btrace_get_cpu): New.
7869 (require_btrace_thread, record_btrace_info)
7870 (record_btrace_resume_thread): Call record_btrace_get_cpu.
7871 (cmd_set_record_btrace_cpu_none): New.
7872 (cmd_set_record_btrace_cpu_auto): New.
7873 (cmd_set_record_btrace_cpu): New.
7874 (cmd_show_record_btrace_cpu): New.
7875 (_initialize_record_btrace): Initialize set/show record btrace cpu
7876 commands.
7877 * record-btrace.h (record_btrace_get_cpu): New.
7878
69f90c75
MM
78792018-04-13 Markus Metzger <markus.t.metzger@intel.com>
7880
7881 * record.c (set_record_command): Fix typo in message.
7882
b85310e1
MM
78832018-04-13 Markus Metzger <markus.t.metzger@intel.com>
7884
7885 * record-btrace.c (cmd_set_record_btrace): Print sub-commands.
7886
1d509aa6
MM
78872018-04-13 Markus Metzger <markus.t.metzger@intel.com>
7888
7889 * infrun.c (process_event_stop_test): Call
7890 gdbarch_in_indirect_branch_thunk.
7891 * gdbarch.sh (in_indirect_branch_thunk): New.
7892 * gdbarch.c: Regenerated.
7893 * gdbarch.h: Regenerated.
7894 * x86-tdep.h: New.
7895 * x86-tdep.c: New.
7896 * Makefile.in (ALL_TARGET_OBS): Add x86-tdep.o.
7897 (HFILES_NO_SRCDIR): Add x86-tdep.h.
7898 (ALLDEPFILES): Add x86-tdep.c.
7899 * arch-utils.h (default_in_indirect_branch_thunk): New.
7900 * arch-utils.c (default_in_indirect_branch_thunk): New.
7901 * i386-tdep: Include x86-tdep.h.
7902 (i386_in_indirect_branch_thunk): New.
7903 (i386_elf_init_abi): Set in_indirect_branch_thunk gdbarch
7904 function.
7905 * amd64-tdep: Include x86-tdep.h.
7906 (amd64_in_indirect_branch_thunk): New.
7907 (amd64_init_abi): Set in_indirect_branch_thunk gdbarch function.
7908
b4be9bfd
JK
79092018-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
7910
7911 PR gdb/23053
7912 * dwarf-index-write.c (data_buf::grow) (write_one_signatured_type)
7913 (recursively_write_psymbols) (debug_names::recursively_write_psymbols)
7914 (debug_names::write_one_signatured_type): Fix -D_GLIBCXX_DEBUG
7915 regression.
7916
53d7df28
TT
79172018-04-12 Tom Tromey <tom@tromey.com>
7918
7919 * rust-lang.c (rust_print_struct_def): Remove univariant code.
7920 (rust_evaluate_subexp): Likewise.
7921
70b33f19
PA
79222018-04-12 Pedro Alves <palves@redhat.com>
7923
7924 * procfs.c (procfs_detach): Make forward declaration's prototype
7925 match definition's protototype.
7926 (proc_get_LDT_entry): Remove stale do_cleanups call.
7927
436411b1
PA
79282018-04-12 Pedro Alves <palves@redhat.com>
7929
7930 * target.h (target_ops::to_has_exited): Delete.
7931 (target_has_exited): Delete.
7932 * target-delegates.c: Regenerate.
7933
20db9c52
PA
79342018-04-11 Pedro Alves <palves@redhat.com>
7935
7936 * target.c (fileio_fh_t::t): Add comment.
7937 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
7938 (target_fileio_close): Handle a NULL target.
7939 (invalidate_fileio_fh): New.
7940 (target_close): Call it.
7941 * remote.c (remote_hostio_send_command): No longer check whether
7942 remote_desc is open.
7943
5ff79300
PA
79442018-04-11 Pedro Alves <palves@redhat.com>
7945
7946 * target.c (fileio_fh_t): Make it a named struct instead of a
7947 typedef.
7948 (fileio_fh_t::is_closed): New method.
7949 (DEF_VEC_O (fileio_fh_t)): Remove.
7950 (fileio_fhandles): Now a std::vector.
7951 (is_closed_fileio_fh): Delete.
7952 (acquire_fileio_fd): Adjust. Rename parameters.
7953 (release_fileio_fd): Adjust.
7954 (fileio_fd_to_fh): Reimplement as a function instead of a macro.
7955 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
7956 (target_fileio_close): Adjust.
7957
6e22e10d
SM
79582018-04-10 Simon Marchi <simon.marchi@ericsson.com>
7959
7960 * auto-load.c (auto_load_safe_path_vec_update): Iterate by
7961 index.
7962
731f534f
PA
79632018-04-10 Pedro Alves <palves@redhat.com>
7964
7965 * gdbthread.h (finish_thread_state_cleanup): Delete declaration.
7966 (scoped_finish_thread_state): New class.
7967 * infcmd.c (run_command_1): Use it instead of finish_thread_state
7968 cleanup.
7969 * infrun.c (proceed, prepare_for_detach, wait_for_inferior)
7970 (fetch_inferior_event, normal_stop): Likewise.
7971 * thread.c (finish_thread_state_cleanup): Delete.
7972
d5f4488f
SM
79732018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
7974 Pedro Alves <palves@redhat.com>
7975
7976 * value.c: Include "selftest.h" and "common/array-view.h".
7977 (struct range) <operator ==>: New.
7978 (test_ranges_contain): New.
7979 (check_ranges_vector): New.
7980 (test_insert_into_bit_range_vector): New.
7981 (_initialize_values): Register selftests.
7982 * common/array-view.h (operator==, operator!=): New.
7983
b24531ed
SM
79842018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
7985
7986 * common/gdb_vecs.h (unordered_remove): Add overload that takes
7987 an iterator.
7988 * inline-frame.c: Include <algorithm>.
7989 (struct inline_state): Add constructor.
7990 (inline_state_s): Remove.
7991 (DEF_VEC_O(inline_state_s)): Remove.
7992 (inline_states): Change type to std::vector.
7993 (find_inline_frame_state): Adjust to std::vector.
7994 (allocate_inline_frame_state): Remove.
7995 (clear_inline_frame_state): Adjust to std::vector.
7996 (skip_inline_frames): Adjust to std::vector.
7997
c252925c
SM
79982018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
7999
8000 * tracepoint.h (struct trace_state_variable): Add constructor.
8001 <name>: Change type to std::string.
8002 * tracepoint.c (tsv_s): Remove.
8003 (DEF_VEC_O(tsv_s)): Remove.
8004 (tvariables): Change to std::vector.
8005 (create_trace_state_variable): Adjust to std::vector.
8006 (find_trace_state_variable): Likewise.
8007 (find_trace_state_variable_by_number): Likewise.
8008 (delete_trace_state_variable): Likewise.
8009 (trace_variable_command): Adjust to std::string.
8010 (delete_trace_variable_command): Likewise.
8011 (tvariables_info_1): Adjust to std::vector.
8012 (save_trace_state_variables): Likewise.
8013 (start_tracing): Likewise.
8014 (merge_uploaded_trace_state_variables): Adjust to std::vector
8015 and std::string.
8016 * target.h (struct target_ops)
8017 <to_download_trace_state_variable>: Pass reference to
8018 trace_state_variable.
8019 * target-debug.h (target_debug_print_const_trace_state_variable_r): New.
8020 * target-delegates.c: Re-generate.
8021 * mi/mi-interp.c (mi_tsv_created): Adjust to std::string.
8022 (mi_tsv_deleted): Likewise.
8023 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
8024 * remote.c (remote_download_trace_state_variable): Change
8025 pointer to reference and adjust.
8026 * make-target-delegates (parse_argtypes): Handle references.
8027 (write_function_header): Likewise.
8028 (munge_type): Likewise.
8029
c9638d26
SM
80302018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
8031
8032 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
8033 string_view-selftests.c.
8034 * unittests/basic_string_view/capacity/1.cc: Adapt to GDB
8035 testsuite.
8036 * unittests/basic_string_view/cons/char/1.cc: Likewise.
8037 * unittests/basic_string_view/cons/char/2.cc: Likewise.
8038 * unittests/basic_string_view/cons/char/3.cc: Likewise.
8039 * unittests/basic_string_view/element_access/char/1.cc:
8040 Likewise.
8041 * unittests/basic_string_view/element_access/char/empty.cc:
8042 Likewise.
8043 * unittests/basic_string_view/element_access/char/front_back.cc:
8044 Likewise.
8045 * unittests/basic_string_view/inserters/char/2.cc: Likewise.
8046 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc:
8047 Likewise.
8048 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc:
8049 Likewise.
8050 * unittests/basic_string_view/modifiers/swap/char/1.cc:
8051 Likewise.
8052 * unittests/basic_string_view/operations/compare/char/1.cc:
8053 Likewise.
8054 * unittests/basic_string_view/operations/compare/char/13650.cc:
8055 Likewise.
8056 * unittests/basic_string_view/operations/copy/char/1.cc:
8057 Likewise.
8058 * unittests/basic_string_view/operations/data/char/1.cc:
8059 Likewise.
8060 * unittests/basic_string_view/operations/find/char/1.cc:
8061 Likewise.
8062 * unittests/basic_string_view/operations/find/char/2.cc:
8063 Likewise.
8064 * unittests/basic_string_view/operations/find/char/3.cc:
8065 Likewise.
8066 * unittests/basic_string_view/operations/find/char/4.cc:
8067 Likewise.
8068 * unittests/basic_string_view/operations/rfind/char/1.cc:
8069 Likewise.
8070 * unittests/basic_string_view/operations/rfind/char/2.cc:
8071 Likewise.
8072 * unittests/basic_string_view/operations/rfind/char/3.cc:
8073 Likewise.
8074 * unittests/basic_string_view/operations/substr/char/1.cc:
8075 Likewise.
8076 * unittests/basic_string_view/operators/char/2.cc: Likewise.
8077 * unittests/string_view-selftests.c: New file.
8078
fdc11678
SM
80792018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
8080
8081 * unittests/basic_string_view/capacity/1.cc: New file.
8082 * unittests/basic_string_view/capacity/empty_neg.cc: New file.
8083 * unittests/basic_string_view/cons/char/1.cc: New file.
8084 * unittests/basic_string_view/cons/char/2.cc: New file.
8085 * unittests/basic_string_view/cons/char/3.cc: New file.
8086 * unittests/basic_string_view/cons/wchar_t/1.cc: New file.
8087 * unittests/basic_string_view/cons/wchar_t/2.cc: New file.
8088 * unittests/basic_string_view/cons/wchar_t/3.cc: New file.
8089 * unittests/basic_string_view/element_access/char/1.cc: New file.
8090 * unittests/basic_string_view/element_access/char/2.cc: New file.
8091 * unittests/basic_string_view/element_access/char/empty.cc: New file.
8092 * unittests/basic_string_view/element_access/char/front_back.cc: New file.
8093 * unittests/basic_string_view/element_access/wchar_t/1.cc: New file.
8094 * unittests/basic_string_view/element_access/wchar_t/2.cc: New file.
8095 * unittests/basic_string_view/element_access/wchar_t/empty.cc: New file.
8096 * unittests/basic_string_view/element_access/wchar_t/front_back.cc: New file.
8097 * unittests/basic_string_view/include.cc: New file.
8098 * unittests/basic_string_view/inserters/char/1.cc: New file.
8099 * unittests/basic_string_view/inserters/char/2.cc: New file.
8100 * unittests/basic_string_view/inserters/char/3.cc: New file.
8101 * unittests/basic_string_view/inserters/pod/10081-out.cc: New file.
8102 * unittests/basic_string_view/inserters/wchar_t/1.cc: New file.
8103 * unittests/basic_string_view/inserters/wchar_t/2.cc: New file.
8104 * unittests/basic_string_view/inserters/wchar_t/3.cc: New file.
8105 * unittests/basic_string_view/literals/types.cc: New file.
8106 * unittests/basic_string_view/literals/values.cc: New file.
8107 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc: New file.
8108 * unittests/basic_string_view/modifiers/remove_prefix/wchar_t/1.cc: New file.
8109 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc: New file.
8110 * unittests/basic_string_view/modifiers/remove_suffix/wchar_t/1.cc: New file.
8111 * unittests/basic_string_view/modifiers/swap/char/1.cc: New file.
8112 * unittests/basic_string_view/modifiers/swap/wchar_t/1.cc: New file.
8113 * unittests/basic_string_view/operations/compare/char/1.cc: New file.
8114 * unittests/basic_string_view/operations/compare/char/13650.cc: New file.
8115 * unittests/basic_string_view/operations/compare/char/2.cc: New file.
8116 * unittests/basic_string_view/operations/compare/char/70483.cc: New file.
8117 * unittests/basic_string_view/operations/compare/wchar_t/1.cc: New file.
8118 * unittests/basic_string_view/operations/compare/wchar_t/13650.cc: New file.
8119 * unittests/basic_string_view/operations/compare/wchar_t/2.cc: New file.
8120 * unittests/basic_string_view/operations/copy/char/1.cc: New file.
8121 * unittests/basic_string_view/operations/copy/wchar_t/1.cc: New file.
8122 * unittests/basic_string_view/operations/data/char/1.cc: New file.
8123 * unittests/basic_string_view/operations/data/wchar_t/1.cc: New file.
8124 * unittests/basic_string_view/operations/find/char/1.cc: New file.
8125 * unittests/basic_string_view/operations/find/char/2.cc: New file.
8126 * unittests/basic_string_view/operations/find/char/3.cc: New file.
8127 * unittests/basic_string_view/operations/find/char/4.cc: New file.
8128 * unittests/basic_string_view/operations/find/wchar_t/1.cc: New file.
8129 * unittests/basic_string_view/operations/find/wchar_t/2.cc: New file.
8130 * unittests/basic_string_view/operations/find/wchar_t/3.cc: New file.
8131 * unittests/basic_string_view/operations/find/wchar_t/4.cc: New file.
8132 * unittests/basic_string_view/operations/rfind/char/1.cc: New file.
8133 * unittests/basic_string_view/operations/rfind/char/2.cc: New file.
8134 * unittests/basic_string_view/operations/rfind/char/3.cc: New file.
8135 * unittests/basic_string_view/operations/rfind/wchar_t/1.cc: New file.
8136 * unittests/basic_string_view/operations/rfind/wchar_t/2.cc: New file.
8137 * unittests/basic_string_view/operations/rfind/wchar_t/3.cc: New file.
8138 * unittests/basic_string_view/operations/string_conversion/1.cc: New file.
8139 * unittests/basic_string_view/operations/substr/char/1.cc: New file.
8140 * unittests/basic_string_view/operations/substr/wchar_t/1.cc: New file.
8141 * unittests/basic_string_view/operators/char/2.cc: New file.
8142 * unittests/basic_string_view/operators/wchar_t/2.cc: New file.
8143 * unittests/basic_string_view/range_access/char/1.cc: New file.
8144 * unittests/basic_string_view/range_access/wchar_t/1.cc: New file.
8145 * unittests/basic_string_view/requirements/explicit_instantiation/1.cc: New file.
8146 * unittests/basic_string_view/requirements/explicit_instantiation/char/1.cc: New file.
8147 * unittests/basic_string_view/requirements/explicit_instantiation/char16_t/1.cc: New file.
8148 * unittests/basic_string_view/requirements/explicit_instantiation/char32_t/1.cc: New file.
8149 * unittests/basic_string_view/requirements/explicit_instantiation/wchar_t/1.cc: New file.
8150 * unittests/basic_string_view/requirements/typedefs.cc: New file.
8151 * unittests/basic_string_view/typedefs.cc: New file.
8152 * unittests/basic_string_view/types/1.cc: New file.
8153
8345c4a2
SM
81542018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
8155
8156 * common/gdb_string_view.h: Remove libstdc++ implementation
8157 details, adjust to gdb reality.
8158 * common/gdb_string_view.tcc: Likewise.
8159 * cli/cli-script.c (struct string_view): Remove.
8160 (user_args) <m_args>: Change element type to gdb::string_view.
8161 (user_args::insert_args): Adjust.
8162
7adcdf08
SM
81632018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
8164
8165 * common/gdb_string_view.h: New file.
8166 * common/gdb_string_view.tcc: New file.
8167
41260ac2
SM
81682018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
8169
8170 * ax_cxx_compile_stdcxx.m4: Sync with upstream.
8171 * configure: Re-generate.
8172
0bee6dd4
PA
81732018-04-09 Pedro Alves <palves@redhat.com>
8174
8175 * gdbarch.sh: Include "observable.h" instead of "observer.h".
8176 (set_target_gdbarch): Call
8177 gdb::observers::architecture_changed.notify instead of
8178 observer_notify_architecture_changed.
8179
6f14adc5
SM
81802018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
8181
8182 * tracepoint.c (struct current_traceframe_cleanup): Remove.
8183 (do_restore_current_traceframe_cleanup): Remove.
8184 (restore_current_traceframe_cleanup_dtor): Remove.
8185 (make_cleanup_restore_current_traceframe): Remove.
8186 (scoped_restore_current_traceframe::scoped_restore_current_traceframe):
8187 New.
8188 * tracepoint.h (struct scoped_restore_current_traceframe): New.
8189 * infrun.c (fetch_inferior_event): Use
8190 scoped_restore_current_traceframe.
8191
b2bdb8cf
SM
81922018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
8193
8194 * dwarf2read.h (struct dwarf2_per_objfile) <n_type_units>:
8195 Remove.
8196 <n_allocated_type_units>: Remove.
8197 <all_type_units>: Change to std::vector.
8198 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
8199 to std::vector change.
8200 (dwarf2_per_objfile::get_cutu): Likewise.
8201 (dwarf2_per_objfile::get_tu): Likewise.
8202 (create_signatured_type_table_from_index): Likewise.
8203 (create_signatured_type_table_from_debug_names): Likewise.
8204 (dw2_symtab_iter_next): Likewise.
8205 (dw2_print_stats): Likewise.
8206 (dw2_expand_all_symtabs): Likewise.
8207 (dw2_expand_marked_cus): Likewise.
8208 (dw2_debug_names_iterator::next): Likewise.
8209 (dwarf2_initialize_objfile): Likewise.
8210 (add_signatured_type_cu_to_table): Likewise.
8211 (create_all_type_units): Likewise.
8212 (add_type_unit): Likewise.
8213 (struct tu_abbrev_offset): Add constructor.
8214 (build_type_psymtabs_1): Adjust to std::vector change.
8215 (print_tu_stats): Likewise.
8216 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
8217 (write_debug_names): Likewise.
8218
b76e467d
SM
82192018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
8220
8221 * dwarf2read.h (struct dwarf2_per_objfile) <all_comp_units>: Likewise.
8222 Make an std::vector.
8223 <n_comp_units>: Remove.
8224 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
8225 to std::vector change.
8226 (dwarf2_per_objfile::get_cutu): Likewise.
8227 (dwarf2_per_objfile::get_cu): Likewise.
8228 (create_cus_from_index): Likewise.
8229 (create_addrmap_from_index): Likewise.
8230 (create_addrmap_from_aranges): Likewise.
8231 (dwarf2_read_index): Likewise.
8232 (dw2_find_last_source_symtab): Likewise.
8233 (dw2_map_symtabs_matching_filename): Likewise.
8234 (dw2_symtab_iter_next): Likewise.
8235 (dw2_print_stats): Likewise.
8236 (dw2_expand_all_symtabs): Likewise.
8237 (dw2_expand_symtabs_with_fullname): Likewise.
8238 (dw2_expand_marked_cus): Likewise.
8239 (dw2_map_symbol_filenames): Likewise.
8240 (create_cus_from_debug_names): Likewise.
8241 (dwarf2_read_debug_names): Likewise.
8242 (dw2_debug_names_iterator::next): Likewise.
8243 (dwarf2_initialize_objfile): Likewise.
8244 (set_partial_user): Likewise.
8245 (dwarf2_build_psymtabs_hard): Likewise.
8246 (read_comp_units_from_section): Remove arguments, adjust to
8247 std::vector change.
8248 (create_all_comp_units): Adjust to std::vector and
8249 read_comp_units_from_section changes.
8250 (dwarf2_find_containing_comp_unit): Adjust to std::vector
8251 change.
8252 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
8253 (psyms_seen_size): Likewise.
8254 (write_gdbindex): Likewise.
8255 (write_debug_names): Likewise.
8256
12359b5e
SM
82572018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
8258
8259 * dwarf2read.c (create_cus_from_index_list): Replace objfile arg
8260 with dwarf2_per_objfile.
8261 (create_cus_from_index): Likewise.
8262 (create_signatured_type_table_from_index): Likewise.
8263 (dwarf2_read_index): Likewise.
8264 (dwarf2_initialize_objfile): Likewise.
8265 (dwarf2_fetch_die_loc_sect_off): Get dwarf2_per_objfile from
8266 per_cu rather than get_dwarf2_per_objfile.
8267
ff4c9fec
SM
82682018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
8269
8270 * dwarf2read.h (struct signatured_type): Forward declare.
8271 (struct dwarf2_per_objfile) <get_cutu, get_cu, get_tu>:
8272 New methods.
8273 * dwarf2read.c (dwarf2_per_objfile::get_cutu): Rename from...
8274 (dw2_get_cutu): ...this.
8275 (dwarf2_per_objfile::get_cu): Rename from...
8276 (dw2_get_cu): ...this.
8277 (dwarf2_per_objfile::get_tu): New.
8278 (create_addrmap_from_index): Adjust.
8279 (create_addrmap_from_aranges): Adjust.
8280 (dw2_find_last_source_symtab): Adjust.
8281 (dw2_map_symtabs_matching_filename): Adjust.
8282 (dw2_symtab_iter_next): Adjust.
8283 (dw2_print_stats): Adjust.
8284 (dw2_expand_all_symtabs): Adjust.
8285 (dw2_expand_symtabs_with_fullname): Adjust.
8286 (dw2_expand_marked_cus): Adjust.
8287 (dw_expand_symtabs_matching_file_matcher): Adjust.
8288 (dw2_map_symbol_filenames): Adjust.
8289 (dw2_debug_names_iterator::next): Adjust.
8290 (dwarf2_initialize_objfile): Adjust.
8291 (set_partial_user): Adjust.
8292 (dwarf2_build_psymtabs_hard): Adjust.
8293
5ca3fcb6
SM
82942018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
8295
8296 * dwarf2read.c (create_signatured_type_table_from_debug_names):
8297 Remove unused variables.
8298 (dw2_map_symtabs_matching_filename): Likewise.
8299 (dwarf2_record_block_ranges): Likewise.
8300 (dwarf2_read_addr_index): Likewise.
8301 (follow_die_offset): Likewise.
8302
b2e586e8
SM
83032018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
8304
8305 * progspace.c (clone_program_space): Pass SYMFILE_DEFER_BP_RESET
8306 to symbol_file_add_main.
8307
7c4e78cf
SM
83082018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
8309
8310 PR mi/22299
8311 * mi/mi-console.c (do_fputc_async_safe): New.
8312 (mi_console_file::write_async_safe): New.
8313 (mi_console_file::flush): Adjust calls to fputstrn_unfiltered.
8314 * mi/mi-console.h (class mi_console_file) <write_async_safe>:
8315 New.
8316 * ui-file.c (ui_file::putstrn): Adjust call to
8317 fputstrn_unfiltered.
8318 * utils.c (printchar): Replace do_fputs and do_fprintf
8319 parameters by do_fputc.
8320 (fputstr_filtered): Adjust call to printchar.
8321 (fputstr_unfiltered): Likewise.
8322 (fputstrn_filtered): Likewise.
8323 (fputstrn_unfiltered): Add do_fputc parameter, pass to
8324 printchar.
8325 * utils.h (do_fputc_ftype): New typedef.
8326 (fputstrn_unfiltered): Add do_fputc parameter.
8327
5dc026d3
SM
83282018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
8329
8330 * regformats/i386/i386-avx.dat: Remove.
8331
c912f608
SM
83322018-04-07 Simon Marchi <simon.marchi@ericsson.com>
8333
8334 PR gdb/22979
8335 * amd64-tdep.c (amd64_none_init_abi): New function.
8336 (amd64_x32_none_init_abi): New function.
8337 (_initialize_amd64_tdep): Register handlers for x86-64 and
8338 x64_32 with GDB_OSABI_NONE.
8339 * osabi.c (gdbarch_init_osabi): Allow running handlers for the
8340 GDB_OSABI_NONE osabi.
8341
26540402
SM
83422018-04-07 Simon Marchi <simon.marchi@ericsson.com>
8343
8344 PR gdb/22980
8345 * defs.h (enum gdb_osabi): Remove GDB_OSABI_UNINITIALIZED, add
8346 GDB_OSABI_NONE.
8347 * arch-utils.c (gdbarch_info_init): Don't set info->osabi.
8348 * osabi.c (gdb_osabi_names): Add "unknown" entry.
8349
9018be22
SM
83502018-04-07 Simon Marchi <simon.marchi@ericsson.com>
8351
8352 * common/byte-vector.h (char_vector): New type.
8353 * target.h (target_read_alloc): Return
8354 gdb::optional<byte_vector>.
8355 (target_read_stralloc): Return gdb::optional<char_vector>.
8356 (target_get_osdata): Return gdb::optional<char_vector>.
8357 * target.c (target_read_alloc_1): Templatize. Replacement
8358 manual memory management with vector.
8359 (target_read_alloc): Change return type, adjust.
8360 (target_read_stralloc): Change return type, adjust.
8361 (target_get_osdata): Change return type, adjust.
8362 * auxv.c (struct auxv_info) <length>: Remove.
8363 <data>: Change type to gdb::optional<byte_vector>.
8364 (auxv_inferior_data_cleanup): Free auxv_info with delete.
8365 (get_auxv_inferior_data): Allocate auxv_info with new, adjust.
8366 (target_auxv_search): Adjust.
8367 (fprint_target_auxv): Adjust.
8368 * avr-tdep.c (avr_io_reg_read_command): Adjust.
8369 * linux-tdep.c (linux_spu_make_corefile_notes): Adjust.
8370 (linux_make_corefile_notes): Adjust.
8371 * osdata.c (get_osdata): Adjust.
8372 * remote.c (remote_get_threads_with_qxfer): Adjust.
8373 (remote_memory_map): Adjust.
8374 (remote_traceframe_info): Adjust.
8375 (btrace_read_config): Adjust.
8376 (remote_read_btrace): Adjust.
8377 (remote_pid_to_exec_file): Adjust.
8378 * solib-aix.c (solib_aix_get_library_list): Adjust.
8379 * solib-dsbt.c (decode_loadmap): Don't free buf.
8380 (dsbt_get_initial_loadmaps): Adjust.
8381 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Adjust.
8382 * solib-target.c (solib_target_current_sos): Adjust.
8383 * tracepoint.c (sdata_make_value): Adjust.
8384 * xml-support.c (xinclude_start_include): Adjust.
8385 (xml_fetch_content_from_file): Adjust.
8386 * xml-support.h (xml_fetch_another): Change return type.
8387 (xml_fetch_content_from_file): Change return type.
8388 * xml-syscall.c (xml_init_syscalls_info): Adjust.
8389 * xml-tdesc.c (file_read_description_xml): Adjust.
8390 (fetch_available_features_from_target): Change return type.
8391 (target_fetch_description_xml): Adjust.
8392 (target_read_description_xml): Adjust.
8393
14c88955
TT
83942018-04-06 Tom Tromey <tom@tromey.com>
8395
8396 * value.c (~value): Update.
8397 (struct value) <contents>: Now unique_xmalloc_ptr.
8398 (value_contents_bits_eq, allocate_value_contents)
8399 (value_contents_raw, value_contents_all_raw)
8400 (value_contents_for_printing, value_contents_for_printing_const)
8401 (set_value_enclosing_type): Update.
8402
0c7e6dd8
TT
84032018-04-06 Tom Tromey <tom@tromey.com>
8404
8405 * value.c (range_s): Remove typedef, VEC.
8406 (struct range): Add operator<.
8407 (range_lessthan): Remove.
8408 (ranges_contain): Change type.
8409 (~value): Update.
8410 (struct value) <unavailable, optimized_out>: Now std::vector.
8411 (value_entirely_available)
8412 (value_entirely_covered_by_range_vector)
8413 (value_entirely_unavailable, value_entirely_optimized_out):
8414 Update.
8415 (insert_into_bit_range_vector): Change argument type.
8416 (find_first_range_overlap): Likewise.
8417 (struct ranges_and_idx, value_contents_bits_eq)
8418 (require_not_optimized_out, require_available): Update.
8419 (ranges_copy_adjusted): Change argument types.
8420 (value_optimized_out, value_copy, value_fetch_lazy): Update.
8421
2c8331b9
TT
84222018-04-06 Tom Tromey <tom@tromey.com>
8423
8424 * value.c (~value): Update.
8425 (struct value) <parent>: Now a value_ref_ptr.
8426 (value_parent, set_value_parent, value_address, value_copy):
8427 Update.
8428
466ce3ae
TT
84292018-04-06 Tom Tromey <tom@tromey.com>
8430
8431 * value.c (struct value): Add constructor, destructor, and member
8432 initializers.
8433 (allocate_value_lazy, value_decref): Update.
8434
062d818d
TT
84352018-04-06 Tom Tromey <tom@tromey.com>
8436
8437 * value.c (struct value) <released, next>: Remove.
8438 (all_values): Now a std::vector.
8439 (allocate_value_lazy): Update.
8440 (value_next): Remove.
8441 (value_mark, value_free_to_mark, release_value)
8442 (value_release_to_mark): Update.
8443
a6535de1
TT
84442018-04-06 Tom Tromey <tom@tromey.com>
8445
8446 * value.h (fetch_subexp_value, value_release_to_mark): Update.
8447 (free_value_chain): Remove.
8448 * value.c (free_value_chain): Remove.
8449 (value_release_to_mark): Return a std::vector.
8450 * ppc-linux-nat.c (num_memory_accesses): Change "chain" to a
8451 std::vector.
8452 (check_condition): Update.
8453 * eval.c (fetch_subexp_value): Change "val_chain" to a
8454 std::vector.
8455 * breakpoint.c (update_watchpoint): Update.
8456 (can_use_hardware_watchpoint): Change "vals" to a std::vector.
8457
b5621201
TT
84582018-04-06 Tom Tromey <tom@tromey.com>
8459
8460 * value.h (free_all_values): Remove.
8461 * value.c (free_all_values): Remove.
8462
4d0266a0
TT
84632018-04-06 Tom Tromey <tom@tromey.com>
8464
8465 * value.c (VALUE_HISTORY_CHUNK, struct value_history_chunk)
8466 (value_history_chain, value_history_count): Remove.
8467 (value_history): New global.
8468 (record_latest_value, access_value_history, show_values)
8469 (preserve_values): Update.
8470
b4d61099
TT
84712018-04-06 Tom Tromey <tom@tromey.com>
8472
8473 * varobj.h (struct varobj) <value>: Now a value_ref_ptr.
8474 * varobj.c (varobj_set_display_format, varobj_set_value)
8475 (install_default_visualizer, construct_visualizer)
8476 (install_new_value, ~varobj, varobj_get_value_type)
8477 (my_value_of_variable, varobj_editable_p): Update.
8478 * c-varobj.c (c_describe_child, c_value_of_variable)
8479 (cplus_number_of_children, cplus_describe_child): Update.
8480 * ada-varobj.c (ada_number_of_children, ada_name_of_child)
8481 (ada_path_expr_of_child, ada_value_of_child, ada_type_of_child)
8482 (ada_value_of_variable, ada_value_is_changeable_p): Update.
8483
9b558729
TT
84842018-04-06 Tom Tromey <tom@tromey.com>
8485
8486 * printcmd.c (last_examine_address): Change type to
8487 value_ref_ptr.
8488 (do_examine, x_command): Update.
8489
850645cf
TT
84902018-04-06 Tom Tromey <tom@tromey.com>
8491
8492 * value.c (release_value): Update.
8493 * breakpoint.h (struct watchpoint) <val>: Now a value_ref_ptr.
8494 (struct bpstats) <val>: Now a value_ref_ptr.
8495 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
8496 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
8497 (~watchpoint, print_it_watchpoint, watch_command_1)
8498 (invalidate_bp_value_on_memory_change): Update.
8499
22bc8444
TT
85002018-04-06 Tom Tromey <tom@tromey.com>
8501
8502 * varobj.c (varobj_clear_saved_item)
8503 (update_dynamic_varobj_children, install_new_value, ~varobj):
8504 Update.
8505 * value.h (value_incref): Move declaration earlier.
8506 (value_decref): Rename from value_free.
8507 (struct value_ref_policy): New.
8508 (value_ref_ptr): New typedef.
8509 (struct value_deleter): Remove.
8510 (gdb_value_up): Remove typedef.
8511 (release_value): Change return type.
8512 (release_value_or_incref): Remove.
8513 * value.c (set_value_parent): Update.
8514 (value_incref): Change return type.
8515 (value_decref): Rename from value_free.
8516 (value_free_to_mark, free_all_values, free_value_chain): Update.
8517 (release_value): Return value_ref_ptr.
8518 (release_value_or_incref): Remove.
8519 (record_latest_value, set_internalvar, clear_internalvar):
8520 Update.
8521 * stack.c (info_frame_command): Don't call value_free.
8522 * python/py-value.c (valpy_dealloc, valpy_new)
8523 (value_to_value_object): Update.
8524 * printcmd.c (do_examine): Update.
8525 * opencl-lang.c (lval_func_free_closure): Update.
8526 * mi/mi-main.c (register_changed_p): Don't call value_free.
8527 * mep-tdep.c (mep_frame_prev_register): Don't call value_free.
8528 * m88k-tdep.c (m88k_frame_prev_register): Don't call value_free.
8529 * m68hc11-tdep.c (m68hc11_frame_prev_register): Don't call
8530 value_free.
8531 * guile/scm-value.c (vlscm_free_value_smob)
8532 (vlscm_scm_from_value): Update.
8533 * frame.c (frame_register_unwind, frame_unwind_register_signed)
8534 (frame_unwind_register_unsigned, get_frame_register_bytes)
8535 (put_frame_register_bytes): Don't call value_free.
8536 * findvar.c (address_from_register): Don't call value_free.
8537 * dwarf2read.c (dwarf2_compute_name): Don't call value_free.
8538 * dwarf2loc.c (entry_data_value_free_closure)
8539 (value_of_dwarf_reg_entry, free_pieced_value_closure)
8540 (dwarf2_evaluate_loc_desc_full): Update.
8541 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
8542 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
8543 (~watchpoint, watch_command_1)
8544 (invalidate_bp_value_on_memory_change): Update.
8545 * alpha-tdep.c (alpha_register_to_value): Don't call value_free.
8546
7f8a5d38
SM
85472018-04-06 Simon Marchi <simon.marchi@polymtl.ca>
8548
8549 PR gdb/23022
8550 * warning.m4: Add -Wno-error=deprecated-register.
8551 * configure: Re-generate.
8552
8a76bd3b
TT
85532018-04-05 Tom Tromey <tom@tromey.com>
8554
8555 * linespec.h: Remove include of "vec.h".
8556
8e8d776e
TT
85572018-04-05 Tom Tromey <tom@tromey.com>
8558
8559 * linespec.c (typep): Remove typedef.
8560 (find_methods, find_superclass_methods): Take a std::vector.
8561 (find_method): Use std::vector.
8562
9b2f8581
TT
85632018-04-05 Tom Tromey <tom@tromey.com>
8564
8565 * utils.c (compare_strings): Remove.
8566 * utils.h (compare_strings): Remove.
8567 * objc-lang.h (find_imps): Update.
8568 * objc-lang.c (find_methods): Take a std::vector.
8569 (uniquify_strings, find_imps): Likewise.
8570 * linespec.c (find_methods): Take a std::vector.
8571 (decode_objc): Use std::vector.
8572 (add_all_symbol_names_from_pspace, find_superclass_methods): Take
8573 a std::vector.
8574 (find_method, find_function_symbols): Use std::vector.
8575
459a2e4c
TT
85762018-04-05 Tom Tromey <tom@tromey.com>
8577
8578 * completer.c (completion_tracker::completion_tracker): Remove
8579 cast.
8580 (completion_tracker::discard_completions): Likewise.
8581 * breakpoint.c (ambiguous_names_p): Remove cast.
8582 * ada-lang.c (_initialize_ada_language): Remove cast.
8583 * utils.h (streq): Update.
8584 (streq_hash): Add new declaration.
8585 * utils.c (streq): Return bool.
8586 (streq_hash): New function.
8587
9be2c17a
TT
85882018-04-05 Tom Tromey <tom@tromey.com>
8589
8590 * linespec.c (event_location_to_sals) <case ADDRESS_LOCATION>:
8591 Remove a string copy.
8592
f73c6ece
TT
85932018-04-05 Tom Tromey <tom@tromey.com>
8594
8595 * linespec.c (filter_results): Use std::vector.
8596 (decode_line_2, decode_line_full): Update.
8597
53a0f8a2
TT
85982018-04-05 Tom Tromey <tom@tromey.com>
8599
8600 * linespec.c (canonical_to_fullform): Return std::string.
8601 (filter_results): Update.
8602 (struct decode_line_2_item): Add constructor.
8603 <fullform, displayform>: Now std::string.
8604 (decode_line_2_compare_items): Now a std::sort comparator.
8605 (decode_line_2): Update.
8606
a5b5adf5
TT
86072018-04-05 Tom Tromey <tom@tromey.com>
8608
8609 * linespec.c (copy_token_string): Return a unique_xmalloc_ptr.
8610 (unexpected_linespec_error): Update.
8611 (linespec_parse_basic, parse_linespec): Update.
8612
6a307fc5
TT
86132018-04-05 Tom Tromey <tom@tromey.com>
8614
8615 * linespec.c (linespec_parse_basic): Reindent.
8616
41c1efc6
TT
86172018-04-05 Tom Tromey <tom@tromey.com>
8618
8619 * minsyms.h (iterate_over_minimal_symbols): Update.
8620 * minsyms.c (iterate_over_minimal_symbols): Take a
8621 gdb::function_view.
8622 * linespec.c (struct collect_minsyms): Remove.
8623 (compare_msyms): Now a std::sort comparator.
8624 (add_minsym): Add parameters.
8625 (search_minsyms_for_name): Update. Use std::vector.
8626
c5edbf3d
TT
86272018-04-03 Tom Tromey <tom@tromey.com>
8628
8629 * mipsread.c (read_alphacoff_dynamic_symtab): Use
8630 gdb::byte_vector.
8631
b39efc48
WP
86322018-04-02 Weimin Pan <weimin.pan@oracle.com>
8633
8634 * MAINTAINERS (Write After Approval): Add Weimin Pan.
8635
121ad66c 86362018-04-02 Weimin Pan <weimin.pan@oracle.com>
79f18731
WP
8637
8638 PR gdb/16959
8639 * cp-valprint.c: (cp_print_static_field) Fix infinite recursion when
8640 printing static type.
8641
09473be8
TT
86422018-04-01 Tom Tromey <tom@tromey.com>
8643
8644 * rs6000-nat.c (rs6000_ptrace_ldinfo): Return a byte_vector.
8645 (rs6000_xfer_shared_libraries): Update.
8646
ec1f2d91
SM
86472018-04-01 Simon Marchi <simon.marchi@polymtl.ca>
8648
8649 * common/gdb_vecs.h (char_ptr): Remove.
8650 * tracepoint.c (encode_actions_1): Remove usage of char_ptr.
8651
d8611974
SM
86522018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
8653
8654 * guile/scm-utils.c (gdbscm_parse_function_args): Replace VEC
8655 with std::vector.
8656 * common/gdb_vecs.h (DEF_VEC_P (char_ptr)): Remove.
8657
a18ba4e4
SM
86582018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
8659
8660 * tracepoint.h (struct uploaded_tp): Initialize fields.
8661 <actions, step_actions, cmd_strings>: Change type to
8662 std::vector<char *>.
8663 * tracepoint.c (get_uploaded_tp): Allocate with new.
8664 (free_uploaded_tps): Free with delete.
8665 (parse_tracepoint_definition): Adjust to std::vector change.
8666 * breakpoint.c (read_uploaded_action): Likewise.
8667 (create_tracepoint_from_upload): Likewise.
8668 * ctf.c (ctf_write_uploaded_tp): Likewise.
8669 (SET_ARRAY_FIELD): Likewise.
8670 * tracefile-tfile.c (tfile_write_uploaded_tp): Likewise.
8671
a7961323
TT
86722018-03-30 Tom Tromey <tom@tromey.com>
8673
8674 * solib-svr4.c (lm_info_read): Use gdb::byte_vector. Return
8675 std::unique_ptr.
8676 (svr4_keep_data_in_core): Update.
8677 (svr4_read_so_list): Update.
8678
e83e4e24
TT
86792018-03-30 Tom Tromey <tom@tromey.com>
8680
8681 * windows-nat.c (handle_output_debug_string, handle_exception):
8682 Update.
8683 * target.h (target_read_string): Update.
8684 * target.c (target_read_string): Change "string" to
8685 unique_xmalloc_ptr.
8686 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
8687 Update.
8688 * solib-frv.c (frv_current_sos): Update.
8689 * solib-dsbt.c (dsbt_current_sos): Update.
8690 * solib-darwin.c (darwin_current_sos): Update.
8691 * linux-thread-db.c (inferior_has_bug): Update.
8692 * expprint.c (print_subexp_standard) <case OP_OBJC_MSGCALL>:
8693 Update. Remove alloca.
8694 * ada-lang.c (ada_main_name): Update.
8695
263db9a1
TT
86962018-03-30 Tom Tromey <tom@tromey.com>
8697
8698 * dwarf2read.c (struct free_dwo_file_cleanup_data): Remove.
8699 (struct dwo_file_deleter): New.
8700 (dwo_file_up): New typedef.
8701 (open_and_init_dwo_file): Use dwo_file_up.
8702 (free_dwo_file_cleanup): Remove.
8703
5dafb3d1
TT
87042018-03-30 Tom Tromey <tom@tromey.com>
8705
8706 * dwarf2read.c (free_dwo_file): Remove "objfile" parameter.
8707 (free_dwo_file_cleanup, free_dwo_file_from_slot): Update.
8708
11ed8cad
TT
87092018-03-30 Tom Tromey <tom@tromey.com>
8710
8711 * dwarf2read.c (class free_cached_comp_units): New class.
8712 (dw2_instantiate_symtab, dwarf2_build_psymtabs_hard): Use it.
8713 (free_cached_comp_units): Remove function.
8714
9ae79dac
TT
87152018-03-30 Tom Tromey <tom@tromey.com>
8716
8717 * utils.h (make_cleanup_unpush_target): Remove.
8718 * inf-ptrace.c (struct target_unpusher): New.
8719 (target_unpush_up) New typedef.
8720 (inf_ptrace_create_inferior, inf_ptrace_attach): Use
8721 target_unpush_up.
8722 * utils.c (do_unpush_target, make_cleanup_unpush_target): Remove.
8723
5aa89276
TT
87242018-03-27 Tom Tromey <tom@tromey.com>
8725
8726 * utils.c (prompt_for_continue): Use unique_xmalloc_ptr.
8727
1dbeed45
TT
87282018-03-27 Pedro Alves <palves@redhat.com>
8729 Tom Tromey <tom@tromey.com>
8730
8731 * top.c (class gdb_readline_wrapper_cleanup): Add constructor,
8732 destructor. Now a class.
8733 (gdb_readline_wrapper_cleanup): Remove function.
8734 (gdb_readline_wrapper): Remove cleanups.
8735
c819b2c0
TT
87362018-03-27 Tom Tromey <tom@tromey.com>
8737
8738 * typeprint.h (struct type_print_options) <local_typedefs,
8739 global_typedefs>: Remove "struct" keyword.
8740 (class typedef_hash_table): New class.
8741 (recursively_update_typedef_hash, add_template_parameters)
8742 (create_typedef_hash, free_typedef_hash, copy_typedef_hash)
8743 (find_typedef_in_hash): Don't declare.
8744 * typeprint.c (struct typedef_hash_table): Move to typeprint.h.
8745 (typedef_hash_table::recursively_update): Rename from
8746 recursively_update_typedef_hash. Now a member.
8747 (typedef_hash_table::add_template_parameters): Rename from
8748 add_template_parameters. Now a member.
8749 (typedef_hash_table::typedef_hash_table): Now a constructor;
8750 rename from create_typedef_hash.
8751 (typedef_hash_table::~typedef_hash_table): Now a destructor;
8752 rename from free_typedef_hash.
8753 (do_free_typedef_hash, make_cleanup_free_typedef_hash)
8754 (do_free_global_table): Remove.
8755 (typedef_hash_table::typedef_hash_table): New constructor; renamed
8756 from copy_type_recursive.
8757 (create_global_typedef_table): Remove.
8758 (typedef_hash_table::find_global_typedef): Now a member of
8759 typedef_hash_table.
8760 (typedef_hash_table::find_typedef): Rename from
8761 find_typedef_in_hash; now a member.
8762 (whatis_exp): Update.
8763 * extension.h (struct ext_lang_type_printers): Add constructor and
8764 destructor.
8765 (start_ext_lang_type_printers, free_ext_lang_type_printers): Don't
8766 declare.
8767 * extension.c (ext_lang_type_printers::ext_lang_type_printers):
8768 Now a constructor; rename from start_ext_lang_type_printers.
8769 (ext_lang_type_printers): Now a destructor; rename from
8770 free_ext_lang_type_printers.
8771 * c-typeprint.c (find_typedef_for_canonicalize, c_print_type_1):
8772 Update.
8773 (c_type_print_base_struct_union): Update. Remove cleanups.
8774
608219fb
TT
87752018-03-27 Tom Tromey <tom@tromey.com>
8776
8777 * dwarf-index-write.c: Include <cmath>.
8778
3fcded8f
JB
87792018-03-27 Joel Brobecker <brobecker@adacore.com>
8780
8781 * NEWS: Add entry describing new "set|show varsize-limit" command.
8782 * ada-lang.c (_initialize_ada_language): Add "set/show varsize-limit"
8783 command.
8784 * printcmd.c (_initialize_printcmd): Add "set var" alias of
8785 "set variable".
8786
cd4fb1b2
SM
87872018-03-27 Simon Marchi <simon.marchi@ericsson.com>
8788
8789 * Makefile.in (COMMON_SFILES): Add dwarf-index-common.c and
8790 dwarf-index-write.c
8791 (HFILES_NO_SRCDIR): Add dwarf-index-common.h and dwarf2read.h.
8792 * dwarf-index-common.c: New file.
8793 * dwarf-index-common.h: New file.
8794 * dwarf-index-write.c: New file.
8795 * dwarf2read.c: Include dwarf2read.h and dwarf-index-common.h.
8796 (struct dwarf2_section_info): Move from here.
8797 (dwarf2_section_info_def): Likewise.
8798 (DEF_VEC_O (dwarf2_section_info_def)): Likewise.
8799 (offset_type): Likewise.
8800 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): Likewise.
8801 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): Likewise.
8802 (DW2_GDB_INDEX_CU_SET_VALUE): Likewise.
8803 (byte_swap): Likewise.
8804 (MAYBE_SWAP): Likewise.
8805 (dwarf2_per_cu_ptr): Likewise.
8806 (DEF_VEC_P (dwarf2_per_cu_ptr)): Likewise.
8807 (struct tu_stats): Likewise.
8808 (struct dwarf2_per_objfile): Likewise.
8809 (struct dwarf2_per_cu_data): Likewise.
8810 (struct signatured_type): Likewise.
8811 (sig_type_ptr): Likewise.
8812 (DEF_VEC_P (sig_type_ptr)): Likewise.
8813 (INDEX4_SUFFIX): Likewise.
8814 (INDEX5_SUFFIX): Likewise.
8815 (DEBUG_STR_SUFFIX): Likewise.
8816 (dwarf2_read_section): Make non-static.
8817 (mapped_index_string_hash): Move from here.
8818 (dwarf5_djb_hash): Likewise.
8819 (file_write): Likewise.
8820 (class data_buf): Likewise.
8821 (struct symtab_index_entry): Likewise.
8822 (struct mapped_symtab): Likewise.
8823 (find_slot): Likewise.
8824 (hash_expand): Likewise.
8825 (add_index_entry): Likewise.
8826 (uniquify_cu_indices): Likewise.
8827 (class c_str_view): Likewise.
8828 (class c_str_view_hasher): Likewise.
8829 (class vector_hasher): Likewise.
8830 (write_hash_table): Likewise.
8831 (psym_index_map): Likewise.
8832 (struct addrmap_index_data): Likewise.
8833 (add_address_entry): Likewise.
8834 (add_address_entry_worker): Likewise.
8835 (write_address_map): Likewise.
8836 (symbol_kind): Likewise.
8837 (write_psymbols): Likewise.
8838 (struct signatured_type_index_data): Likewise.
8839 (write_one_signatured_type): Likewise.
8840 (recursively_count_psymbols): Likewise.
8841 (recursively_write_psymbols): Likewise.
8842 (class debug_names): Likewise.
8843 (check_dwarf64_offsets): Likewise.
8844 (psyms_seen_size): Likewise.
8845 (write_gdbindex): Likewise.
8846 (write_debug_names): Likewise.
8847 (assert_file_size): Likewise.
8848 (write_psymtabs_to_index): Likewise.
8849 (save_gdb_index_command): Likewise.
8850 (_initialize_dwarf2_read): Don't register the "save gdb-index"
8851 command.
8852 * dwarf2read.h: New file.
8853
59cc4834
JB
88542018-03-27 Joel Brobecker <brobecker@adacore.com>
8855
8856 PR gdb/22670
8857 * dwarf2read.c (dwarf2_physname): Do not return the demangled
8858 symbol name if the CU's language stores symbol names in linkage
8859 format.
8860 * language.h (struct language_defn)
8861 <la_store_sym_names_in_linkage_form_p>: New field. Adjust
8862 all instances of this struct.
8863
67501539
TT
88642018-03-26 Tom Tromey <tom@tromey.com>
8865
8866 * stack.c (backtrace_command_1): Remove verbose code.
8867
76c939ac
TT
88682018-03-26 Tom Tromey <tom@tromey.com>
8869
8870 * python/py-framefilter.c (py_print_type): Don't catch
8871 exceptions. Return void.
8872 (py_print_value): Likewise.
8873 (py_print_single_arg): Likewise.
8874 (enumerate_args): Don't catch exceptions.
8875 (py_print_args): Likewise.
8876 (py_print_frame): Likewise.
8877 (gdbpy_apply_frame_filter): Catch exceptions here.
8878
9507b29c
TT
88792018-03-26 Tom Tromey <tom@tromey.com>
8880
8881 * stack.c (_initialize_stack): Remove trailing newlines from help
8882 text. Add "Usage" line to "backtrace" help.
8883
eb68e487
TT
88842018-03-26 Tom Tromey <tom@tromey.com>
8885
8886 PR python/16486:
8887 * python/py-framefilter.c (py_print_args): Call wrap_hint.
8888
1f111921
TT
88892018-03-26 Tom Tromey <tom@tromey.com>
8890
8891 * python/py-framefilter.c (py_print_single_arg): Return
8892 EXT_LANG_BT_ERROR from catch.
8893
fb7eb8b5
TT
88942018-03-26 Tom Tromey <tom@tromey.com>
8895
8896 PR backtrace/15584:
8897 * stack.c (backtrace_command_1): Move some code into no-filters
8898 "if".
8899
4ca59a9f
TT
89002018-03-26 Tom Tromey <tom@tromey.com>
8901
8902 * python/py-framefilter.c (throw_quit_or_print_exception): New
8903 function.
8904 (gdbpy_apply_frame_filter): Use it.
8905
92256134
TT
89062018-03-26 Tom Tromey <tom@tromey.com>
8907
8908 PR cli/17716:
8909 * python/py-framefilter.c (py_print_type, py_print_value)
8910 (enumerate_args, py_print_args, gdbpy_apply_frame_filter): Use
8911 RETURN_MASK_ERROR.
8912
7a630bc2
TT
89132018-03-26 Tom Tromey <tom@tromey.com>
8914
8915 * python/py-framefilter.c (enumerate_args): Use
8916 gdb::unique_xmalloc_ptr.
8917
63283d4a
TT
89182018-03-26 Tom Tromey <tom@tromey.com>
8919
8920 * python/py-framefilter.c (py_print_frame): Return
8921 EXT_LANG_BT_OK.
8922 (gdbpy_apply_frame_filter): Update comment.
8923 * extension.h (enum ext_lang_bt_status) <EXT_LANG_BT_COMPLETED>:
8924 Remove.
8925 <EXT_LANG_BT_NO_FILTERS>: Change value.
8926
978d6c75
TT
89272018-03-26 Tom Tromey <tom@tromey.com>
8928
8929 PR backtrace/15582:
8930 * stack.c (backtrace_command): Parse "hide" argument.
8931 * python/py-framefilter.c (py_print_frame): Handle PRINT_HIDE.
8932 * extension.h (enum frame_filter_flags) <PRINT_HIDE>: New
8933 constant.
8934
1cf7e640
TT
89352018-03-26 Tom Tromey <tom@tromey.com>
8936
8937 * stack.c (backtrace_command_1): Remove "show_locals" parameter,
8938 add "flags".
8939 (backtrace_command): Remove "fulltrace", add "flags".
8940
ea3b0687
TT
89412018-03-26 Tom Tromey <tom@tromey.com>
8942
8943 * stack.c (backtrace_command): Rewrite command line parsing.
8944
9f034d75
SM
89452018-03-26 Simon Marchi <simon.marchi@ericsson.com>
8946
8947 * dwarf2read.c (DEF_VEC_I(offset_type)): Remove.
8948
ce1459e5
SM
89492018-03-26 Simon Marchi <simon.marchi@ericsson.com>
8950
8951 * filename-seen-cache.h: Add include guard.
8952
4f7ae6f5
KS
89532018-03-26 Keith Seitz <keiths@redhat.com>
8954
8955 * symfile.c (place_section): Remove "struct" from section_addr_info
8956 in comment.
8957 * windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove
8958 "struct" keyword from section_addr_info.
8959
5cd3e386
AH
89602018-03-26 Alan Hayward <alan.hayward@arm.com>
8961
8962 * regformats/regdef.h (reg): Add constructors.
8963
3e5ef9a4
PA
89642018-03-25 Pedro Alves <palves@redhat.com>
8965
8966 * eval.c (evaluate_funcall): Swap OP_VAR_MSYM_VALUE/OP_VAR_VALUE
8967 if then/else bodies in var_func_name extraction.
8968
c88d2fcc 89692018-03-23 Weimin Pan <weimin.pan@oracle.com>
bce02d88
WP
8970
8971 * minsyms.c (lookup_minimal_symbol_and_objfile): Use
8972 lookup_minimal_symbol() to find symbol entry.
8973 * minsyms.h (lookup_minimal_symbol_and_objfile): Update comment.
8974
b7fee5a3
KS
89752018-03-23 Keith Seitz <keiths@redhat.com>
8976
8977 PR c++/22968
8978 * dwarf2read.c (scan_partial_symbols): Scan structs/classes for
8979 nested type definitions for C++, too.
8980
2cc9b304
TT
89812018-03-23 Tom Tromey <tom@tromey.com>
8982
8983 * machoread.c (struct oso_el): Add a constructor. Don't define as
8984 a typedef.
8985 (macho_register_oso): Remove.
8986 (macho_symtab_read): Take a std::vector.
8987 (oso_el_compare_name): Now a std::sort comparator.
8988 (macho_symfile_read_all_oso): Take a std::vector.
8989 (macho_symfile_read): Use std::vector. Remove cleanups.
8990
a2b2bc12
TT
89912018-03-22 Tom Tromey <tom@tromey.com>
8992
8993 * record-full.c (record_full_exec_insn): Use gdb::byte_vector.
8994 (record_full_goto_bookmark): Use std::string.
8995
7a8f494c
PFC
89962018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
8997
8998 PR tdep/18295
8999 * rs6000-tdep.c (skip_prologue): Match both stwux and stdux
9000 a single mask.
9001
dd6d677f
PFC
90022018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
9003
9004 * rs6000-tdep.c (store_insn_p): New function.
9005 (skip_prologue): New variable alloca_reg_offset. Set lr_reg
9006 and cr_reg to their unshifted values. Use store_insn_p to
9007 match LR saves using either R1 or fdata->alloca_reg. Use
9008 store_insn_p to match CR saves. Set alloca_reg_offset
9009 when alloca_reg and framep are set. Remove lr_reg shift
9010 when assigning to fdata->lr_register.
9011
26d6cec4
AA
90122018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
9013
9014 * linux-tdep.c (linux_info_proc): For "info proc cmdline", print
9015 command line args instead of emitting a warning.
9016
5d9310c4
SM
90172018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
9018
9019 * tracepoint.h (struct static_tracepoint_marker): Initialize
9020 fields, define default constructor, move constructor and move
9021 assignment, disable the rest.
9022 <str_id, extra>: Make std::string.
9023 (release_static_tracepoint_marker): Remove.
9024 (free_current_marker): Remove.
9025 * tracepoint.c (free_current_marker): Remove.
9026 (parse_static_tracepoint_marker_definition): Adjust to
9027 std::string, use new hex2str overload.
9028 (release_static_tracepoint_marker): Remove.
9029 (print_one_static_tracepoint_marker): Get marker by reference
9030 and adjust to std::string.
9031 (info_static_tracepoint_markers_command): Adjust to std::vector
9032 changes
9033 * target.h (static_tracepoint_marker_p): Remove typedef.
9034 (DEF_VEC_P(static_tracepoint_marker_p)): Remove.
9035 (struct target_ops) <to_static_tracepoint_marker_at>: Return
9036 bool.
9037 <to_static_tracepoint_markers_by_strid>: Return std::vector.
9038 * target-debug.h
9039 (target_debug_print_VEC_static_tracepoint_marker_p_p): Remove.
9040 (target_debug_print_std_vector_static_tracepoint_marker): New.
9041 (target_debug_print_struct_static_tracepoint_marker_p): Rename
9042 to...
9043 (target_debug_print_static_tracepoint_marker_p): ... this.
9044 * target-delegates.c: Re-generate.
9045 * breakpoint.h (struct tracepoint) <static_trace_marker_id>:
9046 Make std::string.
9047 * breakpoint.c (init_breakpoint_sal): Adjust to std::string.
9048 (decode_static_tracepoint_spec): Adjust to std::vector.
9049 (tracepoint_print_one_detail): Adjust to std::string.
9050 (strace_marker_decode_location): Adjust to std::string.
9051 (update_static_tracepoint): Adjust to std::string, remove call
9052 to release_static_tracepoint_marker.
9053 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
9054 Adjust to std::vector.
9055 * remote.c (remote_static_tracepoint_marker_at): Return bool.
9056 (remote_static_tracepoint_markers_by_strid): Adjust to
9057 std::vector.
9058 * common/rsp-low.h (hex2str): New overload with explicit count
9059 of bytes.
9060 * common/rsp-low.c (hex2str): New overload with explicit count
9061 of bytes.
9062 * unittests/rsp-low-selftests.c (test_hex2str): New function.
9063 (_initialize_rsp_low_selftests): Add test_hex2str test.
9064 * unittests/tracepoint-selftests.c
9065 (test_parse_static_tracepoint_marker_definition): Adjust to
9066 std::string.
9067
62c222b6
SM
90682018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
9069
9070 * tracepoint.c (parse_static_tracepoint_marker_definition):
9071 Consider case where the definition is followed by more
9072 definitions.
9073 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9074 tracepoint-selftests.c.
9075 * unittests/tracepoint-selftests.c: New.
9076
7eb2418f
PFC
90772018-03-21 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
9078
9079 * MAINTAINERS (Write After Approval): Add Pedro Franco de
9080 Carvalho.
9081
7cbe16e9
SR
90822018-03-20 Stephen Roberts <stephen.roberts@arm.com>
9083
3d6b3b82 9084 * symtab.c (find_pc_sect_line): fixed indentation.
7cbe16e9 9085
4ee89e90
SR
90862018-03-20 Stephen Roberts <stephen.roberts@arm.com>
9087
3d6b3b82 9088 * symtab.c (find_pc_sect_line): now uses binary search.
4ee89e90 9089
92630041
TT
90902018-03-19 Tom Tromey <tom@tromey.com>
9091
9092 * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain
9093 "IDENT" production.
9094
76727919
TT
90952018-03-19 Pedro Alves <palves@redhat.com>
9096 Tom Tromey <tom@tromey.com>
9097
9098 * unittests/observable-selftests.c: New file.
9099 * common/observable.h: New file.
9100 * observable.h: New file.
9101 * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c,
9102 arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c,
9103 breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c,
9104 corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c,
9105 extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c,
9106 infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c,
9107 linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c,
9108 mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c,
9109 ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c,
9110 python/py-breakpoint.c, python/py-finishbreakpoint.c,
9111 python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c,
9112 record-btrace.c, record-full.c, record.c, regcache.c, remote.c,
9113 riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c,
9114 spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c,
9115 symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c,
9116 tui/tui-interp.c, valops.c: Update all users.
9117 * tui/tui-hooks.c (tui_bp_created_observer)
9118 (tui_bp_deleted_observer, tui_bp_modified_observer)
9119 (tui_inferior_exit_observer, tui_before_prompt_observer)
9120 (tui_normal_stop_observer, tui_register_changed_observer):
9121 Remove.
9122 (tui_observers_token): New global.
9123 (attach_or_detach, tui_attach_detach_observers): New functions.
9124 (tui_install_hooks, tui_remove_hooks): Use
9125 tui_attach_detach_observers.
9126 * record-btrace.c (record_btrace_thread_observer): Remove.
9127 (record_btrace_thread_observer_token): New global.
9128 * observer.sh: Remove.
9129 * observer.c: Rename to observable.c.
9130 * observable.c (namespace gdb_observers): Define new objects.
9131 (observer_debug): Move into gdb_observers namespace.
9132 (struct observer, struct observer_list, xalloc_observer_list_node)
9133 (xfree_observer_list_node, generic_observer_attach)
9134 (generic_observer_detach, generic_observer_notify): Remove.
9135 (_initialize_observer): Update.
9136 Don't include observer.inc.
9137 * Makefile.in (generated_files): Remove observer.h, observer.inc.
9138 (clean mostlyclean): Likewise.
9139 (observer.h, observer.inc): Remove targets.
9140 (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c.
9141 (COMMON_SFILES): Use observable.c, not observer.c.
9142 * .gitignore: Remove observer.h.
9143
1cb1f3da
TT
91442018-03-18 Tom Tromey <tom@tromey.com>
9145
9146 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use
9147 gdb::def_vector.
9148 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
9149
a06ab151
TT
91502018-03-17 Tom Tromey <tom@tromey.com>
9151
9152 * auto-load.c (auto_load_objfile_script_1): Use std::string.
9153
770623f7
TT
91542018-03-17 Tom Tromey <tom@tromey.com>
9155
9156 * target.c (class scoped_target_fd): New.
9157 (target_fileio_close_cleanup): Remove.
9158 (target_fileio_read_alloc_1): Use scoped_target_fd.
9159
39be3c7e
SM
91602018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
9161
9162 * silent-rules.mk: New.
9163 * Makefile.in: Include silent-rules.mk
9164 (srcdir, VPATH, top_srcdir): Move up.
9165 (COMPILE): Add ECHO_CXX.
9166 (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD.
9167 (init.c): Add ECHO_INIT_C.
9168 (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
9169 (version.c): Add ECHO_GEN.
9170 (printcmd.o): Add ECHO_CXX.
9171 (target-float.o): Add ECHO_CXX.
9172 (ada-exp.o): Add ECHO_CXX.
9173 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN.
9174 (insight$(EXEEXT)): Add ECHO_CXXLD.
9175 * gnulib/configure.ac: Add AM_SILENT_RULES.
9176 * gnulib/aclocal.m4: Re-generate.
9177 * gnulib/configure: Re-generate.
9178 * gnulib/import/Makefile.in: Re-generate.
9179
37e136b1
TT
91802018-03-16 Tom Tromey <tom@tromey.com>
9181
9182 * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs".
9183 * utils.h (make_cleanup_free_section_addr_info): Don't declare.
9184 * utils.c (do_free_section_addr_info)
9185 (make_cleanup_free_section_addr_info): Remove.
9186 * symfile.h (struct other_sections): Add constructor.
9187 (struct section_addr_info): Remove.
9188 (section_addr_info): New typedef.
9189 (struct sym_fns) <sym_offsets>: Change type of parameter.
9190 (build_section_addr_info_from_objfile)
9191 (relative_addr_info_to_section_offsets, addr_info_make_relative)
9192 (default_symfile_offsets, symbol_file_add)
9193 (symbol_file_add_from_bfd)
9194 (build_section_addr_info_from_section_table): Update.
9195 (alloc_section_addr_info, free_section_addr_info): Don't declare.
9196 * symfile.c (alloc_section_addr_info): Remove.
9197 (build_section_addr_info_from_section_table): Change return type.
9198 Update.
9199 (build_section_addr_info_from_bfd)
9200 (build_section_addr_info_from_objfile): Likewise.
9201 (free_section_addr_info): Remove.
9202 (relative_addr_info_to_section_offsets): Change type of "addrs".
9203 (addrs_section_compar): Now a std::sort comparator.
9204 (addrs_section_sort): Change return type.
9205 (addr_info_make_relative): Change type of "addrs". Update.
9206 (default_symfile_offsets, syms_from_objfile_1)
9207 (syms_from_objfile, symbol_file_add_with_addrs): Likewise.
9208 (symbol_file_add_separate): Update.
9209 (symbol_file_add): Change type of "addrs". Update.
9210 (add_symbol_file_command): Update. Remove cleanups.
9211 * symfile-mem.c (symbol_file_add_from_memory): Update. Remove
9212 cleanups.
9213 * symfile-debug.c (debug_sym_offsets): Change type of "info".
9214 * solib.c (solib_read_symbols): Update.
9215 * objfiles.c (objfile_relocate): Update. Remove cleanups.
9216 * machoread.c (macho_symfile_offsets): Update.
9217 * jit.c (jit_bfd_try_read_symtab): Update.
9218
03afa6ef
SM
92192018-03-15 Simon Marchi <simon.marchi@polymtl.ca>
9220
9221 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9222 unittests/utils-selftests.c.
9223 * unittests/utils-selftests.c: New file.
9224
3ae9ce5d
TT
92252018-03-14 Tom Tromey <tom@tromey.com>
9226
9227 PR cli/14977:
9228 * printcmd.c (printf_c_string, printf_wide_c_string): Special case
9229 for NULL.
9230
b8c2339b
TT
92312018-03-14 Tom Tromey <tom@tromey.com>
9232
9233 PR cli/19918:
9234 * printcmd.c (printf_pointer): Allow "-" in format.
9235
80ae639d
TT
92362018-03-14 Tom Tromey <tom@tromey.com>
9237
9238 * printcmd.c (_initialize_printcmd): Add usage to printf.
9239
0d671d99
YQ
92402018-03-14 Yao Qi <qiyao@sourceware.org>
9241
9242 * MAINTAINERS: Update my email address.
9243
b577b6af
TT
92442018-03-13 Tom Tromey <tom@tromey.com>
9245
9246 * machoread.c (macho_check_dsym): Change filenamep to a
9247 std::string*.
9248 (macho_symfile_read): Update.
9249 * symfile.c (load_command): Use std::string.
9250
89a3b63e
AB
92512018-03-12 Andrew Burgess <andrew.burgess@embecosm.com>
9252
9253 * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization
9254 to error message string.
9255 (riscv_register_name): Use xsnprintf instead of sprintf.
9256 (riscv_insn::fetch_instruction): Use gdb_assert instead of
9257 internal_error.
9258 (riscv_print_arg_location): Use gdb_assert_not_reached instead of
9259 error.
9260 (riscv_push_dummy_call): Likewise.
9261
984c7238
TT
92622018-03-12 Tom Tromey <tom@tromey.com>
9263
9264 * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix):
9265 Use gdb::byte_vector.
9266 * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector.
9267
933522d1
YQ
92682018-03-12 Yao Qi <yao.qi@linaro.org>
9269
9270 * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change
9271 parameter type to readable_regcache.
9272 * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update
9273 the declaration.
9274
be2daae6
TT
92752018-03-11 Tom Tromey <tom@tromey.com>
9276
9277 * dwarf2read.c (struct nextfield): Add initializers.
9278 (struct nextfnfield): Remove.
9279 (struct fnfieldlist): Add initializers. Remove "length" and
9280 "head", use std::vector.
9281 (struct decl_field_list): Remove.
9282 (struct field_info): Add initializers.
9283 <fields, baseclasses>: Now std::vector.
9284 <nbaseclasses, nfnfields, typedef_field_list_count,
9285 nested_types_list_count>: Remove.
9286 (dwarf2_add_field, dwarf2_add_type_defn)
9287 (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
9288 (dwarf2_attach_fn_fields_to_type, handle_struct_member_die)
9289 (process_structure_scope): Update.
9290
484cf504
TT
92912018-03-11 Tom Tromey <tom@tromey.com>
9292
9293 * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable
9294 for use by std::sort.
9295 (build_type_psymtabs_1): Use std::vector.
9296
9bd8e0b0
EZ
92972018-03-09 Eli Zaretskii <eliz@gnu.org>
9298
9299 * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK,
9300 and LIBMPFR in the printed configuration.
9301
5dc1a704
TT
93022018-03-08 Tom Tromey <tom@tromey.com>
9303
9304 * source.c (get_filename_and_charpos): Use scoped_fd.
9305 * nto-procfs.c (procfs_open_1): Use scoped_fd.
9306 (procfs_pidlist): Likewise.
9307 * procfs.c (proc_get_LDT_entry): Use scoped_fd.
9308 (iterate_over_mappings): Likewise.
9309
fdf07f3a
TT
93102018-03-08 Tom Tromey <tom@tromey.com>
9311
9312 * infcall.c (struct call_return_meta_info)
9313 <stack_temporaries_enabled>: Remove.
9314 (get_call_return_value, call_function_by_hand_dummy): Update.
9315 * thread.c (disable_thread_stack_temporaries): Remove.
9316 (enable_thread_stack_temporaries): Remove.
9317 (thread_stack_temporaries_enabled_p): Return bool.
9318 (push_thread_stack_temporary, value_in_thread_stack_temporaries)
9319 (get_last_thread_stack_temporary): Update.
9320 * eval.c (evaluate_subexp): Update.
9321 * gdbthread.h (class enable_thread_stack_temporaries): Now a
9322 class, not a function.
9323 (value_ptr, value_vec): Remove typedefs.
9324 (class thread_info) <stack_temporaries_enabled>: Now bool.
9325 <stack_temporaries>: Now a std::vector.
9326 (thread_stack_temporaries_enabled_p)
9327 (value_in_thread_stack_temporaries): Return bool.
9328
567a3e54
SM
93292018-03-08 Simon Marchi <simon.marchi@ericsson.com>
9330
9331 * remote.c (putpkt_binary): Fix omitted bytes reporting.
9332 (getpkt_or_notif_sane_1): Likewise.
9333
00b40057
SM
93342018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
9335
9336 * build-id.c (build_id_to_debug_bfd): Use std::string.
9337
a8dbfd58
SM
93382018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
9339
9340 * build-id.c (find_separate_debug_file_by_buildid): Return
9341 std::string.
9342 * build-id.h (find_separate_debug_file_by_buildid): Return
9343 std::string.
9344 * coffread.c (coff_symfile_read): Adjust to std::string.
9345 * elfread.c (elf_symfile_read): Adjust to std::string.
9346 * symfile.c (separate_debug_file_exists): Change parameter to
9347 std::string.
9348 (find_separate_debug_file): Return std::string.
9349 (find_separate_debug_file_by_debuglink): Return std::string.
9350 * symfile.h (find_separate_debug_file_by_debuglink): Return
9351 std::string.
9352
e6a58aa8
SM
93532018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
9354
9355 * common/xml-utils.c (xml_escape_text): Move code to...
9356 (xml_escape_text_append): ... this new function.
9357 * common/xml-utils.h (xml_escape_text_append): New declaration.
9358 * unittests/xml-utils-selftests.c (test_xml_escape_text_append):
9359 New function.
9360 (_initialize_xml_utils): register test_xml_escape_text_append as
9361 a selftest.
9362
4ef0bef6
AH
93632018-03-07 Alan Hayward <alan.hayward@arm.com>
9364
9365 * defs.h: Remove MAX_REGISTER_SIZE.
9366 * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE
9367 asserts.
9368 * python/py-unwind.c (pyuw_sniffer): Likewise.
9369
e0d3522b
TT
93702018-03-07 Tom Tromey <tom@tromey.com>
9371
9372 * linux-tdep.c (linux_info_proc): Update.
9373 * target.h (struct target_ops) <to_fileio_readlink>: Return
9374 optional<string>.
9375 (target_fileio_readlink): Return optional<string>.
9376 * remote.c (remote_hostio_readlink): Return optional<string>.
9377 * inf-child.c (inf_child_fileio_readlink): Return
9378 optional<string>.
9379 * target.c (target_fileio_readlink): Return optional<string>.
9380
ea005f31
AB
93812018-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
9382
9383 * regcache.c (cooked_read_test): Add riscv to the list of
9384 architectures that have a save_reggroup.
9385
e95a97d4
AA
93862018-03-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
9387
9388 * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given
9389 value is not a dynamic class object.
9390
d8344f3d
TT
93912018-03-06 Tom Tromey <tom@tromey.com>
9392
9393 * rust-exp.y: Formatting fixes.
9394
9add17f2
AB
93952018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9396
9397 * riscv-tdep.c (riscv_register_name): Remove target description
9398 support.
9399 (riscv_gdbarch_init): Remove target description check.
9400
c9486dfe
AB
94012018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9402
9403 * riscv-tdep.c: Remove 'Contributed by ...' lines from header
9404 comment.
9405 * riscv-tdep.h: Likewise.
9406
d74aff3d
AB
94072018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9408
9409 * riscv-tdep.c (riscv_pseudo_register_read): Delete.
9410 (riscv_pseudo_register_write): Delete.
9411 (riscv_gdbarch_init): Remove all use of pseudo registers.
9412
7ea78b59
SM
94132018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
9414
9415 * record-btrace.c (btrace_print_lines): Replace cleanup
9416 parameter with RAII equivalents.
9417 (btrace_insn_history): Replace cleanup with RAII equivalents.
9418 * ui-out.h (make_cleanup_ui_out_list_begin_end,
9419 make_cleanup_ui_out_tuple_begin_end): Remove.
9420 * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end,
9421 make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end,
9422 make_cleanup_ui_out_list_begin_end): Remove.
9423
53127008
SM
94242018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
9425
9426 * record-btrace.c (record_btrace_maybe_mark_async_event): Change
9427 parameter types to std::vector. Use bool.
9428 (record_btrace_wait): Replace VEC(tp_t) with
9429 std::vector<thread_info *>.
9430 * common/gdb_vecs.h (unordered_remove, ordered_remove): New.
9431
228f1508
SM
94322018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
9433
9434 * record-btrace.c (record_btrace_disable_callback): Remove.
9435 (struct scoped_btrace_disable): New.
9436 (record_btrace_open): Use scoped_btrace_disable.
9437
b2970c23
AB
94382018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9439
9440 * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for
9441 reading values from registers.
9442
fb294655
AB
94432018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9444
9445 * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz
9446 where appropriate.
9447
cab5bb9d
AB
94482018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9449
9450 * riscv-tdep.c (riscv_print_arg_location): Add header comment,
9451 change parameter type. Use GDB's print functions, and use
9452 core_addr_to_string where appropriate.
9453 (riscv_push_dummy_call): Use core_addr_to_string where
9454 appropriate, update call to riscv_print_arg_location, and reindent
9455 a few lines.
9456 (riscv_return_value): Update call to riscv_print_arg_location.
9457
dbbb1059
AB
94582018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9459 Tim Newsome <tim@sifive.com>
9460 Albert Ou <a0u@eecs.berkeley.edu>
9461 Darius Rad <darius@bluespec.com>
9462
9463 * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o
9464 (HFILES_NO_SRCDIR): Add riscv-tdep.h.
9465 (ALLDEPFILES): Add riscv-tdep.c
9466 * configure.tgt: Add riscv support.
9467 * riscv-tdep.c: New file.
9468 * riscv-tdep.h: New file.
9469 * NEWS: Mention new target.
9470 * MAINTAINERS: Add entry for riscv.
9471
5dc43913
AB
94722018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9473
9474 * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized
9475 fields within aggregates.
9476
3dea1ef7
SM
94772018-03-04 Simon Marchi <simon.marchi@polymtl.ca>
9478
9479 * record-btrace.c (btrace_print_lines): Change type of flags to
9480 gdb_disassembly_flags.
9481
7efba073
JB
94822018-03-04 John Baldwin <jhb@FreeBSD.org>
9483
9484 * fbsd-nat.c: Include "inf-ptrace.h".
9485 (USE_SIGTRAP_SIGINFO): Conditionally define.
9486 [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function.
9487 (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap".
9488 [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New
9489 function.
9490 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint):
9491 Likewise.
9492 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint):
9493 Likewise.
9494 (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set
9495 "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint",
9496 "supports_stopped_by_hw_breakpoint" target methods.
9497
386a8676
JB
94982018-03-04 John Baldwin <jhb@FreeBSD.org>
9499
9500 * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat".
9501 * fbsd-nat.c (debug_fbsd_nat): New variable.
9502 (show_fbsd_nat_debug): New function.
9503 (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled.
9504 (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command.
9505
12279366
JB
95062018-03-04 John Baldwin <jhb@FreeBSD.org>
9507
9508 * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function.
9509 * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New
9510 prototype.
9511 * x86-nat.c (x86_stopped_by_hw_breakpoint): New function.
9512 (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target
9513 method.
9514
54693cf5
SM
95152018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
9516
9517 * common/gdb_vecs.c (free_char_ptr_vec): Remove.
9518 * common/gdb_vecs.h (free_char_ptr_vec): Remove.
9519
ccb2231c
SM
95202018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
9521
9522 * charset.c (struct charset_vector): New.
9523 (charsets): Change type to charset_vector.
9524 (find_charset_names): Adjust.
9525 (add_one): Adjust.
9526 (_initialize_charset): Adjust.
9527
6fb16ce6
SM
95282018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
9529
9530 * progspace.h (struct program_space) <deleted_solibs>: Change
9531 type to std::vector<std::string>.
9532 * progspace.c (clear_program_space_solib_cache): Adjust.
9533 * breakpoint.c (print_solib_event): Adjust.
9534 (check_status_catch_solib): Adjust.
9535 * solib.c (update_solib_list): Adjust.
9536 * ui-out.h (class ui_out) <field_string>: New overload.
9537 * ui-out.c (ui_out::field_string): New overload.
9538
564b1e3f
SM
95392018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
9540
9541 * progspace.h (struct program_space): Add constructor and
9542 destructor, initialize fields.
9543 (add_program_space): Remove.
9544 * progspace.c (add_program_space): Rename to...
9545 (program_space::program_space): ... this.
9546 (release_program_space): Rename to...
9547 (program_space::~program_space): ... this.
9548 (delete_program_space): Use delete to delete program_space.
9549 (initialize_progspace): Use new to allocate program_space.
9550 * inferior.c (add_inferior_with_spaces): Likewise.
9551 (clone_inferior_command): Likewise.
9552 * infrun.c (follow_fork_inferior): Likewise.
9553 (handle_vfork_child_exec_or_exit): Likewise.
9554
e80aaf61
SM
95552018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
9556
9557 * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove.
9558 (delim_string_to_char_ptr_vec): Return std::vector of
9559 gdb::unique_xmalloc_ptr.
9560 (dirnames_to_char_ptr_vec_append): Take std::vector of
9561 gdb::unique_xmalloc_ptr.
9562 (dirnames_to_char_ptr_vec): Return std::vector of
9563 gdb::unique_xmalloc_ptr.
9564 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append):
9565 Take std::vector of gdb::unique_xmalloc_ptr, adjust the code.
9566 (delim_string_to_char_ptr_vec): Return an std::vector of
9567 gdb::unique_xmalloc_ptr, adjust the code.
9568 (dirnames_to_char_ptr_vec_append): Take an std::vector of
9569 gdb::unique_xmalloc_ptr, adjust the code.
9570 (dirnames_to_char_ptr_vec): Return an std::vector of
9571 gdb::unique_xmalloc_ptr, adjust the code.
9572 * auto-load.c (auto_load_safe_path_vec): Change type to
9573 std::vector of gdb::unique_xmalloc_ptr.
9574 (auto_load_expand_dir_vars): Return an std::vector of
9575 gdb::unique_xmalloc_ptr, adjust the code.
9576 (auto_load_safe_path_vec_update): Adjust.
9577 (filename_is_in_auto_load_safe_path_vec): Adjust.
9578 (auto_load_objfile_script_1): Adjust.
9579 * build-id.c (build_id_to_debug_bfd): Adjust.
9580 * linux-thread-db.c (thread_db_load_search): Adjust.
9581 * source.c (add_path): Adjust.
9582 (openp): Adjust.
9583 * symfile.c (find_separate_debug_file): Adjust.
9584 * utils.c (do_free_char_ptr_vec): Remove.
9585 (make_cleanup_free_char_ptr_vec): Remove.
9586
ab818ade
SDJ
95872018-03-01 Sergio Durigan Junior <sergiodj@redhat.com>
9588
9589 PR gdb/22907
9590 * common/pathstuff.c: Conditionally include "<windows.h>".
9591
e1e6f073
GS
95922018-03-01 Georg Sauthoff <mail@georg.so>
9593
9594 PR gdb/22888
9595 * gcore.in: Quote variables and switch interpreter to bash.
9596
c7b15a66
TT
95972018-03-01 Tom Tromey <tom@tromey.com>
9598
9599 * dwarf2read.c (alloc_discriminant_info): Fix default_index
9600 assertion. Add assertion for discriminant_index.
9601 (quirk_rust_enum): Use correct base type name in univariant case.
9602
0cb7c7b0
SM
96032018-03-01 Simon Marchi <simon.marchi@ericsson.com>
9604
9605 * record.c (get_call_history_modifiers): Return a
9606 record_print_flags.
9607 (cmd_record_call_history): Adjust.
9608 * record-btrace.c (record_btrace_call_history): Adjust.
9609 (record_btrace_call_history_range): Adjust.
9610 (record_btrace_call_history_from): Adjust.
9611 * target-debug.h (target_debug_print_record_print_flags): New.
9612 * target-delegates.c: Re-generate.
9613 * target.c (target_call_history): Change flags type.
9614 (target_call_history_from): Likewise.
9615 (target_call_history_range): Likewise.
9616 * target.h (struct target_ops) <target_call_history>: Likewise.
9617 (target_call_history_from): Likewise.
9618 (target_call_history_range): Likewise.
9619
25e3c82c
SDJ
96202018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
9621 Simon Marchi <simon.marchi@polymtl.ca>
9622
9623 * common/common-utils.c: Include "sys/stat.h".
9624 (is_regular_file): Move here from "source.c"; change return
9625 type to "bool".
9626 * common/common-utils.h (is_regular_file): New prototype.
9627 * common/pathstuff.c (contains_dir_separator): New function.
9628 * common/pathstuff.h (contains_dir_separator): New prototype.
9629 * source.c: Don't include "sys/stat.h".
9630 (is_regular_file): Move to "common/common-utils.c".
9631
b4987c95
SDJ
96322018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
9633
9634 * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c".
9635 (HFILES_NO_SRCDIR): Add "common/pathstuff.h".
9636 * auto-load.c: Include "common/pathstuff.h".
9637 * common/common-def.h (current_directory): Move here.
9638 * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New
9639 function.
9640 * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New
9641 prototype.
9642 * common/pathstuff.c: New file.
9643 * common/pathstuff.h: New file.
9644 * compile/compile.c: Include "common/pathstuff.h".
9645 * defs.h (current_directory): Move to "common/common-defs.h".
9646 * dwarf2read.c: Include "common/pathstuff.h".
9647 * exec.c: Likewise.
9648 * guile/scm-safe-call.c: Likewise.
9649 * linux-thread-db.c: Likewise.
9650 * main.c: Likewise.
9651 * nto-tdep.c: Likewise.
9652 * objfiles.c: Likewise.
9653 * source.c: Likewise.
9654 * symtab.c: Likewise.
9655 * utils.c: Include "common/pathstuff.h".
9656 (gdb_realpath): Move to "common/pathstuff.c".
9657 (gdb_realpath_keepfile): Likewise.
9658 (gdb_abspath): Likewise.
9659 * utils.h (gdb_realpath): Move to "common/pathstuff.h".
9660 (gdb_realpath_keepfile): Likewise.
9661 (gdb_abspath): Likewise.
9662
f169cfdc
JB
96632018-02-28 John Baldwin <jhb@FreeBSD.org>
9664
9665 * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a
9666 wildcard process pid for super_resume for kernels with a
9667 specific bug.
9668
e05cac70
PM
96692018-02-27 Phil Muldoon <pmuldoon@redhat.com>
9670
9671 * compile/compile.c (get_args): Add additional comments
9672 explaining function.
9673
55089490
TT
96742018-02-27 Simon Marchi <simon.marchi@polymtl.ca>
9675 Tom Tromey <tom@tromey.com>
9676
9677 * target.h (memory_write_request_s): Remove typedef. Don't define
9678 VEC.
9679 (target_write_memory_blocks): Change argument to std::vector.
9680 (struct memory_write_request): Add constructor.
9681 * target-memory.c (compare_block_starting_address): Return bool.
9682 Change argument types.
9683 (claim_memory): Change arguments to use std::vector.
9684 (split_regular_and_flash_blocks, blocks_to_erase)
9685 (compute_garbled_blocks): Likewise.
9686 (cleanup_request_data, cleanup_write_requests_vector): Remove.
9687 (target_write_memory_blocks): Change argument to std::vector.
9688 * symfile.c (struct load_section_data): Add constructor and
9689 destructor. Use std::vector for "requests".
9690 (struct load_progress_data): Add initializers.
9691 (load_section_callback): Update. Use "new".
9692 (clear_memory_write_data): Remove.
9693 (generic_load): Update.
9694
0c305b61
AH
96952018-02-27 Alan Hayward <alan.hayward@arm.com>
9696
9697 * arch/aarch64.h: Use common/tdesc.h.
9698
c5196c92
MR
96992018-02-26 Maciej W. Rozycki <macro@mips.com>
9700
9701 * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD
9702 architecture with a 64-bit ABI.
9703
37c33887
MR
97042018-02-26 Maciej W. Rozycki <macro@mips.com>
9705
9706 * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination
9707 ahead of target description loading.
9708
d4dd3282
TT
97092018-02-26 Tom Tromey <tom@tromey.com>
9710
9711 * stack.c (backtrace_command_1): Update.
9712 * python/python-internal.h (gdbpy_apply_frame_filter): Change type
9713 of "flags".
9714 * python/py-framefilter.c (py_print_frame)
9715 (gdbpy_apply_frame_filter): Change type of "flags".
9716 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type
9717 of "flags".
9718 (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals)
9719 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update.
9720 * extension.h (enum frame_filter_flag): Rename from
9721 frame_filter_flags.
9722 (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE.
9723 (apply_ext_lang_frame_filter): Change type of "flags".
9724 * extension.c (apply_ext_lang_frame_filter): Change type of
9725 "flags".
9726 * extension-priv.h (struct extension_language_ops)
9727 <apply_frame_filter>: Change type of "flags".
9728
6893c19a
TT
97292018-02-26 Tom Tromey <tom@tromey.com>
9730
9731 PR python/16497:
9732 * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag. Fix
9733 off-by-one in py_end computation.
9734 * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle
9735 PRINT_MORE_FRAMES.
9736 * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New
9737 constant.
9738
2ddeaf8a
TT
97392018-02-26 Tom Tromey <tom@tromey.com>
9740
9741 * dwarf2read.c (struct variant_field): New.
9742 (struct nextfield) <variant>: New field.
9743 (dwarf2_add_field): Handle DW_TAG_variant_part.
9744 (dwarf2_attach_fields_to_type): Attach a discriminant_info to a
9745 discriminated union.
9746 (read_structure_type): Handle DW_TAG_variant_part.
9747 (handle_struct_member_die): New function, extracted from
9748 process_structure_scope. Handle DW_TAG_variant.
9749 (process_structure_scope): Handle discriminated unions. Call
9750 handle_struct_member_die.
9751
c9317f21
TT
97522018-02-26 Tom Tromey <tom@tromey.com>
9753
9754 * rust-lang.h (rust_last_path_segment): Declare.
9755 * rust-lang.c (rust_last_path_segment): Now public. Change
9756 contract.
9757 (struct disr_info): Remove.
9758 (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL)
9759 (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged)
9760 (rust_get_disr_info, rust_tuple_variant_type_p): Remove.
9761 (rust_enum_p, rust_enum_variant): New function.
9762 (rust_underscore_fields): Remove "offset" parameter.
9763 (rust_print_enum): New function.
9764 (rust_val_print) <TYPE_CODE_UNION>: Remove enum code.
9765 <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate.
9766 (rust_print_struct_def): Add "for_rust_enum" parameter. Handle
9767 enums.
9768 (rust_internal_print_type): New function, from rust_print_type.
9769 Remove enum code.
9770 (rust_print_type): Call rust_internal_print_type.
9771 (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>:
9772 Update enum handling.
9773 * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field.
9774 (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum)
9775 (rust_union_quirks): New functions.
9776 (process_full_comp_unit, process_full_type_unit): Call
9777 rust_union_quirks.
9778 (process_structure_scope): Update rust_unions if necessary.
9779
7c22600a
TT
97802018-02-26 Tom Tromey <tom@tromey.com>
9781
9782 * value.h (value_union_variant): Declare.
9783 * valops.c (value_union_variant): New function.
9784 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro.
9785 (struct discriminant_info): New.
9786 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New
9787 enumerator.
9788 (struct main_type) <flag_discriminated_union>: New field.
9789
15ce8941
TT
97902018-02-26 Tom Tromey <tom@tromey.com>
9791
9792 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9793 unittests/unpack-selftests.c.
9794 * unittests/unpack-selftests.c: New file.
9795 * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases.
9796
48fbe735
YQ
97972018-02-26 Yao Qi <yao.qi@linaro.org>
9798
9799 * dwarf2read.c (struct partial_die_info) <read>: New method.
9800 (read_partial_die): Remove the declaration.
9801 (load_partial_dies): Update.
9802 (partial_die_info::partial_die_info):
9803 (read_partial_die): Change it to partial_die_info::read.
9804
52356b79
YQ
98052018-02-26 Yao Qi <yao.qi@linaro.org>
9806
9807 * dwarf2read.c (struct partial_die_info) <fixup>: New method.
9808 (fixup_partial_die): Remove declaration.
9809 (scan_partial_symbols): Update.
9810 (partial_die_parent_scope): Likewise.
9811 (partial_die_full_name): Likewise.
9812 (fixup_partial_die): Change it to partial_die_info::fixup.
9813
35cc7ed7
YQ
98142018-02-26 Yao Qi <yao.qi@linaro.org>
9815
9816 * dwarf2read.c (read_partial_die): Update the declaration.
9817 (load_partial_dies): Caller update.
9818 (read_partial_die): Remove one argument abbrev_len.
9819
6f06d47b
YQ
98202018-02-26 Yao Qi <yao.qi@linaro.org>
9821
9822 * dwarf2read.c (struct partial_die_info): Add ctor, delete
9823 assignment operator.
9824 (load_partial_dies): Use ctor and copy ctor.
9825 (read_partial_die): Update.
9826 (dwarf2_cu::find_partial_die): Use ctor.
9827
d590ff25
YQ
98282018-02-26 Yao Qi <yao.qi@linaro.org>
9829
9830 * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method.
9831 (find_partial_die_in_comp_unit): Change it to
9832 dwarf2_cu::find_partial_die.
9833 (find_partial_die): Update.
9834
fd0a254f
YQ
98352018-02-26 Yao Qi <yao.qi@linaro.org>
9836
9837 * dwarf2read.c (read_partial_die): Remove the code checking abbrev
9838 is NULL.
9839
cd9983dd
YQ
98402018-02-26 Yao Qi <yao.qi@linaro.org>
9841
9842 * dwarf2read.c (load_partial_dies): Move the location of XOBNEW.
9843
f46cd62a
AH
98442018-02-26 Alan Hayward <alan.hayward@arm.com>
9845
9846 * arch/amd64.h: Use common/tdesc.h.
9847 * arch/i386.c: Likewise.
9848 * arch/i386.h: Likewise.
9849 * arch/tic6x.c: Likewise.
9850 * arch/tdesc.h: Move file from here...
9851 * common/tdesc.h: ...to here.
9852 * features/aarch64-core.c: Regenerate.
9853 * features/aarch64-fpu.c: Regenerate.
9854 * features/i386/32bit-avx.c: Regenerate.
9855 * features/i386/32bit-avx512.c: Regenerate.
9856 * features/i386/32bit-core.c: Regenerate.
9857 * features/i386/32bit-linux.c: Regenerate.
9858 * features/i386/32bit-mpx.c: Regenerate.
9859 * features/i386/32bit-pkeys.c: Regenerate.
9860 * features/i386/32bit-sse.c: Regenerate.
9861 * features/i386/64bit-avx.c: Regenerate.
9862 * features/i386/64bit-avx512.c: Regenerate.
9863 * features/i386/64bit-core.c: Regenerate.
9864 * features/i386/64bit-linux.c: Regenerate.
9865 * features/i386/64bit-mpx.c: Regenerate.
9866 * features/i386/64bit-pkeys.c: Regenerate.
9867 * features/i386/64bit-segments.c: Regenerate.
9868 * features/i386/64bit-sse.c: Regenerate.
9869 * features/i386/x32-core.c: Regenerate.
9870 * features/tic6x-c6xp.c: Regenerate.
9871 * features/tic6x-core.c: Regenerate.
9872 * features/tic6x-gp.c: Regenerate.
9873 * target-descriptions.c: Use common/tdesc.h.
9874 * target-descriptions.h: Likewise.
9875
9b292f68
TT
98762018-02-24 Tom Tromey <tom@tromey.com>
9877
9878 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
9879 (try_thread_db_load_from_dir, thread_db_load_search): Use
9880 std::string.
9881 (info_auto_load_libthread_db_compare): Return bool. Change
9882 argument types.
9883 (info_auto_load_libthread_db): Use std::vector, std::string.
9884 Remove cleanups.
9885
281d762b
TT
98862018-02-24 Tom Tromey <tom@tromey.com>
9887
9888 * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a
9889 std::string.
9890 * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a
9891 std::string*.
9892 * gdbarch.c: Rebuild.
9893 * gdbarch.h: Rebuild.
9894 * breakpoint.c (check_fast_tracepoint_sals): Use std::string.
9895 * arch-utils.h (default_fast_tracepoint_valid_at): Update.
9896 * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a
9897 std::string*.
9898
9d8780f0
SM
98992018-02-23 Simon Marchi <simon.marchi@polymtl.ca>
9900
9901 * gdbtypes.h (sect_offset): Change type to uint64_t.
9902 (sect_offset_str): New function.
9903 * dwarf2read.c (create_addrmap_from_aranges): Use
9904 sect_offset_str.
9905 (error_check_comp_unit_head): Likewise.
9906 (create_debug_type_hash_table): Likewise.
9907 (read_cutu_die_from_dwo): Likewise.
9908 (init_cutu_and_read_dies): Likewise.
9909 (init_cutu_and_read_dies_no_follow): Likewise.
9910 (process_psymtab_comp_unit_reader): Likewise.
9911 (partial_die_parent_scope): Likewise.
9912 (peek_die_abbrev): Likewise.
9913 (process_queue): Likewise.
9914 (dwarf2_physname): Likewise.
9915 (read_namespace_alias): Likewise.
9916 (read_import_statement): Likewise.
9917 (create_dwo_cu_reader): Likewise.
9918 (create_cus_hash_table): Likewise.
9919 (lookup_dwo_cutu): Likewise.
9920 (inherit_abstract_dies): Likewise.
9921 (read_func_scope): Likewise.
9922 (read_call_site_scope): Likewise.
9923 (dwarf2_add_member_fn): Likewise.
9924 (read_common_block): Likewise.
9925 (read_module_type): Likewise.
9926 (read_typedef): Likewise.
9927 (read_subrange_type): Likewise.
9928 (load_partial_dies): Likewise.
9929 (read_partial_die): Likewise.
9930 (find_partial_die): Likewise.
9931 (read_str_index): Likewise.
9932 (dwarf2_string_attr): Likewise.
9933 (build_error_marker_type): Likewise.
9934 (lookup_die_type): Likewise.
9935 (dump_die_shallow): Likewise.
9936 (follow_die_ref): Likewise.
9937 (dwarf2_fetch_die_loc_sect_off): Likewise.
9938 (dwarf2_fetch_constant_bytes): Likewise.
9939 (follow_die_sig): Likewise.
9940 (get_signatured_type): Likewise.
9941 (get_DW_AT_signature_type): Likewise.
9942 (dwarf2_find_containing_comp_unit): Likewise.
9943 (set_die_type): Likewise.
9944
8ec57239
JB
99452018-02-21 John Baldwin <jhb@FreeBSD.org>
9946
9947 * arch/aarch64.c: Include "common-defs.h".
9948 * arch/amd64.c: Likewise.
9949 * arch/i386.c: Likewise.
9950
3eac2b65
TT
99512018-02-21 Tom Tromey <tom@tromey.com>
9952
9953 * value.h: (extract_field_op): Update.
9954 * eval.c (extract_field_op): Return a const char *.
9955 * expression.h (parse_expression_for_completion): Update.
9956 * completer.c (complete_expression): Update.
9957 (add_struct_fields): Make fieldname const.
9958 * parse.c (expout_completion_name): Now a unique_xmalloc_ptr.
9959 (mark_completion_tag, parse_exp_in_context_1): Update.
9960 (parse_expression_for_completion): Change "name" to
9961 unique_xmalloc_ptr*.
9962
6ccb583f
TT
99632018-02-21 Tom Tromey <tom@tromey.com>
9964
9965 * infcall.c (call_function_by_hand_dummy): Use std::vector.
9966
c113ed0c
YQ
99672018-02-21 Yao Qi <yao.qi@linaro.org>
9968
9969 * avr-tdep.c (avr_read_pc): Change parameter type to
9970 readable_regcache.
9971 * gdbarch.sh (read_pc): Likewise.
9972 * gdbarch.c: Re-generated.
9973 * gdbarch.h: Re-generated.
9974 * hppa-tdep.c (hppa_read_pc): Change parameter type to
9975 readable_regcache.
9976 * ia64-tdep.c (ia64_read_pc): Likewise.
9977 * mips-tdep.c (mips_read_pc): Likewise.
9978 * spu-tdep.c (spu_read_pc): Likewise.
9979
4c74fe6b
YQ
99802018-02-21 Yao Qi <yao.qi@linaro.org>
9981
9982 * Makefile.in (COMMON_SFILES): Add regcache-dump.c
9983 * regcache-dump.c: New file.
9984 * regcache.c: Move register_dump to regcache-dump.c.
9985 (maintenance_print_registers): Likewise.
9986 (maintenance_print_raw_registers): Likewise.
9987 (maintenance_print_cooked_registers): Likewise.
9988 (maintenance_print_register_groups): Likewise.
9989 (maintenance_print_remote_registers): Likewise.
9990 (_initialize_regcache): Likewise.
9991 * regcache.h (register_dump): Moved from regcache.c.
9992
796bb026
YQ
99932018-02-21 Yao Qi <yao.qi@linaro.org>
9994
9995 * regcache.c (regcache::regcache): Update.
9996 (regcache::invalidate): Move it to detached_regcache::invalidate.
9997 (get_thread_arch_aspace_regcache): Update.
9998 (regcache::raw_update): Update.
9999 (regcache::cooked_read): Remove some code.
10000 (regcache::cooked_read_value): Likewise.
10001 (regcache::raw_write): Remove assert on m_readonly_p.
10002 (regcache::raw_supply_integer): Move it to
10003 detached_regcache::raw_supply_integer.
10004 (regcache::raw_supply_zeroed): Likewise.
10005 * regcache.h (detached_regcache) <raw_supply_integer>: New
10006 declaration.
10007 <raw_supply_zeroed, invalidate>: Likewise.
10008 (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed.
10009 <invalidate>: Likewise.
10010 <m_readonly_p>: Removed.
10011
215c69dc
YQ
100122018-02-21 Yao Qi <yao.qi@linaro.org>
10013
10014 * infcmd.c (get_return_value): Let stop_regs point to
10015 get_current_regcache.
10016 * regcache.c (regcache::regcache): Remove.
10017 (register_dump_reg_buffer): New class.
10018 (regcache_print): Adjust.
10019 * regcache.h (regcache): Remove constructors.
10020
f3384e66
YQ
100212018-02-21 Yao Qi <yao.qi@linaro.org>
10022
10023 * regcache.c (class register_dump): New class.
10024 (register_dump_regcache, register_dump_none): New class.
10025 (register_dump_remote, register_dump_groups): New class.
10026 (regcache_print): Update.
10027 * regcache.h (regcache_dump_what): Move it to regcache.c.
10028 (regcache) <dump>: Remove.
10029
c8ec2f33
YQ
100302018-02-21 Yao Qi <yao.qi@linaro.org>
10031
10032 * jit.c (struct jit_unwind_private) <regcache>: Change its type to
10033 reg_buffer_rw *.
10034 (jit_unwind_reg_set_impl): Call raw_supply.
10035 (jit_frame_sniffer): Use reg_buffer_rw.
10036 * record-full.c (record_full_core_regbuf): Change its type.
10037 (record_full_core_open_1): Use reg_buffer_rw.
10038 (record_full_close): Likewise.
10039 (record_full_core_fetch_registers): Use regcache->raw_supply.
10040 (record_full_core_store_registers): Likewise.
10041 * regcache.c (regcache::get_register_status): Move it to
10042 reg_buffer.
10043 (regcache_raw_set_cached_value): Remove.
10044 (regcache::raw_set_cached_value): Remove.
10045 (regcache::raw_write): Call raw_supply.
10046 (regcache::raw_supply): Move it to reg_buffer_rw.
10047 * regcache.h (regcache_raw_set_cached_value): Remove.
10048 (reg_buffer_rw): New class.
10049
daf6667d
YQ
100502018-02-21 Yao Qi <yao.qi@linaro.org>
10051
10052 * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use
10053 readonly_detached_regcache.
10054 (dummy_frame_prev_register): Use regcache->cooked_read.
10055 * frame.c (frame_save_as_regcache): Change return type.
10056 (frame_pop): Update.
10057 * frame.h (frame_save_as_regcache): Update declaration.
10058 * inferior.h (get_infcall_suspend_state_regcache): Update
10059 declaration.
10060 * infrun.c (infcall_suspend_state) <registers>: use
10061 readonly_detached_regcache.
10062 (save_infcall_suspend_state): Don't use regcache_dup.
10063 (get_infcall_suspend_state_regcache): Change return type.
10064 * linux-fork.c (struct fork_info) <savedregs>: Change to
10065 readonly_detached_regcache.
10066 <pc>: New field.
10067 (fork_save_infrun_state): Don't use regcache_dup.
10068 (info_checkpoints_command): Adjust.
10069 * mi/mi-main.c (register_changed_p): Update declaration.
10070 (mi_cmd_data_list_changed_registers): Use
10071 readonly_detached_regcache.
10072 (register_changed_p): Change parameter type to
10073 readonly_detached_regcache.
10074 * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use
10075 readonly_detached_regcache.
10076 (ppu2spu_sniffer): Construct a new readonly_detached_regcache.
10077 * regcache.c (readonly_detached_regcache::readonly_detached_regcache):
10078 New.
10079 (regcache::save): Move it to reg_buffer.
10080 (regcache::restore): Change parameter type.
10081 (regcache_dup): Remove.
10082 * regcache.h (reg_buffer) <save>: New method.
10083 (readonly_detached_regcache): New class.
10084 * spu-tdep.c (spu2ppu_cache) <regcache>: Use
10085 readonly_detached_regcache.
10086 (spu2ppu_sniffer): Construct a new readonly_detached_regcache.
10087
fc5b8736
YQ
100882018-02-21 Yao Qi <yao.qi@linaro.org>
10089
10090 * frame.c (frame_save_as_regcache): Use regcache method save.
10091 (frame_pop): Use regcache method restore.
10092 * infrun.c (restore_infcall_suspend_state): Likewise.
10093 * linux-fork.c (fork_load_infrun_state): Likewise.
10094 * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method
10095 save.
10096 * regcache.c (regcache_save): Remove.
10097 (regcache::restore): More asserts.
10098 (regcache_cpy): Remove.
10099 * regcache.h (regcache_save): Remove the declaration.
10100 (regcache::restore): Move from private to public.
10101 Remove the friend declaration of regcache_cpy.
10102 (regcache_cpy): Remove declaration.
10103
849d0ba8
YQ
101042018-02-21 Yao Qi <yao.qi@linaro.org>
10105
10106 * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change
10107 parameter type to 'readable_regcache *'.
10108 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
10109 * arm-tdep.c (arm_neon_quad_read): Likewise.
10110 (arm_pseudo_read): Likewise.
10111 * avr-tdep.c (avr_pseudo_register_read): Likewise.
10112 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
10113 * frv-tdep.c (frv_pseudo_register_read): Likewise.
10114 * gdbarch.c: Re-generated.
10115 * gdbarch.h: Re-generated.
10116 * gdbarch.sh (pseudo_register_read): Change parameter type to
10117 'readable_regcache *'.
10118 (pseudo_register_read_value): Likewise.
10119 * h8300-tdep.c (pseudo_from_raw_register): Likewise.
10120 (h8300_pseudo_register_read): Likewise.
10121 * hppa-tdep.c (hppa_pseudo_register_read): Likewise.
10122 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
10123 (i386_pseudo_register_read_into_value): Likewise.
10124 (i386_pseudo_register_read_value): Likewise.
10125 * i386-tdep.h (i386_pseudo_register_read_into_value): Update
10126 declaration.
10127 * ia64-tdep.c (ia64_pseudo_register_read): Likewise.
10128 * m32c-tdep.c (m32c_raw_read): Likewise.
10129 (m32c_read_flg): Likewise.
10130 (m32c_banked_register): Likewise.
10131 (m32c_banked_read): Likewise.
10132 (m32c_sb_read): Likewise.
10133 (m32c_part_read): Likewise.
10134 (m32c_cat_read): Likewise.
10135 (m32c_r3r2r1r0_read): Likewise.
10136 (m32c_pseudo_register_read): Likewise.
10137 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
10138 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
10139 (mep_pseudo_cr64_read): Likewise.
10140 (mep_pseudo_register_read): Likewise.
10141 * mips-tdep.c (mips_pseudo_register_read): Likewise.
10142 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
10143 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
10144 * regcache.c (regcache::raw_read): Move it to readable_regcache.
10145 (regcache::cooked_read): Likewise.
10146 (regcache::cooked_read_value): Likewise.
10147 (regcache_cooked_read_signed):
10148 (regcache::cooked_read): Likewise.
10149 * regcache.h (readable_regcache): New class.
10150 (regcache): Inherit readable_regcache. Move some methods to
10151 readable_regcache.
10152 * rl78-tdep.c (rl78_pseudo_register_read): Change
10153 parameter type to 'readable_regcache *'.
10154 * rs6000-tdep.c (do_regcache_raw_read): Remove.
10155 (e500_pseudo_register_read): Change parameter type to
10156 'readable_regcache *'.
10157 (dfp_pseudo_register_read): Likewise.
10158 (vsx_pseudo_register_read): Likewise.
10159 (efpr_pseudo_register_read): Likewise.
10160 * s390-tdep.c (s390_pseudo_register_read): Likewise.
10161 * sh-tdep.c (sh_pseudo_register_read): Likewise.
10162 * sh64-tdep.c (pseudo_register_read_portions): Likewise.
10163 (sh64_pseudo_register_read): Likewise.
10164 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
10165 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
10166 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
10167 (spu_pseudo_register_read): Likewise.
10168 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
10169 (xtensa_pseudo_register_read): Likewise.
10170
31716595
YQ
101712018-02-21 Yao Qi <yao.qi@linaro.org>
10172
10173 * regcache.c (regcache::regcache): Call reg_buffer ctor.
10174 (regcache::arch): Move it to reg_buffer::arch.
10175 (regcache::register_buffer): Likewise.
10176 (regcache::assert_regnum): Likewise.
10177 (regcache::num_raw_registers): Likewise.
10178 * regcache.h (reg_buffer): New class.
10179 (regcache): Inherit reg_buffer.
10180
7104e59b
SM
101812018-02-20 Simon Marchi <simon.marchi@ericsson.com>
10182
10183 * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
10184 gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF.
10185
2d8adcbd
MM
101862018-02-20 Markus Metzger <markus.t.metzger@intel.com>
10187
10188 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp.
10189
b5884fa7
AH
101902018-02-19 Alan Hayward <alan.hayward@arm.com>
10191
10192 * Makefile.in: (COMMON_SFILES): Add common/*.c files.
10193 (SFILES): Remove common/*.c files.
10194 (COMMON_OBS): Remove some *.o files built from common/*.c files.
10195 * common/common.host: Add common reference.
10196 * configure.ac: Likewise.
10197 * configure: Regenerate.
10198
fd90ace4
YQ
101992018-02-16 Yao Qi <yao.qi@linaro.org>
10200
10201 * block.c (block_namespace_info): Inherit allocate_on_obstack.
10202 (block_initialize_namespace): Use new.
10203 * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack.
10204 (dwarf2_free_objfile): Use delete.
10205 * gdbtypes.c (type_pair): Inherit allocate_on_obstack.
10206 (copy_type_recursive): Use new.
10207 * gdb_obstack.h (allocate_on_obstack): New.
10208
85046ae2
YQ
102092018-02-15 Yao Qi <yao.qi@linaro.org>
10210
10211 PR gdb/22849
10212 * inferior.c (exit_inferior_1): Reset inf->control.
10213
355c559b
JB
102142018-02-15 Joel Brobecker <brobecker@adacore.com>
10215
10216 * ada-lang.c (ada_to_fixed_value_create): Delete advance
10217 declaration.
10218
980548fd
PA
102192018-02-14 Pedro Alves <palves@redhat.com>
10220
10221 * frame-unwind.c (frame_unwind_try_unwinder): Always call
10222 frame_cleanup_after_sniffer on exception.
10223
692d6f97
TT
102242018-02-14 Tom Tromey <tom@tromey.com>
10225
10226 * solist.h (struct target_so_ops) <bfd_open>: Make pathname
10227 const.
10228 (solib_bfd_open): Make pathname const.
10229 * solib.c (solib_bfd_open): Make pathname const.
10230 * solib-spu.c (spu_bfd_fopen): Make name const.
10231 (spu_bfd_open): Make pathname const.
10232 * solib-darwin.c (darwin_bfd_open): Make pathname const.
10233 * solib-aix.c (solib_aix_bfd_open): Make pathname const.
10234
e0cc99a6
TT
102352018-02-14 Tom Tromey <tom@tromey.com>
10236
10237 * symfile.c (symfile_bfd_open): Update.
10238 * source.h (openp, source_full_path_of, find_and_open_source):
10239 Change argument type to unique_xmalloc_ptr.
10240 * source.c (openp): Take a unique_xmalloc_ptr.
10241 (source_full_path_of, find_and_open_source): Likewise.
10242 (open_source_file, symtab_to_fullname): Update.
10243 * solist.h (struct target_so_ops) <find_and_open_solib>: Take a
10244 unique_xmalloc_ptr.
10245 * solib.c (solib_find_1): Use unique_xmalloc_ptr.
10246 (exec_file_find): Update.
10247 * psymtab.c (psymtab_to_fullname): Update.
10248 * nto-tdep.h (nto_find_and_open_solib): Update.
10249 * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a
10250 unique_xmalloc_ptr.
10251 * exec.c (exec_file_attach): Update.
10252 * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr.
10253 * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr.
10254
b46a8d7c
TT
102552018-02-14 Tom Tromey <tom@tromey.com>
10256
10257 * solib.c: Include source.h.
10258 * nto-tdep.c: Include source.h.
10259 * mi/mi-cmd-env.c: Include source.h.
10260 * infcmd.c: Include source.h.
10261 * exec.c: Include source.h.
10262 * defs.h (enum openp_flag, openp, source_full_path_of, mod_path)
10263 (add_path, directory_switch, source_path, init_source_path): Move
10264 declarations...
10265 * source.h (enum openp_flag, openp, source_full_path_of, mod_path)
10266 (add_path, directory_switch, source_path, init_source_path):
10267 ...here.
10268
797bc1cb
TT
102692018-02-14 Tom Tromey <tom@tromey.com>
10270
10271 * solist.h (exec_file_find, solib_find): Return
10272 unique_xmalloc_ptr.
10273 (solib_bfd_fopen): Take a const char *.
10274 * solib.c (solib_find_1): Return unique_xmalloc_ptr.
10275 (exec_file_find, solib_find): Likewise.
10276 (solib_bfd_fopen): Do not take ownership of "pathname".
10277 (solib_bfd_open): Use unique_xmalloc_ptr.
10278 * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr.
10279 * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr.
10280 * infrun.c (follow_exec): Use unique_xmalloc_ptr.
10281 * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr.
10282
f98b2e33
JB
102832018-02-14 Joel Brobecker <brobecker@adacore.com>
10284
10285 * ada-lang.c (name_match_type_from_name): Remove reference to
10286 ada_name_for_lookup in function's documentation.
10287 * ada-lang.h (ada_name_for_lookup): Delete declaration.
10288
24b9144d
SM
102892018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
10290
10291 * defs.h (enum openp_flags): New enum.
10292 (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH):
10293 Move to enum openp_flags.
10294 (openp_flags): New enum flags.
10295 (openp): Change parameter type to openp_flags.
10296 * source.c (openp): Change parameter type to openp_flags.
10297 * cli/cli-cmds.c (find_and_open_script): Use openp_flags.
10298 * dwarf2read.c (try_open_dwop_file): Use openp_flags.
10299
387cd15b
SM
103002018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
10301
10302 * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show
10303 per-command.
10304
b303c6f6
AB
103052018-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
10306
10307 * dwarf2read.c (dwarf2_release_queue): Delete function, move body
10308 into...
10309 (class dwarf2_queue_guard): ...the destructor of this new class.
10310 (dw2_do_instantiate_symtab): Create instance of the new class
10311 dwarf2_queue_guard, remove cleanup.
10312
9c3630e9
TT
103132018-02-09 Tom Tromey <tom@tromey.com>
10314
10315 * source.c (find_source_lines): Don't reference past the end of
10316 the vector.
10317
c4e12631
MM
103182018-02-09 Markus Metzger <markus.t.metzger@intel.com>
10319
10320 * remote.c (remote_btrace_maybe_reopen): Change error message.
10321 * btrace.c (btrace_enable): Likewise.
10322 (parse_xml_btrace): Likewise.
10323 (parse_xml_btrace_conf): Likewise.
10324
88711fbf
MM
103252018-02-09 Markus Metzger <markus.t.metzger@intel.com>
10326
10327 * nat/linux-btrace.c (diagnose_perf_event_open_fail): New.
10328 (linux_enable_pt, linux_enable_bts): Call
10329 diagnose_perf_event_open_fail.
10330
17ad2a4f
MM
103312018-02-09 Markus Metzger <markus.t.metzger@intel.com>
10332
10333 * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message.
10334 Remove parameter and change return type. Update callers. Move it.
10335 (linux_enable_bts, linux_enable_pt): Improve error message.
10336 (linux_enable_pt): Remove zero buffer size check.
10337 (linux_enable_btrace): Improve error messages. Remove NULL return
10338 check.
10339
de6242d3
MM
103402018-02-09 Markus Metzger <markus.t.metzger@intel.com>
10341
10342 * btrace.c (btrace_enable): Remove target_supports_btrace call.
10343 * nat/linux-btrace.c (perf_event_pt_event_type): Move.
10344 (kernel_supports_bts, kernel_supports_pt, linux_supports_bts)
10345 (linux_supports_pt, linux_supports_btrace): Remove.
10346 (linux_enable_bts): Call cpu_supports_bts.
10347 * nat/linux-btrace.h (linux_supports_btrace): Remove.
10348 * remote.c (remote_supports_btrace): Remove.
10349 (init_remote_ops): Remove remote_supports_btrace.
10350 * target-delegates.c: Regenerated.
10351 * target.c (target_supports_btrace): Remove.
10352 * target.h (target_ops) <to_supports_btrace>: Remove
10353 (target_supports_btrace): Remove.
10354 * x86-linux-nat.c (x86_linux_create_target): Remove
10355 linux_supports_btrace.
10356
9ee23a85
MM
103572018-02-09 Markus Metzger <markus.t.metzger@intel.com>
10358
10359 * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling
10360 btrace failed.
10361 * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling
10362 exception and use message in own exception.
10363
5c3284c1
MM
103642018-02-09 Markus Metzger <markus.t.metzger@intel.com>
10365
10366 * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h.
10367 (perf_event_pt_event_type): Use gdb_file_up.
10368 (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr,
10369 scoped_fd, and scoped_mmap.
10370
84696f37
MM
103712018-02-09 Markus Metzger <markus.t.metzger@intel.com>
10372
10373 * common/scoped_mmap.h: New.
10374 * unittests/scoped_mmap-selftest.c: New.
10375 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10376 unittests/scoped_mmap-selftest.c.
10377
ea4a0888
MM
103782018-02-09 Markus Metzger <markus.t.metzger@intel.com>
10379
10380 * common/scoped_fd.h: New.
10381 * unittests/scoped_fd-selftest.c: New.
10382 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10383 unittests/scoped_fd-selftest.c.
10384
869e8290
TT
103852018-02-09 Tom Tromey <tom@tromey.com>
10386
10387 * auto-load.c (auto_load_section_scripts): Use
10388 gdb::unique_xmalloc_ptr.
10389
a37a2ae7
TT
103902018-02-09 Tom Tromey <tom@tromey.com>
10391
10392 * auto-load.c (execute_script_contents): Use std::string.
10393
4e725347
JB
103942018-02-09 Joel Brobecker <brobecker@adacore.com>
10395
10396 * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new
10397 Python function, rather than a new command.
10398
9a897d43
TT
103992018-02-08 Tom Tromey <tom@tromey.com>
10400
10401 * solib.c (solib_find_1): Use std::string.
10402 (solib_bfd_fopen): Use unique_xmalloc_ptr.
10403
58ef3771
TT
104042018-02-08 Tom Tromey <tom@tromey.com>
10405
10406 * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr.
10407
a9abc434
TT
104082018-02-08 Tom Tromey <tom@tromey.com>
10409
10410 * source.c (find_source_lines): Use gdb::def_vector.
10411
84f27c6f
TT
104122018-02-08 Tom Tromey <tom@tromey.com>
10413
10414 * macrocmd.c (struct temporary_macro_definition): New.
10415 (macro_define_command): Use temporary_macro_definition. Remove
10416 cleanups.
10417 (free_macro_definition_ptr): Remove.
10418
0354904b
TT
104192018-02-08 Tom Tromey <tom@tromey.com>
10420
10421 * macroexp.c (maybe_expand): Use std::string.
10422
1739cf24
TT
104232018-02-08 Tom Tromey <tom@tromey.com>
10424
10425 * macroexp.c (struct macro_buffer): Add initializers for some
10426 members.
10427 (init_buffer, init_shared_buffer, free_buffer)
10428 (free_buffer_return_text): Remove.
10429 (macro_buffer): New constructors.
10430 (~macro_buffer): New destructor.
10431 (macro_buffer::set_shared): New method.
10432 (macro_buffer::resize_buffer, macro_buffer::appendc)
10433 (macro_buffer::appendmem): Now methods, not free functions.
10434 (set_token, append_tokens_without_splicing, stringify)
10435 (macro_stringify): Update.
10436 (gather_arguments): Change return type. Remove argc_p argument,
10437 add args_ptr argument. Use std::vector.
10438 (substitute_args): Remove argc argument. Accept std::vector.
10439 (expand): Update. Use std::vector.
10440 (scan, macro_expand, macro_expand_next): Update.
10441
f6c2623e
TT
104422018-02-08 Tom Tromey <tom@tromey.com>
10443
10444 * symtab.c (default_collect_symbol_completion_matches_break_on):
10445 Use unique_xmalloc_ptr.
10446 * macroscope.h: (sal_macro_scope, user_macro_scope)
10447 (default_macro_scope): Return unique_xmalloc_ptr.
10448 * macroscope.c (sal_macro_scope, user_macro_scope)
10449 (default_macro_scope): Return unique_xmalloc_ptr.
10450 * macroexp.h (macro_expand, macro_expand_once): Return
10451 unique_xmalloc_ptr.
10452 * macroexp.c (macro_expand, macro_expand_once): Return
10453 unique_xmalloc_ptr.
10454 * macrocmd.c (macro_expand_command, macro_expand_once_command)
10455 (info_macro_command, info_macros_command): Use
10456 unique_xmalloc_ptr.
10457 * compile/compile-c-support.c (write_macro_definitions): Use
10458 unique_xmalloc_ptr.
10459 * c-exp.y (c_parse): Use unique_xmalloc_ptr.
10460
c2e0e465
SM
104612018-02-07 Simon Marchi <simon.marchi@ericsson.com>
10462
10463 * value.c (value_static_field): Assign field type instead of
10464 containing type when returning an optimized out value.
10465
3f8c94b4
YQ
104662018-02-06 Yao Qi <yao.qi@linaro.org>
10467
10468 * ft32-tdep.c (ft32_read_pc): Remove.
10469 (ft32_write_pc): Remove.
10470 (ft32_gdbarch_init): Update.
10471 * m32r-tdep.c (m32r_read_pc): Remove.
10472 (m32r_gdbarch_init): Update.
10473 * mep-tdep.c (mep_read_pc): Remove.
10474 (mep_gdbarch_init): Update.
10475 * microblaze-tdep.c (microblaze_write_pc): Remove.
10476 (microblaze_gdbarch_init): Update.
10477 * mn10300-tdep.c (mn10300_read_pc): Remove.
10478 (mn10300_write_pc): Remove.
10479 (mn10300_gdbarch_init): Update.
10480 * moxie-tdep.c (moxie_read_pc): Remove.
10481 (moxie_write_pc): Remove.
10482 (moxie_gdbarch_init): Update.
10483
bca65a23
YQ
104842018-02-06 Yao Qi <yao.qi@linaro.org>
10485
10486 * expprint.c (print_subexp_standard): Handle
10487 OP_F77_UNDETERMINED_ARGLIST.
10488 (dump_subexp_body_standard): Likewise.
10489
583e3f90 104902018-02-05 Alan Hayward <alan.hayward@arm.com>
b8df6ca7 10491
583e3f90
YQ
10492 * target-descriptions.c (tdesc_element_visitor) Add empty
10493 implementations.
b8df6ca7
AH
10494 (tdesc_type): Move make_gdb_type from here.
10495 (tdesc_type_builtin): Likewise.
10496 (tdesc_type_vector): Likewise.
10497 (tdesc_type_with_fields): Move make_gdb_type_ functions from here.
10498 (make_gdb_type_struct): Move from tdesc_type_with_fields.
10499 (make_gdb_type_union): Likewise.
10500 (make_gdb_type_flags): Likewise.
10501 (make_gdb_type_enum): Likewise.
10502 (make_gdb_type): New function.
10503 (tdesc_register_type): Use static make_gdb_type.
10504
e813d34a
RK
105052018-02-05 Ruslan Kabatsayev <b7.10110111@gmail.com>
10506
10507 * infcmd.c (default_print_one_register_info): Align natural-format
10508 column values consistently one under another.
10509 (pad_to_column): New function.
10510
0eb876f5
JB
105112018-02-05 Joel Brobecker <brobecker@adacore.com>
10512
10513 * dwarf2read.c (dwarf2_physname): Move commment.
10514
0625771b
LS
105152018-02-01 Leszek Swirski <leszeks@google.com>
10516
10517 * varobj.c (varobj_formatted_print_options): Allow recursive
10518 pretty printing if pretty printing is enabled.
10519
59498c30
LS
105202018-02-01 Leszek Swirski <leszeks@google.com>
10521
10522 * c-exp.y (lex_one_token, classify_name, yylex): Don't classify
10523 names after a structop as a filename.
10524
2d9e6acb
YQ
105252018-02-01 Yao Qi <yao.qi@linaro.org>
10526
10527 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it.
10528 (arm_record_coproc_data_proc): Likewise.
10529
df95a9cf
YQ
105302018-02-01 Yao Qi <yao.qi@linaro.org>
10531
10532 * arm-tdep.c (arm_record_extension_space): Change ret to signed.
10533
07e5f5cf
NP
105342018-01-31 Nikola Prica <nikola.prica@rt-rk.com>
10535
10536 * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
10537 assign shifted lr_reg to fdata->lr_register when lr_reg is set.
10538
3045b475
PA
105392018-01-31 Pedro Alves <palves@redhat.com>
10540
10541 * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter.
10542 * inflow.c (child_terminal_save_inferior): Wrap reference to
10543 tcgetpgrp in HAVE_TERMIOS_H.
10544 (child_interrupt, child_pass_ctrlc): Wrap references to signal in
10545 _WIN32.
10546 * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and
10547 always iterate over all inferiors.
10548 (gdbsim_cntrl_c): Adjust.
10549 * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter.
10550
929b5ad4
JB
105512018-01-31 Joel Brobecker <brobecker@adacore.com>
10552
10553 * gdbtypes.c (lookup_array_range_type): Make sure the array's
10554 index type is objfile-owned if the element type is as well.
10555
29236ca2
JB
105562018-01-31 Joel Brobecker <brobecker@adacore.com>
10557
10558 GDB 8.1 released.
10559
c81e8879
PR
105602018-01-30 Philipp Rudo <prudo@linux.vnet.ibm.com>
10561
10562 * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and
10563 "features/s390x-linux64.c".
10564 (_initialize_s390_linux_tdep): Remove initialization of tdescs
10565 s390_linux32 and s390x_linux64.
10566 (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set
10567 default tdesc.
10568 * s390-tdep.c: Include "features/s390-linux32.c" and
10569 "features/s390x-linux64.c".
10570 (s390_tdesc_valid): Add check for tdesc_has_registers.
10571 (s390_gdbarch_init): Make sure there is always a valid tdesc.
10572 (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and
10573 tdesc_s390x_linux64.
10574 * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and
10575 tdesc_s390x_linux64 to...
10576 * s390-tdep.h: ...here.
10577
e671cd59
PA
105782018-01-30 Pedro Alves <palves@redhat.com>
10579
10580 PR gdb/13211
10581 * config.in, configure: Regenerate.
10582 * configure.ac: Check for getpgid.
10583 * go32-nat.c (go32_pass_ctrlc): New.
10584 (go32_target): Install it.
10585 * inf-child.c (inf_child_target): Install
10586 child_terminal_save_inferior, child_pass_ctrlc and
10587 child_interrupt.
10588 * inf-ptrace.c (inf_ptrace_interrupt): Delete.
10589 (inf_ptrace_target): No longer install it.
10590 * infcmd.c (interrupt_target_1): Adjust.
10591 * inferior.h (child_terminal_save_inferior, child_pass_ctrlc)
10592 (child_interrupt): Declare.
10593 (inferior::terminal_state): New.
10594 * inflow.c (struct terminal_info): Update comments.
10595 (inferior_process_group): Delete.
10596 (terminal_is_ours): Delete.
10597 (gdb_tty_state): New.
10598 (child_terminal_init): Adjust.
10599 (is_gdb_terminal, sharing_input_terminal_1)
10600 (sharing_input_terminal): New functions.
10601 (child_terminal_inferior): Adjust. Use sharing_input_terminal.
10602 Set the process's actual process group in the foreground if
10603 possible. Handle is_ours_for_output/is_ours distinction. Don't
10604 mark terminal as the inferior's if not sharing GDB's terminal.
10605 Don't check attach_flag.
10606 (child_terminal_ours_for_output, child_terminal_ours): Adjust to
10607 pass down a target_terminal_state.
10608 (child_terminal_save_inferior): New, factored out from ...
10609 (child_terminal_ours_1): ... this. Handle
10610 target_terminal_state::is_ours_for_output.
10611 (child_interrupt, child_pass_ctrlc): New.
10612 (inflow_inferior_exit): Clear the inferior's terminal_state.
10613 (copy_terminal_info): Copy the inferior's terminal state.
10614 (_initialize_inflow): Remove reference to terminal_is_ours.
10615 * inflow.h (inferior_process_group): Delete.
10616 * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust.
10617 * procfs.c (procfs_target): Don't install procfs_interrupt.
10618 (procfs_interrupt): Delete.
10619 * remote.c (remote_serial_quit_handler): Adjust.
10620 (remote_interrupt): Remove ptid parameter. Adjust.
10621 * target-delegates.c: Regenerate.
10622 * target.c: Include "terminal.h".
10623 (target_terminal::terminal_state): Rename to ...
10624 (target_terminal::m_terminal_state): ... this.
10625 (target_terminal::init): Adjust.
10626 (target_terminal::inferior): Adjust to per-inferior
10627 terminal_state.
10628 (target_terminal::restore_inferior, target_terminal_is_ours_kind): New.
10629 (target_terminal::ours, target_terminal::ours_for_output): Use
10630 target_terminal_is_ours_kind.
10631 (target_interrupt): Remove ptid parameter. Adjust.
10632 (default_target_pass_ctrlc): Adjust.
10633 * target.h (target_ops::to_terminal_save_inferior): New field.
10634 (target_ops::to_interrupt): Remove ptid_t parameter.
10635 (target_interrupt): Remove ptid_t parameter. Update comment.
10636 (target_pass_ctrlc): Update comment.
10637 * target/target.h (target_terminal_state): New scoped enum,
10638 factored out of ...
10639 (target_terminal::terminal_state): ... here.
10640 (target_terminal::inferior): Update comments.
10641 (target_terminal::restore_inferior): New.
10642 (target_terminal::is_inferior, target_terminal::is_ours)
10643 (target_terminal::is_ours_for_output): Adjust.
10644 (target_terminal::scoped_restore_terminal_state): Adjust to
10645 rename, and call restore_inferior() instead of inferior().
10646 (target_terminal::scoped_restore_terminal_state::m_state): Change
10647 type.
10648 (target_terminal::terminal_state): Rename to ...
10649 (target_terminal::m_terminal_state): ... this and change type.
10650
9c3a5d93
PA
106512018-01-30 Pedro Alves <palves@redhat.com>
10652
10653 * linux-nat.c (wait_for_signal): New function.
10654 (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend
10655 directly.
10656 (async_terminal_is_ours)
10657 (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete.
10658 (linux_nat_add_target): Don't override
10659 to_terminal_inferior/to_terminal_ours.
10660
69ab5edb
SDJ
106612018-01-29 Sergio Durigan Junior <sergiodj@redhat.com>
10662
10663 * remote.c (remote_follow_fork): Don't call "detach_inferior".
10664
fc8e7e75
SM
106652018-01-28 Simon Marchi <simon.marchi@ericsson.com>
10666
10667 * dwarf2read.c (free_dwo_files): Add forward-declaration.
10668 (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from
10669 dwarf2_per_objfile_free here.
10670 (dwarf2_per_objfile_free): Remove.
10671 (_initialize_dwarf2_read): Don't register
10672 dwarf2_per_objfile_free as a registry cleanup.
10673
b2a426e2
EZ
106742018-01-27 Eli Zaretskii <eliz@gnu.org>
10675
10676 Avoid compilation errors in MinGW native builds
10677
10678 The error is triggered by including python-internal.h, and the
10679 error message is:
10680
10681 In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
10682 from build-gnulib/import/math.h:27,
10683 from d:/usr/Python26/include/pyport.h:235,
10684 from d:/usr/Python26/include/Python.h:58,
10685 from python/python-internal.h:94,
10686 from python/py-arch.c:24:
10687 d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
10688 using ::hypot;
10689 ^~~~~
10690
10691 This happens because Python headers define 'hypot' to expand t
10692 '_hypot' in the Windows builds.
10693 * python/python-internal.h (_hypot) [__MINGW32__]: Define back to
10694 'hypoth'. This avoids a compilation error.
10695
0bdd8eac
AH
106962018-01-26 Alan Hayward <alan.hayward@arm.com>
10697
10698 * MAINTAINERS (Write After Approval): Fix ordering.
10699
56ae9dc3
AH
107002018-01-26 Alan Hayward <alan.hayward@arm.com>
10701
10702 * MAINTAINERS (Write After Approval): Add Alan Hayward.
10703
7433498b
AM
107042018-01-26 Alan Modra <amodra@gmail.com>
10705
10706 * ppc-linux-tdep.c (powerpc32_plt_stub): Make const.
10707 (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so.
10708 Remove nop. Make const. Comment.
10709 (powerpc32_plt_stub_so_2): New.
10710 (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN.
10711 Correct count. Update uses.
10712 (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too.
10713 Move common code reading PLT entry word. Correct
10714 powerpc32_plt_stub PLT address calculation.
10715 * ppc64-tdep.c (ppc64_standard_linkage1): Make const.
10716 (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise.
10717 (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise.
10718 (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise.
10719 (ppc64_standard_linkage8): Likewise.
10720 * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const.
10721 Correct insns description.
10722 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
10723
0f59d5fc
PA
107242018-01-24 Pedro Alves <palves@redhat.com>
10725
10726 GCC PR libstdc++/83906
10727 * gdbtypes.c (operator==(const dynamic_prop &,
10728 const dynamic_prop &)): New.
10729 (operator==(const range_bounds &, const range_bounds &)): New.
10730 (check_types_equal): Use them instead of memcmp.
10731 * gdbtypes.h (operator==(const dynamic_prop &,
10732 const dynamic_prop &)): Declare.
10733 (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare.
10734 (operator==(const range_bounds &, const range_bounds &)): Declare.
10735 (operator!=(const range_bounds &, const range_bounds &)): Declare.
10736
ef8914a4
PR
107372018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
10738
10739 * s390-linux-tdep.c (s390_record_address_mask)
10740 (s390_record_calc_disp_common, s390_record_calc_disp)
10741 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
10742 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
10743 (s390_process_record): Move to s390-tdep.c.
10744 (s390_linux_init_abi_any): Adjust.
10745 * s390-tdep.c (s390_record_address_mask)
10746 (s390_record_calc_disp_common, s390_record_calc_disp)
10747 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
10748 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
10749 (s390_process_record): Moved from s390-linux-tdep.c
10750 (s390_gdbarch_init): Adjust.
10751
d6e58945
PR
107522018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
10753
10754 * s390-linux-nat.c (s390-tdep.h): New include.
10755 * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o.
10756 (HFILES_NO_SRCDIR): Add s390-tdep.h.
10757 (ALLDEPFILES): Add s390-tdep.c.
10758 * configure.tgt (s390*-*-linux*): Add s390-tdep.o.
10759 * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to...
10760 * s390-tdep.h: ...this. New file.
10761 * s390-linux-tdep.c (s390-tdep.h): New include.
10762 (_initialize_s390_tdep): Rename to...
10763 (_initialize_s390_linux_tdep): ...this and adjust.
10764 (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep)
10765 (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to
10766 s390-tdep.h.
10767 (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri)
10768 (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy)
10769 (s390_is_partial_instruction, s390_software_single_step)
10770 (is_non_branch_ril, s390_displaced_step_copy_insn)
10771 (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep)
10772 (s390_prologue_data, s390_addr, s390_store, s390_load)
10773 (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue)
10774 (s390_register_call_saved, s390_guess_tracepoint_registers)
10775 (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum)
10776 (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register)
10777 (s390_pseudo_register_name, s390_pseudo_register_type)
10778 (s390_pseudo_register_read, s390_pseudo_register_write)
10779 (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect)
10780 (s390_ax_pseudo_register_push_stack, s390_gen_return_address)
10781 (s390_addr_bits_remove, s390_address_class_type_flags)
10782 (s390_address_class_type_flags_to_name)
10783 (s390_address_class_name_to_type_flags, s390_effective_inner_type)
10784 (s390_function_arg_float, s390_function_arg_vector)
10785 (is_power_of_two, s390_function_arg_integer, s390_arg_state)
10786 (s390_handle_arg, s390_push_dummy_call, s390_dummy_id)
10787 (s390_frame_align, s390_register_return_value, s390_return_value)
10788 (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp)
10789 (s390_unwind_pseudo_register, s390_adjust_frame_regnum)
10790 (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg)
10791 (s390_trad_frame_prev_register, s390_unwind_cache)
10792 (s390_prologue_frame_unwind_cache)
10793 (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache)
10794 (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind)
10795 (s390_stub_unwind_cache, s390_stub_frame_unwind_cache)
10796 (s390_stub_frame_this_id, s390_stub_frame_prev_register)
10797 (s390_stub_frame_sniffer, s390_stub_frame_unwind)
10798 (s390_frame_base_address, s390_local_base_address)
10799 (s390_frame_base, s390_gcc_target_options)
10800 (s390_gnu_triplet_regexp, s390_stap_is_single_operand)
10801 (s390_validate_reg_range, s390_tdesc_valid)
10802 (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to...
10803 * s390-tdep.c: ...this. New file.
10804
9c0b896e
PR
108052018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
10806
10807 * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook.
10808 (s390_process_record, s390_gdbarch_tdep_alloc)
10809 (s390_linux_init_abi_any): Use/set new hook.
10810
7042632b
PR
108112018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
10812
10813 * s390-linux-tdep.c (osabi.h): New include.
10814 (s390_linux_init_abi_31, s390_linux_init_abi_64)
10815 (s390_linux_init_abi_any): New functions.
10816 (s390_gdbarch_init, _initialize_s390_tdep): Adjust.
10817
650f5e13
PR
108182018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
10819
10820 * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
10821 tdesc_has_registers check
10822
47c9317e
PR
108232018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
10824
10825 * s390-linux-tdep.c (s390_tdesc_valid): New function.
10826 (s390_validate_reg_range): New macro.
10827 (s390_gdbarch_init): Adjust.
10828
095085d8
PR
108292018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
10830
10831 * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
10832 (s390_gdbarch_tdep_alloc): Adjust.
10833 (s390_gdbarch_init): Adjust.
10834
ab9bcc67
PR
108352018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
10836
10837 * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
10838 <have_tdb>: Change type to bool.
10839 (s390_gdbarch_tdep_alloc): Adjust.
10840 (s390_gdbarch_init): Adjust.
10841
21f6f5ff
PR
108422018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
10843
10844 * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
10845 (gdbarch_tdep) <have_upper, have_vx>: New fields.
10846 (s390_gdbarch_tdep_alloc): New function.
10847 (s390_gdbarch_init): Allocate tdep at start and use its fields
10848 instead of separate variables.
10849
0eb97953
PR
108502018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
10851
10852 * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
10853 when looking for cached gdbarch and add comment for remaining.
10854
5c319bb2
PA
108552018-01-22 Pedro Alves <palves@redhat.com>
10856 Sergio Durigan Junior <sergiodj@redhat.com>
10857
10858 * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
10859 case.
10860
d65ce302
MR
108612018-01-22 Maciej W. Rozycki <macro@mips.com>
10862
10863 * MAINTAINERS: Update my company e-mail address.
10864
ec7a5fcb
YQ
108652018-01-22 Yao Qi <yao.qi@linaro.org>
10866
10867 * regcache.c (cooked_write_test): New function.
10868 (_initialize_regcache): Register the test.
10869
11f57cb6
YQ
108702018-01-22 Yao Qi <yao.qi@linaro.org>
10871
10872 * ia64-tdep.c (ia64_pseudo_register_read): Call
10873 regcache->cooked_read instead of regcache_cooked_read_unsigned.
10874 * m32c-tdep.c (m32c_cat_read): Likewise.
10875 (m32c_r3r2r1r0_read): Likewise.
10876 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
10877 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
10878
03f50fc8
YQ
108792018-01-22 Yao Qi <yao.qi@linaro.org>
10880
10881 * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
10882 method raw_read instead of regcache_raw_read.
10883 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
10884 * arm-tdep.c (arm_neon_quad_read): Likewise.
10885 * avr-tdep.c (avr_pseudo_register_read): Likewise.
10886 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
10887 * frv-tdep.c (frv_pseudo_register_read): Likewise.
10888 * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
10889 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
10890 (i386_pseudo_register_read_into_value): Likewise.
10891 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
10892 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
10893 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
10894 * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
10895 * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
10896 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
10897 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
10898 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
10899 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
10900
dc711524
YQ
109012018-01-22 Yao Qi <yao.qi@linaro.org>
10902
10903 * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
10904 * configure.tgt: Remove target mt.
10905 * mt-tdep.c: Remove.
10906 * regcache.c (cooked_read_test): Remove the check for mt.
10907
3f5a868b
YQ
109082018-01-22 Yao Qi <yao.qi@linaro.org>
10909
10910 * jit.c (jit_frame_prev_register): Call regcache::cooked_read
10911 instead of gdbarch_pseudo_register_read_value.
10912
de4cb04a
JB
109132018-01-22 Joel Brobecker <brobecker@adacore.com>
10914
10915 * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
10916 language is Ada.
10917
a9e40818
JB
109182018-01-22 Joel Brobecker <brobecker@adacore.com>
10919
10920 * linespec.c (create_sals_line_offset): Remove code that preserved
10921 the symtab_and_line's line number.
10922
e707fc44
AB
109232018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
10924
10925 * varobj.c (varobj_create): Don't set valid_block when creating a
10926 floating varobj.
10927
03d0bf7b
AB
109282018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
10929
10930 * varobj.c (varobj_create): Remove out of date comment.
10931
ae451627
AB
109322018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
10933
10934 PR mi/20395
10935 * ada-exp.y (write_var_from_sym): Pass extra parameter when
10936 updating innermost block.
10937 * parse.c (innermost_block_tracker::update): Take extra type
10938 parameter, and check types match before updating innermost block.
10939 (write_dollar_variable): Update innermost block for registers.
10940 * parser-defs.h (enum innermost_block_tracker_type): New enum.
10941 (innermost_block_tracker::innermost_block_tracker): Initialise
10942 m_types member.
10943 (innermost_block_tracker::reset): Take type parameter.
10944 (innermost_block_tracker::update): Take type parameter, and pass
10945 type through as needed.
10946 (innermost_block_tracker::m_types): New member.
10947 * varobj.c (varobj_create): Pass type when reseting innermost
10948 block.
10949
aee1fcdf
AB
109502018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
10951
10952 * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
10953 * ada-lang.c (resolve_subexp): Likewise.
10954 * breakpoint.c (set_breakpoint_condition) Likewise.
10955 (watch_command_1) Likewise.
10956 * c-exp.y (variable): Likewise.
10957 * d-exp.y (PrimaryExpression): Likewise.
10958 * f-exp.y (variable): Likewise.
10959 * go-exp.y (variable): Likewise.
10960 * m2-exp.y (variable): Likewise.
10961 * objfiles.c (objfile::~objfile): Likewise.
10962 * p-exp.y (variable): Likewise.
10963 * parse.c (innermost_block): Change type.
10964 * parser-defs.h (class innermost_block_tracker): New.
10965 (innermost_block): Change to innermost_block_tracker.
10966 * printcmd.c (display_command): Switch to innermost_block API.
10967 (do_one_display): Likewise.
10968 * rust-exp.y (do_one_display): Likewise.
10969 * symfile.c (clear_symtab_users): Likewise.
10970 * varobj.c (varobj_create): Switch to innermost_block API, replace
10971 use of innermost_block with block stored on varobj object.
10972
396af9a1
AB
109732018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
10974
10975 * expression.h (innermost_block): Remove declaration.
10976 * varobj.c: Add 'parser-defs.h' include.
10977
fcfcc376
TT
109782018-01-19 Tom Tromey <tom@tromey.com>
10979
10980 * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
10981 symbols in the static and global blocks.
10982
5a6c3296
JC
109832018-01-19 James Clarke <jrtc27@jrtc27.com>
10984
10985 * nat/linux-ptrace.c: Remove unnecessary reinclusion of
10986 gdb_ptrace.h, and move including gdb_wait.h ...
10987 * nat/linux-ptrace.h: ... to here.
10988
bc09b0c1
SM
109892018-01-19 Simon Marchi <simon.marchi@ericsson.com>
10990
10991 * inf-ptrace.c (inf_ptrace_detach): Adjust call to
10992 inf_ptrace_detach_success.
10993 (inf_ptrace_detach_success): Add inferior parameter, use it
10994 instead of inferior_ptid, pass it to detach_inferior.
10995 * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
10996 parameter.
10997 * inferior.c (detach_inferior): Add overload that takes an
10998 inferior object.
10999 * inferior.h (detach_inferior): Likewise.
11000 * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
11001 use inferior_ptid, adjust call to inf_ptrace_detach_success.
11002 * linux-thread-db.c (thread_db_detach): Use inf parameter.
11003
6e1e1966
SM
110042018-01-19 Simon Marchi <simon.marchi@ericsson.com>
11005
11006 * target.h (struct target_ops) <to_detach>: Add inferior
11007 parameter.
11008 (target_detach): Likewise.
11009 * target.c (dispose_inferior): Pass inferior down.
11010 (target_detach): Pass inferior down. Assert that it is equal to
11011 the current inferior.
11012 * aix-thread.c (aix_thread_detach): Pass inferior down.
11013 * corefile.c (core_file_command): Pass current_inferior() down.
11014 * corelow.c (core_detach): Add inferior parameter.
11015 * darwin-nat.c (darwin_detach): Likewise.
11016 * gnu-nat.c (gnu_detach): Likewise.
11017 * inf-ptrace.c (inf_ptrace_detach): Likewise.
11018 * infcmd.c (detach_command): Pass current_inferior() down to
11019 target_detach.
11020 * infrun.c (follow_fork_inferior): Pass parent_inf to
11021 target_detach.
11022 (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
11023 target_detach.
11024 * linux-nat.c (linux_nat_detach): Add inferior parameter.
11025 * linux-thread-db.c (thread_db_detach): Likewise.
11026 * nto-procfs.c (procfs_detach): Likewise.
11027 * procfs.c (procfs_detach): Likewise.
11028 * record.c (record_detach): Likewise.
11029 * record.h (struct inferior): Forward-declare.
11030 (record_detach): Add inferior parameter.
11031 * remote-sim.c (gdbsim_detach): Likewise.
11032 * remote.c (remote_detach_1): Likewise.
11033 (remote_detach): Likewise.
11034 (extended_remote_detach): Likewise.
11035 * sol-thread.c (sol_thread_detach): Likewise.
11036 * target-debug.h (target_debug_print_inferior_p): New macro.
11037 * target-delegates.c: Re-generate.
11038 * top.c (kill_or_detach): Pass inferior down to target_detach.
11039 * windows-nat.c (windows_detach): Add inferior parameter.
11040
6bd6f3b6
SM
110412018-01-19 Simon Marchi <simon.marchi@ericsson.com>
11042
11043 * target.h (struct target_ops) <to_detach>: Remove args
11044 parameter.
11045 (target_detach): Likewise.
11046 * target.c (dispose_inferior): Adjust.
11047 (target_detach): Remove args parameter, adjust.
11048 * aix-thread.c (aix_thread_detach): Adjust.
11049 * corefile.c (core_file_command): Adjust.
11050 * corelow.c (core_detach): Adjust.
11051 * darwin-nat.c (darwin_detach): Adjust.
11052 * gnu-nat.c (gnu_detach): Adjust.
11053 * inf-ptrace.c (inf_ptrace_detach): Adjust.
11054 * infcmd.c (detach_command): Adjust
11055 * infrun.c (follow_fork_inferior): Adjust.
11056 (handle_vfork_child_exec_or_exit): Adjust.
11057 * linux-fork.c (linux_fork_detach): Remove args parameter.
11058 * linux-fork.h (linux_fork_detach): Likewise.
11059 * linux-nat.c (linux_nat_detach): Likewise, and adjust.
11060 * linux-thread-db.c (thread_db_detach): Likewise.
11061 * nto-procfs.c (procfs_detach): Likewise.
11062 * procfs.c (procfs_detach): Likewise.
11063 (do_detach): Remove signo parameter.
11064 * record.c (record_detach): Remove args parameter.
11065 * record.h (record_detach): Likewise.
11066 * remote-sim.c (gdbsim_detach): Likewise.
11067 * remote.c (remote_detach_1): Likewise.
11068 (remote_detach): Likewise.
11069 (extended_remote_detach): Likewise.
11070 * sol-thread.c (sol_thread_detach): Likewise.
11071 * target-delegates.c: Re-generate.
11072 * top.c (struct qt_args) <args>: Remove field.
11073 (kill_or_detach): Don't pass args.
11074 (quit_force): Don't set args.
11075 * windows-nat.c (windows_detach): Remove args parameter.
11076
88af8ea8
YQ
110772018-01-19 Yao Qi <yao.qi@linaro.org>
11078
11079 * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
11080 (arm_linux_init_abi): Install it.
11081
dea445b9
YQ
110822018-01-19 Yao Qi <yao.qi@linaro.org>
11083
11084 * osabi.c (gdb_osabi_names): Extend the regexp for
11085 arm-linux-gnueabihf.
11086
4a17f768
YQ
110872018-01-18 Yao Qi <yao.qi@linaro.org>
11088
11089 * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
11090 m_abbrevs.
11091 (abbrev_table::add_abbrev): Update.
11092 (abbrev_table::lookup_abbrev): Update.
11093
d679c21a
YQ
110942018-01-18 Yao Qi <yao.qi@linaro.org>
11095
11096 * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
11097
7d937cad
SDJ
110982018-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
11099
11100 * compile/compile.c (compile_to_object): Convert "triplet_rx"
11101 to "std::string".
11102
9e14690d
TT
111032018-01-17 Tom Tromey <tom@tromey.com>
11104
11105 * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC.
11106
50a82047
TT
111072018-01-17 Tom Tromey <tom@tromey.com>
11108
11109 * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
11110 * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
11111 (create_array_type_with_stride): Update.
11112 * dwarf2read.c (set_die_type): Update.
11113
c89b44cd
TT
111142018-01-17 Tom Tromey <tom@tromey.com>
11115
11116 * dwarf2read.c (delayed_method_info): Remove typedef.
11117 (dwarf2_cu::method_info): Now a std::vector.
11118 (add_to_method_list): Update.
11119 (free_delayed_list): Remove.
11120 (compute_delayed_physnames): Update.
11121 (process_full_comp_unit, process_full_type_unit): Clear the method
11122 list. Remove cleanups.
11123 (psymtab_include_file_name): Add name_holder parameter. Use
11124 unique_xmalloc_ptr.
11125 (dwarf_decode_lines): Update.
11126
fcd3b13d
SM
111272018-01-17 Tom Tromey <tom@tromey.com>
11128 Simon Marchi <simon.marchi@ericsson.com>
11129
11130 * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
11131 (dwarf2_per_objfile::free_cached_comp_units)
11132 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
11133 (init_cutu_and_read_dies_no_follow): Update.
11134 (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
11135 (dwarf2_cu::~dwarf2_cu): New.
11136 (free_heap_comp_unit, free_stack_comp_unit): Remove.
11137 (age_cached_comp_units, free_one_cached_comp_unit): Update.
11138
685af9cd
TT
111392018-01-17 Tom Tromey <tom@tromey.com>
11140 Simon Marchi <simon.marchi@ericsson.com>
11141
11142 * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
11143 (struct die_reader_specs) <abbrev_table>: New member.
11144 (struct abbrev_table): Add constructor.
11145 <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
11146 <abbrev_obstack>: Now an auto_obstack.
11147 (abbrev_table_up): New typedef.
11148 (init_cu_die_reader): Add abbrev_table parameter.
11149 (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
11150 Add result_dwo_abbrev_table.
11151 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
11152 (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
11153 Update.
11154 (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
11155 parameter.
11156 (skip_children): Update.
11157 (abbrev_table::alloc_abbrev): Rename from
11158 abbrev_table_alloc_abbrev.
11159 (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
11160 (abbrev_table::lookup_abbrev): Rename from
11161 abbrev_table_lookup_abbrev.
11162 (abbrev_table_read_table): Return abbrev_table_up.
11163 (abbrev_table_free, abbrev_table_free_cleanup)
11164 (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
11165 (load_partial_dies): Update.
11166
5e2db402
TT
111672018-01-17 Tom Tromey <tom@tromey.com>
11168
11169 * dwarf2read.c (dwarf2_compute_name): Update comment.
11170 (read_func_scope, read_variable): Update.
11171 (new_symbol): Remove.
11172 (new_symbol_full): Rename to new_symbol.
11173
ee7f689e 111742018-01-17 Mike Gulick <mgulick@mathworks.com>
41667530
MG
11175
11176 PR gdb/16577
11177 * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
11178 a warning instead of throwing an error, set section size to 0 and return
11179 NULL.
11180 * gdb_bfd.h (gdb_bfd_map_section): Update description.
11181
4d9b86e1
SM
111822018-01-17 Simon Marchi <simon.marchi@ericsson.com>
11183
11184 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
11185 std::string.
11186 (linux_ptrace_attach_fail_reason_string): Likewise.
11187 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
11188 Likewise.
11189 (linux_ptrace_attach_fail_reason_string): Likewise.
11190 * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
11191
a7b2d0fb
SM
111922018-01-17 Simon Marchi <simon.marchi@ericsson.com>
11193
11194 * linux-nat.c (linux_nat_attach): Remove xstrdup.
11195
f517c180
EA
111962018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
11197
11198 PR gdb/21559
11199 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
11200 checking for fs_base/gs_base fields in struct user_regs_struct.
11201 * configure: Regenerate.
11202
7045b1ca
YQ
112032018-01-17 Yao Qi <yao.qi@linaro.org>
11204
11205 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
11206 function.
11207 (aarch64_linux_init_abi): Install it to gdbarch hook
11208 gcc_target_options.
11209
db422fb2
PA
112102018-01-15 Pedro Alves <palves@redhat.com>
11211
11212 * common/signals-state-save-restore.c
11213 (save_original_signals_state): Fix typos.
11214
ba643918
SDJ
112152017-01-12 Tom Tromey <tom@tromey.com>
11216 Sergio Durigan Junior <sergiodj@redhat.com>
11217
11218 * Makefile.in (install-only): Install gdb-add-index.
11219
906b4aac
JB
112202018-01-12 John Baldwin <jhb@FreeBSD.org>
11221
11222 * fbsd-tdep.c (KVE_PROTECTION): Correct value.
11223
bdf2a94a
AA
112242018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11225
11226 * infrun.c (keep_going_pass_signal): Clear step-over info when
11227 insert_breakpoints fails.
11228
71d378ae
PA
112292018-01-11 Pedro Alves <palves@redhat.com>
11230
11231 PR gdb/22583
11232 * infrun.c (resume): Rename to ...
11233 (resume_1): ... this.
11234 (resume): Reimplement as wrapper around resume_1.
11235
3cada740
PA
112362018-01-11 Pedro Alves <palves@redhat.com>
11237
11238 PR remote/22597
11239 * remote.c (remote_parse_stop_reply): Default to the last-set
11240 general thread instead of to 'magic_null_ptid'.
11241
618daa93
PA
112422018-01-10 Pedro Alves <palves@redhat.com>
11243
11244 * language.h (language_get_symbol_name_matcher): Rename ...
11245 (get_symbol_name_matcher): ... this.
11246 * language.c (language_get_symbol_name_matcher): Ditto.
11247 * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
11248 callers adjusted.
11249
c63d3e8d
PA
112502018-01-10 Pedro Alves <palves@redhat.com>
11251
11252 PR gdb/22670
11253 * dwarf2read.c
11254 (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
11255 Adjust to use language_get_symbol_name_matcher instead of
11256 language_defn::la_get_symbol_name_matcher.
11257 * language.c (language_get_symbol_name_matcher): If in Ada mode
11258 and the lookup name is a verbatim match, return Ada's matcher.
11259 * language.h (language_get_symbol_name_matcher): Adjust comment.
11260 (ada_lookup_name_info::verbatim_p):: New method.
11261
d4c2a405
PA
112622018-01-10 Pedro Alves <palves@redhat.com>
11263
11264 PR gdb/22670
11265 * ada-lang.c (ada_collect_symbol_completion_matches): If the
11266 minsym's language is language_auto or language_cplus, pass down
11267 language_ada instead.
11268 * symtab.c (compare_symbol_name): Don't frob symbol language here.
11269
8825213e
PA
112702018-01-10 Pedro Alves <palves@redhat.com>
11271
11272 PR gdb/22670
11273 * minsyms.c (linkage_name_str): New function.
11274 (iterate_over_minimal_symbols): Use it.
11275
2d97a5d9
JB
112762018-01-09 John Baldwin <jhb@FreeBSD.org>
11277
11278 * NEWS: Document that 'info proc' now works on FreeBSD.
11279
92fce24d
JB
112802018-01-09 John Baldwin <jhb@FreeBSD.org>
11281
11282 * configure.ac: Check for kinfo_getfile in libutil.
11283 * configure: Regenerate.
11284 * config.in: Regenerate.
11285 * fbsd-nat.c: Include "fbsd-tdep.h".
11286 (fbsd_fetch_cmdline): New.
11287 (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
11288 rather than calling error.
11289 (fbsd_info_proc): New.
11290 (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
11291 (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
11292 (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
11293
262f62f5
JB
112942018-01-09 John Baldwin <jhb@FreeBSD.org>
11295
11296 * fbsd-nat.c (struct free_deleter): Remove.
11297 (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
11298
b999e203
JB
112992018-01-09 John Baldwin <jhb@FreeBSD.org>
11300
11301 * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
11302 NULL for an empty pathname.
11303
d2176225
JB
113042018-01-09 John Baldwin <jhb@FreeBSD.org>
11305
11306 * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
11307 (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
11308 (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
11309 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
11310 (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
11311 (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
11312 (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
11313 (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
11314 (kinfo_proc_layout_32, kinfo_proc_layout_i386)
11315 (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
11316 (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
11317 (fbsd_core_fetch_timeval, fbsd_print_sigset)
11318 (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
11319 (fbsd_init_abi): Install gdbarch "core_info_proc" method.
11320 * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
11321
9c4ac400
ST
113222018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
11323
11324 * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
11325 (gnu_xfer_auxv): New function.
11326 (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
11327 TARGET_OBJECT_AUXV.
11328
1e5ded6c
YQ
113292018-01-08 Yao Qi <yao.qi@linaro.org>
11330 Simon Marchi <simon.marchi@ericsson.com>
11331
11332 * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
11333 common/selftest.c.
11334 (COMMON_OBS): Remove selftest.o.
11335 * configure.ac: Append selftest-arch.c and common/selftest.c to
11336 CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS.
11337 * configure: Re-generated.
11338 * maint.c (maintenance_selftest): Wrap selftests::run_tests with
11339 GDB_SELF_TEST.
11340 (maintenance_info_selftests): Likewise.
11341
04bafb1e
XR
113422018-01-08 Xavier Roirand <roirand@adacore.com>
11343
11344 * ada-valprint.c (val_print_packed_array_elements): Use
11345 proper number of elements when printing an array indexed
11346 by an enumeration type.
11347
518817b3
SM
113482018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
11349
11350 * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
11351 (dw2_get_file_names_reader): Adjust.
11352 (lookup_dwo_signatured_type): Adjust.
11353 (lookup_dwp_signatured_type): Adjust.
11354 (lookup_signatured_type): Adjust.
11355 (create_type_unit_group): Adjust.
11356 (get_type_unit_group): Adjust.
11357 (process_psymtab_comp_unit_reader): Adjust.
11358 (build_type_psymtabs_reader): Adjust.
11359 (scan_partial_symbols): Adjust.
11360 (add_partial_symbol): Adjust.
11361 (add_partial_subprogram): Adjust.
11362 (peek_die_abbrev): Adjust.
11363 (fixup_go_packaging): Adjust.
11364 (process_imported_unit_die): Adjust.
11365 (dwarf2_compute_name): Adjust.
11366 (dwarf2_physname): Adjust.
11367 (read_import_statement): Adjust.
11368 (handle_DW_AT_stmt_list): Adjust.
11369 (read_file_scope): Adjust.
11370 (read_func_scope): Adjust.
11371 (read_lexical_block_scope): Adjust.
11372 (read_call_site_scope): Adjust.
11373 (read_variable): Adjust.
11374 (dwarf2_rnglists_process): Adjust.
11375 (dwarf2_ranges_process): Adjust.
11376 (dwarf2_ranges_read): Adjust.
11377 (dwarf2_get_pc_bounds): Adjust.
11378 (dwarf2_record_block_ranges): Adjust.
11379 (dwarf2_add_field): Adjust.
11380 (dwarf2_add_member_fn): Adjust.
11381 (read_structure_type): Adjust.
11382 (process_structure_scope): Adjust.
11383 (read_enumeration_type): Adjust.
11384 (read_array_type): Adjust.
11385 (mark_common_block_symbol_computed): Adjust.
11386 (read_common_block): Adjust.
11387 (read_namespace_type): Adjust.
11388 (read_namespace): Adjust.
11389 (read_module_type): Adjust.
11390 (read_tag_pointer_type): Adjust.
11391 (read_tag_ptr_to_member_type): Adjust.
11392 (read_tag_string_type): Adjust.
11393 (read_subroutine_type): Adjust.
11394 (read_typedef): Adjust.
11395 (read_base_type): Adjust.
11396 (attr_to_dynamic_prop): Adjust.
11397 (read_subrange_type): Adjust.
11398 (read_unspecified_type): Adjust.
11399 (dwarf2_read_abbrevs): Adjust.
11400 (load_partial_dies): Adjust.
11401 (read_partial_die): Adjust.
11402 (find_partial_die): Adjust.
11403 (guess_partial_die_structure_name): Adjust.
11404 (fixup_partial_die): Adjust.
11405 (read_attribute_value): Adjust.
11406 (read_addr_index): Adjust.
11407 (read_addr_index_from_leb128): Adjust.
11408 (read_str_index): Adjust.
11409 (dwarf2_string_attr): Adjust.
11410 (get_debug_line_section): Adjust.
11411 (dwarf_decode_line_header): Adjust.
11412 (lnp_state_machine::check_line_address): Adjust.
11413 (dwarf_decode_lines_1): Adjust.
11414 (dwarf_decode_lines): Adjust.
11415 (dwarf2_start_symtab): Adjust.
11416 (var_decode_location): Adjust.
11417 (new_symbol_full): Adjust.
11418 (dwarf2_const_value_data): Adjust.
11419 (dwarf2_const_value_attr): Adjust.
11420 (dwarf2_const_value): Adjust.
11421 (die_type): Adjust.
11422 (die_containing_type): Adjust.
11423 (build_error_marker_type): Adjust.
11424 (lookup_die_type): Adjust.
11425 (guess_full_die_structure_name): Adjust.
11426 (anonymous_struct_prefix): Adjust.
11427 (determine_prefix): Adjust.
11428 (dwarf2_name): Adjust.
11429 (follow_die_ref_or_sig): Adjust.
11430 (follow_die_offset): Adjust.
11431 (follow_die_ref): Adjust.
11432 (follow_die_sig_1): Adjust.
11433 (follow_die_sig): Adjust.
11434 (get_signatured_type): Adjust.
11435 (get_DW_AT_signature_type): Adjust.
11436 (decode_locdesc): Adjust.
11437 (dwarf_decode_macros): Adjust.
11438 (cu_debug_loc_section): Adjust.
11439 (fill_in_loclist_baton): Adjust.
11440 (dwarf2_symbol_mark_computed): Adjust.
11441 (init_one_comp_unit): Don't assign
11442 dwarf2_cu::dwarf2_per_objfile.
11443 (set_die_type): Adjust.
11444
ed2dc618
SM
114452018-01-07 Simon Marchi <simon.marchi@ericsson.com>
11446
11447 * dwarf2read.c (struct mapped_debug_names): Add constructor.
11448 <dwarf2_per_objfile>: New field.
11449 (dwarf2_per_objfile): Remove global.
11450 (get_dwarf2_per_objfile): New function.
11451 (set_dwarf2_per_objfile): New function.
11452 (dwarf2_build_psymtabs_hard): Change objfile parameter to
11453 dwarf2_per_objfile.
11454 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
11455 (read_abbrev_offset): Likewise.
11456 (read_indirect_string): Likewise.
11457 (read_indirect_line_string): Likewise.
11458 (read_indirect_string_at_offset): Likewise.
11459 (read_indirect_string_from_dwz): Likewise.
11460 (dwarf2_find_containing_comp_unit): Change objfile parameter to
11461 dwarf2_per_objfile.
11462 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
11463 (create_all_comp_units): Change objfile parameter to
11464 dwarf2_per_objfile.
11465 (create_all_type_units): Likewise.
11466 (process_queue): Add dwarf2_per_objfile parameter.
11467 (read_and_check_comp_unit_head): Likewise.
11468 (lookup_dwo_unit_in_dwp): Likewise.
11469 (get_dwp_file): Likewise.
11470 (process_cu_includes): Likewise.
11471 (struct free_dwo_file_cleanup_data): New struct.
11472 (dwarf2_has_info): Use get_dwarf2_per_objfile and
11473 set_dwarf2_per_objfile.
11474 (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
11475 (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
11476 context, adjust calls.
11477 (dw2_instantiate_symtab): Likewise.
11478 (dw2_get_cutu): Add dwarf2_per_objfile parameter.
11479 (dw2_get_cu): Likewise.
11480 (create_cu_from_index_list): Change objfile parameter to
11481 dwarf2_per_objfile.
11482 (create_cus_from_index_list): Get dwarf2_per_objfile from
11483 context, adjust calls.
11484 (create_cus_from_index): Likewise.
11485 (create_signatured_type_table_from_index): Change objfile
11486 parameter to dwarf2_per_objfile.
11487 (create_signatured_type_table_from_debug_names): Change objfile
11488 parameter to dwarf2_per_objfile.
11489 (create_addrmap_from_index): Likewise.
11490 (create_addrmap_from_aranges): Likewise.
11491 (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
11492 (dw2_setup): Remove.
11493 (dw2_get_file_names_reader): Get dwarf2_per_objfile from
11494 context.
11495 (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
11496 get_dwarf2_per_objfile.
11497 (dw2_forget_cached_source_info): Likewise.
11498 (dw2_map_symtabs_matching_filename): Likewise.
11499 (struct dw2_symtab_iterator) <index>: Remove.
11500 <dwarf2_per_objfile>: New field.
11501 (dw2_symtab_iter_init): Replace index parameter with
11502 dwarf2_per_objfile.
11503 (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
11504 (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
11505 (dw2_print_stats): Likewise.
11506 (dw2_dump): Likewise.
11507 (dw2_expand_symtabs_for_function): Likewise.
11508 (dw2_expand_all_symtabs): Likewise.
11509 (dw2_expand_symtabs_with_fullname): Likewise.
11510 (dw2_expand_marked_cus): Replace index and objfile parameters
11511 with dwarf2_per_objfile.
11512 (dw_expand_symtabs_matching_file_matcher): Add
11513 dwarf2_per_objfile parameter and adjust calls.
11514 (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
11515 adjust calls.
11516 (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
11517 (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
11518 adjust calls.
11519 (create_cus_from_debug_names_list): Replace objfile parameter
11520 with dwarf2_per_objfile and adjust calls.
11521 (create_cus_from_debug_names): Likewise.
11522 (dwarf2_read_debug_names): Likewise.
11523 (mapped_debug_names::namei_to_name): Adjust call.
11524 (dw2_debug_names_iterator::next): Likewise.
11525 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
11526 (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
11527 (dw2_debug_names_dump): Likewise.
11528 (dw2_debug_names_expand_symtabs_for_function): Likewise.
11529 (dw2_debug_names_expand_symtabs_matching): Likewise.
11530 (dwarf2_initialize_objfile): Likewise.
11531 (dwarf2_build_psymtabs): Likewise.
11532 (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
11533 this_cu.
11534 (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
11535 (read_and_check_comp_unit_head): Likewise.
11536 (read_abbrev_offset): Likewise.
11537 (create_debug_type_hash_table): Likewise.
11538 (create_debug_types_hash_table): Likewise.
11539 (create_all_type_units): Replace objfile parameter with
11540 dwarf2_per_objfile.
11541 (add_type_unit): Add dwarf2_per_objfile parameter.
11542 (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
11543 with dwarf2_per_objfile.
11544 (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
11545 (lookup_dwp_signatured_type): Likewise.
11546 (lookup_signatured_type): Likewise.
11547 (read_cutu_die_from_dwo): Likewise.
11548 (init_tu_and_read_dwo_dies): Likewise.
11549 (init_cutu_and_read_dies): Likewise.
11550 (init_cutu_and_read_dies_no_follow): Likewise.
11551 (allocate_type_unit_groups_table): Add objfile parameter.
11552 (create_type_unit_group): Use dwarf2_per_objfile from cu.
11553 (get_type_unit_group): Likewise.
11554 (process_psymtab_comp_unit): Update call.
11555 (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
11556 (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
11557 (print_tu_stats): Likewise.
11558 (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
11559 in void* parameter.
11560 (build_type_psymtabs): Change objfile parameter to
11561 dwarf2_per_objfile.
11562 (process_skeletonless_type_unit): Use dwarf2_per_objfile
11563 passed in void* parameter.
11564 (process_skeletonless_type_units): Change objfile parameter to
11565 dwarf2_per_objfile.
11566 (set_partial_user): Likewise.
11567 (dwarf2_build_psymtabs_hard): Likewise.
11568 (read_comp_units_from_section): Likewise.
11569 (create_all_comp_units): Likewise.
11570 (scan_partial_symbols): Update calls.
11571 (add_partial_symbol): Likewise.
11572 (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
11573 (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
11574 (process_queue): Add dwarf2_per_objfile parameter.
11575 (get_compunit_symtab): Use dwarf2_per_objfile from cu.
11576 (compute_compunit_symtab_includes): Likewise.
11577 (process_cu_includes): Add dwarf2_per_objfile parameter.
11578 (process_full_comp_unit): Use dwarf2_per_objfile from cu.
11579 (process_full_type_unit): Likewise.
11580 (process_imported_unit_die): Update call.
11581 (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
11582 (read_file_scope): Likewise.
11583 (allocate_dwo_file_hash_table): Add objfile parameter.
11584 (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
11585 (create_cus_hash_table): Likewise.
11586 (create_dwp_hash_table): Likewise.
11587 (create_dwo_unit_in_dwp_v1): Likewise.
11588 (create_dwp_v2_section): Likewise.
11589 (create_dwo_unit_in_dwp_v2): Likewise.
11590 (lookup_dwo_unit_in_dwp): Likewise.
11591 (try_open_dwop_file): Likewise.
11592 (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
11593 (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
11594 cleanup to include a reference to dwarf2_per_objfile.
11595 (open_dwp_file): Add dwarf2_per_objfile parameter.
11596 (open_and_init_dwp_file): Likewise.
11597 (get_dwp_file): Likewise.
11598 (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
11599 (queue_and_load_all_dwo_tus): Update call.
11600 (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
11601 data.
11602 (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
11603 (dwarf2_ranges_process): Likewise.
11604 (dwarf2_get_pc_bounds): Likewise.
11605 (mark_common_block_symbol_computed): Likewise.
11606 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
11607 (dwarf2_read_abbrevs): Update call.
11608 (read_partial_die): Use dwarf2_per_objfile from cu.
11609 (find_partial_die): Likewise.
11610 (fixup_partial_die): Likewise.
11611 (read_attribute_value): Likewise.
11612 (read_indirect_string_at_offset_from): Add objfile parameter.
11613 (read_indirect_string_at_offset): Add dwarf2_per_objfile
11614 parameter.
11615 (read_indirect_string_from_dwz): Add objfile parameter.
11616 (read_indirect_string): Add objfile parameter.
11617 (read_addr_index_1): Add dwarf2_per_objfile parameter.
11618 (read_addr_index): Use dwarf2_per_objfile from cu.
11619 (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
11620 call dw2_setup.
11621 (read_str_index): Use dwarf2_per_objfile from cu.
11622 (get_debug_line_section): Likewise.
11623 (read_formatted_entries): Add dwarf2_per_objfile parameter.
11624 (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
11625 (new_symbol_full): Use dwarf2_per_objfile from cu.
11626 (build_error_marker_type): Likewise.
11627 (lookup_die_type): Likewise.
11628 (determine_prefix): Likewise.
11629 (follow_die_offset): Likewise.
11630 (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
11631 (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
11632 (dwarf2_fetch_die_type_sect_off): Likewise.
11633 (dwarf2_get_die_type): Likewise.
11634 (follow_die_sig_1): Use dwarf2_per_objfile from cu.
11635 (get_signatured_type): Likewise.
11636 (get_DW_AT_signature_type): Likewise.
11637 (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
11638 (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
11639 (cu_debug_loc_section): Likewise.
11640 (fill_in_loclist_baton): Likewise.
11641 (dwarf2_symbol_mark_computed): Likewise.
11642 (dwarf2_find_containing_comp_unit): Change objfile parameter to
11643 dwarf2_per_objfile.
11644 (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
11645 parameter.
11646 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
11647 (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
11648 (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
11649 (set_die_type): Use dwarf2_free_objfile from cu.
11650 (get_die_type_at_offset): Likewise.
11651 (dwarf2_per_objfile_free): Don't assign global variable.
11652 (debug_names) <constructor>: Add dwarf2_per_objfile
11653 parameter, update m_debugstrlookup construction.
11654 (debug_names::debug_str_lookup): Add dwarf2_per_objfile
11655 parameter.
11656 <m_dwarf2_per_objfile>: New field.
11657 <lookup>: Use m_dwarf2_per_objfile.
11658 (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
11659 (psyms_seen_size): Likewise.
11660 (write_gdbindex): Replace objfile parameter with
11661 dwarf2_per_objfile.
11662 (write_debug_names): Likewise.
11663 (write_psymtabs_to_index): Likewise.
11664 (save_gdb_index_command): Use get_dwarf2_per_objfile, update
11665 calls.
11666
e3b94546
SM
116672018-01-07 Simon Marchi <simon.marchi@ericsson.com>
11668
11669 * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
11670 <dwarf2_per_objfile>: New field.
11671 (struct dwarf2_per_cu_data) <objfile>: Remove.
11672 <dwarf2_per_objfile>: New field.
11673 (create_cu_from_index_list): Assign dwarf2_per_objfile instead
11674 of objfile.
11675 (create_signatured_type_table_from_index): Likewise.
11676 (create_debug_type_hash_table): Likewise.
11677 (fill_in_sig_entry_from_dwo_entry): Likewise.
11678 (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
11679 (create_type_unit_group): Assign dwarf2_per_objfile instead of
11680 objfile.
11681 (create_partial_symtab): Access objfile through
11682 dwarf2_per_objfile.
11683 (process_psymtab_comp_unit_reader): Likewise.
11684 (read_comp_units_from_section): Likewise.
11685 (scan_partial_symbols): Likewise.
11686 (add_partial_symbol): Likewise.
11687 (add_partial_subprogram): Likewise.
11688 (peek_die_abbrev): Likewise.
11689 (fixup_go_packaging): Likewise.
11690 (process_full_comp_unit): Likewise.
11691 (process_full_type_unit): Likewise.
11692 (process_imported_unit_die): Likewise.
11693 (dwarf2_compute_name): Likewise.
11694 (dwarf2_physname): Likewise.
11695 (read_import_statement): Likewise.
11696 (create_cus_hash_table): Assign dwarf2_physname instead of
11697 objfile.
11698 (read_func_scope): Access objfile through dwarf2_per_objfile.
11699 (read_lexical_block_scope): Likewise.
11700 (read_call_site_scope): Likewise.
11701 (read_variable): Likewise.
11702 (dwarf2_rnglists_process): Likewise.
11703 (dwarf2_ranges_process): Likewise.
11704 (dwarf2_ranges_read): Likewise.
11705 (dwarf2_record_block_ranges): Likewise.
11706 (dwarf2_add_field): Likewise.
11707 (dwarf2_add_member_fn): Likewise.
11708 (read_structure_type): Likewise.
11709 (process_structure_scope): Likewise.
11710 (read_enumeration_type): Likewise.
11711 (read_array_type): Likewise.
11712 (read_common_block): Likewise.
11713 (read_namespace_type): Likewise.
11714 (read_namespace): Likewise.
11715 (read_module_type): Likewise.
11716 (read_tag_pointer_type): Likewise.
11717 (read_tag_ptr_to_member_type): Likewise.
11718 (read_tag_string_type): Likewise.
11719 (read_subroutine_type): Likewise.
11720 (read_typedef): Likewise.
11721 (read_base_type): Likewise.
11722 (attr_to_dynamic_prop): Likewise.
11723 (read_subrange_type): Likewise.
11724 (read_unspecified_type): Likewise.
11725 (load_partial_dies): Likewise.
11726 (read_partial_die): Likewise.
11727 (find_partial_die): Likewise.
11728 (guess_partial_die_structure_name): Likewise.
11729 (fixup_partial_die): Likewise.
11730 (read_attribute_value): Likewise.
11731 (read_addr_index_from_leb128): Likewise.
11732 (dwarf2_read_addr_index): Likewise.
11733 (dwarf2_string_attr): Likewise.
11734 (lnp_state_machine::check_line_address): Likewise.
11735 (dwarf_decode_lines_1): Likewise.
11736 (dwarf_decode_lines): Likewise.
11737 (dwarf2_start_symtab): Likewise.
11738 (var_decode_location): Likewise.
11739 (new_symbol_full): Likewise.
11740 (dwarf2_const_value_data): Likewise.
11741 (dwarf2_const_value_attr): Likewise.
11742 (dwarf2_const_value): Likewise.
11743 (die_type): Likewise.
11744 (die_containing_type): Likewise.
11745 (lookup_die_type): Likewise.
11746 (guess_full_die_structure_name): Likewise.
11747 (anonymous_struct_prefix): Likewise.
11748 (dwarf2_name): Likewise.
11749 (follow_die_ref_or_sig): Likewise.
11750 (follow_die_offset): Likewise.
11751 (follow_die_ref): Likewise.
11752 (dwarf2_fetch_die_loc_sect_off): Likewise.
11753 (dwarf2_fetch_constant_bytes): Likewise.
11754 (dwarf2_fetch_die_type_sect_off): Likewise.
11755 (dwarf2_get_die_type): Likewise.
11756 (follow_die_sig): Likewise.
11757 (decode_locdesc): Likewise.
11758 (dwarf2_per_cu_objfile): Likewise.
11759 (dwarf2_per_cu_text_offset): Likewise.
11760 (init_one_comp_unit): Assign dwarf2_per_objfile instead of
11761 objfile.
11762 (set_die_type): Access objfile through
11763 dwarf2_per_objfile.
11764
b01ba14d
SM
117652018-01-07 Simon Marchi <simon.marchi@ericsson.com>
11766
11767 * valprint.c (converted_character_d): Remove typedef.
11768 (DEF_VEC_O (converted_character_d)): Remove.
11769 (count_next_character): Use std::vector.
11770 (print_converted_chars_to_obstack): Likewise.
11771 (generic_printstr): Likewise.
11772
4d0fdd9b
SM
117732018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
11774
11775 * xml-support.h (struct gdb_xml_value): Add constructor.
11776 <value>: Change type to unique_xmalloc_ptr.
11777 (gdb_xml_value_s): Remove typedef.
11778 (DEF_VEC_O (gdb_xml_value_s)): Remove.
11779 (gdb_xml_element_start_handler): Change parameter type to
11780 std::vector.
11781 (xml_find_attribute): Likewise.
11782 * xml-support.c (xml_find_attribute): Change parameter type to
11783 std::vector and adjust.
11784 (gdb_xml_values_cleanup): Remove.
11785 (gdb_xml_parser::start_element): Adjust to std::vector.
11786 (xinclude_start_include): Change paraeter type to std::vector
11787 and adjust.
11788 * btrace.c (check_xml_btrace_version): Likewise.
11789 (parse_xml_btrace_block): Likewise.
11790 (parse_xml_btrace_pt_config_cpu): Likewise.
11791 (parse_xml_btrace_pt): Likewise.
11792 (parse_xml_btrace_conf_bts): Likewise.
11793 (parse_xml_btrace_conf_pt): Likewise.
11794 * memory-map.c (memory_map_start_memory): Likewise.
11795 (memory_map_start_property): Likewise.
11796 * osdata.c (osdata_start_osdata): Likewise.
11797 (osdata_start_item): Likewise.
11798 (osdata_start_column): Likewise.
11799 * remote.c (start_thread): Likewise.
11800 * solib-aix.c (library_list_start_library): Likewise.
11801 (library_list_start_list): Likewise.
11802 * solib-svr4.c (library_list_start_library): Likewise.
11803 (svr4_library_list_start_list): Likewise.
11804 * solib-target.c (library_list_start_segment): Likewise.
11805 (library_list_start_section): Likewise.
11806 (library_list_start_library): Likewise.
11807 (library_list_start_list): Likewise.
11808 * tracepoint.c (traceframe_info_start_memory): Likewise.
11809 (traceframe_info_start_tvar): Likewise.
11810 * xml-syscall.c (syscall_start_syscall): Likewise.
11811 * xml-tdesc.c (tdesc_start_target): Likewise.
11812 (tdesc_start_feature): Likewise.
11813 (tdesc_start_reg): Likewise.
11814 (tdesc_start_union): Likewise.
11815 (tdesc_start_struct): Likewise.
11816 (tdesc_start_flags): Likewise.
11817 (tdesc_start_enum): Likewise.
11818 (tdesc_start_field): Likewise.
11819 (tdesc_start_enum_value): Likewise.
11820 (tdesc_start_vector): Likewise.
11821
f979c73f
SM
118222018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
11823
11824 * extension.h (struct xmethod_worker) <clone>: Remove.
11825 * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
11826 Remove.
11827 (python_xmethod_worker::clone): Remove.
11828 * valops.c (find_overload_match): Use std::move instead of
11829 clone.
11830
ba18742c
SM
118312018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
11832
11833 * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
11834 (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
11835 <free_xmethod_worker_data>: Remove.
11836 <get_matching_xmethod_workers>: Chance VEC to std::vector.
11837 <get_xmethod_arg_types>: Remove.
11838 <get_xmethod_result_type>: Remove.
11839 <invoke_xmethod>: Remove.
11840 * extension.c (new_xmethod_worker): Remove.
11841 (clone_xmethod_worker): Remove.
11842 (get_matching_xmethod_workers): Return void, pass std::vector by
11843 pointer.
11844 (get_xmethod_arg_types): Rename to...
11845 (xmethod_worker::get_arg_types): ... this, and adjust.
11846 (get_xmethod_result_type): Rename to...
11847 (xmethod_worker::get_result_type): ... this, and adjust.
11848 (invoke_xmethod): Remove.
11849 (free_xmethod_worker): Remove.
11850 (free_xmethod_worker_vec): Remove.
11851 * extension.h (enum ext_lang_rc): Move here from
11852 extension-priv.h.
11853 (struct xmethod_worker): Add constructor and destructor.
11854 <data>: Remove.
11855 <value>: Remove.
11856 <invoke, clone, do_get_result_type, do_get_arg_types>: New
11857 virtual pure methods.
11858 <get_arg_types, get_result_type>: New methods.
11859 (xmethod_worker_ptr): Remove typedef.
11860 (DEF_VEC_P (xmethod_worker_ptr)): Remove.
11861 (xmethod_worker_vec): Remove typedef.
11862 (xmethod_worker_up): New typedef.
11863 (invoke_xmethod): Remove.
11864 (clone_xmethod_worker): Remove.
11865 (free_xmethod_worker): Remove.
11866 (free_xmethod_worker_vec): Remove.
11867 (get_xmethod_arg_types): Remove.
11868 (get_xmethod_result_type): Remove.
11869 * valops.c (find_method_list): Use std::vector, don't use
11870 intermediate vector.
11871 (value_find_oload_method_list): Use std::vector.
11872 (find_overload_match): Use std::vector.
11873 (find_oload_champ): Use std::vector.
11874 * value.c (value_free): Use operator delete.
11875 (value_of_xmethod): Rename to...
11876 (value_from_xmethod): ... this. Don't assign
11877 xmethod_worker::value, take rvalue-reference.
11878 (result_type_of_xmethod): Adjust.
11879 (call_xmethod): Adjust.
11880 * value.h: Include extension.h.
11881 (struct xmethod_worker): Don't forward-declare.
11882 (value_of_xmethod): Rename to...
11883 (value_from_xmethod): ... this, take rvalue-reference.
11884 * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
11885 (struct python_xmethod_worker): ... this, add constructor and
11886 destructor.
11887 <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
11888 (gdbpy_free_xmethod_worker_data): Rename to...
11889 (python_xmethod_worker::~python_xmethod_worker): ... this and
11890 adjust.
11891 (gdbpy_clone_xmethod_worker_data): Rename to...
11892 (python_xmethod_worker::clone): ... this and adjust.
11893 (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
11894 temporary vector.
11895 (gdbpy_get_xmethod_arg_types): Rename to...
11896 (python_xmethod_worker::do_get_arg_types): ... this and adjust.
11897 (gdbpy_get_xmethod_result_type): Rename to...
11898 (python_xmethod_worker::do_get_result_type): ... this and
11899 adjust.
11900 (gdbpy_invoke_xmethod): Rename to...
11901 (python_xmethod_worker::invoke): ... this and adjust.
11902 (new_python_xmethod_worker): Rename to...
11903 (python_xmethod_worker::python_xmethod_worker): ... this and
11904 adjust.
11905 * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
11906 Remove.
11907 (gdbpy_free_xmethod_worker_data): Remove.
11908 (gdbpy_get_matching_xmethod_workers): Use std::vector.
11909 (gdbpy_get_xmethod_arg_types): Remove.
11910 (gdbpy_get_xmethod_result_type): Remove.
11911 (gdbpy_invoke_xmethod): Remove.
11912 * python/python.c (python_extension_ops): Remove obsolete
11913 callbacks.
11914
e379cee6
PA
119152018-01-05 Pedro Alves <palves@redhat.com>
11916
11917 PR gdb/18653
11918 * common/signals-state-save-restore.c
11919 (save_original_signals_state): New parameter 'quiet'. Warn if we
11920 find a custom handler preinstalled, instead of internal erroring.
11921 But only warn if !quiet.
11922 * common/signals-state-save-restore.h
11923 (save_original_signals_state): New parameter 'quiet'.
11924 * main.c (captured_main_1): Move save_original_signals_state call
11925 after option handling, and pass QUIET.
11926
a655456c
PA
119272018-01-05 Pedro Alves <palves@redhat.com>
11928
11929 * spu-tdep.c (spu_catch_start): Pass
11930 symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
11931
de63c46b
PA
119322018-01-05 Pedro Alves <palves@redhat.com>
11933
11934 PR gdb/22670
11935 * ada-lang.c (literal_symbol_name_matcher): New function.
11936 (ada_get_symbol_name_matcher): Use it for
11937 symbol_name_match_type::SEARCH_NAME.
11938 * block.c (block_lookup_symbol): New parameter 'match_type'. Pass
11939 it down instead of assuming symbol_name_match_type::FULL.
11940 * block.h (block_lookup_symbol): New parameter 'match_type'.
11941 * c-valprint.c (print_unpacked_pointer): Use
11942 lookup_symbol_search_name instead of lookup_symbol.
11943 * compile/compile-object-load.c (get_out_value_type): Pass down
11944 symbol_name_match_type::SEARCH_NAME.
11945 * cp-namespace.c (cp_basic_lookup_symbol): Pass down
11946 symbol_name_match_type::FULL.
11947 * cp-support.c (cp_get_symbol_name_matcher): Handle
11948 symbol_name_match_type::SEARCH_NAME.
11949 * infrun.c (insert_exception_resume_breakpoint): Use
11950 lookup_symbol_search_name.
11951 * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
11952 * psymtab.c (maintenance_check_psymtabs): Use
11953 symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
11954 * stack.c (print_frame_args): Use lookup_symbol_search_name and
11955 SYMBOL_SEARCH_NAME.
11956 * symtab.c (lookup_local_symbol): Don't demangle the lookup name
11957 if symbol_name_match_type::SEARCH_NAME.
11958 (lookup_symbol_in_language): Pass down
11959 symbol_name_match_type::FULL.
11960 (lookup_symbol_search_name): New.
11961 (lookup_language_this): Pass down
11962 symbol_name_match_type::SEARCH_NAME.
11963 (lookup_symbol_aux, lookup_local_symbol): New parameter
11964 'match_type'. Pass it down.
11965 * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
11966 (lookup_symbol_search_name): New declaration.
11967 (lookup_symbol_in_block): New 'match_type' parameter.
11968
f98fc17b
PA
119692018-01-05 Pedro Alves <palves@redhat.com>
11970
11971 PR gdb/22670
11972 * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
11973 ada_lookup_symbol.
11974 (ada_lookup_symbol): Reimplement in terms of
11975 ada_lookup_symbol_list, bits factored out from
11976 ada_lookup_encoded_symbol.
11977
342f8240
JB
119782018-01-05 Joel Brobecker <brobecker@adacore.com>
11979
11980 * ada-exp.y (write_object_renaming): When subscripting an array
11981 using a symbol as the index, pass the block in call to
11982 ada_lookup_encoded_symbol when looking that symbol up.
11983
7150d33c
JG
119842018-01-05 Jerome Guitton <guitton@adacore.com>
11985
11986 * ada-lang.c (ada_array_length): Use ada_index_type instead of
11987 TYPE_INDEX_TYPE.
11988
cc0e770c
JB
119892018-01-05 Joel Brobecker <brobecker@adacore.com>
11990
11991 * ada-lang.c (ada_to_fixed_value_create): Add handling of
11992 the case where VALUE_LVAL (val0) is not lval_memory.
11993
f79da888 119942018-01-05 Xavier Roirand <roirand@adacore.com>
e3861a03
XR
11995
11996 * ada-valprint.c (print_optional_low_bound): Handle
11997 character-indexed array printing like boolean-indexed array
11998 printing.
11999
cd385f94
JB
120002018-01-05 Joel Brobecker <brobecker@adacore.com>
12001
12002 * NEWS: Create a new section for the next release branch.
12003 Rename the section of the current branch, now that it has
12004 been cut.
12005
09aca949
JB
120062018-01-05 Joel Brobecker <brobecker@adacore.com>
12007
12008 GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
12009 * version.in: Bump version to 8.1.50.DATE-git.
12010
9f757bf7
XR
120112018-01-03 Xavier Roirand <roirand@adacore.com>
12012
12013 * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
12014 Add field.
12015 * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
12016 Add field.
12017 (default_exception_support_info) <catch_handlers_sym>: Add field.
12018 (exception_support_info_fallback) <catch_handlers_sym>: Add field.
12019 (ada_exception_name_addr_1): Add "catch handlers" handling.
12020 (ada_exception_catchpoint_cond_string) <ex>: New parameter.
12021 Update all callers.
12022 (create_excep_cond_exprs) <ex>: Add parameter.
12023 (re_set_exception): Update create_excep_cond_exprs call.
12024 (print_it_exception, print_one_exception, print_mention_exception)
12025 (print_recreate_exception): Add "catch handler" handling.
12026 (allocate_location_catch_handlers, re_set_catch_handlers)
12027 (check_status_catch_handlers, print_it_catch_handlers)
12028 (print_one_catch_handlers, print_mention_catch_handlers)
12029 (print_recreate_catch_handlers): New function.
12030 (catch_handlers_breakpoint_ops): New variable.
12031 (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
12032 Add parameter. Add "catch handler" handling.
12033 (ada_exception_sym_name, ada_exception_breakpoint_ops):
12034 Add "catch handler" handling.
12035 (ada_exception_catchpoint_cond_string): Add "catch handler"
12036 handling.
12037 (create_ada_exception_catchpoint): Update create_excep_cond_exprs
12038 call.
12039 (catch_ada_handlers_command): New function.
12040 (initialize_ada_catchpoint_ops): Initialize "catch handlers"
12041 operations structure.
12042 (_initialize_ada_language): Add "catch handlers" command entry.
12043 * NEWS: Document "catch handlers" feature.
12044
9fe561ab
JB
120452018-01-02 Joel Brobecker <brobecker@adacore.com>
12046
12047 * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
12048 account when creating the array type of the slice.
12049 (ada_value_slice): Likewise.
12050
a405673c
JB
120512018-01-02 Joel Brobecker <brobecker@adacore.com>
12052
12053 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
12054 New enum value.
12055 (create_array_type_with_stride): Add byte_stride_prop parameter.
12056 * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
12057 New parameter. Update all callers in this file.
12058 (array_type_has_dynamic_stride): New function.
12059 (is_dynamic_type_internal, resolve_dynamic_array): Add handling
12060 of arrays with dynamic byte strides.
12061 * dwarf2read.c (read_array_type): Add support for dynamic
12062 DW_AT_byte_stride attributes.
12063
74a2f8ff
JB
120642018-01-02 Joel Brobecker <brobecker@adacore.com>
12065
12066 * dwarf2read.c (read_unspecified_type): Treat
12067 DW_TAG_enumeration_type DIEs from Ada units as stubs.
12068
e2882c85
JB
120692018-01-01 Joel Brobecker <brobecker@adacore.com>
12070
12071 Update copyright year range in all GDB files.
12072
1690bb24
JB
120732018-01-01 Joel Brobecker <brobecker@adacore.com>
12074
12075 * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
12076 and gdb/testsuite/gdb.base/step-line.c.
12077
0f0c98a8
JB
120782018-01-01 Joel Brobecker <brobecker@adacore.com>
12079
12080 * copyright.py (main): Dump the contents of
12081 MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
12082 even if BY_HAND is empty.
12083
82e1e79a
JB
120842018-01-01 Joel Brobecker <brobecker@adacore.com>
12085
12086 * top.c (print_gdb_version): Update Copyright year in version
12087 message.
12088
053f54e5 120892018-01-01 Joel Brobecker <brobecker@adacore.com>
47fea877 12090
053f54e5 12091 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
47fea877 12092
053f54e5 12093For older changes see ChangeLog-2017.
c906108c
SS
12094\f
12095Local Variables:
12096mode: change-log
12097left-margin: 8
12098fill-column: 74
12099version-control: never
57da7796 12100coding: utf-8
c906108c 12101End:
This page took 3.607993 seconds and 4 git commands to generate.