Automatic date update in version.in
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
c645cda4
SM
12018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
2
3 * ada-tasks.c (ada_task_info_s): Remove typedef.
4 (DEF_VEC_O(ada_task_info_s)): Remove.
5 (struct ada_tasks_inferior_data): Initialize fields.
6 <task_list>: Make an std::vector.
7 (get_ada_tasks_inferior_data): Allocate with new.
8 (ada_get_task_number): Adjust.
9 (get_task_number_from_id): Likewise.
10 (valid_task_id): Likewise.
11 (ada_get_task_info_from_ptid): Likewise.
12 (iterate_over_live_ada_tasks): Likewise.
13 (add_ada_task): Likewise.
14 (read_known_tasks): Likewise.
15 (ada_build_task_list): Likewise.
16 (print_ada_task_info): Likewise.
17 (info_task): Likewise.
18 (task_command_1): Likewise.
19
39e7af3e
SM
202018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
21
22 * ada-lang.c (add_angle_brackets): Return std::string.
23
bbbbbcee
SM
242018-08-25 Simon Marchi <simon.marchi@polymtl.ca>
25
26 * python/py-threadevent.c (py_get_event_thread): Initialize
27 pythread.
28
d98fc15b
PA
292018-08-24 Pedro Alves <palves@redhat.com>
30
31 * python/py-bpevent.c (create_breakpoint_event_object): Use
32 copy-initialization.
33 * python/py-continueevent.c (emit_continue_event): Use
34 copy-initialization.
35 * python/py-exitedevent.c (create_exited_event_object): Return a
36 gdbpy_ref<>.
37 (emit_exited_event): Use copy-initialization.
38 * python/py-inferior.c (python_new_inferior)
39 (python_inferior_deleted, add_thread_object): Use
40 copy-initialization.
41 * python/py-infevents.c (create_inferior_call_event_object)
42 (create_register_changed_event_object)
43 (create_memory_changed_event_object): Return a gdbpy_ref<>.
44 (emit_inferior_call_event, emit_memory_changed_event)
45 (emit_register_changed_event): Use copy-initialization.
46 * python/py-newobjfileevent.c (create_new_objfile_event_object):
47 Return a gdbpy_ref<>.
48 (emit_new_objfile_event): Use copy-initialization.
49 (create_clear_objfiles_event_object): Return a gdbpy_ref<>.
50 (emit_clear_objfiles_event): Use copy-initialization.
51 * python/py-signalevent.c (create_signal_event_object): Use
52 copy-initialization.
53 * python/py-threadevent.c (create_thread_event_object): Use
54 copy-initialization.
55
da3c8738
PA
562018-08-24 Pedro Alves <palves@redhat.com>
57 Simon Marchi <simon.marchi@ericsson.com>
58
59 PR gdb/23379
60 * python/py-continueevent.c: Include "gdbthread.h".
61 (create_continue_event_object): Add intro comment. Add 'ptid'
62 parameter. Use it to find thread to pass to
63 create_thread_event_object.
64 (emit_continue_event): Pass PTID down to
65 create_continue_event_object.
66 * python/py-event.h (py_get_event_thread): Declare.
67 (create_thread_event_object): Remove default from 'thread'
68 parameter.
69 * python/py-stopevent.c (create_stop_event_object): Use
70 py_get_event_thread.
71 * python/py-threadevent.c (get_event_thread): Rename to ...
72 (py_get_event_thread): ... this, make extern, add 'ptid' parameter
73 and use it to find the thread.
74 (create_thread_event_object): Assert that THREAD isn't null.
75 Don't find the event thread here.
76
26457a9c
KB
772018-08-23 Kevin Buettner <kevinb@redhat.com>
78
79 * block.h (blockrange, blockranges): New struct declarations.
80 (struct block): Add new field named `ranges'.
81 (BLOCK_RANGES, BLOCK_NRANGES, BLOCK_RANGE, BLOCK_CONTIGUOUS_P)
82 (BLOCK_RANGE_START, BLOCK_RANGE_END, BLOCK_ENTRY_PC): New
83 macros for accessing ranges in struct block.
84 (make_blockranges): New declaration.
85 block.c (make_blockranges): New function.
2d5f09ec
KB
86 * dwarf2read.c (dwarf2_record_block_ranges): Fill in BLOCK_RANGES
87 for block.
fc811edd
KB
88 * symtab.h (find_pc_partial_function): Add new parameter `block'.
89 * blockframe.c (cache_pc_function_block): New static global.
90 (clear_pc_function_cache): Clear cache_pc_function_block.
91 (find_pc_partial_function): Move comment to symtab.h. Add
92 support for non-contiguous blocks.
e9480230
KB
93 * cli/cli-cmds.c (block.h): Include.
94 (print_disassembly): Handle printing of non-contiguous blocks.
95 (disassemble_current_function): Likewise.
96 (disassemble_command): Likewise.
26457a9c 97
2b1ffcfd
KB
98 * ax-gdb.c (gen_var_ref): Use BLOCK_ENTRY_PC in place of
99 BLOCK_START.
100 * blockframe.c (get_pc_function_start): Likewise.
101 * compile/compile-c-symbols.c (convert_one_symbol): Likewise.
102 (gcc_symbol_address): Likewise.
103 * compile/compile-object-run.c (compile_object_run): Likewise.
104 * compile/compile.c (get_expr_block_and_pc): Likewise.
105 * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
106 (func_addr_to_tail_call_list): Likewise.
107 * findvar.c (default_read_var_value): Likewise.
108 * inline-frame.c (inline_frame_this_id): Likewise.
109 (skip-inline_frames): Likewise.
110 * infcmd.c (until_next_command): Likewise.
111 * linespec.c (convert_linespec_to_sals): Likewise.
112 * parse.c (parse_exp_in_context_1): Likewise.
113 * printcmd.c (build_address_symbolic): likewise.
114 (info_address_command): Likewise.
115 symtab.c (find_function_start_sal): Likewise.
116 (skip_prologue_sal): Likewise.
117 (find_function_alias_target): Likewise.
118 (find_gnu_ifunc): Likewise.
119 * stack.c (find_frame_funname): Likewise.
120 * symtab.c (fixup_symbol_section): Likewise.
121 (find_function_start_sal): Likewise.
122 (skip_prologue_sal): Likewsie.
123 (find_function_alias_target): Likewise.
124 (find_gnu_ifunc): Likewise.
125 * tracepoint.c (info_scope_command): Likewise.
126 * value.c (value_fn_field): Likewise.
127
9644dc3a
KB
128 * infrun.c (fill_in_stop_func): Use find_function_entry_range_from_pc
129 in place of find_pc_partial_function.
130 * blockframe.c (find_function_entry_range_from_pc): New function.
131 * symtab.h (find_function_entry_range_from_pc): Declare and document.
132 * objfiles.c (objfile_relocate1): Relocate start and end addresses
133 for each range in a block.
134
135
12a0d0f6
XR
1362018-08-23 Xavier Roirand <roirand@adacore.com>
137
138 * machoread.c (macho_symfile_read_all_oso): Remove uneeded
139 incrementation.
140
d1012b8e
SM
1412018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
142
143 * solib-svr4.c (read_program_headers_from_bfd): Return
144 gdb::optional<gdb::byte_vector>.
145 (svr4_exec_displacement): Adjust.
146
17658d46
SM
1472018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
148
149 * solib-svr4.c (read_program_header): Return
150 gdb::optional<gdb::byte_vector>, remove p_sect_size param.
151 (find_program_interpreter): Return
152 gdb::optional<gdb::byte_vector>.
153 (scan_dyntag_auxv): Adjust.
154 (enable_break): Adjust.
155 (svr4_exec_displacement): Adjust.
156
ae739fe7
SM
1572018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
158
159 * inf-child.h (inf_child_target) <terminal_save_inferior>: New.
160 * inf-child.c (inf_child_target::terminal_save_inferior): New.
161
467dc1e2
SM
1622018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
163
164 * guile/scm-string.c (gdbscm_scm_from_printf): Use
165 string_vprintf.
166 * guile/scm-utils.c (gdbscm_printf): Likewise.
167 * serial.c (serial_printf): Likewise.
168 * xml-support.c (gdb_xml_parser::vdebug): Likewise.
169
6d52907e
JV
1702018-08-22 Jan Vrany <jan.vrany@fit.cvut.cz>
171
172 * stack.c (print_frame): Print frame architecture when printing on
173 an MI output.
174 * NEWS: Mention new "arch" attribute in frame output.
175
9758a8f8
AH
1762018-08-21 Alan Hayward <alan.hayward@arm.com>
177
178 * arch/aarch64.h (aarch64_regnum): Update comment.
179
1461bdac
AH
1802018-08-21 Alan Hayward <alan.hayward@arm.com>
181
182 * NEWS: Add SVE to 8.2 section.
183
4895f384
PA
1842018-08-21 Pedro Alves <palves@redhat.com>
185
186 * guile/scm-utils.c (gdbscm_parse_function_args_1): New, factored
187 out from gdbscm_parse_function_args.
188 (gdbscm_parse_function_args): Rework to use gdbscm_wrap and
189 gdbscm_parse_function_args_1.
190
a4497d2f
SM
1912018-08-21 Simon Marchi <simon.marchi@ericsson.com>
192
193 PR gdb/17816
194 * m32c-tdep.c (m32c_decode_srcdest4): Remove unnecessary ternary
195 operator.
196
c44deb73
SM
1972018-08-19 Simon Marchi <simon.marchi@polymtl.ca>
198
199 * solib-svr4.c (svr4_exec_displacement): Fix formatting.
200
be2d111a
MS
2012018-08-19 Michael Spang <spang@google.com>
202
203 PR gdb/11786
204 * solib-svr4.c (svr4_exec_displacement): Ignore memsz fields
205 for PT_TLS segments.
206
a6b786da
KB
2072018-08-18 Kevin Buettner <kevinb@redhat.com>
208
209 * dwarf2expr.h (struct dwarf_expr_context): Add virtual method
210 dwarf_variable_value.
211 * dwarf2-frame.c (class dwarf_expr_executor):
212 Add override for dwarf_variable_value.
213 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Likewise.
214 (class symbol_needs_eval_context): Likewise.
215 (indirect_synthetic_pointer): Add forward declaration.
216 (sect_variable_value): New function.
217 (dwarf2_compile_expr_to_ax): Add case for DW_OP_GNU_variable_value.
218 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Add case
219 for DW_OP_GNU_variable_value.
220
89fbedf3
TT
2212018-08-16 Tom Tromey <tom@tromey.com>
222
223 * top.c (read_command_file): Update.
224 (command_line_input): Remove "repeat" argument.
225 * ada-lang.c (get_selections): Update.
226 * linespec.c (decode_line_2): Update.
227 * defs.h (command_line_input): Remove argument.
228 * cli/cli-script.c (read_next_line): Update.
229 * python/py-gdb-readline.c: Update.
230
12582533
TT
2312018-08-17 Tom Tromey <tom@tromey.com>
232
233 * cli/cli-script.c (read_next_line): Pass 0 as repeat argument to
234 command_line_input.
235
49514353
TT
2362018-08-15 Tom Tromey <tom@tromey.com>
237
238 * aarch64-linux-tdep.c (aarch64_linux_core_read_vq): Use pulongest.
239
26fb3983
JV
2402018-08-14 Jan Vrany <jan.vrany@fit.cvut.cz>
241
242 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Add -a option.
243 If used, use find_pc_partial_function to find address range
244 to disassemble.
245 * mi/mi-main.c (mi_cmd_list_features): Report
246 "data-disassemble-a-option" feature.
247 * NEWS: Mention new -data-disassemble option -a.
248
a97b53dd
TT
2492018-08-13 Tom Tromey <tom@tromey.com>
250
251 * common/common-defs.h (_FORTIFY_SOURCE): Define.
252
0c76e06d
AH
2532018-08-13 Alan Hayward <alan.hayward@arm.com>
254
255 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): New function.
256 (aarch64_linux_collect_sve_regset): Likewise.
257 (aarch64_linux_iterate_over_regset_sections): Check for SVE.
258 * regcache.h (regcache_map_entry_size): New function.
259
b7fd65b9
AH
2602018-08-13 Alan Hayward <alan.hayward@arm.com>
261
262 * aarch64-linux-tdep.c (SVE_HEADER_SIZE_LENGTH): Add define.
263 (SVE_HEADER_MAX_SIZE_LENGTH): Likewise.
264 (SVE_HEADER_VL_LENGTH): Likewise.
265 (SVE_HEADER_MAX_VL_LENGTH): Likewise.
266 (SVE_HEADER_FLAGS_LENGTH): Likewise.
267 (SVE_HEADER_RESERVED_LENGTH): Likewise.
268 (SVE_HEADER_SIZE_OFFSET): Likewise.
269 (SVE_HEADER_MAX_SIZE_OFFSET): Likewise.
270 (SVE_HEADER_VL_OFFSET): Likewise.
271 (SVE_HEADER_MAX_VL_OFFSET): Likewise.
272 (SVE_HEADER_FLAGS_OFFSET): Likewise.
273 (SVE_HEADER_RESERVED_OFFSET): Likewise.
274 (SVE_HEADER_SIZE): Likewise.
275 (aarch64_linux_core_read_vq): Add function.
276 (aarch64_linux_core_read_description): Check for SVE section.
277
a616bb94
AH
2782018-08-13 Alan Hayward <alan.hayward@arm.com>
279
280 * aarch64-fbsd-tdep.c
281 (aarch64_fbsd_iterate_over_regset_sections): Add supply_size and
282 collect_size.
283 * aarch64-linux-tdep.c
284 (aarch64_linux_iterate_over_regset_sections): Likewise.
285 * alpha-linux-tdep.c
286 (alpha_linux_iterate_over_regset_sections):
287 * alpha-nbsd-tdep.c
288 (alphanbsd_iterate_over_regset_sections): Likewise.
289 * amd64-fbsd-tdep.c
290 (amd64fbsd_iterate_over_regset_sections): Likewise.
291 * amd64-linux-tdep.c
292 (amd64_linux_iterate_over_regset_sections): Likewise.
293 * arm-bsd-tdep.c
294 (armbsd_iterate_over_regset_sections): Likewise.
295 * arm-fbsd-tdep.c
296 (arm_fbsd_iterate_over_regset_sections): Likewise.
297 * arm-linux-tdep.c
298 (arm_linux_iterate_over_regset_sections): Likewise.
299 * corelow.c (get_core_registers_cb): Likewise.
300 (core_target::fetch_registers): Likewise.
301 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
302 * frv-linux-tdep.c (frv_linux_iterate_over_regset_sections): Likewise.
303 * gdbarch.h (void): Regenerate.
304 * gdbarch.sh: Add supply_size and collect_size.
305 * hppa-linux-tdep.c (hppa_linux_iterate_over_regset_sections): Likewise.
306 * hppa-nbsd-tdep.c (hppanbsd_iterate_over_regset_sections): Likewise.
307 * hppa-obsd-tdep.c (hppaobsd_iterate_over_regset_sections): Likewise.
308 * i386-fbsd-tdep.c (i386fbsd_iterate_over_regset_sections): Likewise.
309 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections): Likewise.
310 * i386-tdep.c (i386_iterate_over_regset_sections): Likewise.
311 * ia64-linux-tdep.c (ia64_linux_iterate_over_regset_sections): Likewise.
312 * linux-tdep.c (linux_collect_regset_section_cb): Likewise.
313 * m32r-linux-tdep.c (m32r_linux_iterate_over_regset_sections): Likewise.
314 * m68k-bsd-tdep.c (m68kbsd_iterate_over_regset_sections): Likewise.
315 * m68k-linux-tdep.c (m68k_linux_iterate_over_regset_sections): Likewise.
316 * mips-fbsd-tdep.c (mips_fbsd_iterate_over_regset_sections): Likewise.
317 * mips-linux-tdep.c (mips_linux_iterate_over_regset_sections): Likewise.
318 * mips-nbsd-tdep.c (mipsnbsd_iterate_over_regset_sections): Likewise.
319 * mips64-obsd-tdep.c (mips64obsd_iterate_over_regset_sections): Likewise.
320 * mn10300-linux-tdep.c (am33_iterate_over_regset_sections): Likewise.
321 * nios2-linux-tdep.c (nios2_iterate_over_regset_sections): Likewise.
322 * ppc-fbsd-tdep.c (ppcfbsd_iterate_over_regset_sections): Likewise.
323 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections): Likewise.
324 * ppc-nbsd-tdep.c (ppcnbsd_iterate_over_regset_sections): Likewise.
325 * ppc-obsd-tdep.c (ppcobsd_iterate_over_regset_sections): Likewise.
326 * riscv-linux-tdep.c (riscv_linux_iterate_over_regset_sections): Likewise.
327 * rs6000-aix-tdep.c (rs6000_aix_iterate_over_regset_sections): Likewise.
328 * s390-linux-tdep.c (s390_iterate_over_regset_sections): Likewise.
329 * score-tdep.c (score7_linux_iterate_over_regset_sections): Likewise.
330 * sh-tdep.c (sh_iterate_over_regset_sections): Likewise.
331 * sparc-tdep.c (sparc_iterate_over_regset_sections): Likewise.
332 * tilegx-linux-tdep.c (tilegx_iterate_over_regset_sections): Likewise.
333 * vax-tdep.c (vax_iterate_over_regset_sections): Likewise.
334 * xtensa-tdep.c (xtensa_iterate_over_regset_sections): Likewise.
335
a9925d4f
SM
3362018-08-10 Simon Marchi <simon.marchi@ericsson.com>
337
338 * nat/linux-osdata.c (commandline_from_pid): Replace xstrprintf
339 with string_printf.
340
ad3a68e9
KS
3412018-08-10 Keith Seitz <keiths@redhat.com>
342
343 * compile/compile-c-support.c (add_code_header, add_code_footer):
344 Move into policy class.
345 (c_push_user_expression, pop_user_expression_nop)
346 (c_add_code_header, c_add_code_footer, c_add_input): New policy class.
347 (compile_program): New host class.
348 (c_compile_program): New typedef.
349 (c_compute_porgram): Use c_compile_program.
350
0cfbf430
KS
3512018-08-10 Keith Seitz <keiths@redhat.com>
352
353 * compile/compile-internal.h (compile_instance::~compile_instance):
354 Remove calls to htab_delete.
355 <m_type_map, m_symbol_err_map>: Switch type to htab_up.
356 * compile.c (compile_instance::compile_instance): Initialize
357 htab unique pointers.
358 (compile_instance::get_cached_type, compile_instance::insert_type)
359 (compile_instance::error_symbol_once): Update for unique_ptr.
360
946d3d10
KS
3612018-08-10 Keith Seitz <keiths@redhat.com>
362
363 * compile/compile-c-symbols.c (struct symbol_error)
364 (hash_symbol_error, eq_symbol_error, del_symbol_error)
365 (compile_instance::insert_symbol_error)
366 (compile_instance::error_symbol_once): Move to ...
367 * compile/compile.c: ... here.
368
9cdfd9a2
KS
3692018-08-10 Keith Seitz <keiths@redhat.com>
370
371 * compile/compile-c-support.c (c_get_compile_context): Use `new'
372 instead of `new_compile_instance'.
373 * compile/compile-c-symbols.c (compile_instance::insert_symbol_error):
374 Update description.
375 If the symbol error map is not initialized, create it.
376 (generate_c_for_for_one_symbol): Do not check/initialize
377 the symbol error map.
378 * compile/compile-c-types.c (compile_c_instance): Make a class.
379 Update all callers.
380 (compile_instance::compile_instance): Initialize the type cache.
381 (get_cached_type): New function.
382 (insert_type): Update description.
383 (compile_c_instance::m_default_cflags): Define.
384 (convert_type): Update description. Use get_cached_type.
385 (delete_instance): Moved to destructor.
386 (new_compile_instance): Moved to constructor.
387 * compile/compile-c.h (compile_c_instance): Make class inheriting
388 from compile_instance.
389 <base>: Remove field.
390 <type_map, symbol_err_map>: Move to base class.
391 <c_plugin>: Rename to `m_plugin' and remove pointer type.
392 * compile/compile-internal.h (compile_instance): Make class.
393 <type_map_t, symbol_err_map_t>: Define.
394 <fe>: Rename to `m_gcc_fe'.
395 <scope, block, gcc_target_options>: Add `m_' prefix.
396 <m_type_map, m_symbol_err_map>: New fields, moved from
397 compile_c_instance.
398 <destroy>: Remove.
399 (convert_type, new_compile_instance): Remove.
400 * compile/compile.c (cleanup_compile_instance): Remove.
401 (compile_to_object): Use unique_ptr to eliminate cleanups.
402 (compile_instance::set_print_callback, compile_instance::version)
403 (compile_instance::set_verbose)
404 (compile_instance::set_driver_filename)
405 (compile_instance::set_triplet_regexp)
406 (compile_instance::set_arguments)
407 (compile_instance::set_source_file)
408 (compile_instance::compile): Define.
409
18cdc6d8
KS
4102018-08-10 Keith Seitz <keiths@redhat.com>
411
412 * Makefile.in (HFILES_NO_SRCDIR): Add compile/gcc-c-plugin.h.
413 * compile/compile-c-types.c: Define GCC_METHODN macros and include
414 gcc-c-fe.def to define C plugin.
415 (delete_instance): Delete `c_plugin'.
416 (new_compile_instance): Initialize `c_plugin'.
417 * compile/compile-c.h: Include gcc_c_plugin.h.
418 (struct compile_c_instance) <c_plugin>: New member.
419 * gcc-c-plugin.h: New file.
420 Update all callers with API change.
421
b7dc48b4
KS
4222018-08-10 Keith Seitz <keiths@redhat.com>
423
424 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Move header files ...
425 (HFILES_NO_SRCDIR): ... to here.
426 Add compile-internal.h and compile-c.h.
427 * compile/compile-c-support.c: Include compile-c.h.
428 * compile/compile-c-symbols.c: Include compile-c.h.
429 (generate_c_for_variable_locations): Update comment.
430 * compile/compile-c-types.c: Include compile-c.h.
431 * compile/compile-c.h: New file -- moved C language declarations
432 from other files here.
433 * compile/compile-internal.h: Do not include hashtab.h or
434 common/enum-flags.h.
435 (gcc_qualifiers_flags, struct compile_c_instance, C_CTX)
436 (gcc_convert_symbol, gcc_symbol_address)
437 (generate_c_for_variable_locations, c_get_mode_for_size)
438 (c_get_range_decl_name): Definitions moved to compile-c.h.
439 * compile/compile-loc2c.c: Include compile-c.h.
440
6f36b6d2
KS
4412018-08-10 Keith Seitz <keiths@redhat.com>
442
443 * compile/compile-c-symbols.c (symbol_substitution_name): Rename to ...
444 (c_symbol_substitution_name): ... this.
445 Update all callers.
446
bd923e51
KS
4472018-08-10 Keith Seitz <keiths@redhat.com>
448
449 * compile/compile-c-support.c (c_compute_program): Use
450 unique_xmalloc_ptr to eliminate cleanup.
451 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
452 Return a unique_xmalloc_ptr and eliminate cleanup.
453 * compile/compile-internal.h (generate_c_for_variable_locations):
454 Return unique_xmalloc_ptr and update description.
455
dbd534fe
AH
4562018-08-10 Alan Hayward <alan.hayward@arm.com>
457
458 * corelow.c (core_target::get_core_register_section): Rename
459 min_size to section_min_size.
460
90ad3654
JW
4612018-08-09 Jim Wilson <jimw@sifive.com>
462
52a187f8
JW
463 * Makefile.in (ALL_TARGET_OBS): Add riscv-linux-tdep.c.
464 (ALLDEPFILES): Add riscv-linux-nat.c, and riscv-linux-tdep.c.
465 * NEWS: Mention new GNU/Linux RISC-V target.
466 * configure.host: Add riscv*-*-linux*.
467 * configure.nat: Add riscv*.
468 * configure.tgt: Add riscv*-*-linux*.
3c77f97e 469 * riscv-linux-nat.c: New file.
90ad3654
JW
470 * riscv-linux-tdep.c: New file.
471
aff4e175
AB
4722018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
473
474 * infrun.c (resume): Make static, add forward declaration.
475 (proceed): Update header comment.
476 * infrun.h (resume): Delete declaration.
477
06ab9219
TT
4782018-08-09 Tom Tromey <tom@tromey.com>
479
480 * riscv-tdep.h: Minor formatting fixes.
481
83c8d318
SM
4822018-08-09 Simon Marchi <simon.marchi@ericsson.com>
483
484 * common/scoped_mmap.c (mmap_file): Silence ARI warning.
485 * dwarf-index-cache.c (create_dir_and_check): Likewise.
486 (test_mkdir_recursive): Likewise.
487 * dwarf-index-write.c (write_psymtabs_to_index): Likewise.
488
5ff2bbae
AB
4892018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
490
491 * valarith.c (value_subscripted_rvalue): If an array is not in
492 memory, and we don't know the upper bound, then we can't know that
493 the requested element exists or not.
494
fdbac7d8
SM
4952018-08-08 Simon Marchi <simon.marchi@ericsson.com>
496
497 * target.c (str_comma_list_concat_elem): Fix typo in comment.
498 (target_options_to_string): Add comment.
499
83202f7a
TT
5002018-08-08 Tom Tromey <tom@tromey.com>
501
502 * unittests/scoped_mmap-selftests.c: Check result of "write".
503
411baa47
JW
5042018-08-08 Jim Wilson <jimw@sifive.com>
505
5c720ed8
JW
506 * riscv-tdep.c (enum opcode): Add jump, branch, lr, and sc opcodes.
507 (decode_register_index_short): New.
508 (decode_j_type_insn, decode_cj_type_insn): New.
509 (decode_b_type_insn, decode_cb_type_insn): New.
510 (riscv_insn::decode): Add support for jumps, branches, lr, and sc. New
511 local xlen. Check xlen when decoding ambiguous compressed insns. In
512 compressed decode, use is_c_lui_insn instead of is_lui_insn, and
513 is_c_sw_insn instead of is_sw_insn.
514 (riscv_next_pc, riscv_next_pc_atomic_sequence): New.
515 (riscv_software_single_step): New.
516 * riscv-tdep.h (riscv_software_single_step): Declare.
517
411baa47
JW
518 * riscv-tdep.c (riscv_isa_xlen): Drop static.
519 * riscv-tdep.h (riscv_isa_xlen): Add extern declaration.
520
9d4a934c
AB
5212018-08-08 Andrew Burgess <andrew.burgess@embecosm.com>
522
523 PR gdb/18050:
524 * target.c (dispose_inferior): Don't dispose of inferiors that are
525 already killed.
526
ff36536c
SN
5272018-08-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
528
529 * remote.c (remote_target::download_tracepoint): Change char* to
530 const char*.
531
09ce46f2
SM
5322018-08-07 Simon Marchi <simon.marchi@polymtl.ca>
533
534 * target.h (target_options_to_string): Return an std::string.
535 * target.c (str_comma_list_concat_elem): Return void, use
536 std::string.
537 (do_option): Likewise.
538 (target_options_to_string): Return an std::string.
539 * linux-nat.c (linux_nat_target::wait): Adjust.
540 * target-debug.h (target_debug_print_options): Adjust.
541
9c612964
TT
5422018-08-07 Tom Tromey <tom@tromey.com>
543
544 * Makefile.in (CPPFLAGS): New variable.
545 (INTERNAL_CPPFLAGS): Use it.
546
7d11235d
SM
5472018-08-07 Simon Marchi <simon.marchi@ericsson.com>
548
549 * NEWS: Mention the index cache.
550
87d6a7aa
SM
5512018-08-07 Simon Marchi <simon.marchi@ericsson.com>
552
553 * common/pathstuff.h (get_standard_cache_dir): New.
554 * common/pathstuff.c (get_standard_cache_dir): New.
555 * build-id.h (build_id_to_string): New.
556 * dwarf-index-common.h (INDEX4_SUFFIX, INDEX5_SUFFIX,
557 DEBUG_STR_SUFFIX): Move to here.
558 * dwarf-index-write.c (INDEX4_SUFFIX, INDEX5_SUFFIX,
559 DEBUG_STR_SUFFIX): Move from there.
560 (write_psymtabs_to_index): Make non-static, add basename
561 parameter. Write to temporary files, rename when done.
562 (save_gdb_index_command): Adjust call to
563 write_psymtabs_to_index.
564 * dwarf2read.h (dwarf2_per_objfile) <index_cache_res>: New
565 field.
566 * dwarf2read.c (dwz_file) <index_cache_res>: New field.
567 (get_gdb_index_contents_from_cache): New.
568 (get_gdb_index_contents_from_cache_dwz): New.
569 (dwarf2_initialize_objfile): Read index from cache.
570 (dwarf2_build_psymtabs): Save to index.
571 * dwarf-index-cache.h: New file.
572 * dwarf-index-cache.c: New file.
573 * dwarf-index-write.h: New file.
574
8a99096f
SM
5752018-08-07 Simon Marchi <simon.marchi@ericsson.com>
576
577 * gnulib/aclocal.m4: Re-generate.
578 * gnulib/config.in: Re-generate.
579 * gnulib/configure: Re-generate.
580 * gnulib/import/Makefile.am: Re-generate.
581 * gnulib/import/Makefile.in: Re-generate.
582 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
583 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
584 * gnulib/import/m4/mkdir.m4: New file.
585 * gnulib/import/mkdir.c: New file.
586 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkdir
587 module.
588
5c831bb1
SM
5892018-08-07 Simon Marchi <simon.marchi@ericsson.com>
590
591 * Makefile.in (COMMON_SFILES): Add common/scoped_mmap.c.
592 * common/scoped_mmap.c: New file.
593 * common/scoped_mmap.h (destroy): New method.
594 (~scoped_mmap, reset): Use destroy.
595 (scoped_mmap): New move constructor.
596 (mmap_file): New declaration.
597 * unittests/scoped_mmap-selftests.c (test_normal,
598 test_invalid_filename, run_tests): New functions.
599 (_initialize_scoped_mmap_selftests): Register selftest.
600
4485a1c1
SM
6012018-08-07 Simon Marchi <simon.marchi@ericsson.com>
602
603 * dwarf2read.c (read_gdb_index_from_section): Rename to...
604 (read_gdb_index_from_buffer): ... this. Remove section
605 parameter, add buffer parameter.
606 (get_gdb_index_contents_ftype,
607 get_gdb_index_contents_dwz_ftype): New typedefs.
608 (dwarf2_read_gdb_index): Add callback parameters to get the
609 index contents.
610 (get_gdb_index_contents_from_section): New.
611 (dwarf2_initialize_objfile): Update call to
612 dwarf2_read_gdb_index.
613
528e1572
SM
6142018-08-07 Simon Marchi <simon.marchi@ericsson.com>
615
616 * common/filestuff.h (gdb_fopen_cloexec): New overload.
617 (gdb_open_cloexec): Likewise.
618 * nat/linux-osdata.c (command_from_pid): Use string_printf.
619 (commandline_from_pid): Likewise.
620 (linux_xfer_osdata_threads): Likewise.
621 (linux_xfer_osdata_fds): Likewise.
622 * ada-lang.c (is_package_name): Likewise.
623 * auxv.c (procfs_xfer_auxv): Likewise.
624 * breakpoint.c (print_one_breakpoint_location): Use
625 uiout::field_fmt.
626 (print_one_catch_solib): Use string_printf.
627 * coff-pe-read.c (add_pe_exported_sym): Likewise.
628 (add_pe_forwarded_sym): Likewise.
629 * dwarf2read.c (create_type_unit_group): Likewise.
630 (build_error_marker_type): Likewise.
631 * infcall.c (get_function_name): Likewise.
632 * valprint.c (print_converted_chars_to_obstack): Likewise.
633 * xtensa-tdep.c (xtensa_register_type): Likewise.
634
a7f25a84
SM
6352018-08-06 Simon Marchi <simon.marchi@ericsson.com>
636
637 * remote.c (remote_target::download_tracepoint): Fix format
638 string errors.
639
296956be
PFC
6402018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
641
642 * tracefile.c: Include common/byte-vector.h.
643 (trace_save): Change type of buf to gdb::byte_vector. Initialize
644 with trace_regblock_size if needed. Update uses of buf.
645
a04b9d62
PFC
6462018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
647
648 * tracepoint.h (collection_list) <m_regs_mask>: Change type to
649 std::vector<unsigned char>.
650 * tracepoint.c (collection_list::collection_list): Remove
651 m_regs_mask initializer from initializer list. Resize
652 m_regs_mask using the largest remote register number.
653 (collection_list::add_remote_register): Remove size check on
654 m_regs_mask. Use at to access element.
655 (collection_list::stringify): Change type of temp_buf to
656 gdb::char_vector. Update uses of temp_buf. Resize if needed to
657 stringify the register mask. Use pack_hex_byte for the register
658 mask.
659
4277c4b8
PFC
6602018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
661
662 * tracepoint.h (class collection_list) <add_register>: Remove.
663 <add_remote_register, add_ax_registers, add_local_register>:
664 Declare.
665 <add_memrange>: Add scope parameter.
666 * tracepoint.c (encode_actions_1): Likewise.
667 (collection_list::add_register): Rename to ...
668 (collection_list::add_remote_register): ... this. Update
669 comment.
670 (collection_list::add_ax_registers, add_local_register): New
671 methods.
672 (collection_list::add_memrange): Add scope parameter. Call
673 add_local_register instead of add_register.
674 (finalize_tracepoint_aexpr): New function.
675 (collection_list::collect_symbol): Update calls to add_memrange.
676 Call add_local_register instead of add_register. Call
677 add_ax_registers. Call finalize_tracepoint_aexpr.
678 (encode_actions_1): Get remote regnos for $reg action. Call
679 add_remote_register, add_ax_registers, and add_local_register.
680 Update call to add_memrange. Call finalize_tracepoint_aexpr.
681 (validate_actionline): Call finalize_tracepoint_aexpr.
682
3df3a985
PFC
6832018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
684
685 * remote.c (remote_target::download_tracepoint): Remove BUF_SIZE.
686 Replace array buf with gdb::char_vector buf, of size
687 get_remote_packet_size (). Replace references to buf and
688 BUF_SIZE to buf.data () and buf.size (). Replace strcpy, strcat
689 and xsnprintf with snprintf. Raise errors if the buffer is too
690 small.
691
aa6f3694
PFC
6922018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
693
694 * remote.c (remote_target::download_tracepoint): Fix the has_more
695 predicate in the QTDP action list iteration.
696
05abfc39
PFC
6972018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
698
699 * remote.c (remote_target::download_tracepoint): Fix indentation
700 in for block.
701
821a2682
RO
7022018-08-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
703
704 * proc-api.c (_initialize_proc_api): Remove c, unused.
705 * procfs.c (procfs_init_inferior): Remove signals, unused.
706 (procfs_target::make_corefile_notes): Remove old_chain, fpregs,
707 unused.
708
95347337
AB
7092018-08-06 Sergey Korolev <s.korolev@ndmsystems.com>
710 Andrew Burgess <andrew.burgess@embecosm.com>
711
712 * linux-nat.c (linux_nat_target::follow_fork): Avoid using
713 'W_STOPCODE (0)' as this could be ambiguous.
714
425699f5
SDJ
7152018-08-03 Sergio Durigan Junior <sergiodj@redhat.com>
716
717 * ser-tcp.c (net_open): Fix thinko when deciding whether to
718 disable TCP's Nagle algorithm (use "ai_protocol" instead of
719 "ai_socktype").
720
3e1d3d8c
TT
7212018-08-02 Tom Tromey <tom@tromey.com>
722
723 PR symtab/16842.
724 * dwarf2read.c (read_func_scope): Set symtab on template parameter
725 symbols.
726 (process_structure_scope): Likewise.
727
15843549
XR
7282018-08-02 Xavier Roirand <roirand@adacore.com>
729
730 PR gdb/22629:
731 * darwin-nat.c (darwin_kill_inferior): Fix handling of
732 kill inferior.
733
b5bddbbb
TT
7342018-08-02 Tom Tromey <tom@tromey.com>
735
736 * darwin-nat.c (find_inferior_task_it, darwin_find_thread)
737 (darwin_suspend_inferior, darwin_resume_inferior)
738 (darwin_decode_notify_message, darwin_resume_inferior_threads)
739 (darwin_check_new_threads): Check result of get_darwin_inferior.
740
f61cfa07
JB
7412018-07-31 Joel Brobecker <brobecker@adacore.com>
742
743 GDB 8.1.1 released.
744
5abe0f0c
JV
7452018-07-31 Jan Vrany <jan.vrany@fit.cvut.cz>
746
747 * varobj.c (varobj_get_path_expr_parent): Report an error if
748 parent is a dynamic varobj.
749
472fa5ee
SM
7502018-07-31 Simon Marchi <simon.marchi@ericsson.com>
751
752 * gnulib/aclocal.m4: Re-generate.
753 * gnulib/config.in: Re-generate.
754 * gnulib/configure: Re-generate.
755 * gnulib/import/Makefile.in: Re-generate.
756 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
757 * gnulib/import/m4/onceonly.m4: Re-generate.
758
1c28969e
SM
7592018-07-31 Simon Marchi <simon.marchi@ericsson.com>
760
761 * target-descriptions.c (struct xml_test_tdesc): New.
762 (xml_tdesc): Change type to std::vector<xml_test_tdesc>.
763 (record_xml_tdesc): Update.
764 (maintenance_check_xml_descriptions): Update.
765 * target-descriptions.h (record_xml_tdesc): Update comment.
766
c8f2dc0d
AB
7672018-07-30 Andrew Burgess <andrew.burgess@embecosm.com>
768
769 * eval.c (evaluate_subexp_for_sizeof): Check for array type before
770 checking array bounds are defined.
771
463c08d1
TT
7722018-07-30 Tom Tromey <tom@tromey.com>
773
774 * nat/linux-osdata.c (pid_pgid_entry::operator<): Fix
775 irreflexivity violation.
776
dba7455e
TT
7772018-07-30 Tom Tromey <tom@tromey.com>
778
779 * cli/cli-decode.c (lookup_cmd): Remove lint code.
780 * value.c (unpack_long): Remove lint code.
781 * valops.c (value_ind): Remove lint code.
782 * valarith.c (value_x_binop, value_x_unop, value_equal)
783 (value_pos): Remove lint code.
784
37cc0cae
TV
7852018-07-28 Tom de Vries <tdevries@suse.de>
786
787 * eval.c (evaluate_subexp_for_sizeof): Interpret size of dynamic type
788 with undefined upper bound as <optimized out>.
789
129eb0f1
SDJ
7902018-07-27 Sergio Durigan Junior <sergiodj@redhat.com>
791
792 * gcore.in: Rename variable "name" to "prefix". Expand
793 "usage" text.
794
6af79d7b
JT
7952018-07-14 Jon Turney <jon.turney@dronecode.org.uk>
796
797 * windows-nat.c (windows_nat_target::create_inferior): Update to
798 call close() in global namespace.
799
79748972
TT
8002018-07-26 Tom Tromey <tom@tromey.com>
801
802 * dwarf-index-write.c (add_address_entry): Don't add objfile
803 offsets.
804 * dbxread.c (find_stab_function): Rename from
805 find_stab_function_addr. Return a bound_minimal_symbol.
806 (read_dbx_symtab): Use raw_text_low, raw_text_high.
807 Don't add objfile offsets.
808 (end_psymtab): Use raw_text_low, raw_text_high,
809 MSYMBOL_VALUE_RAW_ADDRESS.
810 (read_ofile_symtab): Update.
811 (process_one_symbol): Update.
812 * dwarf2read.c (create_addrmap_from_index): Don't add objfile
813 offsets.
814 (dw2_relocate): Remove.
815 (dw2_find_pc_sect_symtab): Bias PC by the text offset before
816 searching addrmap.
817 (dwarf2_gdb_index_functions, dwarf2_debug_names_functions):
818 Update.
819 (process_psymtab_comp_unit_reader, add_partial_symbol)
820 (add_partial_subprogram, dwarf2_ranges_read): Update.
821 (load_partial_dies): Update.
822 (add_address_entry): Don't add objfile offsets.
823 (dwarf2_build_include_psymtabs): Update.
824 (create_addrmap_from_aranges): Don't add objfile offsets.
825 (dw2_find_pc_sect_compunit_symtab): Update.
826 * mdebugread.c (parse_symbol): Don't add objfile offsets.
827 (parse_lines): Remove 'pst' parameter, replace with 'textlow'.
828 Update.
829 (parse_partial_symbols): Don't add objfile offsets. Use
830 raw_text_low, raw_text_high. Update.
831 (handle_psymbol_enumerators, psymtab_to_symtab_1): Update.
832 * objfiles.c (objfile_relocate1): Don't relocate psymtabs_addrmap
833 or call 'relocate' quick function. Clear psymbol_map.
834 * psympriv.h (struct partial_symbol) <address>: Add section
835 offset.
836 <set_unrelocated_address>: Rename from set_address.
837 <raw_text_low, raw_text_high>: New methods.
838 <text_low, text_high>: Add objfile parameter.
839 (add_psymbol_to_bcache): Add 'section' parameter. Call
840 set_unrelocated_address.
841 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
842 (find_pc_psymbol): Update.
843 (fixup_psymbol_section, relocate_psymtabs): Remove.
844 (dump_psymtab, psym_functions): Update.
845 (add_psymbol_to_bcache, add_psymbol_to_list): Add 'section'
846 parameter.
847 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
848 (start_psymtab_common): Update.
849 * symfile-debug.c (debug_qf_relocate): Remove.
850 (debug_sym_quick_functions): Update.
851 * symfile.h (struct quick_symbol_functions) <relocate>: Remove.
852 * xcoffread.c (scan_xcoff_symtab): Don't add objfile offsets.
853 Update.
854
52948f01
TT
8552018-07-26 Tom Tromey <tromey@redhat.com>
856
857 * dbxread.c (end_psymtab): Use text_high_valid and
858 text_low_valid.
859 * mdebugread.c (parse_partial_symbols): Use text_low_valid.
860 (psymtab_to_symtab_1): Use text_high_valid and text_low_valid.
861 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
862 Update comment.
863 <text_low_valid, text_high_valid>: New fields.
864 <set_text_low, set_text_high>: Update.
865 * xcoffread.c (scan_xcoff_symtab): Use text_low_valid.
866
4ae976d1
TT
8672018-07-26 Tom Tromey <tom@tromey.com>
868
869 * dbxread.c (read_dbx_symtab, end_psymtab, read_ofile_symtab):
870 Update.
871 * dwarf2read.c (dwarf2_create_include_psymtab): Don't initialize
872 textlow and texthigh fields.
873 (process_psymtab_comp_unit_reader, dwarf2_build_include_psymtabs):
874 Update.
875 * mdebugread.c (parse_lines, parse_partial_symbols)
876 (psymtab_to_symtab_1): Update.
877 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
878 Rename fields. Update comment. Now private.
879 <text_low, text_high, set_text_low, set_text_high>: New methods.
880 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
881 (find_pc_sect_psymbol, relocate_psymtabs, dump_psymtab)
882 (start_psymtab_common, maintenance_info_psymtabs)
883 (maintenance_check_psymtabs): Update.
884 * xcoffread.c (xcoff_end_psymtab): Don't initialize textlow and
885 texthigh fields.
886 (scan_xcoff_symtab): Update.
887
02e9e7f7
TT
8882018-07-26 Tom Tromey <tromey@redhat.com>
889
890 * psympriv.h (struct partial_symbol) <unrelocated_address,
891 address, set_address>: New methods.
892 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymbol)
893 (fixup_psymbol_section, relocate_psymtabs): Update.
894 (print_partial_symbols): Add 'objfile' parameter. Update.
895 (dump_psymtab, add_psymbol_to_bcache, psym_fill_psymbol_map):
896 Update.
897
8a6d4234
TT
8982018-07-26 Tom Tromey <tom@tromey.com>
899
900 * dwarf-index-write.c (write_psymbols, debug_names::insert)
901 (debug_names::write_psymbols): Update.
902 * psympriv.h (struct partial_symbol): Derive from
903 general_symbol_info.
904 <obj_section>: New method.
905 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.n
906 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
907 (find_pc_sect_psymbol, fixup_psymbol_section)
908 (match_partial_symbol, lookup_partial_symbol, relocate_psymtabs)
909 (print_partial_symbols, recursively_search_psymtabs)
910 (compare_psymbols, psymbol_hash, psymbol_compare)
911 (add_psymbol_to_bcache, maintenance_check_psymtabs)
912 (psymbol_name_matches, psym_fill_psymbol_map): Update.
913
08994e1d
TT
9142018-07-26 Tom Tromey <tromey@redhat.com>
915
916 * dbxread.c (end_psymtab): Remove dead code.
917
3c3bb058
AB
9182018-07-26 Andrew Burgess <andrew.burgess@embecosm.com>
919
920 * dwarf2-frame-tailcall.c (tailcall_frame_sniffer): Exit early if
921 DWARF unwinders are disabled.
922 * dwarf2-frame.c: Add dwarf2read.h include.
923 (dwarf2_frame_sniffer): Exit early if DWARF unwinders are
924 disabled.
925 (dwarf2_frame_unwinders_enabled_p): Define.
926 (show_dwarf_unwinders_enabled_p): New function.
927 (_initialize_dwarf2_frame): Register switch to control DWARF
928 unwinder use.
929 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Declare.
930 * dwarf2read.c (set_dwarf_cmdlist): Remove static keyword.
931 (show_dwarf_cmdlist): Remove static keyword.
932 * dwarf2read.h (set_dwarf_cmdlist): Declare.
933 (show_dwarf_cmdlist): Declare.
934 * NEWS: Document new feature.
935
9e7f3bbb
TV
9362018-07-26 Tom de Vries <tdevries@suse.de>
937
938 PR breakpoints/23366
939 * infcmd.c (info_program_command): Handle ptid == minus_one_ptid.
940
506f5c41
TV
9412018-07-26 Tom de Vries <tdevries@suse.de>
942
943 * dwarf2read.c (read_subrange_type): Warn if DW_AT_upper_bound or
944 DW_AT_count can't be translated to a dynamic prop.
945
16f808ec
TV
9462018-07-25 Tom de Vries <tdevries@suse.de>
947
948 * dwarf2loc.c (dwarf2_locexpr_baton_eval): Wrap ctx.eval call in
949 try/catch.
950
d7154a8d
JV
9512018-07-25 Jan Vrany <jan.vrany@fit.cvut.cz>
952
953 * breakpoint.c (enable_disable_bp_num_loc): Notify observers.
954
a45389f6
JB
9552018-07-25 Joel Brobecker <brobecker@adacore.com>
956
957 * MAINTAINERS (Global Maintainers): Add Tom Tromey.
958
380618d6
KS
9592018-07-24 Keith Seitz <keiths@redhat.comt
960
961 PR symtab/23010
962 * dwarf2read.c (dw2_add_symbol_to_list): New function.
963 (fixup_go_packaging, new_symbol): Use dw2_add_symbol_to_list
964 instead of add_symbol_to_list.
965 (read_file_scope): Call prepare_one_comp_unit before reading
966 any other DIEs.
967
4b17aefe
SM
9682018-07-24 Simon Marchi <simon.marchi@ericsson.com>
969
970 * common/scoped_mmap.h (class scoped_mmap): Fix indentation.
971
29d17e47
TT
9722018-07-24 Tom Tromey <tom@tromey.com>
973
974 * utils.c (malloc, realloc, free): Don't declare.
975 * configure, config.in: Rebuild.
976 * configure.ac: Don't check for declarations of free, malloc, or
977 realloc.
978
cf4088a9
SM
9792018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
980
981 * aarch64-linux-nat.c
982 (aarch64_linux_nat_target::stopped_data_address): Remove unused
983 variable.
984 * arm-linux-nat.c (fetch_regs): Likewise.
985 (store_regs): Likewise.
986 (fetch_vfp_regs): Likewise.
987 (store_vfp_regs): Likewise.
988 (arm_linux_nat_target::insert_hw_breakpoint): Likewise.
989 (arm_linux_nat_target::remove_hw_breakpoint): Likewise.
990 (arm_linux_nat_target::insert_watchpoint): Likewise.
991 (arm_linux_nat_target::remove_watchpoint): Likewise.
992 * mips-linux-nat.c (mips_linux_nat_target::insert_watchpoint):
993 Likewise.
994 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs):
995 Likewise.
996 * ppc-linux-nat.c (fetch_register): Likewise.
997 (fetch_all_gp_regs): Likewise.
998 (fetch_ppc_registers): Likewise.
999 (store_all_gp_regs): Likewise.
1000 (store_ppc_registers): Likewise.
1001 (hwdebug_insert_point): Likewise.
1002 (can_use_watchpoint_cond_accel): Likewise.
1003 * remote-sim.c (gdb_os_write_stdout): Likewise.
1004
a0de763e
TT
10052018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1006 Tom Tromey <tom@tromey.com>
1007
1008 * warning.m4 (AM_GDB_WARNINGS): Add -Wunused-variable and special
1009 test for it.
1010 * configure: Rebuild.
1011
3b20124b
TT
10122018-07-22 Tom Tromey <tom@tromey.com>
1013
1014 * regformats/regdat.sh: Define xmltarget_${name} inside
1015 #ifndef IN_PROCESS_AGENT.
1016
8c8807f4
TT
10172018-07-22 Tom Tromey <tom@tromey.com>
1018
1019 * value.c (value_fetch_lazy_bitfield): Remove unused variable.
1020
c486b610
TT
10212018-07-22 Tom Tromey <tom@tromey.com>
1022
1023 * symfile.c (reread_symbols): Notify iter, not objfile.
1024
494f80a9
TT
10252018-07-22 Tom Tromey <tom@tromey.com>
1026
1027 * ravenscar-thread.c (ravenscar_thread_target::store_registers):
1028 Use arch_ops.
1029 (ravenscar_thread_target::prepare_to_store): Likewise.
1030
c51f6a54
TT
10312018-07-22 Tom Tromey <tom@tromey.com>
1032
1033 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Remove
1034 unused variable. Call value_fetch_lazy when needed.
1035 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
1036 Remove unused variable. Call value_fetch_lazy when needed.
1037
374fd1fd
TT
10382018-07-22 Tom Tromey <tom@tromey.com>
1039
1040 * m32c-tdep.c (mark_dma): Return void.
1041 (make_regs): Remove unused declarations.
1042
d5e9a511
TT
10432018-07-22 Tom Tromey <tom@tromey.com>
1044
1045 * guile/scm-cmd.c (gdbscm_dont_repeat): Call
1046 cmdscm_get_valid_command_smob_arg_unsafe for effect.
1047 * guile/scm-block.c (gdbscm_make_block_syms_iter): Call
1048 bkscm_get_valid_block_smob_arg_unsafe for effect.
1049
996d693a
TT
10502018-07-22 Tom Tromey <tom@tromey.com>
1051
1052 * bfin-tdep.c (bfin_push_dummy_call): Use arg_type, not
1053 value_type.
1054
15766370
TT
10552018-07-22 Tom Tromey <tom@tromey.com>
1056
1057 * windows-nat.c (saved_context): Conditionally define.
1058 * remote.c (remote_target::remote_btrace_maybe_reopen):
1059 Conditionally declare "warned".
1060 * inflow.c (sigquit_ours): Conditionally define.
1061 (new_tty): Move "tty" declaration inside #if.
1062 * guile/guile.c (guile_datadir): Conditionally define.
1063 * charset.c (set_be_le_names): Move some declarations inside #if.
1064 * btrace.c (parse_xml_btrace): Move "errcode" declaration inside
1065 #if.
1066 (parse_xml_btrace_conf): Likewise.
1067
f4e80e13
TT
10682018-07-22 Tom Tromey <tom@tromey.com>
1069
1070 * spu-tdep.c (spu_get_overlay_table): Remove unused variable.
1071
8d49165d
TT
10722018-07-22 Tom Tromey <tom@tromey.com>
1073
1074 * guile/scm-value.c (gdbscm_value_call): Remove unused variables.
1075 * guile/scm-math.c (vlscm_unop_gdbthrow, vlscm_binop_gdbthrow)
1076 (vlscm_convert_typed_value_from_scheme): Remove unused variable.
1077 * buildsym-legacy.c (get_macro_table): Remove unused variable.
1078 * stack.c (frame_apply_level_command): Remove unused variable.
1079 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused variable.
1080 * sparc64-tdep.c (adi_examine_command): Remove unused variable.
1081 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Remove
1082 unused variable.
1083 * nios2-tdep.c (nios2_push_dummy_call): Remove unused variable.
1084 * mep-tdep.c (mep_push_dummy_call): Remove unused variable.
1085 * ada-lang.c (ada_lookup_symbol_list_worker): Remove unused
1086 variable.
1087 * amd64-tdep.c (amd64_supply_xsave): Remove unused variable.
1088 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Remove unused
1089 variable.
1090 * breakpoint.c (check_no_tracepoint_commands, update_watchpoint):
1091 Remove unused variable.
1092 * cli/cli-script.c (recurse_read_control_structure): Remove unused
1093 variable.
1094 * common/tdesc.c (print_xml_feature::visit): Remove unused
1095 variable.
1096 * compile/compile-object-load.c (store_regs): Remove unused
1097 variables.
1098 * complaints.c (clear_complaints): Remove unused variable.
1099 * corelow.c (core_target_open): Remove unused variable.
1100 * fbsd-tdep.c (fbsd_core_info_proc_status): Remove unused
1101 variable.
1102 * guile/scm-frame.c (gdbscm_frame_read_var): Remove unused
1103 variable.
1104 * guile/scm-symtab.c (stscm_print_sal_smob): Remove unused
1105 variable.
1106 * guile/scm-type.c (gdbscm_field_baseclass_p): Remove unused
1107 variable.
1108 * guile/scm-utils.c (gdbscm_parse_function_args): Remove unused
1109 variable.
1110 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Remove unused
1111 variable.
1112 * ia64-tdep.c (examine_prologue): Remove unused variable.
1113 * infcall.c (run_inferior_call): Remove unused variable.
1114 * inferior.c (exit_inferior): Remove unused variable.
1115 * infrun.c (infrun_thread_ptid_changed): Remove unused variable.
1116 * linespec.c (decode_line_2): Remove unused variable.
1117 * linux-nat.c (super_close): Remove.
1118 * linux-tdep.c (linux_info_proc): Remove unused variable.
1119 * mi/mi-main.c (mi_execute_command): Remove unused variable.
1120 * microblaze-linux-tdep.c (microblaze_linux_sigtramp_cache):
1121 Remove unused variable.
1122 * parse.c (find_minsym_type_and_address): Remove unused variable.
1123 * printcmd.c (info_symbol_command, printf_floating): Remove unused
1124 variable.
1125 * python/py-breakpoint.c (bppy_set_commands): Remove unused
1126 variable.
1127 * python/py-unwind.c (unwind_infopy_dealloc): Remove unused
1128 variables.
1129 * record-btrace.c (record_btrace_target::store_registers): Remove
1130 unused variable.
1131 (cmd_show_record_btrace_cpu): Remove unused variable.
1132 * riscv-tdep.c (riscv_register_reggroup_p)
1133 (riscv_push_dummy_call, riscv_return_value): Remove unused
1134 variable.
1135 * rust-exp.y (literal): Remove unused variable.
1136 * rust-lang.c (rust_evaluate_subexp) <OP_RUST_ARARAY>: Remove
1137 unused variable.
1138 <STRUCTOP_ANONYMOUS>: Likewise.
1139 * s390-linux-tdep.c (s390_linux_init_abi_31)
1140 (s390_linux_init_abi_64): Remove unused variable.
1141 * ser-ming2.c (ser_windows_read_prim, pipe_select_thread)
1142 (file_select_thread, net_windows_open, _initialize_ser_windows):
1143 Remove unused variables.
1144 * symtab.c (find_pc_sect_line): Remove unused variable.
1145 * target-memory.c (compute_garbled_blocks): Remove unused
1146 variable.
1147 (target_write_memory_blocks): Remove unused variable.
1148 * target.c (target_stack::unpush): Remove unused variables.
1149 * tracepoint.c (start_tracing, all_tracepoint_actions)
1150 (merge_uploaded_trace_state_variables)
1151 (print_one_static_tracepoint_marker): Remove unused variable.
1152 * unittests/basic_string_view/element_access/char/1.cc (test01):
1153 Remove unused variable.
1154 * windows-nat.c (windows_continue, windows_add_all_dlls)
1155 (do_initial_windows_stuff, windows_nat_target::create_inferior):
1156 Remove unused variables.
1157
17cbafdb
SM
11582018-07-21 Simon Marchi <simon.marchi@polymtl.ca>
1159
1160 * arm-tdep.c (arm_gdbarch_init): Declare attr_arch and
1161 attr_profile in HAVE_ELF.
1162 * rs6000-tdep.c (bfd_uses_spe_extensions): Declare vector_abi in
1163 HAVE_ELF.
1164
0ee6c332
SM
11652018-07-20 Simon Marchi <simon.marchi@polymtl.ca>
1166
1167 * frame.c (frame_register_unwind): Change parameter name.
1168 (frame_unwind_register): Likewise.
1169 (frame_unwind_register_value): Likewise.
1170 (frame_unwind_register_signed): Likewise.
1171 (frame_unwind_register_unsigned): Likewise.
1172 * frame.h (frame_register_unwind): Likewise.
1173 (frame_unwind_register): Likewise.
1174 (frame_unwind_register_value): Likewise.
1175 (frame_unwind_register_signed): Likewise.
1176 (frame_unwind_register_unsigned): Likewise.
1177 (frame_unwind_arch): Likewise.
1178
e2e31f10
MR
11792018-07-20 Maciej W. Rozycki <macro@mips.com>
1180
1181 * MAINTAINERS: Update my e-mail address, downgrade to MIPS I-IV
1182 ISA maintenance.
1183
2d389915
MR
11842018-07-20 Maciej W. Rozycki <macro@mips.com>
1185
1186 * mips-linux-nat.c (mips_linux_nat_target::read_description):
1187 Call `get_ptrace_pid' rather than extracting the ptrace PID by
1188 hand.
1189
cbb09508
KS
11902018-07-20 Keith Seitz <keiths@redhat.com>
1191
1192 * buildsym.h (struct buildsym_compunit) <m_objfile, m_subfiles,
1193 m_main_subfile, m_comp_dir, m_producer, m_debugformat,
1194 m_compunit_symtab, m_language>: Add "m_" prefix.
1195 Update all uses.
1196 * buildsym.c: Update all uses.
1197
bfe2e011
TT
11982018-07-20 Tom Tromey <tom@tromey.com>
1199
1200 * buildsym-legacy.h (record_line): Don't use record_line_ftype.
1201 * buildsym.h (record_line_ftype): Remove typedef.
1202
0e6f3061
TT
12032018-07-20 Tom Tromey <tom@tromey.com>
1204
1205 * buildsym-legacy.h (augment_type_symtab): Don't declare.
1206 (end_expandable_symtab): Likewise.
1207 (end_symtab_get_static_block): Likewise.
1208 (end_symtab_from_static_block): Likewise.
1209 * buildsym-legacy.c (augment_type_symtab): Remove.
1210 (end_expandable_symtab): Remove.
1211 (end_symtab_get_static_block): Remove.
1212 (end_symtab_from_static_block): Remove.
1213
804d2729
TT
12142018-07-20 Tom Tromey <tom@tromey.com>
1215
1216 * dwarf2read.c: Include buildsym.h.
1217 (struct dwarf2_cu) <builder>: New method.
1218 (fixup_go_packaging): Update.
1219 (process_full_comp_unit, process_full_type_unit): Update. Don't
1220 use scoped_free_pendings.
1221 (using_directives): Add "cu" parameter, remove "language".
1222 (read_import_statement, setup_type_unit_groups, )
1223 (read_func_scope, read_lexical_block_scope)
1224 (dwarf2_record_block_ranges, read_namespace): Update.
1225 (lnp_state_machine::lnp_state_machine): Add cu parameter.
1226 (lnp_state_machine::handle_end_sequence): Update.
1227 (class lnp_state_machine) <m_cu>: New member.
1228 <m_record_line_callback>: Remove.
1229 <m_currently_recording_lines>: New member.
1230 (lnp_state_machine::handle_set_file): Update.
1231 (noop_record_line): Remove.
1232 (dwarf_record_line_p): Add cu parameter.
1233 (dwarf_record_line_1, dwarf_finish_line): Likewise.
1234 (lnp_state_machine::record_line)
1235 (lnp_state_machine::lnp_state_machine)
1236 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
1237 (dwarf_decode_lines): Update.
1238 (dwarf2_start_subfile): Add cu parameter.
1239 (dwarf2_start_symtab, new_symbol): Update.
1240 (macro_start_file, dwarf_decode_macro_bytes): Add cu parameter.
1241 Remove dwarf2_per_objfile parameter.
1242 (dwarf_decode_macros): Update.
1243
80e649fc
TT
12442018-07-20 Tom Tromey <tom@tromey.com>
1245
1246 * stabsread.c (define_symbol): Update.
1247 * buildsym-legacy.h (get_buildsym_compunit): Declare.
1248 * dwarf2read.c (new_symbol): Update.
1249 * cp-support.h (cp_scan_for_anonymous_namespaces): Update.
1250 * cp-namespace.c: Include buildsym.h.
1251 (cp_scan_for_anonymous_namespaces): Add "compunit" parameter.
1252 * buildsym-legacy.c (get_buildsym_compunit): New function.
1253
0baae8db
TT
12542018-07-20 Tom Tromey <tom@tromey.com>
1255
1256 * xcoffread.c: Include buildsym-legacy.h.
1257 * windows-nat.c: Include buildsym-legacy.h.
1258 * stabsread.c: Include buildsym-legacy.h.
1259 * mdebugread.c: Include buildsym-legacy.h.
1260 * buildsym-legacy.h: New file.
1261 * buildsym-legacy.c: New file, from buildsym.c.
1262 * go32-nat.c: Include buildsym-legacy.h.
1263 * dwarf2read.c: Include buildsym-legacy.h.
1264 * dbxread.c: Include buildsym-legacy.h.
1265 * cp-namespace.c: Include buildsym-legacy.h.
1266 * coffread.c: Include buildsym-legacy.h.
1267 * buildsym.h: Move some contents to buildsym-legacy.h.
1268 * buildsym.c: Include buildsym-legacy.h. Move many functions to
1269 buildsym-legacy.c.
1270 * Makefile.in (HFILES_NO_SRCDIR): Add buildsym-legacy.h.
1271
ab209f6f
TT
12722018-07-20 Tom Tromey <tom@tromey.com>
1273
1274 * buildsym.h (struct buildsym_compunit): Move from buildsym.c.
1275 * buildsym.c (struct buildsym_compunit): Move to buildsym.h.
1276 (buildsym_compunit::buildsym_compunit)
1277 (buildsym_compunit::~buildsym_compunit)
1278 (buildsym_compunit::get_macro_table): Define.
1279
74c72eac
TT
12802018-07-20 Tom Tromey <tom@tromey.com>
1281
1282 * buildsym.c (reset_symtab_globals): Remove.
1283 (buildsym_compunit::end_symtab_from_static_block): Update.
1284 (buildsym_compunit::augment_type_symtab): Update.
1285 (end_symtab_from_static_block): Call free_buildsym_compunit.
1286 (augment_type_symtab, end_symtab, end_expandable_symtab):
1287 Likewise.
1288
da6580e5
TT
12892018-07-20 Tom Tromey <tom@tromey.com>
1290
1291 * arch-utils.c: Do not include buildsym.h.
1292 * mipsread.c: Do not include buildsym.h.
1293 * machoread.c: Do not include buildsym.h.
1294 * elfread.c: Do not include buildsym.h.
1295
4a2125f5
TT
12962018-07-20 Tom Tromey <tom@tromey.com>
1297
1298 * buildsym.c (buildsym_compunit::buildsym_compunit): Do more
1299 initialization.
1300 (buildsym_compunit): Add new constructor.
1301 (struct buildsym_compunit) <get_last_source_file, finish_block,
1302 record_block_range, start_subfile, patch_subfile_names,
1303 push_subfile, pop_subfile, record_line, get_compunit_symtab,
1304 set_last_source_start_addr, get_last_source_start_addr,
1305 get_local_using_directives, set_local_using_directives,
1306 get_global_using_directives, outermost_context_p,
1307 get_current_context_stack, get_context_stack_depth,
1308 get_current_subfile, get_local_symbols, get_file_symbols,
1309 get_global_symbols, record_debugformat, record_producer,
1310 push_context, pop_context, end_symtab_get_static_block,
1311 end_symtab_from_static_block, end_symtab, end_expandable_symtab>:
1312 New public methods.
1313 <record_pending_block, finish_block_internal, make_blockvector,
1314 watch_main_source_file_lossage, end_symtab_with_blockvector>: New
1315 private methods.
1316 Update all users.
1317
13182018-05-22 Tom Tromey <tom@tromey.com>
1319
1320 * buildsym.c (record_pending_block): Move earlier. Remove objfile
1321 parameter.
1322 (finish_block_internal): Update.
1323
6b213a47
TT
13242018-07-20 Tom Tromey <tom@tromey.com>
1325
1326 * buildsym.c (record_pending_block): Move earlier. Remove objfile
1327 parameter.
1328 (finish_block_internal): Update.
1329
b80a981d
TT
13302018-07-20 Tom Tromey <tom@tromey.com>
1331
1332 * buildsym.h (EXTERN): Don't define or undef.
1333 * buildsym.c (EXTERN): Don't define.
1334
ddb70602
TT
13352018-07-20 Tom Tromey <tom@tromey.com>
1336
1337 * buildsym.c: Remove TODO comment.
1338
b37dd3bc
TT
13392018-07-20 Tom Tromey <tom@tromey.com>
1340
1341 * coffread.c (coff_symtab_read): Update.
1342 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
1343 (xcoff_new_init): Update.
1344 * mipsread.c (mipscoff_new_init): Update.
1345 * mdebugread.c (mdebug_build_psymtabs): Update.
1346 * elfread.c (elf_new_init): Update.
1347 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
1348 Update.
1349 * dbxread.c (dbx_new_init, dbx_psymtab_to_symtab_1)
1350 (coffstab_build_psymtabs, elfstab_build_psymtabs)
1351 (stabsect_build_psymtabs): Update.
1352 * buildsym.h (buildsym_init): Don't declare.
1353 * buildsym.c: Update comment.
1354 (prepare_for_building): Remove.
1355 (start_symtab, restart_symtab): Update.
1356 (reset_symtab_globals): Update comment.
1357 (buildsym_init): Remove.
1358
e148f09d
TT
13592018-07-20 Tom Tromey <tom@tromey.com>
1360
1361 * xcoffread.c (read_xcoff_symtab, process_xcoff_symbol): Update.
1362 * stabsread.c (patch_block_stabs, define_symbol, read_type)
1363 (read_enum_type, common_block_start, common_block_end)
1364 (cleanup_undefined_types_1, finish_global_stabs): Update.
1365 * mdebugread.c (psymtab_to_symtab_1): Update.
1366 * dwarf2read.c (fixup_go_packaging, read_func_scope)
1367 (read_lexical_block_scope, new_symbol): Update.
1368 * dbxread.c (process_one_symbol): Update.
1369 * coffread.c (coff_symtab_read, process_coff_symbol)
1370 (coff_read_enum_type): Update.
1371 * buildsym.h (file_symbols, global_symbols, local_symbols): Don't
1372 declare.
1373 (get_local_symbols, get_file_symbols, get_global_symbols): New
1374 functions.
1375 * buildsym.c (~buildsym_compunit): Clean up m_file_symbols and
1376 m_global_symbols.
1377 <m_file_symbols, m_local_symbols, m_global_symbols>: New members.
1378 (~scoped_free_pendings): Update.
1379 (finish_block, prepare_for_building, reset_symtab_globals)
1380 (end_symtab_get_static_block, end_symtab_with_blockvector)
1381 (augment_type_symtab, push_context): Update.
1382 (get_local_symbols, get_file_symbols, get_global_symbols): New
1383 functions.
1384 (buildsym_init): Update.
1385
93b8bea4
TT
13862018-07-20 Tom Tromey <tom@tromey.com>
1387
1388 * dwarf2read.c (process_full_comp_unit): Do not set list_in_scope.
1389 (process_full_type_unit): Likewise.
1390 (dwarf2_start_symtab): Set list_in_scope.
1391
f62f6af5
TT
13922018-07-20 Tom Tromey <tom@tromey.com>
1393
1394 * dwarf2read.c (process_psymtab_comp_unit_reader)
1395 (build_type_psymtabs_reader): Do not set list_in_scope.
1396
1d376700
TT
13972018-07-20 Tom Tromey <tom@tromey.com>
1398
1399 * buildsym.c (free_pendings): Remove.
1400 (add_symbol_to_list, scoped_free_pendings)
1401 (finish_block_internal, buildsym_init): Update.
1402
c233e9c6
TT
14032018-07-20 Tom Tromey <tom@tromey.com>
1404
1405 * xcoffread.c (read_xcoff_symtab): Update.
1406 * dwarf2read.c (read_func_scope, read_lexical_block_scope):
1407 Update.
1408 * dbxread.c (process_one_symbol): Update.
1409 * coffread.c (coff_symtab_read): Update.
1410 * buildsym.h (finish_block): Update.
1411 * buildsym.c (finish_block): Remove "listhead" argument.
1412 (end_symtab_get_static_block): Update.
1413
5ac04550
TT
14142018-07-20 Tom Tromey <tom@tromey.com>
1415
1416 * buildsym.h (class scoped_free_pendings): Remove constructor.
1417 * buildsym.c (struct buildsym_compunit) <free_pending_blocks>: New
1418 method.
1419 <m_pending_block_obstack, m_pending_blocks>: New members.
1420 (pending_block_obstack, pending_blocks): Remove.
1421 (scoped_free_pendings::scoped_free_pendings): Default.
1422 (~scoped_free_pendings): Update.
1423 (free_pending_blocks): Remove.
1424 (finish_block_internal, record_pending_block, make_blockvector)
1425 (end_symtab_get_static_block, augment_type_symtab, push_context)
1426 (buildsym_init): Update.
1427
7ea05a7b
TT
14282018-07-20 Tom Tromey <tom@tromey.com>
1429
1430 * buildsym.c (struct buildsym_compunit) <m_pending_addrmap,
1431 m_pending_addrmap_obstack, m_pending_addrmap_interesting>: New
1432 members.
1433 (pending_addrmap, pending_addrmap_obstack)
1434 (pending_addrmap_interesting): Remove.
1435 (scoped_free_pendings, record_block_range, make_blockvector)
1436 (prepare_for_building, reset_symtab_globals, buildsym_init):
1437 Update.
1438
3c65e5b3
TT
14392018-07-20 Tom Tromey <tom@tromey.com>
1440
1441 * xcoffread.c (process_linenos): Update.
1442 * stabsread.c (define_symbol, read_type, read_enum_type): Update.
1443 * mdebugread.c (psymtab_to_symtab_1): Update.
1444 * dwarf2read.c (setup_type_unit_groups)
1445 (lnp_state_machine::handle_set_file, dwarf_record_line_p)
1446 (lnp_state_machine::record_line, dwarf_decode_lines): Update.
1447 * dbxread.c (process_one_symbol): Update.
1448 * coffread.c (coff_symtab_read, enter_linenos)
1449 (process_coff_symbol): Update.
1450 * buildsym.h (current_subfile): Don't declare.
1451 (get_current_subfile): Declare.
1452 * buildsym.c (struct buildsym_compunit) <m_current_subfile>: New
1453 member.
1454 (start_subfile, free_buildsym_compunit, push_subfile)
1455 (prepare_for_building, start_symtab): Update.
1456 (get_current_subfile): New function.
1457
a60f3166
TT
14582018-07-20 Tom Tromey <tom@tromey.com>
1459
1460 * coffread.c (coff_symtab_read): Update.
1461 * xcoffread.c (read_xcoff_symtab): Update.
1462 * dwarf2read.c (new_symbol): Update.
1463 (read_func_scope, read_lexical_block_scope): Update.
1464 * dbxread.c (process_one_symbol): Update.
1465 * buildsym.h (context_stack, context_stack_depth): Don't declare.
1466 (outermost_context_p): Remove macro.
1467 (outermost_context_p, get_current_context_stack)
1468 (get_context_stack_depth): Declare.
1469 (pop_context): Return struct context_stack.
1470 * buildsym.c (struct buildsym_compunit) <m_context_stack: New
1471 member.
1472 (context_stack_size): Remove.
1473 (INITIAL_CONTEXT_STACK_SIZE): Remove.
1474 (prepare_for_building, end_symtab_get_static_block)
1475 (augment_type_symtab, push_context): Update.
1476 (pop_context): Return struct context_stack.
1477 (outermost_context_p, get_current_context_stack)
1478 (get_context_stack_depth): New functions.
1479 (buildsym_init): Update.
1480
56ba65a0
TT
14812018-07-20 Tom Tromey <tom@tromey.com>
1482
1483 * rust-exp.y: Now a pure parser. Update all rules.
1484 (%union): Move earlier.
1485 (current_parser, work_obstack): Remove globals.
1486 (rust_parser, ~rust_parser): Update.
1487 (class rust_parser) <copy_name, concat3, crate_name, super_name,
1488 lex_character, lex_number, lex_string, lex_identifier,
1489 rust_lookup_type, convert_params_to_types, convert_ast_to_type,
1490 convert_name, convert_params_to_expression,
1491 convert_ast_to_expression, ast_basic_type, ast_operation,
1492 ast_compound_assignment, rust_op, ast_literal, ast_dliteral,
1493 ast_structop, ast_structop_anonymous, ast_unary, ast_cast,
1494 ast_call_ish, ast_path, ast_string, ast_struct, ast_range,
1495 ast_array_type, ast_slice_type, ast_reference_type,
1496 ast_pointer_type, ast_function_type, ast_tuple_type>: New methods.
1497 (rust_parse): Update.
1498 (rustyyerror, rustyylex): Add parser parameter.
1499 (rust_lex_test_one, rust_lex_int_test, rust_lex_exception_test)
1500 (rust_lex_stringish_test, rust_lex_test_sequence)
1501 (rust_lex_test_trailing_dot, rust_lex_test_completion)
1502 (rust_lex_test_push_back, rust_lex_tests): Update.
1503
4c693332
PA
15042018-07-19 Pedro Alves <palves@redhat.com>
1505
1506 * guile/guile-internal.h (gdbscm_scm_to_c_string): Now returns a
1507 gdb::unique_xmalloc_ptr.
1508 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x):
1509 Adjust to use dbscm_wrap and gdb::unique_xmalloc_ptr.
1510 * guile/scm-exception.c (gdbscm_exception_message_to_string): Use
1511 copy-initialization.
1512 * guile/scm-pretty-print.c (ppscm_print_children): Use
1513 gdb::unique_xmalloc_ptr instead of cleanups.
1514 (gdbscm_apply_val_pretty_printer): Remove cleanups.
1515 * guile/scm-string.c (gdbscm_scm_to_c_string): Now returns a
1516 gdb::unique_xmalloc_ptr.
1517 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
1518 Adjust to use gdb::unique_xmalloc_ptr.
1519 * guile/scm-utils.c (extract_arg): Adjust.
1520 * guile/scm-value.c (gdbscm_value_field): Adjust to use
1521 gdb::unique_xmalloc_ptr instead of a cleanup.
1522
4581dc82
TT
15232018-07-19 Tom Tromey <tom@tromey.com>
1524
1525 * utils.c (do_value_free_to_mark)
1526 (make_cleanup_value_free_to_mark): Remove.
1527 * utils.h (make_cleanup_value_free_to_mark): Remove.
1528
43cc6c3a
PA
15292018-07-19 Pedro Alves <palves@redhat.com>
1530
1531 * guile/guile-internal.h (gdbscm_wrap): Really make 'args' a
1532 forwarding reference.
1533
3a5f2a48
PA
15342018-07-18 Pedro Alves <palves@redhat.com>
1535
1536 * guile/guile.c (gdbscm_execute_gdb_command): Adjust to use
1537 gdbscm_wrap. Use gdb::unique_xmalloc_ptr<char> instead of a
1538 cleanup.
1539
557e56be
PA
15402018-07-18 Pedro Alves <palves@redhat.com>
1541
1542 * guile/guile-internal.h: Add comment about mixing GDB and Scheme
1543 exceptions.
1544 (GDBSCM_HANDLE_GDB_EXCEPTION_WITH_CLEANUPS): Delete.
1545 (gdbscm_wrap): New.
1546 * guile/scm-frame.c (gdbscm_frame_read_register): Use xfree
1547 directly instead of a cleanup.
1548 * guile/scm-math.c (vlscm_unop_gdbthrow): New, factored out from ...
1549 (vlscm_unop): ... this. Reimplement using gdbscm_wrap.
1550 (vlscm_binop_gdbthrow): New, factored out from ...
1551 (vlscm_binop): ... this. Reimplement using gdbscm_wrap.
1552 (vlscm_rich_compare): Use gdbscm_wrap.
1553 * guile/scm-symbol.c (gdbscm_lookup_symbol): Use xfree directly
1554 instead of a cleanup.
1555 (gdbscm_lookup_global_symbol): Use xfree directly instead of a
1556 cleanup.
1557 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
1558 Use xfree directly instead of a cleanup.
1559 * guile/scm-value.c (gdbscm_make_value, gdbscm_make_lazy_value):
1560 Adjust to use gdbscm_wrap and scoped_value_mark.
1561 (gdbscm_value_optimized_out_p): Adjust to use gdbscm_wrap.
1562 (gdbscm_value_address, gdbscm_value_dereference)
1563 (gdbscm_value_referenced_value): Adjust to use gdbscm_wrap and
1564 scoped_value_mark.
1565 (gdbscm_value_dynamic_type): Use scoped_value_mark.
1566 (vlscm_do_cast, gdbscm_value_field): Adjust to use gdbscm_wrap and
1567 scoped_value_mark.
1568 (gdbscm_value_subscript, gdbscm_value_call): Adjust to use
1569 gdbscm_wrap and scoped_value_mark.
1570 (gdbscm_value_to_string): Use xfree directly instead of a
1571 cleanup. Move 'buffer' unique_ptr to TRY scope.
1572 (gdbscm_value_to_lazy_string): Use xfree directly instead of a
1573 cleanup. Move 'buffer' unique_ptr to TRY scope. Use
1574 scoped_value_mark.
1575 (gdbscm_value_fetch_lazy_x): Use gdbscm_wrap.
1576 (gdbscm_parse_and_eval): Adjust to use gdbscm_wrap and
1577 scoped_value_mark.
1578 (gdbscm_history_ref, gdbscm_history_append_x): Adjust to use
1579 gdbscm_wrap.
1580
42dc7699
TV
15812018-07-18 Tom de Vries <tdevries@suse.de>
1582
1583 * findvar.c (default_read_var_value): Also resolve dynamic type for
1584 LOC_OPTIMIZED_OUT vars.
1585
6592ceed
MR
15862018-07-18 Maciej W. Rozycki <macro@mips.com>
1587
1588 * mips-tdep.c (micromips_next_pc): Add SYSCALL instruction
1589 decoding.
1590
c6c6149a
TT
15912018-07-17 Tom Tromey <tom@tromey.com>
1592
1593 * guile/scm-param.c (pascm_set_func, pascm_show_func)
1594 (compute_enum_list, pascm_set_param_value_x)
1595 (gdbscm_parameter_value): Update.
1596 * guile/guile-internal.h (gdbscm_scm_to_string): Update.
1597 (gdbscm_scm_to_host_string): Update.
1598 * guile/scm-math.c (vlscm_convert_typed_value_from_scheme):
1599 Update.
1600 * guile/scm-cmd.c (cmdscm_add_completion): Update.
1601 * guile/scm-pretty-print.c (ppscm_print_string_repr): Update.
1602 * guile/scm-string.c (gdbscm_scm_to_string): Return
1603 unique_xmalloc_ptr.
1604 (gdbscm_scm_to_host_string): Likewise.
1605
a1a31cb8
TT
16062018-07-17 Tom Tromey <tom@tromey.com>
1607
1608 * guile/guile.c (gdbscm_eval_from_control_command): Update.
1609 * guile/guile-internal.h (gdbscm_safe_eval_string): Update.
1610 * guile/scm-objfile.c (gdbscm_execute_objfile_script): Update.
1611 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Return
1612 unique_xmalloc_ptr.
1613
15bf3002
TT
16142018-07-17 Tom Tromey <tom@tromey.com>
1615
1616 * guile/scm-param.c (pascm_signal_setshow_error): Update.
1617 * guile/guile-internal.h (gdbscm_exception_message_to_string):
1618 Update.
1619 * guile/scm-cmd.c (cmdscm_function): Update.
1620 * guile/scm-pretty-print.c
1621 (ppscm_print_exception_unless_memory_error): Update.
1622 * guile/scm-exception.c (gdbscm_exception_message_to_string):
1623 Return unique_xmalloc_ptr.
1624
7eb1a66c
TT
16252018-07-17 Tom Tromey <tom@tromey.com>
1626
1627 * guile/scm-pretty-print.c (ppscm_make_pp_type_error_exception):
1628 Use string_printf.
1629
ce73f310
JW
16302018-07-17 Jim Wilson <jimw@sifive.com>
1631
27724bad
JW
1632 * riscv-tdep.c (riscv_has_feature): Delete comment that refers to
1633 set_gdbarch_decr_pc_after_break. Call riscv_read_misa_reg always.
1634 (riscv_gdbarch_init): Delete local has_compressed_isa. Delete now
1635 unecessary braces after EF_RISCV_RVC test. Delete call to
1636 set_gdbarch_decr_pc_after_break.
1637
ce73f310
JW
1638 * riscv-tdep.h (DECLARE_CSR): Use RISCV_FIRST_CSR_REGNUM instead of
1639 RISCV_LAST_FP_REGNUM + 1.
1640 (RSICV_CSR_LEGACY_MISA_REGNUM): Add RISCV_FIRST_CSR_REGNUM.
1641
056dec39
TT
16422018-07-17 Tom Tromey <tom@tromey.com>
1643
1644 * configure.ac: Remove --disable-gdbcli.
1645 * configure: Rebuild.
1646 * Makefile.in (SUBDIR_CLI_DEPS, SUBDIR_CLI_LDFLAGS)
1647 (SUBDIR_CLI_CFLAGS): Remove.
1648 (SFILES): Use SUBDIR_CLI_SRCS.
1649 (COMMON_OBS): Use SUBDIR_CLI_OBS.
1650
4735f0ed
TT
16512018-07-17 Tom Tromey <tom@tromey.com>
1652
1653 PR gdb/18624:
1654 * coffread.c (coff_symtab_read): Use scoped_free_pendings.
1655
117a0e99
JW
16562018-07-16 Jim Wilson <jimw@sifive.com>
1657
1658 * riscv-tdep.c (riscv_gdbarch_init): Call gdbarch_init_osabi.
1659
8a67aaa8
SM
16602018-07-16 Simon Marchi <simon.marchi@ericsson.com>
1661
1662 * ia64-libunwind-tdep.c (libunwind_frame_cache): Remove unused
1663 variable.
1664 (libunwind_frame_sniffer): Likewise.
1665 (libunwind_frame_prev_register): Likewise.
1666 (libunwind_sigtramp_frame_sniffer): Likewise.
1667 * ia64-tdep.c (ia64_access_reg): Likewise.
1668 (ia64_access_rse_reg): Likewise.
1669 (ia64_libunwind_sigtramp_frame_this_id): Likewise.
1670 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Likewise.
1671
ec74dcd8
SM
16722018-07-16 Simon Marchi <simon.marchi@ericsson.com>
1673
1674 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Add cast.
1675
a700e753
SM
16762018-07-16 Simon Marchi <simon.marchi@ericsson.com>
1677
1678 * remote-sim.c (gdbsim_target::close,
1679 gdbsim_target::mourn_inferior): Remove unused variables.
1680
8b411ff8
SM
16812018-07-16 Simon Marchi <simon.marchi@polymtl.ca>
1682
1683 * ia64-tdep.c (ktab_buf): New global.
1684 (getunwind_table): Return a gdb::optional<gdb::byte_vector>.
1685 (get_kernel_table): Adjust.
1686
edb0470b
TT
16872018-07-16 Tom Tromey <tom@tromey.com>
1688
1689 * xcoffread.c (read_xcoff_symtab): Use outermost_context_p.
1690 * dwarf2read.c (using_directives, new_symbol): Use
1691 outermost_context_p.
1692 * dbxread.c (process_one_symbol): Use outermost_context_p.
1693 * coffread.c (coff_symtab_read): Use outermost_context_p.
1694
6cccc9a8
TT
16952018-07-16 Tom Tromey <tom@tromey.com>
1696
1697 * dwarf2read.c (using_directives, read_func_scope)
1698 (read_lexical_block_scope): Update.
1699 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
1700 * buildsym.h (local_using_directives, global_using_directives):
1701 Don't declare.
1702 (get_local_using_directives, set_local_using_directives)
1703 (get_global_using_directives): Declare.
1704 * buildsym.c (struct buildsym_compunit) <m_local_using_directives,
1705 m_global_using_directives>: New members.
1706 (finish_block_internal, prepare_for_building)
1707 (reset_symtab_globals, end_symtab_get_static_block)
1708 (push_context): Update.
1709 (get_local_using_directives, set_local_using_directives)
1710 (get_global_using_directives): New functions.
1711 (buildsym_init): Update.
1712
652788a7
TT
17132018-07-16 Tom Tromey <tom@tromey.com>
1714
1715 * xcoffread.c (xcoff_initial_scan): Don't call
1716 free_pending_blocks.
1717 * dbxread.c (dbx_symfile_read): Don't call free_pending_blocks.
1718 * buildsym.h (class scoped_free_pendings): Add constructor.
1719 (free_pending_blocks): Don't declare.
1720 * buildsym.c (scoped_free_pendings::scoped_free_pendings): New.
1721 (free_pending_blocks): Now static.
1722
8419ee53
TT
17232018-07-16 Tom Tromey <tom@tromey.com>
1724
1725 * buildsym.h (push_subfile, pop_subfile): Update declarations.
1726 * buildsym.c (struct buildsym_compunit) <m_subfile_stack>: New
1727 member.
1728 (struct subfile_stack): Remove.
1729 (subfile_stack): Remove.
1730 (push_subfile, pop_subfile, buildsym_init): Update.
1731
ccdac490
TT
17322018-07-16 Tom Tromey <tom@tromey.com>
1733
1734 * buildsym.c (push_subfile): Use gdb_assert.
1735 (pop_subfile): Use gdb_assert.
1736
43130d6f
TT
17372018-07-16 Tom Tromey <tom@tromey.com>
1738
1739 * buildsym.h (merge_symbol_lists): Remove.
1740 * buildsym.c (merge_symbol_lists): Remove.
1741
77d6f1aa
TT
17422018-07-16 Tom Tromey <tom@tromey.com>
1743
1744 * stabsread.c (scan_file_globals): Update comment.
1745 * stabsread.h (scan_file_globals): Move from buildsym.h.
1746 * buildsym.h (scan_file_globals): Move to stabsread.h.
1747
2c722d18
TT
17482018-07-16 Tom Tromey <tom@tromey.com>
1749
1750 * xcoffread.c (xcoff_new_init): Update.
1751 * mipsread.c (mipscoff_new_init): Update.
1752 * mdebugread.c (mdebug_build_psymtabs): Update.
1753 * elfread.c (elf_new_init): Update.
1754 * dbxread.c (dbx_new_init, coffstab_build_psymtabs)
1755 (elfstab_build_psymtabs, stabsect_build_psymtabs): Update.
1756 * buildsym.h (buildsym_new_init): Don't declare.
1757 * buildsym.c (buildsym_new_init): Remove.
1758
5985ac61
TT
17592018-07-16 Tom Tromey <tom@tromey.com>
1760
1761 * stabsread.h (within_function): Move from buildsym.h.
1762 * stabsread.c (start_stabs): Clear within_function.
1763 * coffread.c (coff_start_symtab): Clear within_function.
1764 * buildsym.h (within_function): Move to stabsread.h.
1765 * buildsym.c (prepare_for_building): Update.
1766
6b84eeb2
TT
17672018-07-16 Tom Tromey <tom@tromey.com>
1768
1769 * stabsread.h (processing_gcc_compilation): Move from buildsym.h.
1770 * dwarf2read.c (dwarf2_start_symtab): Don't set
1771 processing_gcc_compilation.
1772 * buildsym.h (processing_gcc_compilation): Move to stabsread.h.
1773
2150c3ef
TT
17742018-07-16 Tom Tromey <tom@tromey.com>
1775
1776 * stabsread.h (HASHSIZE, hashname, symnum, next_symbol_text)
1777 (next_symbol_text_func): Move from buildsym.h.
1778 * stabsread.c (hashname): Move from buildsym.c.
1779 * buildsym.h (HASHSIZE, symnum, next_symbol_text)
1780 (next_symbol_text_func, hashname): Move to stabsread.h.
1781 * buildsym.c: Don't include bcache.h
1782 (hashname): Move to stasbread.c.
1783
0ec44fc0
TT
17842018-07-16 Tom Tromey <tom@tromey.com>
1785
1786 * buildsym.h (context_stack_size): Don't declare.
1787 * buildsym.c (context_stack_size): New global.
1788
81cc346d
TT
17892018-07-16 Tom Tromey <tom@tromey.com>
1790
1791 * dbxread.c (processing_acc_compilation): New global.
1792 * buildsym.h (processing_acc_compilation): Don't declare.
1793
2c99ee5c
TT
17942018-07-16 Tom Tromey <tom@tromey.com>
1795
1796 * xcoffread.c (aix_process_linenos, complete_symtab): Update.
1797 * dbxread.c (read_ofile_symtab): Update.
1798 * coffread.c (coff_start_symtab, coff_end_symtab): Update.
1799 * buildsym.h (last_source_start_addr): Remove.
1800 (set_last_source_start_addr, get_last_source_start_addr):
1801 Declare.
1802 * buildsym.c (buildsym_compunit::buildsym_compunit): Add last_addr
1803 parameter.
1804 (struct buildsym_compunit) <m_last_source_start_addr>: New
1805 member.
1806 (prepare_for_building): Remove start_addr parameter.
1807 (start_symtab, restart_symtab, end_symtab_get_static_block)
1808 (end_symtab_with_blockvector): Update.
1809 (set_last_source_start_addr, get_last_source_start_addr): New
1810 functions.
1811
530fedbc
TT
18122018-07-16 Tom Tromey <tom@tromey.com>
1813
1814 * buildsym.c (struct buildsym_compunit) <m_have_line_numbers>: New
1815 member.
1816 (have_line_numbers): Remove.
1817 (record_line, prepare_for_building, end_symtab_get_static_block)
1818 (augment_type_symtab): Update.
1819
6a976300
TT
18202018-07-16 Tom Tromey <tom@tromey.com>
1821
1822 * buildsym.c (~buildsym_compunit): Free the macro table.
1823 (struct buildsym_compunit) <get_macro_table, release_macros>: New
1824 methods.
1825 <m_pending_macros>: New member.
1826 (pending_macros): Remove.
1827 (~scoped_free_pendings, get_macro_table, prepare_for_building)
1828 (reset_symtab_globals, end_symtab_get_static_block)
1829 (end_symtab_with_blockvector, augment_type_symtab)
1830 (buildsym_init): Update.
1831
c0015d44
TT
18322018-07-16 Tom Tromey <tom@tromey.com>
1833
1834 * buildsym.c (buildsym_compunit::buildsym_compunit): Add name
1835 parameter.
1836 (buildsym_compunit::set_last_source_file): New method.
1837 <m_last_source_file>: New member.
1838 (prepare_for_building): Remove "name" parameter.
1839 (start_symtab, restart_symtab, reset_symtab_globals): Update.
1840 (last_source_file): Remove.
1841 (set_last_source_file, get_last_source_file): Update.
1842
e62cca7c
TT
18432018-07-16 Tom Tromey <tom@tromey.com>
1844
1845 * buildsym.c (prepare_for_building): Add assert.
1846
905eb0e2
TT
18472018-07-16 Tom Tromey <tom@tromey.com>
1848
1849 * buildsym.c (~buildsym_compunit): Update.
1850 (struct buildsym_compunit) <comp_unit>: Now a unique_xmalloc_ptr.
1851 (start_subfile, patch_subfile_names)
1852 (end_symtab_with_blockvector): Update.
1853
b248663f
TT
18542018-07-16 Tom Tromey <tom@tromey.com>
1855
1856 * buildsym.c (struct buildsym_compunit): Add constructor,
1857 destructor, initializers.
1858 (start_buildsym_compunit): Remove.
1859 (free_buildsym_compunit): Use "delete".
1860 (start_symtab, restart_symtab): Use "new".
1861
ff27d073
SM
18622018-07-13 Simon Marchi <simon.marchi@polymtl.ca>
1863
1864 * symfile.c (set_objfile_default_section_offset): Remove struct
1865 keyword.
1866
6a15ecf5
SH
18672018-07-14 Stafford Horne <shorne@gmail.com>
1868
1869 * (Responsible Maintainers): Add myself as or1k maintainer.
1870
027a4c30
TT
18712018-07-13 Tom Tromey <tom@tromey.com>
1872
1873 * symfile.c (set_objfile_default_section_offset): Use extra braces
1874 around initializer.
1875
5c1eda30
AA
18762018-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
1877
1878 * s390-tdep.c (s390_displaced_step_fixup): Adjust PC for a
1879 non-branching basr.
1880
bc7b042b
PW
18812018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1882
1883 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1884 unittests/cli-utils-selftests.c
1885 * unittests/cli-utils-selftests.c: New file.
1886
a14c4daa
PW
18872018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1888
1889 * NEWS: Mention new commands. Mention change to 'thread apply'.
1890
1fe75df7
PW
18912018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1892
1893 * thread.c (thr_try_catch_cmd): New function.
1894 (thread_apply_all_command): Handle qcs flags.
1895 (thread_apply_command): Handle qcs flags.
1896 (taas_command): New function.
1897 (tfaas_command): New function.
1898 (_initialize_thread): Update to setup the new commands 'taas
1899 and 'tfaas'. Change doc string for 'thread apply'.
1900
6a70eb7d
PW
19012018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1902
1903 * stack.c: (trailing_outermost_frame): New function, mostly
1904 extracted from backtrace_command_1.
1905 (leading_innermost_frame): New function.
1906 (backtrace_command_1): Update to call trailing_outermost_frame.
1907 (frame_apply_command_count): New function.
1908 (frame_apply_level_command): New function.
1909 (frame_apply_all_command): New function.
1910 (frame_apply_command): New function.
1911 (faas_command): New function.
1912 (frame_cmd_list): New variable.
1913 (_initialize_stack): Update to setup the new commands 'frame apply'
1914 and 'faas'.
1915
529c08b2
PW
19162018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1917
1918 * cli-utils.c (number_or_range_parser::get_number): Only handle
1919 numbers or convenience var as numbers.
1920 (parse_flags): New function.
1921 (parse_flags_qcs): New function.
1922 (number_or_range_parser::finished): Ensure parsing end is detected
1923 before end of string.
1924 * cli-utils.h (parse_flags): New function.
1925 (parse_flags_qcs): New function.
1926 (number_or_range_parser): Remove m_finished bool.
1927 (number_or_range_parser::skip_range): Set m_in_range to false.
1928
64b58472
SDJ
19292018-07-12 Sergio Durigan Junior <sergiodj@redhat.com>
1930
1931 * ser-tcp.c (try_connect): Declare 'ioarg' as 'u_long' if building
1932 on Windows.
1933
c7ab0aef
SDJ
19342018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
1935 Jan Kratochvil <jan.kratochvil@redhat.com>
1936 Paul Fertser <fercerpav@gmail.com>
1937 Tsutomu Seki <sekiriki@gmail.com>
1938 Pedro Alves <palves@redhat.com>
1939
1940 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1941 'unittests/parse-connection-spec-selftests.c'.
1942 (COMMON_SFILES): Add 'common/netstuff.c'.
1943 (HFILES_NO_SRCDIR): Add 'common/netstuff.h'.
1944 * NEWS (Changes since GDB 8.2): Mention IPv6 support.
1945 * common/netstuff.c: New file.
1946 * common/netstuff.h: New file.
1947 * ser-tcp.c: Include 'netstuff.h' and 'wspiapi.h'.
1948 (wait_for_connect): Update comment. New parameter
1949 'gdb::optional<int> sock' instead of 'struct serial *scb'.
1950 Use 'sock' directly instead of 'scb->fd'.
1951 (try_connect): New function, with code from 'net_open'.
1952 (net_open): Rewrite main loop to deal with multiple
1953 sockets/addresses. Handle IPv6-style hostnames; implement
1954 support for IPv6 connections.
1955 * unittests/parse-connection-spec-selftests.c: New file.
1956
4c7333b3
PA
19572018-07-11 Pedro Alves <palves@redhat.com>
1958
1959 PR gdb/23377
1960 * remote.c (remote_target::remote_detach_pid): Call
1961 set_current_process.
1962
a6f88f6e
PA
19632018-07-11 Pedro Alves <palves@redhat.com>
1964
1965 * h8300-tdep.c (h8300_gdbarch_init): Remove
1966 set_gdbarch_ecoff_reg_to_regnum calls.
1967
16ff70dd
SDJ
19682018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
1969
1970 PR c++/23373
1971 * c-typeprint.c (c_type_print_base_struct_union): Don't print
1972 offsets/sizes for static members of a class/struct.
1973
12863263
AH
19742018-07-11 Alan Hayward <alan.hayward@arm.com>
1975
1976 * target-descriptions.c (tdesc_register_bitsize): Rename.
1977 * target-descriptions.h (tdesc_register_bitsize): Likewise.
1978 * rs6000-tdep.c (rs6000_gdbarch_init): Use new name.
1979 * aarch64-tdep.c (aarch64_get_tdesc_vq): Convert size.
1980
1123588c
TT
19812018-07-10 Tom Tromey <tom@tromey.com>
1982
1983 * breakpoint.c (moribund_locations): Now static and a
1984 std::vector.
1985 (breakpoint_init_inferior, moribund_breakpoint_here_p)
1986 (build_bpstat_chain, update_global_location_list)
1987 (breakpoint_retire_moribund): Update.
1988 * breakpoint.h (bp_location_p): Remove typedef. Don't declare
1989 VEC.
1990
8c49aa89
AB
19912018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
1992
1993 * riscv-tdep.c (riscv_is_fp_regno_p): New function.
1994 (riscv_register_reggroup_p): Use new function, remove unneeded
1995 parenthesis.
1996 (riscv_push_dummy_call): Extend assert to compare against xlen or
1997 flen based on register type.
1998
42ecac17
AB
19992018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
2000
2001 * riscv-tdep.c (riscv_print_arg_location): Use TYPE_SAFE_NAME.
2002
055303e2
AB
20032018-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2004
2005 * remote.c (show_hardware_watchpoint_limit): New function.
2006 (show_hardware_watchpoint_length_limit): New function.
2007 (show_hardware_breakpoint_limit): New function.
2008 (_initialize_remote): Use add_setshow_zuinteger_unlimited_cmd
2009 where appropriate, update help text.
2010
8fd32c1c
TT
20112018-07-09 Tom Tromey <tom@tromey.com>
2012
2013 * Makefile.in (CDEPS): Don't mention XM_CDEPS.
2014 (CLIBS): Don't mention NAT_CLIBS.
2015
31278b51
TT
20162018-07-09 Tom Tromey <tom@tromey.com>
2017
2018 * Makefile.in (ADD_FILES, ADD_DEPS): Remove.
2019 (LIBGDB_OBS, clean mostlyclean): Update.
2020 (gdb$(EXEEXT), insight$(EXEEXT)): Update.
2021
e5fd1493
TT
20222018-07-09 Tom Tromey <tom@tromey.com>
2023
2024 * Makefile.in (%.c: %.y): Use ECHO_YACC.
2025 (%.c: %.l): Use ECHO_LEX. Just fail if flex not available.
2026 * silent-rules.mk (ECHO_YACC, ECHO_LEX): New variables.
2027
981e0c0c
TT
20282018-07-09 Tom Tromey <tom@tromey.com>
2029
2030 * Makefile.in (ALLDEPFILES): Remove exec.c.
2031 (COMMON_OBS): Remove exec.o.
2032 (COMMON_SFILES): Add exec.c.
2033
14ccceb2
TT
20342018-07-09 Tom Tromey <tom@tromey.com>
2035
2036 * Makefile.in (LINT, LINTFLAGS, LINTFILES, lint): Remove.
2037
5d3c3a68
TT
20382018-07-09 Tom Tromey <tom@tromey.com>
2039
2040 * Makefile.in (clean mostlyclean): Remove stamp-version.
2041 (version.c): Depend on stamp-version.
2042 (stamp-version): New rule, from version.c rule.
2043
1998086d
TT
20442018-07-09 Tom Tromey <tom@tromey.com>
2045
2046 * Makefile.in (init.c): Depend on stamp-init.
2047 (stamp-init): New rule, from init.c rule.
2048 (clean mostlyclean): Remove stamp-init.
2049
4c754949
TT
20502018-07-09 Tom Tromey <tom@tromey.com>
2051
2052 * Makefile.in (INIT_FILES): Remove CONFIG_SRCS,
2053 SUBDIR_GCC_COMPILE_SRCS.
2054
6497f1dd
TT
20552018-07-09 Tom Tromey <tom@tromey.com>
2056
2057 * Makefile.in (init.c): Remove some unused sed rules.
2058
97a34db9
TT
20592018-07-09 Tom Tromey <tom@tromey.com>
2060
2061 * Makefile.in (TSOBS): Remove.
2062 (INIT_FILES): Update.
2063 (LIBGDB_OBS): Update.
2064 (COMMON_SFILES): Add inflow.c.
2065 (SFILES): Remove inflow.c.
2066
25289ac1
JK
20672018-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2068
2069 * contrib/gdb-add-index.sh ($dwarf5): New, use it.
2070
e83f4d97
SM
20712018-07-07 Simon Marchi <simon.marchi@polymtl.ca>
2072
4869c585
SM
2073 * ia64-libunwind-tdep.c (get_reg_name, get_fpreg_name,
2074 get_saveloc_name, is_signal_frame_name, step_name,
2075 init_remote_name, create_addr_space_name,
2076 destroy_addr_space_name, search_unwind_table_name,
2077 find_dyn_list_name): Constify.
e83f4d97 2078
6821842f
SM
20792018-07-05 Simon Marchi <simon.marchi@polymtl.ca>
2080
2081 * darwin-nat.c (darwin_pthread_kill): New function.
2082 (darwin_resume_thread): Use darwin_pthread_kill.
2083
c530603c
TV
20842018-07-05 Tom de Vries <tdevries@suse.de>
2085
2086 * macroexp.c (macro_buffer) <operator=>: New member function.
2087
a7d0f0f0
TT
20882018-07-04 Tom Tromey <tom@tromey.com>
2089
2090 * darwin-nat.c (darwin_attach_pid): Use exit_inferior.
2091
6242c6a6
SM
20922018-07-04 Simon Marchi <simon.marchi@polymtl.ca>
2093
2094 * common/common-defs.h (HAVE_USEFUL_SBRK): Define.
2095 * main.c: Use HAVE_USEFUL_SBRK instead of HAVE_SBRK.
2096 * maint.c: Likewise.
2097 * top.c: Likewise.
2098
4e5b2f89
JB
20992018-07-04 Joel Brobecker <brobecker@adacore.com>
2100
2101 * NEWS: Create a new section for the next release branch.
2102 Rename the section of the current branch, now that it has
2103 been cut.
2104
538ccc4a
JB
21052018-07-04 Joel Brobecker <brobecker@adacore.com>
2106
2107 GDB 8.2 branch created (1b919490e8ba30bf1d6941df0ed112b0e557017e):
2108 * version.in: Bump version to 8.2.50.DATE-git.
2109
1b919490
VB
21102018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
2111 Pedro Alves <palves@redhat.com>
2112
2113 * linux-nat.c (linux_init_ptrace): Rename to ...
2114 (linux_init_ptrace_procfs): ... this. Call
2115 linux_proc_init_warnings.
2116 (linux_nat_target::post_attach)
2117 (linux_nat_target::post_startup_inferior): Adjust.
2118 * nat/linux-procfs.c (linux_proc_init_warnings): Define function.
2119 * nat/linux-procfs.h (linux_proc_init_warnings): Declare function.
2120
1ea5da02
TV
21212018-07-04 Tom de Vries <tdevries@suse.de>
2122
2123 * dwarf2read.c (error_check_comp_unit_head): Move dwarf version
2124 check ...
2125 (read_comp_unit_head): ... here.
2126
f51e0e20
TT
21272018-07-03 Tom Tromey <tom@tromey.com>
2128
2129 * tracepoint.c (process_tracepoint_on_disconnect, start_tracing)
2130 (stop_tracing, tstatus_command)
2131 (find_matching_tracepoint_location, merge_uploaded_tracepoints)
2132 (print_one_static_tracepoint_marker): Update.
2133 * breakpoint.c (static_tracepoints_here, all_tracepoints): Return
2134 std::vector.
2135 * breakpoint.h (breakpoint_p): Remove typedef. Don't declare
2136 VEC.
2137 (all_tracepoints, static_tracepoints_here): Return std::vector.
2138
d7e15655
TT
21392018-07-03 Tom Tromey <tom@tromey.com>
2140
2141 * common/ptid.c (ptid_equal): Remove.
2142 * common/ptid.h (ptid_equal): Don't declare.
2143 * ada-tasks.c: Update.
2144 * breakpoint.c: Update.
2145 * common/agent.c: Update.
2146 * corelow.c: Update.
2147 * darwin-nat-info.c: Update.
2148 * darwin-nat.c: Update.
2149 * dcache.c: Update.
2150 * dtrace-probe.c: Update.
2151 * dummy-frame.c: Update.
2152 * fbsd-nat.c: Update.
2153 * frame.c: Update.
2154 * gdbthread.h: Update.
2155 * gnu-nat.c: Update.
2156 * go32-nat.c: Update.
2157 * inf-loop.c: Update.
2158 * inf-ptrace.c: Update.
2159 * infcall.c: Update.
2160 * infcmd.c: Update.
2161 * inflow.c: Update.
2162 * infrun.c: Update.
2163 * linux-fork.c: Update.
2164 * linux-nat.c: Update.
2165 * linux-thread-db.c: Update.
2166 * mi/mi-cmd-var.c: Update.
2167 * mi/mi-interp.c: Update.
2168 * mi/mi-main.c: Update.
2169 * nto-procfs.c: Update.
2170 * ppc-linux-tdep.c: Update.
2171 * procfs.c: Update.
2172 * python/py-inferior.c: Update.
2173 * python/py-record-btrace.c: Update.
2174 * python/py-record.c: Update.
2175 * ravenscar-thread.c: Update.
2176 * regcache.c: Update.
2177 * remote-sim.c: Update.
2178 * remote.c: Update.
2179 * sol-thread.c: Update.
2180 * solib.c: Update.
2181 * target.c: Update.
2182 * tui/tui-stack.c: Update.
2183 * varobj.c: Update.
2184 * windows-nat.c: Update.
2185 * windows-tdep.c: Update.
2186
26a57c92
TT
21872018-07-03 Tom Tromey <tom@tromey.com>
2188
2189 * common/ptid.c (ptid_match): Remove.
2190 * common/ptid.h (ptid_match): Don't declare.
2191 * fbsd-nat.c: Update.
2192 * infcmd.c: Update.
2193 * infrun.c: Update.
2194 * linux-nat.c: Update.
2195 * record-btrace.c: Update.
2196 * regcache.c: Update.
2197 * remote.c: Update.
2198
d2a107e3
TT
21992018-07-03 Tom Tromey <tom@tromey.com>
2200
2201 * common/ptid.c (ptid_tid_p): Remove.
2202 * common/ptid.h (ptid_tid_p): Don't declare.
2203 * sol-thread.c: Update.
2204
15a9e13e
TT
22052018-07-03 Tom Tromey <tom@tromey.com>
2206
2207 * common/ptid.c (ptid_lwp_p): Remove.
2208 * common/ptid.h (ptid_lwp_p): Don't declare.
2209 * fbsd-nat.c: Update.
2210 * linux-nat.c: Update.
2211 * nat/linux-procfs.c: Update.
2212 * nat/x86-linux-dregs.c: Update.
2213 * sol-thread.c: Update.
2214
0e998d96
TT
22152018-07-03 Tom Tromey <tom@tromey.com>
2216
2217 * common/ptid.c (ptid_is_pid): Remove.
2218 * common/ptid.h (ptid_is_pid): Don't declare.
2219 * infrun.c: Update.
2220 * linux-nat.c: Update.
2221 * mi/mi-interp.c: Update.
2222 * remote.c: Update.
2223 * thread.c: Update.
2224
cc6bcb54
TT
22252018-07-03 Tom Tromey <tom@tromey.com>
2226
2227 * common/ptid.c (ptid_get_tid): Remove.
2228 * common/ptid.h (ptid_get_tid): Don't declare.
2229 * ada-tasks.c: Update.
2230 * aix-thread.c: Update.
2231 * bsd-uthread.c: Update.
2232 * darwin-nat.c: Update.
2233 * fbsd-nat.c: Update.
2234 * i386-darwin-nat.c: Update.
2235 * infrun.c: Update.
2236 * linux-tdep.c: Update.
2237 * nto-procfs.c: Update.
2238 * ppc-ravenscar-thread.c: Update.
2239 * python/py-infthread.c: Update.
2240 * ravenscar-thread.c: Update.
2241 * sol-thread.c: Update.
2242 * sparc-ravenscar-thread.c: Update.
2243 * windows-nat.c: Update.
2244
e38504b3
TT
22452018-07-03 Tom Tromey <tom@tromey.com>
2246
2247 * common/ptid.c (ptid_get_lwp): Remove.
2248 * common/ptid.h (ptid_get_lwp): Don't declare.
2249 * aarch64-linux-nat.c: Update.
2250 * ada-tasks.c: Update.
2251 * aix-thread.c: Update.
2252 * amd64-linux-nat.c: Update.
2253 * arm-linux-nat.c: Update.
2254 * corelow.c: Update.
2255 * fbsd-nat.c: Update.
2256 * fbsd-tdep.c: Update.
2257 * gnu-nat.c: Update.
2258 * i386-cygwin-tdep.c: Update.
2259 * i386-gnu-nat.c: Update.
2260 * i386-linux-nat.c: Update.
2261 * ia64-linux-nat.c: Update.
2262 * inf-ptrace.c: Update.
2263 * infrun.c: Update.
2264 * linux-fork.c: Update.
2265 * linux-nat.c: Update.
2266 * linux-tdep.c: Update.
2267 * linux-thread-db.c: Update.
2268 * mips-linux-nat.c: Update.
2269 * nat/aarch64-linux-hw-point.c: Update.
2270 * nat/aarch64-linux.c: Update.
2271 * nat/linux-btrace.c: Update.
2272 * nat/linux-osdata.c: Update.
2273 * nat/linux-procfs.c: Update.
2274 * nat/x86-linux-dregs.c: Update.
2275 * obsd-nat.c: Update.
2276 * ppc-fbsd-nat.c: Update.
2277 * ppc-linux-nat.c: Update.
2278 * procfs.c: Update.
2279 * python/py-infthread.c: Update.
2280 * ravenscar-thread.c: Update.
2281 * remote.c: Update.
2282 * s390-linux-nat.c: Update.
2283 * sol-thread.c: Update.
2284 * sol2-tdep.c: Update.
2285 * spu-linux-nat.c: Update.
2286 * x86-linux-nat.c: Update.
2287 * xtensa-linux-nat.c: Update.
2288
e99b03dc
TT
22892018-07-03 Tom Tromey <tom@tromey.com>
2290
2291 * common/ptid.c (ptid_get_pid): Remove.
2292 * common/ptid.h (ptid_get_pid): Don't declare.
2293 * aarch64-linux-nat.c: Update.
2294 * ada-lang.c: Update.
2295 * aix-thread.c: Update.
2296 * alpha-bsd-nat.c: Update.
2297 * amd64-fbsd-nat.c: Update.
2298 * amd64-linux-nat.c: Update.
2299 * arm-linux-nat.c: Update.
2300 * arm-nbsd-nat.c: Update.
2301 * auxv.c: Update.
2302 * break-catch-syscall.c: Update.
2303 * breakpoint.c: Update.
2304 * bsd-uthread.c: Update.
2305 * corelow.c: Update.
2306 * ctf.c: Update.
2307 * darwin-nat.c: Update.
2308 * fbsd-nat.c: Update.
2309 * fbsd-tdep.c: Update.
2310 * gcore.c: Update.
2311 * gnu-nat.c: Update.
2312 * hppa-nbsd-nat.c: Update.
2313 * hppa-obsd-nat.c: Update.
2314 * i386-fbsd-nat.c: Update.
2315 * ia64-linux-nat.c: Update.
2316 * inf-ptrace.c: Update.
2317 * infcmd.c: Update.
2318 * inferior.c: Update.
2319 * inferior.h: Update.
2320 * inflow.c: Update.
2321 * infrun.c: Update.
2322 * linux-fork.c: Update.
2323 * linux-nat.c: Update.
2324 * linux-tdep.c: Update.
2325 * linux-thread-db.c: Update.
2326 * m68k-bsd-nat.c: Update.
2327 * mi/mi-interp.c: Update.
2328 * mi/mi-main.c: Update.
2329 * mips-linux-nat.c: Update.
2330 * mips-nbsd-nat.c: Update.
2331 * mips64-obsd-nat.c: Update.
2332 * nat/aarch64-linux-hw-point.c: Update.
2333 * nat/aarch64-linux.c: Update.
2334 * nat/linux-btrace.c: Update.
2335 * nat/linux-osdata.c: Update.
2336 * nat/linux-procfs.c: Update.
2337 * nat/x86-linux-dregs.c: Update.
2338 * nto-procfs.c: Update.
2339 * obsd-nat.c: Update.
2340 * ppc-linux-nat.c: Update.
2341 * ppc-nbsd-nat.c: Update.
2342 * ppc-obsd-nat.c: Update.
2343 * proc-service.c: Update.
2344 * procfs.c: Update.
2345 * python/py-inferior.c: Update.
2346 * python/py-infthread.c: Update.
2347 * ravenscar-thread.c: Update.
2348 * record.c: Update.
2349 * remote-sim.c: Update.
2350 * remote.c: Update.
2351 * rs6000-nat.c: Update.
2352 * s390-linux-nat.c: Update.
2353 * sh-nbsd-nat.c: Update.
2354 * sol-thread.c: Update.
2355 * sparc-nat.c: Update.
2356 * sparc64-tdep.c: Update.
2357 * spu-linux-nat.c: Update.
2358 * spu-tdep.c: Update.
2359 * target-debug.h: Update.
2360 * target.c: Update.
2361 * thread.c: Update.
2362 * tid-parse.c: Update.
2363 * tracefile-tfile.c: Update.
2364 * vax-bsd-nat.c: Update.
2365 * windows-nat.c: Update.
2366 * x86-linux-nat.c: Update.
2367 * x86-nat.c: Update.
2368
f2907e49
TT
23692018-07-03 Tom Tromey <tom@tromey.com>
2370
2371 * common/ptid.c (pid_to_ptid): Remove.
2372 * common/ptid.h (pid_to_ptid): Don't declare.
2373 * aix-thread.c: Update.
2374 * arm-linux-nat.c: Update.
2375 * common/ptid.c: Update.
2376 * common/ptid.h: Update.
2377 * corelow.c: Update.
2378 * ctf.c: Update.
2379 * darwin-nat.c: Update.
2380 * fbsd-nat.c: Update.
2381 * fork-child.c: Update.
2382 * gnu-nat.c: Update.
2383 * go32-nat.c: Update.
2384 * inf-ptrace.c: Update.
2385 * infcmd.c: Update.
2386 * inferior.c: Update.
2387 * infrun.c: Update.
2388 * linux-fork.c: Update.
2389 * linux-nat.c: Update.
2390 * nat/aarch64-linux-hw-point.c: Update.
2391 * nat/fork-inferior.c: Update.
2392 * nat/x86-linux-dregs.c: Update.
2393 * nto-procfs.c: Update.
2394 * obsd-nat.c: Update.
2395 * procfs.c: Update.
2396 * progspace.c: Update.
2397 * remote.c: Update.
2398 * rs6000-nat.c: Update.
2399 * s390-linux-nat.c: Update.
2400 * sol-thread.c: Update.
2401 * spu-linux-nat.c: Update.
2402 * target.c: Update.
2403 * top.c: Update.
2404 * tracefile-tfile.c: Update.
2405 * windows-nat.c: Update.
2406
fd79271b
TT
24072018-07-03 Tom Tromey <tom@tromey.com>
2408
2409 * common/ptid.h (ptid_build): Don't declare.
2410 * common/ptid.c (ptid_build): Remove.
2411 * aix-thread.c: Update.
2412 * bsd-kvm.c: Update.
2413 * bsd-uthread.c: Update.
2414 * common/agent.c: Update.
2415 * common/ptid.c: Update.
2416 * common/ptid.h: Update.
2417 * corelow.c: Update.
2418 * darwin-nat.c: Update.
2419 * fbsd-nat.c: Update.
2420 * gnu-nat.c: Update.
2421 * linux-fork.c: Update.
2422 * linux-nat.c: Update.
2423 * linux-thread-db.c: Update.
2424 * nat/linux-osdata.c: Update.
2425 * nat/linux-procfs.c: Update.
2426 * nto-procfs.c: Update.
2427 * obsd-nat.c: Update.
2428 * proc-service.c: Update.
2429 * procfs.c: Update.
2430 * ravenscar-thread.c: Update.
2431 * remote-sim.c: Update.
2432 * remote.c: Update.
2433 * sol-thread.c: Update.
2434 * target.c: Update.
2435 * windows-nat.c: Update.
2436
057302ce
TT
24372018-07-03 Tom Tromey <tom@tromey.com>
2438
2439 * infrun.c (follow_exec): Use exit_inferior_silent.
2440 * inferior.c (exit_inferior_num_silent): Remove.
2441 * inferior.h (exit_inferior_num_silent): Don't declare.
2442
a50c11c6
TT
24432018-07-03 Tom Tromey <tom@tromey.com>
2444
2445 PR cli/23340:
2446 * darwin-nat.c (darwin_attach_pid): Reset inferior and
2447 inferior_ptid on error.
2448
471b9d15
MR
24492018-07-02 Maciej W. Rozycki <macro@mips.com>
2450 Simon Marchi <simon.marchi@polymtl.ca>
2451
2452 PR tdep/8282
2453 * disasm.h (gdb_disassembler): Add
2454 `m_disassembler_options_holder'. member
2455 * disasm.c (get_all_disassembler_options): New function.
2456 (gdb_disassembler::gdb_disassembler): Use it.
2457 (gdb_buffered_insn_length_init_dis): Likewise.
2458 (gdb_buffered_insn_length): Adjust accordingly.
2459 (set_disassembler_options): Handle options with arguments.
2460 (show_disassembler_options_sfunc): Likewise. Add a leading new
2461 line if showing options with descriptions.
2462 (disassembler_options_completer): Adapt to using the
2463 `disasm_options_and_args_t' structure.
2464 * mips-tdep.c (mips_disassembler_options): New variable.
2465 (mips_disassembler_options_o32): Likewise.
2466 (mips_disassembler_options_n32): Likewise.
2467 (mips_disassembler_options_n64): Likewise.
2468 (gdb_print_insn_mips): Don't set `disassembler_options'.
2469 (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): Remove
2470 functions.
2471 (mips_gdbarch_init): Always set `gdbarch_print_insn' to
2472 `gdb_print_insn_mips'. Set `gdbarch_disassembler_options',
2473 `gdbarch_disassembler_options_implicit' and
2474 `gdbarch_valid_disassembler_options'.
2475 * arm-tdep.c (_initialize_arm_tdep): Adapt to using the
2476 `disasm_options_and_args_t' structure.
2477 * gdbarch.sh (disassembler_options_implicit): New `gdbarch'
2478 method.
2479 (valid_disassembler_options): Switch from `disasm_options_t' to
2480 the `disasm_options_and_args_t' structure.
2481 * NEWS: Document `set disassembler-options' support for the MIPS
2482 target.
2483 * gdbarch.h: Regenerate.
2484 * gdbarch.c: Regenerate.
2485
41823f29
SH
24862018-07-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
2487
2488 * riscv-tdep.c (riscv_register_aliases): Swap "fp" and "s0" entries.
2489
41206e32
JB
24902018-06-29 Joel Brobecker <brobecker@adacore.com>
2491
2492 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Add missing
2493 parameter in call to amd64_target_description.
2494 * amd64-dicos-tdep.c (amd64_dicos_init_abi): Likewise.
2495 * amd64-fbsd-tdep.c (amd64fbsd_core_read_description)
2496 (amd64fbsd_init_abi): Likewise.
2497 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
2498 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
2499 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
2500 * amd64-fbsd-nat.c (amd64_fbsd_nat_target): Likewise.
2501
de52b960
PA
25022018-06-29 Pedro Alves <palves@redhat.com>
2503
2504 * gdb/amd64-tdep.h (amd64_create_target_description): Add
2505 "segments" parameter.
2506 * gdb/amd64-tdep.c (amd64_none_init_abi, amd64_x32_none_init_abi)
2507 (_initialize_amd64_tdep): Update call to
2508 amd64_create_target_description.
2509 (amd64_target_description): Add "segments" parameter. Adjust
2510 the implementation to use it.
2511 * gdb/amd64-linux-tdep.c (amd64_linux_read_description): Update
2512 call to amd64_create_target_description.
2513 * gdb/amd64-windows-tdep.c (amd64_windows_init_abi): Likewise.
2514 * gdb/arch/amd64.h (amd64_create_target_description): Add
2515 "segments" register.
2516 * gdb/arch/amd64.c (amd64_create_target_description): Add
2517 "segments" parameter. Call create_feature_i386_64bit_segments
2518 only if SEGMENTS is true.
2519 * gdb/gdbserver/win32-i386-low.c (i386_arch_setup): Update
2520 call to amd64_create_target_description.
2521
75acb486
PA
25222018-06-29 Pedro Alves <palves@redhat.com>
2523
2524 * thread.c (thread_target_id_str): New, factored out from ...
2525 (print_thread_info_1): ... here. Use it to compute the max
2526 "Target Id" column width.
2527
c76a8ea3
PA
25282018-06-29 Pedro Alves <palves@redhat.com>
2529
2530 * remote.c (remote_target::extra_thread_info): Delete
2531 'display_buf' and 'n' locals. from the cache, regardless of
2532 packet mechanims is in use. Use cache for qThreadExtra and qP
2533 methods too.
2534
cd2bb709
PA
25352018-06-29 Pedro Alves <palves@redhat.com>
2536
2537 * blockframe.c (find_pc_sect_containing_function): New function.
2538 * breakpoint.c (print_breakpoint_location): Don't call
2539 find_pc_sect_function.
2540 * linespec.c (create_sals_line_offset): Record the location's
2541 symbol in the sal.
2542 * linespec.c (convert_address_location_to_sals): Fill in sal's
2543 symbol with find_pc_sect_containing_function.
2544 * symtab.c (find_function_start_sal): Rename to ...
2545 (find_function_start_sal_1): ... this.
2546 (find_function_start_sal): Reimplement as wrapper around
2547 find_function_start_sal_1, and use
2548 find_pc_sect_containing_function to fill in the sal's symbol.
2549 (find_function_start_sal(symbol*, bool)): Adjust.
2550 * symtab.h (find_pc_function, find_pc_sect_function): Adjust
2551 comments.
2552 (find_pc_sect_containing_function): Declare.
2553
991ff292
PA
25542018-06-29 Pedro Alves <palves@redhat.com>
2555
2556 * inline-frame.c (stopped_by_user_bp_inline_frame): Return
2557 true if the the location has no symbol.
2558
44cee4fd
TT
25592018-06-28 Tom Tromey <tom@tromey.com>
2560
2561 * NEWS: Mention --enable-codesign.
2562 * silent-rules.mk (ECHO_SIGN): New variable.
2563 * configure.ac: Add --enable-codesign.
2564 * configure: Rebuild.
2565 * Makefile.in (CODESIGN, CODESIGN_CERT): New variables.
2566 (gdb$(EXEEXT)): Optionally invoke codesign.
2567
f2ffa92b
PA
25682018-06-28 Pedro Alves <palves@redhat.com>
2569
2570 * gdbthread.h (struct thread_suspend_state) <stop_pc>: Extend
2571 comments.
2572 (switch_to_thread_no_regs): Adjust comment.
2573 * infcmd.c (stop_pc): Delete.
2574 (post_create_inferior, info_program_command): Replace references
2575 to stop_pc with references to thread_info->suspend.stop_pc.
2576 * inferior.h (stop_pc): Delete declaration.
2577 * infrun.c (proceed, handle_syscall_event, fill_in_stop_func)
2578 (handle_inferior_event_1, handle_signal_stop)
2579 (process_event_stop_test, keep_going_stepped_thread)
2580 (handle_step_into_function, handle_step_into_function_backward)
2581 (print_stop_location): Replace references to stop_pc with
2582 references to thread_info->suspend.stop_pc.
2583 (struct infcall_suspend_state) <stop_pc>: Delete field.
2584 (save_infcall_suspend_state, restore_infcall_suspend_state):
2585 Remove references to inf_stat->stop_pc.
2586 * linux-fork.c (fork_load_infrun_state): Likewise.
2587 * record-btrace.c (record_btrace_set_replay): Likewise.
2588 * record-full.c (record_full_goto_entry): Likewise.
2589 * remote.c (print_one_stopped_thread): Likewise.
2590 * target.c (target_resume): Extend comment.
2591 * thread.c (set_executing_thread): New.
2592 (set_executing): Use it.
2593 (switch_to_thread_no_regs, switch_to_no_thread, switch_to_thread):
2594 Remove references to stop_pc.
2595
ecdc3a72
PA
25962018-06-28 Pedro Alves <palves@redhat.com>
2597
2598 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>:
2599 Moving fetching stop_pc until after ecs->event_thread is refreshed.
2600
d95d3aef
TT
26012018-06-28 Tom Tromey <tom@tromey.com>
2602
2603 * coffread.c (coff_symfile_finish): Update.
2604 * xcoffread.c (xcoff_symfile_finish): Update.
2605 * elfread.c (elf_symfile_finish): Update.
2606 * symfile.h (dwarf2_free_objfile): Don't declare.
2607 * dwarf2read.c (_initialize_dwarf2_read): Use
2608 register_objfile_data_with_cleanup.
2609 (dwarf2_free_objfile): Now static. Change signature.
2610
291f9a96
PT
26112018-06-28 Petr Tesarik <ptesarik@suse.cz>
2612
2613 * symfile.c (add_symbol_file_command, _initialize_symfile): Add
2614 option "-o" to add-symbol-file-load to add an offset to each
2615 section's load address.
2616 * symfile.c (set_objfile_default_section_offset): New function.
2617
d81a3eaf
PT
26182018-06-28 Petr Tesarik <ptesarik@suse.cz>
2619
2620 * symfile.c (add_symbol_file_command): Make sure that sections
2621 with the same name are sorted in the same order.
2622
ed6dfe51
PT
26232018-06-28 Petr Tesarik <ptesarik@suse.cz>
2624
2625 * symfile.c (add_symbol_file_command, _initialize_symfile): Do not
2626 require the second argument. If omitted, load sections at the
2627 addresses specified in the file.
2628
d4d429d5
PT
26292018-06-28 Petr Tesarik <ptesarik@suse.cz>
2630
2631 * symfile.c (symbol_file_command, symbol_file_add_main_1)
2632 (_initialize_symfile): Add option "-o" to symbol-file to add an
2633 offset to each section of the symbol file.
2634
39b27ab6
PT
26352018-06-28 Petr Tesarik <ptesarik@suse.cz>
2636
2637 * MAINTAINERS (Write After Approval): Add Petr Tesarik.
2638
41827fc3
TT
26392018-06-27 Tom Tromey <tom@tromey.com>
2640
2641 * stack.c (_initialize_stack): Update "func" help text.
2642
0c6aef22
TT
26432018-06-27 Tom Tromey <tom@tromey.com>
2644
2645 * python/py-unwind.c (unwind_info_object) <saved_regs>: Now a
2646 std::vector.
2647 (unwind_infopy_str, pyuw_create_unwind_info)
2648 (unwind_infopy_add_saved_register, pyuw_sniffer)
2649 (unwind_infopy_dealloc, unwind_infopy_add_saved_register):
2650 Update.
2651 (struct saved_reg): Add constructor.
2652 <value>: Now a gdbpy_ref<>.
2653
63177289
TT
26542018-06-27 Tom Tromey <tom@tromey.com>
2655
2656 * machoread.c (macho_symfile_read): Define "symbol_table" earlier.
2657
e76f78a0
SM
26582018-06-27 Simon Marchi <simon.marchi@ericsson.com>
2659
2660 * gdb-gdb.py.in: Format using autopep8.
2661
9a14af7b
SM
26622018-06-27 Simon Marchi <simon.marchi@ericsson.com>
2663
2664 * gdb-gdb.py.in (CoreAddrPrettyPrinter): New class.
2665 (type_lookup_function): Recognize CORE_ADDR values.
2666
189366cd
SM
26672018-06-27 Simon Marchi <simon.marchi@ericsson.com>
2668
2669 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <to_string>: Don't
2670 print tag_name.
2671
68ad5fb9
SM
26722018-06-27 Simon Marchi <simon.marchi@ericsson.com>
2673
2674 * gdb-gdb.py.in (TypeFlag) <__cmp__>: Remove.
2675 <__lt__>: Add.
2676
141ec9f6
SM
26772018-06-27 Simon Marchi <simon.marchi@ericsson.com>
2678
2679 * gdb-gdb.py: Move to...
2680 * gdb-gdb.py.in: ... here.
2681 * configure.ac (AC_CONFIG_FILES): Add gdb-gdb.py.
2682 * Makefile.in (all): Add gdb-gdb.gdb and gdb-gdb.py as
2683 dependencies.
2684 (distclean): Remove gdb-gdb.py when cleaning.
2685 (gdb-gdb.py, gdb-gdb.gdb): New rules.
2686 * configure: Re-generate.
2687
4c4e7ad4
PA
26882018-06-27 Pedro Alves <palves@redhat.com>
2689
2690 * proc-service.c (get_ps_regcache): New.
2691 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
2692 (ps_lsetfpregs): Use it.
2693
7ab6656f
OJ
26942018-06-27 Omair Javaid <omair.javaid@linaro.org>
2695
2696 PR gdb/21695
2697 * dwarf2read.c (lnp_state_machine::check_line_address): Update declaration.
2698 (dwarf_decode_lines_1): Adjust.
2699
bd583225
SM
27002018-06-27 Simon Marchi <simon.marchi@ericsson.com>
2701
2702 * fbsd-nat.h (class fbsd_nat_target) <find_memory_regions>: Add
2703 override.
2704 <info_proc>: Likewise.
2705
9a325b7b
JB
27062018-06-26 Joel Brobecker <brobecker@adacore.com>
2707
2708 * windows-nat.c (do_windows_fetch_inferior_registers): Rename
2709 to windows_fetch_one_register, and only handle the case of
2710 fetching one register. Move the code that reloads the context
2711 and iterates over all registers if R is negative to...
2712 (windows_nat_target::fetch_registers): ... here.
2713 (do_windows_store_inferior_registers): Rename to
2714 windows_store_one_register, and only handle the case of storing
2715 one register. Move the code that handles the case where r is
2716 negative to...
2717 (windows_nat_target::store_registers) ... here.
2718
a33ccfc7
TT
27192018-06-26 Tom Tromey <tom@tromey.com>
2720
2721 PR rust/22574:
2722 * typeprint.c (whatis_exp): Allow ptype/o for Rust.
2723 * rust-lang.c (rust_print_struct_def): Add podata parameter.
2724 Update.
2725 (rust_internal_print_type): Add podata parameter.
2726 (rust_print_type): Update.
2727
e0c547d1
TT
27282018-06-26 Tom Tromey <tom@tromey.com>
2729
2730 * typeprint.h (struct print_offset_data) <update, finish,
2731 maybe_print_hole>: New methods.
2732 <indentation>: New constant.
2733 * typeprint.c (print_offset_data::indentation): Define.
2734 (print_offset_data::maybe_print_hole, print_offset_data::update)
2735 (print_offset_data::finish): Move from c-typeprint.c and rename.
2736 * c-typeprint.c (OFFSET_SPC_LEN): Remove.
2737 (print_spaces_filtered_with_print_options): Update.
2738 (c_print_type_union_field_offset, maybe_print_hole)
2739 (c_print_type_struct_field_offset): Move to typeprint.c and
2740 rename.
2741 (c_type_print_base_struct_union): Update.
2742
75cbc781
PA
27432018-06-25 Pedro Alves <palves@redhat.com>
2744
2745 * gdbthread.h (thread_info_ref, delete_thread)
2746 (delete_thread_silent, first_thread_of_inferior)
2747 (any_thread_of_inferior, switch_to_thread)
2748 (enable_thread_stack_temporaries)
2749 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
2750 (get_last_thread_stack_temporary)
2751 (value_in_thread_stack_temporaries, can_access_registers_thread):
2752 Spell out "struct thread_info" instead of just "thread_info".
2753 * inferior.h (notice_new_inferior): Likewise.
2754
b7a08269
PA
27552018-06-25 Pedro Alves <palves@redhat.com>
2756
2757 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
2758 pass thread_info pointer to delete_thread.
2759 (windows_nat_target::detach): Pass inferior pointer to
2760 detach_inferior.
2761 * aix-thread.c (sync_threadlists): Pass thread_info pointer to
2762 delete_thread.
2763 * bsd-kvm.c (bsd_kvm_target::close): Use discard_all_inferiors.
2764 * darwin-nat.c (darwin_check_new_threads): Use find_thread_ptid
2765 and pass a thread_info pointer to delete_thread.
2766 * fbsd-nat.c (fbsd_nat_target::wait): Use find_thread_ptid and
2767 pass thread_info pointer to delete_thread.
2768 * go32-nat.c (go32_nat_target::mourn_inferior): Remove
2769 delete_thread_silent call.
2770 * procfs.c (procfs_target::detach): Pass inferior pointer to
2771 detach_inferior.
2772 (procfs_target::wait): Pass thread_info pointer to delete_thread.
2773 * remote-sim.c (gdbsim_target::mourn_inferior): Remove
2774 delete_thread_silent call.
2775 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
2776 pass thread_info pointer to delete_thread.
2777 (windows_nat_target::detach): Pass inferior pointer to
2778 delete_inferior.
2779
8e7767e3
AH
27802018-06-22 Alan Hayward <alan.hayward@arm.com>
2781
2782 * regcache.c (readable_regcache::read_part): Fix asserts.
2783 (reg_buffer::raw_collect_part): New function.
2784 (regcache::write_part): Fix asserts.
2785 (reg_buffer::raw_supply_part): New function.
2786 (regcache::transfer_regset_register): New helper function.
2787 (regcache::transfer_regset): Call new functions.
2788 (regcache_supply_regset): Use gdb_byte*.
2789 (regcache::supply_regset): Likewise.
2790 (regcache_collect_regset): Likewise.
2791 (regcache::collect_regset): Likewise.
2792 * regcache.h (reg_buffer::raw_collect_part): New declaration.
2793 (reg_buffer::raw_supply_part): Likewise.
2794 (regcache::transfer_regset_register): Likewise.
2795 (regcache::transfer_regset): Use gdb_byte*.
2796
bfd60e34
AH
27972018-06-22 Alan Hayward <alan.hayward@arm.com>
2798
2799 * nat/aarch64-sve-linux-ptrace.h (HAS_SVE_STATE): Use &.
2800
00431a78
PA
28012018-06-21 Pedro Alves <palves@redhat.com>
2802
2803 * ada-lang.h (ada_get_task_number): Take a thread_info pointer
2804 instead of a ptid_t. All callers adjusted.
2805 * ada-tasks.c (ada_get_task_number): Likewise. All callers
2806 adjusted.
2807 (print_ada_task_info, display_current_task_id, task_command_1):
2808 Adjust.
2809 * breakpoint.c (watchpoint_in_thread_scope): Adjust to use
2810 inferior_thread.
2811 (breakpoint_kind): Adjust.
2812 (remove_breakpoints_pid): Rename to ...
2813 (remove_breakpoints_inf): ... this. Adjust to take an inferior
2814 pointer. All callers adjusted.
2815 (bpstat_clear_actions): Use inferior_thread.
2816 (get_bpstat_thread): New.
2817 (bpstat_do_actions): Use it.
2818 (bpstat_check_breakpoint_conditions, bpstat_stop_status): Adjust
2819 to take a thread_info pointer. All callers adjusted.
2820 (set_longjmp_breakpoint_for_call_dummy, set_momentary_breakpoint)
2821 (breakpoint_re_set_thread): Use inferior_thread.
2822 * breakpoint.h (struct inferior): Forward declare.
2823 (bpstat_stop_status): Update.
2824 (remove_breakpoints_pid): Delete.
2825 (remove_breakpoints_inf): New.
2826 * bsd-uthread.c (bsd_uthread_target::wait)
2827 (bsd_uthread_target::update_thread_list): Use find_thread_ptid.
2828 * btrace.c (btrace_add_pc, btrace_enable, btrace_fetch)
2829 (maint_btrace_packet_history_cmd)
2830 (maint_btrace_clear_packet_history_cmd): Adjust.
2831 (maint_btrace_clear_cmd, maint_info_btrace_cmd): Adjust to use
2832 inferior_thread.
2833 * cli/cli-interp.c: Include "inferior.h".
2834 * common/refcounted-object.h (struct
2835 refcounted_object_ref_policy): New.
2836 * compile/compile-object-load.c: Include gdbthread.h.
2837 (store_regs): Use inferior_thread.
2838 * corelow.c (core_target::close): Use current_inferior.
2839 (core_target_open): Adjust to use first_thread_of_inferior and use
2840 the current inferior.
2841 * ctf.c (ctf_target::close): Adjust to use current_inferior.
2842 * dummy-frame.c (dummy_frame_id) <ptid>: Delete, replaced by ...
2843 <thread>: ... this new field. All references adjusted.
2844 (dummy_frame_pop, dummy_frame_discard, register_dummy_frame_dtor):
2845 Take a thread_info pointer instead of a ptid_t.
2846 * dummy-frame.h (dummy_frame_push, dummy_frame_pop)
2847 (dummy_frame_discard, register_dummy_frame_dtor): Take a
2848 thread_info pointer instead of a ptid_t.
2849 * elfread.c: Include "inferior.h".
2850 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop):
2851 Use inferior_thread.
2852 * eval.c (evaluate_subexp): Likewise.
2853 * frame.c (frame_pop, has_stack_frames, find_frame_sal): Use
2854 inferior_thread.
2855 * gdb_proc_service.h (struct thread_info): Forward declare.
2856 (struct ps_prochandle) <ptid>: Delete, replaced by ...
2857 <thread>: ... this new field. All references adjusted.
2858 * gdbarch.h, gdbarch.c: Regenerate.
2859 * gdbarch.sh (get_syscall_number): Replace 'ptid' parameter with a
2860 'thread' parameter. All implementations and callers adjusted.
2861 * gdbthread.h (thread_info) <set_running>: New method.
2862 (delete_thread, delete_thread_silent): Take a thread_info pointer
2863 instead of a ptid.
2864 (global_thread_id_to_ptid, ptid_to_global_thread_id): Delete.
2865 (first_thread_of_process): Delete, replaced by ...
2866 (first_thread_of_inferior): ... this new function. All callers
2867 adjusted.
2868 (any_live_thread_of_process): Delete, replaced by ...
2869 (any_live_thread_of_inferior): ... this new function. All callers
2870 adjusted.
2871 (switch_to_thread, switch_to_no_thread): Declare.
2872 (is_executing): Delete.
2873 (enable_thread_stack_temporaries): Update comment.
2874 <enable_thread_stack_temporaries>: Take a thread_info pointer
2875 instead of a ptid_t. Incref the thread.
2876 <~enable_thread_stack_temporaries>: Decref the thread.
2877 <m_ptid>: Delete
2878 <m_thr>: New.
2879 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
2880 (get_last_thread_stack_temporary)
2881 (value_in_thread_stack_temporaries, can_access_registers_thread):
2882 Take a thread_info pointer instead of a ptid_t. All callers
2883 adjusted.
2884 * infcall.c (get_call_return_value): Use inferior_thread.
2885 (run_inferior_call): Work with thread pointers instead of ptid_t.
2886 (call_function_by_hand_dummy): Work with thread pointers instead
2887 of ptid_t. Use thread_info_ref.
2888 * infcmd.c (proceed_thread_callback): Access thread's state
2889 directly.
2890 (ensure_valid_thread, ensure_not_running): Use inferior_thread,
2891 access thread's state directly.
2892 (continue_command): Use inferior_thread.
2893 (info_program_command): Use find_thread_ptid and access thread
2894 state directly.
2895 (proceed_after_attach_callback): Use thread state directly.
2896 (notice_new_inferior): Take a thread_info pointer instead of a
2897 ptid_t. All callers adjusted.
2898 (exit_inferior): Take an inferior pointer instead of a pid. All
2899 callers adjusted.
2900 (exit_inferior_silent): New.
2901 (detach_inferior): Delete.
2902 (valid_gdb_inferior_id, pid_to_gdb_inferior_id)
2903 (gdb_inferior_id_to_pid, in_inferior_list): Delete.
2904 (detach_inferior_command, kill_inferior_command): Use
2905 find_inferior_id instead of valid_gdb_inferior_id and
2906 gdb_inferior_id_to_pid.
2907 (inferior_command): Use inferior and thread pointers.
2908 * inferior.h (struct thread_info): Forward declare.
2909 (notice_new_inferior): Take a thread_info pointer instead of a
2910 ptid_t. All callers adjusted.
2911 (detach_inferior): Delete declaration.
2912 (exit_inferior, exit_inferior_silent): Take an inferior pointer
2913 instead of a pid. All callers adjusted.
2914 (gdb_inferior_id_to_pid, pid_to_gdb_inferior_id, in_inferior_list)
2915 (valid_gdb_inferior_id): Delete.
2916 * infrun.c (follow_fork_inferior, proceed_after_vfork_done)
2917 (handle_vfork_child_exec_or_exit, follow_exec): Adjust.
2918 (struct displaced_step_inferior_state) <pid>: Delete, replaced by
2919 ...
2920 <inf>: ... this new field.
2921 <step_ptid>: Delete, replaced by ...
2922 <step_thread>: ... this new field.
2923 (get_displaced_stepping_state): Take an inferior pointer instead
2924 of a pid. All callers adjusted.
2925 (displaced_step_in_progress_any_inferior): Adjust.
2926 (displaced_step_in_progress_thread): Take a thread pointer instead
2927 of a ptid_t. All callers adjusted.
2928 (displaced_step_in_progress, add_displaced_stepping_state): Take
2929 an inferior pointer instead of a pid. All callers adjusted.
2930 (get_displaced_step_closure_by_addr): Adjust.
2931 (remove_displaced_stepping_state): Take an inferior pointer
2932 instead of a pid. All callers adjusted.
2933 (displaced_step_prepare_throw, displaced_step_prepare)
2934 (displaced_step_fixup): Take a thread pointer instead of a ptid_t.
2935 All callers adjusted.
2936 (start_step_over): Adjust.
2937 (infrun_thread_ptid_changed): Remove bit updating ptids in the
2938 displaced step queue.
2939 (do_target_resume): Adjust.
2940 (fetch_inferior_event): Use inferior_thread.
2941 (context_switch, get_inferior_stop_soon): Take an
2942 execution_control_state pointer instead of a ptid_t. All callers
2943 adjusted.
2944 (switch_to_thread_cleanup): Delete.
2945 (stop_all_threads): Use scoped_restore_current_thread.
2946 * inline-frame.c: Include "gdbthread.h".
2947 (inline_state) <inline_state>: Take a thread pointer instead of a
2948 ptid_t. All callers adjusted.
2949 <ptid>: Delete, replaced by ...
2950 <thread>: ... this new field.
2951 (find_inline_frame_state): Take a thread pointer instead of a
2952 ptid_t. All callers adjusted.
2953 (skip_inline_frames, step_into_inline_frame)
2954 (inline_skipped_frames, inline_skipped_symbol): Take a thread
2955 pointer instead of a ptid_t. All callers adjusted.
2956 * inline-frame.h (skip_inline_frames, step_into_inline_frame)
2957 (inline_skipped_frames, inline_skipped_symbol): Likewise.
2958 * linux-fork.c (delete_checkpoint_command): Adjust to use thread
2959 pointers directly.
2960 * linux-nat.c (get_detach_signal): Likewise.
2961 * linux-thread-db.c (thread_from_lwp): New 'stopped' parameter.
2962 (thread_db_notice_clone): Adjust.
2963 (thread_db_find_new_threads_silently)
2964 (thread_db_find_new_threads_2, thread_db_find_new_threads_1): Take
2965 a thread pointer instead of a ptid_t. All callers adjusted.
2966 * mi/mi-cmd-var.c: Include "inferior.h".
2967 (mi_cmd_var_update_iter): Update to use thread pointers.
2968 * mi/mi-interp.c (mi_new_thread): Update to use the thread's
2969 inferior directly.
2970 (mi_output_running_pid, mi_inferior_count): Delete, bits factored
2971 out to ...
2972 (mi_output_running): ... this new function.
2973 (mi_on_resume_1): Adjust to use it.
2974 (mi_user_selected_context_changed): Adjust to use inferior_thread.
2975 * mi/mi-main.c (proceed_thread): Adjust to use thread pointers
2976 directly.
2977 (interrupt_thread_callback): : Adjust to use thread and inferior
2978 pointers.
2979 * proc-service.c: Include "gdbthread.h".
2980 (ps_pglobal_lookup): Adjust to use the thread's inferior directly.
2981 * progspace-and-thread.c: Include "inferior.h".
2982 * progspace.c: Include "inferior.h".
2983 * python/py-exitedevent.c (create_exited_event_object): Adjust to
2984 hold a reference to an inferior_object.
2985 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust to use
2986 inferior_thread.
2987 * python/py-inferior.c (struct inferior_object): Give the type a
2988 tag name instead of a typedef.
2989 (python_on_normal_stop): No need to check if the current thread is
2990 listed.
2991 (inferior_to_inferior_object): Change return type to
2992 inferior_object. All callers adjusted.
2993 (find_thread_object): Delete, bits factored out to ...
2994 (thread_to_thread_object): ... this new function.
2995 * python/py-infthread.c (create_thread_object): Use
2996 inferior_to_inferior_object.
2997 (thpy_is_stopped): Use thread pointer directly.
2998 (gdbpy_selected_thread): Use inferior_thread.
2999 * python/py-record-btrace.c (btpy_list_object) <ptid>: Delete
3000 field, replaced with ...
3001 <thread>: ... this new field. All users adjusted.
3002 (btpy_insn_or_gap_new): Drop const.
3003 (btpy_list_new): Take a thread pointer instead of a ptid_t. All
3004 callers adjusted.
3005 * python/py-record.c: Include "gdbthread.h".
3006 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
3007 a ptid_t. All callers adjusted.
3008 (gdbpy_current_recording): Use inferior_thread.
3009 * python/py-record.h (recpy_record_object) <ptid>: Delete
3010 field, replaced with ...
3011 <thread>: ... this new field. All users adjusted.
3012 (recpy_element_object) <ptid>: Delete
3013 field, replaced with ...
3014 <thread>: ... this new field. All users adjusted.
3015 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
3016 a ptid_t. All callers adjusted.
3017 * python/py-threadevent.c: Include "gdbthread.h".
3018 (get_event_thread): Use thread_to_thread_object.
3019 * python/python-internal.h (struct inferior_object): Forward
3020 declare.
3021 (find_thread_object, find_inferior_object): Delete declarations.
3022 (thread_to_thread_object, inferior_to_inferior_object): New
3023 declarations.
3024 * record-btrace.c: Include "inferior.h".
3025 (require_btrace_thread): Use inferior_thread.
3026 (record_btrace_frame_sniffer)
3027 (record_btrace_tailcall_frame_sniffer): Use inferior_thread.
3028 (get_thread_current_frame): Use scoped_restore_current_thread and
3029 switch_to_thread.
3030 (get_thread_current_frame): Use thread pointer directly.
3031 (record_btrace_replay_at_breakpoint): Use thread's inferior
3032 pointer directly.
3033 * record-full.c: Include "inferior.h".
3034 * regcache.c: Include "gdbthread.h".
3035 (get_thread_arch_regcache): Use the inferior's address space
3036 directly.
3037 (get_thread_regcache, registers_changed_thread): New.
3038 * regcache.h (get_thread_regcache(thread_info *thread)): New
3039 overload.
3040 (registers_changed_thread): New.
3041 (remote_target) <remote_detach_1>: Swap order of parameters.
3042 (remote_add_thread): <remote_add_thread>: Return the new thread.
3043 (get_remote_thread_info(ptid_t)): New overload.
3044 (remote_target::remote_notice_new_inferior): Use thread pointers
3045 directly.
3046 (remote_target::process_initial_stop_replies): Use
3047 thread_info::set_running.
3048 (remote_target::remote_detach_1, remote_target::detach)
3049 (extended_remote_target::detach): Adjust.
3050 * stack.c (frame_show_address): Use inferior_thread.
3051 * target-debug.h (target_debug_print_thread_info_pp): New.
3052 * target-delegates.c: Regenerate.
3053 * target.c (default_thread_address_space): Delete.
3054 (memory_xfer_partial_1): Use current_inferior.
3055 (target_detach): Use current_inferior.
3056 (target_thread_address_space): Delete.
3057 (generic_mourn_inferior): Use current_inferior.
3058 * target.h (struct target_ops) <thread_address_space>: Delete.
3059 (target_thread_address_space): Delete.
3060 * thread.c (init_thread_list): Use ALL_THREADS_SAFE. Use thread
3061 pointers directly.
3062 (delete_thread_1, delete_thread, delete_thread_silent): Take a
3063 thread pointer instead of a ptid_t. Adjust all callers.
3064 (ptid_to_global_thread_id, global_thread_id_to_ptid): Delete.
3065 (first_thread_of_process): Delete, replaced by ...
3066 (first_thread_of_inferior): ... this new function. All callers
3067 adjusted.
3068 (any_thread_of_process): Rename to ...
3069 (any_thread_of_inferior): ... this, and take an inferior pointer.
3070 (any_live_thread_of_process): Rename to ...
3071 (any_live_thread_of_inferior): ... this, and take an inferior
3072 pointer.
3073 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
3074 (value_in_thread_stack_temporaries)
3075 (get_last_thread_stack_temporary): Take a thread pointer instead
3076 of a ptid_t. Adjust all callers.
3077 (thread_info::set_running): New.
3078 (validate_registers_access): Use inferior_thread.
3079 (can_access_registers_ptid): Rename to ...
3080 (can_access_registers_thread): ... this, and take a thread
3081 pointer.
3082 (print_thread_info_1): Adjust to compare thread pointers instead
3083 of ptids.
3084 (switch_to_no_thread, switch_to_thread): Make extern.
3085 (scoped_restore_current_thread::~scoped_restore_current_thread):
3086 Use m_thread pointer directly.
3087 (scoped_restore_current_thread::scoped_restore_current_thread):
3088 Use inferior_thread.
3089 (thread_command): Use thread pointer directly.
3090 (thread_num_make_value_helper): Use inferior_thread.
3091 * top.c (execute_command): Use inferior_thread.
3092 * tui/tui-interp.c: Include "inferior.h".
3093 * varobj.c (varobj_create): Use inferior_thread.
3094 (value_of_root_1): Use find_thread_global_id instead of
3095 global_thread_id_to_ptid.
3096
33bab475
AH
30972018-06-21 Alan Hayward <alan.hayward@arm.com>
3098
3099 * regcache.c (readable_regcache::read_part): Avoid memcpy when
3100 possible.
3101 (regcache::write_part): Likewise.
3102 (readable_regcache::cooked_read_part): Update comment.
3103 (readable_regcache::cooked_write_part): Likewise.
3104 * regcache.h: (readable_regcache::read_part): Likewise.
3105 (regcache::write_part): Likewise.
3106
8363f9d5
RB
31072018-06-21 Richard Bunt <richard.bunt@arm.com>
3108 Dirk Schubert <dirk.schubert@arm.com>
3109
3110 * aarch64-linux-nat.c (post_attach): New.
3111 (aarch64_linux_nat_target::post_attach): Override post_attach to
3112 record the number of hardware debug registers.
3113
0d0b0ea2
TT
31142018-06-20 Tom Tromey <tom@tromey.com>
3115
3116 * python/py-param.c (add_setshow_generic): Make parameters const.
3117 (parmpy_init): Update.
3118
302abd6e
SM
31192018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
3120
3121 * regcache.h (regcache_cooked_read_ftype): Rename to...
3122 (register_read_ftype): ...this, change type to function_view.
3123 (class reg_buffer) <save>: Remove src parameter.
3124 (readonly_detached_regcache) <readonly_detached_regcache>: Make
3125 parameter non-const in first overload. Remove src parameter in
3126 second overload.
3127 * regcache.c (do_cooked_read): Remove.
3128 (readonly_detached_regcache::readonly_detached_regcache): Make
3129 parameter non-const, adjust call to other constructor.
3130 (reg_buffer::save): Remove src parameter.
3131 * frame.c (do_frame_register_read): Remove.
3132 (frame_save_as_regcache): Use lambda function.
3133 * ppc-linux-tdep.c (ppu2spu_unwind_register): Change type of src
3134 parameter to ppu2spu_data *.
3135 (ppu2spu_sniffer): Use lambda function.
3136
19f3f25f
SM
31372018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
3138
3139 * record-full.c (record_full_target::insert_breakpoint): Remove
3140 "struct" keyword, add const.
3141
d0ac1c44
SM
31422018-06-19 Simon Marchi <simon.marchi@ericsson.com>
3143
3144 * common/common-defs.h (PACKAGE_NAME, PACKAGE_VERSION,
3145 PACKAGE_STRING, PACKAGE_TARNAME): Undefine.
3146 * configure.ac: Remove AC_PREREQ, add missing quoting.
3147 * gnulib/configure.ac: Modernize usage of
3148 AC_INIT/AM_INIT_AUTOMAKE. Remove AC_PREREQ.
3149 * gnulib/update-gnulib.sh (AUTOCONF_VERSION): Bump to 2.69.
3150 (AUTOMAKE_VERSION): Bump to 1.15.1.
3151 * configure: Re-generate.
3152 * config.in: Re-generate.
3153 * aclocal.m4: Re-generate.
3154 * gnulib/aclocal.m4: Re-generate.
3155 * gnulib/config.in: Re-generate.
3156 * gnulib/configure: Re-generate.
3157 * gnulib/import/Makefile.in: Re-generate.
3158
6ae50267
PA
31592018-06-19 Pedro Alves <palves@redhat.com>
3160
3161 * minsyms.c (msym_prefer_to_msym_type): New, factored out from ...
3162 (lookup_minimal_symbol_by_pc_section): ... here with
3163 gdb_assert_not_reached added.
3164
61b04dd0
PA
31652018-06-19 Pedro Alves <palves@redhat.com>
3166
3167 * inline-frame.c (stopped_by_user_bp_inline_frame): Replace PC
3168 parameter with a block parameter. Compare location's block symbol
3169 with the frame's block instead of addresses.
3170 (skip_inline_frames): Pass the current block instead of the
3171 frame's address. Break out as soon as we determine the frame
3172 should not be skipped.
3173
f709fabb
TT
31742018-06-18 Tom Tromey <tom@tromey.com>
3175
3176 * solib-aix.c (solib_aix_get_section_offsets): Return
3177 unique_xmalloc_ptr.
3178 (solib_aix_solib_create_inferior_hook): Update.
3179
668eb2f0
TT
31802018-06-18 Tom Tromey <tom@tromey.com>
3181
3182 * solib-darwin.c (darwin_current_sos): Use unique_xmalloc_ptr.
3183
309822ca
TT
31842018-06-18 Tom Tromey <tom@tromey.com>
3185
3186 * solib-frv.c (frv_relocate_main_executable): Use
3187 unique_xmalloc_ptr.
3188 * solib-dsbt.c (dsbt_relocate_main_executable): Use
3189 unique_xmalloc_ptr.
3190
06424eac
TT
31912018-06-18 Tom Tromey <tom@tromey.com>
3192
3193 * objfiles.h (inhibit_section_map_updates): Update.
3194 (resume_section_map_updates, resume_section_map_updates_cleanup):
3195 Remove.
3196 * solib-svr4.c (svr4_handle_solib_event): Update.
3197 * objfiles.c (inhibit_section_map_updates): Return
3198 scoped_restore_tmpl<int>.
3199 (resume_section_map_updates, resume_section_map_updates_cleanup):
3200 Remove.
3201
b4be9fad
TT
32022018-06-18 Tom Tromey <tom@tromey.com>
3203
3204 * valprint.h (read_string): Update.
3205 * valprint.c (read_string): Change type of "buffer".
3206 (val_print_string): Update.
3207 * python/py-value.c (valpy_string): Update.
3208 * language.h (struct language_defn) <la_get_string>: Change
3209 type of "buffer".
3210 (default_get_string, c_get_string): Update.
3211 * language.c (default_get_string): Change type of "buffer".
3212 * guile/scm-value.c (gdbscm_value_to_string): Update.
3213 * c-lang.c (c_get_string): Change type of "buffer".
3214
3f0dbd67
TT
32152018-06-18 Tom Tromey <tom@tromey.com>
3216
3217 * ser-mingw.c (struct pipe_state_destroyer): New.
3218 (pipe_state_up): New typedef.
3219 (cleanup_pipe_state): Remove.
3220 (pipe_windows_open): Use pipe_state_up. Don't release argv.
3221
69d340c6
TT
32222018-06-18 Tom Tromey <tom@tromey.com>
3223
3224 * rust-lang.h (rust_yyerror): Don't declare.
3225 * rust-lang.c (rust_language_defn): Update.
3226 * rust-exp.y (yyerror): Now static.
3227 * parse.c (parse_exp_in_context_1): Update.
3228 * p-lang.h (p_yyerror): Don't declare.
3229 * p-lang.c (p_language_defn): Update.
3230 * p-exp.y (yyerror): Now static.
3231 * opencl-lang.c (opencl_language_defn): Update.
3232 * objc-lang.c (objc_language_defn): Update.
3233 * m2-lang.h (m2_yyerror): Don't declare.
3234 * m2-lang.c (m2_language_defn): Update.
3235 * m2-exp.y (yyerror): Now static.
3236 * language.h (struct language_defn) <la_error>: Remove.
3237 * language.c (unk_lang_error): Remove.
3238 (unknown_language_defn, auto_language_defn): Remove.
3239 * go-lang.h (go_yyerror): Don't declare.
3240 * go-lang.c (go_language_defn): Update.
3241 * go-exp.y (yyerror): Now static.
3242 * f-lang.h (f_yyerror): Don't declare.
3243 * f-lang.c (f_language_defn): Update.
3244 * f-exp.y (yyerror): Now static.
3245 * d-lang.h (d_yyerror): Don't declare.
3246 * d-lang.c (d_language_defn): Update.
3247 * d-exp.y (yyerror): Now static.
3248 * c-lang.h (c_yyerror): Don't declare.
3249 * c-lang.c (c_language_defn, cplus_language_defn)
3250 (asm_language_defn, minimal_language_defn): Update.
3251 * c-exp.y (yyerror): Now static.
3252 * ada-lang.h (ada_yyerror): Don't declare.
3253 * ada-lang.c (ada_language_defn): Update.
3254 * ada-exp.y (yyerror): Now static.
3255
e9902bfc
AH
32562018-06-18 Alan Hayward <alan.hayward@arm.com>
3257
3258 * aarch64-linux-nat.c (fetch_sveregs_from_thread): New function.
3259 (store_sveregs_to_thread): Likewise.
3260 (aarch64_linux_fetch_inferior_registers): Check for SVE.
3261 (aarch64_linux_store_inferior_registers): Likewise.
3262 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs): New
3263 function.
3264 (aarch64_sve_regs_copy_to_regcache): Likewise.
3265 (aarch64_sve_regs_copy_from_regcache): Likewise.
3266 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_sveregs): New
3267 declaration.
3268 (aarch64_sve_regs_copy_to_regcache): Likewise.
3269 (aarch64_sve_regs_copy_from_regcache): Likewise.
3270 (sve_context): Structure from Linux headers.
3271 (SVE_SIG_ZREGS_SIZE): Define from Linux headers.
3272 (SVE_SIG_ZREG_SIZE): Likewise.
3273 (SVE_SIG_PREG_SIZE): Likewise.
3274 (SVE_SIG_FFR_SIZE): Likewise.
3275 (SVE_SIG_REGS_OFFSET): Likewise.
3276 (SVE_SIG_ZREGS_OFFSET): Likewise.
3277 (SVE_SIG_ZREG_OFFSET): Likewise.
3278 (SVE_SIG_ZREGS_SIZE): Likewise.
3279 (SVE_SIG_PREGS_OFFSET): Likewise.
3280 (SVE_SIG_PREG_OFFSET): Likewise.
3281 (SVE_SIG_PREGS_SIZE): Likewise.
3282 (SVE_SIG_FFR_OFFSET): Likewise.
3283 (SVE_SIG_REGS_SIZE): Likewise.
3284 (SVE_SIG_CONTEXT_SIZE): Likewise.
3285 (SVE_PT_REGS_MASK): Likewise.
3286 (SVE_PT_REGS_FPSIMD): Likewise.
3287 (SVE_PT_REGS_SVE): Likewise.
3288 (SVE_PT_VL_INHERIT): Likewise.
3289 (SVE_PT_VL_ONEXEC): Likewise.
3290 (SVE_PT_REGS_OFFSET): Likewise.
3291 (SVE_PT_FPSIMD_OFFSET): Likewise.
3292 (SVE_PT_FPSIMD_SIZE): Likewise.
3293 (SVE_PT_SVE_ZREG_SIZE): Likewise.
3294 (SVE_PT_SVE_PREG_SIZE): Likewise.
3295 (SVE_PT_SVE_FFR_SIZE): Likewise.
3296 (SVE_PT_SVE_FPSR_SIZE): Likewise.
3297 (SVE_PT_SVE_FPCR_SIZE): Likewise.
3298 (__SVE_SIG_TO_PT): Likewise.
3299 (SVE_PT_SVE_OFFSET): Likewise.
3300 (SVE_PT_SVE_ZREGS_OFFSET): Likewise.
3301 (SVE_PT_SVE_ZREG_OFFSET): Likewise.
3302 (SVE_PT_SVE_ZREGS_SIZE): Likewise.
3303 (SVE_PT_SVE_PREGS_OFFSET): Likewise.
3304 (SVE_PT_SVE_PREG_OFFSET): Likewise.
3305 (SVE_PT_SVE_PREGS_SIZE): Likewise.
3306 (SVE_PT_SVE_FFR_OFFSET): Likewise.
3307 (SVE_PT_SVE_FPSR_OFFSET): Likewise.
3308 (SVE_PT_SVE_FPCR_OFFSET): Likewise.
3309 (SVE_PT_SVE_SIZE): Likewise.
3310 (SVE_PT_SIZE): Likewise.
3311 (HAS_SVE_STATE): New define.
3312
17a1cc89
AH
33132018-06-18 Alan Hayward <alan.hayward@arm.com>
3314
3315 * nat/aarch64-sve-linux-sigcontext.h: New file.
3316 * nat/aarch64-sve-linux-ptrace.h (SVE_VQ_BYTES): Move to
3317 new files.
3318 (SVE_VQ_MIN): Likewise.
3319 (SVE_VQ_MAX): Likewise.
3320 (SVE_VL_MIN): Likewise.
3321 (SVE_VL_MAX): Likewise.
3322 (SVE_NUM_ZREGS): Likewise.
3323 (SVE_NUM_PREGS): Likewise.
3324 (sve_vl_valid): Likewise.
3325 (struct user_sve_header): Likewise.
3326
7010835a
AB
33272018-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
3328 Richard Bunt <Richard.Bunt@arm.com>
3329
3330 * linux-nat.c (stop_wait_callback): Don't discard SIGSTOP if it
3331 was requested by GDB.
3332
479b3ef4
TV
33332018-06-15 Tom de Vries <tdevries@suse.de>
3334
3335 * MAINTAINERS (Write After Approval): Add Tom de Vries.
3336
8199b8f4
SM
33372018-06-14 Simon Marchi <simon.marchi@polymtl.ca>
3338
3339 * gnulib/update-gnulib.sh: Print expected versions of
3340 autoconf/aclocal.
3341
55c748a1
SM
33422018-06-14 Simon Marchi <simon.marchi@ericsson.com>
3343
3344 * arch-utils.c (default_type_align): Use type_length_units.
3345 * gdbtypes.c (type_align): Use type_length_units.
3346
87a8eca7
PW
33472018-06-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3348
3349 * cli/cli-script.c (_initialize_cli_script): Fix online documentation
3350 of 'define' command.
3351
5d9a0608
TV
33522018-06-14 Tom de Vries <tdevries@suse.de>
3353
3354 PR cli/22573
3355 * infcmd.c (print_return_value_1): Use get_user_print_options instead of
3356 get_no_prettyformat_print_options.
3357
ab89b5a5
SM
33582018-06-13 Simon Marchi <simon.marchi@ericsson.com>
3359
3360 * sparc-nat.h: Include target.h.
3361 * sparc64-linux-nat.c (class sparc64_linux_nat_target)
3362 <fetch_registers>: Remove this argument in function call.
3363 <store_registers>: Remove this argument in function call, remove
3364 extra semicolon.
3365 <low_forget_process>: Call sparc64_forget_process instead of
3366 sparc_forget_process.
3367
62c808ae
RO
33682018-06-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3369
3370 * procfs.c (_initialize_procfs): Use add_inf_child_target.
3371 (procfs_target::make_corefile_notes): Adjust to new
3372 target_read_alloc return type.
3373
1840d81a
AB
33742018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
3375 Stephen Roberts <stephen.roberts@arm.com>
3376
3377 PR gdb/22882
3378 * infrun.c (fetch_inferior_event): If GDB is not proceeding then
3379 run INF_EXEC_COMPLETE handler, even when not calling normal_stop.
3380 Move should_notify_stop local into more inner scope.
3381
9516f85a
AB
33822018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
3383 Stephen Roberts <stephen.roberts@arm.com>
3384
3385 PR gdb/22882
3386 * infrun.c (resume_1): Add call to mark_async_event_handler.
3387
defd2172
AB
33882018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
3389
3390 * infrun.c (do_target_wait): Change old version of $pc printed.
3391
7b23e087
SM
33922018-06-11 Simon Marchi <simon.marchi@ericsson.com>
3393
3394 * dwarf2read.c (read_index_from_section): Rename to...
3395 (read_gdb_index_from_section): ... this, update all callers.
3396 (dwarf2_read_index): Rename to...
3397 (dwarf2_read_gdb_index): ... this, update all callers.
3398
69c67a0b
JDA
33992018-06-11 John David Anglin <danglin@gcc.gnu.org>
3400
3401 * gdb/hppa-linux-nat.c
3402 (hppa_linux_nat_target::fetch_inferior_registers): Rename to
3403 hppa_linux_nat_target::fetch_registers.
3404
65d4cada
AH
34052018-06-11 Alan Hayward <alan.hayward@arm.com>
3406
3407 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Add mappings.
3408 * aarch64-tdep.h (AARCH64_DWARF_SVE_VG): Add define.
3409 (AARCH64_DWARF_SVE_FFR): Likewise.
3410 (AARCH64_DWARF_SVE_P0): Likewise.
3411 (AARCH64_DWARF_SVE_Z0): Likewise.
3412
f868386e
AH
34132018-06-11 Alan Hayward <alan.hayward@arm.com>
3414
3415 * common/common-regcache.h (raw_compare): New function.
3416 * regcache.c (regcache::raw_compare): Likewise.
3417 * regcache.h (regcache::raw_compare): New declaration.
3418
9c861883
AH
34192018-06-11 Alan Hayward <alan.hayward@arm.com>
3420
3421 * common/common-regcache.h (reg_buffer_common): New structure.
3422 * regcache.c (reg_buffer::invalidate): Move from detached_regcache.
3423 (reg_buffer::raw_supply): Likewise.
3424 (reg_buffer::raw_supply_integer): Likewise.
3425 (reg_buffer::raw_supply_zeroed): Likewise.
3426 (reg_buffer::raw_collect): Likewise.
3427 (reg_buffer::raw_collect_integer): Likewise.
3428 * regcache.h (reg_buffer::invalidate): Move from detached_regcache.
3429 (reg_buffer::raw_supply): Likewise.
3430 (reg_buffer::raw_supply_integer): Likewise.
3431 (reg_buffer::raw_supply_zeroed): Likewise.
3432 (reg_buffer::raw_collect): Likewise.
3433 (reg_buffer::raw_collect_integer): Likewise.
3434
953edf2b
TT
34352018-06-10 Tom Tromey <tom@tromey.com>
3436
3437 * remote.c (stop_reply_p): Remove typedef. Don't declare queue.
3438 (class remote_state) <stop_reply_queue>: Now std::vector.
3439 (remote_state::~remote_state)
3440 (remote_target::stop_reply_queue_length): Update.
3441 (struct queue_iter_param, remove_child_of_pending_fork)
3442 (struct check_pending_event_prevents_wildcard_vcont_callback_data)
3443 (check_pending_event_prevents_wildcard_vcont_callback)
3444 (remove_stop_reply_for_inferior)
3445 (remove_stop_reply_of_remote_state)
3446 (remote_notif_remove_once_on_match)
3447 (stop_reply_match_ptid_and_ws)
3448 (remote_kill_child_of_pending_fork): Remove.
3449 (remote_target::remove_new_fork_children)
3450 (remote_target::check_pending_events_prevent_wildcard_vcont)
3451 (remote_target::discard_pending_stop_replies)
3452 (remote_target::discard_pending_stop_replies_in_queue)
3453 (remote_target::remote_notif_remove_queued_reply)
3454 (remote_target::queued_stop_reply)
3455 (remote_target::push_stop_reply, remote_target::peek_stop_reply)
3456 (remote_target::wait, remote_target::kill_new_fork_children)
3457 (remote_target::async): Update.
3458
1ddbba9d
TT
34592018-06-10 Tom Tromey <tom@tromey.com>
3460
3461 * record-full.c (record_full_arch_list_cleanups): Remove.
3462 (record_full_message): Use try/catch.
3463 (record_full_wait_cleanups): Remove.
3464 (record_full_wait_1): Use try/catch.
3465 (record_full_restore): Likewise.
3466
219605fd
TT
34672018-06-10 Tom Tromey <tom@tromey.com>
3468
3469 * record-full.c (record_full_breakpoint_p): Remove typedef. Don't
3470 declare VEC. Add constructor.
3471 <in_target_beneath>: Now bool.
3472 (record_full_breakpoints): Now a std::vector, static.
3473 (record_full_sync_record_breakpoints)
3474 (record_full_init_record_breakpoints)
3475 (record_full_target::insert_breakpoint)
3476 (record_full_target::remove_breakpoint): Update. Don't use XNEW.
3477
71b73764
SM
34782018-06-10 Simon Marchi <simon.marchi@polymtl.ca>
3479
3480 * dwarf2read.c (process_cu_includes): Remove struct keyword.
3481 * serial.c (serial_interface_lookup): Remove struct keyword.
3482
4360561f
TT
34832018-06-10 Tom Tromey <tom@tromey.com>
3484
3485 * procfs.c (procfs_target::xfer_partial): Use "beneath" as a
3486 method.
3487 * nto-procfs.c (nto_procfs_target::xfer_partial): Use "beneath" as
3488 a method.
3489 * go32-nat.c (go32_nat_target::xfer_partial): Use "beneath" as a
3490 method.
3491 * arm-linux-nat.c (arm_linux_nat_target::read_description): Use
3492 "beneath" as a method.
3493 * arm-fbsd-nat.c (arm_fbsd_nat_target::read_description):
3494 Use "beneath" as a method.
3495
d14b92bf
TT
34962018-06-10 Tom Tromey <tom@tromey.com>
3497
3498 * tracefile.c (struct trace_file_writer_deleter): New.
3499 <operator()>: Rename from trace_file_writer_xfree.
3500 (trace_file_writer_up): New typedef.
3501 (tsave_command, trace_save_tfile, trace_save_ctf): Update.
3502
835dcf92
SM
35032018-06-09 Simon Marchi <simon.marchi@ericsson.com>
3504
3505 * regcache.h (reg_buffer) <~reg_buffer>: Use default destructor.
3506 <m_registers, m_register_status>: Change type to
3507 std::unique_ptr.
3508 * regcache.c (reg_buffer::reg_buffer): Use new instead of
3509 XCNEWVEC.
3510
aac0d564
SM
35112018-06-09 Simon Marchi <simon.marchi@ericsson.com>
3512
3513 * common/common-regcache.h (enum register_status): Add
3514 underlying type "signed char".
3515 * regcache.h (reg_buffer) <m_register_status>: Change type to
3516 register_status *.
3517 * regcache.c (reg_buffer::reg_buffer): Alocate arrays of
3518 register_status instead of signed char.
3519 (reg_buffer::save): Use REG_UNKNOWN instead of 0.
3520 (reg_buffer::get_register_status): Remove cast.
3521 (readable_regcache::raw_read): Remove cast.
3522 (readable_regcache::cooked_read): Remove cast.
3523
77ad7394
TT
35242018-06-09 Tom Tromey <tom@tromey.com>
3525
3526 * source.c (reverse_search_command, forward_search_command): Use
3527 scoped_fd.
3528
191cca63
TT
35292018-06-09 Tom Tromey <tom@tromey.com>
3530
3531 * serial.c (serial_ops_p): Remove typedef. Don't declare VEC.
3532 (serial_ops_list): Now static, std::vector.
3533 (serial_interface_lookup, serial_add_interface): Update.
3534
c5d0225d
TT
35352018-06-09 Tom Tromey <tom@tromey.com>
3536
3537 * dwarf2read.c (process_cu_includes): Update.
3538 (process_full_comp_unit): Update.
3539 * dwarf2read.h (struct dwarf2_per_objfile) <just_read_cus>: Now a
3540 std::vector.
3541
aeab5128
PK
35422018-06-08 Paul Koning <paul_koning@dell.com>
3543
3544 PR gdb/23252
3545
3546 * python/python.c (do_start_initialization):
3547 Avoid call to internal Python API.
3548 (init__gdb_module): New function.
3549
5045b3d7
GB
35502018-06-08 Gary Benson <gbenson@redhat.com>
3551
3552 * linux-thread-db.c (valprint.h): New include.
3553 (struct check_thread_db_info): New structure.
3554 (check_thread_db_on_load, tdb_testinfo): New static globals.
3555 (check_thread_db, check_thread_db_callback): New functions.
3556 (try_thread_db_load_1): Run integrity checks if requested.
3557 (maintenance_check_libthread_db): New function.
3558 (_initialize_thread_db): Register "maint check libthread-db"
3559 and "maint set/show check-libthread-db".
3560 * NEWS: Mention the above new commands.
3561
2f4f025f
TT
35622018-06-08 Tom Tromey <tom@tromey.com>
3563
3564 * windows-nat.c (windows_nat_target::xfer_partial): "beneath" is
3565 now a method.
3566
343b0027
TT
35672018-06-08 Tom Tromey <tom@tromey.com>
3568
3569 * btrace.c (parse_xml_raw): Use gdb::unique_xmalloc_ptr.
3570
8dcc53b3
TT
35712018-06-08 Tom Tromey <tom@tromey.com>
3572
3573 * common/btrace-common.h (struct btrace_data): Add constructor,
3574 destructor, move assignment operator.
3575 <empty, clear, fini>: New methods.
3576 <format>: Initialize.
3577 (btrace_data_init, btrace_data_fini, btrace_data_clear)
3578 (btrace_data_empty): Don't declare.
3579 * common/btrace-common.c (btrace_data_init): Remove.
3580 (btrace_data::fini): Rename from btrace_data_fini.
3581 (btrace_data::empty): Rename from btrace_data_empty.
3582 (btrace_data::clear): Rename from btrace_data_clear. Return
3583 bool.
3584 * btrace.h (make_cleanup_btrace_data): Don't declare.
3585 * btrace.c (btrace_add_pc, btrace_stitch_trace, btrace_clear)
3586 (parse_xml_btrace): Update.
3587 (do_btrace_data_cleanup, make_cleanup_btrace_data): Remove.
3588 (maint_btrace_clear_packet_history_cmd): Update.
3589
a1740ee1
PA
35902018-06-07 Pedro Alves <palves@redhat.com>
3591
3592 * target.h (target_ops) <beneath>: Now a method. All references
3593 updated.
3594 (class target_stack): New.
3595 * target.c (g_target_stack): New.
3596 (g_current_top_target): Delete.
3597 (current_top_target): Get the top target out of g_target_stack.
3598 (target_stack::push, target_stack::unpush): New.
3599 (push_target, unpush_target): Reimplement.
3600 (target_is_pushed): Reimplement in terms of g_target_stack.
3601 (target_ops::beneath, target_stack::find_beneath): New.
3602
d6ca69cd
PA
36032018-06-07 Pedro Alves <palves@redhat.com>
3604
3605 * target.h (find_target_beneath): Delete declaration.
3606 * target.c (find_target_beneath): Delete definition.
3607 * aix-thread.c: All callers of find_target_beneath adjusted to
3608 call target_ops::beneath instead.
3609 * bsd-uthread.c: Likewise.
3610 * linux-thread-db.c: Likewise.
3611 * ravenscar-thread.c: Likewise.
3612 * sol-thread.c: Likewise.
3613 * spu-multiarch.c: Likewise.
3614
b6a8c27b
PA
36152018-06-07 Pedro Alves <palves@redhat.com>
3616
3617 * target.h (target_ops) <beneath>: Now a method. All references
3618 updated.
3619 (target_ops) <m_beneath>: New.
3620 * target.c (target_ops::beneath): New.
3621 * corelow.c: Adjust all references to target_ops::beneath.
3622 * linux-thread-db.c: Likewise.
3623 * make-target-delegates: Likewise.
3624 * record-btrace.c: Likewise.
3625 * record-full.c: Likewise.
3626 * remote.c: Likewise.
3627 * target.c: Likewise.
3628 * target-delegates.c: Regenerate.
3629
8b88a78e
PA
36302018-06-07 Pedro Alves <palves@redhat.com>
3631
3632 * target.h (target_stack): Delete.
3633 (current_top_target): Declare function.
3634 * target.c (target_stack): Delete.
3635 (g_current_top_target): New.
3636 (current_top_target): New function.
3637 * auxv.c: Use current_top_target instead of target_stack
3638 throughout.
3639 * avr-tdep.c: Likewise.
3640 * breakpoint.c: Likewise.
3641 * corefile.c: Likewise.
3642 * elfread.c: Likewise.
3643 * eval.c: Likewise.
3644 * exceptions.c: Likewise.
3645 * frame.c: Likewise.
3646 * gdbarch-selftests.c: Likewise.
3647 * gnu-v3-abi.c: Likewise.
3648 * ia64-tdep.c: Likewise.
3649 * ia64-vms-tdep.c: Likewise.
3650 * infcall.c: Likewise.
3651 * infcmd.c: Likewise.
3652 * infrun.c: Likewise.
3653 * linespec.c: Likewise.
3654 * linux-tdep.c: Likewise.
3655 * minsyms.c: Likewise.
3656 * ppc-linux-nat.c: Likewise.
3657 * ppc-linux-tdep.c: Likewise.
3658 * procfs.c: Likewise.
3659 * regcache.c: Likewise.
3660 * remote.c: Likewise.
3661 * rs6000-tdep.c: Likewise.
3662 * s390-linux-nat.c: Likewise.
3663 * s390-tdep.c: Likewise.
3664 * solib-aix.c: Likewise.
3665 * solib-darwin.c: Likewise.
3666 * solib-dsbt.c: Likewise.
3667 * solib-spu.c: Likewise.
3668 * solib-svr4.c: Likewise.
3669 * solib-target.c: Likewise.
3670 * sparc-tdep.c: Likewise.
3671 * sparc64-tdep.c: Likewise.
3672 * spu-tdep.c: Likewise.
3673 * symfile.c: Likewise.
3674 * symtab.c: Likewise.
3675 * target-descriptions.c: Likewise.
3676 * target-memory.c: Likewise.
3677 * target.c: Likewise.
3678 * target.h: Likewise.
3679 * tracefile-tfile.c: Likewise.
3680 * tracepoint.c: Likewise.
3681 * valops.c: Likewise.
3682 * valprint.c: Likewise.
3683 * value.c: Likewise.
3684 * windows-tdep.c: Likewise.
3685 * mi/mi-main.c: Likewise.
3686
c7110220
TT
36872018-06-07 Tom Tromey <tom@tromey.com>
3688
3689 * valprint.h (build_address_symbolic): Declare.
3690 * printcmd.c (print_address_symbolic): Update.
3691 (build_address_symbolic): Change "name" and "filename" to
3692 std::string.
3693 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3694 Update.
3695 * defs.h (build_address_symbolic): Remove declaration.
3696
63bad7b6
AH
36972018-06-07 Alan Hayward <alan.hayward@arm.com>
3698
3699 * aarch64-tdep.c (AARCH64_SVE_V0_REGNUM): Add define.
3700 (aarch64_vnv_type): Add function.
3701 (aarch64_pseudo_register_name): Add V regs for SVE.
3702 (aarch64_pseudo_register_type): Likewise.
3703 (aarch64_pseudo_register_reggroup_p): Likewise.
3704 (aarch64_pseudo_read_value_2): Use V0 offset for SVE
3705 (aarch64_pseudo_read_value): Add V regs for SVE.
3706 (aarch64_pseudo_write_2): Use V0 offset for SVE
3707 (aarch64_pseudo_write): Add V regs for SVE.
3708 * aarch64-tdep.h (struct gdbarch_tdep): Add vnv_type.
3709
13e3c608
SDJ
37102018-06-06 Sergio Durigan Junior <sergiodj@redhat.com>
3711
3712 * arch/aarch64.h (sve_vq_from_vl): Guard with #ifndef.
3713 (sve_vl_from_vq): Likewise.
3714
c61b06a1
TT
37152018-06-05 Tom Tromey <tom@tromey.com>
3716
3717 * cli/cli-cmds.c (show_version): Update.
3718 * top.c (print_gdb_version): Add "interactive" parameter.
3719 Update.
3720 * main.c (captured_main_1): Update.
3721 * top.h (print_gdb_version): Add "interactive" parameter and a
3722 comment.
3723
115f7325
DM
37242018-06-05 David Malcolm <dmalcolm@redhat.com>
3725
3726 * common/enum-flags.h: Add trailing semicolon to example in
3727 comment.
3728
eb6af809
TT
37292018-06-05 Tom Tromey <tom@tromey.com>
3730
3731 PR cli/12326:
3732 * NEWS: Add entry about pager.
3733 * utils.c (pagination_disabled_for_command): New global.
3734 (prompt_for_continue): Allow "c" response to prompt.
3735 (reinitialize_more_filter): Clear
3736 pagination_disabled_for_command.
3737 (fputs_maybe_filtered): Check pagination_disabled_for_command.
3738
54d343a2
TT
37392018-06-04 Tom Tromey <tom@tromey.com>
3740
3741 * ada-lang.h (ada_lookup_symbol_list): Update.
3742 * ada-lang.c (resolve_subexp): Update.
3743 (symbols_are_identical_enums): Change type of syms. Remove nsyms
3744 parameter.
3745 (remove_extra_symbols, remove_irrelevant_renamings): Likewise.
3746 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Change
3747 results parameter to std::vector.
3748 (ada_iterate_over_symbols, ada_lookup_symbol, get_var_value):
3749 Update.
3750 * ada-exp.y (block_lookup): Update.
3751 (select_possible_type_sym): Change type of syms. Remove nsyms
3752 parameter.
3753 (write_var_or_type, write_name_assoc): Update.
3754
178d6a63
JB
37552018-06-04 Joel Brobecker <brobecker@adacore.com>
3756
3757 * windows-nat.c (windows_nat_target::xfer_partial): Return
3758 TARGET_XFER_E_IO if we need to delegate to the target beneath
3759 but BENEATH is NULL.
3760
baf00c2d
SM
37612018-06-04 Simon Marchi <simon.marchi@ericsson.com>
3762
3763 * Makefile.in (config.status): Add configure.nat as a
3764 dependency.
3765
214b073c
TT
37662018-06-04 Tom Tromey <tom@tromey.com>
3767
3768 * cp-name-parser.y (cpname_state): Add method declarations.
3769 (HANDLE_QUAL): Update.
3770 (cpname_state::d_grab, cpname_state::fill_comp)
3771 (cpname_state::make_operator, cpname_state::make_dtor)
3772 (cpname_state::make_builtin_type, cpname_state::make_name)
3773 (cpname_state::d_qualify, cpname_state::d_int_type)
3774 (cpname_state::d_unary, cpname_state::d_binary): Now methods.
3775 (%union): Move earlier.
3776
62b74cb8
AH
37772018-06-04 Alan Hayward <alan.hayward@arm.com>
3778
3779 * elfread.c (elf_symfile_segments): Use ELF_SECTION_IN_SEGMENT.
3780
3c5cd5c3
AH
37812018-06-04 Alan Hayward <alan.hayward@arm.com>
3782
3783 * aarch64-tdep.c (aarch64_pseudo_read_value_1): New helper func.
3784 (aarch64_pseudo_write_1): Likewise.
3785 (aarch64_pseudo_read_value): Use helper.
3786 (aarch64_pseudo_write): Likewise.
3787
59f413d5
PA
37882018-06-04 Pedro Alves <palves@redhat.com>
3789
3790 * darwin-nat.c (darwin_ops): Delete.
3791 (darwin_attach_pid): Use get_native_target.
3792
1332a140
AH
37932018-06-04 Alan Hayward <alan.hayward@arm.com>
3794
3795 * aarch64-tdep.c (aarch64_get_tdesc_vq): Use uint64_t for VQ.
3796 * aarch64-tdep.h (struct gdbarch_tdep): Likewise.
3797
ba2d2bb2
AH
37982018-06-04 Alan Hayward <alan.hayward@arm.com>
3799
3800 * aarch64-linux-nat.c (aarch64_linux_read_description): Support SVE.
3801 * aarch64-tdep.c (aarch64_get_tdesc_vq): New function.
3802 (aarch64_gdbarch_init): Check for SVE.
3803 * aarch64-tdep.h (gdbarch_tdep::has_sve): New function.
3804
38052018-06-04 Alan Hayward <alan.hayward@arm.com>
39bfb937
AH
3806
3807 * aarch64-tdep.c (aarch64_read_description): Use uint64_t for VQ.
3808 * aarch64-tdep.h (aarch64_read_description): Likewise.
3809 * arch/aarch64.c (aarch64_create_target_description): Likewise.
3810 * arch/aarch64.h (aarch64_create_target_description): Likewise.
3811 * features/aarch64-sve.c (create_feature_aarch64_sve): Likewise.
3812 * nat/aarch64-sve-linux-ptrace.c(aarch64_sve_get_vq): Likewise.
3813 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_vq): Likewise.
3814
41c60b4b
SM
38152018-06-02 Simon Marchi <simon.marchi@ericsson.com>
3816
3817 * value.c (value_fetch_lazy_bitfield): New.
3818 (value_fetch_lazy_memory): New.
3819 (value_fetch_lazy_register): New.
3820 (value_fetch_lazy): Factor out to smaller functions.
3821
7b640f72
TT
38222018-06-01 Tom Tromey <tom@tromey.com>
3823
3824 * cp-name-parser.y (backslashable, represented): Now const.
3825
98e69eb3
TT
38262018-06-01 Tom Tromey <tom@tromey.com>
3827
3828 * cp-name-parser.y: Include parser-defs.h.
3829 (parser_fprintf): Remove declaration.
3830
49265499
TT
38312018-06-01 Tom Tromey <tom@tromey.com>
3832
3833 * cp-name-parser.y: Use %pure-parser, %lex-param, and
3834 %parse-param.
3835 (lexptr, prev_lexptr, error_lexptr, global_errmsg, demangle_info)
3836 (global_result): Remove globals.
3837 (struct cpname_state): New.
3838 (yyparse): Don't declare.
3839 (yylex, yyerror): Move declarations after %union.
3840 (d_grab, fill_comp, make_operator, make_dtor, make_builtin_type)
3841 (make_name): Add state parameter.
3842 Update all callers.
3843 (d_qualify, d_int_type, d_unary, d_binary, parse_number) Add state
3844 parameter.
3845 (HANDLE_QUAL, HANDLE_SPECIAL, HANDLE_TOKEN2, HANDLE_TOKEN3):
3846 Update.
3847 (yylex): Add lvalp, state parameters.
3848 (yyerror): Add state parameter.
3849 (cp_demangled_name_to_comp): Update.
3850
55b6c984
TT
38512018-06-01 Tom Tromey <tom@tromey.com>
3852
3853 * cp-name-parser.y (parser_fprintf): Declare.
3854 (GDB_YY_REMAP_PREFIX): Define.
3855 Include yy-remap.h. Don't redefine yy* identifiers.
3856
3513a6bb
TT
38572018-06-01 Tom Tromey <tom@tromey.com>
3858
3859 * python/py-type.c (typy_legacy_template_argument): Update.
3860 * cp-support.h (cp_demangled_name_to_comp): Update.
3861 * cp-name-parser.y (cp_demangled_name_to_comp): Change errmsg
3862 parameter to be a "std::string *".
3863 (main): Update.
3864
e9cb46ab
L
38652018-06-01 H.J. Lu <hongjiu.lu@intel.com>
3866
3867 * ada-lex.l: Include "diagnostics.h" instead of
3868 "common/diagnostics.h".
3869 * unittests/environ-selftests.c: Likewise.
3870 * common/diagnostics.h: Moved to ../include.
3871
8e817061
JB
38722018-06-01 Joel Brobecker <brobecker@adacore.com>
3873
3874 * breakpoint.c (breakpoint_re_set): Temporarily force language_mode
3875 to language_mode_manual while calling breakpoint_re_set_one.
3876
a737d952
TT
38772018-06-01 Tom Tromey <tom@tromey.com>
3878
3879 * valops.c (value_cast_structs, destructor_name_p): Update.
3880 * symtab.c (gdb_mangle_name): Update.
3881 * stabsread.c (define_symbol, read_cpp_abbrev, read_baseclasses):
3882 Update.
3883 * p-valprint.c (pascal_object_is_vtbl_ptr_type)
3884 (pascal_object_print_value_fields, pascal_object_print_value):
3885 Update.
3886 * p-typeprint.c (pascal_type_print_derivation_info): Update.
3887 * linespec.c (find_methods): Update.
3888 * gdbtypes.h (type_name_no_tag): Remove.
3889 (type_name_or_error): Rename from type_name_no_tag_or_error.
3890 * gdbtypes.c (type_name_no_tag): Remove.
3891 (type_name_or_error): Rename from type_name_no_tag_or_error.
3892 (lookup_struct_elt_type, check_typedef): Update.
3893 * expprint.c (print_subexp_standard): Update.
3894 * dwarf2read.c (dwarf2_add_field, load_partial_dies): Update.
3895 * d-namespace.c (d_lookup_nested_symbol): Update.
3896 * cp-valprint.c (cp_is_vtbl_ptr_type, cp_print_value_fields)
3897 (cp_print_class_member): Update.
3898 * cp-namespace.c (cp_lookup_nested_symbol): Update.
3899 * completer.c (add_struct_fields): Update.
3900 * c-typeprint.c (cp_type_print_derivation_info)
3901 (c_type_print_varspec_prefix, c_type_print_base_struct_union):
3902 Update.
3903 * ada-lang.c (parse_old_style_renaming, xget_renaming_scope)
3904 (ada_prefer_type, ada_is_exception_sym): Update.
3905
e86ca25f
TT
39062018-06-01 Tom Tromey <tom@tromey.com>
3907
3908 * valops.c (enum_constant_from_type, value_namespace_elt)
3909 (value_maybe_namespace_elt): Update.
3910 * valarith.c (find_size_for_pointer_math): Update.
3911 * target-descriptions.c (make_gdb_type): Update.
3912 * symmisc.c (print_symbol): Update.
3913 * stabsread.c (define_symbol, read_type)
3914 (complain_about_struct_wipeout, add_undefined_type)
3915 (cleanup_undefined_types_1): Update.
3916 * rust-lang.c (rust_tuple_type_p, rust_slice_type_p)
3917 (rust_range_type_p, val_print_struct, rust_print_struct_def)
3918 (rust_internal_print_type, rust_composite_type)
3919 (rust_evaluate_funcall, rust_evaluate_subexp)
3920 (rust_inclusive_range_type_p): Update.
3921 * python/py-type.c (typy_get_tag): Update.
3922 * p-typeprint.c (pascal_type_print_base): Update.
3923 * mdebugread.c (parse_symbol, parse_type): Update.
3924 * m2-typeprint.c (m2_long_set, m2_record_fields, m2_enum):
3925 Update.
3926 * guile/scm-type.c (gdbscm_type_tag): Update.
3927 * go-lang.c (sixg_string_p): Update.
3928 * gnu-v3-abi.c (build_gdb_vtable_type, build_std_type_info_type):
3929 Update.
3930 * gdbtypes.h (struct main_type) <tag_name>: Remove.
3931 (TYPE_TAG_NAME): Remove.
3932 * gdbtypes.c (type_name_no_tag): Simplify.
3933 (check_typedef, check_types_equal, recursive_dump_type)
3934 (copy_type_recursive, arch_composite_type): Update.
3935 * f-typeprint.c (f_type_print_base): Update. Print "Type" prefix
3936 in summary mode when needed.
3937 * eval.c (evaluate_funcall): Update.
3938 * dwarf2read.c (fixup_go_packaging, read_structure_type)
3939 (process_structure_scope, read_enumeration_type)
3940 (read_namespace_type, read_module_type, determine_prefix): Update.
3941 * cp-support.c (inspect_type): Update.
3942 * coffread.c (process_coff_symbol, decode_base_type): Update.
3943 * c-varobj.c (c_is_path_expr_parent): Update.
3944 * c-typeprint.c (c_type_print_base_struct_union): Update.
3945 (c_type_print_base_1): Update. Print struct/class/union/enum in
3946 summary when using C language.
3947 * ax-gdb.c (gen_struct_ref, gen_namespace_elt)
3948 (gen_maybe_namespace_elt): Update.
3949 * ada-lang.c (ada_type_name): Simplify.
3950 (empty_record, ada_template_to_fixed_record_type_1)
3951 (template_to_static_fixed_type)
3952 (to_record_with_fixed_variant_part, ada_check_typedef): Update.
3953
c1ec8cea
TT
39542018-06-01 Tom Tromey <tom@tromey.com>
3955
3956 * dwarf2read.c (dwarf2_compute_name): Pass CU's language to
3957 c_print_type.
3958 * c-typeprint.c (c_print_type_1): Add "language" parameter.
3959 (c_print_type): Update.
3960 (c_print_type): New overload.
3961 (c_type_print_varspec_prefix, c_type_print_args)
3962 (c_type_print_varspec_suffix, c_print_type_no_offsets)
3963 (c_type_print_base_struct_union, c_type_print_base_1)
3964 (cp_type_print_method_args): Add "language" parameter.
3965 (c_type_print_base): Update.
3966 * c-lang.h (c_print_type): Add new overload.
3967
bc8453a7
TT
39682018-06-01 Tom Tromey <tom@tromey.com>
3969
3970 * typeprint.h (c_type_print_varspec_suffix): Don't declare.
3971 * c-typeprint.c (c_type_print_varspec_suffix): Now static.
3972
739e8682
AH
39732018-06-01 Alan Hayward <alan.hayward@arm.com>
3974
3975 * aarch64-tdep.c (aarch64_sve_register_names): New const
3976 var.
3977 * arch/aarch64.h (enum aarch64_regnum): Add SVE entries.
3978 (AARCH64_SVE_Z_REGS_NUM): New define.
3979 (AARCH64_SVE_P_REGS_NUM): Likewise.
3980 (AARCH64_SVE_NUM_REGS): Likewise.
3981
8a60efe7
UB
39822018-05-31 Uros Bizjak <ubizjak@gmail.com>
3983
3984 * nat/linux-ptrace.h [__alpha__]
3985 (GDB_ARCH_IS_TRAP_BRKPT, GDB_ARCH_IS_TRAP_HWBKPT): Remove
3986 definitions.
3987
4b2dfa9d
MR
39882018-05-31 Maciej W. Rozycki <macro@mips.com>
3989
3990 * arch-utils.c (gdbarch_info_fill): Set `default_byte_order' to
3991 the endianness selected.
3992 * NEWS: Document `set endian auto' mode operation update.
3993
122394f1
AH
39942018-05-31 Alan Hayward <alan.hayward@arm.com>
3995
3996 * Makefile.in: Add new header.
3997 * gdb/arch/aarch64.h (sve_vg_from_vl): New macro.
3998 (sve_vl_from_vg): Likewise.
3999 (sve_vq_from_vl): Likewise.
4000 (sve_vl_from_vq): Likewise.
4001 (sve_vq_from_vg): Likewise.
4002 (sve_vg_from_vq): Likewise.
4003 * configure.nat: Add new c file.
4004 * nat/aarch64-sve-linux-ptrace.c: New file.
4005 * nat/aarch64-sve-linux-ptrace.h: New file.
4006
95228a0d
AH
40072018-05-31 Alan Hayward <alan.hayward@arm.com>
4008
4009 * aarch64-linux-nat.c (aarch64_linux_read_description):
4010 Add parmeter zero.
4011 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
4012 Likewise.
4013 * aarch64-tdep.c (tdesc_aarch64_list): Add.
4014 (aarch64_read_description): Use VQ to index tdesc_aarch64_list.
4015 (aarch64_gdbarch_init): Add parmeter zero.
4016 * aarch64-tdep.h (aarch64_read_description): Add VQ parmeter.
4017 * arch/aarch64.c (aarch64_create_target_description): Check VQ.
4018 * arch/aarch64.h (aarch64_create_target_description): Add VQ.
4019 parmeter.
4020 * doc/gdb.texinfo: Describe SVE feature
4021 * features/aarch64-sve.c: New file.
4022
5969f0db
OJ
40232018-05-31 Omair Javaid <omair.javaid@linaro.org>
4024
4025 PR gdb/23210
4026 * gdbarch.sh (significant_addr_bit): Default to zero when
4027 not set by target architecture.
4028 * gdbarch.c: Re-generated.
4029 * utils.c (address_significant): Update.
4030
61367c61
JB
40312018-05-30 Joel Brobecker <brobecker@adacore.com>
4032
4033 * stack.c (func_command): Remove trailing newline in call to error.
4034
34a79281
SM
40352018-05-30 Simon Marchi <simon.marchi@ericsson.com>
4036
4037 * regcache.h (regcache_raw_collect): Remove, update callers to
4038 use regcache::raw_collect.
4039 * regcache.c (regcache_raw_collect): Remove.
4040
73e1c03f
SM
40412018-05-30 Simon Marchi <simon.marchi@ericsson.com>
4042
4043 * regcache.h (regcache_raw_supply): Remove, update callers to
4044 use detached_regcache::raw_supply.
4045 * regcache.c (regcache_raw_supply): Remove.
4046
e4c4a59b
SM
40472018-05-30 Simon Marchi <simon.marchi@ericsson.com>
4048
4049 * regcache.h (regcache_cooked_write_part): Remove, update
4050 callers to use regcache::cooked_write_part.
4051 * regcache.c (regcache_cooked_write_part): Remove.
4052
73bb0000
SM
40532018-05-30 Simon Marchi <simon.marchi@ericsson.com>
4054
4055 * regcache.h (regcache_cooked_read_part): Remove, update callers
4056 to use readable_regcache::cooked_read_part.
4057 * regcache.c (regcache_cooked_read_part): Remove.
4058
46a45e9d
SM
40592018-05-30 Simon Marchi <simon.marchi@ericsson.com>
4060
4061 * regcache.h (regcache_cooked_read_value): Remove, update
4062 callers to use readable_regcache::cooked_read_value.
4063 * regcache.c (regcache_cooked_read_value): Remove.
4064
b66f5587
SM
40652018-05-30 Simon Marchi <simon.marchi@ericsson.com>
4066
4067 * regcache.h (regcache_cooked_write): Remove, update callers to
4068 use regcache::cooked_write.
4069 * regcache.c (regcache_cooked_write): Remove.
4070
6aa7d724
SM
40712018-05-30 Simon Marchi <simon.marchi@ericsson.com>
4072
4073 * regcache.h (regcache_invalidate): Remove, update callers to
4074 use detached_regcache::invalidate instead.
4075 * regcache.c (regcache_invalidate): Remove.
4076
4f0420fd
SM
40772018-05-30 Simon Marchi <simon.marchi@ericsson.com>
4078
4079 * regcache.h (regcache_raw_write_part): Remove, update callers
4080 to use regcache::raw_write_part instead.
4081 * regcache.c (regcache_raw_write_part): Remove.
4082
502fe83e
SM
40832018-05-30 Simon Marchi <simon.marchi@ericsson.com>
4084
4085 * regcache.h (regcache_raw_read_part): Remove, update callers to
4086 use readable_regcache::raw_read_part instead.
4087 * regcache.c (regcache_raw_read_part): Remove.
4088
dca08e1f
SM
40892018-05-30 Simon Marchi <simon.marchi@ericsson.com>
4090
4091 * regcache.h (regcache_cooked_read): Remove, update callers to
4092 use readable_regcache::cooked_read instead.
4093 * regcache.c (regcache_cooked_read): Remove.
4094
10eaee5f
SM
40952018-05-30 Simon Marchi <simon.marchi@ericsson.com>
4096
4097 * regcache.h (regcache_raw_write): Remove, update callers to use
4098 regcache::raw_write instead.
4099 * regcache.c (regcache_raw_write): Remove.
4100
0b883586
SM
41012018-05-30 Simon Marchi <simon.marchi@ericsson.com>
4102
4103 * regcache.h (regcache_raw_read): Remove, update callers to use
4104 readable_regcache::raw_read instead.
4105 * regcache.c (regcache_raw_read): Remove.
4106
0b47d985
SM
41072018-05-30 Simon Marchi <simon.marchi@ericsson.com>
4108
4109 * regcache.h (regcache_raw_update): Remove, update callers to
4110 use readable_regcache::raw_update instead.
4111 * regcache.c (regcache_raw_update): Remove.
4112
0ec9f114
SM
41132018-05-30 Simon Marchi <simon.marchi@ericsson.com>
4114
4115 * regcache.h (regcache_register_status): Remove, update callers
4116 to use reg_buffer::get_register_status directly instead.
4117 * regcache.c (regcache_register_status): Remove.
4118
222312d3
SM
41192018-05-30 Simon Marchi <simon.marchi@ericsson.com>
4120
4121 * regcache.h (regcache_get_ptid): Remove, update all callers to
4122 call regcache::ptid instead.
4123 * regcache.c (regcache_get_ptid): Remove.
4124
fdbe37e3
SM
41252018-05-30 Simon Marchi <simon.marchi@ericsson.com>
4126
4127 * Makefile.in (ALL_TARGET_OBS): Add or1k-tdep.o.
4128
f7c6f423
PA
41292018-05-30 Pedro Alves <palves@redhat.com>
4130
4131 * common/common-exceptions.h (exception_rethrow): Use
4132 ATTRIBUTE_NORETURN.
4133
52941706
SM
41342018-05-29 Simon Marchi <simon.marchi@polymtl.ca>
4135
4136 * breakpoint.c (print_solib_event, check_status_catch_solib):
4137 Remove struct keyword in range-based for loops.
4138 * dbxread.c (find_corresponding_bincl_psymtab): Likewise.
4139 * dwarf2read.c (compute_delayed_physnames, rust_union_quirks);
4140 Likewise.
4141 * linespec.c (find_superclass_methods, search_minsyms_for_name):
4142 Likewise.
4143 * symfile.c (addr_info_make_relative): Likewise.
4144 * thread.c (value_in_thread_stack_temporaries): Likewise.
4145
bf2977b5
WP
41462018-06-12 Weimin Pan <weimin.pan@oracle.com>
4147
4148 PR gdb/16841
4149 * valops.c (value_struct_elt_for_reference): Call check_typedef on
4150 aggregate type to get its real type before accessing it.
4151
64cc34d8
WP
41522018-05-29 Weimin Pan <weimin.pan@oracle.com>
4153
4154 * minsyms.h (lookup_minimal_symbol_and_objfile): Remove declaration.
4155 * minsyms.c (lookup_minimal_symbol_and_objfile): Remove definition.
4156 * coff-pe-read.c (add_pe_forwarded_sym): Replace
4157 lookup_minimal_symbol_and_objfile with lookup_bound_minimal_symbol.
4158 * glibc-tdep.c (glibc_skip_solib_resolver): Likewise.
4159 * jit.c (jit_breakpoint_re_set_internal): Likewise.
4160 * printcmd.c (info_address_command): Likewise.
4161
e7ec8713
TT
41622018-05-29 Tom Tromey <tom@tromey.com>
4163
4164 * windows-nat.c (handle_exception): Update fall-through comment.
4165
bcb430e4
TT
41662018-05-29 Tom Tromey <tom@tromey.com>
4167
4168 * progspace.h (so_list_ptr): Remove typedef. Don't declare VEC.
4169 (struct program_space) <added_solibs>: Now a std::vector.
4170 * breakpoint.c (print_solib_event): Update.
4171 (check_status_catch_solib): Update.
4172 * progspace.c (clear_program_space_solib_cache): Update.
4173 * solib.c (update_solib_list): Update.
4174
894882e3
TT
41752018-05-29 Tom Tromey <tom@tromey.com>
4176
4177 * python/py-type.c (typy_richcompare): Update.
4178 * guile/scm-type.c (tyscm_equal_p_type_smob): Update.
4179 * gdbtypes.h (types_deeply_equal): Return bool.
4180 (types_equal): Likewise.
4181 * gdbtypes.c (type_equality_entry_d): Remove typedef. Don't
4182 declare VEC.
4183 (check_types_equal): Change worklist to std::vector. Return
4184 bool.
4185 (struct type_equality_entry): Add constructor.
4186 (compare_maybe_null_strings): Return bool.
4187 (check_types_worklist): Return bool. Change worklist to
4188 std::vector.
4189 (types_deeply_equal): Use std::vector.
4190 (types_equal): Return bool.
4191 (compare_maybe_null_strings): Simplify.
4192
10b2ded4
TT
41932018-05-29 Tom Tromey <tom@tromey.com>
4194
4195 * record-btrace.c (tp_t): Remove typedef. Don't declare VEC.
4196
4f7deebe
TT
41972018-05-29 Tom Tromey <tom@tromey.com>
4198
4199 * objc-lang.h: Don't include cp-support.h.
4200 * common/gdb_vecs.h (const_char_ptr): Remove typedef. Don't
4201 declare VEC.
4202
b8283aea
TT
42032018-05-27 Tom Tromey <tom@tromey.com>
4204
4205 * Makefile.in (DEPFILES): Don't reference REMOTE_OBS.
4206
41a883c8
TT
42072018-05-25 Tom Tromey <tom@tromey.com>
4208
4209 * value.c (value::location): Initialize.
4210
bf259e25
TT
42112018-05-25 Tom Tromey <tom@tromey.com>
4212
4213 * dbxread.c (init_bincl_list): Remove.
4214 (bincl_list): Now a std::vector.
4215 (bincls_allocated, next_bincl): Remove.
4216 (free_bincl_list, do_free_bincl_list_cleanup)
4217 (make_cleanup_free_bincl_list): Remove.
4218 (dbx_read_symtab, elfstab_build_psymtabs): Use scoped_restore,
4219 unique_xmalloc_ptr.
4220 (find_corresponding_bincl_psymtab, read_dbx_symtab): Update.
4221 (struct header_file_location): Add constructor.
4222 (add_bincl_to_list): Remove.
4223
d525a99b
TT
42242018-05-25 Tom Tromey <tom@tromey.com>
4225
4226 * tui/tui.c (tui_enable): Update.
4227 * mi/mi-interp.c (mi_interp::init): Update.
4228 * interps.h (class interp) <name>: New method.
4229 <m_name>: Rename from name.
4230 (~scoped_restore_interp): Update.
4231 * interps.c (interp::interp): Update.
4232 (interp_add, interp_set, interp_lookup_existing)
4233 (current_interp_named_p): Update.
4234
da505cff
TT
42352018-05-25 Tom Tromey <tom@tromey.com>
4236
4237 * interps.c (interp_name): Remove.
4238 * mi/mi-interp.c (mi_interp::init): Update.
4239 * interps.h (interp_name): Remove.
4240 (~scoped_restore_interp): Update.
4241 * tui/tui.c (tui_enable): Update.
4242
29f94340
TT
42432018-05-25 Tom Tromey <tom@tromey.com>
4244
4245 * utils.c (fputs_maybe_filtered): Update.
4246 * linespec.c (decode_line_full): Update.
4247 * mi/mi-interp.c (mi_on_normal_stop_1, mi_tsv_modified)
4248 (mi_print_breakpoint_for_event, mi_solib_loaded)
4249 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
4250 (mi_user_selected_context_changed): Update.
4251 * mi/mi-main.c (mi_execute_command): Update.
4252 * cli/cli-script.c (execute_control_command): Update.
4253 * python/python.c (execute_gdb_command): Update.
4254 * solib.c (info_sharedlibrary_command): Update.
4255 * interps.c (interp_ui_out): Remove.
4256 * interps.h (interp_ui_out): Remove.
4257
716b8bc5
TT
42582018-05-25 Tom Tromey <tom@tromey.com>
4259
4260 * tui/tui-interp.c (as_tui_interp): Use dynamic_cast.
4261 * mi/mi-interp.c (as_mi_interp): Use dynamic_cast.
4262 * cli/cli-interp.c (as_cli_interp): Use dynamic_cast.
4263
753ff9bd
TT
42642018-05-25 Tom Tromey <tom@tromey.com>
4265
4266 * cli/cli-interp.c (safe_execute_command): Use scoped_restore.
4267 * interps.c (interp_exec): Use scoped_restore.
4268
5ca3b260
TT
42692018-05-25 Tom Tromey <tom@tromey.com>
4270
4271 * remote.c (remote_target::remote_file_get): Use
4272 gdb::byte_vector.
4273 (remote_target::remote_file_put): Likewise.
4274
3173aa2f
TT
42752018-05-25 Tom Tromey <tom@tromey.com>
4276
4277 * coff-pe-read.c (struct read_pe_section_data) <section_name>: Now
4278 a std::string.
4279 (get_pe_section_index, add_pe_exported_sym): Update.
4280 (read_pe_exported_syms): Use gdb::def_vector.
4281
09a5e1b5
TT
42822018-05-25 Tom Tromey <tom@tromey.com>
4283
4284 * frame.c (remove_prev_frame): Remove.
4285 (get_prev_frame_if_no_cycle): Use TRY/CATCH.
4286
d8dab6c3
MR
42872018-05-25 Maciej W. Rozycki <macro@mips.com>
4288
4289 * mips-linux-tdep.h (mips_supply_fpregset, mips_fill_fpregset):
4290 Remove prototypes.
4291 * mips-linux-nat.c (supply_fpregset): Always call
4292 `mips64_supply_fpregset' rather than `mips_supply_fpregset'.
4293 (fill_fpregset): Always call `mips64_fill_fpregset' rather than
4294 `mips_fill_fpregset'.
4295 * mips-linux-tdep.c (mips_supply_fpregset)
4296 (mips_supply_fpregset_wrapper, mips_fill_fpregset)
4297 (mips_fill_fpregset_wrapper): Remove functions.
4298 (mips64_supply_fpregset, mips64_fill_fpregset): Update comments.
4299 (mips_linux_fpregset): Remove variable.
4300 (mips_linux_iterate_over_regset_sections): Use
4301 `mips64_linux_fpregset' in place of `mips_linux_fpregset'.
4302 (mips_linux_o32_sigframe_init): Remove comment.
4303
3c69da40
PA
43042018-05-25 Pedro Alves <palves@redhat.com>
4305
4306 * remote.c (struct vCont_action_support, MAXTHREADLISTRESULTS)
4307 (struct readahead_cache, struct packet_reg, struct
4308 remote_arch_state, class remote_state): Move higher up in the
4309 file.
4310 (remote_target::m_remote_state): Now an object instead of a pointer.
4311 (remote_target::get_remote_state): Adjust.
4312
39f0c204
AB
43132018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
4314
4315 * stack.c (select_and_print_frame): Delete.
4316 (struct function_bounds): Move struct within function.
4317 (func_command): Most content moved into new function
4318 find_frame_for_function, use new function, print result, add
4319 function comment.
4320 (find_frame_for_function): New function, now returns a result.
4321
d392224a
PW
43222018-05-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4323
4324 * stack.c (iterate_over_block_arg_vars): Fix comment.
4325 (print_frame_arg_vars): Pass stream in cb_data, not gdb_stdout.
4326
45f25d6c
AB
43272018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
4328
4329 PR gdb/23203
4330 * frame.c
4331 (scoped_restore_selected_frame::scoped_restore_selected_frame):
4332 Define.
4333 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
4334 Define.
4335 * frame.h (class scoped_restore_selected_frame): New class.
4336 * stack.c (print_frame_local_vars): Remove catching and rethrowing
4337 of any exception, use scoped_restore_selected_frame to restore the
4338 frame instead.
4339
da05d921
PA
43402018-05-24 Pedro Alves <palves@redhat.com>
4341
4342 * darwin-nat.h (darwin_nat_target::create_inferior): Mark with
4343 override.
4344
a8be540e
TT
43452018-05-23 Tom Tromey <tom@tromey.com>
4346
4347 * complaints.c (struct complaints): Remove.
4348 (symfile_complaint_book): Remove.
4349 (series): New global.
4350 (complaint_internal): Update.
4351 (clear_complaints): Update.
4352
ff1cf532
TT
43532018-05-23 Tom Tromey <tom@tromey.com>
4354
4355 * complaints.c (counters): New global.
4356 (struct complain): Remove.
4357 (struct complaints) <root>: Remove.
4358 (complaint_sentinel): Remove.
4359 (symfile_complaint_book): Update.
4360 (find_complaint) Remove.
4361 (complaint_internal, clear_complaints): Update.
4362
7ff88174
TT
43632018-05-23 Tom Tromey <tom@tromey.com>
4364
4365 * complaints.c (struct complain) <file, line>: Remove.
4366 (find_complaint): Remove file, line parameters.
4367 (complaint_internal): Update.
4368
de54e1a5
TT
43692018-05-23 Tom Tromey <tom@tromey.com>
4370
4371 * complaints.c (vcomplaint): Remove.
4372 (complaint_internal) Merge in contents of vcomplaint.
4373
2ac237e5
TT
43742018-05-23 Tom Tromey <tom@tromey.com>
4375
4376 * complaints.c (struct complaints) <explanation>: Remove.
4377 (symfile_explanations): Remove.
4378 (symfile_complaint_book): Update.
4379 (vcomplaint): Update.
4380 (struct explanation): Remove.
4381
b98664d3
TT
43822018-05-23 Tom Tromey <tom@tromey.com>
4383
4384 * complaints.c (symfile_complaints): Remove.
4385 (complaint_internal): Remove "complaints" parameter.
4386 (clear_complaints, vcomplaint): Remove "c" parameter.
4387 (get_complaints): Remove.
4388 * dwarf2read.c (dwarf2_statement_list_fits_in_line_number_section_complaint)
4389 (dwarf2_debug_line_missing_file_complaint)
4390 (dwarf2_debug_line_missing_end_sequence_complaint)
4391 (dwarf2_complex_location_expr_complaint)
4392 (dwarf2_const_value_length_mismatch_complaint)
4393 (dwarf2_section_buffer_overflow_complaint)
4394 (dwarf2_macro_malformed_definition_complaint)
4395 (dwarf2_invalid_attrib_class_complaint)
4396 (create_addrmap_from_index, dw2_symtab_iter_next)
4397 (dw2_expand_marked_cus)
4398 (dw2_debug_names_iterator::find_vec_in_debug_names)
4399 (dw2_debug_names_iterator::next, dw2_debug_names_iterator::next)
4400 (create_debug_type_hash_table, init_cutu_and_read_dies)
4401 (partial_die_parent_scope, add_partial_enumeration)
4402 (skip_one_die, fixup_go_packaging, quirk_rust_enum, process_die)
4403 (dwarf2_compute_name, dwarf2_physname, read_namespace_alias)
4404 (read_import_statement, read_file_scope, create_dwo_cu_reader)
4405 (create_cus_hash_table, create_dwp_hash_table)
4406 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
4407 (dwarf2_rnglists_process, dwarf2_ranges_process)
4408 (dwarf2_add_type_defn, dwarf2_attach_fields_to_type)
4409 (dwarf2_add_member_fn, get_alignment, maybe_set_alignment)
4410 (handle_struct_member_die, process_structure_scope)
4411 (read_array_type, read_common_block, read_module_type)
4412 (read_tag_pointer_type, read_typedef, read_base_type)
4413 (read_subrange_type, load_partial_dies, partial_die_info::read)
4414 (partial_die_info::read, partial_die_info::read)
4415 (partial_die_info::read, read_checked_initial_length_and_offset)
4416 (dwarf2_string_attr, read_formatted_entries)
4417 (dwarf_decode_line_header)
4418 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
4419 (new_symbol, dwarf2_const_value_attr, lookup_die_type)
4420 (read_type_die_1, determine_prefix, dwarf2_get_ref_die_offset)
4421 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
4422 (get_signatured_type, get_DW_AT_signature_type)
4423 (decode_locdesc, file_file_name, consume_improper_spaces)
4424 (skip_form_bytes, skip_unknown_opcode, dwarf_parse_macro_header)
4425 (dwarf_decode_macro_bytes, dwarf_decode_macros)
4426 (dwarf2_symbol_mark_computed, set_die_type)
4427 (read_attribute_value): Update.
4428 * stap-probe.c (handle_stap_probe, get_stap_base_address):
4429 Update.
4430 * dbxread.c (unknown_symtype_complaint)
4431 (lbrac_mismatch_complaint, repeated_header_complaint)
4432 (set_namestring, function_outside_compilation_unit_complaint)
4433 (read_dbx_symtab, process_one_symbol): Update.
4434 * gdbtypes.c (stub_noname_complaint): Update.
4435 * windows-nat.c (handle_unload_dll): Update.
4436 * coffread.c (coff_symtab_read, enter_linenos, decode_type)
4437 (decode_base_type): Update.
4438 * xcoffread.c (bf_notfound_complaint, ef_complaint)
4439 (eb_complaint, record_include_begin, record_include_end)
4440 (enter_line_range, xcoff_next_symbol_text, read_xcoff_symtab)
4441 (process_xcoff_symbol, read_symbol)
4442 (function_outside_compilation_unit_complaint)
4443 (scan_xcoff_symtab): Update.
4444 * machoread.c (macho_symtab_read, macho_add_oso_symfile): Update.
4445 * buildsym.c (finish_block_internal, make_blockvector)
4446 (end_symtab_get_static_block, augment_type_symtab): Update.
4447 * dtrace-probe.c (dtrace_process_dof)
4448 (dtrace_static_probe_ops::get_probes): Update.
4449 * complaints.h (struct complaint): Don't declare.
4450 (symfile_complaints): Remove.
4451 (complaint_internal): Remove "complaints" parameter.
4452 (complaint): Likewise.
4453 (clear_complaints): Likewise.
4454 * symfile.c (syms_from_objfile_1, finish_new_objfile)
4455 (reread_symbols): Update.
4456 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
4457 (dwarf2_frame_cache, decode_frame_entry): Update.
4458 * dwarf2loc.c (dwarf_reg_to_regnum): Update.
4459 * objc-lang.c (lookup_objc_class, lookup_child_selector)
4460 (info_selectors_command): Update.
4461 * macrotab.c (macro_include, check_for_redefinition)
4462 (macro_undef): Update.
4463 * objfiles.c (filter_overlapping_sections): Update.
4464 * stabsread.c (invalid_cpp_abbrev_complaint)
4465 (reg_value_complaint, stabs_general_complaint, dbx_lookup_type)
4466 (define_symbol, error_type, read_type, rs6000_builtin_type)
4467 (stabs_method_name_from_physname, read_member_functions)
4468 (read_cpp_abbrev, read_baseclasses, read_tilde_fields)
4469 (attach_fields_to_type, complain_about_struct_wipeout)
4470 (read_range_type, read_args, common_block_start)
4471 (common_block_end, cleanup_undefined_types_1, scan_file_globals):
4472 Update.
4473 * mdebugread.c (index_complaint, unknown_ext_complaint)
4474 (basic_type_complaint, bad_tag_guess_complaint)
4475 (bad_rfd_entry_complaint, unexpected_type_code_complaint)
4476 (reg_value_complaint, parse_symbol, parse_type, upgrade_type)
4477 (parse_procedure, parse_lines)
4478 (function_outside_compilation_unit_complaint)
4479 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref)
4480 (bad_tag_guess_complaint, reg_value_complaint): Update.
4481 * cp-support.c (demangled_name_complaint): Update.
4482 * macroscope.c (sal_macro_scope): Update.
4483 * dwarf-index-write.c (class debug_names): Update.
4484
4e9668d0
TT
44852018-05-23 Tom Tromey <tom@tromey.com>
4486
4487 * complaints.c (clear_complaints): Remove "noisy" parameter.
4488 * complaints.h (clear_complaints): Update.
4489 * symfile.c (syms_from_objfile_1, finish_new_objfile)
4490 (reread_symbols): Update.
4491
43ba33c7
TT
44922018-05-23 Tom Tromey <tom@tromey.com>
4493
4494 * complaints.c (enum complaint_series): Remove FIRST_MESSAGE,
4495 SUBSEQUENT_MESSAGE.
4496 (vcomplaint, clear_complaints): Update.
4497 (symfile_explanations): Remove some messages.
4498
2b9496b2
TT
44992018-05-23 Tom Tromey <tom@tromey.com>
4500
4501 * complaints.c (internal_complaint): Remove.
4502 * complaints.h (internal_complaint): Remove.
4503
35f1fea3
MR
45042018-05-22 Maciej W. Rozycki <macro@mips.com>
4505
4506 * i387-tdep.c (i387_collect_xsave): Make `i' unsigned.
4507
6b8edb51
PA
45082018-05-22 Pedro Alves <palves@redhat.com>
4509
4510 * remote-fileio.c (remote_fileio_reply, remote_fileio_ioerror)
4511 (remote_fileio_badfd, remote_fileio_return_errno)
4512 (remote_fileio_return_success, remote_fileio_func_open)
4513 (remote_fileio_func_open, remote_fileio_func_close)
4514 (remote_fileio_func_read, remote_fileio_func_write)
4515 (remote_fileio_func_lseek, remote_fileio_func_rename)
4516 (remote_fileio_func_unlink, remote_fileio_func_stat)
4517 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
4518 (remote_fileio_func_isatty, remote_fileio_func_system): Add
4519 remote_target parameter.
4520 (remote_fio_func_map) <func>: Add remote_target parameter.
4521 (do_remote_fileio_request, remote_fileio_request):
4522 * remote-fileio.h (remote_fileio_request):
4523 * remote-notif.c (remote_notif_ack, remote_notif_parse, ): Add
4524 remote_target parameter.
4525 (remote_notif_process, handle_notification): Adjust to pass down
4526 the remote.
4527 (remote_notif_state_allocate): Add remote_target parameter. Save
4528 it.
4529 * remote-notif.h (struct remote_target): Forward declare.
4530 (struct notif_client) <parse, ack, can_get_pending_events>: Add
4531 remote_target parameter.
4532 (struct remote_notif_state) <remote>: New field.
4533 (remote_notif_ack, remote_notif_parse): Add remote_target
4534 parameter.
4535 (remote_notif_state_allocate, remote_notif_state_allocate): Add
4536 remote_target parameter.
4537 * remote.c (OPAQUETHREADBYTES, threadref, gdb_ext_thread_info)
4538 (threads_listing_context, rmt_thread_action, protocol_feature)
4539 (packet_reg, stop_reply, stop_reply_p, enum packet_support)
4540 (packet_result, struct threads_listing_context, remote_state):
4541 Move definitions and declarations higher up.
4542 (remote_target) <~remote_target>: Declare.
4543 (remote_download_command_source, remote_file_put, remote_file_get)
4544 (remote_file_delete, remote_hostio_pread, remote_hostio_pwrite)
4545 (remote_hostio_pread_vFile, remote_hostio_send_command)
4546 (remote_hostio_set_filesystem, remote_hostio_open)
4547 (remote_hostio_close, remote_hostio_unlink, remote_state)
4548 (get_remote_state, get_remote_packet_size, get_memory_packet_size)
4549 (get_memory_write_packet_size, get_memory_read_packet_size)
4550 (append_pending_thread_resumptions, remote_detach_1)
4551 (append_resumption, remote_resume_with_vcont)
4552 (add_current_inferior_and_thread, wait_ns, wait_as)
4553 (process_stop_reply, remote_notice_new_inferior)
4554 (process_initial_stop_replies, remote_add_thread)
4555 (btrace_sync_conf, remote_btrace_maybe_reopen)
4556 (remove_new_fork_children, kill_new_fork_children)
4557 (discard_pending_stop_replies, stop_reply_queue_length)
4558 (check_pending_events_prevent_wildcard_vcont)
4559 (discard_pending_stop_replies_in_queue, stop_reply)
4560 (remote_notif_remove_queued_reply, stop_reply *queued_stop_reply)
4561 (peek_stop_reply, remote_parse_stop_reply, remote_stop_ns)
4562 (remote_interrupt_as, remote_interrupt_ns)
4563 (remote_get_noisy_reply, remote_query_attached)
4564 (remote_add_inferior, remote_current_thread, get_current_thread)
4565 (set_thread, set_general_thread, set_continue_thread)
4566 (set_general_process, write_ptid)
4567 (remote_unpack_thread_info_response, remote_get_threadinfo)
4568 (parse_threadlist_response, remote_get_threadlist)
4569 (remote_threadlist_iterator, remote_get_threads_with_ql)
4570 (remote_get_threads_with_qxfer)
4571 (remote_get_threads_with_qthreadinfo, extended_remote_restart)
4572 (get_offsets, remote_check_symbols, remote_supported_packet)
4573 (remote_query_supported, remote_packet_size)
4574 (remote_serial_quit_handler, remote_detach_pid)
4575 (remote_vcont_probe, remote_resume_with_hc)
4576 (send_interrupt_sequence, interrupt_query)
4577 (remote_notif_get_pending_events, fetch_register_using_p)
4578 (send_g_packet, process_g_packet, fetch_registers_using_g)
4579 (store_register_using_P, store_registers_using_G)
4580 (set_remote_traceframe, check_binary_download)
4581 (remote_write_bytes_aux, remote_write_bytes, remote_read_bytes_1)
4582 (remote_xfer_live_readonly_partial, remote_read_bytes)
4583 (remote_send_printf, remote_flash_write, readchar)
4584 (remote_serial_write, putpkt, putpkt_binary, skip_frame)
4585 (read_frame, getpkt, getpkt_or_notif_sane_1, getpkt_sane)
4586 (getpkt_or_notif_sane, remote_vkill, remote_kill_k)
4587 (extended_remote_disable_randomization, extended_remote_run)
4588 (send_environment_packet, extended_remote_environment_support)
4589 (extended_remote_set_inferior_cwd, remote_write_qxfer)
4590 (remote_read_qxfer, push_stop_reply, vcont_r_supported)
4591 (packet_command): Now methods of ...
4592 (remote_target): ... this class.
4593 (m_remote_state) <remote_target>: New field.
4594 (struct remote_state) <stop_reply_queue,
4595 remote_async_inferior_event_token, wait_forever_enabled_p>: New
4596 fields.
4597 (remote_state::remote_state): Allocate stop_reply_queue.
4598 (remote_state): Delete global.
4599 (get_remote_state_raw): Delete.
4600 (remote_target::get_remote_state): Allocate m_remote_state on
4601 demand.
4602 (get_current_remote_target): New.
4603 (remote_ops, extended_remote_ops): Delete.
4604 (wait_forever_enabled_p, remote_async_inferior_event_token):
4605 Delete, moved to struct remote_state.
4606 (remote_target::close): Delete self. Destruction bits split to
4607 ...
4608 (remote_target::~remote_target): ... this.
4609 (show_memory_packet_size): Adjust to use
4610 get_current_remote_target.
4611 (struct protocol_feature) <func>: Add remote_target parameter.
4612 All callers adjusted.
4613 (curr_quit_handler_target): New.
4614 (remote_serial_quit_handler): Reimplement.
4615 (remote_target::open_1): Adjust to use get_current_remote_target.
4616 Heap-allocate remote_target/extended_remote_target instances.
4617 (vcont_builder::vcont_builder): Add remote_target parameter, and
4618 save it in m_remote. All callers adjusted.
4619 (vcont_builder::m_remote): New field.
4620 (vcont_builder::restart, vcont_builder::flush)
4621 (vcont_builder::push_action): Use it.
4622 (remote_target::commit_resume): Use it.
4623 (struct queue_iter_param) <remote>: New field.
4624 (remote_target::remove_new_fork_children): Fill in 'remote' field.
4625 (check_pending_event_prevents_wildcard_vcont_callback_data): New.
4626 (check_pending_event_prevents_wildcard_vcont_callback)
4627 (remote_target::check_pending_events_prevent_wildcard_vcont)
4628 (remote_target::discard_pending_stop_replies)
4629 (remote_target::discard_pending_stop_replies_in_queue)
4630 (remote_target::remote_notif_remove_queued_reply): Fill in
4631 'remote' field.
4632 (remote_notif_get_pending_events): New.
4633 (remote_target::readchar, remote_target::remote_serial_write):
4634 Save/restore curr_quit_handler_target.
4635 (putpkt): New.
4636 (kill_new_fork_children): Fill in 'remote' field.
4637 (packet_command): Use get_current_remote_target, defer to
4638 remote_target method of same name.
4639 (scoped_remote_fd::scoped_remote_fd): Add 'remote_target'
4640 parameter, and save it in m_remote. All callers adjusted.
4641 (scoped_remote_fd::release): Use m_remote.
4642 (scoped_remote_fd::m_remote): New field.
4643 (remote_file_put, remote_file_get, remote_file_delete): Use
4644 get_current_remote_target, defer to remote_target method of same
4645 name.
4646 (remote_btrace_reset): Add remote_state paremeter. Update all
4647 callers.
4648 (remote_async_inferior_event_handler). Pass down 'data'.
4649 (remote_new_objfile): Use get_current_remote_target.
4650 (remote_target::vcont_r_supported): New.
4651 (set_range_stepping): Use get_current_remote_target and
4652 remote_target::vcont_r_supported.
4653 (_initialize_remote): Don't allocate 'remote_state' and
4654 'stop_reply_queue' globals.
4655 * remote.h (struct remote_target): Forward declare.
4656 (getpkt, putpkt, remote_notif_get_pending_events): Add
4657 'remote_target' parameter.
4658
f5db4863
PA
46592018-05-22 Pedro Alves <palves@redhat.com>
4660
4661 * remote.c (vcont_builder): Now a class. Make all data members
4662 private.
4663 (vcont_builder) <vcont_builder, restart, flush, push_action>:
4664 Declare methods.
4665 (vcont_builder_restart): Rename to ...
4666 (vcont_builder::restart): ... this.
4667 (vcont_builder_flush): Rename to ...
4668 (vcont_builder::flush): ... this.
4669 (vcont_builder_push_action): Rename to ...
4670 (vcont_builder::push_action): ... this.
4671 (remote_target::commit_resume): Adjust.
4672
cc0be08f
PA
46732018-05-22 Pedro Alves <palves@redhat.com>
4674
4675 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE): Rename to ...
4676 (DEFAULT_MAX_MEMORY_PACKET_SIZE_FIXED): ... this.
4677 (get_fixed_memory_packet_size): New.
4678 (get_memory_packet_size): Use it.
4679 (set_memory_packet_size): Don't override the config size with
4680 DEFAULT_MAX_MEMORY_PACKET_SIZE.
4681 (show_memory_packet_size): Use get_fixed_memory_packet_size.
4682 Don't refer to get_memory_packet_size if not connected to a remote
4683 target. Show "(default)" if configured size is 0.
4684
9607784a
PA
46852018-05-22 Pedro Alves <palves@redhat.com>
4686
4687 * remote.c (remote_target::mourn_inferior): Move
4688 discard_pending_stop_replies call here from ...
4689 (_initialize_remote): ... here.
4690
0e9a6b2f
PA
46912018-05-22 Pedro Alves <palves@redhat.com>
4692
4693 * remote.c (compare_section_command): Remove set_general_process
4694 call.
4695
43c3a0e4
PA
46962018-05-22 Pedro Alves <palves@redhat.com>
4697
4698 * remote.c (struct packet_reg, struct remote_arch_state):
4699 Move higher up in the file.
4700 (remote_state) <m_arch_states>: Store remote_arch_state values
4701 instead of remote_arch_state pointers.
4702 (remote_state::get_remote_arch_state): Adjust.
4703
9d6eea31
PA
47042018-05-22 Pedro Alves <palves@redhat.com>
4705
4706 * remote.c: Include <unordered_map>.
4707 (remote_state): Now a class.
4708 (remote_state) <get_remote_arch_state>: Declare method.
4709 <get_remote_arch_state>: New field.
4710 (remote_arch_state) <remote_arch_state>: Declare ctor.
4711 <regs>: Now a unique_ptr.
4712 (remote_gdbarch_data_handle): Delete.
4713 (get_remote_arch_state): Delete.
4714 (remote_state::get_remote_arch_state): New.
4715 (get_remote_state): Adjust to call remote_state's
4716 get_remote_arch_state method.
4717 (init_remote_state): Delete, bits factored out to ...
4718 (remote_arch_state::remote_arch_state): ... this new method.
4719 (get_remote_packet_size, get_memory_packet_size)
4720 (process_g_packet, remote_target::fetch_registers)
4721 (remote_target::prepare_to_store, store_registers_using_G)
4722 (remote_target::store_registers, remote_target::get_trace_status):
4723 Adjust to call remote_state's method.
4724 (_initialize_remote): Remove reference to
4725 remote_gdbarch_data_handle.
4726
dd194f6b
PA
47272018-05-22 Pedro Alves <palves@redhat.com>
4728
4729 * remote.c (struct readahead_cache) <invalidate, invalidate_fd,
4730 pread>: New method declarations.
4731 (remote_target::open_1): Adjust.
4732 (readahead_cache_invalidate): Rename to ...
4733 (readahead_cache::invalidate): ... this, and adjust to be a class
4734 method.
4735 (readahead_cache_invalidate_fd): Rename to ...
4736 (readahead_cache::invalidate_fd): ... this, and adjust to be a
4737 class method.
4738 (remote_hostio_pwrite): Adjust.
4739 (remote_hostio_pread_from_cache): Rename to ...
4740 (readahead_cache::pread): ... this, and adjust to be a class
4741 method.
4742 (remote_hostio_close): Adjust.
4743
440b7aec
PA
47442018-05-22 Pedro Alves <palves@redhat.com>
4745
4746 * remote.c (remote_hostio_close_cleanup): Delete.
4747 (class scoped_remote_fd): New.
4748 (remote_file_put, remote_file_get): Use it.
4749
de44f5a7
PA
47502018-05-22 Pedro Alves <palves@redhat.com>
4751
4752 (struct vCont_action_support): Use bool and initialize all fields.
4753 (struct readahead_cache): Initialize all fields.
4754 (remote_state): Use bool and initialize all fields.
4755 (remote_state::remote_state, remote_state::~remote_state): New.
4756 (new_remote_state): Delete.
4757 (_initialize_remote): Use new to allocate remote_state.
4758
b1b60145
PA
47592018-05-22 Pedro Alves <palves@redhat.com>
4760 張俊芝 <zjz@zjz.name>
4761
4762 PR gdb/22973
4763 * c-exp.y: Include "c-support.h".
4764 (parse_number, c_parse_escape, lex_one_token): Use TOLOWER instead
4765 of tolower. Use c_ident_is_alpha to scan names.
4766 * c-lang.c: Include "c-support.h".
4767 (convert_ucn, convert_octal, convert_hex, convert_escape): Use
4768 ISXDIGIT instead of isxdigit and ISDIGIT instead of isdigit.
4769 * c-support.h: New file, with bits factored out from ...
4770 * cp-name-parser.y: ... this file.
4771 Include "c-support.h".
4772 (cp_ident_is_alpha, cp_ident_is_alnum): Deleted, moved to
4773 c-support.h and renamed.
4774 (symbol_end, yylex): Adjust.
4775
0ec848ad
PFC
47762018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
4777
4778 * arch/ppc-linux-common.c (ppc_linux_has_isa205): Change the
4779 parameter type to CORE_ADDR.
4780 * arch/ppc-linux-common.h (ppc_linux_has_isa205): Change the
4781 parameter type in declaration to CORE_ADDR.
4782 * ppc-linux-tdep.c (ppc_linux_core_read_description): Call
4783 target_auxv_search to get AT_HWCAP and use the result to get the
4784 target description.
4785 * ppc-linux-nat.c (ppc_linux_get_hwcap): Change the return type
4786 to CORE_ADDR. Remove the cast of the return value to unsigned
4787 long. Fix error predicate of target_auxv_search.
4788 (ppc_linux_nat_target::read_description): Change the type of the
4789 hwcap variable to CORE_ADDR.
4790
0fb2aaa1
PFC
47912018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
4792
4793 * rs6000-tdep.c (rs6000_gdbarch_init): Assign 1 to have_dfp only
4794 if the size of fpscr is larger than 32 bits.
4795
2c3305f6
PFC
47962018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
4797
4798 * ppc-linux-tdep.c (ppc_linux_vsxregset): New function.
4799 (ppc32_linux_vsxregmap): New global.
4800 (ppc32_linux_vsxregset): Initialize with ppc32_linux_vsxregmap,
4801 regcache_supply_regset, and regcache_collect_regset.
4802 * ppc-linux-tdep.h (ppc_linux_vsxregset): Declare.
4803 * ppc-linux-nat.c (supply_vsxregset, fill_vsxregset): Remove.
4804 (fetch_vsx_register, store_vsx_register): Remove.
4805 (fetch_vsx_registers): Add regno parameter. Get regset using
4806 ppc_linux_vsxregset. Use regset to supply registers.
4807 (store_vsx_registers): Add regno parameter. Get regset using
4808 ppc_linux_vsxregset. Use regset to collect registers.
4809 (fetch_register): Call fetch_vsx_registers instead of
4810 fetch_vsx_register.
4811 (store_register): Call store_vsx_registers instead of
4812 store_vsx_register.
4813 (fetch_ppc_registers): Call fetch_vsx_registers with -1 for the
4814 new regno parameter.
4815 (store_ppc_registers): Call store_vsx_registers with -1 for the
4816 new regno parameter.
4817 * rs6000-tdep.c (ppc_vsx_support_p, ppc_supply_vsxreget)
4818 (ppc_collect_vsxregset): Remove.
4819
1d75a658
PFC
48202018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
4821
4822 * ppc-tdep.h (struct ppc_reg_offsets): Remove vector register
4823 offset fields.
4824 * ppc-fbsd-tdep.c (ppc32_fbsd_reg_offsets): Remove initializers
4825 for vector register offset fields.
4826 (ppc64_fbsd_reg_offsets): Likewise.
4827 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
4828 to vector register offset fields.
4829 * ppc-obsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
4830 to vector register offset fields.
4831 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Remove assignment to
4832 vector register offset fields.
4833 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Remove
4834 initializers for vector register offset fields.
4835 (rs6000_aix64_reg_offsets): Likewise.
4836 * rs6000-tdep.c (ppc_vrreg_offset): Remove.
4837 (ppc_supply_vrregset): Remove.
4838 (ppc_collect_vrregset): Remove.
4839 * ppc-linux-tdep.c (ppc_linux_collect_vrregset): New function.
4840 (ppc_linux_vrregset) : New function.
4841 (ppc32_le_linux_vrregmap, ppc32_be_linux_vrregmap)
4842 (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): New globals.
4843 (ppc32_linux_vrregset): Remove.
4844 (ppc_linux_iterate_over_regset_sections): Call ppc_linux_vrregset
4845 and use result instead of ppc32_linux_vrregset.
4846 (ppc32_linux_reg_offsets): Remove initializers for vector register
4847 offset fields.
4848 (ppc64_linux_reg_offsets): Likewise.
4849 * ppc-linux-tdep.h (ppc_linux_vrregset): New declaration.
4850 * ppc-linux-nat.c: Include regset.h.
4851 (gdb_vrregset_t): Adjust comment to account for little-endian
4852 mode.
4853 (supply_vrregset, fill_vrregset): Remove.
4854 (fetch_altivec_register, store_altivec_register): Remove.
4855 (fetch_altivec_registers): Add regno parameter. Get regset using
4856 ppc_linux_vrregset. Use regset to supply registers.
4857 (store_altivec_registers): Add regno parameter. Get regset using
4858 ppc_linux_vrregset. Use regset to collect registers.
4859 (fetch_register): Call fetch_altivec_registers instead of
4860 fetch_altivec_register.
4861 (store_register): Call store_altivec_registers instead of
4862 store_altivec_register.
4863 (fetch_ppc_registers): Call fetch_altivec_registers with -1 for
4864 the new regno parameter.
4865 (store_ppc_registers): Call store_altivec_registers with -1 for
4866 the new regno parameter.
4867
d078308a
PFC
48682018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
4869
4870 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_VRREGSET)
4871 (PPC_LINUX_SIZEOF_VSXREGSET): Define.
4872 * ppc-linux-nat.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
4873 (gdb_vrregset_t): Change array type size to
4874 PPC_LINUX_SIZEOF_VRREGSET.
4875 (gdb_vsxregset_t): Change array type size to
4876 PPC_LINUX_SIZEOF_VSXREGSET.
4877 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections):
4878 Change integer literals to PPC_LINUX_SIZEOF_VRREGSET and
4879 PPC_LINUX_SIZEOF_VSXREGSET.
4880
2e077f5e
PFC
48812018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
4882
4883 * configure.nat <linux powerpc>: Add ppc-linux.o to NATDEPFILES.
4884 * ppc-linux-nat.c (ppc_linux_target_wordsize): Move to
4885 nat/ppc-linux.c.
4886 (ppc_linux_nat_target::auxv_parse): Get thread id tid. Call
4887 ppc_linux_target_wordsize with tid.
4888 (ppc_linux_nat_target::read_description): Call ppc_linux_target
4889 wordsize with tid.
4890 * nat/ppc-linux.c: Include nat/gdb_ptrace.h.
4891 (ppc64_64bit_inferior_p): Add static and inline specifiers.
4892 (ppc_linux_target_wordsize): Move here from ppc-linux-nat.c. Add
4893 tid parameter. Remove static specifier.
4894 * nat/ppc-linux.h (ppc64_64bit_inferior_p): Remove declaration.
4895 (ppc_linux_target_wordsize): New declaration.
4896
bd64614e
PFC
48972018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
4898
4899 * arch/ppc-linux-common.c: New file.
4900 * arch/ppc-linux-common.h: New file.
4901 * arch/ppc-linux-tdesc.h: New file.
4902 * configure.tgt (powerpc*-*-linux*): Add arch/ppc-linux-common.o.
4903 * Makefile.in (ALL_TARGET_OBS): Add arch/ppc-linux-common.o.
4904 (HFILES_NO_SRCDIR): Add arch/ppc-linux-common.h and
4905 arch/ppc-linux-tdesc.h.
4906 * ppc-linux-nat.c: Include arch/ppc-linux-common.h and
4907 arch/ppc-linux-tdesc.h.
4908 (ppc_linux_nat_target::read_description): Remove target
4909 description matching code. Fill a ppc_linux_features struct and
4910 call ppc_linux_match_description with it. Move comment about ISA
4911 2.05 to ppc-linux-common.c.
4912 * ppc-linux-tdep.c: Include arch/ppc-linux-common.h and
4913 arch/ppc-linux-tdesc.h.
4914 (ppc_linux_core_read_description): Remove target description
4915 matching code. Fill a ppc_linux_features struct and call
4916 ppc_linux_match_description with it.
4917 * ppc-linux-tdep.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
4918 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
4919 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
4920 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
4921 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
4922 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
4923 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
4924 (tdesc_powerpc_e500l): Remove.
4925
241db429
JB
49262018-05-22 Joel Brobecker <brobecker@adacore.com>
4927
4928 * ada-lang.c (catch_assert_command): Pass empty string instead
4929 of NULL for excep_string argument.
4930
75d74cca
MR
49312018-05-22 Maciej W. Rozycki <macro@mips.com>
4932
4933 * mips-linux-nat.c (mips64_linux_register_addr): Return -1 if
4934 the width of the requested register exceeds the width of the
4935 `ptrace' data type.
4936
122b53ea
TT
49372018-05-21 Tom Tromey <tom@tromey.com>
4938
4939 * printcmd.c (output_command): Remove.
4940 (output_command_const): Rename to output_command.
4941 * valprint.h (output_command): Rename from output_command_const.
4942 * tracepoint.c (trace_dump_actions): Call output_command.
4943
bc18fbb5
TT
49442018-05-21 Tom Tromey <tom@tromey.com>
4945
4946 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
4947 (mi_cmd_catch_exception, mi_cmd_catch_handlers): Update.
4948 * ada-lang.h (create_ada_exception_catchpoint): Update.
4949 * ada-lang.c (struct ada_catchpoint) <excep_string>: Now a
4950 std::string.
4951 (create_excep_cond_exprs, ~ada_catchpoint)
4952 (should_stop_exception, print_one_exception)
4953 (print_mention_exception, print_recreate_exception): Update.
4954 (ada_get_next_arg): Remove.
4955 (catch_ada_exception_command_split): Use std::string. Change type
4956 of "excep_string", "cond_string".
4957 (catch_ada_exception_command): Update.
4958 (create_ada_exception_catchpoint): Change type of excep_string.
4959 (ada_exception_sal): Remove excep_string parameter.
4960 (~ada_catchpoint): Remove.
4961
790217f6
TT
49622018-05-21 Tom Tromey <tom@tromey.com>
4963
4964 * ada-lang.c (ada_collect_symbol_completion_matches): Remove
4965 cleanup.
4966
6f46ac85
TT
49672018-05-21 Tom Tromey <tom@tromey.com>
4968
4969 * ada-lang.c (ada_exception_message_1, ada_exception_message):
4970 Return unique_xmalloc_ptr.
4971 (print_it_exception): Update.
4972
15b6611c
TT
49732018-05-21 Tom Tromey <tom@tromey.com>
4974
4975 * tracepoint.c (trace_dump_actions): Use std::string.
4976
c0c9f665
TT
49772018-05-21 Tom Tromey <tom@tromey.com>
4978
4979 * symfile.c (reread_symbols): Use std::string for original_name.
4980
22ca247e
TT
49812018-05-21 Tom Tromey <tom@tromey.com>
4982
4983 * dwarf2read.c (dwarf2_read_debug_names): Use std::unique_ptr.
4984 (mapped_index_base): Use DISABLE_COPY_AND_ASSIGN. Default
4985 constructor.
4986
184cde75
SM
49872018-05-20 Simon Marchi <simon.marchi@polymtl.ca>
4988
4989 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Rename the wrong
4990 instance to...
4991 (HAVE_IS_TRIVIALLY_CONSTRUCTIBLE): ... this.
4992 * objfiles.c (get_objfile_bfd_data): Allocate
4993 objfile_per_bfd_storage with obstack_new when allocating on
4994 obstack.
4995
e39db4db
SM
49962018-05-20 Simon Marchi <simon.marchi@ericsson.com>
4997
4998 * ada-lang.c (cache_symbol): Use XOBNEW and/or XOBNEWVEC and/or
4999 OBSTACK_ZALLOC.
5000 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
5001 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
5002 * mdebugread.c (mdebug_build_psymtabs): Likewise.
5003 (add_pending): Likewise.
5004 (parse_symbol): Likewise.
5005 (parse_partial_symbols): Likewise.
5006 (psymtab_to_symtab_1): Likewise.
5007 (new_psymtab): Likewise.
5008 (elfmdebug_build_psymtabs): Likewise.
5009 * minsyms.c (terminate_minimal_symbol_table): Likewise.
5010 * objfiles.c (get_objfile_bfd_data): Likewise.
5011 (objfile_register_static_link): Likewise.
5012 * psymtab.c (allocate_psymtab): Likewise.
5013 * stabsread.c (read_member_functions): Likewise.
5014 * xcoffread.c (xcoff_end_psymtab): Likewise.
5015
284a0e3c
SM
50162018-05-20 Simon Marchi <simon.marchi@ericsson.com>
5017
5018 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Define if
5019 compiler supports std::is_trivially_constructible.
5020 * common/poison.h: Include obstack.h.
5021 (IsMallocable): Define to is_trivially_constructible if the
5022 compiler supports it, define to true_type otherwise.
5023 (xobnew): New.
5024 (XOBNEW): Redefine.
5025 (xobnewvec): New.
5026 (XOBNEWVEC): Redefine.
5027 * gdb_obstack.h (obstack_zalloc): New.
5028 (OBSTACK_ZALLOC): Redefine.
5029 (obstack_calloc): New.
5030 (OBSTACK_CALLOC): Redefine.
5031 (obstack_new): New.
5032 * gdbarch.sh: Include gdb_obstack in gdbarch.h.
5033 (gdbarch_obstack): New declaration in gdbarch.h, definition in
5034 gdbarch.c.
5035 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Use
5036 obstack_calloc/obstack_zalloc.
5037 (gdbarch_obstack_zalloc): Remove.
5038 * target-descriptions.c (tdesc_data_init): Use obstack_new.
5039
59f66be3
PW
50402018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5041
5042 * stack.c (backtrace_command_1): Remove useless variable int i.
5043
50c65c2d
PW
50442018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5045
5046 * stack.c (print_frame_info): Fix comment.
5047
7ff8cb8c
TT
50482018-05-18 Tom Tromey <tom@tromey.com>
5049
5050 * dwarf2read.c (struct dwz_file): Add constructor, initializers.
5051 <dwz_bfd>: Now a gdb_bfd_ref_ptr.
5052 (~dwarf2_per_objfile): Update
5053 (dwarf2_get_dwz_file): Use new.
5054 * dwarf2read.h (struct dwarf2_per_objfile) <dwz_file>: Now a
5055 unique_ptr.
5056
400174b1
TT
50572018-05-18 Tom Tromey <tom@tromey.com>
5058
5059 * dwarf2read.h (struct dwarf2_per_objfile) <dwp_file>: Now a
5060 unique_ptr.
5061 * dwarf2read.c (struct dwp_file): Add constructor and
5062 initializers.
5063 (open_and_init_dwp_file): Return a unique_ptr.
5064 (dwarf2_per_objfile, create_dwp_hash_table)
5065 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2)
5066 (lookup_dwo_unit_in_dwp): Update.
5067 (open_and_init_dwp_file, get_dwp_file): Update.
5068
3063847f
TT
50692018-05-18 Tom Tromey <tom@tromey.com>
5070
5071 * dwarf2read.c (dwarf2_per_objfile): Update.
5072 (struct mapped_index): Add initializers.
5073 (dwarf2_read_index): Use new.
5074 (dw2_symtab_iter_init): Update.
5075 * dwarf2read.h (struct dwarf2_per_objfile) <index_table>: Now a
5076 unique_ptr.
5077
d3d02dee
SM
50782018-05-18 Simon Marchi <simon.marchi@ericsson.com>
5079
5080 * dwarf2read.c (mapped_index) <total_size>: Remove.
5081
1d143c36
SM
50822018-05-18 Simon Marchi <simon.marchi@ericsson.com>
5083
5084 * unittests/format_pieces-selftests.c (test_format_specifier):
5085 Add ARI comments.
5086
ce1e8424
TT
50872018-05-18 Tom Tromey <tom@tromey.com>
5088
5089 * c-typeprint.c (maybe_print_hole): New function.
5090 (c_print_type_struct_field_offset): Update.
5091 (c_type_print_base_struct_union): Call maybe_print_hole.
5092
ddfe970e
KS
50932018-05-17 Keith Seitz <keiths@redhat.com>
5094
5095 * breakpoint.c (build_bpstat_chain): New function, moved from
5096 bpstat_stop_status.
5097 (bpstat_stop_status): Add optional parameter, `stop_chain'.
5098 If no stop chain is passed, call build_bpstat_chain to build it.
5099 * breakpoint.h (build_bpstat_chain): Declare.
5100 (bpstat_stop_status): Move documentation here from breakpoint.c.
5101 * infrun.c (handle_signal_stop): Before eliding inlined frames,
5102 build the stop chain and pass it to skip_inline_frames.
5103 Pass this stop chain to bpstat_stop_status.
5104 * inline-frame.c: Include breakpoint.h.
5105 (stopped_by_user_bp_inline_frame): New function.
5106 (skip_inline_frames): Add parameter `stop_chain'.
5107 Move documention to inline-frame.h.
5108 If non-NULL, use stopped_by_user_bp_inline_frame to determine
5109 whether the frame should be elided.
5110 * inline-frame.h (skip_inline_frames): Add parameter `stop_chain'.
5111 Add moved documentation and update for new parameter.
5112
b17992c1
SM
51132018-05-17 Simon Marchi <simon.marchi@ericsson.com>
5114
5115 PR cli/14975
5116 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
5117 unittests/format_pieces-selftests.c.
5118 * common/format.h (format_piece) <operator==>: New.
5119 (format_pieces) <operator[]>: Remove.
5120 * common/format.c (format_pieces::format_pieces): Handle \e.
5121 * unittests/format_pieces-selftests.c: New.
5122
58f0c718
TT
51232018-05-17 Tom Tromey <tom@tromey.com>
5124
5125 PR symtab/23010:
5126 * dwarf2read.c (load_cu, dw2_do_instantiate_symtab)
5127 (dw2_instantiate_symtab): Add skip_partial parameter.
5128 (dw2_find_last_source_symtab, dw2_map_expand_apply)
5129 (dw2_lookup_symbol, dw2_expand_symtabs_for_function)
5130 (dw2_expand_all_symtabs, dw2_expand_symtabs_with_fullname)
5131 (dw2_expand_symtabs_matching_one)
5132 (dw2_find_pc_sect_compunit_symtab)
5133 (dw2_debug_names_lookup_symbol)
5134 (dw2_debug_names_expand_symtabs_for_function): Update.
5135 (init_cutu_and_read_dies): Add skip_partial parameter.
5136 (process_psymtab_comp_unit, build_type_psymtabs_1)
5137 (process_skeletonless_type_unit, load_partial_comp_unit)
5138 (psymtab_to_symtab_1): Update.
5139 (load_full_comp_unit): Add skip_partial parameter.
5140 (process_imported_unit_die, dwarf2_read_addr_index)
5141 (follow_die_offset, dwarf2_fetch_die_loc_sect_off)
5142 (dwarf2_fetch_constant_bytes, dwarf2_fetch_die_type_sect_off)
5143 (read_signatured_type): Update.
5144
3e618834
SM
51452018-05-17 Simon Marchi <simon.marchi@ericsson.com>
5146
5147 * value.c (release_value): Remove unused variable.
5148 (record_latest_value): Likewise.
5149 (access_value_history): Likewise.
5150 (preserve_values): Likewise.
5151
fe10fe31
TT
51522018-05-17 Tom Tromey <tom@tromey.com>
5153
5154 * extension.h (struct ext_lang_type_printers) <py_type_printers>:
5155 Initialize.
5156
1d761124
MR
51572018-05-16 Maciej W. Rozycki <macro@mips.com>
5158
5159 PR gdb/22286
5160 * linux-nat-trad.c (linux_nat_trad_target::fetch_register):
5161 Also handle registers whose width is not a multiple of
5162 PTRACE_TYPE_RET.
5163 (linux_nat_trad_target::store_register): Likewise.
5164
06333fea
TT
51652018-05-16 Tom Tromey <tom@tromey.com>
5166
5167 * gdbcore.h (core_bfd): Redefine.
5168 * corelow.c (core_target::close): Update.
5169 (core_target_open): Update.
5170 * progspace.h (struct program_space) <cbfd>: Now a
5171 gdb_bfd_ref_ptr.
5172
921222e2
TT
51732018-05-16 Tom Tromey <tom@tromey.com>
5174
5175 PR cli/19551:
5176 * symfile-add-flags.h (enum symfile_add_flags)
5177 <SYMFILE_NOT_FILENAME>: New constant.
5178 * symfile.c (read_symbols): Use SYMFILE_NOT_FILENAME. Get
5179 objfile name from BFD.
5180 (symbol_file_add_with_addrs): Check SYMFILE_NOT_FILENAME.
5181 * minidebug.c (find_separate_debug_file_in_section): Put
5182 ".gnu_debugdata" into BFD's file name.
5183
3acb7083
SM
51842018-05-16 Simon Marchi <simon.marchi@ericsson.com>
5185
5186 * regcache.c (regcache_read_ftype, regcache_write_ftype):
5187 Remove.
5188
561a72d4
TC
51892018-05-15 Tamar Christina <tamar.christina@arm.com>
5190
5191 PR binutils/21446
5192 * aarch64-tdep.c (aarch64_analyze_prologue,
5193 aarch64_software_single_step, aarch64_displaced_step_copy_insn):
5194 Indicate not interested in errors.
5195
4e6ff0e1
MR
51962018-05-15 Maciej W. Rozycki <macro@mips.com>
5197
5198 * mips-linux-nat.c (mips_linux_nat_target::fetch_registers):
5199 Supply the MIPS_ZERO_REGNUM register.
5200
ea33cd92
MR
52012018-05-15 Maciej W. Rozycki <macro@mips.com>
5202
5203 * mips-tdep.c (mask_address_var): Make variable static.
5204
2d79090e
TT
52052018-05-14 Tom Tromey <tom@tromey.com>
5206
5207 * dwarf2read.c (rust_union_quirks): Clear rust_unions.
5208
cf4912ae
AB
52092018-05-11 Andrew Burgess <andrew.burgess@embecosm.com>
5210
5211 * i387-tdep.c (i387_collect_xsave): Use FXSAVE_MXCSR_ADDR not
5212 FXSAVE_ADDR for the mxcsr register.
5213
67e6f569
MF
52142018-05-11 Max Filippov <jcmvbkbc@gmail.com>
5215
5216 * configure.tgt (xtensa*-*-linux*): Drop gdb_target definition.
5217
15244507
PA
52182018-05-11 Pedro Alves <palves@redhat.com>
5219
5220 * corelow.c (core_target) <core_target>: No longer inline.
5221 Initialize m_core_gdbarch, m_core_vec and build the section table
5222 here.
5223 <~core_target>: New.
5224 <core_gdbarch, get_core_register_section>: New methods.
5225 <m_core_section_table, m_core_vec, m_core_gdbarch>: New fields,
5226 factored out from ...
5227 <core_data, core_vec, core_gdbarch>: ... these deleted globals.
5228 (core_ops): Delete.
5229 (sniff_core_bfd): Add gdbarch parameter.
5230 (core_close): Delete, merged into ...
5231 (core_target::close): ... here. Delete self.
5232 (core_close_cleanup): Delete.
5233 (core_target_open): Allocate a core_target on the heap. Use a
5234 unique_ptr instead of a cleanup. Bits moved into the core_target
5235 ctor. Adjust to use core_target methods instead of globals.
5236 (get_core_register_section): Rename to ...
5237 (core_target::get_core_register_section): ... this and adjust.
5238 (struct get_core_registers_cb_data): New.
5239 (get_core_registers_cb): Use it. Use bool.
5240 (core_target::fetch_registers, core_target::files_info)
5241 (core_target::xfer_partial, core_target::read_description)
5242 (core_target::pid_to, core_target::thread_name): Adjust to
5243 reference class fields instead of globals.
5244 * target.h (struct target_ops_deleter, target_ops_up): New.
5245
451953fa
PA
52462018-05-11 Pedro Alves <palves@redhat.com>
5247
5248 * corefile.c (core_file_command): Move to corelow.c.
5249 * corelow.c (the_core_target): Delete.
5250 (core_file_command): Moved from corefile.c. Check exec_bfd
5251 instead of the_core_target. Use target_detach instead of calling
5252 into the_core_target directly.
5253 (maybe_say_no_core_file_now): New.
5254 (core_target::detach): Use it.
5255 (_initialize_corelow): Remove references to the_core_target.
5256 * gdbcore.h (the_core_target): Delete.
5257
e540a5a2 52582018-05-11 Tom Tromey <tromey@redhat.com>
3afc23a6 5259 Pedro Alves <palves@redhat.com>
e540a5a2
TT
5260
5261 * corefile.c (core_bfd): Remove.
5262 * gdbcore.h (core_bfd): Now a macro.
5263 * progspace.h (struct program_space) <cbfd>: New field.
5264
633cf254
TT
52652018-05-11 Tom Tromey <tom@tromey.com>
5266
5267 * mdebugread.c (parse_partial_symbols, psymtab_to_symtab_1): Use
5268 gdb::def_vector.
5269
1a34f210
TT
52702018-05-10 Tom Tromey <tom@tromey.com>
5271
5272 * configure: Rebuild.
5273 * warning.m4 (AM_GDB_WARNINGS): Use -Wimplicit-fallthrough=3.
5274
190852c8
JB
52752018-05-10 Joel Brobecker <brobecker@adacore.com>
5276
5277 PR server/23158:
5278 * regformats/regdat.sh: Adjust script, following the addition
5279 of the new expedite_regs parameter to init_target_desc.
5280
8727de56
OJ
52812018-05-10 Omair Javaid <omair.javaid@linaro.org>
5282
5283 PR gdb/23127
5284 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add call to
5285 set_gdbarch_significant_addr_bit.
5286 * aarch64-tdep.c (aarch64_gdbarch_init): Remove call to
5287 set_gdbarch_significant_addr_bit.
5288 * utils.c (address_significant): Update to sign extend addr.
5289
37d9e062
MF
52902018-05-09 Max Filippov <jcmvbkbc@gmail.com>
5291
5292 * xtensa-linux-tdep.c (xtensa-tdep.h): New include.
5293 (xtensa_linux_init_abi): Limit tdep->num_regs by
5294 tdep->num_nopriv_regs.
5295 * xtensa-tdep.c (xtensa_derive_tdep): Calculate
5296 tdep->num_nopriv_regs and only copy it to tdep->num_regs if it's
5297 not initialized.
5298
7402fbca
SM
52992018-05-08 Simon Marchi <simon.marchi@ericsson.com>
5300
5301 * unittests/string_view-selftests.c: Define GNULIB_NAMESPACE.
5302
8ee22052
AB
53032018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
5304
5305 * common/x86-xstate.h (I387_FCTRL_INIT_VAL): New constant.
5306 (I387_MXCSR_INIT_VAL): New constant.
5307 * amd64-tdep.c (amd64_supply_xsave): Only read state from xsave
5308 buffer if it was supplied by the inferior.
5309 * i387-tdep.c (i387_supply_fsave): Use I387_MXCSR_INIT_VAL.
5310 (i387_xsave_get_clear_bv): New function.
5311 (i387_supply_xsave): Only read x87 control registers from the
5312 xsave buffer if the feature is enabled, and the state will have
5313 been written, otherwise, provide a suitable default.
5314 (i387_collect_xsave): Pre-clear all registers in xsave buffer,
5315 including x87 control registers. Update control registers if they
5316 have changed from the default value, and mark features as enabled
5317 as required.
5318 * i387-tdep.h (i387_xsave_get_clear_bv): Declare.
5319
968ae51b
UW
53202018-05-08 Ulrich Weigand <uweigand@de.ibm.com>
5321
5322 * spu-tdep.c (info_spu_event_command): Fix output formatting.
5323
aff689d3
TT
53242018-05-07 Tom Tromey <tom@tromey.com>
5325
5326 * configure: Rebuild.
5327 * warning.m4 (AM_GDB_WARNINGS): Add -Wduplicated-cond.
5328
ce887586
TT
53292018-05-07 Tom Tromey <tom@tromey.com>
5330
5331 PR tdep/20362:
5332 * arm-tdep.c (arm_record_vfp_data_proc_insn): Properly mask off D
5333 bit. Use correct value for VDIV.
5334
85e26832
TT
53352018-05-04 Tom Tromey <tom@tromey.com>
5336
5337 * configure: Rebuild.
5338 * warning.m4 (AM_GDB_WARNINGS): Add -Wimplicit-fallthrough.
5339
449b1ac7
TT
53402018-05-04 Tom Tromey <tom@tromey.com>
5341
5342 * linux-record.c (record_linux_system_call) <case
5343 RECORD_SYS_RECVFROM>: Add "break".
5344
15c9ffd6
TT
53452018-05-04 Tom Tromey <tom@tromey.com>
5346
5347 * mi/mi-main.c (mi_cmd_trace_frame_collected) <REGISTERS_FORMAT>:
5348 Add missing "break".
5349 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals) <NO_FRAME_FILTERS>:
5350 Add missing "break".
5351
e3829d13
TT
53522018-05-04 Tom Tromey <tom@tromey.com>
5353
5354 * rs6000-tdep.c (ppc_process_record_op4)
5355 (ppc_process_record_op63): Add fall-through comment.
5356
da0e1563
TT
53572018-05-04 Tom Tromey <tom@tromey.com>
5358
5359 * i386-tdep.c (i386_process_record): Add fall-through comment.
5360
0019cd49
TT
53612018-05-04 Tom Tromey <tom@tromey.com>
5362
5363 * stabsread.c (define_symbol) <case 'p'>: Add fall-through
5364 comment.
5365
565e0eda
TT
53662018-05-04 Tom Tromey <tom@tromey.com>
5367
5368 * riscv-tdep.c (riscv_isa_xlen): Add fall-through comment.
5369 * utils.c (can_dump_core) <LIMIT_CUR>: Add fall-through comment.
5370 * eval.c (fetch_subexp_value) <MEMORY_ERROR>: Add fall-through
5371 comment.
5372 * d-valprint.c (d_val_print) <TYPE_CODE_STRUCT>: Add fall-through
5373 comment.
5374 * coffread.c (coff_symtab_read) <C_LABEL>: Add fall-through
5375 comment.
5376
621846f4
TT
53772018-05-04 Tom Tromey <tom@tromey.com>
5378
5379 * dwarf2loc.c (unimplemented): Add ATTRIBUTE_NORETURN.
5380
86a73007
TT
53812018-05-04 Tom Tromey <tom@tromey.com>
5382
5383 * s390-tdep.c (s390_process_record): Fix fall-through comments.
5384 * xcoffread.c (scan_xcoff_symtab): Move comment later.
5385 * symfile.c (section_is_mapped): Fix fall-through comment.
5386 * stabsread.c (define_symbol, read_member_functions): Fix
5387 fall-through comment.
5388 * s390-linux-tdep.c (s390_process_record): Fix fall-through
5389 comment.
5390 * remote.c (remote_wait_as): Fix fall-through comment.
5391 * p-exp.y (yylex): Fix fall-through comment.
5392 * nat/x86-dregs.c (x86_length_and_rw_bits): Fix fall-through
5393 comment.
5394 * msp430-tdep.c (msp430_gdbarch_init): Fix fall-through comment.
5395 * mdebugread.c (parse_partial_symbols): Fix fall-through comment.
5396 * jv-exp.y (yylex): Fix fall-through comment.
5397 * go-exp.y (lex_one_token): Fix fall-through comment.
5398 * gdbtypes.c (get_discrete_bounds, rank_one_type): Fix
5399 fall-through comment.
5400 * f-exp.y (yylex): Fix fall-through comment.
5401 * dwarf2read.c (process_die): Fix fall-through comments.
5402 * dbxread.c (process_one_symbol): Fix fall-through comment.
5403 * d-exp.y (lex_one_token): Fix fall-through comment.
5404 * cp-name-parser.y (yylex): Fix fall-through comment.
5405 * coffread.c (coff_symtab_read): Fix fall-through comment.
5406 * c-exp.y (lex_one_token): Fix fall-through comment.
5407 * arm-tdep.c (arm_decode_miscellaneous): Fix fall-through
5408 comment.
5409 * arch/arm.c (arm_instruction_changes_pc): Fix fall-through
5410 comment.
5411
56bcdbea
TT
54122018-05-04 Tom Tromey <tom@tromey.com>
5413
5414 PR python/22730:
5415 * NEWS: Mention gdb.execute change.
5416 * gdbcmd.h (execute_control_command): Don't declare.
5417 * python/python.c (execute_gdb_command): Use read_command_lines_1,
5418 execute_control_commands, execute_control_commands_to_string.
5419 * cli/cli-script.h (execute_control_commands)
5420 (execute_control_commands_to_string): Declare.
5421 (execute_control_command): Add from_tty parameter.
5422 * cli/cli-script.c (execute_control_commands)
5423 (execute_control_commands_to_string): New functions.
5424 (execute_user_command): Use execute_control_commands.
5425 (execute_control_command_1): Add "from_tty" parameter. Update.
5426 (execute_control_command): Likewise.
5427
a913fffb
TT
54282018-05-04 Tom Tromey <tom@tromey.com>
5429
5430 PR python/22731:
5431 * NEWS: Mention that breakpoint commands are writable.
5432 * python/py-breakpoint.c (bppy_set_commands): New function.
5433 (breakpoint_object_getset) <"commands">: Use it.
5434
60b3cef2
TT
54352018-05-04 Tom Tromey <tom@tromey.com>
5436
5437 * tracepoint.c (actions_command): Update.
5438 * mi/mi-cmd-break.c (mi_command_line_array)
5439 (mi_command_line_array_cnt, mi_command_line_array_ptr)
5440 (mi_read_next_line): Remove.
5441 (mi_cmd_break_commands): Update.
5442 * cli/cli-script.h (read_command_lines, read_command_lines_1): Use
5443 function_view.
5444 * cli/cli-script.c (get_command_line): Update.
5445 (process_next_line): Use function_view. Constify.
5446 (recurse_read_control_structure, read_command_lines)
5447 (read_command_lines_1): Change argument types to function_view.
5448 (do_define_command, document_command): Update.
5449 * breakpoint.h (check_tracepoint_command): Don't declare.
5450 * breakpoint.c (check_tracepoint_command): Remove.
5451 (commands_command_1, create_tracepoint_from_upload): Update.
5452
7a2c85f2
TT
54532018-05-04 Tom Tromey <tom@tromey.com>
5454
5455 PR gdb/11750:
5456 * cli/cli-script.h (enum command_control_type) <define_control>:
5457 New constant.
5458 * cli/cli-script.c (multi_line_command_p): Handle define_control.
5459 (build_command_line, execute_control_command_1)
5460 (process_next_line): Likewise.
5461 (do_define_command): New function, extracted from define_command.
5462 (define_command): Use it.
5463
295dc222
TT
54642018-05-04 Tom Tromey <tom@tromey.com>
5465
5466 * tracepoint.c (actions_command): Update.
5467 * cli/cli-script.h (read_command_lines): Update.
5468 * cli/cli-script.c (read_command_lines): Constify prompt_arg.
5469 (MAX_TMPBUF): Remove define.
5470 (define_command): Use string_printf.
5471 (document_command): Likewise.
5472 * breakpoint.c (commands_command_1): Update.
5473
1263a9d5
TT
54742018-05-04 Tom Tromey <tom@tromey.com>
5475
5476 * top.c (execute_command): Update.
5477 * cli/cli-script.h (print_command_lines): Now varargs.
5478 * cli/cli-script.c (print_command_lines): Now varargs.
5479 (execute_control_command_1) <case while_control, case if_control>:
5480 Update.
5481
12973681
TT
54822018-05-04 Tom Tromey <tom@tromey.com>
5483
5484 * tracepoint.c (all_tracepoint_actions): Rename from
5485 all_tracepoint_actions_and_cleanup. Change return type.
5486 (actions_command, encode_actions_1, encode_actions)
5487 (trace_dump_actions, tdump_command): Update.
5488 * remote.c (remote_download_command_source): Update.
5489 * python/python.c (gdbpy_eval_from_control_command)
5490 (python_command, python_interactive_command): Update.
5491 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
5492 * guile/guile.c (guile_command)
5493 (gdbscm_eval_from_control_command, guile_command): Update.
5494 * compile/compile.c (compile_code_command)
5495 (compile_print_command, compile_to_object): Update.
5496 * cli/cli-script.h (struct command_lines_deleter): New.
5497 (counted_command_line): New typedef.
5498 (struct command_line): Add constructor, destructor.
5499 <body_list>: Remove.
5500 <body_list_0, body_list_1>: New members.
5501 (command_line_up): Remove typedef.
5502 (read_command_lines, read_command_lines_1, get_command_line):
5503 Update.
5504 (copy_command_lines): Don't declare.
5505 * cli/cli-script.c (build_command_line): Use "new".
5506 (get_command_line): Return counted_command_line.
5507 (print_command_lines, execute_user_command)
5508 (execute_control_command_1, while_command, if_command): Update.
5509 (realloc_body_list): Remove.
5510 (process_next_line, recurse_read_control_structure): Update.
5511 (read_command_lines, read_command_lines_1): Return counted_command_line.
5512 (free_command_lines): Use "delete".
5513 (copy_command_lines): Remove.
5514 (define_command, document_command, show_user_1): Update.
5515 * cli/cli-decode.h (struct cmd_list_element) <user_commands>: Now
5516 a counted_command_line.
5517 * breakpoint.h (counted_command_line): Remove typedef.
5518 (breakpoint_set_commands): Update.
5519 * breakpoint.c (check_no_tracepoint_commands)
5520 (validate_commands_for_breakpoint): Update.
5521 (breakpoint_set_commands): Change commands to be a
5522 counted_command_line.
5523 (commands_command_1, update_dprintf_command_list)
5524 (create_tracepoint_from_upload): Update.
5525
e2fc72e2
TT
55262018-05-04 Tom Tromey <tom@tromey.com>
5527
5528 * cli/cli-decode.h (cmd_list_element): New constructor.
5529 (~cmd_list_element): New destructor.
5530 (struct cmd_list_element): Add initializers.
5531 * cli/cli-decode.c (do_add_cmd): Use "new".
5532 (delete_cmd): Use "delete".
5533
a3b60e45
JK
55342018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5535 Pedro Alves <palves@redhat.com>
5536
5537 PR breakpoints/19806 and support for PR external/20207.
5538 * NEWS: Mention Aarch64 watchpoint improvements.
5539 * aarch64-linux-nat.c (aarch64_linux_stopped_data_address): Fix missed
5540 watchpoints and PR external/20207 watchpoints.
5541 * nat/aarch64-linux-hw-point.c
5542 (kernel_supports_any_contiguous_range): New.
5543 (aarch64_watchpoint_offset): New.
5544 (aarch64_watchpoint_length): Support PR external/20207 watchpoints.
5545 (aarch64_point_encode_ctrl_reg): New parameter offset, new asserts.
5546 (aarch64_point_is_aligned): Support PR external/20207 watchpoints.
5547 (aarch64_align_watchpoint): New parameters aligned_offset_p and
5548 next_addr_orig_p. Support PR external/20207 watchpoints.
5549 (aarch64_downgrade_regs): New.
5550 (aarch64_dr_state_insert_one_point): New parameters offset and
5551 addr_orig.
5552 (aarch64_dr_state_remove_one_point): Likewise.
5553 (aarch64_handle_breakpoint): Update caller.
5554 (aarch64_handle_aligned_watchpoint): Likewise.
5555 (aarch64_handle_unaligned_watchpoint): Support addr_orig and
5556 aligned_offset.
5557 (aarch64_linux_set_debug_regs): Remove const from state. Call
5558 aarch64_downgrade_regs.
5559 (aarch64_show_debug_reg_state): Print also dr_addr_orig_wp.
5560 * nat/aarch64-linux-hw-point.h (DR_CONTROL_LENGTH): Rename to ...
5561 (DR_CONTROL_MASK): ... this.
5562 (struct aarch64_debug_reg_state): New field dr_addr_orig_wp.
5563 (unsigned int aarch64_watchpoint_offset): New prototype.
5564 (aarch64_linux_set_debug_regs): Remove const from state.
5565 * utils.c (align_up, align_down): Move to ...
5566 * common/common-utils.c (align_up, align_down): ... here.
5567 * utils.h (align_up, align_down): Move to ...
5568 * common/common-utils.h (align_up, align_down): ... here.
5569
05bc7456
JB
55702018-05-04 Joel Brobecker <brobecker@adacore.com>
5571
5572 * sparc-tdep.c (sparc_structure_return_p): Re-implement to
5573 match the ABI as summarized in GCC's gcc/config/sparc/sparc.c.
5574 (sparc_arg_by_memory_p): Renamed from sparc_arg_on_registers_p.
5575 Re-implement to match the ABI as summarized in GCC's
5576 gcc/config/sparc/sparc.c. All callers updated.
5577 (sparc32_store_arguments): Remove assertion.
5578
2f433492
TT
55792018-05-04 Tom Tromey <tom@tromey.com>
5580
5581 * printcmd.c: Don't include tui.h.
5582 (decode_format): Use skip_spaces.
5583
9be2ae8f
TT
55842018-05-04 Tom Tromey <tom@tromey.com>
5585
5586 PR gdb/22619:
5587 * printcmd.c (last_count): New global.
5588 (x_command): Use saved count when repeating.
5589
f0b3976b
TT
55902018-05-04 Tom Tromey <tom@tromey.com>
5591
5592 * nto-procfs.c (do_closedir_cleanup): Remove.
5593 (procfs_pidlist): Use gdb_dir_up.
5594 * procfs.c (do_closedir_cleanup): Remove.
5595 (proc_update_threads): Use gdb_dir_up.
5596 * common/filestuff.h (struct gdb_dir_deleter): New.
5597 (gdb_dir_up): New typedef.
5598
862d101a
TT
55992018-05-04 Tom Tromey <tom@tromey.com>
5600
5601 * ada-lang.c (print_mention_exception): Use std::string.
5602
cb7de75e
TT
56032018-05-04 Tom Tromey <tom@tromey.com>
5604
5605 * ada-lang.c (create_excep_cond_exprs): Update.
5606 (ada_exception_catchpoint_cond_string): Use std::string.
5607
49d83361
TT
56082018-05-04 Tom Tromey <tom@tromey.com>
5609
5610 * ada-lang.c (xget_renaming_scope): Return std::string.
5611 (old_renaming_is_invisible): Update.
5612
ade72a34
TT
56132018-05-04 Tom Tromey <tom@tromey.com>
5614
5615 * bfd-target.c (target_bfd::m_bfd): Now a gdb_bfd_ref_ptr.
5616 (target_bfd::target_bfd, target_bfd::~target_bfd): Update.
5617
2be4d7f0
UW
56182018-05-04 Ulrich Weigand <uweigand@de.ibm.com>
5619
5620 * spu-linux-nat.c (spu_linux_nat_target::wait): Fix syntax error.
5621
69b6ecb0
TT
56222018-05-04 Tom Tromey <tom@tromey.com>
5623
5624 * remote.c (remote_query_supported_append): Change type.
5625 (remote_check_symbols): Update.
5626
bf27f0e2
PP
56272018-05-04 Paul Pluzhnikov <ppluzhnikov@google.com>
5628
5629 PR gdb/11420
5630 * configure.ac: Prepend libpython.
5631 * python/python-config.py: Likewise.
5632 * configure: Regenerate.
5633
4ea17de8
SM
56342018-05-03 Simon Marchi <simon.marchi@ericsson.com>
5635
5636 * Makefile.in (%.c: %.l): Use -t instead of --stdout.
5637
bd732259
PA
56382018-05-03 Pedro Alves <palves@redhat.com>
5639
5640 * s390-linux-nat.c
5641 (s390_linux_nat_target::have_continuable_watchpoint): Mark with
5642 override. Write 'true' instead of '1'.
5643 (s390_linux_nat_target::watchpoint_addr_within_range): Remove
5644 declaration.
5645
d9f719f1
PA
56462018-05-02 Pedro Alves <palves@redhat.com>
5647
5648 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Use
5649 add_inf_child_target.
5650 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Use
5651 add_inf_child_target.
5652 * aix-thread.c (aix_thread_target_info): New.
5653 (aix_thread_target) <shortname, longname, doc>: Delete.
5654 <info>: New.
5655 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Use
5656 add_inf_child_target.
5657 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Use
5658 add_inf_child_target.
5659 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Use
5660 add_inf_child_target.
5661 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Use
5662 add_inf_child_target.
5663 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Use
5664 add_inf_child_target.
5665 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Use
5666 add_inf_child_target.
5667 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Use
5668 add_inf_child_target.
5669 * arm-linux-nat.c (_initialize_arm_linux_nat): Use
5670 add_inf_child_target.
5671 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Use
5672 add_inf_child_target.
5673 * bfd-target.c (target_bfd_target_info): New.
5674 (target_bfd) <shortname, longname, doc>: Delete.
5675 <info>: New.
5676 * bsd-kvm.c (bsd_kvm_target_info): New.
5677 (bsd_kvm_target) <shortname, longname, doc>: Delete.
5678 <info>: New.
5679 (bsd_kvm_target::open): Rename to ...
5680 (bsd_kvm_target_open): ... this. Adjust.
5681 * bsd-uthread.c (bsd_uthread_target_info): New.
5682 (bsd_uthread_target) <shortname, longname, doc>: Delete.
5683 <info>: New.
5684 * corefile.c (core_file_command): Adjust.
5685 * corelow.c (core_target_info): New.
5686 (core_target) <shortname, longname, doc>: Delete.
5687 <info>: New.
5688 (core_target::open): Rename to ...
5689 (core_target_open): ... this. Adjust.
5690 * ctf.c (ctf_target_info): New.
5691 (ctf_target) <shortname, longname, doc>: Delete.
5692 <info>: New.
5693 (ctf_target::open): Rename to ...
5694 (ctf_target_open): ... this.
5695 (_initialize_ctf): Adjust.
5696 * exec.c (exec_target_info): New.
5697 (exec_target) <shortname, longname, doc>: Delete.
5698 <info>: New.
5699 (exec_target::open): Rename to ...
5700 (exec_target_open): ... this.
5701 * gdbcore.h (core_target_open): Declare.
5702 * go32-nat.c (_initialize_go32_nat): Use add_inf_child_target.
5703 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Use
5704 add_inf_child_target.
5705 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Use
5706 add_inf_child_target.
5707 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Use
5708 add_inf_child_target.
5709 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Use
5710 add_inf_child_target.
5711 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Use
5712 add_inf_child_target.
5713 * i386-gnu-nat.c (_initialize_i386gnu_nat): Use
5714 add_inf_child_target.
5715 * i386-linux-nat.c (_initialize_i386_linux_nat): Use
5716 add_inf_child_target.
5717 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Use
5718 add_inf_child_target.
5719 * i386-obsd-nat.c (_initialize_i386obsd_nat): Use
5720 add_inf_child_target.
5721 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Use
5722 add_inf_child_target.
5723 * inf-child.c (inf_child_target_info): New.
5724 (inf_child_target::info): New.
5725 (inf_child_open_target): Remove 'target' parameter. Use
5726 get_native_target instead.
5727 (inf_child_target::open): Delete.
5728 (add_inf_child_target): New.
5729 * inf-child.h (inf_child_target) <shortname, longname, doc, open>:
5730 Delete.
5731 <info>: New.
5732 (add_inf_child_target): Declare.
5733 (inf_child_open_target): Declare.
5734 * linux-thread-db.c (thread_db_target_info): New.
5735 (thread_db_target) <shortname, longname, doc>: Delete.
5736 <info>: New.
5737 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Use
5738 add_inf_child_target.
5739 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Use
5740 add_inf_child_target.
5741 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Use
5742 add_inf_child_target.
5743 * m88k-bsd-nat.c (_initialize_m88kbsd_nat): Use
5744 add_inf_child_target.
5745 * make-target-delegates (print_class): Adjust.
5746 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Use
5747 add_inf_child_target.
5748 * mips-linux-nat.c (_initialize_mips_linux_nat): Use
5749 add_inf_child_target.
5750 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Use
5751 add_inf_child_target.
5752 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Use
5753 add_inf_child_target.
5754 * nto-procfs.c (nto_native_target_info): New.
5755 (nto_procfs_target_native) <shortname, longname, doc>:
5756 Delete.
5757 <info>: New.
5758 (nto_procfs_target_info): New.
5759 (nto_procfs_target_procfs) <shortname, longname, doc>:
5760 Delete.
5761 <info>: New.
5762 (init_procfs_targets): Adjust.
5763 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Use
5764 add_inf_child_target.
5765 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Use
5766 add_inf_child_target.
5767 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Use
5768 add_inf_child_target.
5769 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Use
5770 add_inf_child_target.
5771 * ravenscar-thread.c (ravenscar_target_info): New.
5772 (ravenscar_thread_target) <shortname, longname, doc>:
5773 Delete.
5774 <info>: New.
5775 * record-btrace.c (record_btrace_target_info):
5776 (record_btrace_target) <shortname, longname, doc>: Delete.
5777 <info>: New.
5778 (record_btrace_target::open): Rename to ...
5779 (record_btrace_target_open): ... this. Adjust.
5780 * record-full.c (record_longname, record_doc): New.
5781 (record_full_base_target) <shortname, longname, doc>: Delete.
5782 <info>: New.
5783 (record_full_target_info): New.
5784 (record_full_target): <shortname>: Delete.
5785 <info>: New.
5786 (record_full_core_open_1, record_full_open_1): Update comments.
5787 (record_full_base_target::open): Rename to ...
5788 (record_full_open): ... this.
5789 (cmd_record_full_restore): Update.
5790 (_initialize_record_full): Update.
5791 * remote-sim.c (remote_sim_target_info): New.
5792 (gdbsim_target) <shortname, longname, doc>: Delete.
5793 <info>: New.
5794 (gdbsim_target::open): Rename to ...
5795 (gdbsim_target_open): ... this.
5796 (_initialize_remote_sim): Adjust.
5797 * remote.c (remote_doc): New.
5798 (remote_target_info): New.
5799 (remote_target) <shortname, longname, doc>: Delete.
5800 <info>: New.
5801 (extended_remote_target_info): New.
5802 (extended_remote_target) <shortname, longname, doc>: Delete.
5803 <info>: New.
5804 (remote_target::open_1): Make static. Adjust.
5805 * rs6000-nat.c (_initialize_rs6000_nat): Use add_inf_child_target.
5806 * s390-linux-nat.c (_initialize_s390_nat): Use
5807 add_inf_child_target.
5808 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Use
5809 add_inf_child_target.
5810 * sol-thread.c (thread_db_target_info): New.
5811 (sol_thread_target) <shortname, longname, doc>: Delete.
5812 <info>: New.
5813 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Use
5814 add_inf_child_target.
5815 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Use
5816 add_inf_child_target.
5817 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Use
5818 add_inf_child_target.
5819 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Use
5820 add_inf_child_target.
5821 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Use
5822 add_inf_child_target.
5823 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Use
5824 add_inf_child_target.
5825 * spu-linux-nat.c (_initialize_spu_nat): Use
5826 add_inf_child_target.
5827 * spu-multiarch.c (spu_multiarch_target_info): New.
5828 (spu_multiarch_target) <shortname, longname, doc>: Delete.
5829 <info>: New.
5830 * target-delegates.c: Regenerate.
5831 * target.c: Include <unordered_map>.
5832 (target_ops_p): Delete.
5833 (DEF_VEC_P(target_ops_p)): Delete.
5834 (target_factories): New.
5835 (test_target_info): New.
5836 (test_target_ops::info): New.
5837 (open_target): Adjust to use target_factories.
5838 (add_target_with_completer): Rename to ...
5839 (add_target): ... this. Change prototype. Register target_info
5840 and open callback in target_factories. Register target_info in
5841 command context instead of target_ops.
5842 (add_target): Delete old implementation.
5843 (add_deprecated_target_alias): Change prototype. Adjust.
5844 (the_native_target): New.
5845 (set_native_target, get_native_target): New.
5846 (find_default_run_target): Use the_native_target.
5847 (find_attach_target, find_run_target): Simplify.
5848 (target_ops::open): Delete.
5849 (dummy_target_info): New.
5850 (dummy_target::shortname, dummy_target::longname)
5851 (dummy_target::doc): Delete.
5852 (dummy_target::info): New.
5853 (debug_target::shortname, debug_target::longname)
5854 (debug_target::doc): Delete.
5855 (debug_target::info): New.
5856 * target.h (struct target_info): New.
5857 (target_ops::~target_ops): Add comment.
5858 (target_ops::info): New.
5859 (target_ops::shortname, target_ops::longname, target_ops::doc): No
5860 longer virtual. Implement in terms of target_info.
5861 (set_native_target, get_native_target): Declare.
5862 (target_open_ftype): New.
5863 (add_target, add_target_with_completer)
5864 (add_deprecated_target_alias): Change prototype.
5865 (test_target) <shortname, longname, doc>: Delete.
5866 <info>: New.
5867 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Use
5868 add_inf_child_target.
5869 * tracefile-tfile.c (tfile_target_info): New.
5870 (tfile_target) <shortname, longname, doc>: Delete.
5871 <info>: New.
5872 (tfile_target::open): Rename to ...
5873 (tfile_target_open): ... this.
5874 (_initialize_tracefile_tfile): Adjust.
5875 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Use
5876 add_inf_child_target.
5877 * windows-nat.c (_initialize_windows_nat): Use
5878 add_inf_child_target.
5879 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Use
5880 add_inf_child_target.
5881
135340af
PA
58822018-05-02 Pedro Alves <palves@redhat.com>
5883
5884 * linux-nat.h (linux_nat_target) <low_new_thread,
5885 low_delete_thread, low_new_fork, low_forget_process,
5886 low_prepare_to_resume, low_siginfo_fixup, low_status_is_event>:
5887 New virtual methods.
5888 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
5889 (linux_nat_new_fork_ftype, linux_nat_set_new_fork)
5890 (linux_nat_forget_process_ftype, linux_nat_set_forget_process)
5891 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
5892 (linux_nat_set_prepare_to_resume, linux_nat_set_status_is_event):
5893 Delete.
5894 * linux-fork.c (delete_fork): Adjust to call low method.
5895 * linux-nat.c (linux_nat_new_thread, linux_nat_delete_thread)
5896 (linux_nat_new_fork, linux_nat_forget_process_hook)
5897 (linux_nat_prepare_to_resume, linux_nat_siginfo_fixup)
5898 (linux_nat_status_is_event):
5899 (linux_nat_target::follow_fork, lwp_free, add_lwp, detach_one_lwp)
5900 (linux_resume_one_lwp_throw, linux_handle_extended_wait): Adjust
5901 to call low method.
5902 (sigtrap_is_event): Rename to ...
5903 (linux_nat_target::low_status_is_event): ... this.
5904 (linux_nat_set_status_is_event): Delete.
5905 (save_stop_reason, linux_nat_wait_1)
5906 (linux_nat_target::mourn_inferior, siginfo_fixup): Adjust to call
5907 low methods.
5908 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
5909 (linux_nat_set_new_fork, linux_nat_set_forget_process)
5910 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
5911 (linux_nat_set_prepare_to_resume): Delete.
5912 * aarch64-linux-nat.c: All linux_nat_set_* callbacks converted to
5913 low virtual methods.
5914 * amd64-linux-nat.c: Likewise.
5915 * arm-linux-nat.c: Likewise.
5916 * i386-linux-nat.c: Likewise.
5917 * ia64-linux-nat.c: Likewise.
5918 * mips-linux-nat.c: Likewise.
5919 * ppc-linux-nat.c: Likewise.
5920 * s390-linux-nat.c: Likewise.
5921 * sparc64-linux-nat.c: Likewise.
5922 * x86-linux-nat.c: Likewise.
5923 * x86-linux-nat.h: Include "nat/x86-linux.h".
5924 (x86_linux_nat_target) <low_new_fork, low_forget_process,
5925 low_prepare_to_resume, low_new_thread, low_delete_thread>:
5926 Override methods.
5927
57810aa7
PA
59282018-05-02 Pedro Alves <palves@redhat.com>
5929
5930 * target.h (target_ops)
5931 <stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
5932 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint,
5933 stopped_by_watchpoint, have_continuable_watchpoint,
5934 stopped_data_address, watchpoint_addr_within_range,
5935 can_accel_watchpoint_condition, can_run, thread_alive,
5936 has_all_memory, has_memory, has_stack, has_registers,
5937 has_execution, can_async_p, is_async_p, supports_non_stop,
5938 always_non_stop_p, can_execute_reverse, supports_multi_process,
5939 supports_enable_disable_tracepoint,
5940 supports_disable_randomization, supports_string_tracing,
5941 supports_evaluation_of_breakpoint_conditions,
5942 can_run_breakpoint_commands, filesystem_is_local,
5943 can_download_tracepoint, get_trace_state_variable_value,
5944 set_trace_notes, get_tib_address, use_agent, can_use_agent,
5945 record_is_replaying, record_will_replay,
5946 augmented_libraries_svr4_read>: Adjust to return bool.
5947 * aarch64-linux-nat.c: All implementations adjusted.
5948 * aix-thread.c: All implementations adjusted.
5949 * arm-linux-nat.c: All implementations adjusted.
5950 * breakpoint.c: All implementations adjusted.
5951 * bsd-kvm.c: All implementations adjusted.
5952 * bsd-uthread.c: All implementations adjusted.
5953 * corelow.c: All implementations adjusted.
5954 * ctf.c: All implementations adjusted.
5955 * darwin-nat.c: All implementations adjusted.
5956 * darwin-nat.h: All implementations adjusted.
5957 * exec.c: All implementations adjusted.
5958 * fbsd-nat.c: All implementations adjusted.
5959 * fbsd-nat.h: All implementations adjusted.
5960 * gnu-nat.c: All implementations adjusted.
5961 * gnu-nat.h: All implementations adjusted.
5962 * go32-nat.c: All implementations adjusted.
5963 * ia64-linux-nat.c: All implementations adjusted.
5964 * inf-child.c: All implementations adjusted.
5965 * inf-child.h: All implementations adjusted.
5966 * inf-ptrace.c: All implementations adjusted.
5967 * inf-ptrace.h: All implementations adjusted.
5968 * linux-nat.c: All implementations adjusted.
5969 * linux-nat.h: All implementations adjusted.
5970 * mips-linux-nat.c: All implementations adjusted.
5971 * nto-procfs.c: All implementations adjusted.
5972 * ppc-linux-nat.c: All implementations adjusted.
5973 * procfs.c: All implementations adjusted.
5974 * ravenscar-thread.c: All implementations adjusted.
5975 * record-btrace.c: All implementations adjusted.
5976 * record-full.c: All implementations adjusted.
5977 * remote-sim.c: All implementations adjusted.
5978 * remote.c: All implementations adjusted.
5979 * s390-linux-nat.c: All implementations adjusted.
5980 * sol-thread.c: All implementations adjusted.
5981 * spu-multiarch.c: All implementations adjusted.
5982 * target-delegates.c: All implementations adjusted.
5983 * target.c: All implementations adjusted.
5984 * target.h: All implementations adjusted.
5985 * tracefile-tfile.c: All implementations adjusted.
5986 * tracefile.c: All implementations adjusted.
5987 * tracefile.h: All implementations adjusted.
5988 * windows-nat.c: All implementations adjusted.
5989 * x86-linux-nat.h: All implementations adjusted.
5990 * x86-nat.h: All implementations adjusted.
5991
ad6a4e2d
PA
59922018-05-02 Pedro Alves <palves@redhat.com>
5993
5994 * make-target-delegates (scan_target_h): Don't trim lines here.
5995 Replace sequences of tabs and/or whitespace with a single
5996 whitespace.
5997 (top level, parsing methods): Trim each line before processing it
5998 here.
5999
f6ac5f3d
PA
60002018-05-02 Pedro Alves <palves@redhat.com>
6001 John Baldwin <jhb@freebsd.org>
6002
6003 * target.h (enum strata) <debug_stratum>: New.
6004 (struct target_ops) <all delegation methods>: Replace by C++
6005 virtual methods, and drop "to_" prefix. All references updated
6006 throughout.
6007 <to_shortname, to_longname, to_doc, to_data,
6008 to_have_steppable_watchpoint, to_have_continuable_watchpoint,
6009 to_has_thread_control, to_attach_no_wait>: Delete, replaced by
6010 virtual methods. All references updated throughout.
6011 <can_attach, supports_terminal_ours, can_create_inferior,
6012 get_thread_control_capabilities, attach_no_wait>: New
6013 virtual methods.
6014 <insert_breakpoint, remove_breakpoint>: Now
6015 TARGET_DEFAULT_NORETURN methods.
6016 <info_proc>: Now returns bool.
6017 <to_magic>: Delete.
6018 (OPS_MAGIC): Delete.
6019 (current_target): Delete. All references replaced by references
6020 to ...
6021 (target_stack): ... this. New.
6022 (target_shortname, target_longname): Adjust.
6023 (target_can_run): Now a function declaration.
6024 (default_child_has_all_memory, default_child_has_memory)
6025 (default_child_has_stack, default_child_has_registers)
6026 (default_child_has_execution): Remove target_ops parameter.
6027 (complete_target_initialization): Delete.
6028 (memory_breakpoint_target): New template class.
6029 (test_target_ops): Refactor as a C++ class with virtual methods.
6030 * make-target-delegates (NAME_PART): Tighten.
6031 (POINTER_PART, CP_SYMBOL): New.
6032 (SIMPLE_RETURN_PART): Reimplement.
6033 (VEC_RETURN_PART): Expect less.
6034 (RETURN_PART, VIRTUAL_PART): New.
6035 (METHOD): Adjust to C++ virtual methods.
6036 (scan_target_h): Remove reference to C99.
6037 (dname): Output "target_ops::" prefix.
6038 (write_function_header): Adjust to output a C++ class method.
6039 (write_declaration): New.
6040 (write_delegator): Adjust to output a C++ class method.
6041 (tdname): Output "dummy_target::" prefix.
6042 (write_tdefault, write_debugmethod): Adjust to output a C++ class
6043 method.
6044 (tdefault_names, debug_names): Delete.
6045 (return_types, tdefaults, styles, argtypes_array): New.
6046 (top level): All methods are delegators.
6047 (print_class): New.
6048 (top level): Print dummy_target and debug_target classes.
6049 * target-delegates.c: Regenerate.
6050 * target-debug.h (target_debug_print_enum_info_proc_what)
6051 (target_debug_print_thread_control_capabilities)
6052 (target_debug_print_thread_info_p): New.
6053 * target.c (dummy_target): Delete.
6054 (the_dummy_target, the_debug_target): New.
6055 (target_stack): Now extern.
6056 (set_targetdebug): Push/unpush debug target.
6057 (default_child_has_all_memory, default_child_has_memory)
6058 (default_child_has_stack, default_child_has_registers)
6059 (default_child_has_execution): Remove target_ops parameter.
6060 (complete_target_initialization): Delete.
6061 (add_target_with_completer): No longer call
6062 complete_target_initialization.
6063 (target_supports_terminal_ours): Use regular delegation.
6064 (update_current_target): Delete.
6065 (push_target): No longer check magic number. Don't call
6066 update_current_target.
6067 (unpush_target): Don't call update_current_target.
6068 (target_is_pushed): No longer check magic number.
6069 (target_require_runnable): Skip for all stratums over
6070 process_stratum.
6071 (target_ops::info_proc): New.
6072 (target_info_proc): Use find_target_at and
6073 find_default_run_target.
6074 (target_supports_disable_randomization): Use regular delegation.
6075 (target_get_osdata): Use find_target_at.
6076 (target_ops::open, target_ops::close, target_ops::can_attach)
6077 (target_ops::attach, target_ops::can_create_inferior)
6078 (target_ops::create_inferior, target_ops::can_run)
6079 (target_can_run): New.
6080 (default_fileio_target): Use regular delegation.
6081 (target_ops::fileio_open, target_ops::fileio_pwrite)
6082 (target_ops::fileio_pread, target_ops::fileio_fstat)
6083 (target_ops::fileio_close, target_ops::fileio_unlink)
6084 (target_ops::fileio_readlink): New.
6085 (target_fileio_open_1, target_fileio_unlink)
6086 (target_fileio_readlink): Always call the target method. Handle
6087 FILEIO_ENOSYS.
6088 (return_zero, return_zero_has_execution): Delete.
6089 (init_dummy_target): Delete.
6090 (dummy_target::dummy_target, dummy_target::shortname)
6091 (dummy_target::longname, dummy_target::doc)
6092 (debug_target::debug_target, debug_target::shortname)
6093 (debug_target::longname, debug_target::doc): New.
6094 (target_supports_delete_record): Use regular delegation.
6095 (setup_target_debug): Delete.
6096 (maintenance_print_target_stack): Skip debug_stratum.
6097 (initialize_targets): Instantiate the_dummy_target and
6098 the_debug_target.
6099 * auxv.c (target_auxv_parse): Remove 'ops' parameter. Adjust to
6100 use target_stack.
6101 (target_auxv_search, fprint_target_auxv): Adjust.
6102 (info_auxv_command): Adjust to use target_stack.
6103 * auxv.h (target_auxv_parse): Remove 'ops' parameter.
6104 * exceptions.c (print_flush): Handle a NULL target_stack.
6105 * regcache.c (target_ops_no_register): Refactor as class with
6106 virtual methods.
6107
6108 * exec.c (exec_target): New class.
6109 (exec_ops): Now an exec_target.
6110 (exec_open, exec_close_1, exec_get_section_table)
6111 (exec_xfer_partial, exec_files_info, exec_has_memory)
6112 (exec_make_note_section): Refactor as exec_target methods.
6113 (exec_file_clear, ignore, exec_remove_breakpoint, init_exec_ops):
6114 Delete.
6115 (exec_target::find_memory_regions): New.
6116 (_initialize_exec): Don't call init_exec_ops.
6117 * gdbcore.h (exec_file_clear): Delete.
6118
6119 * corefile.c (core_target): Delete.
6120 (core_file_command): Adjust.
6121 * corelow.c (core_target): New class.
6122 (the_core_target): New.
6123 (core_close): Remove target_ops parameter.
6124 (core_close_cleanup): Adjust.
6125 (core_target::close): New.
6126 (core_open, core_detach, get_core_registers, core_files_info)
6127 (core_xfer_partial, core_thread_alive, core_read_description)
6128 (core_pid_to_str, core_thread_name, core_has_memory)
6129 (core_has_stack, core_has_registers, core_info_proc): Rework as
6130 core_target methods.
6131 (ignore, core_remove_breakpoint, init_core_ops): Delete.
6132 (_initialize_corelow): Initialize the_core_target.
6133 * gdbcore.h (core_target): Delete.
6134 (the_core_target): New.
6135
6136 * ctf.c: (ctf_target): New class.
6137 (ctf_ops): Now a ctf_target.
6138 (ctf_open, ctf_close, ctf_files_info, ctf_fetch_registers)
6139 (ctf_xfer_partial, ctf_get_trace_state_variable_value)
6140 (ctf_trace_find, ctf_traceframe_info): Refactor as ctf_target
6141 methods.
6142 (init_ctf_ops): Delete.
6143 (_initialize_ctf): Don't call it.
6144 * tracefile-tfile.c (tfile_target): New class.
6145 (tfile_ops): Now a tfile_target.
6146 (tfile_open, tfile_close, tfile_files_info)
6147 (tfile_get_tracepoint_status, tfile_trace_find)
6148 (tfile_fetch_registers, tfile_xfer_partial)
6149 (tfile_get_trace_state_variable_value, tfile_traceframe_info):
6150 Refactor as tfile_target methods.
6151 (tfile_xfer_partial_features): Remove target_ops parameter.
6152 (init_tfile_ops): Delete.
6153 (_initialize_tracefile_tfile): Don't call it.
6154 * tracefile.c (tracefile_has_all_memory, tracefile_has_memory)
6155 (tracefile_has_stack, tracefile_has_registers)
6156 (tracefile_thread_alive, tracefile_get_trace_status): Refactor as
6157 tracefile_target methods.
6158 (init_tracefile_ops): Delete.
6159 (tracefile_target::tracefile_target): New.
6160 * tracefile.h: Include "target.h".
6161 (tracefile_target): New class.
6162 (init_tracefile_ops): Delete.
6163
6164 * spu-multiarch.c (spu_multiarch_target): New class.
6165 (spu_ops): Now a spu_multiarch_target.
6166 (spu_thread_architecture, spu_region_ok_for_hw_watchpoint)
6167 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
6168 (spu_search_memory, spu_mourn_inferior): Refactor as
6169 spu_multiarch_target methods.
6170 (init_spu_ops): Delete.
6171 (_initialize_spu_multiarch): Remove references to init_spu_ops,
6172 complete_target_initialization.
6173
6174 * ravenscar-thread.c (ravenscar_thread_target): New class.
6175 (ravenscar_ops): Now a ravenscar_thread_target.
6176 (ravenscar_resume, ravenscar_wait, ravenscar_update_thread_list)
6177 (ravenscar_thread_alive, ravenscar_pid_to_str)
6178 (ravenscar_fetch_registers, ravenscar_store_registers)
6179 (ravenscar_prepare_to_store, ravenscar_stopped_by_sw_breakpoint)
6180 (ravenscar_stopped_by_hw_breakpoint)
6181 (ravenscar_stopped_by_watchpoint, ravenscar_stopped_data_address)
6182 (ravenscar_mourn_inferior, ravenscar_core_of_thread)
6183 (ravenscar_get_ada_task_ptid): Refactor as ravenscar_thread_target
6184 methods.
6185 (init_ravenscar_thread_ops): Delete.
6186 (_initialize_ravenscar): Remove references to
6187 init_ravenscar_thread_ops and complete_target_initialization.
6188
6189 * bsd-uthread.c (bsd_uthread_ops_hack): Delete.
6190 (bsd_uthread_target): New class.
6191 (bsd_uthread_ops): Now a bsd_uthread_target.
6192 (bsd_uthread_activate): Adjust to refer to bsd_uthread_ops.
6193 (bsd_uthread_close, bsd_uthread_mourn_inferior)
6194 (bsd_uthread_fetch_registers, bsd_uthread_store_registers)
6195 (bsd_uthread_wait, bsd_uthread_resume, bsd_uthread_thread_alive)
6196 (bsd_uthread_update_thread_list, bsd_uthread_extra_thread_info)
6197 (bsd_uthread_pid_to_str): Refactor as bsd_uthread_target methods.
6198 (bsd_uthread_target): Delete function.
6199 (_initialize_bsd_uthread): Remove reference to
6200 complete_target_initialization.
6201
6202 * bfd-target.c (target_bfd_data): Delete. Fields folded into ...
6203 (target_bfd): ... this new class.
6204 (target_bfd_xfer_partial, target_bfd_get_section_table)
6205 (target_bfd_close): Refactor as target_bfd methods.
6206 (target_bfd::~target_bfd): New.
6207 (target_bfd_reopen): Adjust.
6208 (target_bfd::close): New.
6209
6210 * record-btrace.c (record_btrace_target): New class.
6211 (record_btrace_ops): Now a record_btrace_target.
6212 (record_btrace_open, record_btrace_stop_recording)
6213 (record_btrace_disconnect, record_btrace_close)
6214 (record_btrace_async, record_btrace_info)
6215 (record_btrace_insn_history, record_btrace_insn_history_range)
6216 (record_btrace_insn_history_from, record_btrace_call_history)
6217 (record_btrace_call_history_range)
6218 (record_btrace_call_history_from, record_btrace_record_method)
6219 (record_btrace_is_replaying, record_btrace_will_replay)
6220 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
6221 (record_btrace_remove_breakpoint, record_btrace_fetch_registers)
6222 (record_btrace_store_registers, record_btrace_prepare_to_store)
6223 (record_btrace_to_get_unwinder)
6224 (record_btrace_to_get_tailcall_unwinder, record_btrace_resume)
6225 (record_btrace_commit_resume, record_btrace_wait)
6226 (record_btrace_stop, record_btrace_can_execute_reverse)
6227 (record_btrace_stopped_by_sw_breakpoint)
6228 (record_btrace_supports_stopped_by_sw_breakpoint)
6229 (record_btrace_stopped_by_hw_breakpoint)
6230 (record_btrace_supports_stopped_by_hw_breakpoint)
6231 (record_btrace_update_thread_list, record_btrace_thread_alive)
6232 (record_btrace_goto_begin, record_btrace_goto_end)
6233 (record_btrace_goto, record_btrace_stop_replaying_all)
6234 (record_btrace_execution_direction)
6235 (record_btrace_prepare_to_generate_core)
6236 (record_btrace_done_generating_core): Refactor as
6237 record_btrace_target methods.
6238 (init_record_btrace_ops): Delete.
6239 (_initialize_record_btrace): Remove reference to
6240 init_record_btrace_ops.
6241 * record-full.c (RECORD_FULL_IS_REPLAY): Adjust to always refer to
6242 the execution_direction global.
6243 (record_full_base_target, record_full_target)
6244 (record_full_core_target): New classes.
6245 (record_full_ops): Now a record_full_target.
6246 (record_full_core_ops): Now a record_full_core_target.
6247 (record_full_target::detach, record_full_target::disconnect)
6248 (record_full_core_target::disconnect)
6249 (record_full_target::mourn_inferior, record_full_target::kill):
6250 New.
6251 (record_full_open, record_full_close, record_full_async): Refactor
6252 as methods of the record_full_base_target class.
6253 (record_full_resume, record_full_commit_resume): Refactor
6254 as methods of the record_full_target class.
6255 (record_full_wait, record_full_stopped_by_watchpoint)
6256 (record_full_stopped_data_address)
6257 (record_full_stopped_by_sw_breakpoint)
6258 (record_full_supports_stopped_by_sw_breakpoint)
6259 (record_full_stopped_by_hw_breakpoint)
6260 (record_full_supports_stopped_by_hw_breakpoint): Refactor as
6261 methods of the record_full_base_target class.
6262 (record_full_store_registers, record_full_xfer_partial)
6263 (record_full_insert_breakpoint, record_full_remove_breakpoint):
6264 Refactor as methods of the record_full_target class.
6265 (record_full_can_execute_reverse, record_full_get_bookmark)
6266 (record_full_goto_bookmark, record_full_execution_direction)
6267 (record_full_record_method, record_full_info, record_full_delete)
6268 (record_full_is_replaying, record_full_will_replay)
6269 (record_full_goto_begin, record_full_goto_end, record_full_goto)
6270 (record_full_stop_replaying): Refactor as methods of the
6271 record_full_base_target class.
6272 (record_full_core_resume, record_full_core_kill)
6273 (record_full_core_fetch_registers)
6274 (record_full_core_prepare_to_store)
6275 (record_full_core_store_registers, record_full_core_xfer_partial)
6276 (record_full_core_insert_breakpoint)
6277 (record_full_core_remove_breakpoint)
6278 (record_full_core_has_execution): Refactor
6279 as methods of the record_full_core_target class.
6280 (record_full_base_target::supports_delete_record): New.
6281 (init_record_full_ops): Delete.
6282 (init_record_full_core_ops): Delete.
6283 (record_full_save): Refactor as method of the
6284 record_full_base_target class.
6285 (_initialize_record_full): Remove references to
6286 init_record_full_ops and init_record_full_core_ops.
6287
6288 * remote.c (remote_target, extended_remote_target): New classes.
6289 (remote_ops): Now a remote_target.
6290 (extended_remote_ops): Now an extended_remote_target.
6291 (remote_insert_fork_catchpoint, remote_remove_fork_catchpoint)
6292 (remote_insert_vfork_catchpoint, remote_remove_vfork_catchpoint)
6293 (remote_insert_exec_catchpoint, remote_remove_exec_catchpoint)
6294 (remote_pass_signals, remote_set_syscall_catchpoint)
6295 (remote_program_signals, )
6296 (remote_thread_always_alive): Remove target_ops parameter.
6297 (remote_thread_alive, remote_thread_name)
6298 (remote_update_thread_list, remote_threads_extra_info)
6299 (remote_static_tracepoint_marker_at)
6300 (remote_static_tracepoint_markers_by_strid)
6301 (remote_get_ada_task_ptid, remote_close, remote_start_remote)
6302 (remote_open): Refactor as methods of remote_target.
6303 (extended_remote_open, extended_remote_detach)
6304 (extended_remote_attach, extended_remote_post_attach):
6305 (extended_remote_supports_disable_randomization)
6306 (extended_remote_create_inferior): : Refactor as method of
6307 extended_remote_target.
6308 (remote_set_permissions, remote_open_1, remote_detach)
6309 (remote_follow_fork, remote_follow_exec, remote_disconnect)
6310 (remote_resume, remote_commit_resume, remote_stop)
6311 (remote_interrupt, remote_pass_ctrlc, remote_terminal_inferior)
6312 (remote_terminal_ours, remote_wait, remote_fetch_registers)
6313 (remote_prepare_to_store, remote_store_registers)
6314 (remote_flash_erase, remote_flash_done, remote_files_info)
6315 (remote_kill, remote_mourn, remote_insert_breakpoint)
6316 (remote_remove_breakpoint, remote_insert_watchpoint)
6317 (remote_watchpoint_addr_within_range)
6318 (remote_remove_watchpoint, remote_region_ok_for_hw_watchpoint)
6319 (remote_check_watch_resources, remote_stopped_by_sw_breakpoint)
6320 (remote_supports_stopped_by_sw_breakpoint)
6321 (remote_stopped_by_hw_breakpoint)
6322 (remote_supports_stopped_by_hw_breakpoint)
6323 (remote_stopped_by_watchpoint, remote_stopped_data_address)
6324 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
6325 (remote_verify_memory): Refactor as methods of remote_target.
6326 (remote_write_qxfer, remote_read_qxfer): Remove target_ops
6327 parameter.
6328 (remote_xfer_partial, remote_get_memory_xfer_limit)
6329 (remote_search_memory, remote_rcmd, remote_memory_map)
6330 (remote_pid_to_str, remote_get_thread_local_address)
6331 (remote_get_tib_address, remote_read_description): Refactor as
6332 methods of remote_target.
6333 (remote_target::fileio_open, remote_target::fileio_pwrite)
6334 (remote_target::fileio_pread, remote_target::fileio_close): New.
6335 (remote_hostio_readlink, remote_hostio_fstat)
6336 (remote_filesystem_is_local, remote_can_execute_reverse)
6337 (remote_supports_non_stop, remote_supports_disable_randomization)
6338 (remote_supports_multi_process, remote_supports_cond_breakpoints)
6339 (remote_supports_enable_disable_tracepoint)
6340 (remote_supports_string_tracing)
6341 (remote_can_run_breakpoint_commands, remote_trace_init)
6342 (remote_download_tracepoint, remote_can_download_tracepoint)
6343 (remote_download_trace_state_variable, remote_enable_tracepoint)
6344 (remote_disable_tracepoint, remote_trace_set_readonly_regions)
6345 (remote_trace_start, remote_get_trace_status)
6346 (remote_get_tracepoint_status, remote_trace_stop)
6347 (remote_trace_find, remote_get_trace_state_variable_value)
6348 (remote_save_trace_data, remote_get_raw_trace_data)
6349 (remote_set_disconnected_tracing, remote_core_of_thread)
6350 (remote_set_circular_trace_buffer, remote_traceframe_info)
6351 (remote_get_min_fast_tracepoint_insn_len)
6352 (remote_set_trace_buffer_size, remote_set_trace_notes)
6353 (remote_use_agent, remote_can_use_agent, remote_enable_btrace)
6354 (remote_disable_btrace, remote_teardown_btrace)
6355 (remote_read_btrace, remote_btrace_conf)
6356 (remote_augmented_libraries_svr4_read, remote_load)
6357 (remote_pid_to_exec_file, remote_can_do_single_step)
6358 (remote_execution_direction, remote_thread_handle_to_thread_info):
6359 Refactor as methods of remote_target.
6360 (init_remote_ops, init_extended_remote_ops): Delete.
6361 (remote_can_async_p, remote_is_async_p, remote_async)
6362 (remote_thread_events, remote_upload_tracepoints)
6363 (remote_upload_trace_state_variables): Refactor as methods of
6364 remote_target.
6365 (_initialize_remote): Remove references to init_remote_ops and
6366 init_extended_remote_ops.
6367
6368 * remote-sim.c (gdbsim_target): New class.
6369 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_kill)
6370 (gdbsim_load, gdbsim_create_inferior, gdbsim_open, gdbsim_close)
6371 (gdbsim_detach, gdbsim_resume, gdbsim_interrupt)
6372 (gdbsim_wait, gdbsim_prepare_to_store, gdbsim_xfer_partial)
6373 (gdbsim_files_info, gdbsim_mourn_inferior, gdbsim_thread_alive)
6374 (gdbsim_pid_to_str, gdbsim_has_all_memory, gdbsim_has_memory):
6375 Refactor as methods of gdbsim_target.
6376 (gdbsim_ops): Now a gdbsim_target.
6377 (init_gdbsim_ops): Delete.
6378 (gdbsim_cntrl_c): Adjust.
6379 (_initialize_remote_sim): Remove reference to init_gdbsim_ops.
6380
6381 * amd64-linux-nat.c (amd64_linux_nat_target): New class.
6382 (the_amd64_linux_nat_target): New.
6383 (amd64_linux_fetch_inferior_registers)
6384 (amd64_linux_store_inferior_registers): Refactor as methods of
6385 amd64_linux_nat_target.
6386 (_initialize_amd64_linux_nat): Adjust. Set linux_target.
6387 * i386-linux-nat.c: Don't include "linux-nat.h".
6388 (i386_linux_nat_target): New class.
6389 (the_i386_linux_nat_target): New.
6390 (i386_linux_fetch_inferior_registers)
6391 (i386_linux_store_inferior_registers, i386_linux_resume): Refactor
6392 as methods of i386_linux_nat_target.
6393 (_initialize_i386_linux_nat): Adjust. Set linux_target.
6394 * inf-child.c (inf_child_ops): Delete.
6395 (inf_child_fetch_inferior_registers)
6396 (inf_child_store_inferior_registers): Delete.
6397 (inf_child_post_attach, inf_child_prepare_to_store): Refactor as
6398 methods of inf_child_target.
6399 (inf_child_target::supports_terminal_ours)
6400 (inf_child_target::terminal_init)
6401 (inf_child_target::terminal_inferior)
6402 (inf_child_target::terminal_ours_for_output)
6403 (inf_child_target::terminal_ours, inf_child_target::interrupt)
6404 (inf_child_target::pass_ctrlc, inf_child_target::terminal_info):
6405 New.
6406 (inf_child_open, inf_child_disconnect, inf_child_close)
6407 (inf_child_mourn_inferior, inf_child_maybe_unpush_target)
6408 (inf_child_post_startup_inferior, inf_child_can_run)
6409 (inf_child_pid_to_exec_file): Refactor as methods of
6410 inf_child_target.
6411 (inf_child_follow_fork): Delete.
6412 (inf_child_target::can_create_inferior)
6413 (inf_child_target::can_attach): New.
6414 (inf_child_target::has_all_memory, inf_child_target::has_memory)
6415 (inf_child_target::has_stack, inf_child_target::has_registers)
6416 (inf_child_target::has_execution): New.
6417 (inf_child_fileio_open, inf_child_fileio_pwrite)
6418 (inf_child_fileio_pread, inf_child_fileio_fstat)
6419 (inf_child_fileio_close, inf_child_fileio_unlink)
6420 (inf_child_fileio_readlink, inf_child_use_agent)
6421 (inf_child_can_use_agent): Refactor as methods of
6422 inf_child_target.
6423 (return_zero, inf_child_target): Delete.
6424 (inf_child_target::inf_child_target): New.
6425 * inf-child.h: Include "target.h".
6426 (inf_child_target): Delete function prototype.
6427 (inf_child_target): New class.
6428 (inf_child_open_target, inf_child_mourn_inferior)
6429 (inf_child_maybe_unpush_target): Delete.
6430 * inf-ptrace.c (inf_ptrace_target::~inf_ptrace_target): New.
6431 (inf_ptrace_follow_fork, inf_ptrace_insert_fork_catchpoint)
6432 (inf_ptrace_remove_fork_catchpoint, inf_ptrace_create_inferior)
6433 (inf_ptrace_post_startup_inferior, inf_ptrace_mourn_inferior)
6434 (inf_ptrace_attach, inf_ptrace_post_attach, inf_ptrace_detach)
6435 (inf_ptrace_detach_success, inf_ptrace_kill, inf_ptrace_resume)
6436 (inf_ptrace_wait, inf_ptrace_xfer_partial)
6437 (inf_ptrace_thread_alive, inf_ptrace_files_info)
6438 (inf_ptrace_pid_to_str, inf_ptrace_auxv_parse): Refactor as
6439 methods of inf_ptrace_target.
6440 (inf_ptrace_target): Delete function.
6441 * inf-ptrace.h: Include "inf-child.h".
6442 (inf_ptrace_target): Delete function declaration.
6443 (inf_ptrace_target): New class.
6444 (inf_ptrace_trad_target, inf_ptrace_detach_success): Delete.
6445 * linux-nat.c (linux_target): New.
6446 (linux_ops, linux_ops_saved, super_xfer_partial): Delete.
6447 (linux_nat_target::~linux_nat_target): New.
6448 (linux_child_post_attach, linux_child_post_startup_inferior)
6449 (linux_child_follow_fork, linux_child_insert_fork_catchpoint)
6450 (linux_child_remove_fork_catchpoint)
6451 (linux_child_insert_vfork_catchpoint)
6452 (linux_child_remove_vfork_catchpoint)
6453 (linux_child_insert_exec_catchpoint)
6454 (linux_child_remove_exec_catchpoint)
6455 (linux_child_set_syscall_catchpoint, linux_nat_pass_signals)
6456 (linux_nat_create_inferior, linux_nat_attach, linux_nat_detach)
6457 (linux_nat_resume, linux_nat_stopped_by_watchpoint)
6458 (linux_nat_stopped_data_address)
6459 (linux_nat_stopped_by_sw_breakpoint)
6460 (linux_nat_supports_stopped_by_sw_breakpoint)
6461 (linux_nat_stopped_by_hw_breakpoint)
6462 (linux_nat_supports_stopped_by_hw_breakpoint, linux_nat_wait)
6463 (linux_nat_kill, linux_nat_mourn_inferior)
6464 (linux_nat_xfer_partial, linux_nat_thread_alive)
6465 (linux_nat_update_thread_list, linux_nat_pid_to_str)
6466 (linux_nat_thread_name, linux_child_pid_to_exec_file)
6467 (linux_child_static_tracepoint_markers_by_strid)
6468 (linux_nat_is_async_p, linux_nat_can_async_p)
6469 (linux_nat_supports_non_stop, linux_nat_always_non_stop_p)
6470 (linux_nat_supports_multi_process)
6471 (linux_nat_supports_disable_randomization, linux_nat_async)
6472 (linux_nat_stop, linux_nat_close, linux_nat_thread_address_space)
6473 (linux_nat_core_of_thread, linux_nat_filesystem_is_local)
6474 (linux_nat_fileio_open, linux_nat_fileio_readlink)
6475 (linux_nat_fileio_unlink, linux_nat_thread_events): Refactor as
6476 methods of linux_nat_target.
6477 (linux_nat_wait_1, linux_xfer_siginfo, linux_proc_xfer_partial)
6478 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Remove target_ops
6479 parameter.
6480 (check_stopped_by_watchpoint): Adjust.
6481 (linux_xfer_partial): Delete.
6482 (linux_target_install_ops, linux_target, linux_nat_add_target):
6483 Delete.
6484 (linux_nat_target::linux_nat_target): New.
6485 * linux-nat.h: Include "inf-ptrace.h".
6486 (linux_nat_target): New.
6487 (linux_target, linux_target_install_ops, linux_nat_add_target):
6488 Delete function declarations.
6489 (linux_target): Declare global.
6490 * linux-thread-db.c (thread_db_target): New.
6491 (thread_db_target::thread_db_target): New.
6492 (thread_db_ops): Delete.
6493 (the_thread_db_target): New.
6494 (thread_db_detach, thread_db_wait, thread_db_mourn_inferior)
6495 (thread_db_update_thread_list, thread_db_pid_to_str)
6496 (thread_db_extra_thread_info)
6497 (thread_db_thread_handle_to_thread_info)
6498 (thread_db_get_thread_local_address, thread_db_get_ada_task_ptid)
6499 (thread_db_resume): Refactor as methods of thread_db_target.
6500 (init_thread_db_ops): Delete.
6501 (_initialize_thread_db): Remove reference to init_thread_db_ops.
6502 * x86-linux-nat.c: Don't include "linux-nat.h".
6503 (super_post_startup_inferior): Delete.
6504 (x86_linux_nat_target::~x86_linux_nat_target): New.
6505 (x86_linux_child_post_startup_inferior)
6506 (x86_linux_read_description, x86_linux_enable_btrace)
6507 (x86_linux_disable_btrace, x86_linux_teardown_btrace)
6508 (x86_linux_read_btrace, x86_linux_btrace_conf): Refactor as
6509 methods of x86_linux_nat_target.
6510 (x86_linux_create_target): Delete. Bits folded ...
6511 (x86_linux_add_target): ... here. Now takes a linux_nat_target
6512 pointer.
6513 * x86-linux-nat.h: Include "linux-nat.h" and "x86-nat.h".
6514 (x86_linux_nat_target): New class.
6515 (x86_linux_create_target): Delete.
6516 (x86_linux_add_target): Now takes a linux_nat_target pointer.
6517 * x86-nat.c (x86_insert_watchpoint, x86_remove_watchpoint)
6518 (x86_region_ok_for_watchpoint, x86_stopped_data_address)
6519 (x86_stopped_by_watchpoint, x86_insert_hw_breakpoint)
6520 (x86_remove_hw_breakpoint, x86_can_use_hw_breakpoint)
6521 (x86_stopped_by_hw_breakpoint): Remove target_ops parameter and
6522 make extern.
6523 (x86_use_watchpoints): Delete.
6524 * x86-nat.h: Include "breakpoint.h" and "target.h".
6525 (x86_use_watchpoints): Delete.
6526 (x86_can_use_hw_breakpoint, x86_region_ok_for_hw_watchpoint)
6527 (x86_stopped_by_watchpoint, x86_stopped_data_address)
6528 (x86_insert_watchpoint, x86_remove_watchpoint)
6529 (x86_insert_hw_breakpoint, x86_remove_hw_breakpoint)
6530 (x86_stopped_by_hw_breakpoint): New declarations.
6531 (x86_nat_target): New template class.
6532
6533 * ppc-linux-nat.c (ppc_linux_nat_target): New class.
6534 (the_ppc_linux_nat_target): New.
6535 (ppc_linux_fetch_inferior_registers)
6536 (ppc_linux_can_use_hw_breakpoint)
6537 (ppc_linux_region_ok_for_hw_watchpoint)
6538 (ppc_linux_ranged_break_num_registers)
6539 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
6540 (ppc_linux_insert_mask_watchpoint)
6541 (ppc_linux_remove_mask_watchpoint)
6542 (ppc_linux_can_accel_watchpoint_condition)
6543 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint)
6544 (ppc_linux_stopped_data_address, ppc_linux_stopped_by_watchpoint)
6545 (ppc_linux_watchpoint_addr_within_range)
6546 (ppc_linux_masked_watch_num_registers)
6547 (ppc_linux_store_inferior_registers, ppc_linux_auxv_parse)
6548 (ppc_linux_read_description): Refactor as methods of
6549 ppc_linux_nat_target.
6550 (_initialize_ppc_linux_nat): Adjust. Set linux_target.
6551
6552 * procfs.c (procfs_xfer_partial): Delete forward declaration.
6553 (procfs_target): New class.
6554 (the_procfs_target): New.
6555 (procfs_target): Delete function.
6556 (procfs_auxv_parse, procfs_attach, procfs_detach)
6557 (procfs_fetch_registers, procfs_store_registers, procfs_wait)
6558 (procfs_xfer_partial, procfs_resume, procfs_pass_signals)
6559 (procfs_files_info, procfs_kill_inferior, procfs_mourn_inferior)
6560 (procfs_create_inferior, procfs_update_thread_list)
6561 (procfs_thread_alive, procfs_pid_to_str)
6562 (procfs_can_use_hw_breakpoint, procfs_stopped_by_watchpoint)
6563 (procfs_stopped_data_address, procfs_insert_watchpoint)
6564 (procfs_remove_watchpoint, procfs_region_ok_for_hw_watchpoint)
6565 (proc_find_memory_regions, procfs_info_proc)
6566 (procfs_make_note_section): Refactor as methods of procfs_target.
6567 (_initialize_procfs): Adjust.
6568 * sol-thread.c (sol_thread_target): New class.
6569 (sol_thread_ops): Now a sol_thread_target.
6570 (sol_thread_detach, sol_thread_resume, sol_thread_wait)
6571 (sol_thread_fetch_registers, sol_thread_store_registers)
6572 (sol_thread_xfer_partial, sol_thread_mourn_inferior)
6573 (sol_thread_alive, solaris_pid_to_str, sol_update_thread_list)
6574 (sol_get_ada_task_ptid): Refactor as methods of sol_thread_target.
6575 (init_sol_thread_ops): Delete.
6576 (_initialize_sol_thread): Adjust. Remove references to
6577 init_sol_thread_ops and complete_target_initialization.
6578
6579 * windows-nat.c (windows_nat_target): New class.
6580 (windows_fetch_inferior_registers)
6581 (windows_store_inferior_registers, windows_resume, windows_wait)
6582 (windows_attach, windows_detach, windows_pid_to_exec_file)
6583 (windows_files_info, windows_create_inferior)
6584 (windows_mourn_inferior, windows_interrupt, windows_kill_inferior)
6585 (windows_close, windows_pid_to_str, windows_xfer_partial)
6586 (windows_get_tib_address, windows_get_ada_task_ptid)
6587 (windows_thread_name, windows_thread_alive): Refactor as
6588 windows_nat_target methods.
6589 (do_initial_windows_stuff): Adjust.
6590 (windows_target): Delete function.
6591 (_initialize_windows_nat): Adjust.
6592
6593 * darwin-nat.c (darwin_resume, darwin_wait_to, darwin_interrupt)
6594 (darwin_mourn_inferior, darwin_kill_inferior)
6595 (darwin_create_inferior, darwin_attach, darwin_detach)
6596 (darwin_pid_to_str, darwin_thread_alive, darwin_xfer_partial)
6597 (darwin_pid_to_exec_file, darwin_get_ada_task_ptid)
6598 (darwin_supports_multi_process): Refactor as darwin_nat_target
6599 methods.
6600 (darwin_resume_to, darwin_files_info): Delete.
6601 (_initialize_darwin_inferior): Rename to ...
6602 (_initialize_darwin_nat): ... this. Adjust to C++ification.
6603 * darwin-nat.h: Include "inf-child.h".
6604 (darwin_nat_target): New class.
6605 (darwin_complete_target): Delete.
6606 * i386-darwin-nat.c (i386_darwin_nat_target): New class.
6607 (darwin_target): New.
6608 (i386_darwin_fetch_inferior_registers)
6609 (i386_darwin_store_inferior_registers): Refactor as methods of
6610 darwin_nat_target.
6611 (darwin_complete_target): Delete, with ...
6612 (_initialize_i386_darwin_nat): ... bits factored out here.
6613
6614 * alpha-linux-nat.c (alpha_linux_nat_target): New class.
6615 (the_alpha_linux_nat_target): New.
6616 (alpha_linux_register_u_offset): Refactor as
6617 alpha_linux_nat_target method.
6618 (_initialize_alpha_linux_nat): Adjust.
6619 * linux-nat-trad.c (inf_ptrace_register_u_offset): Delete.
6620 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
6621 (inf_ptrace_store_register, inf_ptrace_store_registers): Refact as
6622 methods of linux_nat_trad_target.
6623 (linux_trad_target): Delete.
6624 * linux-nat-trad.h (linux_trad_target): Delete function.
6625 (linux_nat_trad_target): New class.
6626 * mips-linux-nat.c (mips_linux_nat_target): New class.
6627 (super_fetch_registers, super_store_registers, super_close):
6628 Delete.
6629 (the_mips_linux_nat_target): New.
6630 (mips64_linux_regsets_fetch_registers)
6631 (mips64_linux_regsets_store_registers)
6632 (mips64_linux_fetch_registers, mips64_linux_store_registers)
6633 (mips_linux_register_u_offset, mips_linux_read_description)
6634 (mips_linux_can_use_hw_breakpoint)
6635 (mips_linux_stopped_by_watchpoint)
6636 (mips_linux_stopped_data_address)
6637 (mips_linux_region_ok_for_hw_watchpoint)
6638 (mips_linux_insert_watchpoint, mips_linux_remove_watchpoint)
6639 (mips_linux_close): Refactor as methods of mips_linux_nat.
6640 (_initialize_mips_linux_nat): Adjust to C++ification.
6641
6642 * aix-thread.c (aix_thread_target): New class.
6643 (aix_thread_ops): Now an aix_thread_target.
6644 (aix_thread_detach, aix_thread_resume, aix_thread_wait)
6645 (aix_thread_fetch_registers, aix_thread_store_registers)
6646 (aix_thread_xfer_partial, aix_thread_mourn_inferior)
6647 (aix_thread_thread_alive, aix_thread_pid_to_str)
6648 (aix_thread_extra_thread_info, aix_thread_get_ada_task_ptid):
6649 Refactor as methods of aix_thread_target.
6650 (init_aix_thread_ops): Delete.
6651 (_initialize_aix_thread): Remove references to init_aix_thread_ops
6652 and complete_target_initialization.
6653 * rs6000-nat.c (rs6000_xfer_shared_libraries): Delete.
6654 (rs6000_nat_target): New class.
6655 (the_rs6000_nat_target): New.
6656 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers)
6657 (rs6000_xfer_partial, rs6000_wait, rs6000_create_inferior)
6658 (rs6000_xfer_shared_libraries): Refactor as rs6000_nat_target methods.
6659 (super_create_inferior): Delete.
6660 (_initialize_rs6000_nat): Adjust to C++ification.
6661
6662 * arm-linux-nat.c (arm_linux_nat_target): New class.
6663 (the_arm_linux_nat_target): New.
6664 (arm_linux_fetch_inferior_registers)
6665 (arm_linux_store_inferior_registers, arm_linux_read_description)
6666 (arm_linux_can_use_hw_breakpoint, arm_linux_insert_hw_breakpoint)
6667 (arm_linux_remove_hw_breakpoint)
6668 (arm_linux_region_ok_for_hw_watchpoint)
6669 (arm_linux_insert_watchpoint, arm_linux_remove_watchpoint)
6670 (arm_linux_stopped_data_address, arm_linux_stopped_by_watchpoint)
6671 (arm_linux_watchpoint_addr_within_range): Refactor as methods of
6672 arm_linux_nat_target.
6673 (_initialize_arm_linux_nat): Adjust to C++ification.
6674
6675 * aarch64-linux-nat.c (aarch64_linux_nat_target): New class.
6676 (the_aarch64_linux_nat_target): New.
6677 (aarch64_linux_fetch_inferior_registers)
6678 (aarch64_linux_store_inferior_registers)
6679 (aarch64_linux_child_post_startup_inferior)
6680 (aarch64_linux_read_description)
6681 (aarch64_linux_can_use_hw_breakpoint)
6682 (aarch64_linux_insert_hw_breakpoint)
6683 (aarch64_linux_remove_hw_breakpoint)
6684 (aarch64_linux_insert_watchpoint, aarch64_linux_remove_watchpoint)
6685 (aarch64_linux_region_ok_for_hw_watchpoint)
6686 (aarch64_linux_stopped_data_address)
6687 (aarch64_linux_stopped_by_watchpoint)
6688 (aarch64_linux_watchpoint_addr_within_range)
6689 (aarch64_linux_can_do_single_step): Refactor as methods of
6690 aarch64_linux_nat_target.
6691 (super_post_startup_inferior): Delete.
6692 (_initialize_aarch64_linux_nat): Adjust to C++ification.
6693
6694 * hppa-linux-nat.c (hppa_linux_nat_target): New class.
6695 (the_hppa_linux_nat_target): New.
6696 (hppa_linux_fetch_inferior_registers)
6697 (hppa_linux_store_inferior_registers): Refactor as methods of
6698 hppa_linux_nat_target.
6699 (_initialize_hppa_linux_nat): Adjust to C++ification.
6700
6701 * ia64-linux-nat.c (ia64_linux_nat_target): New class.
6702 (the_ia64_linux_nat_target): New.
6703 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint)
6704 (ia64_linux_stopped_data_address)
6705 (ia64_linux_stopped_by_watchpoint, ia64_linux_fetch_registers)
6706 (ia64_linux_store_registers, ia64_linux_xfer_partial): Refactor as
6707 ia64_linux_nat_target methods.
6708 (super_xfer_partial): Delete.
6709 (_initialize_ia64_linux_nat): Adjust to C++ification.
6710
6711 * m32r-linux-nat.c (m32r_linux_nat_target): New class.
6712 (the_m32r_linux_nat_target): New.
6713 (m32r_linux_fetch_inferior_registers)
6714 (m32r_linux_store_inferior_registers): Refactor as
6715 m32r_linux_nat_target methods.
6716 (_initialize_m32r_linux_nat): Adjust to C++ification.
6717
6718 * m68k-linux-nat.c (m68k_linux_nat_target): New class.
6719 (the_m68k_linux_nat_target): New.
6720 (m68k_linux_fetch_inferior_registers)
6721 (m68k_linux_store_inferior_registers): Refactor as
6722 m68k_linux_nat_target methods.
6723 (_initialize_m68k_linux_nat): Adjust to C++ification.
6724
6725 * s390-linux-nat.c (s390_linux_nat_target): New class.
6726 (the_s390_linux_nat_target): New.
6727 (s390_linux_fetch_inferior_registers)
6728 (s390_linux_store_inferior_registers, s390_stopped_by_watchpoint)
6729 (s390_insert_watchpoint, s390_remove_watchpoint)
6730 (s390_can_use_hw_breakpoint, s390_insert_hw_breakpoint)
6731 (s390_remove_hw_breakpoint, s390_region_ok_for_hw_watchpoint)
6732 (s390_auxv_parse, s390_read_description): Refactor as methods of
6733 s390_linux_nat_target.
6734 (_initialize_s390_nat): Adjust to C++ification.
6735
6736 * sparc-linux-nat.c (sparc_linux_nat_target): New class.
6737 (the_sparc_linux_nat_target): New.
6738 (_initialize_sparc_linux_nat): Adjust to C++ification.
6739 * sparc-nat.c (sparc_fetch_inferior_registers)
6740 (sparc_store_inferior_registers): Remove target_ops parameter.
6741 * sparc-nat.h (sparc_fetch_inferior_registers)
6742 (sparc_store_inferior_registers): Remove target_ops parameter.
6743 * sparc64-linux-nat.c (sparc64_linux_nat_target): New class.
6744 (the_sparc64_linux_nat_target): New.
6745 (_initialize_sparc64_linux_nat): Adjust to C++ification.
6746
6747 * spu-linux-nat.c (spu_linux_nat_target): New class.
6748 (the_spu_linux_nat_target): New.
6749 (spu_child_post_startup_inferior, spu_child_post_attach)
6750 (spu_child_wait, spu_fetch_inferior_registers)
6751 (spu_store_inferior_registers, spu_xfer_partial)
6752 (spu_can_use_hw_breakpoint): Refactor as spu_linux_nat_target
6753 methods.
6754 (_initialize_spu_nat): Adjust to C++ification.
6755
6756 * tilegx-linux-nat.c (tilegx_linux_nat_target): New class.
6757 (the_tilegx_linux_nat_target): New.
6758 (fetch_inferior_registers, store_inferior_registers):
6759 Refactor as methods.
6760 (_initialize_tile_linux_nat): Adjust to C++ification.
6761
6762 * xtensa-linux-nat.c (xtensa_linux_nat_target): New class.
6763 (the_xtensa_linux_nat_target): New.
6764 (xtensa_linux_fetch_inferior_registers)
6765 (xtensa_linux_store_inferior_registers): Refactor as
6766 xtensa_linux_nat_target methods.
6767 (_initialize_xtensa_linux_nat): Adjust to C++ification.
6768
6769 * fbsd-nat.c (USE_SIGTRAP_SIGINFO): Delete.
6770 (fbsd_pid_to_exec_file, fbsd_find_memory_regions)
6771 (fbsd_find_memory_regions, fbsd_info_proc, fbsd_xfer_partial)
6772 (fbsd_thread_alive, fbsd_pid_to_str, fbsd_thread_name)
6773 (fbsd_update_thread_list, fbsd_resume, fbsd_wait)
6774 (fbsd_stopped_by_sw_breakpoint)
6775 (fbsd_supports_stopped_by_sw_breakpoint, fbsd_follow_fork)
6776 (fbsd_insert_fork_catchpoint, fbsd_remove_fork_catchpoint)
6777 (fbsd_insert_vfork_catchpoint, fbsd_remove_vfork_catchpoint)
6778 (fbsd_post_startup_inferior, fbsd_post_attach)
6779 (fbsd_insert_exec_catchpoint, fbsd_remove_exec_catchpoint)
6780 (fbsd_set_syscall_catchpoint)
6781 (super_xfer_partial, super_resume, super_wait)
6782 (fbsd_supports_stopped_by_hw_breakpoint): Delete.
6783 (fbsd_handle_debug_trap): Remove target_ops parameter.
6784 (fbsd_nat_add_target): Delete.
6785 * fbsd-nat.h: Include "inf-ptrace.h".
6786 (fbsd_nat_add_target): Delete.
6787 (USE_SIGTRAP_SIGINFO): Define.
6788 (fbsd_nat_target): New class.
6789
6790 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers)
6791 (amd64bsd_store_inferior_registers): Remove target_ops parameter.
6792 (amd64bsd_target): Delete.
6793 * amd64-bsd-nat.h: New file.
6794 * amd64-fbsd-nat.c: Include "amd64-bsd-nat.h" instead of
6795 "x86-bsd-nat.h".
6796 (amd64_fbsd_nat_target): New class.
6797 (the_amd64_fbsd_nat_target): New.
6798 (amd64fbsd_read_description): Refactor as method of
6799 amd64_fbsd_nat_target.
6800 (amd64_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
6801 (_initialize_amd64fbsd_nat): Adjust to C++ification.
6802 * amd64-nat.h (amd64bsd_target): Delete function declaration.
6803 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers)
6804 (i386bsd_store_inferior_registers): Remove target_ops parameter.
6805 (i386bsd_target): Delete.
6806 * i386-bsd-nat.h (i386bsd_target): Delete function declaration.
6807 (i386bsd_fetch_inferior_registers)
6808 (i386bsd_store_inferior_registers): Declare.
6809 (i386_bsd_nat_target): New class.
6810 * i386-fbsd-nat.c (i386_fbsd_nat_target): New class.
6811 (the_i386_fbsd_nat_target): New.
6812 (i386fbsd_resume, i386fbsd_read_description): Refactor as
6813 i386_fbsd_nat_target methods.
6814 (i386_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
6815 (_initialize_i386fbsd_nat): Adjust to C++ification.
6816 * x86-bsd-nat.c (super_mourn_inferior): Delete.
6817 (x86bsd_mourn_inferior, x86bsd_target): Delete.
6818 (_initialize_x86_bsd_nat): Adjust to C++ification.
6819 * x86-bsd-nat.h: Include "x86-nat.h".
6820 (x86bsd_target): Delete declaration.
6821 (x86bsd_nat_target): New class.
6822
6823 * aarch64-fbsd-nat.c (aarch64_fbsd_nat_target): New class.
6824 (the_aarch64_fbsd_nat_target): New.
6825 (aarch64_fbsd_fetch_inferior_registers)
6826 (aarch64_fbsd_store_inferior_registers): Refactor as methods of
6827 aarch64_fbsd_nat_target.
6828 (_initialize_aarch64_fbsd_nat): Adjust to C++ification.
6829 * alpha-bsd-nat.c (alpha_bsd_nat_target): New class.
6830 (the_alpha_bsd_nat_target): New.
6831 (alphabsd_fetch_inferior_registers)
6832 (alphabsd_store_inferior_registers): Refactor as
6833 alpha_bsd_nat_target methods.
6834 (_initialize_alphabsd_nat): Refactor as methods of
6835 alpha_bsd_nat_target.
6836 * amd64-nbsd-nat.c: Include "amd64-bsd-nat.h".
6837 (the_amd64_nbsd_nat_target): New.
6838 (_initialize_amd64nbsd_nat): Adjust to C++ification.
6839 * amd64-obsd-nat.c: Include "amd64-bsd-nat.h".
6840 (the_amd64_obsd_nat_target): New.
6841 (_initialize_amd64obsd_nat): Adjust to C++ification.
6842 * arm-fbsd-nat.c (arm_fbsd_nat_target): New.
6843 (the_arm_fbsd_nat_target): New.
6844 (arm_fbsd_fetch_inferior_registers)
6845 (arm_fbsd_store_inferior_registers, arm_fbsd_read_description):
6846 (_initialize_arm_fbsd_nat): Refactor as methods of
6847 arm_fbsd_nat_target.
6848 (_initialize_arm_fbsd_nat): Adjust to C++ification.
6849 * arm-nbsd-nat.c (arm_netbsd_nat_target): New class.
6850 (the_arm_netbsd_nat_target): New.
6851 (armnbsd_fetch_registers, armnbsd_store_registers): Refactor as
6852 arm_netbsd_nat_target.
6853 (_initialize_arm_netbsd_nat): Adjust to C++ification.
6854 * hppa-nbsd-nat.c (hppa_nbsd_nat_target): New class.
6855 (the_hppa_nbsd_nat_target): New.
6856 (hppanbsd_fetch_registers, hppanbsd_store_registers): Refactor as
6857 hppa_nbsd_nat_target methods.
6858 (_initialize_hppanbsd_nat): Adjust to C++ification.
6859 * hppa-obsd-nat.c (hppa_obsd_nat_target): New class.
6860 (the_hppa_obsd_nat_target): New.
6861 (hppaobsd_fetch_registers, hppaobsd_store_registers): Refactor as
6862 methods of hppa_obsd_nat_target.
6863 (_initialize_hppaobsd_nat): Adjust to C++ification. Use
6864 add_target.
6865 * i386-nbsd-nat.c (the_i386_nbsd_nat_target): New.
6866 (_initialize_i386nbsd_nat): Adjust to C++ification. Use
6867 add_target.
6868 * i386-obsd-nat.c (the_i386_obsd_nat_target): New.
6869 (_initialize_i386obsd_nat): Use add_target.
6870 * m68k-bsd-nat.c (m68k_bsd_nat_target): New class.
6871 (the_m68k_bsd_nat_target): New.
6872 (m68kbsd_fetch_inferior_registers)
6873 (m68kbsd_store_inferior_registers): Refactor as methods of
6874 m68k_bsd_nat_target.
6875 (_initialize_m68kbsd_nat): Adjust to C++ification.
6876 * mips-fbsd-nat.c (mips_fbsd_nat_target): New class.
6877 (the_mips_fbsd_nat_target): New.
6878 (mips_fbsd_fetch_inferior_registers)
6879 (mips_fbsd_store_inferior_registers): Refactor as methods of
6880 mips_fbsd_nat_target.
6881 (_initialize_mips_fbsd_nat): Adjust to C++ification. Use
6882 add_target.
6883 * mips-nbsd-nat.c (mips_nbsd_nat_target): New class.
6884 (the_mips_nbsd_nat_target): New.
6885 (mipsnbsd_fetch_inferior_registers)
6886 (mipsnbsd_store_inferior_registers): Refactor as methods of
6887 mips_nbsd_nat_target.
6888 (_initialize_mipsnbsd_nat): Adjust to C++ification.
6889 * mips64-obsd-nat.c (mips64_obsd_nat_target): New class.
6890 (the_mips64_obsd_nat_target): New.
6891 (mips64obsd_fetch_inferior_registers)
6892 (mips64obsd_store_inferior_registers): Refactor as methods of
6893 mips64_obsd_nat_target.
6894 (_initialize_mips64obsd_nat): Adjust to C++ification. Use
6895 add_target.
6896 * nbsd-nat.c (nbsd_pid_to_exec_file): Refactor as method of
6897 nbsd_nat_target.
6898 * nbsd-nat.h: Include "inf-ptrace.h".
6899 (nbsd_nat_target): New class.
6900 * obsd-nat.c (obsd_pid_to_str, obsd_update_thread_list)
6901 (obsd_wait): Refactor as methods of obsd_nat_target.
6902 (obsd_add_target): Delete.
6903 * obsd-nat.h: Include "inf-ptrace.h".
6904 (obsd_nat_target): New class.
6905 * ppc-fbsd-nat.c (ppc_fbsd_nat_target): New class.
6906 (the_ppc_fbsd_nat_target): New.
6907 (ppcfbsd_fetch_inferior_registers)
6908 (ppcfbsd_store_inferior_registers): Refactor as methods of
6909 ppc_fbsd_nat_target.
6910 (_initialize_ppcfbsd_nat): Adjust to C++ification. Use
6911 add_target.
6912 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): New class.
6913 (the_ppc_nbsd_nat_target): New.
6914 (ppcnbsd_fetch_inferior_registers)
6915 (ppcnbsd_store_inferior_registers): Refactor as methods of
6916 ppc_nbsd_nat_target.
6917 (_initialize_ppcnbsd_nat): Adjust to C++ification.
6918 * ppc-obsd-nat.c (ppc_obsd_nat_target): New class.
6919 (the_ppc_obsd_nat_target): New.
6920 (ppcobsd_fetch_registers, ppcobsd_store_registers): Refactor as
6921 methods of ppc_obsd_nat_target.
6922 (_initialize_ppcobsd_nat): Adjust to C++ification. Use
6923 add_target.
6924 * sh-nbsd-nat.c (sh_nbsd_nat_target): New class.
6925 (the_sh_nbsd_nat_target): New.
6926 (shnbsd_fetch_inferior_registers)
6927 (shnbsd_store_inferior_registers): Refactor as methods of
6928 sh_nbsd_nat_target.
6929 (_initialize_shnbsd_nat): Adjust to C++ification.
6930 * sparc-nat.c (sparc_xfer_wcookie): Make extern.
6931 (inf_ptrace_xfer_partial): Delete.
6932 (sparc_xfer_partial, sparc_target): Delete.
6933 * sparc-nat.h (sparc_fetch_inferior_registers)
6934 (sparc_store_inferior_registers, sparc_xfer_wcookie): Declare.
6935 (sparc_target): Delete function declaration.
6936 (sparc_target): New template class.
6937 * sparc-nbsd-nat.c (the_sparc_nbsd_nat_target): New.
6938 (_initialize_sparcnbsd_nat): Adjust to C++ification.
6939 * sparc64-fbsd-nat.c (the_sparc64_fbsd_nat_target): New.
6940 (_initialize_sparc64fbsd_nat): Adjust to C++ification. Use
6941 add_target.
6942 * sparc64-nbsd-nat.c (the_sparc64_nbsd_nat_target): New.
6943 (_initialize_sparc64nbsd_nat): Adjust to C++ification.
6944 * sparc64-obsd-nat.c (the_sparc64_obsd_nat_target): New.
6945 (_initialize_sparc64obsd_nat): Adjust to C++ification. Use
6946 add_target.
6947 * vax-bsd-nat.c (vax_bsd_nat_target): New class.
6948 (the_vax_bsd_nat_target): New.
6949 (vaxbsd_fetch_inferior_registers)
6950 (vaxbsd_store_inferior_registers): Refactor as vax_bsd_nat_target
6951 methods.
6952 (_initialize_vaxbsd_nat): Adjust to C++ification.
6953
6954 * bsd-kvm.c (bsd_kvm_target): New class.
6955 (bsd_kvm_ops): Now a bsd_kvm_target.
6956 (bsd_kvm_open, bsd_kvm_close, bsd_kvm_xfer_partial)
6957 (bsd_kvm_files_info, bsd_kvm_fetch_registers)
6958 (bsd_kvm_thread_alive, bsd_kvm_pid_to_str): Refactor as methods of
6959 bsd_kvm_target.
6960 (bsd_kvm_return_one): Delete.
6961 (bsd_kvm_add_target): Adjust to C++ification.
6962
6963 * nto-procfs.c (nto_procfs_target, nto_procfs_target_native)
6964 (nto_procfs_target_procfs): New classes.
6965 (procfs_open_1, procfs_thread_alive, procfs_update_thread_list)
6966 (procfs_files_info, procfs_pid_to_exec_file, procfs_attach)
6967 (procfs_post_attach, procfs_wait, procfs_fetch_registers)
6968 (procfs_xfer_partial, procfs_detach, procfs_insert_breakpoint)
6969 (procfs_remove_breakpoint, procfs_insert_hw_breakpoint)
6970 (procfs_remove_hw_breakpoint, procfs_resume)
6971 (procfs_mourn_inferior, procfs_create_inferior, procfs_interrupt)
6972 (procfs_kill_inferior, procfs_store_registers)
6973 (procfs_pass_signals, procfs_pid_to_str, procfs_can_run): Refactor
6974 as methods of nto_procfs_target.
6975 (nto_procfs_ops): Now an nto_procfs_target_procfs.
6976 (nto_native_ops): Delete.
6977 (procfs_open, procfs_native_open): Delete.
6978 (nto_native_ops): Now an nto_procfs_target_native.
6979 (init_procfs_targets): Adjust to C++ification.
6980 (procfs_can_use_hw_breakpoint, procfs_remove_hw_watchpoint)
6981 (procfs_insert_hw_watchpoint, procfs_stopped_by_watchpoint):
6982 Refactor as methods of nto_procfs_target.
6983
6984 * go32-nat.c (go32_nat_target): New class.
6985 (the_go32_nat_target): New.
6986 (go32_attach, go32_resume, go32_wait, go32_fetch_registers)
6987 (go32_store_registers, go32_xfer_partial, go32_files_info)
6988 (go32_kill_inferior, go32_create_inferior, go32_mourn_inferior)
6989 (go32_terminal_init, go32_terminal_info, go32_terminal_inferior)
6990 (go32_terminal_ours, go32_pass_ctrlc, go32_thread_alive)
6991 (go32_pid_to_str): Refactor as methods of go32_nat_target.
6992 (go32_target): Delete.
6993 (_initialize_go32_nat): Adjust to C++ification.
6994
6995 * gnu-nat.c (gnu_wait, gnu_resume, gnu_kill_inferior)
6996 (gnu_mourn_inferior, gnu_create_inferior, gnu_attach, gnu_detach)
6997 (gnu_stop, gnu_thread_alive, gnu_xfer_partial)
6998 (gnu_find_memory_regions, gnu_pid_to_str): Refactor as methods of
6999 gnu_nat_target.
7000 (gnu_target): Delete.
7001 * gnu-nat.h (gnu_target): Delete.
7002 (gnu_nat_target): New class.
7003 * i386-gnu-nat.c (gnu_base_target): New.
7004 (i386_gnu_nat_target): New class.
7005 (the_i386_gnu_nat_target): New.
7006 (_initialize_i386gnu_nat): Adjust to C++ification.
7007
3fffc070
PA
70082018-05-02 Pedro Alves <palves@redhat.com>
7009
7010 * bfd-target.c (target_bfd_xclose): Rename to ...
7011 (target_bfd_close): ... this.
7012 (target_bfd_reopen): Adjust.
7013 * target.c (target_close): Remove references to to_xclose.
7014 * target.h (target_ops::to_xclose): Delete.
7015 (target_ops::to_close): Update comments.
7016
6798487f
PA
70172018-05-02 Pedro Alves <palves@redhat.com>
7018
7019 * alpha-linux-nat.c: Include "linux-nat-trad.h" instead of
7020 "linux-nat.h".
7021 * configure.nat (alpha-linux, linux-mips): Add linux-nat-trad.o.
7022 * inf-ptrace.c (inf_ptrace_register_u_offset)
7023 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
7024 (inf_ptrace_store_register, inf_ptrace_store_registers)
7025 (inf_ptrace_trad_target): Move to ...
7026 * linux-nat-trad.c: ... this new file.
7027 * linux-nat-trad.h: New file.
7028 * linux-nat.c (linux_target_install_ops): Make extern.
7029 (linux_trad_target): Delete.
7030 * linux-nat.h (linux_trad_target): Delete declaration.
7031 (linux_target_install_ops): Declare.
7032 * mips-linux-nat.c: Include "linux-nat-trad.h" instead of
7033 "linux-nat.h".
7034
c1955e17
PA
70352018-05-02 Pedro Alves <palves@redhat.com>
7036
7037 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
7038 procfs_target/add_target here.
7039 * procfs.c (procfs_target): Make static.
7040 (_initialize_procfs): Call add_target here.
7041 * procfs.h (struct target_ops): Remove forward declaration.
7042 (procfs_target): Remove declaration.
7043 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Delete.
7044
b5c8fcb1
PA
70452018-05-02 Pedro Alves <palves@redhat.com>
7046
7047 * procfs.c (procfs_stopped_by_watchpoint)
7048 (procfs_insert_watchpoint, procfs_remove_watchpoint)
7049 (procfs_region_ok_for_hw_watchpoint, procfs_stopped_data_address):
7050 Forward declare.
7051 (procfs_use_watchpoints): Delete, move contents...
7052 (procfs_target): ... here.
7053 * procfs.h (procfs_use_watchpoints): Delete declaration.
7054 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
7055 procfs_use_watchpoints.
7056 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Don't call
7057 procfs_use_watchpoints.
7058
0489430a
TT
70592018-05-02 Tom Tromey <tom@tromey.com>
7060
7061 PR python/20084:
7062 * python/python.c (gdbpy_parameter_value): Handle var_zuinteger
7063 and var_zuinteger_unlimited.
7064 * python/py-param.c (struct parm_constant): Add PARAM_ZUINTEGER
7065 and PARAM_ZUINTEGER_UNLIMITED.
7066 (set_parameter_value): Handle var_zuinteger and
7067 var_zuinteger_unlimited.
7068 (add_setshow_generic): Likewise.
7069 (parmpy_init): Likewise.
7070
1632f8ba
DR
70712018-04-28 Dan Robertson <danlrobertson89@gmail.com>
7072
7073 PR rust/23124
7074 * gdb/rust-exp.y (convert_params_to_types): Ensure that the params
7075 pointer is not null before dereferencing it.
7076
76761936
TT
70772018-04-30 Tom Tromey <tom@tromey.com>
7078
7079 * darwin-nat-info.c (darwin_debug_regions_recurse): Remove use of
7080 is_mi_like_p.
7081
2d33446d
TT
70822018-04-30 Tom Tromey <tom@tromey.com>
7083
7084 * breakpoint.c (mention): Remove use of is_mi_like_p.
7085 (print_mention_ranged_breakpoint): Likewise.
7086 * break-catch-throw.c (print_it_exception_catchpoint): Remove use
7087 of is_mi_like_p.
7088
f3c6abab
TT
70892018-04-30 Tom Tromey <tom@tromey.com>
7090
7091 * tracepoint.c (tvariables_info_1): Remove use of is_mi_like_p.
7092
40c03530
TT
70932018-04-30 Tom Tromey <tom@tromey.com>
7094
7095 * spu-tdep.c (info_spu_mailbox_list, info_spu_dma_cmdlist)
7096 (info_spu_event_command): Remove some uses of is_mi_like_p.
7097
2038b7fd
TT
70982018-04-30 Tom Tromey <tom@tromey.com>
7099
7100 * python/py-framefilter.c (py_print_single_arg)
7101 (enumerate_locals, py_print_args, py_print_frame): Remove some
7102 uses of is_mi_like_p.
7103
4904c3c6
TT
71042018-04-30 Tom Tromey <tom@tromey.com>
7105
7106 * ui-out.c: Update.
7107 * cli-out.h (cli_ui_out::do_is_mi_like_p): Update.
7108 * ui-out.h (ui_out::is_mi_like_p): Now const.
7109 (ui_out::do_is_mi_like_p): Now const.
7110 * mi/mi-out.h (mi_ui_out::do_is_mi_like_p): Update.
7111
7c66fffc
TT
71122018-04-30 Tom Tromey <tom@tromey.com>
7113
7114 * varobj.c (varobj_set_visualizer): Use new_reference.
7115 * python/python.c (gdbpy_decode_line): Use new_reference.
7116 * python/py-cmd.c (cmdpy_function, cmdpy_completer_helper): Use
7117 new_reference.
7118
bbfa6f00
TT
71192018-04-30 Tom Tromey <tom@tromey.com>
7120
7121 * varobj.c (install_new_value): Use new_reference.
7122 * value.h (value_incref): Return void. Swap intro comment with
7123 value_decref.
7124 * value.c (set_value_parent): Use new_reference.
7125 (value_incref): Return void. Update intro comment.
7126 (release_value): Use new_reference.
7127 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use new_reference.
7128
1831a9f9
TT
71292018-04-30 Tom Tromey <tom@tromey.com>
7130
7131 * symfile-mem.c (symbol_file_add_from_memory): Use new_reference.
7132 * gdb_bfd.h (new_bfd_ref): Remove.
7133 (gdb_bfd_open): Update comment.
7134 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
7135 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_record_inclusion)
7136 (gdb_bfd_fdopenr): Use new_reference.
7137 * exec.c (exec_file_attach): Use new_reference.
7138
7c1b5f3d
TT
71392018-04-30 Tom Tromey <tom@tromey.com>
7140
7141 * common/gdb_ref_ptr.h (ref_ptr::new_reference): New static
7142 method.
7143
e11fb955
TT
71442018-04-30 Tom Tromey <tom@tromey.com>
7145
7146 * jit.c (jit_read_code_entry): Use type_align.
7147 * i386-tdep.c (i386_gdbarch_init): Don't call
7148 set_gdbarch_long_long_align_bit.
7149 * gdbarch.sh: Remove long_long_align_bit.
7150 * gdbarch.c, gdbarch.h: Rebuild.
7151 * arc-tdep.c (arc_type_align): New function.
7152 (arc_gdbarch_init): Use arc_type_align. Don't call
7153 set_gdbarch_long_long_align_bit.
7154
2fff16dd
TT
71552018-04-30 Tom Tromey <tom@tromey.com>
7156
7157 * rust-lang.c (rust_type_alignment): Remove.
7158 (rust_composite_type): Use type_align.
7159
6d7bb824
TT
71602018-04-30 Tom Tromey <tom@tromey.com>
7161
7162 * NEWS: Mention Type.align.
7163 * python/py-type.c (typy_get_alignof): New function.
7164 (type_object_getset): Add "alignof".
7165
007e1530
TT
71662018-04-30 Tom Tromey <tom@tromey.com>
7167
7168 PR exp/17095:
7169 * NEWS: Update.
7170 * std-operator.def (UNOP_ALIGNOF): New operator.
7171 * expprint.c (dump_subexp_body_standard) <case UNOP_ALIGNOF>:
7172 New.
7173 * eval.c (evaluate_subexp_standard) <case UNOP_ALIGNOF>: New.
7174 * c-lang.c (c_op_print_tab): Add alignof.
7175 * c-exp.y (ALIGNOF): New token.
7176 (exp): Add "ALIGNOF" production.
7177 (ident_tokens): Add _Alignof and alignof.
7178
2b4424c3
TT
71792018-04-30 Tom Tromey <tom@tromey.com>
7180
7181 * i386-tdep.c (i386_type_align): New function.
7182 (i386_gdbarch_init): Update.
7183 * gdbarch.sh (type_align): New method.
7184 * gdbarch.c, gdbarch.h: Rebuild.
7185 * arch-utils.h (default_type_align): Declare.
7186 * arch-utils.c (default_type_align): New function.
7187 * gdbtypes.h (TYPE_ALIGN_BITS): New define.
7188 (struct type) <align_log2>: New field.
7189 <instance_flags>: Now a bitfield.
7190 (TYPE_RAW_ALIGN): New macro.
7191 (type_align, type_raw_align, set_type_align): Declare.
7192 * gdbtypes.c (type_align, type_raw_align, set_type_align): New
7193 functions.
7194 * dwarf2read.c (quirk_rust_enum): Set type alignment.
7195 (get_alignment, maybe_set_alignment): New functions.
7196 (read_structure_type, read_enumeration_type, read_array_type)
7197 (read_set_type, read_tag_pointer_type, read_tag_reference_type)
7198 (read_subrange_type, read_base_type): Set type alignment.
7199
d33bc52e
SM
72002018-04-30 Simon Marchi <simon.marchi@ericsson.com>
7201
7202 * dwarf2read.c (read_index_from_section): Use bool.
7203
e28b63a9
FG
72042018-04-29 Fabian Groffen <grobian@gentoo.org>
7205
7206 PR gdb/22950
7207 * proc-events.c (init_syscall_table): Guard usage os SYS_uuidsys
7208 with #ifdef.
7209
cd8c76e4
JR
72102018-04-29 John Reiser <jreiser@BitWagon.com>
7211
7212 PR build/22873
7213 * gdb/Makefile.in: (.c:.l, .c:.y): Write the target only in the
7214 last step, and do it atomically.
7215
476d250e
AO
72162018-04-27 Alexandre Oliva <aoliva@redhat.com>
7217
7218 * compile/compile-c-types.c (convert_int, convert_float):
7219 Update for C FE v1.
7220
6873858b
TT
72212018-04-27 Tom Tromey <tom@tromey.com>
7222
7223 PR rust/22545:
7224 * rust-lang.c (rust_inclusive_range_type_p): New function.
7225 (rust_range): Handle inclusive ranges.
7226 (rust_compute_range): Likewise.
7227 * rust-exp.y (struct rust_op) <inclusive>: New field.
7228 (DOTDOTEQ): New constant.
7229 (range_expr): Add "..=" productions.
7230 (operator_tokens): Add "..=" token.
7231 (ast_range): Add "inclusive" parameter.
7232 (convert_ast_to_expression) <case OP_RANGE>: Handle inclusive
7233 ranges.
7234 * parse.c (operator_length_standard) <case OP_RANGE>: Handle new
7235 bounds values.
7236 * expression.h (enum range_type) <NONE_BOUND_DEFAULT_EXCLUSIVE,
7237 LOW_BOUND_DEFAULT_EXCLUSIVE>: New constants.
7238 Update comments.
7239 * expprint.c (print_subexp_standard): Handle new bounds values.
7240 (dump_subexp_body_standard): Likewise.
7241
632e107b
TT
72422018-04-27 Tom Tromey <tom@tromey.com>
7243
7244 * configure: Rebuild.
7245 * warning.m4 (AM_GDB_WARNINGS): Add -Wsuggest-override.
7246 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Use "override", not
7247 "OVERRIDE".
7248 (class symbol_needs_eval_context): Likewise.
7249 * dwarf2read.c (mock_mapped_index::symbol_name_count)
7250 (mock_mapped_index::symbol_name_at): Use "override". Remove
7251 "virtual".
7252 * dwarf2-frame.c (dwarf_expr_executor::get_addr_index): Use
7253 "override".
7254 (class dwarf_expr_executor): Use "override", not "OVERRIDE".
7255 * aarch64-tdep.c (instruction_reader::read): Use "override".
7256 (instruction_reader_test::read): Likewise.
7257 * arm-tdep.c (instruction_reader::read): Use "override".
7258 (instruction_reader_thumb::read): Likewise.
7259
b75abf5b
AK
72602018-04-26 Andrzej Kaczmarek <andrzej.kaczmarek@codecoup.pl>
7261
7262 PR remote/9665
7263 * remote.c (send_g_packet): Use putpkt/getpkt/packet_check_result
7264 instead of remote_send.
7265 (remote_send): Remove.
7266
79188d8d
PA
72672018-04-26 Pedro Alves <palves@redhat.com>
7268
7269 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Use
7270 find_function_start_sal instead of find_pc_line.
7271
f50776aa
PA
72722018-04-26 Pedro Alves <palves@redhat.com>
7273
7274 * breakpoint.c (set_breakpoint_location_function): Handle
7275 mst_data_gnu_ifunc.
7276 * c-exp.y (variable production): Handle mst_data_gnu_ifunc.
7277 * elfread.c (elf_symtab_read): Give data symbols with
7278 BSF_GNU_INDIRECT_FUNCTION set mst_data_gnu_ifunc type.
7279 (elf_rel_plt_read): Update comment.
7280 * linespec.c (convert_linespec_to_sals): Handle
7281 mst_data_gnu_ifunc.
7282 (minsym_found): Handle mst_data_gnu_ifunc.
7283 * minsyms.c (msymbol_is_function, minimal_symbol_reader::record)
7284 (find_solib_trampoline_target): Handle mst_data_gnu_ifunc.
7285 * parse.c (find_minsym_type_and_address): Handle
7286 mst_data_gnu_ifunc.
7287 * symmisc.c (dump_msymbols): Handle mst_data_gnu_ifunc.
7288 * symtab.c (find_gnu_ifunc): Handle mst_data_gnu_ifunc.
7289 * symtab.h (minimal_symbol_type) <mst_text_gnu_ifunc>: Update
7290 comment.
7291 <mst_data_gnu_ifunc>: New enumerator.
7292
20944a6e
PA
72932018-04-26 Pedro Alves <palves@redhat.com>
7294
7295 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Rename to ...
7296 (lookup_minimal_symbol_by_pc_section): ... this. Replace
7297 'want_trampoline' parameter by a lookup_msym_prefer parameter.
7298 Handle it.
7299 (lookup_minimal_symbol_by_pc_section): Delete old implementation.
7300 (lookup_minimal_symbol_by_pc): Adjust.
7301 (in_gnu_ifunc_stub): Prefer GNU ifunc symbols.
7302 (lookup_solib_trampoline_symbol_by_pc): Adjust.
7303 * minsyms.h (lookup_msym_prefer): New enum.
7304 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
7305 parameter by a lookup_msym_prefer parameter.
7306
1adeb822
PA
73072018-04-26 Pedro Alves <palves@redhat.com>
7308
7309 * elfread.c (elf_gnu_ifunc_record_cache): Check if the symbol name
7310 ends in "@plt" instead of looking at the symbol's section.
7311
a0aca7b0
PA
73122018-04-26 Pedro Alves <palves@redhat.com>
7313
7314 * blockframe.c (cache_pc_function_is_gnu_ifunc): Delete. Remove
7315 all references.
7316 (find_pc_partial_function_gnu_ifunc): Rename to ...
7317 (find_pc_partial_function): ... this, and remove references to
7318 'is_gnu_ifunc_p'.
7319 (find_pc_partial_function): Delete old implementation.
7320 * symtab.h (find_pc_partial_function_gnu_ifunc): Delete.
7321
76af0f26
PA
73222018-04-26 Pedro Alves <palves@redhat.com>
7323
7324 * linespec.c (struct bound_minimal_symbol_search_key): New.
7325 (convert_linespec_to_sals): Sort minimal symbols earlier. Don't
7326 skip first line if we found a GNU ifunc minimal symbol by name.
7327 (compare_msymbols): Change parameters to work with a destructured
7328 lhs minsym.
7329 (compare_msymbols_for_qsort, compare_msymbols_for_bsearch): New
7330 functions.
7331
3467ec66
PA
73322018-04-26 Pedro Alves <palves@redhat.com>
7333
7334 * breakpoint.c (set_breakpoint_location_function): Don't resolve
7335 ifunc targets here. Instead, if we have an ifunc minsym, use its
7336 address/name.
7337 (add_location_to_breakpoint): Store the minsym and the objfile in
7338 the breakpoint location.
7339 * breakpoint.h (bp_location) <msymbol, objfile>: New fields.
7340 * linespec.c (minsym_found): Resolve GNU ifunc targets here.
7341 Record the minsym in the sal.
7342 * symtab.h (symtab_and_line) <msymbol>: New field.
7343
28f4fa4d
PA
73442018-04-26 Pedro Alves <palves@redhat.com>
7345
7346 * elfread.c (elf_gnu_ifunc_resolve_by_got): Don't write to *ADDR_P
7347 unless we actually resolved the ifunc.
7348
ca31ab1d
PA
73492018-04-26 Pedro Alves <palves@redhat.com>
7350
7351 * c-exp.y (variable production): Prefer ifunc minsyms over
7352 regular function symbols.
7353 * symtab.c (find_gnu_ifunc): New function.
7354 * minsyms.h (lookup_msym_prefer): New enum.
7355 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
7356 parameter by a lookup_msym_prefer parameter.
7357 * symtab.h (find_gnu_ifunc): New declaration.
7358
8388016d
PA
73592018-04-26 Pedro Alves <palves@redhat.com>
7360
7361 * blockframe.c (find_gnu_ifunc_target_type): New function.
7362 (find_function_type): New.
7363 * eval.c (evaluate_var_msym_value): For GNU ifunc types, always
7364 return a value with a memory address.
7365 (eval_call): For calls to GNU ifunc functions, try to find the
7366 type of the target function from the type that the resolver
7367 returns.
7368 * gdbtypes.c (objfile_type): Don't install a return type for ifunc
7369 symbols.
7370 * infcall.c (find_function_return_type): Delete.
7371 (find_function_addr): Add 'function_type' parameter. For calls to
7372 GNU ifunc functions, try to find the type of the target function
7373 from the type that the resolver returns, and return it via
7374 FUNCTION_TYPE.
7375 (call_function_by_hand_dummy): Adjust to use the function type
7376 returned by find_function_addr.
7377 (find_function_addr): Add 'function_type' parameter and move
7378 description here.
7379 * symtab.h (find_function_type, find_gnu_ifunc_target_type): New
7380 declarations.
7381
a376e11d
PA
73822018-04-26 Pedro Alves <palves@redhat.com>
7383
7384 * c-exp.y (variable production): Skip finding an alias for ifunc
7385 symbols.
7386
02e169e2
PA
73872018-04-26 Pedro Alves <palves@redhat.com>
7388
7389 * elfread.c (elf_rel_plt_read): Look for relocations for .got.plt too.
7390
249b5733
PA
73912018-04-25 Pedro Alves <palves@redhat.com>
7392
7393 * infcmd.c (kill_command): Print the pid as string, not the whole
7394 thread's ptid. Add comment. s/has been killed/killed/ in output
7395 message.
7396 * remote.c (remote_detach_1): Print the pid as string, not the
7397 whole thread's ptid.
7398
f67c0c91
SDJ
73992018-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
7400 Sergio Durigan Junior <sergiodj@redhat.com>
7401 Pedro Alves <palves@redhat.com>
7402
7403 * infcmd.c (kill_command): Print message when inferior has
7404 been killed.
7405 * inferior.c (print_inferior_events): Remove 'static'. Set as
7406 '1'.
7407 (add_inferior): Improve message printed when
7408 'print_inferior_events' is on.
7409 (exit_inferior): Remove message printed when
7410 'print_inferior_events' is on.
7411 (detach_inferior): Improve message printed when
7412 'print_inferior_events' is on.
7413 (initialize_inferiors): Use 'add_inferior_silent' to set
7414 'current_inferior_'.
7415 * inferior.h (print_inferior_events): Declare here as
7416 'extern'.
7417 * infrun.c (follow_fork_inferior): Print '[Attaching...]' or
7418 '[Detaching...]' messages when 'print_inferior_events' is on.
7419 Use 'add_thread_silent' instead of 'add_thread'. Add '[' and ']'
7420 as prefix/suffix for messages. Remove periods. Fix erroneous
7421 'Detaching after fork from child...', replace it by '... from
7422 parent...'.
7423 (handle_vfork_child_exec_or_exit): Add '[' and ']' as
7424 prefix/suffix when printing 'Detaching...' messages. Print
7425 them when 'print_inferior_events' is on.
7426 * remote.c (remote_detach_1): Print message when detaching
7427 from inferior and '!is_fork_parent'.
7428
e427af18
TT
74292018-04-24 Tom Tromey <tom@tromey.com>
7430
7431 * cli-out.h: Reindent.
7432
05b1d8d6
TT
74332018-04-24 Tom Tromey <tom@tromey.com>
7434
7435 * cli-out.c (cli_ui_out::out_field_fmt): Remove.
7436 (cli_ui_out::do_field_string): Use fputs_filtered.
7437 * cli-out.h (class cli_ui_out) <out_field_fmt>: Remove.
7438
a95c7dab
TT
74392018-04-23 Tom Tromey <tom@tromey.com>
7440
7441 * guile/scm-frame.c (gdbscm_frame_read_var): Use
7442 gdb::unique_xmalloc_ptr.
7443
458412c3
TT
74442018-04-23 Tom Tromey <tom@tromey.com>
7445
7446 * configure: Rebuild.
7447
db86b02b
RS
74482018-04-22 Rajendra SY <rajendra.sy@gmail.com>
7449
7450 PR gdb/23095
7451 * gdb/testsuite/gdb.base/break-probes.exp: Pass shlib_load to
7452 prepare_for_testing. Set normal_bp to r_debug_state if target
7453 is bsd.
7454
00aecdcf
PA
74552018-04-21 Pedro Alves <palves@redhat.com>
7456 Rajendra SY <rajendra.sy@gmail.com>
7457
7458 * inf-ptrace.c (inf_ptrace_attach): Mark the thread as executing.
7459 * remote.c (extended_remote_attach): In all-stop mode, mark the
7460 thread as executing.
7461
224608c3
PW
74622018-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7463
7464 * thread.c (thread_apply_all_command): Fix comment.
7465 (thread_command): Fix comment.
7466
3b74854b
AH
74672018-04-10 Alan Hayward <alan.hayward@arm.com>
7468
7469 * common/tdesc.h (tdesc_create_feature): Remove xml filename
7470 parameter.
7471 * features/aarch64-core.c (create_feature_aarch64_core):
7472 Regenerate.
7473 * features/aarch64-fpu.c (create_feature_aarch64_fpu):
7474 Likewise.
7475 * features/i386/32bit-avx.c (create_feature_i386_32bit_avx):
7476 Likewise.
7477 * features/i386/32bit-avx512.c
7478 (create_feature_i386_32bit_avx512): Likewise.
7479 * features/i386/32bit-core.c (create_feature_i386_32bit_core):
7480 Likewise.
7481 * features/i386/32bit-linux.c (create_feature_i386_32bit_linux):
7482 Likewise.
7483 * features/i386/32bit-mpx.c (create_feature_i386_32bit_mpx):
7484 Likewise.
7485 * features/i386/32bit-pkeys.c (create_feature_i386_32bit_pkeys):
7486 Likewise.
7487 * features/i386/32bit-sse.c (create_feature_i386_32bit_sse):
7488 Likewise.
7489 * features/i386/64bit-avx.c (create_feature_i386_64bit_avx):
7490 Likewise.
7491 * features/i386/64bit-avx512.c
7492 (create_feature_i386_64bit_avx512): Likewise.
7493 * features/i386/64bit-core.c (create_feature_i386_64bit_core):
7494 Likewise.
7495 * features/i386/64bit-linux.c (create_feature_i386_64bit_linux):
7496 Likewise.
7497 * features/i386/64bit-mpx.c (create_feature_i386_64bit_mpx):
7498 Likewise.
7499 * features/i386/64bit-pkeys.c (create_feature_i386_64bit_pkeys):
7500 Likewise.
7501 * features/i386/64bit-segments.c
7502 (create_feature_i386_64bit_segments): Likewise.
7503 * features/i386/64bit-sse.c (create_feature_i386_64bit_sse):
7504 Likewise.
7505 * features/i386/x32-core.c
7506 (create_feature_i386_x32_core): Likewise.
7507 * features/tic6x-c6xp.c (create_feature_tic6x_c6xp): Likewise.
7508 * features/tic6x-core.c (create_feature_tic6x_core): Likewise.
7509 * features/tic6x-gp.c (create_feature_tic6x_gp): Likewise.
7510 * target-descriptions.c: In generated code, don't pass xml
7511 filename.
7512
e98577a9
AH
75132018-04-18 Alan Hayward <alan.hayward@arm.com>
7514
7515 * common/tdesc.c (print_xml_feature::visit_pre): Add xml parsing.
7516 (print_xml_feature::visit_post): Likewise.
7517 (print_xml_feature::visit): Likewise.
7518 * common/tdesc.h (tdesc_get_features_xml): Use const tdesc.
7519 (print_xml_feature): Add new class.
7520 * regformats/regdat.sh: Null xmltarget on feature targets.
7521 * target-descriptions.c (struct target_desc): Add xmltarget.
7522 (maintenance_check_tdesc_xml_convert): Add unittest function.
7523 (tdesc_get_features_xml): Add function to get xml.
7524 (maintenance_check_xml_descriptions): Test xml generation.
7525 * xml-tdesc.c (string_read_description_xml): Add function.
7526 * xml-tdesc.h (string_read_description_xml): Add declaration.
7527
ad7fc756
AH
75282018-04-18 Alan Hayward <alan.hayward@arm.com>
7529
7530 * features/Makefile: Add feature marker to targets with new style
7531 target descriptions.
7532 * regformats/aarch64.dat: Regenerate.
7533 * regformats/i386/amd64-avx-avx512-linux.dat: Likewise.
7534 * regformats/i386/amd64-avx-linux.dat: Likewise.
7535 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Likewise.
7536 * regformats/i386/amd64-avx-mpx-linux.dat: Likewise.
7537 * regformats/i386/amd64-linux.dat: Likewise.
7538 * regformats/i386/amd64-mpx-linux.dat: Likewise.
7539 * regformats/i386/amd64.dat: Likewise.
7540 * regformats/i386/i386-avx-avx512-linux.dat: Likewise.
7541 * regformats/i386/i386-avx-linux.dat: Likewise.
7542 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Likewise.
7543 * regformats/i386/i386-avx-mpx-linux.dat: Likewise.
7544 * regformats/i386/i386-linux.dat: Likewise.
7545 * regformats/i386/i386-mmx-linux.dat: Likewise.
7546 * regformats/i386/i386-mpx-linux.dat: Likewise.
7547 * regformats/i386/i386.dat: Likewise.
7548 * regformats/i386/x32-avx-avx512-linux.dat: Likewise.
7549 * regformats/i386/x32-avx-linux.dat: Likewise.
7550 * regformats/i386/x32-linux.dat: Likewise.
7551 * regformats/tic6x-c62x-linux.dat: Likewise.
7552 * regformats/tic6x-c64x-linux.dat: Likewise.
7553 * regformats/tic6x-c64xp-linux.dat: Likewise.
7554 * regformats/regdat.sh: Parse feature marker.
7555
d278f585
AH
75562018-04-18 Alan Hayward <alan.hayward@arm.com>
7557
7558 * common/tdesc.h (tdesc_architecture_name): Add new declaration.
7559 (tdesc_osabi_name): Likewise.
7560 * target-descriptions.c (tdesc_architecture_name): Add new
7561 function.
7562 (tdesc_osabi_name): Likewise.
7563
eee8a18d
AH
75642018-04-18 Alan Hayward <alan.hayward@arm.com>
7565
7566 * common/tdesc.c (tdesc_predefined_type): Move to here.
7567 (tdesc_named_type): Likewise.
7568 (tdesc_create_vector): Likewise.
7569 (tdesc_create_struct): Likewise.
7570 (tdesc_set_struct_size): Likewise.
7571 (tdesc_create_union): Likewise.
7572 (tdesc_create_flags): Likewise.
7573 (tdesc_create_enum): Likewise.
7574 (tdesc_add_field): Likewise.
7575 (tdesc_add_typed_bitfield): Likewise.
7576 (tdesc_add_bitfield): Likewise.
7577 (tdesc_add_flag): Likewise.
7578 (tdesc_add_enum_value): Likewise.
7579 * common/tdesc.h (struct tdesc_type_builtin): Likewise.
7580 (struct tdesc_type_vector): Likewise.
7581 (struct tdesc_type_field): Likewise.
7582 (struct tdesc_type_with_fields): Likewise.
7583 (tdesc_create_enum): Add declaration.
7584 (tdesc_add_typed_bitfield): Likewise.
7585 (tdesc_add_enum_value): Likewise.
7586 * target-descriptions.c (tdesc_type_field): Move from here.
7587 (tdesc_type_builtin): Likewise.
7588 (tdesc_type_vector): Likewise.
7589 (tdesc_type_with_fields): Likewise.
7590 (tdesc_predefined_types): Likewise.
7591 (tdesc_named_type): Likewise.
7592 (tdesc_create_vector): Likewise.
7593 (tdesc_create_struct): Likewise.
7594 (tdesc_set_struct_size): Likewise.
7595 (tdesc_create_union): Likewise.
7596 (tdesc_create_flags): Likewise.
7597 (tdesc_create_enum): Likewise.
7598 (tdesc_add_field): Likewise.
7599 (tdesc_add_typed_bitfield): Likewise.
7600 (tdesc_add_bitfield): Likewise.
7601 (tdesc_add_flag): Likewise.
7602 (tdesc_add_enum_value): Likewise.
7603 * gdb/target-descriptions.h (tdesc_create_enum): Likewise.
7604 (tdesc_add_typed_bitfield): Likewise.
7605 (tdesc_add_enum_value): Likewise.
7606
82ec9bc7
AH
76072018-04-18 Alan Hayward <alan.hayward@arm.com>
7608
7609 * common/tdesc.c (tdesc_feature::accept): Move to here.
7610 (tdesc_feature::operator==): Likewise.
7611 (tdesc_create_reg): Likewise.
7612 * common/tdesc.h (tdesc_type_kind): Likewise.
7613 (struct tdesc_type): Likewise.
7614 (struct tdesc_feature): Likewise.
7615 * regformats/regdat.sh: Create a feature.
7616 * target-descriptions.c (tdesc_type_kind): Move from here.
7617 (tdesc_type): Likewise.
7618 (tdesc_type_up): Likewise.
7619 (tdesc_feature): Likewise.
7620 (tdesc_create_reg): Likewise.
7621
ea3e7d71
AH
76222018-04-18 Alan Hayward <alan.hayward@arm.com>
7623
7624 * Makefile.in: Add arch/tdesc.c
7625 * common/tdesc.c: New file.
7626 * common/tdesc.h (tdesc_element_visitor): Move to here.
7627 (tdesc_element): Likewise.
7628 (tdesc_reg): Likewise.
7629 (tdesc_reg_up): Likewise.
7630 * regformats/regdef.h (reg): Add offset to constructors.
7631 * target-descriptions.c (tdesc_element_visitor): Move from here.
7632 (tdesc_element): Likewise.
7633 (tdesc_reg): Likewise.
7634 (tdesc_reg_up): Likewise.
7635
bedda9ac
TT
76362018-04-17 Tom Tromey <tom@tromey.com>
7637
7638 * dwarf2read.c (quirk_rust_enum): Conditionally drop the
7639 discriminant field.
7640
a037790e
TT
76412018-04-17 Tom Tromey <tom@tromey.com>
7642
7643 * dwarf2read.c (quirk_rust_enum): Handle unions correctly.
7644
c7dcbf88
AA
76452018-04-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
7646
7647 * symtab.c (print_symbol_info): Skip printing filename and line
7648 number when `last' is NULL.
7649 (symtab_symbol_info): Use empty string instead of NULL for first
7650 invocation of print_symbol_info.
7651 (rbreak_command): Pass NULL to `last' parameter of
7652 print_symbol_info.
7653
07d28c77
SM
76542018-04-16 Simon Marchi <simon.marchi@ericsson.com>
7655
7656 * linux-tdep.c (linux_spu_make_corefile_notes): Return note_data
7657 instead of nullptr.
7658
8a3de5e1
PA
76592018-04-16 Pedro Alves <palves@redhat.com>
7660
7661 * MAINTAINERS (sh): Remove.
7662 * Makefile.in (ALL_TARGET_OBS): Remove sh64-tdep.o.
7663 (HFILES_NO_SRCDIR): Remove sh64-tdep.h.
7664 (ALLDEPFILES): Remove sh64-tdep.c.
7665 * NEWS: Mentions that support for SH-5/SH64 is removed.
7666 * configure.tgt (sh*-*-linux*): Remove reference to sh64-tdep.o.
7667 (sh*-*-openbsd*): Ditto.
7668 (sh64-*-elf*): Remove.
7669 (sh*): Remove.
7670 * regcache.c (cooked_write_test): Remove bfd_mach_sh5 case.
7671 * sh-linux-tdep.c: Remove reference to bfd_mach_sh5.
7672 * sh-tdep.c: No longer include "sh64-tdep.h".
7673 (sh_gdbarch_init): Remove reference to bfd_mach_sh5.
7674 * sh64-tdep.c, sh64-tdep.h: Remove files.
7675
a2a79012
PA
76762018-04-16 Pedro Alves <palves@redhat.com>
7677
7678 * MAINTAINERS: Remove m88k.
7679 * Makefile.in (ALL_TARGET_OBS): Remove m88k-tdep.o.
7680 (HFILES_NO_SRCDIR): Remove m88k-tdep.h.
7681 (ALLDEPFILES): Remove m88k-bsd-nat.c and m88k-tdep.c.
7682 * NEWS: Mention that support for m88k was removed.
7683 * configure.host (m88*-*-*): Remove support.
7684 * configure.nat (m88k-*-*): Remove support.
7685 * configure.tgt (m88*-*-openbsd*): Remove.
7686 * m88k-bsd-nat.c, m88k-tdep.c, m88k-tdep.h: Delete.
7687
eda4efb1
SM
76882018-04-15 Simon Marchi <simon.marchi@polymtl.ca>
7689
7690 * configure.tgt (x86_tobjs): New variable.
7691 (amd64_tobjs, i386_tobjs): Use it.
7692
b744723f
AA
76932018-04-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7694
7695 * symtab.c (print_symbol_info): Precede the symbol definition by
7696 the line number when available.
7697 * NEWS: Advertise this enhancement.
7698
4a4495d6
MM
76992018-04-13 Markus Metzger <markus.t.metzger@intel.com>
7700
7701 * NEWS (New options): announce set/show record btrace cpu.
7702 * btrace.c: Include record-btrace.h.
7703 (btrace_compute_ftrace_pt): Skip enabling errata workarounds if
7704 the vendor is unknown.
7705 (btrace_compute_ftrace_1): Add cpu parameter. Update callers.
7706 Maybe overwrite the btrace configuration's cpu.
7707 (btrace_compute_ftrace): Add cpu parameter. Update callers.
7708 (btrace_fetch): Add cpu parameter. Update callers.
7709 (btrace_maint_update_pt_packets): Call record_btrace_get_cpu.
7710 Maybe overwrite the btrace configuration's cpu. Skip enabling
7711 errata workarounds if the vendor is unknown.
7712 * python/py-record-btrace.c: Include record-btrace.h.
7713 (recpy_bt_begin, recpy_bt_end, recpy_bt_instruction_history)
7714 (recpy_bt_function_call_history): Call record_btrace_get_cpu.
7715 * record-btrace.c (record_btrace_cpu_state_kind): New.
7716 (record_btrace_cpu): New.
7717 (set_record_btrace_cpu_cmdlist): New.
7718 (record_btrace_get_cpu): New.
7719 (require_btrace_thread, record_btrace_info)
7720 (record_btrace_resume_thread): Call record_btrace_get_cpu.
7721 (cmd_set_record_btrace_cpu_none): New.
7722 (cmd_set_record_btrace_cpu_auto): New.
7723 (cmd_set_record_btrace_cpu): New.
7724 (cmd_show_record_btrace_cpu): New.
7725 (_initialize_record_btrace): Initialize set/show record btrace cpu
7726 commands.
7727 * record-btrace.h (record_btrace_get_cpu): New.
7728
69f90c75
MM
77292018-04-13 Markus Metzger <markus.t.metzger@intel.com>
7730
7731 * record.c (set_record_command): Fix typo in message.
7732
b85310e1
MM
77332018-04-13 Markus Metzger <markus.t.metzger@intel.com>
7734
7735 * record-btrace.c (cmd_set_record_btrace): Print sub-commands.
7736
1d509aa6
MM
77372018-04-13 Markus Metzger <markus.t.metzger@intel.com>
7738
7739 * infrun.c (process_event_stop_test): Call
7740 gdbarch_in_indirect_branch_thunk.
7741 * gdbarch.sh (in_indirect_branch_thunk): New.
7742 * gdbarch.c: Regenerated.
7743 * gdbarch.h: Regenerated.
7744 * x86-tdep.h: New.
7745 * x86-tdep.c: New.
7746 * Makefile.in (ALL_TARGET_OBS): Add x86-tdep.o.
7747 (HFILES_NO_SRCDIR): Add x86-tdep.h.
7748 (ALLDEPFILES): Add x86-tdep.c.
7749 * arch-utils.h (default_in_indirect_branch_thunk): New.
7750 * arch-utils.c (default_in_indirect_branch_thunk): New.
7751 * i386-tdep: Include x86-tdep.h.
7752 (i386_in_indirect_branch_thunk): New.
7753 (i386_elf_init_abi): Set in_indirect_branch_thunk gdbarch
7754 function.
7755 * amd64-tdep: Include x86-tdep.h.
7756 (amd64_in_indirect_branch_thunk): New.
7757 (amd64_init_abi): Set in_indirect_branch_thunk gdbarch function.
7758
b4be9bfd
JK
77592018-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
7760
7761 PR gdb/23053
7762 * dwarf-index-write.c (data_buf::grow) (write_one_signatured_type)
7763 (recursively_write_psymbols) (debug_names::recursively_write_psymbols)
7764 (debug_names::write_one_signatured_type): Fix -D_GLIBCXX_DEBUG
7765 regression.
7766
53d7df28
TT
77672018-04-12 Tom Tromey <tom@tromey.com>
7768
7769 * rust-lang.c (rust_print_struct_def): Remove univariant code.
7770 (rust_evaluate_subexp): Likewise.
7771
70b33f19
PA
77722018-04-12 Pedro Alves <palves@redhat.com>
7773
7774 * procfs.c (procfs_detach): Make forward declaration's prototype
7775 match definition's protototype.
7776 (proc_get_LDT_entry): Remove stale do_cleanups call.
7777
436411b1
PA
77782018-04-12 Pedro Alves <palves@redhat.com>
7779
7780 * target.h (target_ops::to_has_exited): Delete.
7781 (target_has_exited): Delete.
7782 * target-delegates.c: Regenerate.
7783
20db9c52
PA
77842018-04-11 Pedro Alves <palves@redhat.com>
7785
7786 * target.c (fileio_fh_t::t): Add comment.
7787 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
7788 (target_fileio_close): Handle a NULL target.
7789 (invalidate_fileio_fh): New.
7790 (target_close): Call it.
7791 * remote.c (remote_hostio_send_command): No longer check whether
7792 remote_desc is open.
7793
5ff79300
PA
77942018-04-11 Pedro Alves <palves@redhat.com>
7795
7796 * target.c (fileio_fh_t): Make it a named struct instead of a
7797 typedef.
7798 (fileio_fh_t::is_closed): New method.
7799 (DEF_VEC_O (fileio_fh_t)): Remove.
7800 (fileio_fhandles): Now a std::vector.
7801 (is_closed_fileio_fh): Delete.
7802 (acquire_fileio_fd): Adjust. Rename parameters.
7803 (release_fileio_fd): Adjust.
7804 (fileio_fd_to_fh): Reimplement as a function instead of a macro.
7805 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
7806 (target_fileio_close): Adjust.
7807
6e22e10d
SM
78082018-04-10 Simon Marchi <simon.marchi@ericsson.com>
7809
7810 * auto-load.c (auto_load_safe_path_vec_update): Iterate by
7811 index.
7812
731f534f
PA
78132018-04-10 Pedro Alves <palves@redhat.com>
7814
7815 * gdbthread.h (finish_thread_state_cleanup): Delete declaration.
7816 (scoped_finish_thread_state): New class.
7817 * infcmd.c (run_command_1): Use it instead of finish_thread_state
7818 cleanup.
7819 * infrun.c (proceed, prepare_for_detach, wait_for_inferior)
7820 (fetch_inferior_event, normal_stop): Likewise.
7821 * thread.c (finish_thread_state_cleanup): Delete.
7822
d5f4488f
SM
78232018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
7824 Pedro Alves <palves@redhat.com>
7825
7826 * value.c: Include "selftest.h" and "common/array-view.h".
7827 (struct range) <operator ==>: New.
7828 (test_ranges_contain): New.
7829 (check_ranges_vector): New.
7830 (test_insert_into_bit_range_vector): New.
7831 (_initialize_values): Register selftests.
7832 * common/array-view.h (operator==, operator!=): New.
7833
b24531ed
SM
78342018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
7835
7836 * common/gdb_vecs.h (unordered_remove): Add overload that takes
7837 an iterator.
7838 * inline-frame.c: Include <algorithm>.
7839 (struct inline_state): Add constructor.
7840 (inline_state_s): Remove.
7841 (DEF_VEC_O(inline_state_s)): Remove.
7842 (inline_states): Change type to std::vector.
7843 (find_inline_frame_state): Adjust to std::vector.
7844 (allocate_inline_frame_state): Remove.
7845 (clear_inline_frame_state): Adjust to std::vector.
7846 (skip_inline_frames): Adjust to std::vector.
7847
c252925c
SM
78482018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
7849
7850 * tracepoint.h (struct trace_state_variable): Add constructor.
7851 <name>: Change type to std::string.
7852 * tracepoint.c (tsv_s): Remove.
7853 (DEF_VEC_O(tsv_s)): Remove.
7854 (tvariables): Change to std::vector.
7855 (create_trace_state_variable): Adjust to std::vector.
7856 (find_trace_state_variable): Likewise.
7857 (find_trace_state_variable_by_number): Likewise.
7858 (delete_trace_state_variable): Likewise.
7859 (trace_variable_command): Adjust to std::string.
7860 (delete_trace_variable_command): Likewise.
7861 (tvariables_info_1): Adjust to std::vector.
7862 (save_trace_state_variables): Likewise.
7863 (start_tracing): Likewise.
7864 (merge_uploaded_trace_state_variables): Adjust to std::vector
7865 and std::string.
7866 * target.h (struct target_ops)
7867 <to_download_trace_state_variable>: Pass reference to
7868 trace_state_variable.
7869 * target-debug.h (target_debug_print_const_trace_state_variable_r): New.
7870 * target-delegates.c: Re-generate.
7871 * mi/mi-interp.c (mi_tsv_created): Adjust to std::string.
7872 (mi_tsv_deleted): Likewise.
7873 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
7874 * remote.c (remote_download_trace_state_variable): Change
7875 pointer to reference and adjust.
7876 * make-target-delegates (parse_argtypes): Handle references.
7877 (write_function_header): Likewise.
7878 (munge_type): Likewise.
7879
c9638d26
SM
78802018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
7881
7882 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7883 string_view-selftests.c.
7884 * unittests/basic_string_view/capacity/1.cc: Adapt to GDB
7885 testsuite.
7886 * unittests/basic_string_view/cons/char/1.cc: Likewise.
7887 * unittests/basic_string_view/cons/char/2.cc: Likewise.
7888 * unittests/basic_string_view/cons/char/3.cc: Likewise.
7889 * unittests/basic_string_view/element_access/char/1.cc:
7890 Likewise.
7891 * unittests/basic_string_view/element_access/char/empty.cc:
7892 Likewise.
7893 * unittests/basic_string_view/element_access/char/front_back.cc:
7894 Likewise.
7895 * unittests/basic_string_view/inserters/char/2.cc: Likewise.
7896 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc:
7897 Likewise.
7898 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc:
7899 Likewise.
7900 * unittests/basic_string_view/modifiers/swap/char/1.cc:
7901 Likewise.
7902 * unittests/basic_string_view/operations/compare/char/1.cc:
7903 Likewise.
7904 * unittests/basic_string_view/operations/compare/char/13650.cc:
7905 Likewise.
7906 * unittests/basic_string_view/operations/copy/char/1.cc:
7907 Likewise.
7908 * unittests/basic_string_view/operations/data/char/1.cc:
7909 Likewise.
7910 * unittests/basic_string_view/operations/find/char/1.cc:
7911 Likewise.
7912 * unittests/basic_string_view/operations/find/char/2.cc:
7913 Likewise.
7914 * unittests/basic_string_view/operations/find/char/3.cc:
7915 Likewise.
7916 * unittests/basic_string_view/operations/find/char/4.cc:
7917 Likewise.
7918 * unittests/basic_string_view/operations/rfind/char/1.cc:
7919 Likewise.
7920 * unittests/basic_string_view/operations/rfind/char/2.cc:
7921 Likewise.
7922 * unittests/basic_string_view/operations/rfind/char/3.cc:
7923 Likewise.
7924 * unittests/basic_string_view/operations/substr/char/1.cc:
7925 Likewise.
7926 * unittests/basic_string_view/operators/char/2.cc: Likewise.
7927 * unittests/string_view-selftests.c: New file.
7928
fdc11678
SM
79292018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
7930
7931 * unittests/basic_string_view/capacity/1.cc: New file.
7932 * unittests/basic_string_view/capacity/empty_neg.cc: New file.
7933 * unittests/basic_string_view/cons/char/1.cc: New file.
7934 * unittests/basic_string_view/cons/char/2.cc: New file.
7935 * unittests/basic_string_view/cons/char/3.cc: New file.
7936 * unittests/basic_string_view/cons/wchar_t/1.cc: New file.
7937 * unittests/basic_string_view/cons/wchar_t/2.cc: New file.
7938 * unittests/basic_string_view/cons/wchar_t/3.cc: New file.
7939 * unittests/basic_string_view/element_access/char/1.cc: New file.
7940 * unittests/basic_string_view/element_access/char/2.cc: New file.
7941 * unittests/basic_string_view/element_access/char/empty.cc: New file.
7942 * unittests/basic_string_view/element_access/char/front_back.cc: New file.
7943 * unittests/basic_string_view/element_access/wchar_t/1.cc: New file.
7944 * unittests/basic_string_view/element_access/wchar_t/2.cc: New file.
7945 * unittests/basic_string_view/element_access/wchar_t/empty.cc: New file.
7946 * unittests/basic_string_view/element_access/wchar_t/front_back.cc: New file.
7947 * unittests/basic_string_view/include.cc: New file.
7948 * unittests/basic_string_view/inserters/char/1.cc: New file.
7949 * unittests/basic_string_view/inserters/char/2.cc: New file.
7950 * unittests/basic_string_view/inserters/char/3.cc: New file.
7951 * unittests/basic_string_view/inserters/pod/10081-out.cc: New file.
7952 * unittests/basic_string_view/inserters/wchar_t/1.cc: New file.
7953 * unittests/basic_string_view/inserters/wchar_t/2.cc: New file.
7954 * unittests/basic_string_view/inserters/wchar_t/3.cc: New file.
7955 * unittests/basic_string_view/literals/types.cc: New file.
7956 * unittests/basic_string_view/literals/values.cc: New file.
7957 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc: New file.
7958 * unittests/basic_string_view/modifiers/remove_prefix/wchar_t/1.cc: New file.
7959 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc: New file.
7960 * unittests/basic_string_view/modifiers/remove_suffix/wchar_t/1.cc: New file.
7961 * unittests/basic_string_view/modifiers/swap/char/1.cc: New file.
7962 * unittests/basic_string_view/modifiers/swap/wchar_t/1.cc: New file.
7963 * unittests/basic_string_view/operations/compare/char/1.cc: New file.
7964 * unittests/basic_string_view/operations/compare/char/13650.cc: New file.
7965 * unittests/basic_string_view/operations/compare/char/2.cc: New file.
7966 * unittests/basic_string_view/operations/compare/char/70483.cc: New file.
7967 * unittests/basic_string_view/operations/compare/wchar_t/1.cc: New file.
7968 * unittests/basic_string_view/operations/compare/wchar_t/13650.cc: New file.
7969 * unittests/basic_string_view/operations/compare/wchar_t/2.cc: New file.
7970 * unittests/basic_string_view/operations/copy/char/1.cc: New file.
7971 * unittests/basic_string_view/operations/copy/wchar_t/1.cc: New file.
7972 * unittests/basic_string_view/operations/data/char/1.cc: New file.
7973 * unittests/basic_string_view/operations/data/wchar_t/1.cc: New file.
7974 * unittests/basic_string_view/operations/find/char/1.cc: New file.
7975 * unittests/basic_string_view/operations/find/char/2.cc: New file.
7976 * unittests/basic_string_view/operations/find/char/3.cc: New file.
7977 * unittests/basic_string_view/operations/find/char/4.cc: New file.
7978 * unittests/basic_string_view/operations/find/wchar_t/1.cc: New file.
7979 * unittests/basic_string_view/operations/find/wchar_t/2.cc: New file.
7980 * unittests/basic_string_view/operations/find/wchar_t/3.cc: New file.
7981 * unittests/basic_string_view/operations/find/wchar_t/4.cc: New file.
7982 * unittests/basic_string_view/operations/rfind/char/1.cc: New file.
7983 * unittests/basic_string_view/operations/rfind/char/2.cc: New file.
7984 * unittests/basic_string_view/operations/rfind/char/3.cc: New file.
7985 * unittests/basic_string_view/operations/rfind/wchar_t/1.cc: New file.
7986 * unittests/basic_string_view/operations/rfind/wchar_t/2.cc: New file.
7987 * unittests/basic_string_view/operations/rfind/wchar_t/3.cc: New file.
7988 * unittests/basic_string_view/operations/string_conversion/1.cc: New file.
7989 * unittests/basic_string_view/operations/substr/char/1.cc: New file.
7990 * unittests/basic_string_view/operations/substr/wchar_t/1.cc: New file.
7991 * unittests/basic_string_view/operators/char/2.cc: New file.
7992 * unittests/basic_string_view/operators/wchar_t/2.cc: New file.
7993 * unittests/basic_string_view/range_access/char/1.cc: New file.
7994 * unittests/basic_string_view/range_access/wchar_t/1.cc: New file.
7995 * unittests/basic_string_view/requirements/explicit_instantiation/1.cc: New file.
7996 * unittests/basic_string_view/requirements/explicit_instantiation/char/1.cc: New file.
7997 * unittests/basic_string_view/requirements/explicit_instantiation/char16_t/1.cc: New file.
7998 * unittests/basic_string_view/requirements/explicit_instantiation/char32_t/1.cc: New file.
7999 * unittests/basic_string_view/requirements/explicit_instantiation/wchar_t/1.cc: New file.
8000 * unittests/basic_string_view/requirements/typedefs.cc: New file.
8001 * unittests/basic_string_view/typedefs.cc: New file.
8002 * unittests/basic_string_view/types/1.cc: New file.
8003
8345c4a2
SM
80042018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
8005
8006 * common/gdb_string_view.h: Remove libstdc++ implementation
8007 details, adjust to gdb reality.
8008 * common/gdb_string_view.tcc: Likewise.
8009 * cli/cli-script.c (struct string_view): Remove.
8010 (user_args) <m_args>: Change element type to gdb::string_view.
8011 (user_args::insert_args): Adjust.
8012
7adcdf08
SM
80132018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
8014
8015 * common/gdb_string_view.h: New file.
8016 * common/gdb_string_view.tcc: New file.
8017
41260ac2
SM
80182018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
8019
8020 * ax_cxx_compile_stdcxx.m4: Sync with upstream.
8021 * configure: Re-generate.
8022
0bee6dd4
PA
80232018-04-09 Pedro Alves <palves@redhat.com>
8024
8025 * gdbarch.sh: Include "observable.h" instead of "observer.h".
8026 (set_target_gdbarch): Call
8027 gdb::observers::architecture_changed.notify instead of
8028 observer_notify_architecture_changed.
8029
6f14adc5
SM
80302018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
8031
8032 * tracepoint.c (struct current_traceframe_cleanup): Remove.
8033 (do_restore_current_traceframe_cleanup): Remove.
8034 (restore_current_traceframe_cleanup_dtor): Remove.
8035 (make_cleanup_restore_current_traceframe): Remove.
8036 (scoped_restore_current_traceframe::scoped_restore_current_traceframe):
8037 New.
8038 * tracepoint.h (struct scoped_restore_current_traceframe): New.
8039 * infrun.c (fetch_inferior_event): Use
8040 scoped_restore_current_traceframe.
8041
b2bdb8cf
SM
80422018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
8043
8044 * dwarf2read.h (struct dwarf2_per_objfile) <n_type_units>:
8045 Remove.
8046 <n_allocated_type_units>: Remove.
8047 <all_type_units>: Change to std::vector.
8048 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
8049 to std::vector change.
8050 (dwarf2_per_objfile::get_cutu): Likewise.
8051 (dwarf2_per_objfile::get_tu): Likewise.
8052 (create_signatured_type_table_from_index): Likewise.
8053 (create_signatured_type_table_from_debug_names): Likewise.
8054 (dw2_symtab_iter_next): Likewise.
8055 (dw2_print_stats): Likewise.
8056 (dw2_expand_all_symtabs): Likewise.
8057 (dw2_expand_marked_cus): Likewise.
8058 (dw2_debug_names_iterator::next): Likewise.
8059 (dwarf2_initialize_objfile): Likewise.
8060 (add_signatured_type_cu_to_table): Likewise.
8061 (create_all_type_units): Likewise.
8062 (add_type_unit): Likewise.
8063 (struct tu_abbrev_offset): Add constructor.
8064 (build_type_psymtabs_1): Adjust to std::vector change.
8065 (print_tu_stats): Likewise.
8066 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
8067 (write_debug_names): Likewise.
8068
b76e467d
SM
80692018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
8070
8071 * dwarf2read.h (struct dwarf2_per_objfile) <all_comp_units>: Likewise.
8072 Make an std::vector.
8073 <n_comp_units>: Remove.
8074 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
8075 to std::vector change.
8076 (dwarf2_per_objfile::get_cutu): Likewise.
8077 (dwarf2_per_objfile::get_cu): Likewise.
8078 (create_cus_from_index): Likewise.
8079 (create_addrmap_from_index): Likewise.
8080 (create_addrmap_from_aranges): Likewise.
8081 (dwarf2_read_index): Likewise.
8082 (dw2_find_last_source_symtab): Likewise.
8083 (dw2_map_symtabs_matching_filename): Likewise.
8084 (dw2_symtab_iter_next): Likewise.
8085 (dw2_print_stats): Likewise.
8086 (dw2_expand_all_symtabs): Likewise.
8087 (dw2_expand_symtabs_with_fullname): Likewise.
8088 (dw2_expand_marked_cus): Likewise.
8089 (dw2_map_symbol_filenames): Likewise.
8090 (create_cus_from_debug_names): Likewise.
8091 (dwarf2_read_debug_names): Likewise.
8092 (dw2_debug_names_iterator::next): Likewise.
8093 (dwarf2_initialize_objfile): Likewise.
8094 (set_partial_user): Likewise.
8095 (dwarf2_build_psymtabs_hard): Likewise.
8096 (read_comp_units_from_section): Remove arguments, adjust to
8097 std::vector change.
8098 (create_all_comp_units): Adjust to std::vector and
8099 read_comp_units_from_section changes.
8100 (dwarf2_find_containing_comp_unit): Adjust to std::vector
8101 change.
8102 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
8103 (psyms_seen_size): Likewise.
8104 (write_gdbindex): Likewise.
8105 (write_debug_names): Likewise.
8106
12359b5e
SM
81072018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
8108
8109 * dwarf2read.c (create_cus_from_index_list): Replace objfile arg
8110 with dwarf2_per_objfile.
8111 (create_cus_from_index): Likewise.
8112 (create_signatured_type_table_from_index): Likewise.
8113 (dwarf2_read_index): Likewise.
8114 (dwarf2_initialize_objfile): Likewise.
8115 (dwarf2_fetch_die_loc_sect_off): Get dwarf2_per_objfile from
8116 per_cu rather than get_dwarf2_per_objfile.
8117
ff4c9fec
SM
81182018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
8119
8120 * dwarf2read.h (struct signatured_type): Forward declare.
8121 (struct dwarf2_per_objfile) <get_cutu, get_cu, get_tu>:
8122 New methods.
8123 * dwarf2read.c (dwarf2_per_objfile::get_cutu): Rename from...
8124 (dw2_get_cutu): ...this.
8125 (dwarf2_per_objfile::get_cu): Rename from...
8126 (dw2_get_cu): ...this.
8127 (dwarf2_per_objfile::get_tu): New.
8128 (create_addrmap_from_index): Adjust.
8129 (create_addrmap_from_aranges): Adjust.
8130 (dw2_find_last_source_symtab): Adjust.
8131 (dw2_map_symtabs_matching_filename): Adjust.
8132 (dw2_symtab_iter_next): Adjust.
8133 (dw2_print_stats): Adjust.
8134 (dw2_expand_all_symtabs): Adjust.
8135 (dw2_expand_symtabs_with_fullname): Adjust.
8136 (dw2_expand_marked_cus): Adjust.
8137 (dw_expand_symtabs_matching_file_matcher): Adjust.
8138 (dw2_map_symbol_filenames): Adjust.
8139 (dw2_debug_names_iterator::next): Adjust.
8140 (dwarf2_initialize_objfile): Adjust.
8141 (set_partial_user): Adjust.
8142 (dwarf2_build_psymtabs_hard): Adjust.
8143
5ca3fcb6
SM
81442018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
8145
8146 * dwarf2read.c (create_signatured_type_table_from_debug_names):
8147 Remove unused variables.
8148 (dw2_map_symtabs_matching_filename): Likewise.
8149 (dwarf2_record_block_ranges): Likewise.
8150 (dwarf2_read_addr_index): Likewise.
8151 (follow_die_offset): Likewise.
8152
b2e586e8
SM
81532018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
8154
8155 * progspace.c (clone_program_space): Pass SYMFILE_DEFER_BP_RESET
8156 to symbol_file_add_main.
8157
7c4e78cf
SM
81582018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
8159
8160 PR mi/22299
8161 * mi/mi-console.c (do_fputc_async_safe): New.
8162 (mi_console_file::write_async_safe): New.
8163 (mi_console_file::flush): Adjust calls to fputstrn_unfiltered.
8164 * mi/mi-console.h (class mi_console_file) <write_async_safe>:
8165 New.
8166 * ui-file.c (ui_file::putstrn): Adjust call to
8167 fputstrn_unfiltered.
8168 * utils.c (printchar): Replace do_fputs and do_fprintf
8169 parameters by do_fputc.
8170 (fputstr_filtered): Adjust call to printchar.
8171 (fputstr_unfiltered): Likewise.
8172 (fputstrn_filtered): Likewise.
8173 (fputstrn_unfiltered): Add do_fputc parameter, pass to
8174 printchar.
8175 * utils.h (do_fputc_ftype): New typedef.
8176 (fputstrn_unfiltered): Add do_fputc parameter.
8177
5dc026d3
SM
81782018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
8179
8180 * regformats/i386/i386-avx.dat: Remove.
8181
c912f608
SM
81822018-04-07 Simon Marchi <simon.marchi@ericsson.com>
8183
8184 PR gdb/22979
8185 * amd64-tdep.c (amd64_none_init_abi): New function.
8186 (amd64_x32_none_init_abi): New function.
8187 (_initialize_amd64_tdep): Register handlers for x86-64 and
8188 x64_32 with GDB_OSABI_NONE.
8189 * osabi.c (gdbarch_init_osabi): Allow running handlers for the
8190 GDB_OSABI_NONE osabi.
8191
26540402
SM
81922018-04-07 Simon Marchi <simon.marchi@ericsson.com>
8193
8194 PR gdb/22980
8195 * defs.h (enum gdb_osabi): Remove GDB_OSABI_UNINITIALIZED, add
8196 GDB_OSABI_NONE.
8197 * arch-utils.c (gdbarch_info_init): Don't set info->osabi.
8198 * osabi.c (gdb_osabi_names): Add "unknown" entry.
8199
9018be22
SM
82002018-04-07 Simon Marchi <simon.marchi@ericsson.com>
8201
8202 * common/byte-vector.h (char_vector): New type.
8203 * target.h (target_read_alloc): Return
8204 gdb::optional<byte_vector>.
8205 (target_read_stralloc): Return gdb::optional<char_vector>.
8206 (target_get_osdata): Return gdb::optional<char_vector>.
8207 * target.c (target_read_alloc_1): Templatize. Replacement
8208 manual memory management with vector.
8209 (target_read_alloc): Change return type, adjust.
8210 (target_read_stralloc): Change return type, adjust.
8211 (target_get_osdata): Change return type, adjust.
8212 * auxv.c (struct auxv_info) <length>: Remove.
8213 <data>: Change type to gdb::optional<byte_vector>.
8214 (auxv_inferior_data_cleanup): Free auxv_info with delete.
8215 (get_auxv_inferior_data): Allocate auxv_info with new, adjust.
8216 (target_auxv_search): Adjust.
8217 (fprint_target_auxv): Adjust.
8218 * avr-tdep.c (avr_io_reg_read_command): Adjust.
8219 * linux-tdep.c (linux_spu_make_corefile_notes): Adjust.
8220 (linux_make_corefile_notes): Adjust.
8221 * osdata.c (get_osdata): Adjust.
8222 * remote.c (remote_get_threads_with_qxfer): Adjust.
8223 (remote_memory_map): Adjust.
8224 (remote_traceframe_info): Adjust.
8225 (btrace_read_config): Adjust.
8226 (remote_read_btrace): Adjust.
8227 (remote_pid_to_exec_file): Adjust.
8228 * solib-aix.c (solib_aix_get_library_list): Adjust.
8229 * solib-dsbt.c (decode_loadmap): Don't free buf.
8230 (dsbt_get_initial_loadmaps): Adjust.
8231 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Adjust.
8232 * solib-target.c (solib_target_current_sos): Adjust.
8233 * tracepoint.c (sdata_make_value): Adjust.
8234 * xml-support.c (xinclude_start_include): Adjust.
8235 (xml_fetch_content_from_file): Adjust.
8236 * xml-support.h (xml_fetch_another): Change return type.
8237 (xml_fetch_content_from_file): Change return type.
8238 * xml-syscall.c (xml_init_syscalls_info): Adjust.
8239 * xml-tdesc.c (file_read_description_xml): Adjust.
8240 (fetch_available_features_from_target): Change return type.
8241 (target_fetch_description_xml): Adjust.
8242 (target_read_description_xml): Adjust.
8243
14c88955
TT
82442018-04-06 Tom Tromey <tom@tromey.com>
8245
8246 * value.c (~value): Update.
8247 (struct value) <contents>: Now unique_xmalloc_ptr.
8248 (value_contents_bits_eq, allocate_value_contents)
8249 (value_contents_raw, value_contents_all_raw)
8250 (value_contents_for_printing, value_contents_for_printing_const)
8251 (set_value_enclosing_type): Update.
8252
0c7e6dd8
TT
82532018-04-06 Tom Tromey <tom@tromey.com>
8254
8255 * value.c (range_s): Remove typedef, VEC.
8256 (struct range): Add operator<.
8257 (range_lessthan): Remove.
8258 (ranges_contain): Change type.
8259 (~value): Update.
8260 (struct value) <unavailable, optimized_out>: Now std::vector.
8261 (value_entirely_available)
8262 (value_entirely_covered_by_range_vector)
8263 (value_entirely_unavailable, value_entirely_optimized_out):
8264 Update.
8265 (insert_into_bit_range_vector): Change argument type.
8266 (find_first_range_overlap): Likewise.
8267 (struct ranges_and_idx, value_contents_bits_eq)
8268 (require_not_optimized_out, require_available): Update.
8269 (ranges_copy_adjusted): Change argument types.
8270 (value_optimized_out, value_copy, value_fetch_lazy): Update.
8271
2c8331b9
TT
82722018-04-06 Tom Tromey <tom@tromey.com>
8273
8274 * value.c (~value): Update.
8275 (struct value) <parent>: Now a value_ref_ptr.
8276 (value_parent, set_value_parent, value_address, value_copy):
8277 Update.
8278
466ce3ae
TT
82792018-04-06 Tom Tromey <tom@tromey.com>
8280
8281 * value.c (struct value): Add constructor, destructor, and member
8282 initializers.
8283 (allocate_value_lazy, value_decref): Update.
8284
062d818d
TT
82852018-04-06 Tom Tromey <tom@tromey.com>
8286
8287 * value.c (struct value) <released, next>: Remove.
8288 (all_values): Now a std::vector.
8289 (allocate_value_lazy): Update.
8290 (value_next): Remove.
8291 (value_mark, value_free_to_mark, release_value)
8292 (value_release_to_mark): Update.
8293
a6535de1
TT
82942018-04-06 Tom Tromey <tom@tromey.com>
8295
8296 * value.h (fetch_subexp_value, value_release_to_mark): Update.
8297 (free_value_chain): Remove.
8298 * value.c (free_value_chain): Remove.
8299 (value_release_to_mark): Return a std::vector.
8300 * ppc-linux-nat.c (num_memory_accesses): Change "chain" to a
8301 std::vector.
8302 (check_condition): Update.
8303 * eval.c (fetch_subexp_value): Change "val_chain" to a
8304 std::vector.
8305 * breakpoint.c (update_watchpoint): Update.
8306 (can_use_hardware_watchpoint): Change "vals" to a std::vector.
8307
b5621201
TT
83082018-04-06 Tom Tromey <tom@tromey.com>
8309
8310 * value.h (free_all_values): Remove.
8311 * value.c (free_all_values): Remove.
8312
4d0266a0
TT
83132018-04-06 Tom Tromey <tom@tromey.com>
8314
8315 * value.c (VALUE_HISTORY_CHUNK, struct value_history_chunk)
8316 (value_history_chain, value_history_count): Remove.
8317 (value_history): New global.
8318 (record_latest_value, access_value_history, show_values)
8319 (preserve_values): Update.
8320
b4d61099
TT
83212018-04-06 Tom Tromey <tom@tromey.com>
8322
8323 * varobj.h (struct varobj) <value>: Now a value_ref_ptr.
8324 * varobj.c (varobj_set_display_format, varobj_set_value)
8325 (install_default_visualizer, construct_visualizer)
8326 (install_new_value, ~varobj, varobj_get_value_type)
8327 (my_value_of_variable, varobj_editable_p): Update.
8328 * c-varobj.c (c_describe_child, c_value_of_variable)
8329 (cplus_number_of_children, cplus_describe_child): Update.
8330 * ada-varobj.c (ada_number_of_children, ada_name_of_child)
8331 (ada_path_expr_of_child, ada_value_of_child, ada_type_of_child)
8332 (ada_value_of_variable, ada_value_is_changeable_p): Update.
8333
9b558729
TT
83342018-04-06 Tom Tromey <tom@tromey.com>
8335
8336 * printcmd.c (last_examine_address): Change type to
8337 value_ref_ptr.
8338 (do_examine, x_command): Update.
8339
850645cf
TT
83402018-04-06 Tom Tromey <tom@tromey.com>
8341
8342 * value.c (release_value): Update.
8343 * breakpoint.h (struct watchpoint) <val>: Now a value_ref_ptr.
8344 (struct bpstats) <val>: Now a value_ref_ptr.
8345 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
8346 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
8347 (~watchpoint, print_it_watchpoint, watch_command_1)
8348 (invalidate_bp_value_on_memory_change): Update.
8349
22bc8444
TT
83502018-04-06 Tom Tromey <tom@tromey.com>
8351
8352 * varobj.c (varobj_clear_saved_item)
8353 (update_dynamic_varobj_children, install_new_value, ~varobj):
8354 Update.
8355 * value.h (value_incref): Move declaration earlier.
8356 (value_decref): Rename from value_free.
8357 (struct value_ref_policy): New.
8358 (value_ref_ptr): New typedef.
8359 (struct value_deleter): Remove.
8360 (gdb_value_up): Remove typedef.
8361 (release_value): Change return type.
8362 (release_value_or_incref): Remove.
8363 * value.c (set_value_parent): Update.
8364 (value_incref): Change return type.
8365 (value_decref): Rename from value_free.
8366 (value_free_to_mark, free_all_values, free_value_chain): Update.
8367 (release_value): Return value_ref_ptr.
8368 (release_value_or_incref): Remove.
8369 (record_latest_value, set_internalvar, clear_internalvar):
8370 Update.
8371 * stack.c (info_frame_command): Don't call value_free.
8372 * python/py-value.c (valpy_dealloc, valpy_new)
8373 (value_to_value_object): Update.
8374 * printcmd.c (do_examine): Update.
8375 * opencl-lang.c (lval_func_free_closure): Update.
8376 * mi/mi-main.c (register_changed_p): Don't call value_free.
8377 * mep-tdep.c (mep_frame_prev_register): Don't call value_free.
8378 * m88k-tdep.c (m88k_frame_prev_register): Don't call value_free.
8379 * m68hc11-tdep.c (m68hc11_frame_prev_register): Don't call
8380 value_free.
8381 * guile/scm-value.c (vlscm_free_value_smob)
8382 (vlscm_scm_from_value): Update.
8383 * frame.c (frame_register_unwind, frame_unwind_register_signed)
8384 (frame_unwind_register_unsigned, get_frame_register_bytes)
8385 (put_frame_register_bytes): Don't call value_free.
8386 * findvar.c (address_from_register): Don't call value_free.
8387 * dwarf2read.c (dwarf2_compute_name): Don't call value_free.
8388 * dwarf2loc.c (entry_data_value_free_closure)
8389 (value_of_dwarf_reg_entry, free_pieced_value_closure)
8390 (dwarf2_evaluate_loc_desc_full): Update.
8391 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
8392 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
8393 (~watchpoint, watch_command_1)
8394 (invalidate_bp_value_on_memory_change): Update.
8395 * alpha-tdep.c (alpha_register_to_value): Don't call value_free.
8396
7f8a5d38
SM
83972018-04-06 Simon Marchi <simon.marchi@polymtl.ca>
8398
8399 PR gdb/23022
8400 * warning.m4: Add -Wno-error=deprecated-register.
8401 * configure: Re-generate.
8402
8a76bd3b
TT
84032018-04-05 Tom Tromey <tom@tromey.com>
8404
8405 * linespec.h: Remove include of "vec.h".
8406
8e8d776e
TT
84072018-04-05 Tom Tromey <tom@tromey.com>
8408
8409 * linespec.c (typep): Remove typedef.
8410 (find_methods, find_superclass_methods): Take a std::vector.
8411 (find_method): Use std::vector.
8412
9b2f8581
TT
84132018-04-05 Tom Tromey <tom@tromey.com>
8414
8415 * utils.c (compare_strings): Remove.
8416 * utils.h (compare_strings): Remove.
8417 * objc-lang.h (find_imps): Update.
8418 * objc-lang.c (find_methods): Take a std::vector.
8419 (uniquify_strings, find_imps): Likewise.
8420 * linespec.c (find_methods): Take a std::vector.
8421 (decode_objc): Use std::vector.
8422 (add_all_symbol_names_from_pspace, find_superclass_methods): Take
8423 a std::vector.
8424 (find_method, find_function_symbols): Use std::vector.
8425
459a2e4c
TT
84262018-04-05 Tom Tromey <tom@tromey.com>
8427
8428 * completer.c (completion_tracker::completion_tracker): Remove
8429 cast.
8430 (completion_tracker::discard_completions): Likewise.
8431 * breakpoint.c (ambiguous_names_p): Remove cast.
8432 * ada-lang.c (_initialize_ada_language): Remove cast.
8433 * utils.h (streq): Update.
8434 (streq_hash): Add new declaration.
8435 * utils.c (streq): Return bool.
8436 (streq_hash): New function.
8437
9be2c17a
TT
84382018-04-05 Tom Tromey <tom@tromey.com>
8439
8440 * linespec.c (event_location_to_sals) <case ADDRESS_LOCATION>:
8441 Remove a string copy.
8442
f73c6ece
TT
84432018-04-05 Tom Tromey <tom@tromey.com>
8444
8445 * linespec.c (filter_results): Use std::vector.
8446 (decode_line_2, decode_line_full): Update.
8447
53a0f8a2
TT
84482018-04-05 Tom Tromey <tom@tromey.com>
8449
8450 * linespec.c (canonical_to_fullform): Return std::string.
8451 (filter_results): Update.
8452 (struct decode_line_2_item): Add constructor.
8453 <fullform, displayform>: Now std::string.
8454 (decode_line_2_compare_items): Now a std::sort comparator.
8455 (decode_line_2): Update.
8456
a5b5adf5
TT
84572018-04-05 Tom Tromey <tom@tromey.com>
8458
8459 * linespec.c (copy_token_string): Return a unique_xmalloc_ptr.
8460 (unexpected_linespec_error): Update.
8461 (linespec_parse_basic, parse_linespec): Update.
8462
6a307fc5
TT
84632018-04-05 Tom Tromey <tom@tromey.com>
8464
8465 * linespec.c (linespec_parse_basic): Reindent.
8466
41c1efc6
TT
84672018-04-05 Tom Tromey <tom@tromey.com>
8468
8469 * minsyms.h (iterate_over_minimal_symbols): Update.
8470 * minsyms.c (iterate_over_minimal_symbols): Take a
8471 gdb::function_view.
8472 * linespec.c (struct collect_minsyms): Remove.
8473 (compare_msyms): Now a std::sort comparator.
8474 (add_minsym): Add parameters.
8475 (search_minsyms_for_name): Update. Use std::vector.
8476
c5edbf3d
TT
84772018-04-03 Tom Tromey <tom@tromey.com>
8478
8479 * mipsread.c (read_alphacoff_dynamic_symtab): Use
8480 gdb::byte_vector.
8481
b39efc48
WP
84822018-04-02 Weimin Pan <weimin.pan@oracle.com>
8483
8484 * MAINTAINERS (Write After Approval): Add Weimin Pan.
8485
121ad66c 84862018-04-02 Weimin Pan <weimin.pan@oracle.com>
79f18731
WP
8487
8488 PR gdb/16959
8489 * cp-valprint.c: (cp_print_static_field) Fix infinite recursion when
8490 printing static type.
8491
09473be8
TT
84922018-04-01 Tom Tromey <tom@tromey.com>
8493
8494 * rs6000-nat.c (rs6000_ptrace_ldinfo): Return a byte_vector.
8495 (rs6000_xfer_shared_libraries): Update.
8496
ec1f2d91
SM
84972018-04-01 Simon Marchi <simon.marchi@polymtl.ca>
8498
8499 * common/gdb_vecs.h (char_ptr): Remove.
8500 * tracepoint.c (encode_actions_1): Remove usage of char_ptr.
8501
d8611974
SM
85022018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
8503
8504 * guile/scm-utils.c (gdbscm_parse_function_args): Replace VEC
8505 with std::vector.
8506 * common/gdb_vecs.h (DEF_VEC_P (char_ptr)): Remove.
8507
a18ba4e4
SM
85082018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
8509
8510 * tracepoint.h (struct uploaded_tp): Initialize fields.
8511 <actions, step_actions, cmd_strings>: Change type to
8512 std::vector<char *>.
8513 * tracepoint.c (get_uploaded_tp): Allocate with new.
8514 (free_uploaded_tps): Free with delete.
8515 (parse_tracepoint_definition): Adjust to std::vector change.
8516 * breakpoint.c (read_uploaded_action): Likewise.
8517 (create_tracepoint_from_upload): Likewise.
8518 * ctf.c (ctf_write_uploaded_tp): Likewise.
8519 (SET_ARRAY_FIELD): Likewise.
8520 * tracefile-tfile.c (tfile_write_uploaded_tp): Likewise.
8521
a7961323
TT
85222018-03-30 Tom Tromey <tom@tromey.com>
8523
8524 * solib-svr4.c (lm_info_read): Use gdb::byte_vector. Return
8525 std::unique_ptr.
8526 (svr4_keep_data_in_core): Update.
8527 (svr4_read_so_list): Update.
8528
e83e4e24
TT
85292018-03-30 Tom Tromey <tom@tromey.com>
8530
8531 * windows-nat.c (handle_output_debug_string, handle_exception):
8532 Update.
8533 * target.h (target_read_string): Update.
8534 * target.c (target_read_string): Change "string" to
8535 unique_xmalloc_ptr.
8536 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
8537 Update.
8538 * solib-frv.c (frv_current_sos): Update.
8539 * solib-dsbt.c (dsbt_current_sos): Update.
8540 * solib-darwin.c (darwin_current_sos): Update.
8541 * linux-thread-db.c (inferior_has_bug): Update.
8542 * expprint.c (print_subexp_standard) <case OP_OBJC_MSGCALL>:
8543 Update. Remove alloca.
8544 * ada-lang.c (ada_main_name): Update.
8545
263db9a1
TT
85462018-03-30 Tom Tromey <tom@tromey.com>
8547
8548 * dwarf2read.c (struct free_dwo_file_cleanup_data): Remove.
8549 (struct dwo_file_deleter): New.
8550 (dwo_file_up): New typedef.
8551 (open_and_init_dwo_file): Use dwo_file_up.
8552 (free_dwo_file_cleanup): Remove.
8553
5dafb3d1
TT
85542018-03-30 Tom Tromey <tom@tromey.com>
8555
8556 * dwarf2read.c (free_dwo_file): Remove "objfile" parameter.
8557 (free_dwo_file_cleanup, free_dwo_file_from_slot): Update.
8558
11ed8cad
TT
85592018-03-30 Tom Tromey <tom@tromey.com>
8560
8561 * dwarf2read.c (class free_cached_comp_units): New class.
8562 (dw2_instantiate_symtab, dwarf2_build_psymtabs_hard): Use it.
8563 (free_cached_comp_units): Remove function.
8564
9ae79dac
TT
85652018-03-30 Tom Tromey <tom@tromey.com>
8566
8567 * utils.h (make_cleanup_unpush_target): Remove.
8568 * inf-ptrace.c (struct target_unpusher): New.
8569 (target_unpush_up) New typedef.
8570 (inf_ptrace_create_inferior, inf_ptrace_attach): Use
8571 target_unpush_up.
8572 * utils.c (do_unpush_target, make_cleanup_unpush_target): Remove.
8573
5aa89276
TT
85742018-03-27 Tom Tromey <tom@tromey.com>
8575
8576 * utils.c (prompt_for_continue): Use unique_xmalloc_ptr.
8577
1dbeed45
TT
85782018-03-27 Pedro Alves <palves@redhat.com>
8579 Tom Tromey <tom@tromey.com>
8580
8581 * top.c (class gdb_readline_wrapper_cleanup): Add constructor,
8582 destructor. Now a class.
8583 (gdb_readline_wrapper_cleanup): Remove function.
8584 (gdb_readline_wrapper): Remove cleanups.
8585
c819b2c0
TT
85862018-03-27 Tom Tromey <tom@tromey.com>
8587
8588 * typeprint.h (struct type_print_options) <local_typedefs,
8589 global_typedefs>: Remove "struct" keyword.
8590 (class typedef_hash_table): New class.
8591 (recursively_update_typedef_hash, add_template_parameters)
8592 (create_typedef_hash, free_typedef_hash, copy_typedef_hash)
8593 (find_typedef_in_hash): Don't declare.
8594 * typeprint.c (struct typedef_hash_table): Move to typeprint.h.
8595 (typedef_hash_table::recursively_update): Rename from
8596 recursively_update_typedef_hash. Now a member.
8597 (typedef_hash_table::add_template_parameters): Rename from
8598 add_template_parameters. Now a member.
8599 (typedef_hash_table::typedef_hash_table): Now a constructor;
8600 rename from create_typedef_hash.
8601 (typedef_hash_table::~typedef_hash_table): Now a destructor;
8602 rename from free_typedef_hash.
8603 (do_free_typedef_hash, make_cleanup_free_typedef_hash)
8604 (do_free_global_table): Remove.
8605 (typedef_hash_table::typedef_hash_table): New constructor; renamed
8606 from copy_type_recursive.
8607 (create_global_typedef_table): Remove.
8608 (typedef_hash_table::find_global_typedef): Now a member of
8609 typedef_hash_table.
8610 (typedef_hash_table::find_typedef): Rename from
8611 find_typedef_in_hash; now a member.
8612 (whatis_exp): Update.
8613 * extension.h (struct ext_lang_type_printers): Add constructor and
8614 destructor.
8615 (start_ext_lang_type_printers, free_ext_lang_type_printers): Don't
8616 declare.
8617 * extension.c (ext_lang_type_printers::ext_lang_type_printers):
8618 Now a constructor; rename from start_ext_lang_type_printers.
8619 (ext_lang_type_printers): Now a destructor; rename from
8620 free_ext_lang_type_printers.
8621 * c-typeprint.c (find_typedef_for_canonicalize, c_print_type_1):
8622 Update.
8623 (c_type_print_base_struct_union): Update. Remove cleanups.
8624
608219fb
TT
86252018-03-27 Tom Tromey <tom@tromey.com>
8626
8627 * dwarf-index-write.c: Include <cmath>.
8628
3fcded8f
JB
86292018-03-27 Joel Brobecker <brobecker@adacore.com>
8630
8631 * NEWS: Add entry describing new "set|show varsize-limit" command.
8632 * ada-lang.c (_initialize_ada_language): Add "set/show varsize-limit"
8633 command.
8634 * printcmd.c (_initialize_printcmd): Add "set var" alias of
8635 "set variable".
8636
cd4fb1b2
SM
86372018-03-27 Simon Marchi <simon.marchi@ericsson.com>
8638
8639 * Makefile.in (COMMON_SFILES): Add dwarf-index-common.c and
8640 dwarf-index-write.c
8641 (HFILES_NO_SRCDIR): Add dwarf-index-common.h and dwarf2read.h.
8642 * dwarf-index-common.c: New file.
8643 * dwarf-index-common.h: New file.
8644 * dwarf-index-write.c: New file.
8645 * dwarf2read.c: Include dwarf2read.h and dwarf-index-common.h.
8646 (struct dwarf2_section_info): Move from here.
8647 (dwarf2_section_info_def): Likewise.
8648 (DEF_VEC_O (dwarf2_section_info_def)): Likewise.
8649 (offset_type): Likewise.
8650 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): Likewise.
8651 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): Likewise.
8652 (DW2_GDB_INDEX_CU_SET_VALUE): Likewise.
8653 (byte_swap): Likewise.
8654 (MAYBE_SWAP): Likewise.
8655 (dwarf2_per_cu_ptr): Likewise.
8656 (DEF_VEC_P (dwarf2_per_cu_ptr)): Likewise.
8657 (struct tu_stats): Likewise.
8658 (struct dwarf2_per_objfile): Likewise.
8659 (struct dwarf2_per_cu_data): Likewise.
8660 (struct signatured_type): Likewise.
8661 (sig_type_ptr): Likewise.
8662 (DEF_VEC_P (sig_type_ptr)): Likewise.
8663 (INDEX4_SUFFIX): Likewise.
8664 (INDEX5_SUFFIX): Likewise.
8665 (DEBUG_STR_SUFFIX): Likewise.
8666 (dwarf2_read_section): Make non-static.
8667 (mapped_index_string_hash): Move from here.
8668 (dwarf5_djb_hash): Likewise.
8669 (file_write): Likewise.
8670 (class data_buf): Likewise.
8671 (struct symtab_index_entry): Likewise.
8672 (struct mapped_symtab): Likewise.
8673 (find_slot): Likewise.
8674 (hash_expand): Likewise.
8675 (add_index_entry): Likewise.
8676 (uniquify_cu_indices): Likewise.
8677 (class c_str_view): Likewise.
8678 (class c_str_view_hasher): Likewise.
8679 (class vector_hasher): Likewise.
8680 (write_hash_table): Likewise.
8681 (psym_index_map): Likewise.
8682 (struct addrmap_index_data): Likewise.
8683 (add_address_entry): Likewise.
8684 (add_address_entry_worker): Likewise.
8685 (write_address_map): Likewise.
8686 (symbol_kind): Likewise.
8687 (write_psymbols): Likewise.
8688 (struct signatured_type_index_data): Likewise.
8689 (write_one_signatured_type): Likewise.
8690 (recursively_count_psymbols): Likewise.
8691 (recursively_write_psymbols): Likewise.
8692 (class debug_names): Likewise.
8693 (check_dwarf64_offsets): Likewise.
8694 (psyms_seen_size): Likewise.
8695 (write_gdbindex): Likewise.
8696 (write_debug_names): Likewise.
8697 (assert_file_size): Likewise.
8698 (write_psymtabs_to_index): Likewise.
8699 (save_gdb_index_command): Likewise.
8700 (_initialize_dwarf2_read): Don't register the "save gdb-index"
8701 command.
8702 * dwarf2read.h: New file.
8703
59cc4834
JB
87042018-03-27 Joel Brobecker <brobecker@adacore.com>
8705
8706 PR gdb/22670
8707 * dwarf2read.c (dwarf2_physname): Do not return the demangled
8708 symbol name if the CU's language stores symbol names in linkage
8709 format.
8710 * language.h (struct language_defn)
8711 <la_store_sym_names_in_linkage_form_p>: New field. Adjust
8712 all instances of this struct.
8713
67501539
TT
87142018-03-26 Tom Tromey <tom@tromey.com>
8715
8716 * stack.c (backtrace_command_1): Remove verbose code.
8717
76c939ac
TT
87182018-03-26 Tom Tromey <tom@tromey.com>
8719
8720 * python/py-framefilter.c (py_print_type): Don't catch
8721 exceptions. Return void.
8722 (py_print_value): Likewise.
8723 (py_print_single_arg): Likewise.
8724 (enumerate_args): Don't catch exceptions.
8725 (py_print_args): Likewise.
8726 (py_print_frame): Likewise.
8727 (gdbpy_apply_frame_filter): Catch exceptions here.
8728
9507b29c
TT
87292018-03-26 Tom Tromey <tom@tromey.com>
8730
8731 * stack.c (_initialize_stack): Remove trailing newlines from help
8732 text. Add "Usage" line to "backtrace" help.
8733
eb68e487
TT
87342018-03-26 Tom Tromey <tom@tromey.com>
8735
8736 PR python/16486:
8737 * python/py-framefilter.c (py_print_args): Call wrap_hint.
8738
1f111921
TT
87392018-03-26 Tom Tromey <tom@tromey.com>
8740
8741 * python/py-framefilter.c (py_print_single_arg): Return
8742 EXT_LANG_BT_ERROR from catch.
8743
fb7eb8b5
TT
87442018-03-26 Tom Tromey <tom@tromey.com>
8745
8746 PR backtrace/15584:
8747 * stack.c (backtrace_command_1): Move some code into no-filters
8748 "if".
8749
4ca59a9f
TT
87502018-03-26 Tom Tromey <tom@tromey.com>
8751
8752 * python/py-framefilter.c (throw_quit_or_print_exception): New
8753 function.
8754 (gdbpy_apply_frame_filter): Use it.
8755
92256134
TT
87562018-03-26 Tom Tromey <tom@tromey.com>
8757
8758 PR cli/17716:
8759 * python/py-framefilter.c (py_print_type, py_print_value)
8760 (enumerate_args, py_print_args, gdbpy_apply_frame_filter): Use
8761 RETURN_MASK_ERROR.
8762
7a630bc2
TT
87632018-03-26 Tom Tromey <tom@tromey.com>
8764
8765 * python/py-framefilter.c (enumerate_args): Use
8766 gdb::unique_xmalloc_ptr.
8767
63283d4a
TT
87682018-03-26 Tom Tromey <tom@tromey.com>
8769
8770 * python/py-framefilter.c (py_print_frame): Return
8771 EXT_LANG_BT_OK.
8772 (gdbpy_apply_frame_filter): Update comment.
8773 * extension.h (enum ext_lang_bt_status) <EXT_LANG_BT_COMPLETED>:
8774 Remove.
8775 <EXT_LANG_BT_NO_FILTERS>: Change value.
8776
978d6c75
TT
87772018-03-26 Tom Tromey <tom@tromey.com>
8778
8779 PR backtrace/15582:
8780 * stack.c (backtrace_command): Parse "hide" argument.
8781 * python/py-framefilter.c (py_print_frame): Handle PRINT_HIDE.
8782 * extension.h (enum frame_filter_flags) <PRINT_HIDE>: New
8783 constant.
8784
1cf7e640
TT
87852018-03-26 Tom Tromey <tom@tromey.com>
8786
8787 * stack.c (backtrace_command_1): Remove "show_locals" parameter,
8788 add "flags".
8789 (backtrace_command): Remove "fulltrace", add "flags".
8790
ea3b0687
TT
87912018-03-26 Tom Tromey <tom@tromey.com>
8792
8793 * stack.c (backtrace_command): Rewrite command line parsing.
8794
9f034d75
SM
87952018-03-26 Simon Marchi <simon.marchi@ericsson.com>
8796
8797 * dwarf2read.c (DEF_VEC_I(offset_type)): Remove.
8798
ce1459e5
SM
87992018-03-26 Simon Marchi <simon.marchi@ericsson.com>
8800
8801 * filename-seen-cache.h: Add include guard.
8802
4f7ae6f5
KS
88032018-03-26 Keith Seitz <keiths@redhat.com>
8804
8805 * symfile.c (place_section): Remove "struct" from section_addr_info
8806 in comment.
8807 * windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove
8808 "struct" keyword from section_addr_info.
8809
5cd3e386
AH
88102018-03-26 Alan Hayward <alan.hayward@arm.com>
8811
8812 * regformats/regdef.h (reg): Add constructors.
8813
3e5ef9a4
PA
88142018-03-25 Pedro Alves <palves@redhat.com>
8815
8816 * eval.c (evaluate_funcall): Swap OP_VAR_MSYM_VALUE/OP_VAR_VALUE
8817 if then/else bodies in var_func_name extraction.
8818
c88d2fcc 88192018-03-23 Weimin Pan <weimin.pan@oracle.com>
bce02d88
WP
8820
8821 * minsyms.c (lookup_minimal_symbol_and_objfile): Use
8822 lookup_minimal_symbol() to find symbol entry.
8823 * minsyms.h (lookup_minimal_symbol_and_objfile): Update comment.
8824
b7fee5a3
KS
88252018-03-23 Keith Seitz <keiths@redhat.com>
8826
8827 PR c++/22968
8828 * dwarf2read.c (scan_partial_symbols): Scan structs/classes for
8829 nested type definitions for C++, too.
8830
2cc9b304
TT
88312018-03-23 Tom Tromey <tom@tromey.com>
8832
8833 * machoread.c (struct oso_el): Add a constructor. Don't define as
8834 a typedef.
8835 (macho_register_oso): Remove.
8836 (macho_symtab_read): Take a std::vector.
8837 (oso_el_compare_name): Now a std::sort comparator.
8838 (macho_symfile_read_all_oso): Take a std::vector.
8839 (macho_symfile_read): Use std::vector. Remove cleanups.
8840
a2b2bc12
TT
88412018-03-22 Tom Tromey <tom@tromey.com>
8842
8843 * record-full.c (record_full_exec_insn): Use gdb::byte_vector.
8844 (record_full_goto_bookmark): Use std::string.
8845
7a8f494c
PFC
88462018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
8847
8848 PR tdep/18295
8849 * rs6000-tdep.c (skip_prologue): Match both stwux and stdux
8850 a single mask.
8851
dd6d677f
PFC
88522018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
8853
8854 * rs6000-tdep.c (store_insn_p): New function.
8855 (skip_prologue): New variable alloca_reg_offset. Set lr_reg
8856 and cr_reg to their unshifted values. Use store_insn_p to
8857 match LR saves using either R1 or fdata->alloca_reg. Use
8858 store_insn_p to match CR saves. Set alloca_reg_offset
8859 when alloca_reg and framep are set. Remove lr_reg shift
8860 when assigning to fdata->lr_register.
8861
26d6cec4
AA
88622018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
8863
8864 * linux-tdep.c (linux_info_proc): For "info proc cmdline", print
8865 command line args instead of emitting a warning.
8866
5d9310c4
SM
88672018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
8868
8869 * tracepoint.h (struct static_tracepoint_marker): Initialize
8870 fields, define default constructor, move constructor and move
8871 assignment, disable the rest.
8872 <str_id, extra>: Make std::string.
8873 (release_static_tracepoint_marker): Remove.
8874 (free_current_marker): Remove.
8875 * tracepoint.c (free_current_marker): Remove.
8876 (parse_static_tracepoint_marker_definition): Adjust to
8877 std::string, use new hex2str overload.
8878 (release_static_tracepoint_marker): Remove.
8879 (print_one_static_tracepoint_marker): Get marker by reference
8880 and adjust to std::string.
8881 (info_static_tracepoint_markers_command): Adjust to std::vector
8882 changes
8883 * target.h (static_tracepoint_marker_p): Remove typedef.
8884 (DEF_VEC_P(static_tracepoint_marker_p)): Remove.
8885 (struct target_ops) <to_static_tracepoint_marker_at>: Return
8886 bool.
8887 <to_static_tracepoint_markers_by_strid>: Return std::vector.
8888 * target-debug.h
8889 (target_debug_print_VEC_static_tracepoint_marker_p_p): Remove.
8890 (target_debug_print_std_vector_static_tracepoint_marker): New.
8891 (target_debug_print_struct_static_tracepoint_marker_p): Rename
8892 to...
8893 (target_debug_print_static_tracepoint_marker_p): ... this.
8894 * target-delegates.c: Re-generate.
8895 * breakpoint.h (struct tracepoint) <static_trace_marker_id>:
8896 Make std::string.
8897 * breakpoint.c (init_breakpoint_sal): Adjust to std::string.
8898 (decode_static_tracepoint_spec): Adjust to std::vector.
8899 (tracepoint_print_one_detail): Adjust to std::string.
8900 (strace_marker_decode_location): Adjust to std::string.
8901 (update_static_tracepoint): Adjust to std::string, remove call
8902 to release_static_tracepoint_marker.
8903 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
8904 Adjust to std::vector.
8905 * remote.c (remote_static_tracepoint_marker_at): Return bool.
8906 (remote_static_tracepoint_markers_by_strid): Adjust to
8907 std::vector.
8908 * common/rsp-low.h (hex2str): New overload with explicit count
8909 of bytes.
8910 * common/rsp-low.c (hex2str): New overload with explicit count
8911 of bytes.
8912 * unittests/rsp-low-selftests.c (test_hex2str): New function.
8913 (_initialize_rsp_low_selftests): Add test_hex2str test.
8914 * unittests/tracepoint-selftests.c
8915 (test_parse_static_tracepoint_marker_definition): Adjust to
8916 std::string.
8917
62c222b6
SM
89182018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
8919
8920 * tracepoint.c (parse_static_tracepoint_marker_definition):
8921 Consider case where the definition is followed by more
8922 definitions.
8923 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
8924 tracepoint-selftests.c.
8925 * unittests/tracepoint-selftests.c: New.
8926
7eb2418f
PFC
89272018-03-21 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
8928
8929 * MAINTAINERS (Write After Approval): Add Pedro Franco de
8930 Carvalho.
8931
7cbe16e9
SR
89322018-03-20 Stephen Roberts <stephen.roberts@arm.com>
8933
3d6b3b82 8934 * symtab.c (find_pc_sect_line): fixed indentation.
7cbe16e9 8935
4ee89e90
SR
89362018-03-20 Stephen Roberts <stephen.roberts@arm.com>
8937
3d6b3b82 8938 * symtab.c (find_pc_sect_line): now uses binary search.
4ee89e90 8939
92630041
TT
89402018-03-19 Tom Tromey <tom@tromey.com>
8941
8942 * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain
8943 "IDENT" production.
8944
76727919
TT
89452018-03-19 Pedro Alves <palves@redhat.com>
8946 Tom Tromey <tom@tromey.com>
8947
8948 * unittests/observable-selftests.c: New file.
8949 * common/observable.h: New file.
8950 * observable.h: New file.
8951 * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c,
8952 arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c,
8953 breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c,
8954 corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c,
8955 extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c,
8956 infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c,
8957 linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c,
8958 mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c,
8959 ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c,
8960 python/py-breakpoint.c, python/py-finishbreakpoint.c,
8961 python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c,
8962 record-btrace.c, record-full.c, record.c, regcache.c, remote.c,
8963 riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c,
8964 spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c,
8965 symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c,
8966 tui/tui-interp.c, valops.c: Update all users.
8967 * tui/tui-hooks.c (tui_bp_created_observer)
8968 (tui_bp_deleted_observer, tui_bp_modified_observer)
8969 (tui_inferior_exit_observer, tui_before_prompt_observer)
8970 (tui_normal_stop_observer, tui_register_changed_observer):
8971 Remove.
8972 (tui_observers_token): New global.
8973 (attach_or_detach, tui_attach_detach_observers): New functions.
8974 (tui_install_hooks, tui_remove_hooks): Use
8975 tui_attach_detach_observers.
8976 * record-btrace.c (record_btrace_thread_observer): Remove.
8977 (record_btrace_thread_observer_token): New global.
8978 * observer.sh: Remove.
8979 * observer.c: Rename to observable.c.
8980 * observable.c (namespace gdb_observers): Define new objects.
8981 (observer_debug): Move into gdb_observers namespace.
8982 (struct observer, struct observer_list, xalloc_observer_list_node)
8983 (xfree_observer_list_node, generic_observer_attach)
8984 (generic_observer_detach, generic_observer_notify): Remove.
8985 (_initialize_observer): Update.
8986 Don't include observer.inc.
8987 * Makefile.in (generated_files): Remove observer.h, observer.inc.
8988 (clean mostlyclean): Likewise.
8989 (observer.h, observer.inc): Remove targets.
8990 (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c.
8991 (COMMON_SFILES): Use observable.c, not observer.c.
8992 * .gitignore: Remove observer.h.
8993
1cb1f3da
TT
89942018-03-18 Tom Tromey <tom@tromey.com>
8995
8996 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use
8997 gdb::def_vector.
8998 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
8999
a06ab151
TT
90002018-03-17 Tom Tromey <tom@tromey.com>
9001
9002 * auto-load.c (auto_load_objfile_script_1): Use std::string.
9003
770623f7
TT
90042018-03-17 Tom Tromey <tom@tromey.com>
9005
9006 * target.c (class scoped_target_fd): New.
9007 (target_fileio_close_cleanup): Remove.
9008 (target_fileio_read_alloc_1): Use scoped_target_fd.
9009
39be3c7e
SM
90102018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
9011
9012 * silent-rules.mk: New.
9013 * Makefile.in: Include silent-rules.mk
9014 (srcdir, VPATH, top_srcdir): Move up.
9015 (COMPILE): Add ECHO_CXX.
9016 (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD.
9017 (init.c): Add ECHO_INIT_C.
9018 (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
9019 (version.c): Add ECHO_GEN.
9020 (printcmd.o): Add ECHO_CXX.
9021 (target-float.o): Add ECHO_CXX.
9022 (ada-exp.o): Add ECHO_CXX.
9023 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN.
9024 (insight$(EXEEXT)): Add ECHO_CXXLD.
9025 * gnulib/configure.ac: Add AM_SILENT_RULES.
9026 * gnulib/aclocal.m4: Re-generate.
9027 * gnulib/configure: Re-generate.
9028 * gnulib/import/Makefile.in: Re-generate.
9029
37e136b1
TT
90302018-03-16 Tom Tromey <tom@tromey.com>
9031
9032 * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs".
9033 * utils.h (make_cleanup_free_section_addr_info): Don't declare.
9034 * utils.c (do_free_section_addr_info)
9035 (make_cleanup_free_section_addr_info): Remove.
9036 * symfile.h (struct other_sections): Add constructor.
9037 (struct section_addr_info): Remove.
9038 (section_addr_info): New typedef.
9039 (struct sym_fns) <sym_offsets>: Change type of parameter.
9040 (build_section_addr_info_from_objfile)
9041 (relative_addr_info_to_section_offsets, addr_info_make_relative)
9042 (default_symfile_offsets, symbol_file_add)
9043 (symbol_file_add_from_bfd)
9044 (build_section_addr_info_from_section_table): Update.
9045 (alloc_section_addr_info, free_section_addr_info): Don't declare.
9046 * symfile.c (alloc_section_addr_info): Remove.
9047 (build_section_addr_info_from_section_table): Change return type.
9048 Update.
9049 (build_section_addr_info_from_bfd)
9050 (build_section_addr_info_from_objfile): Likewise.
9051 (free_section_addr_info): Remove.
9052 (relative_addr_info_to_section_offsets): Change type of "addrs".
9053 (addrs_section_compar): Now a std::sort comparator.
9054 (addrs_section_sort): Change return type.
9055 (addr_info_make_relative): Change type of "addrs". Update.
9056 (default_symfile_offsets, syms_from_objfile_1)
9057 (syms_from_objfile, symbol_file_add_with_addrs): Likewise.
9058 (symbol_file_add_separate): Update.
9059 (symbol_file_add): Change type of "addrs". Update.
9060 (add_symbol_file_command): Update. Remove cleanups.
9061 * symfile-mem.c (symbol_file_add_from_memory): Update. Remove
9062 cleanups.
9063 * symfile-debug.c (debug_sym_offsets): Change type of "info".
9064 * solib.c (solib_read_symbols): Update.
9065 * objfiles.c (objfile_relocate): Update. Remove cleanups.
9066 * machoread.c (macho_symfile_offsets): Update.
9067 * jit.c (jit_bfd_try_read_symtab): Update.
9068
03afa6ef
SM
90692018-03-15 Simon Marchi <simon.marchi@polymtl.ca>
9070
9071 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9072 unittests/utils-selftests.c.
9073 * unittests/utils-selftests.c: New file.
9074
3ae9ce5d
TT
90752018-03-14 Tom Tromey <tom@tromey.com>
9076
9077 PR cli/14977:
9078 * printcmd.c (printf_c_string, printf_wide_c_string): Special case
9079 for NULL.
9080
b8c2339b
TT
90812018-03-14 Tom Tromey <tom@tromey.com>
9082
9083 PR cli/19918:
9084 * printcmd.c (printf_pointer): Allow "-" in format.
9085
80ae639d
TT
90862018-03-14 Tom Tromey <tom@tromey.com>
9087
9088 * printcmd.c (_initialize_printcmd): Add usage to printf.
9089
0d671d99
YQ
90902018-03-14 Yao Qi <qiyao@sourceware.org>
9091
9092 * MAINTAINERS: Update my email address.
9093
b577b6af
TT
90942018-03-13 Tom Tromey <tom@tromey.com>
9095
9096 * machoread.c (macho_check_dsym): Change filenamep to a
9097 std::string*.
9098 (macho_symfile_read): Update.
9099 * symfile.c (load_command): Use std::string.
9100
89a3b63e
AB
91012018-03-12 Andrew Burgess <andrew.burgess@embecosm.com>
9102
9103 * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization
9104 to error message string.
9105 (riscv_register_name): Use xsnprintf instead of sprintf.
9106 (riscv_insn::fetch_instruction): Use gdb_assert instead of
9107 internal_error.
9108 (riscv_print_arg_location): Use gdb_assert_not_reached instead of
9109 error.
9110 (riscv_push_dummy_call): Likewise.
9111
984c7238
TT
91122018-03-12 Tom Tromey <tom@tromey.com>
9113
9114 * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix):
9115 Use gdb::byte_vector.
9116 * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector.
9117
933522d1
YQ
91182018-03-12 Yao Qi <yao.qi@linaro.org>
9119
9120 * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change
9121 parameter type to readable_regcache.
9122 * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update
9123 the declaration.
9124
be2daae6
TT
91252018-03-11 Tom Tromey <tom@tromey.com>
9126
9127 * dwarf2read.c (struct nextfield): Add initializers.
9128 (struct nextfnfield): Remove.
9129 (struct fnfieldlist): Add initializers. Remove "length" and
9130 "head", use std::vector.
9131 (struct decl_field_list): Remove.
9132 (struct field_info): Add initializers.
9133 <fields, baseclasses>: Now std::vector.
9134 <nbaseclasses, nfnfields, typedef_field_list_count,
9135 nested_types_list_count>: Remove.
9136 (dwarf2_add_field, dwarf2_add_type_defn)
9137 (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
9138 (dwarf2_attach_fn_fields_to_type, handle_struct_member_die)
9139 (process_structure_scope): Update.
9140
484cf504
TT
91412018-03-11 Tom Tromey <tom@tromey.com>
9142
9143 * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable
9144 for use by std::sort.
9145 (build_type_psymtabs_1): Use std::vector.
9146
9bd8e0b0
EZ
91472018-03-09 Eli Zaretskii <eliz@gnu.org>
9148
9149 * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK,
9150 and LIBMPFR in the printed configuration.
9151
5dc1a704
TT
91522018-03-08 Tom Tromey <tom@tromey.com>
9153
9154 * source.c (get_filename_and_charpos): Use scoped_fd.
9155 * nto-procfs.c (procfs_open_1): Use scoped_fd.
9156 (procfs_pidlist): Likewise.
9157 * procfs.c (proc_get_LDT_entry): Use scoped_fd.
9158 (iterate_over_mappings): Likewise.
9159
fdf07f3a
TT
91602018-03-08 Tom Tromey <tom@tromey.com>
9161
9162 * infcall.c (struct call_return_meta_info)
9163 <stack_temporaries_enabled>: Remove.
9164 (get_call_return_value, call_function_by_hand_dummy): Update.
9165 * thread.c (disable_thread_stack_temporaries): Remove.
9166 (enable_thread_stack_temporaries): Remove.
9167 (thread_stack_temporaries_enabled_p): Return bool.
9168 (push_thread_stack_temporary, value_in_thread_stack_temporaries)
9169 (get_last_thread_stack_temporary): Update.
9170 * eval.c (evaluate_subexp): Update.
9171 * gdbthread.h (class enable_thread_stack_temporaries): Now a
9172 class, not a function.
9173 (value_ptr, value_vec): Remove typedefs.
9174 (class thread_info) <stack_temporaries_enabled>: Now bool.
9175 <stack_temporaries>: Now a std::vector.
9176 (thread_stack_temporaries_enabled_p)
9177 (value_in_thread_stack_temporaries): Return bool.
9178
567a3e54
SM
91792018-03-08 Simon Marchi <simon.marchi@ericsson.com>
9180
9181 * remote.c (putpkt_binary): Fix omitted bytes reporting.
9182 (getpkt_or_notif_sane_1): Likewise.
9183
00b40057
SM
91842018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
9185
9186 * build-id.c (build_id_to_debug_bfd): Use std::string.
9187
a8dbfd58
SM
91882018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
9189
9190 * build-id.c (find_separate_debug_file_by_buildid): Return
9191 std::string.
9192 * build-id.h (find_separate_debug_file_by_buildid): Return
9193 std::string.
9194 * coffread.c (coff_symfile_read): Adjust to std::string.
9195 * elfread.c (elf_symfile_read): Adjust to std::string.
9196 * symfile.c (separate_debug_file_exists): Change parameter to
9197 std::string.
9198 (find_separate_debug_file): Return std::string.
9199 (find_separate_debug_file_by_debuglink): Return std::string.
9200 * symfile.h (find_separate_debug_file_by_debuglink): Return
9201 std::string.
9202
e6a58aa8
SM
92032018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
9204
9205 * common/xml-utils.c (xml_escape_text): Move code to...
9206 (xml_escape_text_append): ... this new function.
9207 * common/xml-utils.h (xml_escape_text_append): New declaration.
9208 * unittests/xml-utils-selftests.c (test_xml_escape_text_append):
9209 New function.
9210 (_initialize_xml_utils): register test_xml_escape_text_append as
9211 a selftest.
9212
4ef0bef6
AH
92132018-03-07 Alan Hayward <alan.hayward@arm.com>
9214
9215 * defs.h: Remove MAX_REGISTER_SIZE.
9216 * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE
9217 asserts.
9218 * python/py-unwind.c (pyuw_sniffer): Likewise.
9219
e0d3522b
TT
92202018-03-07 Tom Tromey <tom@tromey.com>
9221
9222 * linux-tdep.c (linux_info_proc): Update.
9223 * target.h (struct target_ops) <to_fileio_readlink>: Return
9224 optional<string>.
9225 (target_fileio_readlink): Return optional<string>.
9226 * remote.c (remote_hostio_readlink): Return optional<string>.
9227 * inf-child.c (inf_child_fileio_readlink): Return
9228 optional<string>.
9229 * target.c (target_fileio_readlink): Return optional<string>.
9230
ea005f31
AB
92312018-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
9232
9233 * regcache.c (cooked_read_test): Add riscv to the list of
9234 architectures that have a save_reggroup.
9235
e95a97d4
AA
92362018-03-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
9237
9238 * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given
9239 value is not a dynamic class object.
9240
d8344f3d
TT
92412018-03-06 Tom Tromey <tom@tromey.com>
9242
9243 * rust-exp.y: Formatting fixes.
9244
9add17f2
AB
92452018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9246
9247 * riscv-tdep.c (riscv_register_name): Remove target description
9248 support.
9249 (riscv_gdbarch_init): Remove target description check.
9250
c9486dfe
AB
92512018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9252
9253 * riscv-tdep.c: Remove 'Contributed by ...' lines from header
9254 comment.
9255 * riscv-tdep.h: Likewise.
9256
d74aff3d
AB
92572018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9258
9259 * riscv-tdep.c (riscv_pseudo_register_read): Delete.
9260 (riscv_pseudo_register_write): Delete.
9261 (riscv_gdbarch_init): Remove all use of pseudo registers.
9262
7ea78b59
SM
92632018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
9264
9265 * record-btrace.c (btrace_print_lines): Replace cleanup
9266 parameter with RAII equivalents.
9267 (btrace_insn_history): Replace cleanup with RAII equivalents.
9268 * ui-out.h (make_cleanup_ui_out_list_begin_end,
9269 make_cleanup_ui_out_tuple_begin_end): Remove.
9270 * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end,
9271 make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end,
9272 make_cleanup_ui_out_list_begin_end): Remove.
9273
53127008
SM
92742018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
9275
9276 * record-btrace.c (record_btrace_maybe_mark_async_event): Change
9277 parameter types to std::vector. Use bool.
9278 (record_btrace_wait): Replace VEC(tp_t) with
9279 std::vector<thread_info *>.
9280 * common/gdb_vecs.h (unordered_remove, ordered_remove): New.
9281
228f1508
SM
92822018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
9283
9284 * record-btrace.c (record_btrace_disable_callback): Remove.
9285 (struct scoped_btrace_disable): New.
9286 (record_btrace_open): Use scoped_btrace_disable.
9287
b2970c23
AB
92882018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9289
9290 * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for
9291 reading values from registers.
9292
fb294655
AB
92932018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9294
9295 * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz
9296 where appropriate.
9297
cab5bb9d
AB
92982018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9299
9300 * riscv-tdep.c (riscv_print_arg_location): Add header comment,
9301 change parameter type. Use GDB's print functions, and use
9302 core_addr_to_string where appropriate.
9303 (riscv_push_dummy_call): Use core_addr_to_string where
9304 appropriate, update call to riscv_print_arg_location, and reindent
9305 a few lines.
9306 (riscv_return_value): Update call to riscv_print_arg_location.
9307
dbbb1059
AB
93082018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9309 Tim Newsome <tim@sifive.com>
9310 Albert Ou <a0u@eecs.berkeley.edu>
9311 Darius Rad <darius@bluespec.com>
9312
9313 * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o
9314 (HFILES_NO_SRCDIR): Add riscv-tdep.h.
9315 (ALLDEPFILES): Add riscv-tdep.c
9316 * configure.tgt: Add riscv support.
9317 * riscv-tdep.c: New file.
9318 * riscv-tdep.h: New file.
9319 * NEWS: Mention new target.
9320 * MAINTAINERS: Add entry for riscv.
9321
5dc43913
AB
93222018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9323
9324 * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized
9325 fields within aggregates.
9326
3dea1ef7
SM
93272018-03-04 Simon Marchi <simon.marchi@polymtl.ca>
9328
9329 * record-btrace.c (btrace_print_lines): Change type of flags to
9330 gdb_disassembly_flags.
9331
7efba073
JB
93322018-03-04 John Baldwin <jhb@FreeBSD.org>
9333
9334 * fbsd-nat.c: Include "inf-ptrace.h".
9335 (USE_SIGTRAP_SIGINFO): Conditionally define.
9336 [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function.
9337 (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap".
9338 [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New
9339 function.
9340 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint):
9341 Likewise.
9342 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint):
9343 Likewise.
9344 (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set
9345 "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint",
9346 "supports_stopped_by_hw_breakpoint" target methods.
9347
386a8676
JB
93482018-03-04 John Baldwin <jhb@FreeBSD.org>
9349
9350 * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat".
9351 * fbsd-nat.c (debug_fbsd_nat): New variable.
9352 (show_fbsd_nat_debug): New function.
9353 (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled.
9354 (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command.
9355
12279366
JB
93562018-03-04 John Baldwin <jhb@FreeBSD.org>
9357
9358 * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function.
9359 * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New
9360 prototype.
9361 * x86-nat.c (x86_stopped_by_hw_breakpoint): New function.
9362 (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target
9363 method.
9364
54693cf5
SM
93652018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
9366
9367 * common/gdb_vecs.c (free_char_ptr_vec): Remove.
9368 * common/gdb_vecs.h (free_char_ptr_vec): Remove.
9369
ccb2231c
SM
93702018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
9371
9372 * charset.c (struct charset_vector): New.
9373 (charsets): Change type to charset_vector.
9374 (find_charset_names): Adjust.
9375 (add_one): Adjust.
9376 (_initialize_charset): Adjust.
9377
6fb16ce6
SM
93782018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
9379
9380 * progspace.h (struct program_space) <deleted_solibs>: Change
9381 type to std::vector<std::string>.
9382 * progspace.c (clear_program_space_solib_cache): Adjust.
9383 * breakpoint.c (print_solib_event): Adjust.
9384 (check_status_catch_solib): Adjust.
9385 * solib.c (update_solib_list): Adjust.
9386 * ui-out.h (class ui_out) <field_string>: New overload.
9387 * ui-out.c (ui_out::field_string): New overload.
9388
564b1e3f
SM
93892018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
9390
9391 * progspace.h (struct program_space): Add constructor and
9392 destructor, initialize fields.
9393 (add_program_space): Remove.
9394 * progspace.c (add_program_space): Rename to...
9395 (program_space::program_space): ... this.
9396 (release_program_space): Rename to...
9397 (program_space::~program_space): ... this.
9398 (delete_program_space): Use delete to delete program_space.
9399 (initialize_progspace): Use new to allocate program_space.
9400 * inferior.c (add_inferior_with_spaces): Likewise.
9401 (clone_inferior_command): Likewise.
9402 * infrun.c (follow_fork_inferior): Likewise.
9403 (handle_vfork_child_exec_or_exit): Likewise.
9404
e80aaf61
SM
94052018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
9406
9407 * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove.
9408 (delim_string_to_char_ptr_vec): Return std::vector of
9409 gdb::unique_xmalloc_ptr.
9410 (dirnames_to_char_ptr_vec_append): Take std::vector of
9411 gdb::unique_xmalloc_ptr.
9412 (dirnames_to_char_ptr_vec): Return std::vector of
9413 gdb::unique_xmalloc_ptr.
9414 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append):
9415 Take std::vector of gdb::unique_xmalloc_ptr, adjust the code.
9416 (delim_string_to_char_ptr_vec): Return an std::vector of
9417 gdb::unique_xmalloc_ptr, adjust the code.
9418 (dirnames_to_char_ptr_vec_append): Take an std::vector of
9419 gdb::unique_xmalloc_ptr, adjust the code.
9420 (dirnames_to_char_ptr_vec): Return an std::vector of
9421 gdb::unique_xmalloc_ptr, adjust the code.
9422 * auto-load.c (auto_load_safe_path_vec): Change type to
9423 std::vector of gdb::unique_xmalloc_ptr.
9424 (auto_load_expand_dir_vars): Return an std::vector of
9425 gdb::unique_xmalloc_ptr, adjust the code.
9426 (auto_load_safe_path_vec_update): Adjust.
9427 (filename_is_in_auto_load_safe_path_vec): Adjust.
9428 (auto_load_objfile_script_1): Adjust.
9429 * build-id.c (build_id_to_debug_bfd): Adjust.
9430 * linux-thread-db.c (thread_db_load_search): Adjust.
9431 * source.c (add_path): Adjust.
9432 (openp): Adjust.
9433 * symfile.c (find_separate_debug_file): Adjust.
9434 * utils.c (do_free_char_ptr_vec): Remove.
9435 (make_cleanup_free_char_ptr_vec): Remove.
9436
ab818ade
SDJ
94372018-03-01 Sergio Durigan Junior <sergiodj@redhat.com>
9438
9439 PR gdb/22907
9440 * common/pathstuff.c: Conditionally include "<windows.h>".
9441
e1e6f073
GS
94422018-03-01 Georg Sauthoff <mail@georg.so>
9443
9444 PR gdb/22888
9445 * gcore.in: Quote variables and switch interpreter to bash.
9446
c7b15a66
TT
94472018-03-01 Tom Tromey <tom@tromey.com>
9448
9449 * dwarf2read.c (alloc_discriminant_info): Fix default_index
9450 assertion. Add assertion for discriminant_index.
9451 (quirk_rust_enum): Use correct base type name in univariant case.
9452
0cb7c7b0
SM
94532018-03-01 Simon Marchi <simon.marchi@ericsson.com>
9454
9455 * record.c (get_call_history_modifiers): Return a
9456 record_print_flags.
9457 (cmd_record_call_history): Adjust.
9458 * record-btrace.c (record_btrace_call_history): Adjust.
9459 (record_btrace_call_history_range): Adjust.
9460 (record_btrace_call_history_from): Adjust.
9461 * target-debug.h (target_debug_print_record_print_flags): New.
9462 * target-delegates.c: Re-generate.
9463 * target.c (target_call_history): Change flags type.
9464 (target_call_history_from): Likewise.
9465 (target_call_history_range): Likewise.
9466 * target.h (struct target_ops) <target_call_history>: Likewise.
9467 (target_call_history_from): Likewise.
9468 (target_call_history_range): Likewise.
9469
25e3c82c
SDJ
94702018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
9471 Simon Marchi <simon.marchi@polymtl.ca>
9472
9473 * common/common-utils.c: Include "sys/stat.h".
9474 (is_regular_file): Move here from "source.c"; change return
9475 type to "bool".
9476 * common/common-utils.h (is_regular_file): New prototype.
9477 * common/pathstuff.c (contains_dir_separator): New function.
9478 * common/pathstuff.h (contains_dir_separator): New prototype.
9479 * source.c: Don't include "sys/stat.h".
9480 (is_regular_file): Move to "common/common-utils.c".
9481
b4987c95
SDJ
94822018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
9483
9484 * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c".
9485 (HFILES_NO_SRCDIR): Add "common/pathstuff.h".
9486 * auto-load.c: Include "common/pathstuff.h".
9487 * common/common-def.h (current_directory): Move here.
9488 * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New
9489 function.
9490 * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New
9491 prototype.
9492 * common/pathstuff.c: New file.
9493 * common/pathstuff.h: New file.
9494 * compile/compile.c: Include "common/pathstuff.h".
9495 * defs.h (current_directory): Move to "common/common-defs.h".
9496 * dwarf2read.c: Include "common/pathstuff.h".
9497 * exec.c: Likewise.
9498 * guile/scm-safe-call.c: Likewise.
9499 * linux-thread-db.c: Likewise.
9500 * main.c: Likewise.
9501 * nto-tdep.c: Likewise.
9502 * objfiles.c: Likewise.
9503 * source.c: Likewise.
9504 * symtab.c: Likewise.
9505 * utils.c: Include "common/pathstuff.h".
9506 (gdb_realpath): Move to "common/pathstuff.c".
9507 (gdb_realpath_keepfile): Likewise.
9508 (gdb_abspath): Likewise.
9509 * utils.h (gdb_realpath): Move to "common/pathstuff.h".
9510 (gdb_realpath_keepfile): Likewise.
9511 (gdb_abspath): Likewise.
9512
f169cfdc
JB
95132018-02-28 John Baldwin <jhb@FreeBSD.org>
9514
9515 * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a
9516 wildcard process pid for super_resume for kernels with a
9517 specific bug.
9518
e05cac70
PM
95192018-02-27 Phil Muldoon <pmuldoon@redhat.com>
9520
9521 * compile/compile.c (get_args): Add additional comments
9522 explaining function.
9523
55089490
TT
95242018-02-27 Simon Marchi <simon.marchi@polymtl.ca>
9525 Tom Tromey <tom@tromey.com>
9526
9527 * target.h (memory_write_request_s): Remove typedef. Don't define
9528 VEC.
9529 (target_write_memory_blocks): Change argument to std::vector.
9530 (struct memory_write_request): Add constructor.
9531 * target-memory.c (compare_block_starting_address): Return bool.
9532 Change argument types.
9533 (claim_memory): Change arguments to use std::vector.
9534 (split_regular_and_flash_blocks, blocks_to_erase)
9535 (compute_garbled_blocks): Likewise.
9536 (cleanup_request_data, cleanup_write_requests_vector): Remove.
9537 (target_write_memory_blocks): Change argument to std::vector.
9538 * symfile.c (struct load_section_data): Add constructor and
9539 destructor. Use std::vector for "requests".
9540 (struct load_progress_data): Add initializers.
9541 (load_section_callback): Update. Use "new".
9542 (clear_memory_write_data): Remove.
9543 (generic_load): Update.
9544
0c305b61
AH
95452018-02-27 Alan Hayward <alan.hayward@arm.com>
9546
9547 * arch/aarch64.h: Use common/tdesc.h.
9548
c5196c92
MR
95492018-02-26 Maciej W. Rozycki <macro@mips.com>
9550
9551 * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD
9552 architecture with a 64-bit ABI.
9553
37c33887
MR
95542018-02-26 Maciej W. Rozycki <macro@mips.com>
9555
9556 * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination
9557 ahead of target description loading.
9558
d4dd3282
TT
95592018-02-26 Tom Tromey <tom@tromey.com>
9560
9561 * stack.c (backtrace_command_1): Update.
9562 * python/python-internal.h (gdbpy_apply_frame_filter): Change type
9563 of "flags".
9564 * python/py-framefilter.c (py_print_frame)
9565 (gdbpy_apply_frame_filter): Change type of "flags".
9566 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type
9567 of "flags".
9568 (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals)
9569 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update.
9570 * extension.h (enum frame_filter_flag): Rename from
9571 frame_filter_flags.
9572 (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE.
9573 (apply_ext_lang_frame_filter): Change type of "flags".
9574 * extension.c (apply_ext_lang_frame_filter): Change type of
9575 "flags".
9576 * extension-priv.h (struct extension_language_ops)
9577 <apply_frame_filter>: Change type of "flags".
9578
6893c19a
TT
95792018-02-26 Tom Tromey <tom@tromey.com>
9580
9581 PR python/16497:
9582 * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag. Fix
9583 off-by-one in py_end computation.
9584 * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle
9585 PRINT_MORE_FRAMES.
9586 * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New
9587 constant.
9588
2ddeaf8a
TT
95892018-02-26 Tom Tromey <tom@tromey.com>
9590
9591 * dwarf2read.c (struct variant_field): New.
9592 (struct nextfield) <variant>: New field.
9593 (dwarf2_add_field): Handle DW_TAG_variant_part.
9594 (dwarf2_attach_fields_to_type): Attach a discriminant_info to a
9595 discriminated union.
9596 (read_structure_type): Handle DW_TAG_variant_part.
9597 (handle_struct_member_die): New function, extracted from
9598 process_structure_scope. Handle DW_TAG_variant.
9599 (process_structure_scope): Handle discriminated unions. Call
9600 handle_struct_member_die.
9601
c9317f21
TT
96022018-02-26 Tom Tromey <tom@tromey.com>
9603
9604 * rust-lang.h (rust_last_path_segment): Declare.
9605 * rust-lang.c (rust_last_path_segment): Now public. Change
9606 contract.
9607 (struct disr_info): Remove.
9608 (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL)
9609 (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged)
9610 (rust_get_disr_info, rust_tuple_variant_type_p): Remove.
9611 (rust_enum_p, rust_enum_variant): New function.
9612 (rust_underscore_fields): Remove "offset" parameter.
9613 (rust_print_enum): New function.
9614 (rust_val_print) <TYPE_CODE_UNION>: Remove enum code.
9615 <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate.
9616 (rust_print_struct_def): Add "for_rust_enum" parameter. Handle
9617 enums.
9618 (rust_internal_print_type): New function, from rust_print_type.
9619 Remove enum code.
9620 (rust_print_type): Call rust_internal_print_type.
9621 (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>:
9622 Update enum handling.
9623 * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field.
9624 (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum)
9625 (rust_union_quirks): New functions.
9626 (process_full_comp_unit, process_full_type_unit): Call
9627 rust_union_quirks.
9628 (process_structure_scope): Update rust_unions if necessary.
9629
7c22600a
TT
96302018-02-26 Tom Tromey <tom@tromey.com>
9631
9632 * value.h (value_union_variant): Declare.
9633 * valops.c (value_union_variant): New function.
9634 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro.
9635 (struct discriminant_info): New.
9636 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New
9637 enumerator.
9638 (struct main_type) <flag_discriminated_union>: New field.
9639
15ce8941
TT
96402018-02-26 Tom Tromey <tom@tromey.com>
9641
9642 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9643 unittests/unpack-selftests.c.
9644 * unittests/unpack-selftests.c: New file.
9645 * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases.
9646
48fbe735
YQ
96472018-02-26 Yao Qi <yao.qi@linaro.org>
9648
9649 * dwarf2read.c (struct partial_die_info) <read>: New method.
9650 (read_partial_die): Remove the declaration.
9651 (load_partial_dies): Update.
9652 (partial_die_info::partial_die_info):
9653 (read_partial_die): Change it to partial_die_info::read.
9654
52356b79
YQ
96552018-02-26 Yao Qi <yao.qi@linaro.org>
9656
9657 * dwarf2read.c (struct partial_die_info) <fixup>: New method.
9658 (fixup_partial_die): Remove declaration.
9659 (scan_partial_symbols): Update.
9660 (partial_die_parent_scope): Likewise.
9661 (partial_die_full_name): Likewise.
9662 (fixup_partial_die): Change it to partial_die_info::fixup.
9663
35cc7ed7
YQ
96642018-02-26 Yao Qi <yao.qi@linaro.org>
9665
9666 * dwarf2read.c (read_partial_die): Update the declaration.
9667 (load_partial_dies): Caller update.
9668 (read_partial_die): Remove one argument abbrev_len.
9669
6f06d47b
YQ
96702018-02-26 Yao Qi <yao.qi@linaro.org>
9671
9672 * dwarf2read.c (struct partial_die_info): Add ctor, delete
9673 assignment operator.
9674 (load_partial_dies): Use ctor and copy ctor.
9675 (read_partial_die): Update.
9676 (dwarf2_cu::find_partial_die): Use ctor.
9677
d590ff25
YQ
96782018-02-26 Yao Qi <yao.qi@linaro.org>
9679
9680 * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method.
9681 (find_partial_die_in_comp_unit): Change it to
9682 dwarf2_cu::find_partial_die.
9683 (find_partial_die): Update.
9684
fd0a254f
YQ
96852018-02-26 Yao Qi <yao.qi@linaro.org>
9686
9687 * dwarf2read.c (read_partial_die): Remove the code checking abbrev
9688 is NULL.
9689
cd9983dd
YQ
96902018-02-26 Yao Qi <yao.qi@linaro.org>
9691
9692 * dwarf2read.c (load_partial_dies): Move the location of XOBNEW.
9693
f46cd62a
AH
96942018-02-26 Alan Hayward <alan.hayward@arm.com>
9695
9696 * arch/amd64.h: Use common/tdesc.h.
9697 * arch/i386.c: Likewise.
9698 * arch/i386.h: Likewise.
9699 * arch/tic6x.c: Likewise.
9700 * arch/tdesc.h: Move file from here...
9701 * common/tdesc.h: ...to here.
9702 * features/aarch64-core.c: Regenerate.
9703 * features/aarch64-fpu.c: Regenerate.
9704 * features/i386/32bit-avx.c: Regenerate.
9705 * features/i386/32bit-avx512.c: Regenerate.
9706 * features/i386/32bit-core.c: Regenerate.
9707 * features/i386/32bit-linux.c: Regenerate.
9708 * features/i386/32bit-mpx.c: Regenerate.
9709 * features/i386/32bit-pkeys.c: Regenerate.
9710 * features/i386/32bit-sse.c: Regenerate.
9711 * features/i386/64bit-avx.c: Regenerate.
9712 * features/i386/64bit-avx512.c: Regenerate.
9713 * features/i386/64bit-core.c: Regenerate.
9714 * features/i386/64bit-linux.c: Regenerate.
9715 * features/i386/64bit-mpx.c: Regenerate.
9716 * features/i386/64bit-pkeys.c: Regenerate.
9717 * features/i386/64bit-segments.c: Regenerate.
9718 * features/i386/64bit-sse.c: Regenerate.
9719 * features/i386/x32-core.c: Regenerate.
9720 * features/tic6x-c6xp.c: Regenerate.
9721 * features/tic6x-core.c: Regenerate.
9722 * features/tic6x-gp.c: Regenerate.
9723 * target-descriptions.c: Use common/tdesc.h.
9724 * target-descriptions.h: Likewise.
9725
9b292f68
TT
97262018-02-24 Tom Tromey <tom@tromey.com>
9727
9728 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
9729 (try_thread_db_load_from_dir, thread_db_load_search): Use
9730 std::string.
9731 (info_auto_load_libthread_db_compare): Return bool. Change
9732 argument types.
9733 (info_auto_load_libthread_db): Use std::vector, std::string.
9734 Remove cleanups.
9735
281d762b
TT
97362018-02-24 Tom Tromey <tom@tromey.com>
9737
9738 * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a
9739 std::string.
9740 * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a
9741 std::string*.
9742 * gdbarch.c: Rebuild.
9743 * gdbarch.h: Rebuild.
9744 * breakpoint.c (check_fast_tracepoint_sals): Use std::string.
9745 * arch-utils.h (default_fast_tracepoint_valid_at): Update.
9746 * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a
9747 std::string*.
9748
9d8780f0
SM
97492018-02-23 Simon Marchi <simon.marchi@polymtl.ca>
9750
9751 * gdbtypes.h (sect_offset): Change type to uint64_t.
9752 (sect_offset_str): New function.
9753 * dwarf2read.c (create_addrmap_from_aranges): Use
9754 sect_offset_str.
9755 (error_check_comp_unit_head): Likewise.
9756 (create_debug_type_hash_table): Likewise.
9757 (read_cutu_die_from_dwo): Likewise.
9758 (init_cutu_and_read_dies): Likewise.
9759 (init_cutu_and_read_dies_no_follow): Likewise.
9760 (process_psymtab_comp_unit_reader): Likewise.
9761 (partial_die_parent_scope): Likewise.
9762 (peek_die_abbrev): Likewise.
9763 (process_queue): Likewise.
9764 (dwarf2_physname): Likewise.
9765 (read_namespace_alias): Likewise.
9766 (read_import_statement): Likewise.
9767 (create_dwo_cu_reader): Likewise.
9768 (create_cus_hash_table): Likewise.
9769 (lookup_dwo_cutu): Likewise.
9770 (inherit_abstract_dies): Likewise.
9771 (read_func_scope): Likewise.
9772 (read_call_site_scope): Likewise.
9773 (dwarf2_add_member_fn): Likewise.
9774 (read_common_block): Likewise.
9775 (read_module_type): Likewise.
9776 (read_typedef): Likewise.
9777 (read_subrange_type): Likewise.
9778 (load_partial_dies): Likewise.
9779 (read_partial_die): Likewise.
9780 (find_partial_die): Likewise.
9781 (read_str_index): Likewise.
9782 (dwarf2_string_attr): Likewise.
9783 (build_error_marker_type): Likewise.
9784 (lookup_die_type): Likewise.
9785 (dump_die_shallow): Likewise.
9786 (follow_die_ref): Likewise.
9787 (dwarf2_fetch_die_loc_sect_off): Likewise.
9788 (dwarf2_fetch_constant_bytes): Likewise.
9789 (follow_die_sig): Likewise.
9790 (get_signatured_type): Likewise.
9791 (get_DW_AT_signature_type): Likewise.
9792 (dwarf2_find_containing_comp_unit): Likewise.
9793 (set_die_type): Likewise.
9794
8ec57239
JB
97952018-02-21 John Baldwin <jhb@FreeBSD.org>
9796
9797 * arch/aarch64.c: Include "common-defs.h".
9798 * arch/amd64.c: Likewise.
9799 * arch/i386.c: Likewise.
9800
3eac2b65
TT
98012018-02-21 Tom Tromey <tom@tromey.com>
9802
9803 * value.h: (extract_field_op): Update.
9804 * eval.c (extract_field_op): Return a const char *.
9805 * expression.h (parse_expression_for_completion): Update.
9806 * completer.c (complete_expression): Update.
9807 (add_struct_fields): Make fieldname const.
9808 * parse.c (expout_completion_name): Now a unique_xmalloc_ptr.
9809 (mark_completion_tag, parse_exp_in_context_1): Update.
9810 (parse_expression_for_completion): Change "name" to
9811 unique_xmalloc_ptr*.
9812
6ccb583f
TT
98132018-02-21 Tom Tromey <tom@tromey.com>
9814
9815 * infcall.c (call_function_by_hand_dummy): Use std::vector.
9816
c113ed0c
YQ
98172018-02-21 Yao Qi <yao.qi@linaro.org>
9818
9819 * avr-tdep.c (avr_read_pc): Change parameter type to
9820 readable_regcache.
9821 * gdbarch.sh (read_pc): Likewise.
9822 * gdbarch.c: Re-generated.
9823 * gdbarch.h: Re-generated.
9824 * hppa-tdep.c (hppa_read_pc): Change parameter type to
9825 readable_regcache.
9826 * ia64-tdep.c (ia64_read_pc): Likewise.
9827 * mips-tdep.c (mips_read_pc): Likewise.
9828 * spu-tdep.c (spu_read_pc): Likewise.
9829
4c74fe6b
YQ
98302018-02-21 Yao Qi <yao.qi@linaro.org>
9831
9832 * Makefile.in (COMMON_SFILES): Add regcache-dump.c
9833 * regcache-dump.c: New file.
9834 * regcache.c: Move register_dump to regcache-dump.c.
9835 (maintenance_print_registers): Likewise.
9836 (maintenance_print_raw_registers): Likewise.
9837 (maintenance_print_cooked_registers): Likewise.
9838 (maintenance_print_register_groups): Likewise.
9839 (maintenance_print_remote_registers): Likewise.
9840 (_initialize_regcache): Likewise.
9841 * regcache.h (register_dump): Moved from regcache.c.
9842
796bb026
YQ
98432018-02-21 Yao Qi <yao.qi@linaro.org>
9844
9845 * regcache.c (regcache::regcache): Update.
9846 (regcache::invalidate): Move it to detached_regcache::invalidate.
9847 (get_thread_arch_aspace_regcache): Update.
9848 (regcache::raw_update): Update.
9849 (regcache::cooked_read): Remove some code.
9850 (regcache::cooked_read_value): Likewise.
9851 (regcache::raw_write): Remove assert on m_readonly_p.
9852 (regcache::raw_supply_integer): Move it to
9853 detached_regcache::raw_supply_integer.
9854 (regcache::raw_supply_zeroed): Likewise.
9855 * regcache.h (detached_regcache) <raw_supply_integer>: New
9856 declaration.
9857 <raw_supply_zeroed, invalidate>: Likewise.
9858 (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed.
9859 <invalidate>: Likewise.
9860 <m_readonly_p>: Removed.
9861
215c69dc
YQ
98622018-02-21 Yao Qi <yao.qi@linaro.org>
9863
9864 * infcmd.c (get_return_value): Let stop_regs point to
9865 get_current_regcache.
9866 * regcache.c (regcache::regcache): Remove.
9867 (register_dump_reg_buffer): New class.
9868 (regcache_print): Adjust.
9869 * regcache.h (regcache): Remove constructors.
9870
f3384e66
YQ
98712018-02-21 Yao Qi <yao.qi@linaro.org>
9872
9873 * regcache.c (class register_dump): New class.
9874 (register_dump_regcache, register_dump_none): New class.
9875 (register_dump_remote, register_dump_groups): New class.
9876 (regcache_print): Update.
9877 * regcache.h (regcache_dump_what): Move it to regcache.c.
9878 (regcache) <dump>: Remove.
9879
c8ec2f33
YQ
98802018-02-21 Yao Qi <yao.qi@linaro.org>
9881
9882 * jit.c (struct jit_unwind_private) <regcache>: Change its type to
9883 reg_buffer_rw *.
9884 (jit_unwind_reg_set_impl): Call raw_supply.
9885 (jit_frame_sniffer): Use reg_buffer_rw.
9886 * record-full.c (record_full_core_regbuf): Change its type.
9887 (record_full_core_open_1): Use reg_buffer_rw.
9888 (record_full_close): Likewise.
9889 (record_full_core_fetch_registers): Use regcache->raw_supply.
9890 (record_full_core_store_registers): Likewise.
9891 * regcache.c (regcache::get_register_status): Move it to
9892 reg_buffer.
9893 (regcache_raw_set_cached_value): Remove.
9894 (regcache::raw_set_cached_value): Remove.
9895 (regcache::raw_write): Call raw_supply.
9896 (regcache::raw_supply): Move it to reg_buffer_rw.
9897 * regcache.h (regcache_raw_set_cached_value): Remove.
9898 (reg_buffer_rw): New class.
9899
daf6667d
YQ
99002018-02-21 Yao Qi <yao.qi@linaro.org>
9901
9902 * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use
9903 readonly_detached_regcache.
9904 (dummy_frame_prev_register): Use regcache->cooked_read.
9905 * frame.c (frame_save_as_regcache): Change return type.
9906 (frame_pop): Update.
9907 * frame.h (frame_save_as_regcache): Update declaration.
9908 * inferior.h (get_infcall_suspend_state_regcache): Update
9909 declaration.
9910 * infrun.c (infcall_suspend_state) <registers>: use
9911 readonly_detached_regcache.
9912 (save_infcall_suspend_state): Don't use regcache_dup.
9913 (get_infcall_suspend_state_regcache): Change return type.
9914 * linux-fork.c (struct fork_info) <savedregs>: Change to
9915 readonly_detached_regcache.
9916 <pc>: New field.
9917 (fork_save_infrun_state): Don't use regcache_dup.
9918 (info_checkpoints_command): Adjust.
9919 * mi/mi-main.c (register_changed_p): Update declaration.
9920 (mi_cmd_data_list_changed_registers): Use
9921 readonly_detached_regcache.
9922 (register_changed_p): Change parameter type to
9923 readonly_detached_regcache.
9924 * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use
9925 readonly_detached_regcache.
9926 (ppu2spu_sniffer): Construct a new readonly_detached_regcache.
9927 * regcache.c (readonly_detached_regcache::readonly_detached_regcache):
9928 New.
9929 (regcache::save): Move it to reg_buffer.
9930 (regcache::restore): Change parameter type.
9931 (regcache_dup): Remove.
9932 * regcache.h (reg_buffer) <save>: New method.
9933 (readonly_detached_regcache): New class.
9934 * spu-tdep.c (spu2ppu_cache) <regcache>: Use
9935 readonly_detached_regcache.
9936 (spu2ppu_sniffer): Construct a new readonly_detached_regcache.
9937
fc5b8736
YQ
99382018-02-21 Yao Qi <yao.qi@linaro.org>
9939
9940 * frame.c (frame_save_as_regcache): Use regcache method save.
9941 (frame_pop): Use regcache method restore.
9942 * infrun.c (restore_infcall_suspend_state): Likewise.
9943 * linux-fork.c (fork_load_infrun_state): Likewise.
9944 * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method
9945 save.
9946 * regcache.c (regcache_save): Remove.
9947 (regcache::restore): More asserts.
9948 (regcache_cpy): Remove.
9949 * regcache.h (regcache_save): Remove the declaration.
9950 (regcache::restore): Move from private to public.
9951 Remove the friend declaration of regcache_cpy.
9952 (regcache_cpy): Remove declaration.
9953
849d0ba8
YQ
99542018-02-21 Yao Qi <yao.qi@linaro.org>
9955
9956 * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change
9957 parameter type to 'readable_regcache *'.
9958 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
9959 * arm-tdep.c (arm_neon_quad_read): Likewise.
9960 (arm_pseudo_read): Likewise.
9961 * avr-tdep.c (avr_pseudo_register_read): Likewise.
9962 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
9963 * frv-tdep.c (frv_pseudo_register_read): Likewise.
9964 * gdbarch.c: Re-generated.
9965 * gdbarch.h: Re-generated.
9966 * gdbarch.sh (pseudo_register_read): Change parameter type to
9967 'readable_regcache *'.
9968 (pseudo_register_read_value): Likewise.
9969 * h8300-tdep.c (pseudo_from_raw_register): Likewise.
9970 (h8300_pseudo_register_read): Likewise.
9971 * hppa-tdep.c (hppa_pseudo_register_read): Likewise.
9972 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
9973 (i386_pseudo_register_read_into_value): Likewise.
9974 (i386_pseudo_register_read_value): Likewise.
9975 * i386-tdep.h (i386_pseudo_register_read_into_value): Update
9976 declaration.
9977 * ia64-tdep.c (ia64_pseudo_register_read): Likewise.
9978 * m32c-tdep.c (m32c_raw_read): Likewise.
9979 (m32c_read_flg): Likewise.
9980 (m32c_banked_register): Likewise.
9981 (m32c_banked_read): Likewise.
9982 (m32c_sb_read): Likewise.
9983 (m32c_part_read): Likewise.
9984 (m32c_cat_read): Likewise.
9985 (m32c_r3r2r1r0_read): Likewise.
9986 (m32c_pseudo_register_read): Likewise.
9987 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
9988 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
9989 (mep_pseudo_cr64_read): Likewise.
9990 (mep_pseudo_register_read): Likewise.
9991 * mips-tdep.c (mips_pseudo_register_read): Likewise.
9992 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
9993 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
9994 * regcache.c (regcache::raw_read): Move it to readable_regcache.
9995 (regcache::cooked_read): Likewise.
9996 (regcache::cooked_read_value): Likewise.
9997 (regcache_cooked_read_signed):
9998 (regcache::cooked_read): Likewise.
9999 * regcache.h (readable_regcache): New class.
10000 (regcache): Inherit readable_regcache. Move some methods to
10001 readable_regcache.
10002 * rl78-tdep.c (rl78_pseudo_register_read): Change
10003 parameter type to 'readable_regcache *'.
10004 * rs6000-tdep.c (do_regcache_raw_read): Remove.
10005 (e500_pseudo_register_read): Change parameter type to
10006 'readable_regcache *'.
10007 (dfp_pseudo_register_read): Likewise.
10008 (vsx_pseudo_register_read): Likewise.
10009 (efpr_pseudo_register_read): Likewise.
10010 * s390-tdep.c (s390_pseudo_register_read): Likewise.
10011 * sh-tdep.c (sh_pseudo_register_read): Likewise.
10012 * sh64-tdep.c (pseudo_register_read_portions): Likewise.
10013 (sh64_pseudo_register_read): Likewise.
10014 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
10015 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
10016 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
10017 (spu_pseudo_register_read): Likewise.
10018 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
10019 (xtensa_pseudo_register_read): Likewise.
10020
31716595
YQ
100212018-02-21 Yao Qi <yao.qi@linaro.org>
10022
10023 * regcache.c (regcache::regcache): Call reg_buffer ctor.
10024 (regcache::arch): Move it to reg_buffer::arch.
10025 (regcache::register_buffer): Likewise.
10026 (regcache::assert_regnum): Likewise.
10027 (regcache::num_raw_registers): Likewise.
10028 * regcache.h (reg_buffer): New class.
10029 (regcache): Inherit reg_buffer.
10030
7104e59b
SM
100312018-02-20 Simon Marchi <simon.marchi@ericsson.com>
10032
10033 * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
10034 gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF.
10035
2d8adcbd
MM
100362018-02-20 Markus Metzger <markus.t.metzger@intel.com>
10037
10038 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp.
10039
b5884fa7
AH
100402018-02-19 Alan Hayward <alan.hayward@arm.com>
10041
10042 * Makefile.in: (COMMON_SFILES): Add common/*.c files.
10043 (SFILES): Remove common/*.c files.
10044 (COMMON_OBS): Remove some *.o files built from common/*.c files.
10045 * common/common.host: Add common reference.
10046 * configure.ac: Likewise.
10047 * configure: Regenerate.
10048
fd90ace4
YQ
100492018-02-16 Yao Qi <yao.qi@linaro.org>
10050
10051 * block.c (block_namespace_info): Inherit allocate_on_obstack.
10052 (block_initialize_namespace): Use new.
10053 * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack.
10054 (dwarf2_free_objfile): Use delete.
10055 * gdbtypes.c (type_pair): Inherit allocate_on_obstack.
10056 (copy_type_recursive): Use new.
10057 * gdb_obstack.h (allocate_on_obstack): New.
10058
85046ae2
YQ
100592018-02-15 Yao Qi <yao.qi@linaro.org>
10060
10061 PR gdb/22849
10062 * inferior.c (exit_inferior_1): Reset inf->control.
10063
355c559b
JB
100642018-02-15 Joel Brobecker <brobecker@adacore.com>
10065
10066 * ada-lang.c (ada_to_fixed_value_create): Delete advance
10067 declaration.
10068
980548fd
PA
100692018-02-14 Pedro Alves <palves@redhat.com>
10070
10071 * frame-unwind.c (frame_unwind_try_unwinder): Always call
10072 frame_cleanup_after_sniffer on exception.
10073
692d6f97
TT
100742018-02-14 Tom Tromey <tom@tromey.com>
10075
10076 * solist.h (struct target_so_ops) <bfd_open>: Make pathname
10077 const.
10078 (solib_bfd_open): Make pathname const.
10079 * solib.c (solib_bfd_open): Make pathname const.
10080 * solib-spu.c (spu_bfd_fopen): Make name const.
10081 (spu_bfd_open): Make pathname const.
10082 * solib-darwin.c (darwin_bfd_open): Make pathname const.
10083 * solib-aix.c (solib_aix_bfd_open): Make pathname const.
10084
e0cc99a6
TT
100852018-02-14 Tom Tromey <tom@tromey.com>
10086
10087 * symfile.c (symfile_bfd_open): Update.
10088 * source.h (openp, source_full_path_of, find_and_open_source):
10089 Change argument type to unique_xmalloc_ptr.
10090 * source.c (openp): Take a unique_xmalloc_ptr.
10091 (source_full_path_of, find_and_open_source): Likewise.
10092 (open_source_file, symtab_to_fullname): Update.
10093 * solist.h (struct target_so_ops) <find_and_open_solib>: Take a
10094 unique_xmalloc_ptr.
10095 * solib.c (solib_find_1): Use unique_xmalloc_ptr.
10096 (exec_file_find): Update.
10097 * psymtab.c (psymtab_to_fullname): Update.
10098 * nto-tdep.h (nto_find_and_open_solib): Update.
10099 * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a
10100 unique_xmalloc_ptr.
10101 * exec.c (exec_file_attach): Update.
10102 * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr.
10103 * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr.
10104
b46a8d7c
TT
101052018-02-14 Tom Tromey <tom@tromey.com>
10106
10107 * solib.c: Include source.h.
10108 * nto-tdep.c: Include source.h.
10109 * mi/mi-cmd-env.c: Include source.h.
10110 * infcmd.c: Include source.h.
10111 * exec.c: Include source.h.
10112 * defs.h (enum openp_flag, openp, source_full_path_of, mod_path)
10113 (add_path, directory_switch, source_path, init_source_path): Move
10114 declarations...
10115 * source.h (enum openp_flag, openp, source_full_path_of, mod_path)
10116 (add_path, directory_switch, source_path, init_source_path):
10117 ...here.
10118
797bc1cb
TT
101192018-02-14 Tom Tromey <tom@tromey.com>
10120
10121 * solist.h (exec_file_find, solib_find): Return
10122 unique_xmalloc_ptr.
10123 (solib_bfd_fopen): Take a const char *.
10124 * solib.c (solib_find_1): Return unique_xmalloc_ptr.
10125 (exec_file_find, solib_find): Likewise.
10126 (solib_bfd_fopen): Do not take ownership of "pathname".
10127 (solib_bfd_open): Use unique_xmalloc_ptr.
10128 * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr.
10129 * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr.
10130 * infrun.c (follow_exec): Use unique_xmalloc_ptr.
10131 * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr.
10132
f98b2e33
JB
101332018-02-14 Joel Brobecker <brobecker@adacore.com>
10134
10135 * ada-lang.c (name_match_type_from_name): Remove reference to
10136 ada_name_for_lookup in function's documentation.
10137 * ada-lang.h (ada_name_for_lookup): Delete declaration.
10138
24b9144d
SM
101392018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
10140
10141 * defs.h (enum openp_flags): New enum.
10142 (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH):
10143 Move to enum openp_flags.
10144 (openp_flags): New enum flags.
10145 (openp): Change parameter type to openp_flags.
10146 * source.c (openp): Change parameter type to openp_flags.
10147 * cli/cli-cmds.c (find_and_open_script): Use openp_flags.
10148 * dwarf2read.c (try_open_dwop_file): Use openp_flags.
10149
387cd15b
SM
101502018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
10151
10152 * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show
10153 per-command.
10154
b303c6f6
AB
101552018-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
10156
10157 * dwarf2read.c (dwarf2_release_queue): Delete function, move body
10158 into...
10159 (class dwarf2_queue_guard): ...the destructor of this new class.
10160 (dw2_do_instantiate_symtab): Create instance of the new class
10161 dwarf2_queue_guard, remove cleanup.
10162
9c3630e9
TT
101632018-02-09 Tom Tromey <tom@tromey.com>
10164
10165 * source.c (find_source_lines): Don't reference past the end of
10166 the vector.
10167
c4e12631
MM
101682018-02-09 Markus Metzger <markus.t.metzger@intel.com>
10169
10170 * remote.c (remote_btrace_maybe_reopen): Change error message.
10171 * btrace.c (btrace_enable): Likewise.
10172 (parse_xml_btrace): Likewise.
10173 (parse_xml_btrace_conf): Likewise.
10174
88711fbf
MM
101752018-02-09 Markus Metzger <markus.t.metzger@intel.com>
10176
10177 * nat/linux-btrace.c (diagnose_perf_event_open_fail): New.
10178 (linux_enable_pt, linux_enable_bts): Call
10179 diagnose_perf_event_open_fail.
10180
17ad2a4f
MM
101812018-02-09 Markus Metzger <markus.t.metzger@intel.com>
10182
10183 * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message.
10184 Remove parameter and change return type. Update callers. Move it.
10185 (linux_enable_bts, linux_enable_pt): Improve error message.
10186 (linux_enable_pt): Remove zero buffer size check.
10187 (linux_enable_btrace): Improve error messages. Remove NULL return
10188 check.
10189
de6242d3
MM
101902018-02-09 Markus Metzger <markus.t.metzger@intel.com>
10191
10192 * btrace.c (btrace_enable): Remove target_supports_btrace call.
10193 * nat/linux-btrace.c (perf_event_pt_event_type): Move.
10194 (kernel_supports_bts, kernel_supports_pt, linux_supports_bts)
10195 (linux_supports_pt, linux_supports_btrace): Remove.
10196 (linux_enable_bts): Call cpu_supports_bts.
10197 * nat/linux-btrace.h (linux_supports_btrace): Remove.
10198 * remote.c (remote_supports_btrace): Remove.
10199 (init_remote_ops): Remove remote_supports_btrace.
10200 * target-delegates.c: Regenerated.
10201 * target.c (target_supports_btrace): Remove.
10202 * target.h (target_ops) <to_supports_btrace>: Remove
10203 (target_supports_btrace): Remove.
10204 * x86-linux-nat.c (x86_linux_create_target): Remove
10205 linux_supports_btrace.
10206
9ee23a85
MM
102072018-02-09 Markus Metzger <markus.t.metzger@intel.com>
10208
10209 * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling
10210 btrace failed.
10211 * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling
10212 exception and use message in own exception.
10213
5c3284c1
MM
102142018-02-09 Markus Metzger <markus.t.metzger@intel.com>
10215
10216 * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h.
10217 (perf_event_pt_event_type): Use gdb_file_up.
10218 (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr,
10219 scoped_fd, and scoped_mmap.
10220
84696f37
MM
102212018-02-09 Markus Metzger <markus.t.metzger@intel.com>
10222
10223 * common/scoped_mmap.h: New.
10224 * unittests/scoped_mmap-selftest.c: New.
10225 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10226 unittests/scoped_mmap-selftest.c.
10227
ea4a0888
MM
102282018-02-09 Markus Metzger <markus.t.metzger@intel.com>
10229
10230 * common/scoped_fd.h: New.
10231 * unittests/scoped_fd-selftest.c: New.
10232 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10233 unittests/scoped_fd-selftest.c.
10234
869e8290
TT
102352018-02-09 Tom Tromey <tom@tromey.com>
10236
10237 * auto-load.c (auto_load_section_scripts): Use
10238 gdb::unique_xmalloc_ptr.
10239
a37a2ae7
TT
102402018-02-09 Tom Tromey <tom@tromey.com>
10241
10242 * auto-load.c (execute_script_contents): Use std::string.
10243
4e725347
JB
102442018-02-09 Joel Brobecker <brobecker@adacore.com>
10245
10246 * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new
10247 Python function, rather than a new command.
10248
9a897d43
TT
102492018-02-08 Tom Tromey <tom@tromey.com>
10250
10251 * solib.c (solib_find_1): Use std::string.
10252 (solib_bfd_fopen): Use unique_xmalloc_ptr.
10253
58ef3771
TT
102542018-02-08 Tom Tromey <tom@tromey.com>
10255
10256 * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr.
10257
a9abc434
TT
102582018-02-08 Tom Tromey <tom@tromey.com>
10259
10260 * source.c (find_source_lines): Use gdb::def_vector.
10261
84f27c6f
TT
102622018-02-08 Tom Tromey <tom@tromey.com>
10263
10264 * macrocmd.c (struct temporary_macro_definition): New.
10265 (macro_define_command): Use temporary_macro_definition. Remove
10266 cleanups.
10267 (free_macro_definition_ptr): Remove.
10268
0354904b
TT
102692018-02-08 Tom Tromey <tom@tromey.com>
10270
10271 * macroexp.c (maybe_expand): Use std::string.
10272
1739cf24
TT
102732018-02-08 Tom Tromey <tom@tromey.com>
10274
10275 * macroexp.c (struct macro_buffer): Add initializers for some
10276 members.
10277 (init_buffer, init_shared_buffer, free_buffer)
10278 (free_buffer_return_text): Remove.
10279 (macro_buffer): New constructors.
10280 (~macro_buffer): New destructor.
10281 (macro_buffer::set_shared): New method.
10282 (macro_buffer::resize_buffer, macro_buffer::appendc)
10283 (macro_buffer::appendmem): Now methods, not free functions.
10284 (set_token, append_tokens_without_splicing, stringify)
10285 (macro_stringify): Update.
10286 (gather_arguments): Change return type. Remove argc_p argument,
10287 add args_ptr argument. Use std::vector.
10288 (substitute_args): Remove argc argument. Accept std::vector.
10289 (expand): Update. Use std::vector.
10290 (scan, macro_expand, macro_expand_next): Update.
10291
f6c2623e
TT
102922018-02-08 Tom Tromey <tom@tromey.com>
10293
10294 * symtab.c (default_collect_symbol_completion_matches_break_on):
10295 Use unique_xmalloc_ptr.
10296 * macroscope.h: (sal_macro_scope, user_macro_scope)
10297 (default_macro_scope): Return unique_xmalloc_ptr.
10298 * macroscope.c (sal_macro_scope, user_macro_scope)
10299 (default_macro_scope): Return unique_xmalloc_ptr.
10300 * macroexp.h (macro_expand, macro_expand_once): Return
10301 unique_xmalloc_ptr.
10302 * macroexp.c (macro_expand, macro_expand_once): Return
10303 unique_xmalloc_ptr.
10304 * macrocmd.c (macro_expand_command, macro_expand_once_command)
10305 (info_macro_command, info_macros_command): Use
10306 unique_xmalloc_ptr.
10307 * compile/compile-c-support.c (write_macro_definitions): Use
10308 unique_xmalloc_ptr.
10309 * c-exp.y (c_parse): Use unique_xmalloc_ptr.
10310
c2e0e465
SM
103112018-02-07 Simon Marchi <simon.marchi@ericsson.com>
10312
10313 * value.c (value_static_field): Assign field type instead of
10314 containing type when returning an optimized out value.
10315
3f8c94b4
YQ
103162018-02-06 Yao Qi <yao.qi@linaro.org>
10317
10318 * ft32-tdep.c (ft32_read_pc): Remove.
10319 (ft32_write_pc): Remove.
10320 (ft32_gdbarch_init): Update.
10321 * m32r-tdep.c (m32r_read_pc): Remove.
10322 (m32r_gdbarch_init): Update.
10323 * mep-tdep.c (mep_read_pc): Remove.
10324 (mep_gdbarch_init): Update.
10325 * microblaze-tdep.c (microblaze_write_pc): Remove.
10326 (microblaze_gdbarch_init): Update.
10327 * mn10300-tdep.c (mn10300_read_pc): Remove.
10328 (mn10300_write_pc): Remove.
10329 (mn10300_gdbarch_init): Update.
10330 * moxie-tdep.c (moxie_read_pc): Remove.
10331 (moxie_write_pc): Remove.
10332 (moxie_gdbarch_init): Update.
10333
bca65a23
YQ
103342018-02-06 Yao Qi <yao.qi@linaro.org>
10335
10336 * expprint.c (print_subexp_standard): Handle
10337 OP_F77_UNDETERMINED_ARGLIST.
10338 (dump_subexp_body_standard): Likewise.
10339
583e3f90 103402018-02-05 Alan Hayward <alan.hayward@arm.com>
b8df6ca7 10341
583e3f90
YQ
10342 * target-descriptions.c (tdesc_element_visitor) Add empty
10343 implementations.
b8df6ca7
AH
10344 (tdesc_type): Move make_gdb_type from here.
10345 (tdesc_type_builtin): Likewise.
10346 (tdesc_type_vector): Likewise.
10347 (tdesc_type_with_fields): Move make_gdb_type_ functions from here.
10348 (make_gdb_type_struct): Move from tdesc_type_with_fields.
10349 (make_gdb_type_union): Likewise.
10350 (make_gdb_type_flags): Likewise.
10351 (make_gdb_type_enum): Likewise.
10352 (make_gdb_type): New function.
10353 (tdesc_register_type): Use static make_gdb_type.
10354
e813d34a
RK
103552018-02-05 Ruslan Kabatsayev <b7.10110111@gmail.com>
10356
10357 * infcmd.c (default_print_one_register_info): Align natural-format
10358 column values consistently one under another.
10359 (pad_to_column): New function.
10360
0eb876f5
JB
103612018-02-05 Joel Brobecker <brobecker@adacore.com>
10362
10363 * dwarf2read.c (dwarf2_physname): Move commment.
10364
0625771b
LS
103652018-02-01 Leszek Swirski <leszeks@google.com>
10366
10367 * varobj.c (varobj_formatted_print_options): Allow recursive
10368 pretty printing if pretty printing is enabled.
10369
59498c30
LS
103702018-02-01 Leszek Swirski <leszeks@google.com>
10371
10372 * c-exp.y (lex_one_token, classify_name, yylex): Don't classify
10373 names after a structop as a filename.
10374
2d9e6acb
YQ
103752018-02-01 Yao Qi <yao.qi@linaro.org>
10376
10377 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it.
10378 (arm_record_coproc_data_proc): Likewise.
10379
df95a9cf
YQ
103802018-02-01 Yao Qi <yao.qi@linaro.org>
10381
10382 * arm-tdep.c (arm_record_extension_space): Change ret to signed.
10383
07e5f5cf
NP
103842018-01-31 Nikola Prica <nikola.prica@rt-rk.com>
10385
10386 * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
10387 assign shifted lr_reg to fdata->lr_register when lr_reg is set.
10388
3045b475
PA
103892018-01-31 Pedro Alves <palves@redhat.com>
10390
10391 * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter.
10392 * inflow.c (child_terminal_save_inferior): Wrap reference to
10393 tcgetpgrp in HAVE_TERMIOS_H.
10394 (child_interrupt, child_pass_ctrlc): Wrap references to signal in
10395 _WIN32.
10396 * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and
10397 always iterate over all inferiors.
10398 (gdbsim_cntrl_c): Adjust.
10399 * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter.
10400
929b5ad4
JB
104012018-01-31 Joel Brobecker <brobecker@adacore.com>
10402
10403 * gdbtypes.c (lookup_array_range_type): Make sure the array's
10404 index type is objfile-owned if the element type is as well.
10405
29236ca2
JB
104062018-01-31 Joel Brobecker <brobecker@adacore.com>
10407
10408 GDB 8.1 released.
10409
c81e8879
PR
104102018-01-30 Philipp Rudo <prudo@linux.vnet.ibm.com>
10411
10412 * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and
10413 "features/s390x-linux64.c".
10414 (_initialize_s390_linux_tdep): Remove initialization of tdescs
10415 s390_linux32 and s390x_linux64.
10416 (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set
10417 default tdesc.
10418 * s390-tdep.c: Include "features/s390-linux32.c" and
10419 "features/s390x-linux64.c".
10420 (s390_tdesc_valid): Add check for tdesc_has_registers.
10421 (s390_gdbarch_init): Make sure there is always a valid tdesc.
10422 (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and
10423 tdesc_s390x_linux64.
10424 * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and
10425 tdesc_s390x_linux64 to...
10426 * s390-tdep.h: ...here.
10427
e671cd59
PA
104282018-01-30 Pedro Alves <palves@redhat.com>
10429
10430 PR gdb/13211
10431 * config.in, configure: Regenerate.
10432 * configure.ac: Check for getpgid.
10433 * go32-nat.c (go32_pass_ctrlc): New.
10434 (go32_target): Install it.
10435 * inf-child.c (inf_child_target): Install
10436 child_terminal_save_inferior, child_pass_ctrlc and
10437 child_interrupt.
10438 * inf-ptrace.c (inf_ptrace_interrupt): Delete.
10439 (inf_ptrace_target): No longer install it.
10440 * infcmd.c (interrupt_target_1): Adjust.
10441 * inferior.h (child_terminal_save_inferior, child_pass_ctrlc)
10442 (child_interrupt): Declare.
10443 (inferior::terminal_state): New.
10444 * inflow.c (struct terminal_info): Update comments.
10445 (inferior_process_group): Delete.
10446 (terminal_is_ours): Delete.
10447 (gdb_tty_state): New.
10448 (child_terminal_init): Adjust.
10449 (is_gdb_terminal, sharing_input_terminal_1)
10450 (sharing_input_terminal): New functions.
10451 (child_terminal_inferior): Adjust. Use sharing_input_terminal.
10452 Set the process's actual process group in the foreground if
10453 possible. Handle is_ours_for_output/is_ours distinction. Don't
10454 mark terminal as the inferior's if not sharing GDB's terminal.
10455 Don't check attach_flag.
10456 (child_terminal_ours_for_output, child_terminal_ours): Adjust to
10457 pass down a target_terminal_state.
10458 (child_terminal_save_inferior): New, factored out from ...
10459 (child_terminal_ours_1): ... this. Handle
10460 target_terminal_state::is_ours_for_output.
10461 (child_interrupt, child_pass_ctrlc): New.
10462 (inflow_inferior_exit): Clear the inferior's terminal_state.
10463 (copy_terminal_info): Copy the inferior's terminal state.
10464 (_initialize_inflow): Remove reference to terminal_is_ours.
10465 * inflow.h (inferior_process_group): Delete.
10466 * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust.
10467 * procfs.c (procfs_target): Don't install procfs_interrupt.
10468 (procfs_interrupt): Delete.
10469 * remote.c (remote_serial_quit_handler): Adjust.
10470 (remote_interrupt): Remove ptid parameter. Adjust.
10471 * target-delegates.c: Regenerate.
10472 * target.c: Include "terminal.h".
10473 (target_terminal::terminal_state): Rename to ...
10474 (target_terminal::m_terminal_state): ... this.
10475 (target_terminal::init): Adjust.
10476 (target_terminal::inferior): Adjust to per-inferior
10477 terminal_state.
10478 (target_terminal::restore_inferior, target_terminal_is_ours_kind): New.
10479 (target_terminal::ours, target_terminal::ours_for_output): Use
10480 target_terminal_is_ours_kind.
10481 (target_interrupt): Remove ptid parameter. Adjust.
10482 (default_target_pass_ctrlc): Adjust.
10483 * target.h (target_ops::to_terminal_save_inferior): New field.
10484 (target_ops::to_interrupt): Remove ptid_t parameter.
10485 (target_interrupt): Remove ptid_t parameter. Update comment.
10486 (target_pass_ctrlc): Update comment.
10487 * target/target.h (target_terminal_state): New scoped enum,
10488 factored out of ...
10489 (target_terminal::terminal_state): ... here.
10490 (target_terminal::inferior): Update comments.
10491 (target_terminal::restore_inferior): New.
10492 (target_terminal::is_inferior, target_terminal::is_ours)
10493 (target_terminal::is_ours_for_output): Adjust.
10494 (target_terminal::scoped_restore_terminal_state): Adjust to
10495 rename, and call restore_inferior() instead of inferior().
10496 (target_terminal::scoped_restore_terminal_state::m_state): Change
10497 type.
10498 (target_terminal::terminal_state): Rename to ...
10499 (target_terminal::m_terminal_state): ... this and change type.
10500
9c3a5d93
PA
105012018-01-30 Pedro Alves <palves@redhat.com>
10502
10503 * linux-nat.c (wait_for_signal): New function.
10504 (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend
10505 directly.
10506 (async_terminal_is_ours)
10507 (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete.
10508 (linux_nat_add_target): Don't override
10509 to_terminal_inferior/to_terminal_ours.
10510
69ab5edb
SDJ
105112018-01-29 Sergio Durigan Junior <sergiodj@redhat.com>
10512
10513 * remote.c (remote_follow_fork): Don't call "detach_inferior".
10514
fc8e7e75
SM
105152018-01-28 Simon Marchi <simon.marchi@ericsson.com>
10516
10517 * dwarf2read.c (free_dwo_files): Add forward-declaration.
10518 (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from
10519 dwarf2_per_objfile_free here.
10520 (dwarf2_per_objfile_free): Remove.
10521 (_initialize_dwarf2_read): Don't register
10522 dwarf2_per_objfile_free as a registry cleanup.
10523
b2a426e2
EZ
105242018-01-27 Eli Zaretskii <eliz@gnu.org>
10525
10526 Avoid compilation errors in MinGW native builds
10527
10528 The error is triggered by including python-internal.h, and the
10529 error message is:
10530
10531 In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
10532 from build-gnulib/import/math.h:27,
10533 from d:/usr/Python26/include/pyport.h:235,
10534 from d:/usr/Python26/include/Python.h:58,
10535 from python/python-internal.h:94,
10536 from python/py-arch.c:24:
10537 d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
10538 using ::hypot;
10539 ^~~~~
10540
10541 This happens because Python headers define 'hypot' to expand t
10542 '_hypot' in the Windows builds.
10543 * python/python-internal.h (_hypot) [__MINGW32__]: Define back to
10544 'hypoth'. This avoids a compilation error.
10545
0bdd8eac
AH
105462018-01-26 Alan Hayward <alan.hayward@arm.com>
10547
10548 * MAINTAINERS (Write After Approval): Fix ordering.
10549
56ae9dc3
AH
105502018-01-26 Alan Hayward <alan.hayward@arm.com>
10551
10552 * MAINTAINERS (Write After Approval): Add Alan Hayward.
10553
7433498b
AM
105542018-01-26 Alan Modra <amodra@gmail.com>
10555
10556 * ppc-linux-tdep.c (powerpc32_plt_stub): Make const.
10557 (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so.
10558 Remove nop. Make const. Comment.
10559 (powerpc32_plt_stub_so_2): New.
10560 (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN.
10561 Correct count. Update uses.
10562 (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too.
10563 Move common code reading PLT entry word. Correct
10564 powerpc32_plt_stub PLT address calculation.
10565 * ppc64-tdep.c (ppc64_standard_linkage1): Make const.
10566 (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise.
10567 (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise.
10568 (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise.
10569 (ppc64_standard_linkage8): Likewise.
10570 * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const.
10571 Correct insns description.
10572 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
10573
0f59d5fc
PA
105742018-01-24 Pedro Alves <palves@redhat.com>
10575
10576 GCC PR libstdc++/83906
10577 * gdbtypes.c (operator==(const dynamic_prop &,
10578 const dynamic_prop &)): New.
10579 (operator==(const range_bounds &, const range_bounds &)): New.
10580 (check_types_equal): Use them instead of memcmp.
10581 * gdbtypes.h (operator==(const dynamic_prop &,
10582 const dynamic_prop &)): Declare.
10583 (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare.
10584 (operator==(const range_bounds &, const range_bounds &)): Declare.
10585 (operator!=(const range_bounds &, const range_bounds &)): Declare.
10586
ef8914a4
PR
105872018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
10588
10589 * s390-linux-tdep.c (s390_record_address_mask)
10590 (s390_record_calc_disp_common, s390_record_calc_disp)
10591 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
10592 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
10593 (s390_process_record): Move to s390-tdep.c.
10594 (s390_linux_init_abi_any): Adjust.
10595 * s390-tdep.c (s390_record_address_mask)
10596 (s390_record_calc_disp_common, s390_record_calc_disp)
10597 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
10598 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
10599 (s390_process_record): Moved from s390-linux-tdep.c
10600 (s390_gdbarch_init): Adjust.
10601
d6e58945
PR
106022018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
10603
10604 * s390-linux-nat.c (s390-tdep.h): New include.
10605 * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o.
10606 (HFILES_NO_SRCDIR): Add s390-tdep.h.
10607 (ALLDEPFILES): Add s390-tdep.c.
10608 * configure.tgt (s390*-*-linux*): Add s390-tdep.o.
10609 * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to...
10610 * s390-tdep.h: ...this. New file.
10611 * s390-linux-tdep.c (s390-tdep.h): New include.
10612 (_initialize_s390_tdep): Rename to...
10613 (_initialize_s390_linux_tdep): ...this and adjust.
10614 (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep)
10615 (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to
10616 s390-tdep.h.
10617 (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri)
10618 (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy)
10619 (s390_is_partial_instruction, s390_software_single_step)
10620 (is_non_branch_ril, s390_displaced_step_copy_insn)
10621 (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep)
10622 (s390_prologue_data, s390_addr, s390_store, s390_load)
10623 (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue)
10624 (s390_register_call_saved, s390_guess_tracepoint_registers)
10625 (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum)
10626 (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register)
10627 (s390_pseudo_register_name, s390_pseudo_register_type)
10628 (s390_pseudo_register_read, s390_pseudo_register_write)
10629 (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect)
10630 (s390_ax_pseudo_register_push_stack, s390_gen_return_address)
10631 (s390_addr_bits_remove, s390_address_class_type_flags)
10632 (s390_address_class_type_flags_to_name)
10633 (s390_address_class_name_to_type_flags, s390_effective_inner_type)
10634 (s390_function_arg_float, s390_function_arg_vector)
10635 (is_power_of_two, s390_function_arg_integer, s390_arg_state)
10636 (s390_handle_arg, s390_push_dummy_call, s390_dummy_id)
10637 (s390_frame_align, s390_register_return_value, s390_return_value)
10638 (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp)
10639 (s390_unwind_pseudo_register, s390_adjust_frame_regnum)
10640 (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg)
10641 (s390_trad_frame_prev_register, s390_unwind_cache)
10642 (s390_prologue_frame_unwind_cache)
10643 (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache)
10644 (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind)
10645 (s390_stub_unwind_cache, s390_stub_frame_unwind_cache)
10646 (s390_stub_frame_this_id, s390_stub_frame_prev_register)
10647 (s390_stub_frame_sniffer, s390_stub_frame_unwind)
10648 (s390_frame_base_address, s390_local_base_address)
10649 (s390_frame_base, s390_gcc_target_options)
10650 (s390_gnu_triplet_regexp, s390_stap_is_single_operand)
10651 (s390_validate_reg_range, s390_tdesc_valid)
10652 (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to...
10653 * s390-tdep.c: ...this. New file.
10654
9c0b896e
PR
106552018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
10656
10657 * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook.
10658 (s390_process_record, s390_gdbarch_tdep_alloc)
10659 (s390_linux_init_abi_any): Use/set new hook.
10660
7042632b
PR
106612018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
10662
10663 * s390-linux-tdep.c (osabi.h): New include.
10664 (s390_linux_init_abi_31, s390_linux_init_abi_64)
10665 (s390_linux_init_abi_any): New functions.
10666 (s390_gdbarch_init, _initialize_s390_tdep): Adjust.
10667
650f5e13
PR
106682018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
10669
10670 * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
10671 tdesc_has_registers check
10672
47c9317e
PR
106732018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
10674
10675 * s390-linux-tdep.c (s390_tdesc_valid): New function.
10676 (s390_validate_reg_range): New macro.
10677 (s390_gdbarch_init): Adjust.
10678
095085d8
PR
106792018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
10680
10681 * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
10682 (s390_gdbarch_tdep_alloc): Adjust.
10683 (s390_gdbarch_init): Adjust.
10684
ab9bcc67
PR
106852018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
10686
10687 * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
10688 <have_tdb>: Change type to bool.
10689 (s390_gdbarch_tdep_alloc): Adjust.
10690 (s390_gdbarch_init): Adjust.
10691
21f6f5ff
PR
106922018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
10693
10694 * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
10695 (gdbarch_tdep) <have_upper, have_vx>: New fields.
10696 (s390_gdbarch_tdep_alloc): New function.
10697 (s390_gdbarch_init): Allocate tdep at start and use its fields
10698 instead of separate variables.
10699
0eb97953
PR
107002018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
10701
10702 * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
10703 when looking for cached gdbarch and add comment for remaining.
10704
5c319bb2
PA
107052018-01-22 Pedro Alves <palves@redhat.com>
10706 Sergio Durigan Junior <sergiodj@redhat.com>
10707
10708 * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
10709 case.
10710
d65ce302
MR
107112018-01-22 Maciej W. Rozycki <macro@mips.com>
10712
10713 * MAINTAINERS: Update my company e-mail address.
10714
ec7a5fcb
YQ
107152018-01-22 Yao Qi <yao.qi@linaro.org>
10716
10717 * regcache.c (cooked_write_test): New function.
10718 (_initialize_regcache): Register the test.
10719
11f57cb6
YQ
107202018-01-22 Yao Qi <yao.qi@linaro.org>
10721
10722 * ia64-tdep.c (ia64_pseudo_register_read): Call
10723 regcache->cooked_read instead of regcache_cooked_read_unsigned.
10724 * m32c-tdep.c (m32c_cat_read): Likewise.
10725 (m32c_r3r2r1r0_read): Likewise.
10726 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
10727 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
10728
03f50fc8
YQ
107292018-01-22 Yao Qi <yao.qi@linaro.org>
10730
10731 * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
10732 method raw_read instead of regcache_raw_read.
10733 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
10734 * arm-tdep.c (arm_neon_quad_read): Likewise.
10735 * avr-tdep.c (avr_pseudo_register_read): Likewise.
10736 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
10737 * frv-tdep.c (frv_pseudo_register_read): Likewise.
10738 * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
10739 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
10740 (i386_pseudo_register_read_into_value): Likewise.
10741 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
10742 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
10743 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
10744 * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
10745 * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
10746 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
10747 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
10748 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
10749 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
10750
dc711524
YQ
107512018-01-22 Yao Qi <yao.qi@linaro.org>
10752
10753 * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
10754 * configure.tgt: Remove target mt.
10755 * mt-tdep.c: Remove.
10756 * regcache.c (cooked_read_test): Remove the check for mt.
10757
3f5a868b
YQ
107582018-01-22 Yao Qi <yao.qi@linaro.org>
10759
10760 * jit.c (jit_frame_prev_register): Call regcache::cooked_read
10761 instead of gdbarch_pseudo_register_read_value.
10762
de4cb04a
JB
107632018-01-22 Joel Brobecker <brobecker@adacore.com>
10764
10765 * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
10766 language is Ada.
10767
a9e40818
JB
107682018-01-22 Joel Brobecker <brobecker@adacore.com>
10769
10770 * linespec.c (create_sals_line_offset): Remove code that preserved
10771 the symtab_and_line's line number.
10772
e707fc44
AB
107732018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
10774
10775 * varobj.c (varobj_create): Don't set valid_block when creating a
10776 floating varobj.
10777
03d0bf7b
AB
107782018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
10779
10780 * varobj.c (varobj_create): Remove out of date comment.
10781
ae451627
AB
107822018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
10783
10784 PR mi/20395
10785 * ada-exp.y (write_var_from_sym): Pass extra parameter when
10786 updating innermost block.
10787 * parse.c (innermost_block_tracker::update): Take extra type
10788 parameter, and check types match before updating innermost block.
10789 (write_dollar_variable): Update innermost block for registers.
10790 * parser-defs.h (enum innermost_block_tracker_type): New enum.
10791 (innermost_block_tracker::innermost_block_tracker): Initialise
10792 m_types member.
10793 (innermost_block_tracker::reset): Take type parameter.
10794 (innermost_block_tracker::update): Take type parameter, and pass
10795 type through as needed.
10796 (innermost_block_tracker::m_types): New member.
10797 * varobj.c (varobj_create): Pass type when reseting innermost
10798 block.
10799
aee1fcdf
AB
108002018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
10801
10802 * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
10803 * ada-lang.c (resolve_subexp): Likewise.
10804 * breakpoint.c (set_breakpoint_condition) Likewise.
10805 (watch_command_1) Likewise.
10806 * c-exp.y (variable): Likewise.
10807 * d-exp.y (PrimaryExpression): Likewise.
10808 * f-exp.y (variable): Likewise.
10809 * go-exp.y (variable): Likewise.
10810 * m2-exp.y (variable): Likewise.
10811 * objfiles.c (objfile::~objfile): Likewise.
10812 * p-exp.y (variable): Likewise.
10813 * parse.c (innermost_block): Change type.
10814 * parser-defs.h (class innermost_block_tracker): New.
10815 (innermost_block): Change to innermost_block_tracker.
10816 * printcmd.c (display_command): Switch to innermost_block API.
10817 (do_one_display): Likewise.
10818 * rust-exp.y (do_one_display): Likewise.
10819 * symfile.c (clear_symtab_users): Likewise.
10820 * varobj.c (varobj_create): Switch to innermost_block API, replace
10821 use of innermost_block with block stored on varobj object.
10822
396af9a1
AB
108232018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
10824
10825 * expression.h (innermost_block): Remove declaration.
10826 * varobj.c: Add 'parser-defs.h' include.
10827
fcfcc376
TT
108282018-01-19 Tom Tromey <tom@tromey.com>
10829
10830 * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
10831 symbols in the static and global blocks.
10832
5a6c3296
JC
108332018-01-19 James Clarke <jrtc27@jrtc27.com>
10834
10835 * nat/linux-ptrace.c: Remove unnecessary reinclusion of
10836 gdb_ptrace.h, and move including gdb_wait.h ...
10837 * nat/linux-ptrace.h: ... to here.
10838
bc09b0c1
SM
108392018-01-19 Simon Marchi <simon.marchi@ericsson.com>
10840
10841 * inf-ptrace.c (inf_ptrace_detach): Adjust call to
10842 inf_ptrace_detach_success.
10843 (inf_ptrace_detach_success): Add inferior parameter, use it
10844 instead of inferior_ptid, pass it to detach_inferior.
10845 * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
10846 parameter.
10847 * inferior.c (detach_inferior): Add overload that takes an
10848 inferior object.
10849 * inferior.h (detach_inferior): Likewise.
10850 * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
10851 use inferior_ptid, adjust call to inf_ptrace_detach_success.
10852 * linux-thread-db.c (thread_db_detach): Use inf parameter.
10853
6e1e1966
SM
108542018-01-19 Simon Marchi <simon.marchi@ericsson.com>
10855
10856 * target.h (struct target_ops) <to_detach>: Add inferior
10857 parameter.
10858 (target_detach): Likewise.
10859 * target.c (dispose_inferior): Pass inferior down.
10860 (target_detach): Pass inferior down. Assert that it is equal to
10861 the current inferior.
10862 * aix-thread.c (aix_thread_detach): Pass inferior down.
10863 * corefile.c (core_file_command): Pass current_inferior() down.
10864 * corelow.c (core_detach): Add inferior parameter.
10865 * darwin-nat.c (darwin_detach): Likewise.
10866 * gnu-nat.c (gnu_detach): Likewise.
10867 * inf-ptrace.c (inf_ptrace_detach): Likewise.
10868 * infcmd.c (detach_command): Pass current_inferior() down to
10869 target_detach.
10870 * infrun.c (follow_fork_inferior): Pass parent_inf to
10871 target_detach.
10872 (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
10873 target_detach.
10874 * linux-nat.c (linux_nat_detach): Add inferior parameter.
10875 * linux-thread-db.c (thread_db_detach): Likewise.
10876 * nto-procfs.c (procfs_detach): Likewise.
10877 * procfs.c (procfs_detach): Likewise.
10878 * record.c (record_detach): Likewise.
10879 * record.h (struct inferior): Forward-declare.
10880 (record_detach): Add inferior parameter.
10881 * remote-sim.c (gdbsim_detach): Likewise.
10882 * remote.c (remote_detach_1): Likewise.
10883 (remote_detach): Likewise.
10884 (extended_remote_detach): Likewise.
10885 * sol-thread.c (sol_thread_detach): Likewise.
10886 * target-debug.h (target_debug_print_inferior_p): New macro.
10887 * target-delegates.c: Re-generate.
10888 * top.c (kill_or_detach): Pass inferior down to target_detach.
10889 * windows-nat.c (windows_detach): Add inferior parameter.
10890
6bd6f3b6
SM
108912018-01-19 Simon Marchi <simon.marchi@ericsson.com>
10892
10893 * target.h (struct target_ops) <to_detach>: Remove args
10894 parameter.
10895 (target_detach): Likewise.
10896 * target.c (dispose_inferior): Adjust.
10897 (target_detach): Remove args parameter, adjust.
10898 * aix-thread.c (aix_thread_detach): Adjust.
10899 * corefile.c (core_file_command): Adjust.
10900 * corelow.c (core_detach): Adjust.
10901 * darwin-nat.c (darwin_detach): Adjust.
10902 * gnu-nat.c (gnu_detach): Adjust.
10903 * inf-ptrace.c (inf_ptrace_detach): Adjust.
10904 * infcmd.c (detach_command): Adjust
10905 * infrun.c (follow_fork_inferior): Adjust.
10906 (handle_vfork_child_exec_or_exit): Adjust.
10907 * linux-fork.c (linux_fork_detach): Remove args parameter.
10908 * linux-fork.h (linux_fork_detach): Likewise.
10909 * linux-nat.c (linux_nat_detach): Likewise, and adjust.
10910 * linux-thread-db.c (thread_db_detach): Likewise.
10911 * nto-procfs.c (procfs_detach): Likewise.
10912 * procfs.c (procfs_detach): Likewise.
10913 (do_detach): Remove signo parameter.
10914 * record.c (record_detach): Remove args parameter.
10915 * record.h (record_detach): Likewise.
10916 * remote-sim.c (gdbsim_detach): Likewise.
10917 * remote.c (remote_detach_1): Likewise.
10918 (remote_detach): Likewise.
10919 (extended_remote_detach): Likewise.
10920 * sol-thread.c (sol_thread_detach): Likewise.
10921 * target-delegates.c: Re-generate.
10922 * top.c (struct qt_args) <args>: Remove field.
10923 (kill_or_detach): Don't pass args.
10924 (quit_force): Don't set args.
10925 * windows-nat.c (windows_detach): Remove args parameter.
10926
88af8ea8
YQ
109272018-01-19 Yao Qi <yao.qi@linaro.org>
10928
10929 * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
10930 (arm_linux_init_abi): Install it.
10931
dea445b9
YQ
109322018-01-19 Yao Qi <yao.qi@linaro.org>
10933
10934 * osabi.c (gdb_osabi_names): Extend the regexp for
10935 arm-linux-gnueabihf.
10936
4a17f768
YQ
109372018-01-18 Yao Qi <yao.qi@linaro.org>
10938
10939 * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
10940 m_abbrevs.
10941 (abbrev_table::add_abbrev): Update.
10942 (abbrev_table::lookup_abbrev): Update.
10943
d679c21a
YQ
109442018-01-18 Yao Qi <yao.qi@linaro.org>
10945
10946 * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
10947
7d937cad
SDJ
109482018-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
10949
10950 * compile/compile.c (compile_to_object): Convert "triplet_rx"
10951 to "std::string".
10952
9e14690d
TT
109532018-01-17 Tom Tromey <tom@tromey.com>
10954
10955 * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC.
10956
50a82047
TT
109572018-01-17 Tom Tromey <tom@tromey.com>
10958
10959 * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
10960 * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
10961 (create_array_type_with_stride): Update.
10962 * dwarf2read.c (set_die_type): Update.
10963
c89b44cd
TT
109642018-01-17 Tom Tromey <tom@tromey.com>
10965
10966 * dwarf2read.c (delayed_method_info): Remove typedef.
10967 (dwarf2_cu::method_info): Now a std::vector.
10968 (add_to_method_list): Update.
10969 (free_delayed_list): Remove.
10970 (compute_delayed_physnames): Update.
10971 (process_full_comp_unit, process_full_type_unit): Clear the method
10972 list. Remove cleanups.
10973 (psymtab_include_file_name): Add name_holder parameter. Use
10974 unique_xmalloc_ptr.
10975 (dwarf_decode_lines): Update.
10976
fcd3b13d
SM
109772018-01-17 Tom Tromey <tom@tromey.com>
10978 Simon Marchi <simon.marchi@ericsson.com>
10979
10980 * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
10981 (dwarf2_per_objfile::free_cached_comp_units)
10982 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
10983 (init_cutu_and_read_dies_no_follow): Update.
10984 (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
10985 (dwarf2_cu::~dwarf2_cu): New.
10986 (free_heap_comp_unit, free_stack_comp_unit): Remove.
10987 (age_cached_comp_units, free_one_cached_comp_unit): Update.
10988
685af9cd
TT
109892018-01-17 Tom Tromey <tom@tromey.com>
10990 Simon Marchi <simon.marchi@ericsson.com>
10991
10992 * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
10993 (struct die_reader_specs) <abbrev_table>: New member.
10994 (struct abbrev_table): Add constructor.
10995 <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
10996 <abbrev_obstack>: Now an auto_obstack.
10997 (abbrev_table_up): New typedef.
10998 (init_cu_die_reader): Add abbrev_table parameter.
10999 (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
11000 Add result_dwo_abbrev_table.
11001 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
11002 (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
11003 Update.
11004 (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
11005 parameter.
11006 (skip_children): Update.
11007 (abbrev_table::alloc_abbrev): Rename from
11008 abbrev_table_alloc_abbrev.
11009 (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
11010 (abbrev_table::lookup_abbrev): Rename from
11011 abbrev_table_lookup_abbrev.
11012 (abbrev_table_read_table): Return abbrev_table_up.
11013 (abbrev_table_free, abbrev_table_free_cleanup)
11014 (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
11015 (load_partial_dies): Update.
11016
5e2db402
TT
110172018-01-17 Tom Tromey <tom@tromey.com>
11018
11019 * dwarf2read.c (dwarf2_compute_name): Update comment.
11020 (read_func_scope, read_variable): Update.
11021 (new_symbol): Remove.
11022 (new_symbol_full): Rename to new_symbol.
11023
ee7f689e 110242018-01-17 Mike Gulick <mgulick@mathworks.com>
41667530
MG
11025
11026 PR gdb/16577
11027 * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
11028 a warning instead of throwing an error, set section size to 0 and return
11029 NULL.
11030 * gdb_bfd.h (gdb_bfd_map_section): Update description.
11031
4d9b86e1
SM
110322018-01-17 Simon Marchi <simon.marchi@ericsson.com>
11033
11034 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
11035 std::string.
11036 (linux_ptrace_attach_fail_reason_string): Likewise.
11037 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
11038 Likewise.
11039 (linux_ptrace_attach_fail_reason_string): Likewise.
11040 * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
11041
a7b2d0fb
SM
110422018-01-17 Simon Marchi <simon.marchi@ericsson.com>
11043
11044 * linux-nat.c (linux_nat_attach): Remove xstrdup.
11045
f517c180
EA
110462018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
11047
11048 PR gdb/21559
11049 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
11050 checking for fs_base/gs_base fields in struct user_regs_struct.
11051 * configure: Regenerate.
11052
7045b1ca
YQ
110532018-01-17 Yao Qi <yao.qi@linaro.org>
11054
11055 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
11056 function.
11057 (aarch64_linux_init_abi): Install it to gdbarch hook
11058 gcc_target_options.
11059
db422fb2
PA
110602018-01-15 Pedro Alves <palves@redhat.com>
11061
11062 * common/signals-state-save-restore.c
11063 (save_original_signals_state): Fix typos.
11064
ba643918
SDJ
110652017-01-12 Tom Tromey <tom@tromey.com>
11066 Sergio Durigan Junior <sergiodj@redhat.com>
11067
11068 * Makefile.in (install-only): Install gdb-add-index.
11069
906b4aac
JB
110702018-01-12 John Baldwin <jhb@FreeBSD.org>
11071
11072 * fbsd-tdep.c (KVE_PROTECTION): Correct value.
11073
bdf2a94a
AA
110742018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11075
11076 * infrun.c (keep_going_pass_signal): Clear step-over info when
11077 insert_breakpoints fails.
11078
71d378ae
PA
110792018-01-11 Pedro Alves <palves@redhat.com>
11080
11081 PR gdb/22583
11082 * infrun.c (resume): Rename to ...
11083 (resume_1): ... this.
11084 (resume): Reimplement as wrapper around resume_1.
11085
3cada740
PA
110862018-01-11 Pedro Alves <palves@redhat.com>
11087
11088 PR remote/22597
11089 * remote.c (remote_parse_stop_reply): Default to the last-set
11090 general thread instead of to 'magic_null_ptid'.
11091
618daa93
PA
110922018-01-10 Pedro Alves <palves@redhat.com>
11093
11094 * language.h (language_get_symbol_name_matcher): Rename ...
11095 (get_symbol_name_matcher): ... this.
11096 * language.c (language_get_symbol_name_matcher): Ditto.
11097 * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
11098 callers adjusted.
11099
c63d3e8d
PA
111002018-01-10 Pedro Alves <palves@redhat.com>
11101
11102 PR gdb/22670
11103 * dwarf2read.c
11104 (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
11105 Adjust to use language_get_symbol_name_matcher instead of
11106 language_defn::la_get_symbol_name_matcher.
11107 * language.c (language_get_symbol_name_matcher): If in Ada mode
11108 and the lookup name is a verbatim match, return Ada's matcher.
11109 * language.h (language_get_symbol_name_matcher): Adjust comment.
11110 (ada_lookup_name_info::verbatim_p):: New method.
11111
d4c2a405
PA
111122018-01-10 Pedro Alves <palves@redhat.com>
11113
11114 PR gdb/22670
11115 * ada-lang.c (ada_collect_symbol_completion_matches): If the
11116 minsym's language is language_auto or language_cplus, pass down
11117 language_ada instead.
11118 * symtab.c (compare_symbol_name): Don't frob symbol language here.
11119
8825213e
PA
111202018-01-10 Pedro Alves <palves@redhat.com>
11121
11122 PR gdb/22670
11123 * minsyms.c (linkage_name_str): New function.
11124 (iterate_over_minimal_symbols): Use it.
11125
2d97a5d9
JB
111262018-01-09 John Baldwin <jhb@FreeBSD.org>
11127
11128 * NEWS: Document that 'info proc' now works on FreeBSD.
11129
92fce24d
JB
111302018-01-09 John Baldwin <jhb@FreeBSD.org>
11131
11132 * configure.ac: Check for kinfo_getfile in libutil.
11133 * configure: Regenerate.
11134 * config.in: Regenerate.
11135 * fbsd-nat.c: Include "fbsd-tdep.h".
11136 (fbsd_fetch_cmdline): New.
11137 (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
11138 rather than calling error.
11139 (fbsd_info_proc): New.
11140 (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
11141 (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
11142 (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
11143
262f62f5
JB
111442018-01-09 John Baldwin <jhb@FreeBSD.org>
11145
11146 * fbsd-nat.c (struct free_deleter): Remove.
11147 (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
11148
b999e203
JB
111492018-01-09 John Baldwin <jhb@FreeBSD.org>
11150
11151 * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
11152 NULL for an empty pathname.
11153
d2176225
JB
111542018-01-09 John Baldwin <jhb@FreeBSD.org>
11155
11156 * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
11157 (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
11158 (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
11159 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
11160 (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
11161 (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
11162 (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
11163 (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
11164 (kinfo_proc_layout_32, kinfo_proc_layout_i386)
11165 (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
11166 (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
11167 (fbsd_core_fetch_timeval, fbsd_print_sigset)
11168 (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
11169 (fbsd_init_abi): Install gdbarch "core_info_proc" method.
11170 * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
11171
9c4ac400
ST
111722018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
11173
11174 * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
11175 (gnu_xfer_auxv): New function.
11176 (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
11177 TARGET_OBJECT_AUXV.
11178
1e5ded6c
YQ
111792018-01-08 Yao Qi <yao.qi@linaro.org>
11180 Simon Marchi <simon.marchi@ericsson.com>
11181
11182 * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
11183 common/selftest.c.
11184 (COMMON_OBS): Remove selftest.o.
11185 * configure.ac: Append selftest-arch.c and common/selftest.c to
11186 CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS.
11187 * configure: Re-generated.
11188 * maint.c (maintenance_selftest): Wrap selftests::run_tests with
11189 GDB_SELF_TEST.
11190 (maintenance_info_selftests): Likewise.
11191
04bafb1e
XR
111922018-01-08 Xavier Roirand <roirand@adacore.com>
11193
11194 * ada-valprint.c (val_print_packed_array_elements): Use
11195 proper number of elements when printing an array indexed
11196 by an enumeration type.
11197
518817b3
SM
111982018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
11199
11200 * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
11201 (dw2_get_file_names_reader): Adjust.
11202 (lookup_dwo_signatured_type): Adjust.
11203 (lookup_dwp_signatured_type): Adjust.
11204 (lookup_signatured_type): Adjust.
11205 (create_type_unit_group): Adjust.
11206 (get_type_unit_group): Adjust.
11207 (process_psymtab_comp_unit_reader): Adjust.
11208 (build_type_psymtabs_reader): Adjust.
11209 (scan_partial_symbols): Adjust.
11210 (add_partial_symbol): Adjust.
11211 (add_partial_subprogram): Adjust.
11212 (peek_die_abbrev): Adjust.
11213 (fixup_go_packaging): Adjust.
11214 (process_imported_unit_die): Adjust.
11215 (dwarf2_compute_name): Adjust.
11216 (dwarf2_physname): Adjust.
11217 (read_import_statement): Adjust.
11218 (handle_DW_AT_stmt_list): Adjust.
11219 (read_file_scope): Adjust.
11220 (read_func_scope): Adjust.
11221 (read_lexical_block_scope): Adjust.
11222 (read_call_site_scope): Adjust.
11223 (read_variable): Adjust.
11224 (dwarf2_rnglists_process): Adjust.
11225 (dwarf2_ranges_process): Adjust.
11226 (dwarf2_ranges_read): Adjust.
11227 (dwarf2_get_pc_bounds): Adjust.
11228 (dwarf2_record_block_ranges): Adjust.
11229 (dwarf2_add_field): Adjust.
11230 (dwarf2_add_member_fn): Adjust.
11231 (read_structure_type): Adjust.
11232 (process_structure_scope): Adjust.
11233 (read_enumeration_type): Adjust.
11234 (read_array_type): Adjust.
11235 (mark_common_block_symbol_computed): Adjust.
11236 (read_common_block): Adjust.
11237 (read_namespace_type): Adjust.
11238 (read_namespace): Adjust.
11239 (read_module_type): Adjust.
11240 (read_tag_pointer_type): Adjust.
11241 (read_tag_ptr_to_member_type): Adjust.
11242 (read_tag_string_type): Adjust.
11243 (read_subroutine_type): Adjust.
11244 (read_typedef): Adjust.
11245 (read_base_type): Adjust.
11246 (attr_to_dynamic_prop): Adjust.
11247 (read_subrange_type): Adjust.
11248 (read_unspecified_type): Adjust.
11249 (dwarf2_read_abbrevs): Adjust.
11250 (load_partial_dies): Adjust.
11251 (read_partial_die): Adjust.
11252 (find_partial_die): Adjust.
11253 (guess_partial_die_structure_name): Adjust.
11254 (fixup_partial_die): Adjust.
11255 (read_attribute_value): Adjust.
11256 (read_addr_index): Adjust.
11257 (read_addr_index_from_leb128): Adjust.
11258 (read_str_index): Adjust.
11259 (dwarf2_string_attr): Adjust.
11260 (get_debug_line_section): Adjust.
11261 (dwarf_decode_line_header): Adjust.
11262 (lnp_state_machine::check_line_address): Adjust.
11263 (dwarf_decode_lines_1): Adjust.
11264 (dwarf_decode_lines): Adjust.
11265 (dwarf2_start_symtab): Adjust.
11266 (var_decode_location): Adjust.
11267 (new_symbol_full): Adjust.
11268 (dwarf2_const_value_data): Adjust.
11269 (dwarf2_const_value_attr): Adjust.
11270 (dwarf2_const_value): Adjust.
11271 (die_type): Adjust.
11272 (die_containing_type): Adjust.
11273 (build_error_marker_type): Adjust.
11274 (lookup_die_type): Adjust.
11275 (guess_full_die_structure_name): Adjust.
11276 (anonymous_struct_prefix): Adjust.
11277 (determine_prefix): Adjust.
11278 (dwarf2_name): Adjust.
11279 (follow_die_ref_or_sig): Adjust.
11280 (follow_die_offset): Adjust.
11281 (follow_die_ref): Adjust.
11282 (follow_die_sig_1): Adjust.
11283 (follow_die_sig): Adjust.
11284 (get_signatured_type): Adjust.
11285 (get_DW_AT_signature_type): Adjust.
11286 (decode_locdesc): Adjust.
11287 (dwarf_decode_macros): Adjust.
11288 (cu_debug_loc_section): Adjust.
11289 (fill_in_loclist_baton): Adjust.
11290 (dwarf2_symbol_mark_computed): Adjust.
11291 (init_one_comp_unit): Don't assign
11292 dwarf2_cu::dwarf2_per_objfile.
11293 (set_die_type): Adjust.
11294
ed2dc618
SM
112952018-01-07 Simon Marchi <simon.marchi@ericsson.com>
11296
11297 * dwarf2read.c (struct mapped_debug_names): Add constructor.
11298 <dwarf2_per_objfile>: New field.
11299 (dwarf2_per_objfile): Remove global.
11300 (get_dwarf2_per_objfile): New function.
11301 (set_dwarf2_per_objfile): New function.
11302 (dwarf2_build_psymtabs_hard): Change objfile parameter to
11303 dwarf2_per_objfile.
11304 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
11305 (read_abbrev_offset): Likewise.
11306 (read_indirect_string): Likewise.
11307 (read_indirect_line_string): Likewise.
11308 (read_indirect_string_at_offset): Likewise.
11309 (read_indirect_string_from_dwz): Likewise.
11310 (dwarf2_find_containing_comp_unit): Change objfile parameter to
11311 dwarf2_per_objfile.
11312 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
11313 (create_all_comp_units): Change objfile parameter to
11314 dwarf2_per_objfile.
11315 (create_all_type_units): Likewise.
11316 (process_queue): Add dwarf2_per_objfile parameter.
11317 (read_and_check_comp_unit_head): Likewise.
11318 (lookup_dwo_unit_in_dwp): Likewise.
11319 (get_dwp_file): Likewise.
11320 (process_cu_includes): Likewise.
11321 (struct free_dwo_file_cleanup_data): New struct.
11322 (dwarf2_has_info): Use get_dwarf2_per_objfile and
11323 set_dwarf2_per_objfile.
11324 (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
11325 (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
11326 context, adjust calls.
11327 (dw2_instantiate_symtab): Likewise.
11328 (dw2_get_cutu): Add dwarf2_per_objfile parameter.
11329 (dw2_get_cu): Likewise.
11330 (create_cu_from_index_list): Change objfile parameter to
11331 dwarf2_per_objfile.
11332 (create_cus_from_index_list): Get dwarf2_per_objfile from
11333 context, adjust calls.
11334 (create_cus_from_index): Likewise.
11335 (create_signatured_type_table_from_index): Change objfile
11336 parameter to dwarf2_per_objfile.
11337 (create_signatured_type_table_from_debug_names): Change objfile
11338 parameter to dwarf2_per_objfile.
11339 (create_addrmap_from_index): Likewise.
11340 (create_addrmap_from_aranges): Likewise.
11341 (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
11342 (dw2_setup): Remove.
11343 (dw2_get_file_names_reader): Get dwarf2_per_objfile from
11344 context.
11345 (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
11346 get_dwarf2_per_objfile.
11347 (dw2_forget_cached_source_info): Likewise.
11348 (dw2_map_symtabs_matching_filename): Likewise.
11349 (struct dw2_symtab_iterator) <index>: Remove.
11350 <dwarf2_per_objfile>: New field.
11351 (dw2_symtab_iter_init): Replace index parameter with
11352 dwarf2_per_objfile.
11353 (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
11354 (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
11355 (dw2_print_stats): Likewise.
11356 (dw2_dump): Likewise.
11357 (dw2_expand_symtabs_for_function): Likewise.
11358 (dw2_expand_all_symtabs): Likewise.
11359 (dw2_expand_symtabs_with_fullname): Likewise.
11360 (dw2_expand_marked_cus): Replace index and objfile parameters
11361 with dwarf2_per_objfile.
11362 (dw_expand_symtabs_matching_file_matcher): Add
11363 dwarf2_per_objfile parameter and adjust calls.
11364 (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
11365 adjust calls.
11366 (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
11367 (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
11368 adjust calls.
11369 (create_cus_from_debug_names_list): Replace objfile parameter
11370 with dwarf2_per_objfile and adjust calls.
11371 (create_cus_from_debug_names): Likewise.
11372 (dwarf2_read_debug_names): Likewise.
11373 (mapped_debug_names::namei_to_name): Adjust call.
11374 (dw2_debug_names_iterator::next): Likewise.
11375 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
11376 (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
11377 (dw2_debug_names_dump): Likewise.
11378 (dw2_debug_names_expand_symtabs_for_function): Likewise.
11379 (dw2_debug_names_expand_symtabs_matching): Likewise.
11380 (dwarf2_initialize_objfile): Likewise.
11381 (dwarf2_build_psymtabs): Likewise.
11382 (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
11383 this_cu.
11384 (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
11385 (read_and_check_comp_unit_head): Likewise.
11386 (read_abbrev_offset): Likewise.
11387 (create_debug_type_hash_table): Likewise.
11388 (create_debug_types_hash_table): Likewise.
11389 (create_all_type_units): Replace objfile parameter with
11390 dwarf2_per_objfile.
11391 (add_type_unit): Add dwarf2_per_objfile parameter.
11392 (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
11393 with dwarf2_per_objfile.
11394 (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
11395 (lookup_dwp_signatured_type): Likewise.
11396 (lookup_signatured_type): Likewise.
11397 (read_cutu_die_from_dwo): Likewise.
11398 (init_tu_and_read_dwo_dies): Likewise.
11399 (init_cutu_and_read_dies): Likewise.
11400 (init_cutu_and_read_dies_no_follow): Likewise.
11401 (allocate_type_unit_groups_table): Add objfile parameter.
11402 (create_type_unit_group): Use dwarf2_per_objfile from cu.
11403 (get_type_unit_group): Likewise.
11404 (process_psymtab_comp_unit): Update call.
11405 (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
11406 (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
11407 (print_tu_stats): Likewise.
11408 (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
11409 in void* parameter.
11410 (build_type_psymtabs): Change objfile parameter to
11411 dwarf2_per_objfile.
11412 (process_skeletonless_type_unit): Use dwarf2_per_objfile
11413 passed in void* parameter.
11414 (process_skeletonless_type_units): Change objfile parameter to
11415 dwarf2_per_objfile.
11416 (set_partial_user): Likewise.
11417 (dwarf2_build_psymtabs_hard): Likewise.
11418 (read_comp_units_from_section): Likewise.
11419 (create_all_comp_units): Likewise.
11420 (scan_partial_symbols): Update calls.
11421 (add_partial_symbol): Likewise.
11422 (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
11423 (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
11424 (process_queue): Add dwarf2_per_objfile parameter.
11425 (get_compunit_symtab): Use dwarf2_per_objfile from cu.
11426 (compute_compunit_symtab_includes): Likewise.
11427 (process_cu_includes): Add dwarf2_per_objfile parameter.
11428 (process_full_comp_unit): Use dwarf2_per_objfile from cu.
11429 (process_full_type_unit): Likewise.
11430 (process_imported_unit_die): Update call.
11431 (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
11432 (read_file_scope): Likewise.
11433 (allocate_dwo_file_hash_table): Add objfile parameter.
11434 (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
11435 (create_cus_hash_table): Likewise.
11436 (create_dwp_hash_table): Likewise.
11437 (create_dwo_unit_in_dwp_v1): Likewise.
11438 (create_dwp_v2_section): Likewise.
11439 (create_dwo_unit_in_dwp_v2): Likewise.
11440 (lookup_dwo_unit_in_dwp): Likewise.
11441 (try_open_dwop_file): Likewise.
11442 (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
11443 (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
11444 cleanup to include a reference to dwarf2_per_objfile.
11445 (open_dwp_file): Add dwarf2_per_objfile parameter.
11446 (open_and_init_dwp_file): Likewise.
11447 (get_dwp_file): Likewise.
11448 (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
11449 (queue_and_load_all_dwo_tus): Update call.
11450 (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
11451 data.
11452 (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
11453 (dwarf2_ranges_process): Likewise.
11454 (dwarf2_get_pc_bounds): Likewise.
11455 (mark_common_block_symbol_computed): Likewise.
11456 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
11457 (dwarf2_read_abbrevs): Update call.
11458 (read_partial_die): Use dwarf2_per_objfile from cu.
11459 (find_partial_die): Likewise.
11460 (fixup_partial_die): Likewise.
11461 (read_attribute_value): Likewise.
11462 (read_indirect_string_at_offset_from): Add objfile parameter.
11463 (read_indirect_string_at_offset): Add dwarf2_per_objfile
11464 parameter.
11465 (read_indirect_string_from_dwz): Add objfile parameter.
11466 (read_indirect_string): Add objfile parameter.
11467 (read_addr_index_1): Add dwarf2_per_objfile parameter.
11468 (read_addr_index): Use dwarf2_per_objfile from cu.
11469 (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
11470 call dw2_setup.
11471 (read_str_index): Use dwarf2_per_objfile from cu.
11472 (get_debug_line_section): Likewise.
11473 (read_formatted_entries): Add dwarf2_per_objfile parameter.
11474 (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
11475 (new_symbol_full): Use dwarf2_per_objfile from cu.
11476 (build_error_marker_type): Likewise.
11477 (lookup_die_type): Likewise.
11478 (determine_prefix): Likewise.
11479 (follow_die_offset): Likewise.
11480 (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
11481 (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
11482 (dwarf2_fetch_die_type_sect_off): Likewise.
11483 (dwarf2_get_die_type): Likewise.
11484 (follow_die_sig_1): Use dwarf2_per_objfile from cu.
11485 (get_signatured_type): Likewise.
11486 (get_DW_AT_signature_type): Likewise.
11487 (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
11488 (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
11489 (cu_debug_loc_section): Likewise.
11490 (fill_in_loclist_baton): Likewise.
11491 (dwarf2_symbol_mark_computed): Likewise.
11492 (dwarf2_find_containing_comp_unit): Change objfile parameter to
11493 dwarf2_per_objfile.
11494 (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
11495 parameter.
11496 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
11497 (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
11498 (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
11499 (set_die_type): Use dwarf2_free_objfile from cu.
11500 (get_die_type_at_offset): Likewise.
11501 (dwarf2_per_objfile_free): Don't assign global variable.
11502 (debug_names) <constructor>: Add dwarf2_per_objfile
11503 parameter, update m_debugstrlookup construction.
11504 (debug_names::debug_str_lookup): Add dwarf2_per_objfile
11505 parameter.
11506 <m_dwarf2_per_objfile>: New field.
11507 <lookup>: Use m_dwarf2_per_objfile.
11508 (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
11509 (psyms_seen_size): Likewise.
11510 (write_gdbindex): Replace objfile parameter with
11511 dwarf2_per_objfile.
11512 (write_debug_names): Likewise.
11513 (write_psymtabs_to_index): Likewise.
11514 (save_gdb_index_command): Use get_dwarf2_per_objfile, update
11515 calls.
11516
e3b94546
SM
115172018-01-07 Simon Marchi <simon.marchi@ericsson.com>
11518
11519 * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
11520 <dwarf2_per_objfile>: New field.
11521 (struct dwarf2_per_cu_data) <objfile>: Remove.
11522 <dwarf2_per_objfile>: New field.
11523 (create_cu_from_index_list): Assign dwarf2_per_objfile instead
11524 of objfile.
11525 (create_signatured_type_table_from_index): Likewise.
11526 (create_debug_type_hash_table): Likewise.
11527 (fill_in_sig_entry_from_dwo_entry): Likewise.
11528 (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
11529 (create_type_unit_group): Assign dwarf2_per_objfile instead of
11530 objfile.
11531 (create_partial_symtab): Access objfile through
11532 dwarf2_per_objfile.
11533 (process_psymtab_comp_unit_reader): Likewise.
11534 (read_comp_units_from_section): Likewise.
11535 (scan_partial_symbols): Likewise.
11536 (add_partial_symbol): Likewise.
11537 (add_partial_subprogram): Likewise.
11538 (peek_die_abbrev): Likewise.
11539 (fixup_go_packaging): Likewise.
11540 (process_full_comp_unit): Likewise.
11541 (process_full_type_unit): Likewise.
11542 (process_imported_unit_die): Likewise.
11543 (dwarf2_compute_name): Likewise.
11544 (dwarf2_physname): Likewise.
11545 (read_import_statement): Likewise.
11546 (create_cus_hash_table): Assign dwarf2_physname instead of
11547 objfile.
11548 (read_func_scope): Access objfile through dwarf2_per_objfile.
11549 (read_lexical_block_scope): Likewise.
11550 (read_call_site_scope): Likewise.
11551 (read_variable): Likewise.
11552 (dwarf2_rnglists_process): Likewise.
11553 (dwarf2_ranges_process): Likewise.
11554 (dwarf2_ranges_read): Likewise.
11555 (dwarf2_record_block_ranges): Likewise.
11556 (dwarf2_add_field): Likewise.
11557 (dwarf2_add_member_fn): Likewise.
11558 (read_structure_type): Likewise.
11559 (process_structure_scope): Likewise.
11560 (read_enumeration_type): Likewise.
11561 (read_array_type): Likewise.
11562 (read_common_block): Likewise.
11563 (read_namespace_type): Likewise.
11564 (read_namespace): Likewise.
11565 (read_module_type): Likewise.
11566 (read_tag_pointer_type): Likewise.
11567 (read_tag_ptr_to_member_type): Likewise.
11568 (read_tag_string_type): Likewise.
11569 (read_subroutine_type): Likewise.
11570 (read_typedef): Likewise.
11571 (read_base_type): Likewise.
11572 (attr_to_dynamic_prop): Likewise.
11573 (read_subrange_type): Likewise.
11574 (read_unspecified_type): Likewise.
11575 (load_partial_dies): Likewise.
11576 (read_partial_die): Likewise.
11577 (find_partial_die): Likewise.
11578 (guess_partial_die_structure_name): Likewise.
11579 (fixup_partial_die): Likewise.
11580 (read_attribute_value): Likewise.
11581 (read_addr_index_from_leb128): Likewise.
11582 (dwarf2_read_addr_index): Likewise.
11583 (dwarf2_string_attr): Likewise.
11584 (lnp_state_machine::check_line_address): Likewise.
11585 (dwarf_decode_lines_1): Likewise.
11586 (dwarf_decode_lines): Likewise.
11587 (dwarf2_start_symtab): Likewise.
11588 (var_decode_location): Likewise.
11589 (new_symbol_full): Likewise.
11590 (dwarf2_const_value_data): Likewise.
11591 (dwarf2_const_value_attr): Likewise.
11592 (dwarf2_const_value): Likewise.
11593 (die_type): Likewise.
11594 (die_containing_type): Likewise.
11595 (lookup_die_type): Likewise.
11596 (guess_full_die_structure_name): Likewise.
11597 (anonymous_struct_prefix): Likewise.
11598 (dwarf2_name): Likewise.
11599 (follow_die_ref_or_sig): Likewise.
11600 (follow_die_offset): Likewise.
11601 (follow_die_ref): Likewise.
11602 (dwarf2_fetch_die_loc_sect_off): Likewise.
11603 (dwarf2_fetch_constant_bytes): Likewise.
11604 (dwarf2_fetch_die_type_sect_off): Likewise.
11605 (dwarf2_get_die_type): Likewise.
11606 (follow_die_sig): Likewise.
11607 (decode_locdesc): Likewise.
11608 (dwarf2_per_cu_objfile): Likewise.
11609 (dwarf2_per_cu_text_offset): Likewise.
11610 (init_one_comp_unit): Assign dwarf2_per_objfile instead of
11611 objfile.
11612 (set_die_type): Access objfile through
11613 dwarf2_per_objfile.
11614
b01ba14d
SM
116152018-01-07 Simon Marchi <simon.marchi@ericsson.com>
11616
11617 * valprint.c (converted_character_d): Remove typedef.
11618 (DEF_VEC_O (converted_character_d)): Remove.
11619 (count_next_character): Use std::vector.
11620 (print_converted_chars_to_obstack): Likewise.
11621 (generic_printstr): Likewise.
11622
4d0fdd9b
SM
116232018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
11624
11625 * xml-support.h (struct gdb_xml_value): Add constructor.
11626 <value>: Change type to unique_xmalloc_ptr.
11627 (gdb_xml_value_s): Remove typedef.
11628 (DEF_VEC_O (gdb_xml_value_s)): Remove.
11629 (gdb_xml_element_start_handler): Change parameter type to
11630 std::vector.
11631 (xml_find_attribute): Likewise.
11632 * xml-support.c (xml_find_attribute): Change parameter type to
11633 std::vector and adjust.
11634 (gdb_xml_values_cleanup): Remove.
11635 (gdb_xml_parser::start_element): Adjust to std::vector.
11636 (xinclude_start_include): Change paraeter type to std::vector
11637 and adjust.
11638 * btrace.c (check_xml_btrace_version): Likewise.
11639 (parse_xml_btrace_block): Likewise.
11640 (parse_xml_btrace_pt_config_cpu): Likewise.
11641 (parse_xml_btrace_pt): Likewise.
11642 (parse_xml_btrace_conf_bts): Likewise.
11643 (parse_xml_btrace_conf_pt): Likewise.
11644 * memory-map.c (memory_map_start_memory): Likewise.
11645 (memory_map_start_property): Likewise.
11646 * osdata.c (osdata_start_osdata): Likewise.
11647 (osdata_start_item): Likewise.
11648 (osdata_start_column): Likewise.
11649 * remote.c (start_thread): Likewise.
11650 * solib-aix.c (library_list_start_library): Likewise.
11651 (library_list_start_list): Likewise.
11652 * solib-svr4.c (library_list_start_library): Likewise.
11653 (svr4_library_list_start_list): Likewise.
11654 * solib-target.c (library_list_start_segment): Likewise.
11655 (library_list_start_section): Likewise.
11656 (library_list_start_library): Likewise.
11657 (library_list_start_list): Likewise.
11658 * tracepoint.c (traceframe_info_start_memory): Likewise.
11659 (traceframe_info_start_tvar): Likewise.
11660 * xml-syscall.c (syscall_start_syscall): Likewise.
11661 * xml-tdesc.c (tdesc_start_target): Likewise.
11662 (tdesc_start_feature): Likewise.
11663 (tdesc_start_reg): Likewise.
11664 (tdesc_start_union): Likewise.
11665 (tdesc_start_struct): Likewise.
11666 (tdesc_start_flags): Likewise.
11667 (tdesc_start_enum): Likewise.
11668 (tdesc_start_field): Likewise.
11669 (tdesc_start_enum_value): Likewise.
11670 (tdesc_start_vector): Likewise.
11671
f979c73f
SM
116722018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
11673
11674 * extension.h (struct xmethod_worker) <clone>: Remove.
11675 * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
11676 Remove.
11677 (python_xmethod_worker::clone): Remove.
11678 * valops.c (find_overload_match): Use std::move instead of
11679 clone.
11680
ba18742c
SM
116812018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
11682
11683 * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
11684 (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
11685 <free_xmethod_worker_data>: Remove.
11686 <get_matching_xmethod_workers>: Chance VEC to std::vector.
11687 <get_xmethod_arg_types>: Remove.
11688 <get_xmethod_result_type>: Remove.
11689 <invoke_xmethod>: Remove.
11690 * extension.c (new_xmethod_worker): Remove.
11691 (clone_xmethod_worker): Remove.
11692 (get_matching_xmethod_workers): Return void, pass std::vector by
11693 pointer.
11694 (get_xmethod_arg_types): Rename to...
11695 (xmethod_worker::get_arg_types): ... this, and adjust.
11696 (get_xmethod_result_type): Rename to...
11697 (xmethod_worker::get_result_type): ... this, and adjust.
11698 (invoke_xmethod): Remove.
11699 (free_xmethod_worker): Remove.
11700 (free_xmethod_worker_vec): Remove.
11701 * extension.h (enum ext_lang_rc): Move here from
11702 extension-priv.h.
11703 (struct xmethod_worker): Add constructor and destructor.
11704 <data>: Remove.
11705 <value>: Remove.
11706 <invoke, clone, do_get_result_type, do_get_arg_types>: New
11707 virtual pure methods.
11708 <get_arg_types, get_result_type>: New methods.
11709 (xmethod_worker_ptr): Remove typedef.
11710 (DEF_VEC_P (xmethod_worker_ptr)): Remove.
11711 (xmethod_worker_vec): Remove typedef.
11712 (xmethod_worker_up): New typedef.
11713 (invoke_xmethod): Remove.
11714 (clone_xmethod_worker): Remove.
11715 (free_xmethod_worker): Remove.
11716 (free_xmethod_worker_vec): Remove.
11717 (get_xmethod_arg_types): Remove.
11718 (get_xmethod_result_type): Remove.
11719 * valops.c (find_method_list): Use std::vector, don't use
11720 intermediate vector.
11721 (value_find_oload_method_list): Use std::vector.
11722 (find_overload_match): Use std::vector.
11723 (find_oload_champ): Use std::vector.
11724 * value.c (value_free): Use operator delete.
11725 (value_of_xmethod): Rename to...
11726 (value_from_xmethod): ... this. Don't assign
11727 xmethod_worker::value, take rvalue-reference.
11728 (result_type_of_xmethod): Adjust.
11729 (call_xmethod): Adjust.
11730 * value.h: Include extension.h.
11731 (struct xmethod_worker): Don't forward-declare.
11732 (value_of_xmethod): Rename to...
11733 (value_from_xmethod): ... this, take rvalue-reference.
11734 * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
11735 (struct python_xmethod_worker): ... this, add constructor and
11736 destructor.
11737 <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
11738 (gdbpy_free_xmethod_worker_data): Rename to...
11739 (python_xmethod_worker::~python_xmethod_worker): ... this and
11740 adjust.
11741 (gdbpy_clone_xmethod_worker_data): Rename to...
11742 (python_xmethod_worker::clone): ... this and adjust.
11743 (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
11744 temporary vector.
11745 (gdbpy_get_xmethod_arg_types): Rename to...
11746 (python_xmethod_worker::do_get_arg_types): ... this and adjust.
11747 (gdbpy_get_xmethod_result_type): Rename to...
11748 (python_xmethod_worker::do_get_result_type): ... this and
11749 adjust.
11750 (gdbpy_invoke_xmethod): Rename to...
11751 (python_xmethod_worker::invoke): ... this and adjust.
11752 (new_python_xmethod_worker): Rename to...
11753 (python_xmethod_worker::python_xmethod_worker): ... this and
11754 adjust.
11755 * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
11756 Remove.
11757 (gdbpy_free_xmethod_worker_data): Remove.
11758 (gdbpy_get_matching_xmethod_workers): Use std::vector.
11759 (gdbpy_get_xmethod_arg_types): Remove.
11760 (gdbpy_get_xmethod_result_type): Remove.
11761 (gdbpy_invoke_xmethod): Remove.
11762 * python/python.c (python_extension_ops): Remove obsolete
11763 callbacks.
11764
e379cee6
PA
117652018-01-05 Pedro Alves <palves@redhat.com>
11766
11767 PR gdb/18653
11768 * common/signals-state-save-restore.c
11769 (save_original_signals_state): New parameter 'quiet'. Warn if we
11770 find a custom handler preinstalled, instead of internal erroring.
11771 But only warn if !quiet.
11772 * common/signals-state-save-restore.h
11773 (save_original_signals_state): New parameter 'quiet'.
11774 * main.c (captured_main_1): Move save_original_signals_state call
11775 after option handling, and pass QUIET.
11776
a655456c
PA
117772018-01-05 Pedro Alves <palves@redhat.com>
11778
11779 * spu-tdep.c (spu_catch_start): Pass
11780 symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
11781
de63c46b
PA
117822018-01-05 Pedro Alves <palves@redhat.com>
11783
11784 PR gdb/22670
11785 * ada-lang.c (literal_symbol_name_matcher): New function.
11786 (ada_get_symbol_name_matcher): Use it for
11787 symbol_name_match_type::SEARCH_NAME.
11788 * block.c (block_lookup_symbol): New parameter 'match_type'. Pass
11789 it down instead of assuming symbol_name_match_type::FULL.
11790 * block.h (block_lookup_symbol): New parameter 'match_type'.
11791 * c-valprint.c (print_unpacked_pointer): Use
11792 lookup_symbol_search_name instead of lookup_symbol.
11793 * compile/compile-object-load.c (get_out_value_type): Pass down
11794 symbol_name_match_type::SEARCH_NAME.
11795 * cp-namespace.c (cp_basic_lookup_symbol): Pass down
11796 symbol_name_match_type::FULL.
11797 * cp-support.c (cp_get_symbol_name_matcher): Handle
11798 symbol_name_match_type::SEARCH_NAME.
11799 * infrun.c (insert_exception_resume_breakpoint): Use
11800 lookup_symbol_search_name.
11801 * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
11802 * psymtab.c (maintenance_check_psymtabs): Use
11803 symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
11804 * stack.c (print_frame_args): Use lookup_symbol_search_name and
11805 SYMBOL_SEARCH_NAME.
11806 * symtab.c (lookup_local_symbol): Don't demangle the lookup name
11807 if symbol_name_match_type::SEARCH_NAME.
11808 (lookup_symbol_in_language): Pass down
11809 symbol_name_match_type::FULL.
11810 (lookup_symbol_search_name): New.
11811 (lookup_language_this): Pass down
11812 symbol_name_match_type::SEARCH_NAME.
11813 (lookup_symbol_aux, lookup_local_symbol): New parameter
11814 'match_type'. Pass it down.
11815 * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
11816 (lookup_symbol_search_name): New declaration.
11817 (lookup_symbol_in_block): New 'match_type' parameter.
11818
f98fc17b
PA
118192018-01-05 Pedro Alves <palves@redhat.com>
11820
11821 PR gdb/22670
11822 * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
11823 ada_lookup_symbol.
11824 (ada_lookup_symbol): Reimplement in terms of
11825 ada_lookup_symbol_list, bits factored out from
11826 ada_lookup_encoded_symbol.
11827
342f8240
JB
118282018-01-05 Joel Brobecker <brobecker@adacore.com>
11829
11830 * ada-exp.y (write_object_renaming): When subscripting an array
11831 using a symbol as the index, pass the block in call to
11832 ada_lookup_encoded_symbol when looking that symbol up.
11833
7150d33c
JG
118342018-01-05 Jerome Guitton <guitton@adacore.com>
11835
11836 * ada-lang.c (ada_array_length): Use ada_index_type instead of
11837 TYPE_INDEX_TYPE.
11838
cc0e770c
JB
118392018-01-05 Joel Brobecker <brobecker@adacore.com>
11840
11841 * ada-lang.c (ada_to_fixed_value_create): Add handling of
11842 the case where VALUE_LVAL (val0) is not lval_memory.
11843
f79da888 118442018-01-05 Xavier Roirand <roirand@adacore.com>
e3861a03
XR
11845
11846 * ada-valprint.c (print_optional_low_bound): Handle
11847 character-indexed array printing like boolean-indexed array
11848 printing.
11849
cd385f94
JB
118502018-01-05 Joel Brobecker <brobecker@adacore.com>
11851
11852 * NEWS: Create a new section for the next release branch.
11853 Rename the section of the current branch, now that it has
11854 been cut.
11855
09aca949
JB
118562018-01-05 Joel Brobecker <brobecker@adacore.com>
11857
11858 GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
11859 * version.in: Bump version to 8.1.50.DATE-git.
11860
9f757bf7
XR
118612018-01-03 Xavier Roirand <roirand@adacore.com>
11862
11863 * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
11864 Add field.
11865 * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
11866 Add field.
11867 (default_exception_support_info) <catch_handlers_sym>: Add field.
11868 (exception_support_info_fallback) <catch_handlers_sym>: Add field.
11869 (ada_exception_name_addr_1): Add "catch handlers" handling.
11870 (ada_exception_catchpoint_cond_string) <ex>: New parameter.
11871 Update all callers.
11872 (create_excep_cond_exprs) <ex>: Add parameter.
11873 (re_set_exception): Update create_excep_cond_exprs call.
11874 (print_it_exception, print_one_exception, print_mention_exception)
11875 (print_recreate_exception): Add "catch handler" handling.
11876 (allocate_location_catch_handlers, re_set_catch_handlers)
11877 (check_status_catch_handlers, print_it_catch_handlers)
11878 (print_one_catch_handlers, print_mention_catch_handlers)
11879 (print_recreate_catch_handlers): New function.
11880 (catch_handlers_breakpoint_ops): New variable.
11881 (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
11882 Add parameter. Add "catch handler" handling.
11883 (ada_exception_sym_name, ada_exception_breakpoint_ops):
11884 Add "catch handler" handling.
11885 (ada_exception_catchpoint_cond_string): Add "catch handler"
11886 handling.
11887 (create_ada_exception_catchpoint): Update create_excep_cond_exprs
11888 call.
11889 (catch_ada_handlers_command): New function.
11890 (initialize_ada_catchpoint_ops): Initialize "catch handlers"
11891 operations structure.
11892 (_initialize_ada_language): Add "catch handlers" command entry.
11893 * NEWS: Document "catch handlers" feature.
11894
9fe561ab
JB
118952018-01-02 Joel Brobecker <brobecker@adacore.com>
11896
11897 * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
11898 account when creating the array type of the slice.
11899 (ada_value_slice): Likewise.
11900
a405673c
JB
119012018-01-02 Joel Brobecker <brobecker@adacore.com>
11902
11903 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
11904 New enum value.
11905 (create_array_type_with_stride): Add byte_stride_prop parameter.
11906 * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
11907 New parameter. Update all callers in this file.
11908 (array_type_has_dynamic_stride): New function.
11909 (is_dynamic_type_internal, resolve_dynamic_array): Add handling
11910 of arrays with dynamic byte strides.
11911 * dwarf2read.c (read_array_type): Add support for dynamic
11912 DW_AT_byte_stride attributes.
11913
74a2f8ff
JB
119142018-01-02 Joel Brobecker <brobecker@adacore.com>
11915
11916 * dwarf2read.c (read_unspecified_type): Treat
11917 DW_TAG_enumeration_type DIEs from Ada units as stubs.
11918
e2882c85
JB
119192018-01-01 Joel Brobecker <brobecker@adacore.com>
11920
11921 Update copyright year range in all GDB files.
11922
1690bb24
JB
119232018-01-01 Joel Brobecker <brobecker@adacore.com>
11924
11925 * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
11926 and gdb/testsuite/gdb.base/step-line.c.
11927
0f0c98a8
JB
119282018-01-01 Joel Brobecker <brobecker@adacore.com>
11929
11930 * copyright.py (main): Dump the contents of
11931 MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
11932 even if BY_HAND is empty.
11933
82e1e79a
JB
119342018-01-01 Joel Brobecker <brobecker@adacore.com>
11935
11936 * top.c (print_gdb_version): Update Copyright year in version
11937 message.
11938
053f54e5 119392018-01-01 Joel Brobecker <brobecker@adacore.com>
47fea877 11940
053f54e5 11941 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
47fea877 11942
053f54e5 11943For older changes see ChangeLog-2017.
c906108c
SS
11944\f
11945Local Variables:
11946mode: change-log
11947left-margin: 8
11948fill-column: 74
11949version-control: never
57da7796 11950coding: utf-8
c906108c 11951End:
This page took 2.569891 seconds and 4 git commands to generate.