99a587b40903529f1e1aa716282ecf0d49ca2a3d
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2018-04-05 Tom Tromey <tom@tromey.com>
2
3 * linespec.c (linespec_parse_basic): Reindent.
4
5 2018-04-05 Tom Tromey <tom@tromey.com>
6
7 * minsyms.h (iterate_over_minimal_symbols): Update.
8 * minsyms.c (iterate_over_minimal_symbols): Take a
9 gdb::function_view.
10 * linespec.c (struct collect_minsyms): Remove.
11 (compare_msyms): Now a std::sort comparator.
12 (add_minsym): Add parameters.
13 (search_minsyms_for_name): Update. Use std::vector.
14
15 2018-04-03 Tom Tromey <tom@tromey.com>
16
17 * mipsread.c (read_alphacoff_dynamic_symtab): Use
18 gdb::byte_vector.
19
20 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
21
22 * MAINTAINERS (Write After Approval): Add Weimin Pan.
23
24 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
25
26 PR gdb/16959
27 * cp-valprint.c: (cp_print_static_field) Fix infinite recursion when
28 printing static type.
29
30 2018-04-01 Tom Tromey <tom@tromey.com>
31
32 * rs6000-nat.c (rs6000_ptrace_ldinfo): Return a byte_vector.
33 (rs6000_xfer_shared_libraries): Update.
34
35 2018-04-01 Simon Marchi <simon.marchi@polymtl.ca>
36
37 * common/gdb_vecs.h (char_ptr): Remove.
38 * tracepoint.c (encode_actions_1): Remove usage of char_ptr.
39
40 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
41
42 * guile/scm-utils.c (gdbscm_parse_function_args): Replace VEC
43 with std::vector.
44 * common/gdb_vecs.h (DEF_VEC_P (char_ptr)): Remove.
45
46 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
47
48 * tracepoint.h (struct uploaded_tp): Initialize fields.
49 <actions, step_actions, cmd_strings>: Change type to
50 std::vector<char *>.
51 * tracepoint.c (get_uploaded_tp): Allocate with new.
52 (free_uploaded_tps): Free with delete.
53 (parse_tracepoint_definition): Adjust to std::vector change.
54 * breakpoint.c (read_uploaded_action): Likewise.
55 (create_tracepoint_from_upload): Likewise.
56 * ctf.c (ctf_write_uploaded_tp): Likewise.
57 (SET_ARRAY_FIELD): Likewise.
58 * tracefile-tfile.c (tfile_write_uploaded_tp): Likewise.
59
60 2018-03-30 Tom Tromey <tom@tromey.com>
61
62 * solib-svr4.c (lm_info_read): Use gdb::byte_vector. Return
63 std::unique_ptr.
64 (svr4_keep_data_in_core): Update.
65 (svr4_read_so_list): Update.
66
67 2018-03-30 Tom Tromey <tom@tromey.com>
68
69 * windows-nat.c (handle_output_debug_string, handle_exception):
70 Update.
71 * target.h (target_read_string): Update.
72 * target.c (target_read_string): Change "string" to
73 unique_xmalloc_ptr.
74 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
75 Update.
76 * solib-frv.c (frv_current_sos): Update.
77 * solib-dsbt.c (dsbt_current_sos): Update.
78 * solib-darwin.c (darwin_current_sos): Update.
79 * linux-thread-db.c (inferior_has_bug): Update.
80 * expprint.c (print_subexp_standard) <case OP_OBJC_MSGCALL>:
81 Update. Remove alloca.
82 * ada-lang.c (ada_main_name): Update.
83
84 2018-03-30 Tom Tromey <tom@tromey.com>
85
86 * dwarf2read.c (struct free_dwo_file_cleanup_data): Remove.
87 (struct dwo_file_deleter): New.
88 (dwo_file_up): New typedef.
89 (open_and_init_dwo_file): Use dwo_file_up.
90 (free_dwo_file_cleanup): Remove.
91
92 2018-03-30 Tom Tromey <tom@tromey.com>
93
94 * dwarf2read.c (free_dwo_file): Remove "objfile" parameter.
95 (free_dwo_file_cleanup, free_dwo_file_from_slot): Update.
96
97 2018-03-30 Tom Tromey <tom@tromey.com>
98
99 * dwarf2read.c (class free_cached_comp_units): New class.
100 (dw2_instantiate_symtab, dwarf2_build_psymtabs_hard): Use it.
101 (free_cached_comp_units): Remove function.
102
103 2018-03-30 Tom Tromey <tom@tromey.com>
104
105 * utils.h (make_cleanup_unpush_target): Remove.
106 * inf-ptrace.c (struct target_unpusher): New.
107 (target_unpush_up) New typedef.
108 (inf_ptrace_create_inferior, inf_ptrace_attach): Use
109 target_unpush_up.
110 * utils.c (do_unpush_target, make_cleanup_unpush_target): Remove.
111
112 2018-03-27 Tom Tromey <tom@tromey.com>
113
114 * utils.c (prompt_for_continue): Use unique_xmalloc_ptr.
115
116 2018-03-27 Pedro Alves <palves@redhat.com>
117 Tom Tromey <tom@tromey.com>
118
119 * top.c (class gdb_readline_wrapper_cleanup): Add constructor,
120 destructor. Now a class.
121 (gdb_readline_wrapper_cleanup): Remove function.
122 (gdb_readline_wrapper): Remove cleanups.
123
124 2018-03-27 Tom Tromey <tom@tromey.com>
125
126 * typeprint.h (struct type_print_options) <local_typedefs,
127 global_typedefs>: Remove "struct" keyword.
128 (class typedef_hash_table): New class.
129 (recursively_update_typedef_hash, add_template_parameters)
130 (create_typedef_hash, free_typedef_hash, copy_typedef_hash)
131 (find_typedef_in_hash): Don't declare.
132 * typeprint.c (struct typedef_hash_table): Move to typeprint.h.
133 (typedef_hash_table::recursively_update): Rename from
134 recursively_update_typedef_hash. Now a member.
135 (typedef_hash_table::add_template_parameters): Rename from
136 add_template_parameters. Now a member.
137 (typedef_hash_table::typedef_hash_table): Now a constructor;
138 rename from create_typedef_hash.
139 (typedef_hash_table::~typedef_hash_table): Now a destructor;
140 rename from free_typedef_hash.
141 (do_free_typedef_hash, make_cleanup_free_typedef_hash)
142 (do_free_global_table): Remove.
143 (typedef_hash_table::typedef_hash_table): New constructor; renamed
144 from copy_type_recursive.
145 (create_global_typedef_table): Remove.
146 (typedef_hash_table::find_global_typedef): Now a member of
147 typedef_hash_table.
148 (typedef_hash_table::find_typedef): Rename from
149 find_typedef_in_hash; now a member.
150 (whatis_exp): Update.
151 * extension.h (struct ext_lang_type_printers): Add constructor and
152 destructor.
153 (start_ext_lang_type_printers, free_ext_lang_type_printers): Don't
154 declare.
155 * extension.c (ext_lang_type_printers::ext_lang_type_printers):
156 Now a constructor; rename from start_ext_lang_type_printers.
157 (ext_lang_type_printers): Now a destructor; rename from
158 free_ext_lang_type_printers.
159 * c-typeprint.c (find_typedef_for_canonicalize, c_print_type_1):
160 Update.
161 (c_type_print_base_struct_union): Update. Remove cleanups.
162
163 2018-03-27 Tom Tromey <tom@tromey.com>
164
165 * dwarf-index-write.c: Include <cmath>.
166
167 2018-03-27 Joel Brobecker <brobecker@adacore.com>
168
169 * NEWS: Add entry describing new "set|show varsize-limit" command.
170 * ada-lang.c (_initialize_ada_language): Add "set/show varsize-limit"
171 command.
172 * printcmd.c (_initialize_printcmd): Add "set var" alias of
173 "set variable".
174
175 2018-03-27 Simon Marchi <simon.marchi@ericsson.com>
176
177 * Makefile.in (COMMON_SFILES): Add dwarf-index-common.c and
178 dwarf-index-write.c
179 (HFILES_NO_SRCDIR): Add dwarf-index-common.h and dwarf2read.h.
180 * dwarf-index-common.c: New file.
181 * dwarf-index-common.h: New file.
182 * dwarf-index-write.c: New file.
183 * dwarf2read.c: Include dwarf2read.h and dwarf-index-common.h.
184 (struct dwarf2_section_info): Move from here.
185 (dwarf2_section_info_def): Likewise.
186 (DEF_VEC_O (dwarf2_section_info_def)): Likewise.
187 (offset_type): Likewise.
188 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): Likewise.
189 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): Likewise.
190 (DW2_GDB_INDEX_CU_SET_VALUE): Likewise.
191 (byte_swap): Likewise.
192 (MAYBE_SWAP): Likewise.
193 (dwarf2_per_cu_ptr): Likewise.
194 (DEF_VEC_P (dwarf2_per_cu_ptr)): Likewise.
195 (struct tu_stats): Likewise.
196 (struct dwarf2_per_objfile): Likewise.
197 (struct dwarf2_per_cu_data): Likewise.
198 (struct signatured_type): Likewise.
199 (sig_type_ptr): Likewise.
200 (DEF_VEC_P (sig_type_ptr)): Likewise.
201 (INDEX4_SUFFIX): Likewise.
202 (INDEX5_SUFFIX): Likewise.
203 (DEBUG_STR_SUFFIX): Likewise.
204 (dwarf2_read_section): Make non-static.
205 (mapped_index_string_hash): Move from here.
206 (dwarf5_djb_hash): Likewise.
207 (file_write): Likewise.
208 (class data_buf): Likewise.
209 (struct symtab_index_entry): Likewise.
210 (struct mapped_symtab): Likewise.
211 (find_slot): Likewise.
212 (hash_expand): Likewise.
213 (add_index_entry): Likewise.
214 (uniquify_cu_indices): Likewise.
215 (class c_str_view): Likewise.
216 (class c_str_view_hasher): Likewise.
217 (class vector_hasher): Likewise.
218 (write_hash_table): Likewise.
219 (psym_index_map): Likewise.
220 (struct addrmap_index_data): Likewise.
221 (add_address_entry): Likewise.
222 (add_address_entry_worker): Likewise.
223 (write_address_map): Likewise.
224 (symbol_kind): Likewise.
225 (write_psymbols): Likewise.
226 (struct signatured_type_index_data): Likewise.
227 (write_one_signatured_type): Likewise.
228 (recursively_count_psymbols): Likewise.
229 (recursively_write_psymbols): Likewise.
230 (class debug_names): Likewise.
231 (check_dwarf64_offsets): Likewise.
232 (psyms_seen_size): Likewise.
233 (write_gdbindex): Likewise.
234 (write_debug_names): Likewise.
235 (assert_file_size): Likewise.
236 (write_psymtabs_to_index): Likewise.
237 (save_gdb_index_command): Likewise.
238 (_initialize_dwarf2_read): Don't register the "save gdb-index"
239 command.
240 * dwarf2read.h: New file.
241
242 2018-03-27 Joel Brobecker <brobecker@adacore.com>
243
244 PR gdb/22670
245 * dwarf2read.c (dwarf2_physname): Do not return the demangled
246 symbol name if the CU's language stores symbol names in linkage
247 format.
248 * language.h (struct language_defn)
249 <la_store_sym_names_in_linkage_form_p>: New field. Adjust
250 all instances of this struct.
251
252 2018-03-26 Tom Tromey <tom@tromey.com>
253
254 * stack.c (backtrace_command_1): Remove verbose code.
255
256 2018-03-26 Tom Tromey <tom@tromey.com>
257
258 * python/py-framefilter.c (py_print_type): Don't catch
259 exceptions. Return void.
260 (py_print_value): Likewise.
261 (py_print_single_arg): Likewise.
262 (enumerate_args): Don't catch exceptions.
263 (py_print_args): Likewise.
264 (py_print_frame): Likewise.
265 (gdbpy_apply_frame_filter): Catch exceptions here.
266
267 2018-03-26 Tom Tromey <tom@tromey.com>
268
269 * stack.c (_initialize_stack): Remove trailing newlines from help
270 text. Add "Usage" line to "backtrace" help.
271
272 2018-03-26 Tom Tromey <tom@tromey.com>
273
274 PR python/16486:
275 * python/py-framefilter.c (py_print_args): Call wrap_hint.
276
277 2018-03-26 Tom Tromey <tom@tromey.com>
278
279 * python/py-framefilter.c (py_print_single_arg): Return
280 EXT_LANG_BT_ERROR from catch.
281
282 2018-03-26 Tom Tromey <tom@tromey.com>
283
284 PR backtrace/15584:
285 * stack.c (backtrace_command_1): Move some code into no-filters
286 "if".
287
288 2018-03-26 Tom Tromey <tom@tromey.com>
289
290 * python/py-framefilter.c (throw_quit_or_print_exception): New
291 function.
292 (gdbpy_apply_frame_filter): Use it.
293
294 2018-03-26 Tom Tromey <tom@tromey.com>
295
296 PR cli/17716:
297 * python/py-framefilter.c (py_print_type, py_print_value)
298 (enumerate_args, py_print_args, gdbpy_apply_frame_filter): Use
299 RETURN_MASK_ERROR.
300
301 2018-03-26 Tom Tromey <tom@tromey.com>
302
303 * python/py-framefilter.c (enumerate_args): Use
304 gdb::unique_xmalloc_ptr.
305
306 2018-03-26 Tom Tromey <tom@tromey.com>
307
308 * python/py-framefilter.c (py_print_frame): Return
309 EXT_LANG_BT_OK.
310 (gdbpy_apply_frame_filter): Update comment.
311 * extension.h (enum ext_lang_bt_status) <EXT_LANG_BT_COMPLETED>:
312 Remove.
313 <EXT_LANG_BT_NO_FILTERS>: Change value.
314
315 2018-03-26 Tom Tromey <tom@tromey.com>
316
317 PR backtrace/15582:
318 * stack.c (backtrace_command): Parse "hide" argument.
319 * python/py-framefilter.c (py_print_frame): Handle PRINT_HIDE.
320 * extension.h (enum frame_filter_flags) <PRINT_HIDE>: New
321 constant.
322
323 2018-03-26 Tom Tromey <tom@tromey.com>
324
325 * stack.c (backtrace_command_1): Remove "show_locals" parameter,
326 add "flags".
327 (backtrace_command): Remove "fulltrace", add "flags".
328
329 2018-03-26 Tom Tromey <tom@tromey.com>
330
331 * stack.c (backtrace_command): Rewrite command line parsing.
332
333 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
334
335 * dwarf2read.c (DEF_VEC_I(offset_type)): Remove.
336
337 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
338
339 * filename-seen-cache.h: Add include guard.
340
341 2018-03-26 Keith Seitz <keiths@redhat.com>
342
343 * symfile.c (place_section): Remove "struct" from section_addr_info
344 in comment.
345 * windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove
346 "struct" keyword from section_addr_info.
347
348 2018-03-26 Alan Hayward <alan.hayward@arm.com>
349
350 * regformats/regdef.h (reg): Add constructors.
351
352 2018-03-25 Pedro Alves <palves@redhat.com>
353
354 * eval.c (evaluate_funcall): Swap OP_VAR_MSYM_VALUE/OP_VAR_VALUE
355 if then/else bodies in var_func_name extraction.
356
357 2018-03-23 Weimin Pan <weimin.pan@oracle.com>
358
359 * minsyms.c (lookup_minimal_symbol_and_objfile): Use
360 lookup_minimal_symbol() to find symbol entry.
361 * minsyms.h (lookup_minimal_symbol_and_objfile): Update comment.
362
363 2018-03-23 Keith Seitz <keiths@redhat.com>
364
365 PR c++/22968
366 * dwarf2read.c (scan_partial_symbols): Scan structs/classes for
367 nested type definitions for C++, too.
368
369 2018-03-23 Tom Tromey <tom@tromey.com>
370
371 * machoread.c (struct oso_el): Add a constructor. Don't define as
372 a typedef.
373 (macho_register_oso): Remove.
374 (macho_symtab_read): Take a std::vector.
375 (oso_el_compare_name): Now a std::sort comparator.
376 (macho_symfile_read_all_oso): Take a std::vector.
377 (macho_symfile_read): Use std::vector. Remove cleanups.
378
379 2018-03-22 Tom Tromey <tom@tromey.com>
380
381 * record-full.c (record_full_exec_insn): Use gdb::byte_vector.
382 (record_full_goto_bookmark): Use std::string.
383
384 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
385
386 PR tdep/18295
387 * rs6000-tdep.c (skip_prologue): Match both stwux and stdux
388 a single mask.
389
390 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
391
392 * rs6000-tdep.c (store_insn_p): New function.
393 (skip_prologue): New variable alloca_reg_offset. Set lr_reg
394 and cr_reg to their unshifted values. Use store_insn_p to
395 match LR saves using either R1 or fdata->alloca_reg. Use
396 store_insn_p to match CR saves. Set alloca_reg_offset
397 when alloca_reg and framep are set. Remove lr_reg shift
398 when assigning to fdata->lr_register.
399
400 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
401
402 * linux-tdep.c (linux_info_proc): For "info proc cmdline", print
403 command line args instead of emitting a warning.
404
405 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
406
407 * tracepoint.h (struct static_tracepoint_marker): Initialize
408 fields, define default constructor, move constructor and move
409 assignment, disable the rest.
410 <str_id, extra>: Make std::string.
411 (release_static_tracepoint_marker): Remove.
412 (free_current_marker): Remove.
413 * tracepoint.c (free_current_marker): Remove.
414 (parse_static_tracepoint_marker_definition): Adjust to
415 std::string, use new hex2str overload.
416 (release_static_tracepoint_marker): Remove.
417 (print_one_static_tracepoint_marker): Get marker by reference
418 and adjust to std::string.
419 (info_static_tracepoint_markers_command): Adjust to std::vector
420 changes
421 * target.h (static_tracepoint_marker_p): Remove typedef.
422 (DEF_VEC_P(static_tracepoint_marker_p)): Remove.
423 (struct target_ops) <to_static_tracepoint_marker_at>: Return
424 bool.
425 <to_static_tracepoint_markers_by_strid>: Return std::vector.
426 * target-debug.h
427 (target_debug_print_VEC_static_tracepoint_marker_p_p): Remove.
428 (target_debug_print_std_vector_static_tracepoint_marker): New.
429 (target_debug_print_struct_static_tracepoint_marker_p): Rename
430 to...
431 (target_debug_print_static_tracepoint_marker_p): ... this.
432 * target-delegates.c: Re-generate.
433 * breakpoint.h (struct tracepoint) <static_trace_marker_id>:
434 Make std::string.
435 * breakpoint.c (init_breakpoint_sal): Adjust to std::string.
436 (decode_static_tracepoint_spec): Adjust to std::vector.
437 (tracepoint_print_one_detail): Adjust to std::string.
438 (strace_marker_decode_location): Adjust to std::string.
439 (update_static_tracepoint): Adjust to std::string, remove call
440 to release_static_tracepoint_marker.
441 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
442 Adjust to std::vector.
443 * remote.c (remote_static_tracepoint_marker_at): Return bool.
444 (remote_static_tracepoint_markers_by_strid): Adjust to
445 std::vector.
446 * common/rsp-low.h (hex2str): New overload with explicit count
447 of bytes.
448 * common/rsp-low.c (hex2str): New overload with explicit count
449 of bytes.
450 * unittests/rsp-low-selftests.c (test_hex2str): New function.
451 (_initialize_rsp_low_selftests): Add test_hex2str test.
452 * unittests/tracepoint-selftests.c
453 (test_parse_static_tracepoint_marker_definition): Adjust to
454 std::string.
455
456 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
457
458 * tracepoint.c (parse_static_tracepoint_marker_definition):
459 Consider case where the definition is followed by more
460 definitions.
461 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
462 tracepoint-selftests.c.
463 * unittests/tracepoint-selftests.c: New.
464
465 2018-03-21 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
466
467 * MAINTAINERS (Write After Approval): Add Pedro Franco de
468 Carvalho.
469
470 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
471
472 * symtab.c (find_pc_sect_line): fixed indentation.
473
474 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
475
476 * symtab.c (find_pc_sect_line): now uses binary search.
477
478 2018-03-19 Tom Tromey <tom@tromey.com>
479
480 * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain
481 "IDENT" production.
482
483 2018-03-19 Pedro Alves <palves@redhat.com>
484 Tom Tromey <tom@tromey.com>
485
486 * unittests/observable-selftests.c: New file.
487 * common/observable.h: New file.
488 * observable.h: New file.
489 * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c,
490 arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c,
491 breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c,
492 corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c,
493 extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c,
494 infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c,
495 linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c,
496 mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c,
497 ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c,
498 python/py-breakpoint.c, python/py-finishbreakpoint.c,
499 python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c,
500 record-btrace.c, record-full.c, record.c, regcache.c, remote.c,
501 riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c,
502 spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c,
503 symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c,
504 tui/tui-interp.c, valops.c: Update all users.
505 * tui/tui-hooks.c (tui_bp_created_observer)
506 (tui_bp_deleted_observer, tui_bp_modified_observer)
507 (tui_inferior_exit_observer, tui_before_prompt_observer)
508 (tui_normal_stop_observer, tui_register_changed_observer):
509 Remove.
510 (tui_observers_token): New global.
511 (attach_or_detach, tui_attach_detach_observers): New functions.
512 (tui_install_hooks, tui_remove_hooks): Use
513 tui_attach_detach_observers.
514 * record-btrace.c (record_btrace_thread_observer): Remove.
515 (record_btrace_thread_observer_token): New global.
516 * observer.sh: Remove.
517 * observer.c: Rename to observable.c.
518 * observable.c (namespace gdb_observers): Define new objects.
519 (observer_debug): Move into gdb_observers namespace.
520 (struct observer, struct observer_list, xalloc_observer_list_node)
521 (xfree_observer_list_node, generic_observer_attach)
522 (generic_observer_detach, generic_observer_notify): Remove.
523 (_initialize_observer): Update.
524 Don't include observer.inc.
525 * Makefile.in (generated_files): Remove observer.h, observer.inc.
526 (clean mostlyclean): Likewise.
527 (observer.h, observer.inc): Remove targets.
528 (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c.
529 (COMMON_SFILES): Use observable.c, not observer.c.
530 * .gitignore: Remove observer.h.
531
532 2018-03-18 Tom Tromey <tom@tromey.com>
533
534 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use
535 gdb::def_vector.
536 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
537
538 2018-03-17 Tom Tromey <tom@tromey.com>
539
540 * auto-load.c (auto_load_objfile_script_1): Use std::string.
541
542 2018-03-17 Tom Tromey <tom@tromey.com>
543
544 * target.c (class scoped_target_fd): New.
545 (target_fileio_close_cleanup): Remove.
546 (target_fileio_read_alloc_1): Use scoped_target_fd.
547
548 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
549
550 * silent-rules.mk: New.
551 * Makefile.in: Include silent-rules.mk
552 (srcdir, VPATH, top_srcdir): Move up.
553 (COMPILE): Add ECHO_CXX.
554 (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD.
555 (init.c): Add ECHO_INIT_C.
556 (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
557 (version.c): Add ECHO_GEN.
558 (printcmd.o): Add ECHO_CXX.
559 (target-float.o): Add ECHO_CXX.
560 (ada-exp.o): Add ECHO_CXX.
561 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN.
562 (insight$(EXEEXT)): Add ECHO_CXXLD.
563 * gnulib/configure.ac: Add AM_SILENT_RULES.
564 * gnulib/aclocal.m4: Re-generate.
565 * gnulib/configure: Re-generate.
566 * gnulib/import/Makefile.in: Re-generate.
567
568 2018-03-16 Tom Tromey <tom@tromey.com>
569
570 * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs".
571 * utils.h (make_cleanup_free_section_addr_info): Don't declare.
572 * utils.c (do_free_section_addr_info)
573 (make_cleanup_free_section_addr_info): Remove.
574 * symfile.h (struct other_sections): Add constructor.
575 (struct section_addr_info): Remove.
576 (section_addr_info): New typedef.
577 (struct sym_fns) <sym_offsets>: Change type of parameter.
578 (build_section_addr_info_from_objfile)
579 (relative_addr_info_to_section_offsets, addr_info_make_relative)
580 (default_symfile_offsets, symbol_file_add)
581 (symbol_file_add_from_bfd)
582 (build_section_addr_info_from_section_table): Update.
583 (alloc_section_addr_info, free_section_addr_info): Don't declare.
584 * symfile.c (alloc_section_addr_info): Remove.
585 (build_section_addr_info_from_section_table): Change return type.
586 Update.
587 (build_section_addr_info_from_bfd)
588 (build_section_addr_info_from_objfile): Likewise.
589 (free_section_addr_info): Remove.
590 (relative_addr_info_to_section_offsets): Change type of "addrs".
591 (addrs_section_compar): Now a std::sort comparator.
592 (addrs_section_sort): Change return type.
593 (addr_info_make_relative): Change type of "addrs". Update.
594 (default_symfile_offsets, syms_from_objfile_1)
595 (syms_from_objfile, symbol_file_add_with_addrs): Likewise.
596 (symbol_file_add_separate): Update.
597 (symbol_file_add): Change type of "addrs". Update.
598 (add_symbol_file_command): Update. Remove cleanups.
599 * symfile-mem.c (symbol_file_add_from_memory): Update. Remove
600 cleanups.
601 * symfile-debug.c (debug_sym_offsets): Change type of "info".
602 * solib.c (solib_read_symbols): Update.
603 * objfiles.c (objfile_relocate): Update. Remove cleanups.
604 * machoread.c (macho_symfile_offsets): Update.
605 * jit.c (jit_bfd_try_read_symtab): Update.
606
607 2018-03-15 Simon Marchi <simon.marchi@polymtl.ca>
608
609 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
610 unittests/utils-selftests.c.
611 * unittests/utils-selftests.c: New file.
612
613 2018-03-14 Tom Tromey <tom@tromey.com>
614
615 PR cli/14977:
616 * printcmd.c (printf_c_string, printf_wide_c_string): Special case
617 for NULL.
618
619 2018-03-14 Tom Tromey <tom@tromey.com>
620
621 PR cli/19918:
622 * printcmd.c (printf_pointer): Allow "-" in format.
623
624 2018-03-14 Tom Tromey <tom@tromey.com>
625
626 * printcmd.c (_initialize_printcmd): Add usage to printf.
627
628 2018-03-14 Yao Qi <qiyao@sourceware.org>
629
630 * MAINTAINERS: Update my email address.
631
632 2018-03-13 Tom Tromey <tom@tromey.com>
633
634 * machoread.c (macho_check_dsym): Change filenamep to a
635 std::string*.
636 (macho_symfile_read): Update.
637 * symfile.c (load_command): Use std::string.
638
639 2018-03-12 Andrew Burgess <andrew.burgess@embecosm.com>
640
641 * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization
642 to error message string.
643 (riscv_register_name): Use xsnprintf instead of sprintf.
644 (riscv_insn::fetch_instruction): Use gdb_assert instead of
645 internal_error.
646 (riscv_print_arg_location): Use gdb_assert_not_reached instead of
647 error.
648 (riscv_push_dummy_call): Likewise.
649
650 2018-03-12 Tom Tromey <tom@tromey.com>
651
652 * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix):
653 Use gdb::byte_vector.
654 * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector.
655
656 2018-03-12 Yao Qi <yao.qi@linaro.org>
657
658 * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change
659 parameter type to readable_regcache.
660 * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update
661 the declaration.
662
663 2018-03-11 Tom Tromey <tom@tromey.com>
664
665 * dwarf2read.c (struct nextfield): Add initializers.
666 (struct nextfnfield): Remove.
667 (struct fnfieldlist): Add initializers. Remove "length" and
668 "head", use std::vector.
669 (struct decl_field_list): Remove.
670 (struct field_info): Add initializers.
671 <fields, baseclasses>: Now std::vector.
672 <nbaseclasses, nfnfields, typedef_field_list_count,
673 nested_types_list_count>: Remove.
674 (dwarf2_add_field, dwarf2_add_type_defn)
675 (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
676 (dwarf2_attach_fn_fields_to_type, handle_struct_member_die)
677 (process_structure_scope): Update.
678
679 2018-03-11 Tom Tromey <tom@tromey.com>
680
681 * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable
682 for use by std::sort.
683 (build_type_psymtabs_1): Use std::vector.
684
685 2018-03-09 Eli Zaretskii <eliz@gnu.org>
686
687 * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK,
688 and LIBMPFR in the printed configuration.
689
690 2018-03-08 Tom Tromey <tom@tromey.com>
691
692 * source.c (get_filename_and_charpos): Use scoped_fd.
693 * nto-procfs.c (procfs_open_1): Use scoped_fd.
694 (procfs_pidlist): Likewise.
695 * procfs.c (proc_get_LDT_entry): Use scoped_fd.
696 (iterate_over_mappings): Likewise.
697
698 2018-03-08 Tom Tromey <tom@tromey.com>
699
700 * infcall.c (struct call_return_meta_info)
701 <stack_temporaries_enabled>: Remove.
702 (get_call_return_value, call_function_by_hand_dummy): Update.
703 * thread.c (disable_thread_stack_temporaries): Remove.
704 (enable_thread_stack_temporaries): Remove.
705 (thread_stack_temporaries_enabled_p): Return bool.
706 (push_thread_stack_temporary, value_in_thread_stack_temporaries)
707 (get_last_thread_stack_temporary): Update.
708 * eval.c (evaluate_subexp): Update.
709 * gdbthread.h (class enable_thread_stack_temporaries): Now a
710 class, not a function.
711 (value_ptr, value_vec): Remove typedefs.
712 (class thread_info) <stack_temporaries_enabled>: Now bool.
713 <stack_temporaries>: Now a std::vector.
714 (thread_stack_temporaries_enabled_p)
715 (value_in_thread_stack_temporaries): Return bool.
716
717 2018-03-08 Simon Marchi <simon.marchi@ericsson.com>
718
719 * remote.c (putpkt_binary): Fix omitted bytes reporting.
720 (getpkt_or_notif_sane_1): Likewise.
721
722 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
723
724 * build-id.c (build_id_to_debug_bfd): Use std::string.
725
726 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
727
728 * build-id.c (find_separate_debug_file_by_buildid): Return
729 std::string.
730 * build-id.h (find_separate_debug_file_by_buildid): Return
731 std::string.
732 * coffread.c (coff_symfile_read): Adjust to std::string.
733 * elfread.c (elf_symfile_read): Adjust to std::string.
734 * symfile.c (separate_debug_file_exists): Change parameter to
735 std::string.
736 (find_separate_debug_file): Return std::string.
737 (find_separate_debug_file_by_debuglink): Return std::string.
738 * symfile.h (find_separate_debug_file_by_debuglink): Return
739 std::string.
740
741 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
742
743 * common/xml-utils.c (xml_escape_text): Move code to...
744 (xml_escape_text_append): ... this new function.
745 * common/xml-utils.h (xml_escape_text_append): New declaration.
746 * unittests/xml-utils-selftests.c (test_xml_escape_text_append):
747 New function.
748 (_initialize_xml_utils): register test_xml_escape_text_append as
749 a selftest.
750
751 2018-03-07 Alan Hayward <alan.hayward@arm.com>
752
753 * defs.h: Remove MAX_REGISTER_SIZE.
754 * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE
755 asserts.
756 * python/py-unwind.c (pyuw_sniffer): Likewise.
757
758 2018-03-07 Tom Tromey <tom@tromey.com>
759
760 * linux-tdep.c (linux_info_proc): Update.
761 * target.h (struct target_ops) <to_fileio_readlink>: Return
762 optional<string>.
763 (target_fileio_readlink): Return optional<string>.
764 * remote.c (remote_hostio_readlink): Return optional<string>.
765 * inf-child.c (inf_child_fileio_readlink): Return
766 optional<string>.
767 * target.c (target_fileio_readlink): Return optional<string>.
768
769 2018-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
770
771 * regcache.c (cooked_read_test): Add riscv to the list of
772 architectures that have a save_reggroup.
773
774 2018-03-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
775
776 * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given
777 value is not a dynamic class object.
778
779 2018-03-06 Tom Tromey <tom@tromey.com>
780
781 * rust-exp.y: Formatting fixes.
782
783 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
784
785 * riscv-tdep.c (riscv_register_name): Remove target description
786 support.
787 (riscv_gdbarch_init): Remove target description check.
788
789 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
790
791 * riscv-tdep.c: Remove 'Contributed by ...' lines from header
792 comment.
793 * riscv-tdep.h: Likewise.
794
795 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
796
797 * riscv-tdep.c (riscv_pseudo_register_read): Delete.
798 (riscv_pseudo_register_write): Delete.
799 (riscv_gdbarch_init): Remove all use of pseudo registers.
800
801 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
802
803 * record-btrace.c (btrace_print_lines): Replace cleanup
804 parameter with RAII equivalents.
805 (btrace_insn_history): Replace cleanup with RAII equivalents.
806 * ui-out.h (make_cleanup_ui_out_list_begin_end,
807 make_cleanup_ui_out_tuple_begin_end): Remove.
808 * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end,
809 make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end,
810 make_cleanup_ui_out_list_begin_end): Remove.
811
812 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
813
814 * record-btrace.c (record_btrace_maybe_mark_async_event): Change
815 parameter types to std::vector. Use bool.
816 (record_btrace_wait): Replace VEC(tp_t) with
817 std::vector<thread_info *>.
818 * common/gdb_vecs.h (unordered_remove, ordered_remove): New.
819
820 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
821
822 * record-btrace.c (record_btrace_disable_callback): Remove.
823 (struct scoped_btrace_disable): New.
824 (record_btrace_open): Use scoped_btrace_disable.
825
826 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
827
828 * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for
829 reading values from registers.
830
831 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
832
833 * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz
834 where appropriate.
835
836 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
837
838 * riscv-tdep.c (riscv_print_arg_location): Add header comment,
839 change parameter type. Use GDB's print functions, and use
840 core_addr_to_string where appropriate.
841 (riscv_push_dummy_call): Use core_addr_to_string where
842 appropriate, update call to riscv_print_arg_location, and reindent
843 a few lines.
844 (riscv_return_value): Update call to riscv_print_arg_location.
845
846 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
847 Tim Newsome <tim@sifive.com>
848 Albert Ou <a0u@eecs.berkeley.edu>
849 Darius Rad <darius@bluespec.com>
850
851 * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o
852 (HFILES_NO_SRCDIR): Add riscv-tdep.h.
853 (ALLDEPFILES): Add riscv-tdep.c
854 * configure.tgt: Add riscv support.
855 * riscv-tdep.c: New file.
856 * riscv-tdep.h: New file.
857 * NEWS: Mention new target.
858 * MAINTAINERS: Add entry for riscv.
859
860 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
861
862 * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized
863 fields within aggregates.
864
865 2018-03-04 Simon Marchi <simon.marchi@polymtl.ca>
866
867 * record-btrace.c (btrace_print_lines): Change type of flags to
868 gdb_disassembly_flags.
869
870 2018-03-04 John Baldwin <jhb@FreeBSD.org>
871
872 * fbsd-nat.c: Include "inf-ptrace.h".
873 (USE_SIGTRAP_SIGINFO): Conditionally define.
874 [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function.
875 (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap".
876 [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New
877 function.
878 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint):
879 Likewise.
880 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint):
881 Likewise.
882 (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set
883 "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint",
884 "supports_stopped_by_hw_breakpoint" target methods.
885
886 2018-03-04 John Baldwin <jhb@FreeBSD.org>
887
888 * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat".
889 * fbsd-nat.c (debug_fbsd_nat): New variable.
890 (show_fbsd_nat_debug): New function.
891 (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled.
892 (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command.
893
894 2018-03-04 John Baldwin <jhb@FreeBSD.org>
895
896 * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function.
897 * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New
898 prototype.
899 * x86-nat.c (x86_stopped_by_hw_breakpoint): New function.
900 (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target
901 method.
902
903 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
904
905 * common/gdb_vecs.c (free_char_ptr_vec): Remove.
906 * common/gdb_vecs.h (free_char_ptr_vec): Remove.
907
908 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
909
910 * charset.c (struct charset_vector): New.
911 (charsets): Change type to charset_vector.
912 (find_charset_names): Adjust.
913 (add_one): Adjust.
914 (_initialize_charset): Adjust.
915
916 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
917
918 * progspace.h (struct program_space) <deleted_solibs>: Change
919 type to std::vector<std::string>.
920 * progspace.c (clear_program_space_solib_cache): Adjust.
921 * breakpoint.c (print_solib_event): Adjust.
922 (check_status_catch_solib): Adjust.
923 * solib.c (update_solib_list): Adjust.
924 * ui-out.h (class ui_out) <field_string>: New overload.
925 * ui-out.c (ui_out::field_string): New overload.
926
927 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
928
929 * progspace.h (struct program_space): Add constructor and
930 destructor, initialize fields.
931 (add_program_space): Remove.
932 * progspace.c (add_program_space): Rename to...
933 (program_space::program_space): ... this.
934 (release_program_space): Rename to...
935 (program_space::~program_space): ... this.
936 (delete_program_space): Use delete to delete program_space.
937 (initialize_progspace): Use new to allocate program_space.
938 * inferior.c (add_inferior_with_spaces): Likewise.
939 (clone_inferior_command): Likewise.
940 * infrun.c (follow_fork_inferior): Likewise.
941 (handle_vfork_child_exec_or_exit): Likewise.
942
943 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
944
945 * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove.
946 (delim_string_to_char_ptr_vec): Return std::vector of
947 gdb::unique_xmalloc_ptr.
948 (dirnames_to_char_ptr_vec_append): Take std::vector of
949 gdb::unique_xmalloc_ptr.
950 (dirnames_to_char_ptr_vec): Return std::vector of
951 gdb::unique_xmalloc_ptr.
952 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append):
953 Take std::vector of gdb::unique_xmalloc_ptr, adjust the code.
954 (delim_string_to_char_ptr_vec): Return an std::vector of
955 gdb::unique_xmalloc_ptr, adjust the code.
956 (dirnames_to_char_ptr_vec_append): Take an std::vector of
957 gdb::unique_xmalloc_ptr, adjust the code.
958 (dirnames_to_char_ptr_vec): Return an std::vector of
959 gdb::unique_xmalloc_ptr, adjust the code.
960 * auto-load.c (auto_load_safe_path_vec): Change type to
961 std::vector of gdb::unique_xmalloc_ptr.
962 (auto_load_expand_dir_vars): Return an std::vector of
963 gdb::unique_xmalloc_ptr, adjust the code.
964 (auto_load_safe_path_vec_update): Adjust.
965 (filename_is_in_auto_load_safe_path_vec): Adjust.
966 (auto_load_objfile_script_1): Adjust.
967 * build-id.c (build_id_to_debug_bfd): Adjust.
968 * linux-thread-db.c (thread_db_load_search): Adjust.
969 * source.c (add_path): Adjust.
970 (openp): Adjust.
971 * symfile.c (find_separate_debug_file): Adjust.
972 * utils.c (do_free_char_ptr_vec): Remove.
973 (make_cleanup_free_char_ptr_vec): Remove.
974
975 2018-03-01 Sergio Durigan Junior <sergiodj@redhat.com>
976
977 PR gdb/22907
978 * common/pathstuff.c: Conditionally include "<windows.h>".
979
980 2018-03-01 Georg Sauthoff <mail@georg.so>
981
982 PR gdb/22888
983 * gcore.in: Quote variables and switch interpreter to bash.
984
985 2018-03-01 Tom Tromey <tom@tromey.com>
986
987 * dwarf2read.c (alloc_discriminant_info): Fix default_index
988 assertion. Add assertion for discriminant_index.
989 (quirk_rust_enum): Use correct base type name in univariant case.
990
991 2018-03-01 Simon Marchi <simon.marchi@ericsson.com>
992
993 * record.c (get_call_history_modifiers): Return a
994 record_print_flags.
995 (cmd_record_call_history): Adjust.
996 * record-btrace.c (record_btrace_call_history): Adjust.
997 (record_btrace_call_history_range): Adjust.
998 (record_btrace_call_history_from): Adjust.
999 * target-debug.h (target_debug_print_record_print_flags): New.
1000 * target-delegates.c: Re-generate.
1001 * target.c (target_call_history): Change flags type.
1002 (target_call_history_from): Likewise.
1003 (target_call_history_range): Likewise.
1004 * target.h (struct target_ops) <target_call_history>: Likewise.
1005 (target_call_history_from): Likewise.
1006 (target_call_history_range): Likewise.
1007
1008 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
1009 Simon Marchi <simon.marchi@polymtl.ca>
1010
1011 * common/common-utils.c: Include "sys/stat.h".
1012 (is_regular_file): Move here from "source.c"; change return
1013 type to "bool".
1014 * common/common-utils.h (is_regular_file): New prototype.
1015 * common/pathstuff.c (contains_dir_separator): New function.
1016 * common/pathstuff.h (contains_dir_separator): New prototype.
1017 * source.c: Don't include "sys/stat.h".
1018 (is_regular_file): Move to "common/common-utils.c".
1019
1020 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
1021
1022 * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c".
1023 (HFILES_NO_SRCDIR): Add "common/pathstuff.h".
1024 * auto-load.c: Include "common/pathstuff.h".
1025 * common/common-def.h (current_directory): Move here.
1026 * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New
1027 function.
1028 * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New
1029 prototype.
1030 * common/pathstuff.c: New file.
1031 * common/pathstuff.h: New file.
1032 * compile/compile.c: Include "common/pathstuff.h".
1033 * defs.h (current_directory): Move to "common/common-defs.h".
1034 * dwarf2read.c: Include "common/pathstuff.h".
1035 * exec.c: Likewise.
1036 * guile/scm-safe-call.c: Likewise.
1037 * linux-thread-db.c: Likewise.
1038 * main.c: Likewise.
1039 * nto-tdep.c: Likewise.
1040 * objfiles.c: Likewise.
1041 * source.c: Likewise.
1042 * symtab.c: Likewise.
1043 * utils.c: Include "common/pathstuff.h".
1044 (gdb_realpath): Move to "common/pathstuff.c".
1045 (gdb_realpath_keepfile): Likewise.
1046 (gdb_abspath): Likewise.
1047 * utils.h (gdb_realpath): Move to "common/pathstuff.h".
1048 (gdb_realpath_keepfile): Likewise.
1049 (gdb_abspath): Likewise.
1050
1051 2018-02-28 John Baldwin <jhb@FreeBSD.org>
1052
1053 * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a
1054 wildcard process pid for super_resume for kernels with a
1055 specific bug.
1056
1057 2018-02-27 Phil Muldoon <pmuldoon@redhat.com>
1058
1059 * compile/compile.c (get_args): Add additional comments
1060 explaining function.
1061
1062 2018-02-27 Simon Marchi <simon.marchi@polymtl.ca>
1063 Tom Tromey <tom@tromey.com>
1064
1065 * target.h (memory_write_request_s): Remove typedef. Don't define
1066 VEC.
1067 (target_write_memory_blocks): Change argument to std::vector.
1068 (struct memory_write_request): Add constructor.
1069 * target-memory.c (compare_block_starting_address): Return bool.
1070 Change argument types.
1071 (claim_memory): Change arguments to use std::vector.
1072 (split_regular_and_flash_blocks, blocks_to_erase)
1073 (compute_garbled_blocks): Likewise.
1074 (cleanup_request_data, cleanup_write_requests_vector): Remove.
1075 (target_write_memory_blocks): Change argument to std::vector.
1076 * symfile.c (struct load_section_data): Add constructor and
1077 destructor. Use std::vector for "requests".
1078 (struct load_progress_data): Add initializers.
1079 (load_section_callback): Update. Use "new".
1080 (clear_memory_write_data): Remove.
1081 (generic_load): Update.
1082
1083 2018-02-27 Alan Hayward <alan.hayward@arm.com>
1084
1085 * arch/aarch64.h: Use common/tdesc.h.
1086
1087 2018-02-26 Maciej W. Rozycki <macro@mips.com>
1088
1089 * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD
1090 architecture with a 64-bit ABI.
1091
1092 2018-02-26 Maciej W. Rozycki <macro@mips.com>
1093
1094 * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination
1095 ahead of target description loading.
1096
1097 2018-02-26 Tom Tromey <tom@tromey.com>
1098
1099 * stack.c (backtrace_command_1): Update.
1100 * python/python-internal.h (gdbpy_apply_frame_filter): Change type
1101 of "flags".
1102 * python/py-framefilter.c (py_print_frame)
1103 (gdbpy_apply_frame_filter): Change type of "flags".
1104 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type
1105 of "flags".
1106 (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals)
1107 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update.
1108 * extension.h (enum frame_filter_flag): Rename from
1109 frame_filter_flags.
1110 (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE.
1111 (apply_ext_lang_frame_filter): Change type of "flags".
1112 * extension.c (apply_ext_lang_frame_filter): Change type of
1113 "flags".
1114 * extension-priv.h (struct extension_language_ops)
1115 <apply_frame_filter>: Change type of "flags".
1116
1117 2018-02-26 Tom Tromey <tom@tromey.com>
1118
1119 PR python/16497:
1120 * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag. Fix
1121 off-by-one in py_end computation.
1122 * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle
1123 PRINT_MORE_FRAMES.
1124 * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New
1125 constant.
1126
1127 2018-02-26 Tom Tromey <tom@tromey.com>
1128
1129 * dwarf2read.c (struct variant_field): New.
1130 (struct nextfield) <variant>: New field.
1131 (dwarf2_add_field): Handle DW_TAG_variant_part.
1132 (dwarf2_attach_fields_to_type): Attach a discriminant_info to a
1133 discriminated union.
1134 (read_structure_type): Handle DW_TAG_variant_part.
1135 (handle_struct_member_die): New function, extracted from
1136 process_structure_scope. Handle DW_TAG_variant.
1137 (process_structure_scope): Handle discriminated unions. Call
1138 handle_struct_member_die.
1139
1140 2018-02-26 Tom Tromey <tom@tromey.com>
1141
1142 * rust-lang.h (rust_last_path_segment): Declare.
1143 * rust-lang.c (rust_last_path_segment): Now public. Change
1144 contract.
1145 (struct disr_info): Remove.
1146 (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL)
1147 (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged)
1148 (rust_get_disr_info, rust_tuple_variant_type_p): Remove.
1149 (rust_enum_p, rust_enum_variant): New function.
1150 (rust_underscore_fields): Remove "offset" parameter.
1151 (rust_print_enum): New function.
1152 (rust_val_print) <TYPE_CODE_UNION>: Remove enum code.
1153 <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate.
1154 (rust_print_struct_def): Add "for_rust_enum" parameter. Handle
1155 enums.
1156 (rust_internal_print_type): New function, from rust_print_type.
1157 Remove enum code.
1158 (rust_print_type): Call rust_internal_print_type.
1159 (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>:
1160 Update enum handling.
1161 * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field.
1162 (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum)
1163 (rust_union_quirks): New functions.
1164 (process_full_comp_unit, process_full_type_unit): Call
1165 rust_union_quirks.
1166 (process_structure_scope): Update rust_unions if necessary.
1167
1168 2018-02-26 Tom Tromey <tom@tromey.com>
1169
1170 * value.h (value_union_variant): Declare.
1171 * valops.c (value_union_variant): New function.
1172 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro.
1173 (struct discriminant_info): New.
1174 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New
1175 enumerator.
1176 (struct main_type) <flag_discriminated_union>: New field.
1177
1178 2018-02-26 Tom Tromey <tom@tromey.com>
1179
1180 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1181 unittests/unpack-selftests.c.
1182 * unittests/unpack-selftests.c: New file.
1183 * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases.
1184
1185 2018-02-26 Yao Qi <yao.qi@linaro.org>
1186
1187 * dwarf2read.c (struct partial_die_info) <read>: New method.
1188 (read_partial_die): Remove the declaration.
1189 (load_partial_dies): Update.
1190 (partial_die_info::partial_die_info):
1191 (read_partial_die): Change it to partial_die_info::read.
1192
1193 2018-02-26 Yao Qi <yao.qi@linaro.org>
1194
1195 * dwarf2read.c (struct partial_die_info) <fixup>: New method.
1196 (fixup_partial_die): Remove declaration.
1197 (scan_partial_symbols): Update.
1198 (partial_die_parent_scope): Likewise.
1199 (partial_die_full_name): Likewise.
1200 (fixup_partial_die): Change it to partial_die_info::fixup.
1201
1202 2018-02-26 Yao Qi <yao.qi@linaro.org>
1203
1204 * dwarf2read.c (read_partial_die): Update the declaration.
1205 (load_partial_dies): Caller update.
1206 (read_partial_die): Remove one argument abbrev_len.
1207
1208 2018-02-26 Yao Qi <yao.qi@linaro.org>
1209
1210 * dwarf2read.c (struct partial_die_info): Add ctor, delete
1211 assignment operator.
1212 (load_partial_dies): Use ctor and copy ctor.
1213 (read_partial_die): Update.
1214 (dwarf2_cu::find_partial_die): Use ctor.
1215
1216 2018-02-26 Yao Qi <yao.qi@linaro.org>
1217
1218 * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method.
1219 (find_partial_die_in_comp_unit): Change it to
1220 dwarf2_cu::find_partial_die.
1221 (find_partial_die): Update.
1222
1223 2018-02-26 Yao Qi <yao.qi@linaro.org>
1224
1225 * dwarf2read.c (read_partial_die): Remove the code checking abbrev
1226 is NULL.
1227
1228 2018-02-26 Yao Qi <yao.qi@linaro.org>
1229
1230 * dwarf2read.c (load_partial_dies): Move the location of XOBNEW.
1231
1232 2018-02-26 Alan Hayward <alan.hayward@arm.com>
1233
1234 * arch/amd64.h: Use common/tdesc.h.
1235 * arch/i386.c: Likewise.
1236 * arch/i386.h: Likewise.
1237 * arch/tic6x.c: Likewise.
1238 * arch/tdesc.h: Move file from here...
1239 * common/tdesc.h: ...to here.
1240 * features/aarch64-core.c: Regenerate.
1241 * features/aarch64-fpu.c: Regenerate.
1242 * features/i386/32bit-avx.c: Regenerate.
1243 * features/i386/32bit-avx512.c: Regenerate.
1244 * features/i386/32bit-core.c: Regenerate.
1245 * features/i386/32bit-linux.c: Regenerate.
1246 * features/i386/32bit-mpx.c: Regenerate.
1247 * features/i386/32bit-pkeys.c: Regenerate.
1248 * features/i386/32bit-sse.c: Regenerate.
1249 * features/i386/64bit-avx.c: Regenerate.
1250 * features/i386/64bit-avx512.c: Regenerate.
1251 * features/i386/64bit-core.c: Regenerate.
1252 * features/i386/64bit-linux.c: Regenerate.
1253 * features/i386/64bit-mpx.c: Regenerate.
1254 * features/i386/64bit-pkeys.c: Regenerate.
1255 * features/i386/64bit-segments.c: Regenerate.
1256 * features/i386/64bit-sse.c: Regenerate.
1257 * features/i386/x32-core.c: Regenerate.
1258 * features/tic6x-c6xp.c: Regenerate.
1259 * features/tic6x-core.c: Regenerate.
1260 * features/tic6x-gp.c: Regenerate.
1261 * target-descriptions.c: Use common/tdesc.h.
1262 * target-descriptions.h: Likewise.
1263
1264 2018-02-24 Tom Tromey <tom@tromey.com>
1265
1266 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
1267 (try_thread_db_load_from_dir, thread_db_load_search): Use
1268 std::string.
1269 (info_auto_load_libthread_db_compare): Return bool. Change
1270 argument types.
1271 (info_auto_load_libthread_db): Use std::vector, std::string.
1272 Remove cleanups.
1273
1274 2018-02-24 Tom Tromey <tom@tromey.com>
1275
1276 * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a
1277 std::string.
1278 * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a
1279 std::string*.
1280 * gdbarch.c: Rebuild.
1281 * gdbarch.h: Rebuild.
1282 * breakpoint.c (check_fast_tracepoint_sals): Use std::string.
1283 * arch-utils.h (default_fast_tracepoint_valid_at): Update.
1284 * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a
1285 std::string*.
1286
1287 2018-02-23 Simon Marchi <simon.marchi@polymtl.ca>
1288
1289 * gdbtypes.h (sect_offset): Change type to uint64_t.
1290 (sect_offset_str): New function.
1291 * dwarf2read.c (create_addrmap_from_aranges): Use
1292 sect_offset_str.
1293 (error_check_comp_unit_head): Likewise.
1294 (create_debug_type_hash_table): Likewise.
1295 (read_cutu_die_from_dwo): Likewise.
1296 (init_cutu_and_read_dies): Likewise.
1297 (init_cutu_and_read_dies_no_follow): Likewise.
1298 (process_psymtab_comp_unit_reader): Likewise.
1299 (partial_die_parent_scope): Likewise.
1300 (peek_die_abbrev): Likewise.
1301 (process_queue): Likewise.
1302 (dwarf2_physname): Likewise.
1303 (read_namespace_alias): Likewise.
1304 (read_import_statement): Likewise.
1305 (create_dwo_cu_reader): Likewise.
1306 (create_cus_hash_table): Likewise.
1307 (lookup_dwo_cutu): Likewise.
1308 (inherit_abstract_dies): Likewise.
1309 (read_func_scope): Likewise.
1310 (read_call_site_scope): Likewise.
1311 (dwarf2_add_member_fn): Likewise.
1312 (read_common_block): Likewise.
1313 (read_module_type): Likewise.
1314 (read_typedef): Likewise.
1315 (read_subrange_type): Likewise.
1316 (load_partial_dies): Likewise.
1317 (read_partial_die): Likewise.
1318 (find_partial_die): Likewise.
1319 (read_str_index): Likewise.
1320 (dwarf2_string_attr): Likewise.
1321 (build_error_marker_type): Likewise.
1322 (lookup_die_type): Likewise.
1323 (dump_die_shallow): Likewise.
1324 (follow_die_ref): Likewise.
1325 (dwarf2_fetch_die_loc_sect_off): Likewise.
1326 (dwarf2_fetch_constant_bytes): Likewise.
1327 (follow_die_sig): Likewise.
1328 (get_signatured_type): Likewise.
1329 (get_DW_AT_signature_type): Likewise.
1330 (dwarf2_find_containing_comp_unit): Likewise.
1331 (set_die_type): Likewise.
1332
1333 2018-02-21 John Baldwin <jhb@FreeBSD.org>
1334
1335 * arch/aarch64.c: Include "common-defs.h".
1336 * arch/amd64.c: Likewise.
1337 * arch/i386.c: Likewise.
1338
1339 2018-02-21 Tom Tromey <tom@tromey.com>
1340
1341 * value.h: (extract_field_op): Update.
1342 * eval.c (extract_field_op): Return a const char *.
1343 * expression.h (parse_expression_for_completion): Update.
1344 * completer.c (complete_expression): Update.
1345 (add_struct_fields): Make fieldname const.
1346 * parse.c (expout_completion_name): Now a unique_xmalloc_ptr.
1347 (mark_completion_tag, parse_exp_in_context_1): Update.
1348 (parse_expression_for_completion): Change "name" to
1349 unique_xmalloc_ptr*.
1350
1351 2018-02-21 Tom Tromey <tom@tromey.com>
1352
1353 * infcall.c (call_function_by_hand_dummy): Use std::vector.
1354
1355 2018-02-21 Yao Qi <yao.qi@linaro.org>
1356
1357 * avr-tdep.c (avr_read_pc): Change parameter type to
1358 readable_regcache.
1359 * gdbarch.sh (read_pc): Likewise.
1360 * gdbarch.c: Re-generated.
1361 * gdbarch.h: Re-generated.
1362 * hppa-tdep.c (hppa_read_pc): Change parameter type to
1363 readable_regcache.
1364 * ia64-tdep.c (ia64_read_pc): Likewise.
1365 * mips-tdep.c (mips_read_pc): Likewise.
1366 * spu-tdep.c (spu_read_pc): Likewise.
1367
1368 2018-02-21 Yao Qi <yao.qi@linaro.org>
1369
1370 * Makefile.in (COMMON_SFILES): Add regcache-dump.c
1371 * regcache-dump.c: New file.
1372 * regcache.c: Move register_dump to regcache-dump.c.
1373 (maintenance_print_registers): Likewise.
1374 (maintenance_print_raw_registers): Likewise.
1375 (maintenance_print_cooked_registers): Likewise.
1376 (maintenance_print_register_groups): Likewise.
1377 (maintenance_print_remote_registers): Likewise.
1378 (_initialize_regcache): Likewise.
1379 * regcache.h (register_dump): Moved from regcache.c.
1380
1381 2018-02-21 Yao Qi <yao.qi@linaro.org>
1382
1383 * regcache.c (regcache::regcache): Update.
1384 (regcache::invalidate): Move it to detached_regcache::invalidate.
1385 (get_thread_arch_aspace_regcache): Update.
1386 (regcache::raw_update): Update.
1387 (regcache::cooked_read): Remove some code.
1388 (regcache::cooked_read_value): Likewise.
1389 (regcache::raw_write): Remove assert on m_readonly_p.
1390 (regcache::raw_supply_integer): Move it to
1391 detached_regcache::raw_supply_integer.
1392 (regcache::raw_supply_zeroed): Likewise.
1393 * regcache.h (detached_regcache) <raw_supply_integer>: New
1394 declaration.
1395 <raw_supply_zeroed, invalidate>: Likewise.
1396 (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed.
1397 <invalidate>: Likewise.
1398 <m_readonly_p>: Removed.
1399
1400 2018-02-21 Yao Qi <yao.qi@linaro.org>
1401
1402 * infcmd.c (get_return_value): Let stop_regs point to
1403 get_current_regcache.
1404 * regcache.c (regcache::regcache): Remove.
1405 (register_dump_reg_buffer): New class.
1406 (regcache_print): Adjust.
1407 * regcache.h (regcache): Remove constructors.
1408
1409 2018-02-21 Yao Qi <yao.qi@linaro.org>
1410
1411 * regcache.c (class register_dump): New class.
1412 (register_dump_regcache, register_dump_none): New class.
1413 (register_dump_remote, register_dump_groups): New class.
1414 (regcache_print): Update.
1415 * regcache.h (regcache_dump_what): Move it to regcache.c.
1416 (regcache) <dump>: Remove.
1417
1418 2018-02-21 Yao Qi <yao.qi@linaro.org>
1419
1420 * jit.c (struct jit_unwind_private) <regcache>: Change its type to
1421 reg_buffer_rw *.
1422 (jit_unwind_reg_set_impl): Call raw_supply.
1423 (jit_frame_sniffer): Use reg_buffer_rw.
1424 * record-full.c (record_full_core_regbuf): Change its type.
1425 (record_full_core_open_1): Use reg_buffer_rw.
1426 (record_full_close): Likewise.
1427 (record_full_core_fetch_registers): Use regcache->raw_supply.
1428 (record_full_core_store_registers): Likewise.
1429 * regcache.c (regcache::get_register_status): Move it to
1430 reg_buffer.
1431 (regcache_raw_set_cached_value): Remove.
1432 (regcache::raw_set_cached_value): Remove.
1433 (regcache::raw_write): Call raw_supply.
1434 (regcache::raw_supply): Move it to reg_buffer_rw.
1435 * regcache.h (regcache_raw_set_cached_value): Remove.
1436 (reg_buffer_rw): New class.
1437
1438 2018-02-21 Yao Qi <yao.qi@linaro.org>
1439
1440 * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use
1441 readonly_detached_regcache.
1442 (dummy_frame_prev_register): Use regcache->cooked_read.
1443 * frame.c (frame_save_as_regcache): Change return type.
1444 (frame_pop): Update.
1445 * frame.h (frame_save_as_regcache): Update declaration.
1446 * inferior.h (get_infcall_suspend_state_regcache): Update
1447 declaration.
1448 * infrun.c (infcall_suspend_state) <registers>: use
1449 readonly_detached_regcache.
1450 (save_infcall_suspend_state): Don't use regcache_dup.
1451 (get_infcall_suspend_state_regcache): Change return type.
1452 * linux-fork.c (struct fork_info) <savedregs>: Change to
1453 readonly_detached_regcache.
1454 <pc>: New field.
1455 (fork_save_infrun_state): Don't use regcache_dup.
1456 (info_checkpoints_command): Adjust.
1457 * mi/mi-main.c (register_changed_p): Update declaration.
1458 (mi_cmd_data_list_changed_registers): Use
1459 readonly_detached_regcache.
1460 (register_changed_p): Change parameter type to
1461 readonly_detached_regcache.
1462 * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use
1463 readonly_detached_regcache.
1464 (ppu2spu_sniffer): Construct a new readonly_detached_regcache.
1465 * regcache.c (readonly_detached_regcache::readonly_detached_regcache):
1466 New.
1467 (regcache::save): Move it to reg_buffer.
1468 (regcache::restore): Change parameter type.
1469 (regcache_dup): Remove.
1470 * regcache.h (reg_buffer) <save>: New method.
1471 (readonly_detached_regcache): New class.
1472 * spu-tdep.c (spu2ppu_cache) <regcache>: Use
1473 readonly_detached_regcache.
1474 (spu2ppu_sniffer): Construct a new readonly_detached_regcache.
1475
1476 2018-02-21 Yao Qi <yao.qi@linaro.org>
1477
1478 * frame.c (frame_save_as_regcache): Use regcache method save.
1479 (frame_pop): Use regcache method restore.
1480 * infrun.c (restore_infcall_suspend_state): Likewise.
1481 * linux-fork.c (fork_load_infrun_state): Likewise.
1482 * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method
1483 save.
1484 * regcache.c (regcache_save): Remove.
1485 (regcache::restore): More asserts.
1486 (regcache_cpy): Remove.
1487 * regcache.h (regcache_save): Remove the declaration.
1488 (regcache::restore): Move from private to public.
1489 Remove the friend declaration of regcache_cpy.
1490 (regcache_cpy): Remove declaration.
1491
1492 2018-02-21 Yao Qi <yao.qi@linaro.org>
1493
1494 * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change
1495 parameter type to 'readable_regcache *'.
1496 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
1497 * arm-tdep.c (arm_neon_quad_read): Likewise.
1498 (arm_pseudo_read): Likewise.
1499 * avr-tdep.c (avr_pseudo_register_read): Likewise.
1500 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
1501 * frv-tdep.c (frv_pseudo_register_read): Likewise.
1502 * gdbarch.c: Re-generated.
1503 * gdbarch.h: Re-generated.
1504 * gdbarch.sh (pseudo_register_read): Change parameter type to
1505 'readable_regcache *'.
1506 (pseudo_register_read_value): Likewise.
1507 * h8300-tdep.c (pseudo_from_raw_register): Likewise.
1508 (h8300_pseudo_register_read): Likewise.
1509 * hppa-tdep.c (hppa_pseudo_register_read): Likewise.
1510 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
1511 (i386_pseudo_register_read_into_value): Likewise.
1512 (i386_pseudo_register_read_value): Likewise.
1513 * i386-tdep.h (i386_pseudo_register_read_into_value): Update
1514 declaration.
1515 * ia64-tdep.c (ia64_pseudo_register_read): Likewise.
1516 * m32c-tdep.c (m32c_raw_read): Likewise.
1517 (m32c_read_flg): Likewise.
1518 (m32c_banked_register): Likewise.
1519 (m32c_banked_read): Likewise.
1520 (m32c_sb_read): Likewise.
1521 (m32c_part_read): Likewise.
1522 (m32c_cat_read): Likewise.
1523 (m32c_r3r2r1r0_read): Likewise.
1524 (m32c_pseudo_register_read): Likewise.
1525 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
1526 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
1527 (mep_pseudo_cr64_read): Likewise.
1528 (mep_pseudo_register_read): Likewise.
1529 * mips-tdep.c (mips_pseudo_register_read): Likewise.
1530 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
1531 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
1532 * regcache.c (regcache::raw_read): Move it to readable_regcache.
1533 (regcache::cooked_read): Likewise.
1534 (regcache::cooked_read_value): Likewise.
1535 (regcache_cooked_read_signed):
1536 (regcache::cooked_read): Likewise.
1537 * regcache.h (readable_regcache): New class.
1538 (regcache): Inherit readable_regcache. Move some methods to
1539 readable_regcache.
1540 * rl78-tdep.c (rl78_pseudo_register_read): Change
1541 parameter type to 'readable_regcache *'.
1542 * rs6000-tdep.c (do_regcache_raw_read): Remove.
1543 (e500_pseudo_register_read): Change parameter type to
1544 'readable_regcache *'.
1545 (dfp_pseudo_register_read): Likewise.
1546 (vsx_pseudo_register_read): Likewise.
1547 (efpr_pseudo_register_read): Likewise.
1548 * s390-tdep.c (s390_pseudo_register_read): Likewise.
1549 * sh-tdep.c (sh_pseudo_register_read): Likewise.
1550 * sh64-tdep.c (pseudo_register_read_portions): Likewise.
1551 (sh64_pseudo_register_read): Likewise.
1552 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
1553 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
1554 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
1555 (spu_pseudo_register_read): Likewise.
1556 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
1557 (xtensa_pseudo_register_read): Likewise.
1558
1559 2018-02-21 Yao Qi <yao.qi@linaro.org>
1560
1561 * regcache.c (regcache::regcache): Call reg_buffer ctor.
1562 (regcache::arch): Move it to reg_buffer::arch.
1563 (regcache::register_buffer): Likewise.
1564 (regcache::assert_regnum): Likewise.
1565 (regcache::num_raw_registers): Likewise.
1566 * regcache.h (reg_buffer): New class.
1567 (regcache): Inherit reg_buffer.
1568
1569 2018-02-20 Simon Marchi <simon.marchi@ericsson.com>
1570
1571 * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
1572 gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF.
1573
1574 2018-02-20 Markus Metzger <markus.t.metzger@intel.com>
1575
1576 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp.
1577
1578 2018-02-19 Alan Hayward <alan.hayward@arm.com>
1579
1580 * Makefile.in: (COMMON_SFILES): Add common/*.c files.
1581 (SFILES): Remove common/*.c files.
1582 (COMMON_OBS): Remove some *.o files built from common/*.c files.
1583 * common/common.host: Add common reference.
1584 * configure.ac: Likewise.
1585 * configure: Regenerate.
1586
1587 2018-02-16 Yao Qi <yao.qi@linaro.org>
1588
1589 * block.c (block_namespace_info): Inherit allocate_on_obstack.
1590 (block_initialize_namespace): Use new.
1591 * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack.
1592 (dwarf2_free_objfile): Use delete.
1593 * gdbtypes.c (type_pair): Inherit allocate_on_obstack.
1594 (copy_type_recursive): Use new.
1595 * gdb_obstack.h (allocate_on_obstack): New.
1596
1597 2018-02-15 Yao Qi <yao.qi@linaro.org>
1598
1599 PR gdb/22849
1600 * inferior.c (exit_inferior_1): Reset inf->control.
1601
1602 2018-02-15 Joel Brobecker <brobecker@adacore.com>
1603
1604 * ada-lang.c (ada_to_fixed_value_create): Delete advance
1605 declaration.
1606
1607 2018-02-14 Pedro Alves <palves@redhat.com>
1608
1609 * frame-unwind.c (frame_unwind_try_unwinder): Always call
1610 frame_cleanup_after_sniffer on exception.
1611
1612 2018-02-14 Tom Tromey <tom@tromey.com>
1613
1614 * solist.h (struct target_so_ops) <bfd_open>: Make pathname
1615 const.
1616 (solib_bfd_open): Make pathname const.
1617 * solib.c (solib_bfd_open): Make pathname const.
1618 * solib-spu.c (spu_bfd_fopen): Make name const.
1619 (spu_bfd_open): Make pathname const.
1620 * solib-darwin.c (darwin_bfd_open): Make pathname const.
1621 * solib-aix.c (solib_aix_bfd_open): Make pathname const.
1622
1623 2018-02-14 Tom Tromey <tom@tromey.com>
1624
1625 * symfile.c (symfile_bfd_open): Update.
1626 * source.h (openp, source_full_path_of, find_and_open_source):
1627 Change argument type to unique_xmalloc_ptr.
1628 * source.c (openp): Take a unique_xmalloc_ptr.
1629 (source_full_path_of, find_and_open_source): Likewise.
1630 (open_source_file, symtab_to_fullname): Update.
1631 * solist.h (struct target_so_ops) <find_and_open_solib>: Take a
1632 unique_xmalloc_ptr.
1633 * solib.c (solib_find_1): Use unique_xmalloc_ptr.
1634 (exec_file_find): Update.
1635 * psymtab.c (psymtab_to_fullname): Update.
1636 * nto-tdep.h (nto_find_and_open_solib): Update.
1637 * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a
1638 unique_xmalloc_ptr.
1639 * exec.c (exec_file_attach): Update.
1640 * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr.
1641 * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr.
1642
1643 2018-02-14 Tom Tromey <tom@tromey.com>
1644
1645 * solib.c: Include source.h.
1646 * nto-tdep.c: Include source.h.
1647 * mi/mi-cmd-env.c: Include source.h.
1648 * infcmd.c: Include source.h.
1649 * exec.c: Include source.h.
1650 * defs.h (enum openp_flag, openp, source_full_path_of, mod_path)
1651 (add_path, directory_switch, source_path, init_source_path): Move
1652 declarations...
1653 * source.h (enum openp_flag, openp, source_full_path_of, mod_path)
1654 (add_path, directory_switch, source_path, init_source_path):
1655 ...here.
1656
1657 2018-02-14 Tom Tromey <tom@tromey.com>
1658
1659 * solist.h (exec_file_find, solib_find): Return
1660 unique_xmalloc_ptr.
1661 (solib_bfd_fopen): Take a const char *.
1662 * solib.c (solib_find_1): Return unique_xmalloc_ptr.
1663 (exec_file_find, solib_find): Likewise.
1664 (solib_bfd_fopen): Do not take ownership of "pathname".
1665 (solib_bfd_open): Use unique_xmalloc_ptr.
1666 * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr.
1667 * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr.
1668 * infrun.c (follow_exec): Use unique_xmalloc_ptr.
1669 * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr.
1670
1671 2018-02-14 Joel Brobecker <brobecker@adacore.com>
1672
1673 * ada-lang.c (name_match_type_from_name): Remove reference to
1674 ada_name_for_lookup in function's documentation.
1675 * ada-lang.h (ada_name_for_lookup): Delete declaration.
1676
1677 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
1678
1679 * defs.h (enum openp_flags): New enum.
1680 (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH):
1681 Move to enum openp_flags.
1682 (openp_flags): New enum flags.
1683 (openp): Change parameter type to openp_flags.
1684 * source.c (openp): Change parameter type to openp_flags.
1685 * cli/cli-cmds.c (find_and_open_script): Use openp_flags.
1686 * dwarf2read.c (try_open_dwop_file): Use openp_flags.
1687
1688 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
1689
1690 * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show
1691 per-command.
1692
1693 2018-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
1694
1695 * dwarf2read.c (dwarf2_release_queue): Delete function, move body
1696 into...
1697 (class dwarf2_queue_guard): ...the destructor of this new class.
1698 (dw2_do_instantiate_symtab): Create instance of the new class
1699 dwarf2_queue_guard, remove cleanup.
1700
1701 2018-02-09 Tom Tromey <tom@tromey.com>
1702
1703 * source.c (find_source_lines): Don't reference past the end of
1704 the vector.
1705
1706 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
1707
1708 * remote.c (remote_btrace_maybe_reopen): Change error message.
1709 * btrace.c (btrace_enable): Likewise.
1710 (parse_xml_btrace): Likewise.
1711 (parse_xml_btrace_conf): Likewise.
1712
1713 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
1714
1715 * nat/linux-btrace.c (diagnose_perf_event_open_fail): New.
1716 (linux_enable_pt, linux_enable_bts): Call
1717 diagnose_perf_event_open_fail.
1718
1719 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
1720
1721 * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message.
1722 Remove parameter and change return type. Update callers. Move it.
1723 (linux_enable_bts, linux_enable_pt): Improve error message.
1724 (linux_enable_pt): Remove zero buffer size check.
1725 (linux_enable_btrace): Improve error messages. Remove NULL return
1726 check.
1727
1728 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
1729
1730 * btrace.c (btrace_enable): Remove target_supports_btrace call.
1731 * nat/linux-btrace.c (perf_event_pt_event_type): Move.
1732 (kernel_supports_bts, kernel_supports_pt, linux_supports_bts)
1733 (linux_supports_pt, linux_supports_btrace): Remove.
1734 (linux_enable_bts): Call cpu_supports_bts.
1735 * nat/linux-btrace.h (linux_supports_btrace): Remove.
1736 * remote.c (remote_supports_btrace): Remove.
1737 (init_remote_ops): Remove remote_supports_btrace.
1738 * target-delegates.c: Regenerated.
1739 * target.c (target_supports_btrace): Remove.
1740 * target.h (target_ops) <to_supports_btrace>: Remove
1741 (target_supports_btrace): Remove.
1742 * x86-linux-nat.c (x86_linux_create_target): Remove
1743 linux_supports_btrace.
1744
1745 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
1746
1747 * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling
1748 btrace failed.
1749 * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling
1750 exception and use message in own exception.
1751
1752 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
1753
1754 * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h.
1755 (perf_event_pt_event_type): Use gdb_file_up.
1756 (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr,
1757 scoped_fd, and scoped_mmap.
1758
1759 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
1760
1761 * common/scoped_mmap.h: New.
1762 * unittests/scoped_mmap-selftest.c: New.
1763 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1764 unittests/scoped_mmap-selftest.c.
1765
1766 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
1767
1768 * common/scoped_fd.h: New.
1769 * unittests/scoped_fd-selftest.c: New.
1770 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1771 unittests/scoped_fd-selftest.c.
1772
1773 2018-02-09 Tom Tromey <tom@tromey.com>
1774
1775 * auto-load.c (auto_load_section_scripts): Use
1776 gdb::unique_xmalloc_ptr.
1777
1778 2018-02-09 Tom Tromey <tom@tromey.com>
1779
1780 * auto-load.c (execute_script_contents): Use std::string.
1781
1782 2018-02-09 Joel Brobecker <brobecker@adacore.com>
1783
1784 * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new
1785 Python function, rather than a new command.
1786
1787 2018-02-08 Tom Tromey <tom@tromey.com>
1788
1789 * solib.c (solib_find_1): Use std::string.
1790 (solib_bfd_fopen): Use unique_xmalloc_ptr.
1791
1792 2018-02-08 Tom Tromey <tom@tromey.com>
1793
1794 * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr.
1795
1796 2018-02-08 Tom Tromey <tom@tromey.com>
1797
1798 * source.c (find_source_lines): Use gdb::def_vector.
1799
1800 2018-02-08 Tom Tromey <tom@tromey.com>
1801
1802 * macrocmd.c (struct temporary_macro_definition): New.
1803 (macro_define_command): Use temporary_macro_definition. Remove
1804 cleanups.
1805 (free_macro_definition_ptr): Remove.
1806
1807 2018-02-08 Tom Tromey <tom@tromey.com>
1808
1809 * macroexp.c (maybe_expand): Use std::string.
1810
1811 2018-02-08 Tom Tromey <tom@tromey.com>
1812
1813 * macroexp.c (struct macro_buffer): Add initializers for some
1814 members.
1815 (init_buffer, init_shared_buffer, free_buffer)
1816 (free_buffer_return_text): Remove.
1817 (macro_buffer): New constructors.
1818 (~macro_buffer): New destructor.
1819 (macro_buffer::set_shared): New method.
1820 (macro_buffer::resize_buffer, macro_buffer::appendc)
1821 (macro_buffer::appendmem): Now methods, not free functions.
1822 (set_token, append_tokens_without_splicing, stringify)
1823 (macro_stringify): Update.
1824 (gather_arguments): Change return type. Remove argc_p argument,
1825 add args_ptr argument. Use std::vector.
1826 (substitute_args): Remove argc argument. Accept std::vector.
1827 (expand): Update. Use std::vector.
1828 (scan, macro_expand, macro_expand_next): Update.
1829
1830 2018-02-08 Tom Tromey <tom@tromey.com>
1831
1832 * symtab.c (default_collect_symbol_completion_matches_break_on):
1833 Use unique_xmalloc_ptr.
1834 * macroscope.h: (sal_macro_scope, user_macro_scope)
1835 (default_macro_scope): Return unique_xmalloc_ptr.
1836 * macroscope.c (sal_macro_scope, user_macro_scope)
1837 (default_macro_scope): Return unique_xmalloc_ptr.
1838 * macroexp.h (macro_expand, macro_expand_once): Return
1839 unique_xmalloc_ptr.
1840 * macroexp.c (macro_expand, macro_expand_once): Return
1841 unique_xmalloc_ptr.
1842 * macrocmd.c (macro_expand_command, macro_expand_once_command)
1843 (info_macro_command, info_macros_command): Use
1844 unique_xmalloc_ptr.
1845 * compile/compile-c-support.c (write_macro_definitions): Use
1846 unique_xmalloc_ptr.
1847 * c-exp.y (c_parse): Use unique_xmalloc_ptr.
1848
1849 2018-02-07 Simon Marchi <simon.marchi@ericsson.com>
1850
1851 * value.c (value_static_field): Assign field type instead of
1852 containing type when returning an optimized out value.
1853
1854 2018-02-06 Yao Qi <yao.qi@linaro.org>
1855
1856 * ft32-tdep.c (ft32_read_pc): Remove.
1857 (ft32_write_pc): Remove.
1858 (ft32_gdbarch_init): Update.
1859 * m32r-tdep.c (m32r_read_pc): Remove.
1860 (m32r_gdbarch_init): Update.
1861 * mep-tdep.c (mep_read_pc): Remove.
1862 (mep_gdbarch_init): Update.
1863 * microblaze-tdep.c (microblaze_write_pc): Remove.
1864 (microblaze_gdbarch_init): Update.
1865 * mn10300-tdep.c (mn10300_read_pc): Remove.
1866 (mn10300_write_pc): Remove.
1867 (mn10300_gdbarch_init): Update.
1868 * moxie-tdep.c (moxie_read_pc): Remove.
1869 (moxie_write_pc): Remove.
1870 (moxie_gdbarch_init): Update.
1871
1872 2018-02-06 Yao Qi <yao.qi@linaro.org>
1873
1874 * expprint.c (print_subexp_standard): Handle
1875 OP_F77_UNDETERMINED_ARGLIST.
1876 (dump_subexp_body_standard): Likewise.
1877
1878 2018-02-05 Alan Hayward <alan.hayward@arm.com>
1879
1880 * target-descriptions.c (tdesc_element_visitor) Add empty
1881 implementations.
1882 (tdesc_type): Move make_gdb_type from here.
1883 (tdesc_type_builtin): Likewise.
1884 (tdesc_type_vector): Likewise.
1885 (tdesc_type_with_fields): Move make_gdb_type_ functions from here.
1886 (make_gdb_type_struct): Move from tdesc_type_with_fields.
1887 (make_gdb_type_union): Likewise.
1888 (make_gdb_type_flags): Likewise.
1889 (make_gdb_type_enum): Likewise.
1890 (make_gdb_type): New function.
1891 (tdesc_register_type): Use static make_gdb_type.
1892
1893 2018-02-05 Ruslan Kabatsayev <b7.10110111@gmail.com>
1894
1895 * infcmd.c (default_print_one_register_info): Align natural-format
1896 column values consistently one under another.
1897 (pad_to_column): New function.
1898
1899 2018-02-05 Joel Brobecker <brobecker@adacore.com>
1900
1901 * dwarf2read.c (dwarf2_physname): Move commment.
1902
1903 2018-02-01 Leszek Swirski <leszeks@google.com>
1904
1905 * varobj.c (varobj_formatted_print_options): Allow recursive
1906 pretty printing if pretty printing is enabled.
1907
1908 2018-02-01 Leszek Swirski <leszeks@google.com>
1909
1910 * c-exp.y (lex_one_token, classify_name, yylex): Don't classify
1911 names after a structop as a filename.
1912
1913 2018-02-01 Yao Qi <yao.qi@linaro.org>
1914
1915 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it.
1916 (arm_record_coproc_data_proc): Likewise.
1917
1918 2018-02-01 Yao Qi <yao.qi@linaro.org>
1919
1920 * arm-tdep.c (arm_record_extension_space): Change ret to signed.
1921
1922 2018-01-31 Nikola Prica <nikola.prica@rt-rk.com>
1923
1924 * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
1925 assign shifted lr_reg to fdata->lr_register when lr_reg is set.
1926
1927 2018-01-31 Pedro Alves <palves@redhat.com>
1928
1929 * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter.
1930 * inflow.c (child_terminal_save_inferior): Wrap reference to
1931 tcgetpgrp in HAVE_TERMIOS_H.
1932 (child_interrupt, child_pass_ctrlc): Wrap references to signal in
1933 _WIN32.
1934 * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and
1935 always iterate over all inferiors.
1936 (gdbsim_cntrl_c): Adjust.
1937 * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter.
1938
1939 2018-01-31 Joel Brobecker <brobecker@adacore.com>
1940
1941 * gdbtypes.c (lookup_array_range_type): Make sure the array's
1942 index type is objfile-owned if the element type is as well.
1943
1944 2018-01-31 Joel Brobecker <brobecker@adacore.com>
1945
1946 GDB 8.1 released.
1947
1948 2018-01-30 Philipp Rudo <prudo@linux.vnet.ibm.com>
1949
1950 * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and
1951 "features/s390x-linux64.c".
1952 (_initialize_s390_linux_tdep): Remove initialization of tdescs
1953 s390_linux32 and s390x_linux64.
1954 (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set
1955 default tdesc.
1956 * s390-tdep.c: Include "features/s390-linux32.c" and
1957 "features/s390x-linux64.c".
1958 (s390_tdesc_valid): Add check for tdesc_has_registers.
1959 (s390_gdbarch_init): Make sure there is always a valid tdesc.
1960 (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and
1961 tdesc_s390x_linux64.
1962 * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and
1963 tdesc_s390x_linux64 to...
1964 * s390-tdep.h: ...here.
1965
1966 2018-01-30 Pedro Alves <palves@redhat.com>
1967
1968 PR gdb/13211
1969 * config.in, configure: Regenerate.
1970 * configure.ac: Check for getpgid.
1971 * go32-nat.c (go32_pass_ctrlc): New.
1972 (go32_target): Install it.
1973 * inf-child.c (inf_child_target): Install
1974 child_terminal_save_inferior, child_pass_ctrlc and
1975 child_interrupt.
1976 * inf-ptrace.c (inf_ptrace_interrupt): Delete.
1977 (inf_ptrace_target): No longer install it.
1978 * infcmd.c (interrupt_target_1): Adjust.
1979 * inferior.h (child_terminal_save_inferior, child_pass_ctrlc)
1980 (child_interrupt): Declare.
1981 (inferior::terminal_state): New.
1982 * inflow.c (struct terminal_info): Update comments.
1983 (inferior_process_group): Delete.
1984 (terminal_is_ours): Delete.
1985 (gdb_tty_state): New.
1986 (child_terminal_init): Adjust.
1987 (is_gdb_terminal, sharing_input_terminal_1)
1988 (sharing_input_terminal): New functions.
1989 (child_terminal_inferior): Adjust. Use sharing_input_terminal.
1990 Set the process's actual process group in the foreground if
1991 possible. Handle is_ours_for_output/is_ours distinction. Don't
1992 mark terminal as the inferior's if not sharing GDB's terminal.
1993 Don't check attach_flag.
1994 (child_terminal_ours_for_output, child_terminal_ours): Adjust to
1995 pass down a target_terminal_state.
1996 (child_terminal_save_inferior): New, factored out from ...
1997 (child_terminal_ours_1): ... this. Handle
1998 target_terminal_state::is_ours_for_output.
1999 (child_interrupt, child_pass_ctrlc): New.
2000 (inflow_inferior_exit): Clear the inferior's terminal_state.
2001 (copy_terminal_info): Copy the inferior's terminal state.
2002 (_initialize_inflow): Remove reference to terminal_is_ours.
2003 * inflow.h (inferior_process_group): Delete.
2004 * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust.
2005 * procfs.c (procfs_target): Don't install procfs_interrupt.
2006 (procfs_interrupt): Delete.
2007 * remote.c (remote_serial_quit_handler): Adjust.
2008 (remote_interrupt): Remove ptid parameter. Adjust.
2009 * target-delegates.c: Regenerate.
2010 * target.c: Include "terminal.h".
2011 (target_terminal::terminal_state): Rename to ...
2012 (target_terminal::m_terminal_state): ... this.
2013 (target_terminal::init): Adjust.
2014 (target_terminal::inferior): Adjust to per-inferior
2015 terminal_state.
2016 (target_terminal::restore_inferior, target_terminal_is_ours_kind): New.
2017 (target_terminal::ours, target_terminal::ours_for_output): Use
2018 target_terminal_is_ours_kind.
2019 (target_interrupt): Remove ptid parameter. Adjust.
2020 (default_target_pass_ctrlc): Adjust.
2021 * target.h (target_ops::to_terminal_save_inferior): New field.
2022 (target_ops::to_interrupt): Remove ptid_t parameter.
2023 (target_interrupt): Remove ptid_t parameter. Update comment.
2024 (target_pass_ctrlc): Update comment.
2025 * target/target.h (target_terminal_state): New scoped enum,
2026 factored out of ...
2027 (target_terminal::terminal_state): ... here.
2028 (target_terminal::inferior): Update comments.
2029 (target_terminal::restore_inferior): New.
2030 (target_terminal::is_inferior, target_terminal::is_ours)
2031 (target_terminal::is_ours_for_output): Adjust.
2032 (target_terminal::scoped_restore_terminal_state): Adjust to
2033 rename, and call restore_inferior() instead of inferior().
2034 (target_terminal::scoped_restore_terminal_state::m_state): Change
2035 type.
2036 (target_terminal::terminal_state): Rename to ...
2037 (target_terminal::m_terminal_state): ... this and change type.
2038
2039 2018-01-30 Pedro Alves <palves@redhat.com>
2040
2041 * linux-nat.c (wait_for_signal): New function.
2042 (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend
2043 directly.
2044 (async_terminal_is_ours)
2045 (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete.
2046 (linux_nat_add_target): Don't override
2047 to_terminal_inferior/to_terminal_ours.
2048
2049 2018-01-29 Sergio Durigan Junior <sergiodj@redhat.com>
2050
2051 * remote.c (remote_follow_fork): Don't call "detach_inferior".
2052
2053 2018-01-28 Simon Marchi <simon.marchi@ericsson.com>
2054
2055 * dwarf2read.c (free_dwo_files): Add forward-declaration.
2056 (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from
2057 dwarf2_per_objfile_free here.
2058 (dwarf2_per_objfile_free): Remove.
2059 (_initialize_dwarf2_read): Don't register
2060 dwarf2_per_objfile_free as a registry cleanup.
2061
2062 2018-01-27 Eli Zaretskii <eliz@gnu.org>
2063
2064 Avoid compilation errors in MinGW native builds
2065
2066 The error is triggered by including python-internal.h, and the
2067 error message is:
2068
2069 In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
2070 from build-gnulib/import/math.h:27,
2071 from d:/usr/Python26/include/pyport.h:235,
2072 from d:/usr/Python26/include/Python.h:58,
2073 from python/python-internal.h:94,
2074 from python/py-arch.c:24:
2075 d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
2076 using ::hypot;
2077 ^~~~~
2078
2079 This happens because Python headers define 'hypot' to expand t
2080 '_hypot' in the Windows builds.
2081 * python/python-internal.h (_hypot) [__MINGW32__]: Define back to
2082 'hypoth'. This avoids a compilation error.
2083
2084 2018-01-26 Alan Hayward <alan.hayward@arm.com>
2085
2086 * MAINTAINERS (Write After Approval): Fix ordering.
2087
2088 2018-01-26 Alan Hayward <alan.hayward@arm.com>
2089
2090 * MAINTAINERS (Write After Approval): Add Alan Hayward.
2091
2092 2018-01-26 Alan Modra <amodra@gmail.com>
2093
2094 * ppc-linux-tdep.c (powerpc32_plt_stub): Make const.
2095 (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so.
2096 Remove nop. Make const. Comment.
2097 (powerpc32_plt_stub_so_2): New.
2098 (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN.
2099 Correct count. Update uses.
2100 (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too.
2101 Move common code reading PLT entry word. Correct
2102 powerpc32_plt_stub PLT address calculation.
2103 * ppc64-tdep.c (ppc64_standard_linkage1): Make const.
2104 (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise.
2105 (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise.
2106 (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise.
2107 (ppc64_standard_linkage8): Likewise.
2108 * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const.
2109 Correct insns description.
2110 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
2111
2112 2018-01-24 Pedro Alves <palves@redhat.com>
2113
2114 GCC PR libstdc++/83906
2115 * gdbtypes.c (operator==(const dynamic_prop &,
2116 const dynamic_prop &)): New.
2117 (operator==(const range_bounds &, const range_bounds &)): New.
2118 (check_types_equal): Use them instead of memcmp.
2119 * gdbtypes.h (operator==(const dynamic_prop &,
2120 const dynamic_prop &)): Declare.
2121 (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare.
2122 (operator==(const range_bounds &, const range_bounds &)): Declare.
2123 (operator!=(const range_bounds &, const range_bounds &)): Declare.
2124
2125 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
2126
2127 * s390-linux-tdep.c (s390_record_address_mask)
2128 (s390_record_calc_disp_common, s390_record_calc_disp)
2129 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
2130 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
2131 (s390_process_record): Move to s390-tdep.c.
2132 (s390_linux_init_abi_any): Adjust.
2133 * s390-tdep.c (s390_record_address_mask)
2134 (s390_record_calc_disp_common, s390_record_calc_disp)
2135 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
2136 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
2137 (s390_process_record): Moved from s390-linux-tdep.c
2138 (s390_gdbarch_init): Adjust.
2139
2140 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
2141
2142 * s390-linux-nat.c (s390-tdep.h): New include.
2143 * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o.
2144 (HFILES_NO_SRCDIR): Add s390-tdep.h.
2145 (ALLDEPFILES): Add s390-tdep.c.
2146 * configure.tgt (s390*-*-linux*): Add s390-tdep.o.
2147 * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to...
2148 * s390-tdep.h: ...this. New file.
2149 * s390-linux-tdep.c (s390-tdep.h): New include.
2150 (_initialize_s390_tdep): Rename to...
2151 (_initialize_s390_linux_tdep): ...this and adjust.
2152 (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep)
2153 (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to
2154 s390-tdep.h.
2155 (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri)
2156 (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy)
2157 (s390_is_partial_instruction, s390_software_single_step)
2158 (is_non_branch_ril, s390_displaced_step_copy_insn)
2159 (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep)
2160 (s390_prologue_data, s390_addr, s390_store, s390_load)
2161 (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue)
2162 (s390_register_call_saved, s390_guess_tracepoint_registers)
2163 (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum)
2164 (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register)
2165 (s390_pseudo_register_name, s390_pseudo_register_type)
2166 (s390_pseudo_register_read, s390_pseudo_register_write)
2167 (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect)
2168 (s390_ax_pseudo_register_push_stack, s390_gen_return_address)
2169 (s390_addr_bits_remove, s390_address_class_type_flags)
2170 (s390_address_class_type_flags_to_name)
2171 (s390_address_class_name_to_type_flags, s390_effective_inner_type)
2172 (s390_function_arg_float, s390_function_arg_vector)
2173 (is_power_of_two, s390_function_arg_integer, s390_arg_state)
2174 (s390_handle_arg, s390_push_dummy_call, s390_dummy_id)
2175 (s390_frame_align, s390_register_return_value, s390_return_value)
2176 (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp)
2177 (s390_unwind_pseudo_register, s390_adjust_frame_regnum)
2178 (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg)
2179 (s390_trad_frame_prev_register, s390_unwind_cache)
2180 (s390_prologue_frame_unwind_cache)
2181 (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache)
2182 (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind)
2183 (s390_stub_unwind_cache, s390_stub_frame_unwind_cache)
2184 (s390_stub_frame_this_id, s390_stub_frame_prev_register)
2185 (s390_stub_frame_sniffer, s390_stub_frame_unwind)
2186 (s390_frame_base_address, s390_local_base_address)
2187 (s390_frame_base, s390_gcc_target_options)
2188 (s390_gnu_triplet_regexp, s390_stap_is_single_operand)
2189 (s390_validate_reg_range, s390_tdesc_valid)
2190 (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to...
2191 * s390-tdep.c: ...this. New file.
2192
2193 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
2194
2195 * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook.
2196 (s390_process_record, s390_gdbarch_tdep_alloc)
2197 (s390_linux_init_abi_any): Use/set new hook.
2198
2199 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
2200
2201 * s390-linux-tdep.c (osabi.h): New include.
2202 (s390_linux_init_abi_31, s390_linux_init_abi_64)
2203 (s390_linux_init_abi_any): New functions.
2204 (s390_gdbarch_init, _initialize_s390_tdep): Adjust.
2205
2206 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
2207
2208 * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
2209 tdesc_has_registers check
2210
2211 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
2212
2213 * s390-linux-tdep.c (s390_tdesc_valid): New function.
2214 (s390_validate_reg_range): New macro.
2215 (s390_gdbarch_init): Adjust.
2216
2217 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
2218
2219 * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
2220 (s390_gdbarch_tdep_alloc): Adjust.
2221 (s390_gdbarch_init): Adjust.
2222
2223 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
2224
2225 * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
2226 <have_tdb>: Change type to bool.
2227 (s390_gdbarch_tdep_alloc): Adjust.
2228 (s390_gdbarch_init): Adjust.
2229
2230 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
2231
2232 * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
2233 (gdbarch_tdep) <have_upper, have_vx>: New fields.
2234 (s390_gdbarch_tdep_alloc): New function.
2235 (s390_gdbarch_init): Allocate tdep at start and use its fields
2236 instead of separate variables.
2237
2238 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
2239
2240 * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
2241 when looking for cached gdbarch and add comment for remaining.
2242
2243 2018-01-22 Pedro Alves <palves@redhat.com>
2244 Sergio Durigan Junior <sergiodj@redhat.com>
2245
2246 * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
2247 case.
2248
2249 2018-01-22 Maciej W. Rozycki <macro@mips.com>
2250
2251 * MAINTAINERS: Update my company e-mail address.
2252
2253 2018-01-22 Yao Qi <yao.qi@linaro.org>
2254
2255 * regcache.c (cooked_write_test): New function.
2256 (_initialize_regcache): Register the test.
2257
2258 2018-01-22 Yao Qi <yao.qi@linaro.org>
2259
2260 * ia64-tdep.c (ia64_pseudo_register_read): Call
2261 regcache->cooked_read instead of regcache_cooked_read_unsigned.
2262 * m32c-tdep.c (m32c_cat_read): Likewise.
2263 (m32c_r3r2r1r0_read): Likewise.
2264 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
2265 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
2266
2267 2018-01-22 Yao Qi <yao.qi@linaro.org>
2268
2269 * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
2270 method raw_read instead of regcache_raw_read.
2271 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
2272 * arm-tdep.c (arm_neon_quad_read): Likewise.
2273 * avr-tdep.c (avr_pseudo_register_read): Likewise.
2274 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
2275 * frv-tdep.c (frv_pseudo_register_read): Likewise.
2276 * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
2277 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
2278 (i386_pseudo_register_read_into_value): Likewise.
2279 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
2280 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
2281 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
2282 * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
2283 * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
2284 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
2285 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
2286 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
2287 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
2288
2289 2018-01-22 Yao Qi <yao.qi@linaro.org>
2290
2291 * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
2292 * configure.tgt: Remove target mt.
2293 * mt-tdep.c: Remove.
2294 * regcache.c (cooked_read_test): Remove the check for mt.
2295
2296 2018-01-22 Yao Qi <yao.qi@linaro.org>
2297
2298 * jit.c (jit_frame_prev_register): Call regcache::cooked_read
2299 instead of gdbarch_pseudo_register_read_value.
2300
2301 2018-01-22 Joel Brobecker <brobecker@adacore.com>
2302
2303 * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
2304 language is Ada.
2305
2306 2018-01-22 Joel Brobecker <brobecker@adacore.com>
2307
2308 * linespec.c (create_sals_line_offset): Remove code that preserved
2309 the symtab_and_line's line number.
2310
2311 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
2312
2313 * varobj.c (varobj_create): Don't set valid_block when creating a
2314 floating varobj.
2315
2316 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
2317
2318 * varobj.c (varobj_create): Remove out of date comment.
2319
2320 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
2321
2322 PR mi/20395
2323 * ada-exp.y (write_var_from_sym): Pass extra parameter when
2324 updating innermost block.
2325 * parse.c (innermost_block_tracker::update): Take extra type
2326 parameter, and check types match before updating innermost block.
2327 (write_dollar_variable): Update innermost block for registers.
2328 * parser-defs.h (enum innermost_block_tracker_type): New enum.
2329 (innermost_block_tracker::innermost_block_tracker): Initialise
2330 m_types member.
2331 (innermost_block_tracker::reset): Take type parameter.
2332 (innermost_block_tracker::update): Take type parameter, and pass
2333 type through as needed.
2334 (innermost_block_tracker::m_types): New member.
2335 * varobj.c (varobj_create): Pass type when reseting innermost
2336 block.
2337
2338 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
2339
2340 * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
2341 * ada-lang.c (resolve_subexp): Likewise.
2342 * breakpoint.c (set_breakpoint_condition) Likewise.
2343 (watch_command_1) Likewise.
2344 * c-exp.y (variable): Likewise.
2345 * d-exp.y (PrimaryExpression): Likewise.
2346 * f-exp.y (variable): Likewise.
2347 * go-exp.y (variable): Likewise.
2348 * m2-exp.y (variable): Likewise.
2349 * objfiles.c (objfile::~objfile): Likewise.
2350 * p-exp.y (variable): Likewise.
2351 * parse.c (innermost_block): Change type.
2352 * parser-defs.h (class innermost_block_tracker): New.
2353 (innermost_block): Change to innermost_block_tracker.
2354 * printcmd.c (display_command): Switch to innermost_block API.
2355 (do_one_display): Likewise.
2356 * rust-exp.y (do_one_display): Likewise.
2357 * symfile.c (clear_symtab_users): Likewise.
2358 * varobj.c (varobj_create): Switch to innermost_block API, replace
2359 use of innermost_block with block stored on varobj object.
2360
2361 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
2362
2363 * expression.h (innermost_block): Remove declaration.
2364 * varobj.c: Add 'parser-defs.h' include.
2365
2366 2018-01-19 Tom Tromey <tom@tromey.com>
2367
2368 * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
2369 symbols in the static and global blocks.
2370
2371 2018-01-19 James Clarke <jrtc27@jrtc27.com>
2372
2373 * nat/linux-ptrace.c: Remove unnecessary reinclusion of
2374 gdb_ptrace.h, and move including gdb_wait.h ...
2375 * nat/linux-ptrace.h: ... to here.
2376
2377 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
2378
2379 * inf-ptrace.c (inf_ptrace_detach): Adjust call to
2380 inf_ptrace_detach_success.
2381 (inf_ptrace_detach_success): Add inferior parameter, use it
2382 instead of inferior_ptid, pass it to detach_inferior.
2383 * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
2384 parameter.
2385 * inferior.c (detach_inferior): Add overload that takes an
2386 inferior object.
2387 * inferior.h (detach_inferior): Likewise.
2388 * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
2389 use inferior_ptid, adjust call to inf_ptrace_detach_success.
2390 * linux-thread-db.c (thread_db_detach): Use inf parameter.
2391
2392 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
2393
2394 * target.h (struct target_ops) <to_detach>: Add inferior
2395 parameter.
2396 (target_detach): Likewise.
2397 * target.c (dispose_inferior): Pass inferior down.
2398 (target_detach): Pass inferior down. Assert that it is equal to
2399 the current inferior.
2400 * aix-thread.c (aix_thread_detach): Pass inferior down.
2401 * corefile.c (core_file_command): Pass current_inferior() down.
2402 * corelow.c (core_detach): Add inferior parameter.
2403 * darwin-nat.c (darwin_detach): Likewise.
2404 * gnu-nat.c (gnu_detach): Likewise.
2405 * inf-ptrace.c (inf_ptrace_detach): Likewise.
2406 * infcmd.c (detach_command): Pass current_inferior() down to
2407 target_detach.
2408 * infrun.c (follow_fork_inferior): Pass parent_inf to
2409 target_detach.
2410 (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
2411 target_detach.
2412 * linux-nat.c (linux_nat_detach): Add inferior parameter.
2413 * linux-thread-db.c (thread_db_detach): Likewise.
2414 * nto-procfs.c (procfs_detach): Likewise.
2415 * procfs.c (procfs_detach): Likewise.
2416 * record.c (record_detach): Likewise.
2417 * record.h (struct inferior): Forward-declare.
2418 (record_detach): Add inferior parameter.
2419 * remote-sim.c (gdbsim_detach): Likewise.
2420 * remote.c (remote_detach_1): Likewise.
2421 (remote_detach): Likewise.
2422 (extended_remote_detach): Likewise.
2423 * sol-thread.c (sol_thread_detach): Likewise.
2424 * target-debug.h (target_debug_print_inferior_p): New macro.
2425 * target-delegates.c: Re-generate.
2426 * top.c (kill_or_detach): Pass inferior down to target_detach.
2427 * windows-nat.c (windows_detach): Add inferior parameter.
2428
2429 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
2430
2431 * target.h (struct target_ops) <to_detach>: Remove args
2432 parameter.
2433 (target_detach): Likewise.
2434 * target.c (dispose_inferior): Adjust.
2435 (target_detach): Remove args parameter, adjust.
2436 * aix-thread.c (aix_thread_detach): Adjust.
2437 * corefile.c (core_file_command): Adjust.
2438 * corelow.c (core_detach): Adjust.
2439 * darwin-nat.c (darwin_detach): Adjust.
2440 * gnu-nat.c (gnu_detach): Adjust.
2441 * inf-ptrace.c (inf_ptrace_detach): Adjust.
2442 * infcmd.c (detach_command): Adjust
2443 * infrun.c (follow_fork_inferior): Adjust.
2444 (handle_vfork_child_exec_or_exit): Adjust.
2445 * linux-fork.c (linux_fork_detach): Remove args parameter.
2446 * linux-fork.h (linux_fork_detach): Likewise.
2447 * linux-nat.c (linux_nat_detach): Likewise, and adjust.
2448 * linux-thread-db.c (thread_db_detach): Likewise.
2449 * nto-procfs.c (procfs_detach): Likewise.
2450 * procfs.c (procfs_detach): Likewise.
2451 (do_detach): Remove signo parameter.
2452 * record.c (record_detach): Remove args parameter.
2453 * record.h (record_detach): Likewise.
2454 * remote-sim.c (gdbsim_detach): Likewise.
2455 * remote.c (remote_detach_1): Likewise.
2456 (remote_detach): Likewise.
2457 (extended_remote_detach): Likewise.
2458 * sol-thread.c (sol_thread_detach): Likewise.
2459 * target-delegates.c: Re-generate.
2460 * top.c (struct qt_args) <args>: Remove field.
2461 (kill_or_detach): Don't pass args.
2462 (quit_force): Don't set args.
2463 * windows-nat.c (windows_detach): Remove args parameter.
2464
2465 2018-01-19 Yao Qi <yao.qi@linaro.org>
2466
2467 * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
2468 (arm_linux_init_abi): Install it.
2469
2470 2018-01-19 Yao Qi <yao.qi@linaro.org>
2471
2472 * osabi.c (gdb_osabi_names): Extend the regexp for
2473 arm-linux-gnueabihf.
2474
2475 2018-01-18 Yao Qi <yao.qi@linaro.org>
2476
2477 * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
2478 m_abbrevs.
2479 (abbrev_table::add_abbrev): Update.
2480 (abbrev_table::lookup_abbrev): Update.
2481
2482 2018-01-18 Yao Qi <yao.qi@linaro.org>
2483
2484 * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
2485
2486 2018-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
2487
2488 * compile/compile.c (compile_to_object): Convert "triplet_rx"
2489 to "std::string".
2490
2491 2018-01-17 Tom Tromey <tom@tromey.com>
2492
2493 * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC.
2494
2495 2018-01-17 Tom Tromey <tom@tromey.com>
2496
2497 * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
2498 * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
2499 (create_array_type_with_stride): Update.
2500 * dwarf2read.c (set_die_type): Update.
2501
2502 2018-01-17 Tom Tromey <tom@tromey.com>
2503
2504 * dwarf2read.c (delayed_method_info): Remove typedef.
2505 (dwarf2_cu::method_info): Now a std::vector.
2506 (add_to_method_list): Update.
2507 (free_delayed_list): Remove.
2508 (compute_delayed_physnames): Update.
2509 (process_full_comp_unit, process_full_type_unit): Clear the method
2510 list. Remove cleanups.
2511 (psymtab_include_file_name): Add name_holder parameter. Use
2512 unique_xmalloc_ptr.
2513 (dwarf_decode_lines): Update.
2514
2515 2018-01-17 Tom Tromey <tom@tromey.com>
2516 Simon Marchi <simon.marchi@ericsson.com>
2517
2518 * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
2519 (dwarf2_per_objfile::free_cached_comp_units)
2520 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
2521 (init_cutu_and_read_dies_no_follow): Update.
2522 (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
2523 (dwarf2_cu::~dwarf2_cu): New.
2524 (free_heap_comp_unit, free_stack_comp_unit): Remove.
2525 (age_cached_comp_units, free_one_cached_comp_unit): Update.
2526
2527 2018-01-17 Tom Tromey <tom@tromey.com>
2528 Simon Marchi <simon.marchi@ericsson.com>
2529
2530 * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
2531 (struct die_reader_specs) <abbrev_table>: New member.
2532 (struct abbrev_table): Add constructor.
2533 <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
2534 <abbrev_obstack>: Now an auto_obstack.
2535 (abbrev_table_up): New typedef.
2536 (init_cu_die_reader): Add abbrev_table parameter.
2537 (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
2538 Add result_dwo_abbrev_table.
2539 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
2540 (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
2541 Update.
2542 (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
2543 parameter.
2544 (skip_children): Update.
2545 (abbrev_table::alloc_abbrev): Rename from
2546 abbrev_table_alloc_abbrev.
2547 (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
2548 (abbrev_table::lookup_abbrev): Rename from
2549 abbrev_table_lookup_abbrev.
2550 (abbrev_table_read_table): Return abbrev_table_up.
2551 (abbrev_table_free, abbrev_table_free_cleanup)
2552 (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
2553 (load_partial_dies): Update.
2554
2555 2018-01-17 Tom Tromey <tom@tromey.com>
2556
2557 * dwarf2read.c (dwarf2_compute_name): Update comment.
2558 (read_func_scope, read_variable): Update.
2559 (new_symbol): Remove.
2560 (new_symbol_full): Rename to new_symbol.
2561
2562 2018-01-17 Mike Gulick <mgulick@mathworks.com>
2563
2564 PR gdb/16577
2565 * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
2566 a warning instead of throwing an error, set section size to 0 and return
2567 NULL.
2568 * gdb_bfd.h (gdb_bfd_map_section): Update description.
2569
2570 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
2571
2572 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
2573 std::string.
2574 (linux_ptrace_attach_fail_reason_string): Likewise.
2575 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
2576 Likewise.
2577 (linux_ptrace_attach_fail_reason_string): Likewise.
2578 * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
2579
2580 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
2581
2582 * linux-nat.c (linux_nat_attach): Remove xstrdup.
2583
2584 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
2585
2586 PR gdb/21559
2587 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
2588 checking for fs_base/gs_base fields in struct user_regs_struct.
2589 * configure: Regenerate.
2590
2591 2018-01-17 Yao Qi <yao.qi@linaro.org>
2592
2593 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
2594 function.
2595 (aarch64_linux_init_abi): Install it to gdbarch hook
2596 gcc_target_options.
2597
2598 2018-01-15 Pedro Alves <palves@redhat.com>
2599
2600 * common/signals-state-save-restore.c
2601 (save_original_signals_state): Fix typos.
2602
2603 2017-01-12 Tom Tromey <tom@tromey.com>
2604 Sergio Durigan Junior <sergiodj@redhat.com>
2605
2606 * Makefile.in (install-only): Install gdb-add-index.
2607
2608 2018-01-12 John Baldwin <jhb@FreeBSD.org>
2609
2610 * fbsd-tdep.c (KVE_PROTECTION): Correct value.
2611
2612 2018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
2613
2614 * infrun.c (keep_going_pass_signal): Clear step-over info when
2615 insert_breakpoints fails.
2616
2617 2018-01-11 Pedro Alves <palves@redhat.com>
2618
2619 PR gdb/22583
2620 * infrun.c (resume): Rename to ...
2621 (resume_1): ... this.
2622 (resume): Reimplement as wrapper around resume_1.
2623
2624 2018-01-11 Pedro Alves <palves@redhat.com>
2625
2626 PR remote/22597
2627 * remote.c (remote_parse_stop_reply): Default to the last-set
2628 general thread instead of to 'magic_null_ptid'.
2629
2630 2018-01-10 Pedro Alves <palves@redhat.com>
2631
2632 * language.h (language_get_symbol_name_matcher): Rename ...
2633 (get_symbol_name_matcher): ... this.
2634 * language.c (language_get_symbol_name_matcher): Ditto.
2635 * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
2636 callers adjusted.
2637
2638 2018-01-10 Pedro Alves <palves@redhat.com>
2639
2640 PR gdb/22670
2641 * dwarf2read.c
2642 (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
2643 Adjust to use language_get_symbol_name_matcher instead of
2644 language_defn::la_get_symbol_name_matcher.
2645 * language.c (language_get_symbol_name_matcher): If in Ada mode
2646 and the lookup name is a verbatim match, return Ada's matcher.
2647 * language.h (language_get_symbol_name_matcher): Adjust comment.
2648 (ada_lookup_name_info::verbatim_p):: New method.
2649
2650 2018-01-10 Pedro Alves <palves@redhat.com>
2651
2652 PR gdb/22670
2653 * ada-lang.c (ada_collect_symbol_completion_matches): If the
2654 minsym's language is language_auto or language_cplus, pass down
2655 language_ada instead.
2656 * symtab.c (compare_symbol_name): Don't frob symbol language here.
2657
2658 2018-01-10 Pedro Alves <palves@redhat.com>
2659
2660 PR gdb/22670
2661 * minsyms.c (linkage_name_str): New function.
2662 (iterate_over_minimal_symbols): Use it.
2663
2664 2018-01-09 John Baldwin <jhb@FreeBSD.org>
2665
2666 * NEWS: Document that 'info proc' now works on FreeBSD.
2667
2668 2018-01-09 John Baldwin <jhb@FreeBSD.org>
2669
2670 * configure.ac: Check for kinfo_getfile in libutil.
2671 * configure: Regenerate.
2672 * config.in: Regenerate.
2673 * fbsd-nat.c: Include "fbsd-tdep.h".
2674 (fbsd_fetch_cmdline): New.
2675 (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
2676 rather than calling error.
2677 (fbsd_info_proc): New.
2678 (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
2679 (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
2680 (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
2681
2682 2018-01-09 John Baldwin <jhb@FreeBSD.org>
2683
2684 * fbsd-nat.c (struct free_deleter): Remove.
2685 (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
2686
2687 2018-01-09 John Baldwin <jhb@FreeBSD.org>
2688
2689 * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
2690 NULL for an empty pathname.
2691
2692 2018-01-09 John Baldwin <jhb@FreeBSD.org>
2693
2694 * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
2695 (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
2696 (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
2697 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
2698 (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
2699 (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
2700 (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
2701 (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
2702 (kinfo_proc_layout_32, kinfo_proc_layout_i386)
2703 (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
2704 (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
2705 (fbsd_core_fetch_timeval, fbsd_print_sigset)
2706 (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
2707 (fbsd_init_abi): Install gdbarch "core_info_proc" method.
2708 * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
2709
2710 2018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
2711
2712 * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
2713 (gnu_xfer_auxv): New function.
2714 (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
2715 TARGET_OBJECT_AUXV.
2716
2717 2018-01-08 Yao Qi <yao.qi@linaro.org>
2718 Simon Marchi <simon.marchi@ericsson.com>
2719
2720 * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
2721 common/selftest.c.
2722 (COMMON_OBS): Remove selftest.o.
2723 * configure.ac: Append selftest-arch.c and common/selftest.c to
2724 CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS.
2725 * configure: Re-generated.
2726 * maint.c (maintenance_selftest): Wrap selftests::run_tests with
2727 GDB_SELF_TEST.
2728 (maintenance_info_selftests): Likewise.
2729
2730 2018-01-08 Xavier Roirand <roirand@adacore.com>
2731
2732 * ada-valprint.c (val_print_packed_array_elements): Use
2733 proper number of elements when printing an array indexed
2734 by an enumeration type.
2735
2736 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
2737
2738 * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
2739 (dw2_get_file_names_reader): Adjust.
2740 (lookup_dwo_signatured_type): Adjust.
2741 (lookup_dwp_signatured_type): Adjust.
2742 (lookup_signatured_type): Adjust.
2743 (create_type_unit_group): Adjust.
2744 (get_type_unit_group): Adjust.
2745 (process_psymtab_comp_unit_reader): Adjust.
2746 (build_type_psymtabs_reader): Adjust.
2747 (scan_partial_symbols): Adjust.
2748 (add_partial_symbol): Adjust.
2749 (add_partial_subprogram): Adjust.
2750 (peek_die_abbrev): Adjust.
2751 (fixup_go_packaging): Adjust.
2752 (process_imported_unit_die): Adjust.
2753 (dwarf2_compute_name): Adjust.
2754 (dwarf2_physname): Adjust.
2755 (read_import_statement): Adjust.
2756 (handle_DW_AT_stmt_list): Adjust.
2757 (read_file_scope): Adjust.
2758 (read_func_scope): Adjust.
2759 (read_lexical_block_scope): Adjust.
2760 (read_call_site_scope): Adjust.
2761 (read_variable): Adjust.
2762 (dwarf2_rnglists_process): Adjust.
2763 (dwarf2_ranges_process): Adjust.
2764 (dwarf2_ranges_read): Adjust.
2765 (dwarf2_get_pc_bounds): Adjust.
2766 (dwarf2_record_block_ranges): Adjust.
2767 (dwarf2_add_field): Adjust.
2768 (dwarf2_add_member_fn): Adjust.
2769 (read_structure_type): Adjust.
2770 (process_structure_scope): Adjust.
2771 (read_enumeration_type): Adjust.
2772 (read_array_type): Adjust.
2773 (mark_common_block_symbol_computed): Adjust.
2774 (read_common_block): Adjust.
2775 (read_namespace_type): Adjust.
2776 (read_namespace): Adjust.
2777 (read_module_type): Adjust.
2778 (read_tag_pointer_type): Adjust.
2779 (read_tag_ptr_to_member_type): Adjust.
2780 (read_tag_string_type): Adjust.
2781 (read_subroutine_type): Adjust.
2782 (read_typedef): Adjust.
2783 (read_base_type): Adjust.
2784 (attr_to_dynamic_prop): Adjust.
2785 (read_subrange_type): Adjust.
2786 (read_unspecified_type): Adjust.
2787 (dwarf2_read_abbrevs): Adjust.
2788 (load_partial_dies): Adjust.
2789 (read_partial_die): Adjust.
2790 (find_partial_die): Adjust.
2791 (guess_partial_die_structure_name): Adjust.
2792 (fixup_partial_die): Adjust.
2793 (read_attribute_value): Adjust.
2794 (read_addr_index): Adjust.
2795 (read_addr_index_from_leb128): Adjust.
2796 (read_str_index): Adjust.
2797 (dwarf2_string_attr): Adjust.
2798 (get_debug_line_section): Adjust.
2799 (dwarf_decode_line_header): Adjust.
2800 (lnp_state_machine::check_line_address): Adjust.
2801 (dwarf_decode_lines_1): Adjust.
2802 (dwarf_decode_lines): Adjust.
2803 (dwarf2_start_symtab): Adjust.
2804 (var_decode_location): Adjust.
2805 (new_symbol_full): Adjust.
2806 (dwarf2_const_value_data): Adjust.
2807 (dwarf2_const_value_attr): Adjust.
2808 (dwarf2_const_value): Adjust.
2809 (die_type): Adjust.
2810 (die_containing_type): Adjust.
2811 (build_error_marker_type): Adjust.
2812 (lookup_die_type): Adjust.
2813 (guess_full_die_structure_name): Adjust.
2814 (anonymous_struct_prefix): Adjust.
2815 (determine_prefix): Adjust.
2816 (dwarf2_name): Adjust.
2817 (follow_die_ref_or_sig): Adjust.
2818 (follow_die_offset): Adjust.
2819 (follow_die_ref): Adjust.
2820 (follow_die_sig_1): Adjust.
2821 (follow_die_sig): Adjust.
2822 (get_signatured_type): Adjust.
2823 (get_DW_AT_signature_type): Adjust.
2824 (decode_locdesc): Adjust.
2825 (dwarf_decode_macros): Adjust.
2826 (cu_debug_loc_section): Adjust.
2827 (fill_in_loclist_baton): Adjust.
2828 (dwarf2_symbol_mark_computed): Adjust.
2829 (init_one_comp_unit): Don't assign
2830 dwarf2_cu::dwarf2_per_objfile.
2831 (set_die_type): Adjust.
2832
2833 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
2834
2835 * dwarf2read.c (struct mapped_debug_names): Add constructor.
2836 <dwarf2_per_objfile>: New field.
2837 (dwarf2_per_objfile): Remove global.
2838 (get_dwarf2_per_objfile): New function.
2839 (set_dwarf2_per_objfile): New function.
2840 (dwarf2_build_psymtabs_hard): Change objfile parameter to
2841 dwarf2_per_objfile.
2842 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
2843 (read_abbrev_offset): Likewise.
2844 (read_indirect_string): Likewise.
2845 (read_indirect_line_string): Likewise.
2846 (read_indirect_string_at_offset): Likewise.
2847 (read_indirect_string_from_dwz): Likewise.
2848 (dwarf2_find_containing_comp_unit): Change objfile parameter to
2849 dwarf2_per_objfile.
2850 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
2851 (create_all_comp_units): Change objfile parameter to
2852 dwarf2_per_objfile.
2853 (create_all_type_units): Likewise.
2854 (process_queue): Add dwarf2_per_objfile parameter.
2855 (read_and_check_comp_unit_head): Likewise.
2856 (lookup_dwo_unit_in_dwp): Likewise.
2857 (get_dwp_file): Likewise.
2858 (process_cu_includes): Likewise.
2859 (struct free_dwo_file_cleanup_data): New struct.
2860 (dwarf2_has_info): Use get_dwarf2_per_objfile and
2861 set_dwarf2_per_objfile.
2862 (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
2863 (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
2864 context, adjust calls.
2865 (dw2_instantiate_symtab): Likewise.
2866 (dw2_get_cutu): Add dwarf2_per_objfile parameter.
2867 (dw2_get_cu): Likewise.
2868 (create_cu_from_index_list): Change objfile parameter to
2869 dwarf2_per_objfile.
2870 (create_cus_from_index_list): Get dwarf2_per_objfile from
2871 context, adjust calls.
2872 (create_cus_from_index): Likewise.
2873 (create_signatured_type_table_from_index): Change objfile
2874 parameter to dwarf2_per_objfile.
2875 (create_signatured_type_table_from_debug_names): Change objfile
2876 parameter to dwarf2_per_objfile.
2877 (create_addrmap_from_index): Likewise.
2878 (create_addrmap_from_aranges): Likewise.
2879 (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
2880 (dw2_setup): Remove.
2881 (dw2_get_file_names_reader): Get dwarf2_per_objfile from
2882 context.
2883 (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
2884 get_dwarf2_per_objfile.
2885 (dw2_forget_cached_source_info): Likewise.
2886 (dw2_map_symtabs_matching_filename): Likewise.
2887 (struct dw2_symtab_iterator) <index>: Remove.
2888 <dwarf2_per_objfile>: New field.
2889 (dw2_symtab_iter_init): Replace index parameter with
2890 dwarf2_per_objfile.
2891 (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
2892 (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
2893 (dw2_print_stats): Likewise.
2894 (dw2_dump): Likewise.
2895 (dw2_expand_symtabs_for_function): Likewise.
2896 (dw2_expand_all_symtabs): Likewise.
2897 (dw2_expand_symtabs_with_fullname): Likewise.
2898 (dw2_expand_marked_cus): Replace index and objfile parameters
2899 with dwarf2_per_objfile.
2900 (dw_expand_symtabs_matching_file_matcher): Add
2901 dwarf2_per_objfile parameter and adjust calls.
2902 (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
2903 adjust calls.
2904 (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
2905 (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
2906 adjust calls.
2907 (create_cus_from_debug_names_list): Replace objfile parameter
2908 with dwarf2_per_objfile and adjust calls.
2909 (create_cus_from_debug_names): Likewise.
2910 (dwarf2_read_debug_names): Likewise.
2911 (mapped_debug_names::namei_to_name): Adjust call.
2912 (dw2_debug_names_iterator::next): Likewise.
2913 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
2914 (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
2915 (dw2_debug_names_dump): Likewise.
2916 (dw2_debug_names_expand_symtabs_for_function): Likewise.
2917 (dw2_debug_names_expand_symtabs_matching): Likewise.
2918 (dwarf2_initialize_objfile): Likewise.
2919 (dwarf2_build_psymtabs): Likewise.
2920 (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
2921 this_cu.
2922 (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
2923 (read_and_check_comp_unit_head): Likewise.
2924 (read_abbrev_offset): Likewise.
2925 (create_debug_type_hash_table): Likewise.
2926 (create_debug_types_hash_table): Likewise.
2927 (create_all_type_units): Replace objfile parameter with
2928 dwarf2_per_objfile.
2929 (add_type_unit): Add dwarf2_per_objfile parameter.
2930 (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
2931 with dwarf2_per_objfile.
2932 (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
2933 (lookup_dwp_signatured_type): Likewise.
2934 (lookup_signatured_type): Likewise.
2935 (read_cutu_die_from_dwo): Likewise.
2936 (init_tu_and_read_dwo_dies): Likewise.
2937 (init_cutu_and_read_dies): Likewise.
2938 (init_cutu_and_read_dies_no_follow): Likewise.
2939 (allocate_type_unit_groups_table): Add objfile parameter.
2940 (create_type_unit_group): Use dwarf2_per_objfile from cu.
2941 (get_type_unit_group): Likewise.
2942 (process_psymtab_comp_unit): Update call.
2943 (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
2944 (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
2945 (print_tu_stats): Likewise.
2946 (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
2947 in void* parameter.
2948 (build_type_psymtabs): Change objfile parameter to
2949 dwarf2_per_objfile.
2950 (process_skeletonless_type_unit): Use dwarf2_per_objfile
2951 passed in void* parameter.
2952 (process_skeletonless_type_units): Change objfile parameter to
2953 dwarf2_per_objfile.
2954 (set_partial_user): Likewise.
2955 (dwarf2_build_psymtabs_hard): Likewise.
2956 (read_comp_units_from_section): Likewise.
2957 (create_all_comp_units): Likewise.
2958 (scan_partial_symbols): Update calls.
2959 (add_partial_symbol): Likewise.
2960 (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
2961 (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
2962 (process_queue): Add dwarf2_per_objfile parameter.
2963 (get_compunit_symtab): Use dwarf2_per_objfile from cu.
2964 (compute_compunit_symtab_includes): Likewise.
2965 (process_cu_includes): Add dwarf2_per_objfile parameter.
2966 (process_full_comp_unit): Use dwarf2_per_objfile from cu.
2967 (process_full_type_unit): Likewise.
2968 (process_imported_unit_die): Update call.
2969 (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
2970 (read_file_scope): Likewise.
2971 (allocate_dwo_file_hash_table): Add objfile parameter.
2972 (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
2973 (create_cus_hash_table): Likewise.
2974 (create_dwp_hash_table): Likewise.
2975 (create_dwo_unit_in_dwp_v1): Likewise.
2976 (create_dwp_v2_section): Likewise.
2977 (create_dwo_unit_in_dwp_v2): Likewise.
2978 (lookup_dwo_unit_in_dwp): Likewise.
2979 (try_open_dwop_file): Likewise.
2980 (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
2981 (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
2982 cleanup to include a reference to dwarf2_per_objfile.
2983 (open_dwp_file): Add dwarf2_per_objfile parameter.
2984 (open_and_init_dwp_file): Likewise.
2985 (get_dwp_file): Likewise.
2986 (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
2987 (queue_and_load_all_dwo_tus): Update call.
2988 (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
2989 data.
2990 (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
2991 (dwarf2_ranges_process): Likewise.
2992 (dwarf2_get_pc_bounds): Likewise.
2993 (mark_common_block_symbol_computed): Likewise.
2994 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
2995 (dwarf2_read_abbrevs): Update call.
2996 (read_partial_die): Use dwarf2_per_objfile from cu.
2997 (find_partial_die): Likewise.
2998 (fixup_partial_die): Likewise.
2999 (read_attribute_value): Likewise.
3000 (read_indirect_string_at_offset_from): Add objfile parameter.
3001 (read_indirect_string_at_offset): Add dwarf2_per_objfile
3002 parameter.
3003 (read_indirect_string_from_dwz): Add objfile parameter.
3004 (read_indirect_string): Add objfile parameter.
3005 (read_addr_index_1): Add dwarf2_per_objfile parameter.
3006 (read_addr_index): Use dwarf2_per_objfile from cu.
3007 (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
3008 call dw2_setup.
3009 (read_str_index): Use dwarf2_per_objfile from cu.
3010 (get_debug_line_section): Likewise.
3011 (read_formatted_entries): Add dwarf2_per_objfile parameter.
3012 (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
3013 (new_symbol_full): Use dwarf2_per_objfile from cu.
3014 (build_error_marker_type): Likewise.
3015 (lookup_die_type): Likewise.
3016 (determine_prefix): Likewise.
3017 (follow_die_offset): Likewise.
3018 (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
3019 (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
3020 (dwarf2_fetch_die_type_sect_off): Likewise.
3021 (dwarf2_get_die_type): Likewise.
3022 (follow_die_sig_1): Use dwarf2_per_objfile from cu.
3023 (get_signatured_type): Likewise.
3024 (get_DW_AT_signature_type): Likewise.
3025 (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
3026 (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
3027 (cu_debug_loc_section): Likewise.
3028 (fill_in_loclist_baton): Likewise.
3029 (dwarf2_symbol_mark_computed): Likewise.
3030 (dwarf2_find_containing_comp_unit): Change objfile parameter to
3031 dwarf2_per_objfile.
3032 (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
3033 parameter.
3034 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
3035 (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
3036 (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
3037 (set_die_type): Use dwarf2_free_objfile from cu.
3038 (get_die_type_at_offset): Likewise.
3039 (dwarf2_per_objfile_free): Don't assign global variable.
3040 (debug_names) <constructor>: Add dwarf2_per_objfile
3041 parameter, update m_debugstrlookup construction.
3042 (debug_names::debug_str_lookup): Add dwarf2_per_objfile
3043 parameter.
3044 <m_dwarf2_per_objfile>: New field.
3045 <lookup>: Use m_dwarf2_per_objfile.
3046 (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
3047 (psyms_seen_size): Likewise.
3048 (write_gdbindex): Replace objfile parameter with
3049 dwarf2_per_objfile.
3050 (write_debug_names): Likewise.
3051 (write_psymtabs_to_index): Likewise.
3052 (save_gdb_index_command): Use get_dwarf2_per_objfile, update
3053 calls.
3054
3055 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
3056
3057 * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
3058 <dwarf2_per_objfile>: New field.
3059 (struct dwarf2_per_cu_data) <objfile>: Remove.
3060 <dwarf2_per_objfile>: New field.
3061 (create_cu_from_index_list): Assign dwarf2_per_objfile instead
3062 of objfile.
3063 (create_signatured_type_table_from_index): Likewise.
3064 (create_debug_type_hash_table): Likewise.
3065 (fill_in_sig_entry_from_dwo_entry): Likewise.
3066 (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
3067 (create_type_unit_group): Assign dwarf2_per_objfile instead of
3068 objfile.
3069 (create_partial_symtab): Access objfile through
3070 dwarf2_per_objfile.
3071 (process_psymtab_comp_unit_reader): Likewise.
3072 (read_comp_units_from_section): Likewise.
3073 (scan_partial_symbols): Likewise.
3074 (add_partial_symbol): Likewise.
3075 (add_partial_subprogram): Likewise.
3076 (peek_die_abbrev): Likewise.
3077 (fixup_go_packaging): Likewise.
3078 (process_full_comp_unit): Likewise.
3079 (process_full_type_unit): Likewise.
3080 (process_imported_unit_die): Likewise.
3081 (dwarf2_compute_name): Likewise.
3082 (dwarf2_physname): Likewise.
3083 (read_import_statement): Likewise.
3084 (create_cus_hash_table): Assign dwarf2_physname instead of
3085 objfile.
3086 (read_func_scope): Access objfile through dwarf2_per_objfile.
3087 (read_lexical_block_scope): Likewise.
3088 (read_call_site_scope): Likewise.
3089 (read_variable): Likewise.
3090 (dwarf2_rnglists_process): Likewise.
3091 (dwarf2_ranges_process): Likewise.
3092 (dwarf2_ranges_read): Likewise.
3093 (dwarf2_record_block_ranges): Likewise.
3094 (dwarf2_add_field): Likewise.
3095 (dwarf2_add_member_fn): Likewise.
3096 (read_structure_type): Likewise.
3097 (process_structure_scope): Likewise.
3098 (read_enumeration_type): Likewise.
3099 (read_array_type): Likewise.
3100 (read_common_block): Likewise.
3101 (read_namespace_type): Likewise.
3102 (read_namespace): Likewise.
3103 (read_module_type): Likewise.
3104 (read_tag_pointer_type): Likewise.
3105 (read_tag_ptr_to_member_type): Likewise.
3106 (read_tag_string_type): Likewise.
3107 (read_subroutine_type): Likewise.
3108 (read_typedef): Likewise.
3109 (read_base_type): Likewise.
3110 (attr_to_dynamic_prop): Likewise.
3111 (read_subrange_type): Likewise.
3112 (read_unspecified_type): Likewise.
3113 (load_partial_dies): Likewise.
3114 (read_partial_die): Likewise.
3115 (find_partial_die): Likewise.
3116 (guess_partial_die_structure_name): Likewise.
3117 (fixup_partial_die): Likewise.
3118 (read_attribute_value): Likewise.
3119 (read_addr_index_from_leb128): Likewise.
3120 (dwarf2_read_addr_index): Likewise.
3121 (dwarf2_string_attr): Likewise.
3122 (lnp_state_machine::check_line_address): Likewise.
3123 (dwarf_decode_lines_1): Likewise.
3124 (dwarf_decode_lines): Likewise.
3125 (dwarf2_start_symtab): Likewise.
3126 (var_decode_location): Likewise.
3127 (new_symbol_full): Likewise.
3128 (dwarf2_const_value_data): Likewise.
3129 (dwarf2_const_value_attr): Likewise.
3130 (dwarf2_const_value): Likewise.
3131 (die_type): Likewise.
3132 (die_containing_type): Likewise.
3133 (lookup_die_type): Likewise.
3134 (guess_full_die_structure_name): Likewise.
3135 (anonymous_struct_prefix): Likewise.
3136 (dwarf2_name): Likewise.
3137 (follow_die_ref_or_sig): Likewise.
3138 (follow_die_offset): Likewise.
3139 (follow_die_ref): Likewise.
3140 (dwarf2_fetch_die_loc_sect_off): Likewise.
3141 (dwarf2_fetch_constant_bytes): Likewise.
3142 (dwarf2_fetch_die_type_sect_off): Likewise.
3143 (dwarf2_get_die_type): Likewise.
3144 (follow_die_sig): Likewise.
3145 (decode_locdesc): Likewise.
3146 (dwarf2_per_cu_objfile): Likewise.
3147 (dwarf2_per_cu_text_offset): Likewise.
3148 (init_one_comp_unit): Assign dwarf2_per_objfile instead of
3149 objfile.
3150 (set_die_type): Access objfile through
3151 dwarf2_per_objfile.
3152
3153 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
3154
3155 * valprint.c (converted_character_d): Remove typedef.
3156 (DEF_VEC_O (converted_character_d)): Remove.
3157 (count_next_character): Use std::vector.
3158 (print_converted_chars_to_obstack): Likewise.
3159 (generic_printstr): Likewise.
3160
3161 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
3162
3163 * xml-support.h (struct gdb_xml_value): Add constructor.
3164 <value>: Change type to unique_xmalloc_ptr.
3165 (gdb_xml_value_s): Remove typedef.
3166 (DEF_VEC_O (gdb_xml_value_s)): Remove.
3167 (gdb_xml_element_start_handler): Change parameter type to
3168 std::vector.
3169 (xml_find_attribute): Likewise.
3170 * xml-support.c (xml_find_attribute): Change parameter type to
3171 std::vector and adjust.
3172 (gdb_xml_values_cleanup): Remove.
3173 (gdb_xml_parser::start_element): Adjust to std::vector.
3174 (xinclude_start_include): Change paraeter type to std::vector
3175 and adjust.
3176 * btrace.c (check_xml_btrace_version): Likewise.
3177 (parse_xml_btrace_block): Likewise.
3178 (parse_xml_btrace_pt_config_cpu): Likewise.
3179 (parse_xml_btrace_pt): Likewise.
3180 (parse_xml_btrace_conf_bts): Likewise.
3181 (parse_xml_btrace_conf_pt): Likewise.
3182 * memory-map.c (memory_map_start_memory): Likewise.
3183 (memory_map_start_property): Likewise.
3184 * osdata.c (osdata_start_osdata): Likewise.
3185 (osdata_start_item): Likewise.
3186 (osdata_start_column): Likewise.
3187 * remote.c (start_thread): Likewise.
3188 * solib-aix.c (library_list_start_library): Likewise.
3189 (library_list_start_list): Likewise.
3190 * solib-svr4.c (library_list_start_library): Likewise.
3191 (svr4_library_list_start_list): Likewise.
3192 * solib-target.c (library_list_start_segment): Likewise.
3193 (library_list_start_section): Likewise.
3194 (library_list_start_library): Likewise.
3195 (library_list_start_list): Likewise.
3196 * tracepoint.c (traceframe_info_start_memory): Likewise.
3197 (traceframe_info_start_tvar): Likewise.
3198 * xml-syscall.c (syscall_start_syscall): Likewise.
3199 * xml-tdesc.c (tdesc_start_target): Likewise.
3200 (tdesc_start_feature): Likewise.
3201 (tdesc_start_reg): Likewise.
3202 (tdesc_start_union): Likewise.
3203 (tdesc_start_struct): Likewise.
3204 (tdesc_start_flags): Likewise.
3205 (tdesc_start_enum): Likewise.
3206 (tdesc_start_field): Likewise.
3207 (tdesc_start_enum_value): Likewise.
3208 (tdesc_start_vector): Likewise.
3209
3210 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
3211
3212 * extension.h (struct xmethod_worker) <clone>: Remove.
3213 * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
3214 Remove.
3215 (python_xmethod_worker::clone): Remove.
3216 * valops.c (find_overload_match): Use std::move instead of
3217 clone.
3218
3219 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
3220
3221 * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
3222 (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
3223 <free_xmethod_worker_data>: Remove.
3224 <get_matching_xmethod_workers>: Chance VEC to std::vector.
3225 <get_xmethod_arg_types>: Remove.
3226 <get_xmethod_result_type>: Remove.
3227 <invoke_xmethod>: Remove.
3228 * extension.c (new_xmethod_worker): Remove.
3229 (clone_xmethod_worker): Remove.
3230 (get_matching_xmethod_workers): Return void, pass std::vector by
3231 pointer.
3232 (get_xmethod_arg_types): Rename to...
3233 (xmethod_worker::get_arg_types): ... this, and adjust.
3234 (get_xmethod_result_type): Rename to...
3235 (xmethod_worker::get_result_type): ... this, and adjust.
3236 (invoke_xmethod): Remove.
3237 (free_xmethod_worker): Remove.
3238 (free_xmethod_worker_vec): Remove.
3239 * extension.h (enum ext_lang_rc): Move here from
3240 extension-priv.h.
3241 (struct xmethod_worker): Add constructor and destructor.
3242 <data>: Remove.
3243 <value>: Remove.
3244 <invoke, clone, do_get_result_type, do_get_arg_types>: New
3245 virtual pure methods.
3246 <get_arg_types, get_result_type>: New methods.
3247 (xmethod_worker_ptr): Remove typedef.
3248 (DEF_VEC_P (xmethod_worker_ptr)): Remove.
3249 (xmethod_worker_vec): Remove typedef.
3250 (xmethod_worker_up): New typedef.
3251 (invoke_xmethod): Remove.
3252 (clone_xmethod_worker): Remove.
3253 (free_xmethod_worker): Remove.
3254 (free_xmethod_worker_vec): Remove.
3255 (get_xmethod_arg_types): Remove.
3256 (get_xmethod_result_type): Remove.
3257 * valops.c (find_method_list): Use std::vector, don't use
3258 intermediate vector.
3259 (value_find_oload_method_list): Use std::vector.
3260 (find_overload_match): Use std::vector.
3261 (find_oload_champ): Use std::vector.
3262 * value.c (value_free): Use operator delete.
3263 (value_of_xmethod): Rename to...
3264 (value_from_xmethod): ... this. Don't assign
3265 xmethod_worker::value, take rvalue-reference.
3266 (result_type_of_xmethod): Adjust.
3267 (call_xmethod): Adjust.
3268 * value.h: Include extension.h.
3269 (struct xmethod_worker): Don't forward-declare.
3270 (value_of_xmethod): Rename to...
3271 (value_from_xmethod): ... this, take rvalue-reference.
3272 * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
3273 (struct python_xmethod_worker): ... this, add constructor and
3274 destructor.
3275 <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
3276 (gdbpy_free_xmethod_worker_data): Rename to...
3277 (python_xmethod_worker::~python_xmethod_worker): ... this and
3278 adjust.
3279 (gdbpy_clone_xmethod_worker_data): Rename to...
3280 (python_xmethod_worker::clone): ... this and adjust.
3281 (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
3282 temporary vector.
3283 (gdbpy_get_xmethod_arg_types): Rename to...
3284 (python_xmethod_worker::do_get_arg_types): ... this and adjust.
3285 (gdbpy_get_xmethod_result_type): Rename to...
3286 (python_xmethod_worker::do_get_result_type): ... this and
3287 adjust.
3288 (gdbpy_invoke_xmethod): Rename to...
3289 (python_xmethod_worker::invoke): ... this and adjust.
3290 (new_python_xmethod_worker): Rename to...
3291 (python_xmethod_worker::python_xmethod_worker): ... this and
3292 adjust.
3293 * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
3294 Remove.
3295 (gdbpy_free_xmethod_worker_data): Remove.
3296 (gdbpy_get_matching_xmethod_workers): Use std::vector.
3297 (gdbpy_get_xmethod_arg_types): Remove.
3298 (gdbpy_get_xmethod_result_type): Remove.
3299 (gdbpy_invoke_xmethod): Remove.
3300 * python/python.c (python_extension_ops): Remove obsolete
3301 callbacks.
3302
3303 2018-01-05 Pedro Alves <palves@redhat.com>
3304
3305 PR gdb/18653
3306 * common/signals-state-save-restore.c
3307 (save_original_signals_state): New parameter 'quiet'. Warn if we
3308 find a custom handler preinstalled, instead of internal erroring.
3309 But only warn if !quiet.
3310 * common/signals-state-save-restore.h
3311 (save_original_signals_state): New parameter 'quiet'.
3312 * main.c (captured_main_1): Move save_original_signals_state call
3313 after option handling, and pass QUIET.
3314
3315 2018-01-05 Pedro Alves <palves@redhat.com>
3316
3317 * spu-tdep.c (spu_catch_start): Pass
3318 symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
3319
3320 2018-01-05 Pedro Alves <palves@redhat.com>
3321
3322 PR gdb/22670
3323 * ada-lang.c (literal_symbol_name_matcher): New function.
3324 (ada_get_symbol_name_matcher): Use it for
3325 symbol_name_match_type::SEARCH_NAME.
3326 * block.c (block_lookup_symbol): New parameter 'match_type'. Pass
3327 it down instead of assuming symbol_name_match_type::FULL.
3328 * block.h (block_lookup_symbol): New parameter 'match_type'.
3329 * c-valprint.c (print_unpacked_pointer): Use
3330 lookup_symbol_search_name instead of lookup_symbol.
3331 * compile/compile-object-load.c (get_out_value_type): Pass down
3332 symbol_name_match_type::SEARCH_NAME.
3333 * cp-namespace.c (cp_basic_lookup_symbol): Pass down
3334 symbol_name_match_type::FULL.
3335 * cp-support.c (cp_get_symbol_name_matcher): Handle
3336 symbol_name_match_type::SEARCH_NAME.
3337 * infrun.c (insert_exception_resume_breakpoint): Use
3338 lookup_symbol_search_name.
3339 * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
3340 * psymtab.c (maintenance_check_psymtabs): Use
3341 symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
3342 * stack.c (print_frame_args): Use lookup_symbol_search_name and
3343 SYMBOL_SEARCH_NAME.
3344 * symtab.c (lookup_local_symbol): Don't demangle the lookup name
3345 if symbol_name_match_type::SEARCH_NAME.
3346 (lookup_symbol_in_language): Pass down
3347 symbol_name_match_type::FULL.
3348 (lookup_symbol_search_name): New.
3349 (lookup_language_this): Pass down
3350 symbol_name_match_type::SEARCH_NAME.
3351 (lookup_symbol_aux, lookup_local_symbol): New parameter
3352 'match_type'. Pass it down.
3353 * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
3354 (lookup_symbol_search_name): New declaration.
3355 (lookup_symbol_in_block): New 'match_type' parameter.
3356
3357 2018-01-05 Pedro Alves <palves@redhat.com>
3358
3359 PR gdb/22670
3360 * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
3361 ada_lookup_symbol.
3362 (ada_lookup_symbol): Reimplement in terms of
3363 ada_lookup_symbol_list, bits factored out from
3364 ada_lookup_encoded_symbol.
3365
3366 2018-01-05 Joel Brobecker <brobecker@adacore.com>
3367
3368 * ada-exp.y (write_object_renaming): When subscripting an array
3369 using a symbol as the index, pass the block in call to
3370 ada_lookup_encoded_symbol when looking that symbol up.
3371
3372 2018-01-05 Jerome Guitton <guitton@adacore.com>
3373
3374 * ada-lang.c (ada_array_length): Use ada_index_type instead of
3375 TYPE_INDEX_TYPE.
3376
3377 2018-01-05 Joel Brobecker <brobecker@adacore.com>
3378
3379 * ada-lang.c (ada_to_fixed_value_create): Add handling of
3380 the case where VALUE_LVAL (val0) is not lval_memory.
3381
3382 2018-01-05 Xavier Roirand <roirand@adacore.com>
3383
3384 * ada-valprint.c (print_optional_low_bound): Handle
3385 character-indexed array printing like boolean-indexed array
3386 printing.
3387
3388 2018-01-05 Joel Brobecker <brobecker@adacore.com>
3389
3390 * NEWS: Create a new section for the next release branch.
3391 Rename the section of the current branch, now that it has
3392 been cut.
3393
3394 2018-01-05 Joel Brobecker <brobecker@adacore.com>
3395
3396 GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
3397 * version.in: Bump version to 8.1.50.DATE-git.
3398
3399 2018-01-03 Xavier Roirand <roirand@adacore.com>
3400
3401 * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
3402 Add field.
3403 * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
3404 Add field.
3405 (default_exception_support_info) <catch_handlers_sym>: Add field.
3406 (exception_support_info_fallback) <catch_handlers_sym>: Add field.
3407 (ada_exception_name_addr_1): Add "catch handlers" handling.
3408 (ada_exception_catchpoint_cond_string) <ex>: New parameter.
3409 Update all callers.
3410 (create_excep_cond_exprs) <ex>: Add parameter.
3411 (re_set_exception): Update create_excep_cond_exprs call.
3412 (print_it_exception, print_one_exception, print_mention_exception)
3413 (print_recreate_exception): Add "catch handler" handling.
3414 (allocate_location_catch_handlers, re_set_catch_handlers)
3415 (check_status_catch_handlers, print_it_catch_handlers)
3416 (print_one_catch_handlers, print_mention_catch_handlers)
3417 (print_recreate_catch_handlers): New function.
3418 (catch_handlers_breakpoint_ops): New variable.
3419 (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
3420 Add parameter. Add "catch handler" handling.
3421 (ada_exception_sym_name, ada_exception_breakpoint_ops):
3422 Add "catch handler" handling.
3423 (ada_exception_catchpoint_cond_string): Add "catch handler"
3424 handling.
3425 (create_ada_exception_catchpoint): Update create_excep_cond_exprs
3426 call.
3427 (catch_ada_handlers_command): New function.
3428 (initialize_ada_catchpoint_ops): Initialize "catch handlers"
3429 operations structure.
3430 (_initialize_ada_language): Add "catch handlers" command entry.
3431 * NEWS: Document "catch handlers" feature.
3432
3433 2018-01-02 Joel Brobecker <brobecker@adacore.com>
3434
3435 * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
3436 account when creating the array type of the slice.
3437 (ada_value_slice): Likewise.
3438
3439 2018-01-02 Joel Brobecker <brobecker@adacore.com>
3440
3441 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
3442 New enum value.
3443 (create_array_type_with_stride): Add byte_stride_prop parameter.
3444 * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
3445 New parameter. Update all callers in this file.
3446 (array_type_has_dynamic_stride): New function.
3447 (is_dynamic_type_internal, resolve_dynamic_array): Add handling
3448 of arrays with dynamic byte strides.
3449 * dwarf2read.c (read_array_type): Add support for dynamic
3450 DW_AT_byte_stride attributes.
3451
3452 2018-01-02 Joel Brobecker <brobecker@adacore.com>
3453
3454 * dwarf2read.c (read_unspecified_type): Treat
3455 DW_TAG_enumeration_type DIEs from Ada units as stubs.
3456
3457 2018-01-01 Joel Brobecker <brobecker@adacore.com>
3458
3459 Update copyright year range in all GDB files.
3460
3461 2018-01-01 Joel Brobecker <brobecker@adacore.com>
3462
3463 * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
3464 and gdb/testsuite/gdb.base/step-line.c.
3465
3466 2018-01-01 Joel Brobecker <brobecker@adacore.com>
3467
3468 * copyright.py (main): Dump the contents of
3469 MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
3470 even if BY_HAND is empty.
3471
3472 2018-01-01 Joel Brobecker <brobecker@adacore.com>
3473
3474 * top.c (print_gdb_version): Update Copyright year in version
3475 message.
3476
3477 2018-01-01 Joel Brobecker <brobecker@adacore.com>
3478
3479 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
3480
3481 For older changes see ChangeLog-2017.
3482 \f
3483 Local Variables:
3484 mode: change-log
3485 left-margin: 8
3486 fill-column: 74
3487 version-control: never
3488 coding: utf-8
3489 End:
This page took 0.10709 seconds and 4 git commands to generate.