Make cp_remove_params return a gdb::unique_xmalloc_ptr
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
109483d9
PA
12017-10-09 Pedro Alves <palves@redhat.com>
2
3 * cp-support.c (cp_remove_params): Return a gdb::unique_xmalloc_ptr.
4 Use bool.
5 (overload_list_add_symbol): Adjust to use gdb::unique_xmalloc_ptr.
6 * cp-support.h (cp_remove_params): Now returns a
7 gdb::unique_xmalloc_ptr.
8 * dwarf2read.c (find_slot_in_mapped_hash): Now returns bool.
9 Adjust to cp_remove_params returning a gdb::unique_xmalloc_ptr.
10 * psymtab.c (psymtab_search_name): Adjust to cp_remove_params
11 returning a gdb::unique_xmalloc_ptr.
12 (lookup_partial_symbol): Adjust to use gdb::unique_xmalloc_ptr.
13 * stack.c (find_frame_funname): Adjust to cp_remove_params
14 returning a gdb::unique_xmalloc_ptr.
15
791afaa2
TT
162017-10-08 Tom Tromey <tom@tromey.com>
17
18 * dwarf2read.c (dwarf2_get_dwz_file): Use
19 gdb::unique_xmalloc_ptr.
20 (find_slot_in_mapped_hash): Likewise.
21 (dwarf2_physname): Likewise.
22 (create_dwo_unit_in_dwp_v1): Use std::string.
23 (create_dwo_unit_in_dwp_v2): Likewise.
24 (lookup_dwo_cutu): Likewise.
25 (inherit_abstract_dies): Use std::vector.
26 (read_array_type): Likewise.
27 (dwarf_decode_macros): Remove unused declaration.
28 (unsigned_int_compar): Remove.
29 (dwarf2_build_psymtabs_hard): Use scoped_restore.
30 (psymtabs_addrmap_cleanup): Remove.
31
30a9c02f
TT
322017-10-08 Tom Tromey <tom@tromey.com>
33
34 * frame-unwind.c (frame_unwind_try_unwinder): Update.
35 * frame.h (frame_cleanup_after_sniffer): Declare.
36 (frame_prepare_for_sniffer): Return void.
37 * frame.c (frame_cleanup_after_sniffer): No longer static. Change
38 type of argument.
39 (frame_prepare_for_sniffer): Return void.
40
757325a3
TT
412017-10-08 Tom Tromey <tom@tromey.com>
42
43 * utils.h (make_cleanup_value_free): Remove.
44 * utils.c (do_value_free, struct cleanup): Remove.
45 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>:
46 Use gdb_value_up.
47 * value.h (struct value_deleter): New.
48 (gdb_value_up): New typedef.
49
b9c04fb2
TT
502017-10-08 Tom Tromey <tom@tromey.com>
51
52 * symtab.c (free_search_symbols, do_free_search_symbols_cleanup)
53 (make_cleanup_free_search_symbols): Remove.
54 (search_symbols): Return std::vector.
55 (symbol_search::compare_search_syms): Now member of
56 symbol_search. Change arguments.
57 (sort_search_symbols_remove_dups): Change arguments. Rewrite.
58 (symtab_symbol_info, rbreak_command): Update.
59 * symtab.h (struct symbol_search) <next>: Remove.
60 Add constructors.
61 (symbol_search::operator<): New function.
62 (symbol_search::operator==): New function.
63 (search_symbols): Remove std::vector.
64 (free_search_symbols, make_cleanup_free_search_symbols): Remove.
65 (symbol_search::compare_search_syms): Declare.
66
0d28b0a5
YQ
672017-10-06 Yao Qi <yao.qi@linaro.org>
68
69 * Makefile.in (ALL_64_TARGET_OBS): Replace aarch64-insn.o with
70 arch/aarch64-insn.o.
71 Remove one rule.
72 * configure.tgt: Replace aarch64-insn.o with arch/aarch64-insn.o.
73
71917808
YQ
742017-10-06 Yao Qi <yao.qi@linaro.org>
75
76 * Makefile.in (ALL_TARGET_OBS): Replace arm.o, arm-get-next-pcs.o,
77 and arm-linux.o with arch/arm.o, arch/arm-get-next-pcs.o and
78 arch/arm-linux.o respectively.
79 * configure.tgt: Likewise.
80
2081b2b2
YQ
812017-10-06 Yao Qi <yao.qi@linaro.org>
82
83 * Makefile.in (ALL_TARGET_OBS): Rename i386.o to arch/i386.o.
84 * configure.tgt (i386_tobjs): Replace i386.o with arch/i386.o.
85
a1b85d28
PA
862017-10-06 Pedro Alves <palves@redhat.com>
87
88 * windows-nat.c: Include <algorithm>.
89
d97987e2
YQ
902017-10-06 Yao Qi <yao.qi@linaro.org>
91
92 * configure.tgt (i386_tobjs): New variable.
93 (amd64_tobjs): New variable.
94 Set $cpu_obs and $os_obs.
95
f38307f5
YQ
962017-10-06 Yao Qi <yao.qi@linaro.org>
97
98 * Makefile.in (CONFIG_SRC_SUBDIR): New.
99 (ALL_64_TARGET_OBS): Replace amd64.o with arch/amd64.o.
100 (clean): Remove object files and dependency files.
101 (distclean): Remove the directory.
102 * configure.ac: Invoke AC_CONFIG_COMMANDS.
103 * configure: Re-generated.
104 * configure.tgt: Replace amd64.o with arch/amd64.o.
105
2f924de6
JM
1062017-10-05 Jose E. Marchesi <jose.marchesi@oracle.com>
107
108 PR build/22188
109 * arm-tdep.c (arm_decode_misc_memhint_neon): Fix decoding of CPS
110 and SETEND.
111
2fd9d7ca
PA
1122017-10-05 Pedro Alves <palves@redhat.com>
113
114 * linux-nat.c (linux_child_follow_fork): When following the parent
115 and detaching the child, consult the parent thread's architecture
116 instead of the child's.
117
d13b8493
UW
1182017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
119
120 * ax.h: Do not include "doublest.h".
121 (union agent_val): Remove.
122
3b4b2f16
UW
1232017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
124
125 * dfp.h (MAX_DECIMAL_STRING): Move to dfp.c.
126 (decimal_to_string): Return std::string object.
127 (decimal_from_string): Accept std::string object. Return bool.
128 (decimal_from_integral, decimal_from_doublest): Remove.
129 (decimal_from_longest): Add prototype.
130 (decimal_from_ulongest): Likewise.
131 (decimal_to_longest): Likewise.
132 (decimal_from_doublest): Likewise.
133 * dfp.c: Do not include "gdbtypes.h" or "value.h".
134 (MAX_DECIMAL_STRING): Move here.
135 (decimal_to_string): Return std::string object.
136 (decimal_from_string): Accept std::string object. Return bool.
137 (decimal_from_integral): Remove, replace by ...
138 (decimal_from_longest, decimal_from_ulongest): ... these new functions.
139 (decimal_to_longest): New function.
140 (decimal_from_floating): Remove, replace by ...
141 (decimal_from_doublest): ... this new function.
142 (decimal_to_doublest): Update to new decimal_to_string interface.
143
144 * value.c (unpack_long): Use decimal_to_longest.
145 * valops.c (value_cast): Use decimal_from_doublest instead of
146 decimal_from_floating. Use decimal_from_[u]longest isntead of
147 decimal_from_integral.
148 * valarith.c (value_args_as_decimal): Likewise.
149 * valprint.c (print_decimal_floating): Update to new
150 decimal_to_string interface.
151 * printcmd.c (printf_decfloat): Likewise.
152 * c-exp.y (parse_number): Update to new decimal_from_string interface.
153
1841ee5d
UW
1542017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
155
156 * doublest.h: Do not include "floatformat.h". Remove stale comments.
157 * gdbtypes.c: Include "floatformat.h".
158 * value.c: Likewise.
159 * m68k-tdep.c: Likewise.
160
161 * findvar.c: Do not include "floatformat.h".
162 * amd64-darwin-tdep.c: Likewise.
163 * arm-linux-tdep.c: Likewise.
164 * i386-darwin-tdep.c: Likewise.
165 * i387-tdep.c: Likewise.
166 * m68k-linux-tdep.c: Likewise.
167 * mep-tdep.c: Likewise.
168 * mips-tdep.c: Likewise.
169 * nios2-tdep.c: Likewise.
170 * s390-linux-tdep.c: Likewise.
171 * sparc-obsd-tdep.c: Likewise.
172 * sparc-tdep.c: Likewise.
173 * sparc64-tdep.c: Likewise.
174 * spu-tdep.c: Likewise.
175 * tic6x-tdep.c: Likewise.
176 * tilegx-tdep.c: Likewise.
177 * vax-tdep.c: Likewise.
178 * xstormy16-tdep.c: Likewise.
179 * xtensa-tdep.c: Likewise.
180
181 * top.c: Do not include "doublest.h".
182 * aarch64-tdep.c: Likewise.
183 * alpha-tdep.c: Likewise.
184 * arm-linux-tdep.c: Likewise.
185 * m68k-linux-tdep.c: Likewise.
186 * tilegx-tdep.c: Likewise.
187 * xstormy16-tdep.c: Likewise.
188
a80a6471
JB
1892017-10-05 John Baldwin <jhb@FreeBSD.org>
190
191 * mips-fbsd-tdep.c (MIPS_INST_ADDIU_A0_SP_N32): Define.
192 (mipsn32_fbsd_sigframe): Define.
193 (mips_fbsd_init_abi): Install mipsn32_fbsd_sigframe unwinder
194 for FreeBSD/mipsn32.
195
12c4bd7f
JB
1962017-10-05 John Baldwin <jhb@FreeBSD.org>
197
198 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_EHDRFLAGS and
199 AT_HWCAP.
200
c91933e9
TG
2012017-10-05 Tristan Gingold <tgingold@free.fr>
202
203 * MAINTAINERS (Misc): Update my email address.
204
5cd63fda
PA
2052017-10-04 Pedro Alves <palves@redhat.com>
206
207 * remote.c (get_remote_arch_state): New 'gdbarch' parameter. Use
208 it instead of target_gdbarch.
209 (get_remote_state, get_remote_packet_size): Adjust
210 get_remote_arch_state calls, passing down target_gdbarch
211 explicitly.
212 (packet_reg_from_regnum, packet_reg_from_pnum): New parameter
213 'gdbarch' and use it instead of target_gdbarch.
214 (get_memory_packet_size): Adjust get_remote_arch_state calls,
215 passing down target_gdbarch explicitly.
216 (struct stop_reply) <arch>: New field.
217 (remote_parse_stop_reply): Use the stopped thread's architecture,
218 not the current inferior's. Save the architecture in the
219 stop_reply.
220 (process_stop_reply): Use the stop reply's architecture.
221 (process_g_packet, remote_fetch_registers)
222 (remote_prepare_to_store, store_registers_using_G)
223 (remote_store_registers): Adjust get_remote_arch_state calls,
224 using the regcache's architecture.
225 (remote_get_trace_status): Adjust get_remote_arch_state calls,
226 passing down target_gdbarch explicitly.
227 * spu-multiarch.c (spu_thread_architecture): Defer to the target
228 beneath instead of calling target_gdbarch.
229 * target.c (default_thread_architecture): Use the specified
230 inferior's architecture, instead of the current inferior's
231 architecture (via target_gdbarch).
232
ed4227b7
PA
2332017-10-04 Pedro Alves <palves@redhat.com>
234
235 * regcache.c (get_thread_arch_regcache): Remove null_ptid special
236 case.
237 (regcache_print): Handle !target_has_registers here instead.
238
55b11ddf
PA
2392017-10-04 Pedro Alves <palves@redhat.com>
240
241 * frame.c (create_test_frame): Delete.
242 * frame.h (create_test_frame): Delete.
243 * gdbarch-selftests.c: Include gdbthread.h and target.h.
244 (class regcache_test): Delete.
245 (test_target_has_registers, test_target_has_stack)
246 (test_target_has_memory, test_target_prepare_to_store)
247 (test_target_store_registers): New functions.
248 (test_target_ops): New class.
249 (register_to_value_test): Error out if there's already a
250 process_stratum (or higher) target pushed. Create a fuller mock
251 environment, with mock target_ops, inferior, address space, thread
252 and inferior_ptid.
253 * progspace.c (struct address_space): Move to ...
254 * progspace.h (struct address_space): ... here.
255 * regcache.h (regcache::~regcache, regcache::raw_write)
256 [GDB_SELF_TEST]: No longer virtual.
257
4c71c105
SM
2582017-10-04 Simon Marchi <simon.marchi@ericsson.com>
259
260 * mi/mi-main.c (list_available_thread_groups): Reverse filter logic.
261
73dcd72d
PA
2622017-10-04 Pedro Alves <palves@redhat.com>
263
264 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Move code
265 out of 'between TRY and CATCH'.
266
44704526
PA
2672017-10-04 Pedro Alves <palves@redhat.com>
268
269 * cli/cli-cmds.c (complete_command): Add missing END_CATCH.
270 * common/common-exceptions.h (TRY): Open an outermost scope.
271 Expand intro comment.
272 (CATCH): Reindent.
273 (END_CATCH): Close the outermost scope.
274 * completer.c (complete_line_internal): Add missing END_CATCH.
275
bc3b087d
SDJ
2762017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
277
278 * NEWS (Changes since GDB 8.0): Add entry about new
279 'set-cwd-on-gdbserver' feature.
280 (New remote packets): Add entry for QSetWorkingDir.
281 * common/common-inferior.h (set_inferior_cwd): New prototype.
282 * infcmd.c (set_inferior_cwd): Remove "static".
283 (show_cwd_command): Expand text to include remote debugging.
284 * remote.c: Add PACKET_QSetWorkingDir.
285 (remote_protocol_features) <QSetWorkingDir>: New entry for
286 PACKET_QSetWorkingDir.
287 (extended_remote_set_inferior_cwd): New function.
288 (extended_remote_create_inferior): Call
289 "extended_remote_set_inferior_cwd".
290 (_initialize_remote): Call "add_packet_config_cmd" for
291 QSetWorkingDir.
292
d092c5a2
SDJ
2932017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
294
295 * NEWS (New commands): Mention "set/show cwd".
296 * cli/cli-cmds.c (_initialize_cli_cmds): Mention "set cwd" on
297 "cd" command's help text.
298 * common/common-inferior.h (get_inferior_cwd): New prototype.
299 * infcmd.c (inferior_cwd_scratch): New global variable.
300 (set_inferior_cwd): New function.
301 (get_inferior_cwd): Likewise.
302 (set_cwd_command): Likewise.
303 (show_cwd_command): Likewise.
304 (_initialize_infcmd): Add "set/show cwd" commands.
305 * inferior.h (class inferior) <cwd>: New field.
306 * nat/fork-inferior.c: Include "gdb_tilde_expand.h".
307 (fork_inferior): Change inferior's cwd before its execution.
308 * windows-nat.c (windows_create_inferior): Pass inferior's cwd
309 to CreateProcess.
310
7da0a886
SDJ
3112017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
312
313 * Makefile.in (SFILES): Add gdb_tilde_expand.c.
314 (HFILES_NO_SRCDIR): Add gdb_tilde_expand.h.
315 (COMMON_OBS): Add gdb_tilde_expand.o.
316 * common/gdb_tilde_expand.c: New file.
317 * common/gdb_tilde_expand.h: Likewise.
318
db8dd160
MR
3192017-10-03 Maciej W. Rozycki <macro@imgtec.com>
320
321 * gdbarch.sh (objfile): Remove duplicate declaration.
322 * gdbarch.h: Regenerate.
323
f8bfbf22
TT
3242017-10-03 Tom Tromey <tom@tromey.com>
325
326 * utils.c (internal_vproblem): Use string_vprintf.
327
5178ed48
TT
3282017-10-03 Tom Tromey <tom@tromey.com>
329
330 * printcmd.c (info_symbol_command): Use std::string.
331
8cff8730
TT
3322017-10-03 Tom Tromey <tom@tromey.com>
333
334 * top.c (gdb_safe_append_history): Use std::string.
335
895b8f30
TT
3362017-10-03 Tom Tromey <tom@tromey.com>
337
338 * event-top.c (stdin_event_handler): Update.
339 * main.c (captured_main_1): Update.
340 * top.h (make_delete_ui_cleanup): Remove.
341 (struct ui): Add constructor and destructor.
342 (new_ui, delete_ui): Remove.
343 * top.c (make_delete_ui_cleanup): Remove.
344 (new_ui_command): Use std::unique_ptr.
345 (delete_ui_cleanup): Remove.
346 (ui::ui): Rename from new_ui. Update.
347 (free_ui): Remove.
348 (ui::~ui): Rename from delete_ui. Update.
349
0efef640
TT
3502017-10-03 Tom Tromey <tom@tromey.com>
351
352 * symfile.c (load_progress): Use gdb::byte_vector.
353
245ad7d3
TT
3542017-10-03 Tom Tromey <tom@tromey.com>
355
356 * mi/mi-main.c (mi_cmd_trace_frame_collected): Remove unused
357 declaration.
358 * printcmd.c (x_command): Remove unused declaration.
359 * symfile.c (symbol_file_command): Remove unused declaration.
360
e05550d7
TT
3612017-10-03 Tom Tromey <tom@tromey.com>
362
363 * utils.c (internal_vproblem): Use std::string.
364 (defaulted_query): Likewise.
365
b95de2b7
TT
3662017-10-03 Tom Tromey <tom@tromey.com>
367
368 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Update.
369 * top.c (execute_command_to_string): Update.
370 * utils.c (make_cleanup_restore_page_info): Remove.
371 (do_restore_page_info_cleanup): Remove.
372 (set_batch_flag_and_restore_page_info):
373 New.
374 (make_cleanup_restore_page_info): Remove.
375 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
376 (~set_batch_flag_and_restore_page_info): New
377 (make_cleanup_restore_uinteger): Remove.
378 (make_cleanup_restore_integer): Remove.
379 (struct restore_integer_closure): Remove.
380 (restore_integer): Remove.
381 * utils.h (struct set_batch_flag_and_restore_page_info): New
382 class.
383 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
384 (make_cleanup_restore_page_info): Remove.
385 (make_cleanup_restore_uinteger) Remove.
386 (make_cleanup_restore_integer) Remove.
387
07036511
TT
3882017-10-03 Tom Tromey <tom@tromey.com>
389
390 * record-full.h (record_full_gdb_operation_disable_set): Return
391 scoped_restore_tmpl<int>.
392 * infrun.c (adjust_pc_after_break): Update.
393 (handle_signal_stop): Update.
394 * record-full.c (record_full_gdb_operation_disable_set): Return
395 scoped_restore_tmpl<int>.
396 (record_full_wait_1, record_full_insert_breakpoint)
397 (record_full_remove_breakpoint, record_full_save)
398 (record_full_goto_insn): Update.
399
45320ffa
TT
4002017-10-02 Tom Tromey <tom@tromey.com>
401
402 PR rust/22236:
403 * rust-lang.c (rust_val_print_str): New function.
404 (val_print_struct): Call it.
405 (rust_subscript): Preserve name of slice type.
406
b3e3859b
TT
4072017-10-02 Tom Tromey <tom@tromey.com>
408
409 * rust-lang.c (rust_subscript): Handle slices in
410 EVAL_AVOID_SIDE_EFFECTS case.
411
01af5e0d
TT
4122017-10-02 Tom Tromey <tom@tromey.com>
413
414 * rust-lang.c (rust_slice_type_p): Recognize &str as a slice type.
415
888e3ddb
TT
4162017-10-02 Tom Tromey <tom@tromey.com>
417
418 * rust-lang.h (rust_slice_type): Add "extern".
419
cc536b21
PA
4202017-10-02 Tom Tromey <tom@tromey.com>
421 Pedro Alves <palves@redhat.com>
422
423 * ada-lang.h (ada_exc_info::operator<): Make const.
424 (ada_exc_info::operator==): Make const.
425 * ada-lang.c (ada_exc_info::operator<, ada_exc_info::operator==):
426 Make const.
427
386c8614
TT
4282017-09-29 Tom Tromey <tom@tromey.com>
429
430 * target.c (read_whatever_is_readable): Change type of "result".
431 Update.
432 (free_memory_read_result_vector): Remove.
433 (read_memory_robust): Change return type. Update.
434 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Update. Use
435 bin2hex, std::string.
436 * target.h (memory_read_result_s): Remove typedef.
437 (free_memory_read_result_vector): Remove.
438 (read_memory_robust): Return std::vector.
439
789c4b5e
TT
4402017-09-29 Tom Tromey <tom@tromey.com>
441
442 * mi/mi-main.c (captured_mi_execute_command): Use scope_restore.
443
ab816a27
TT
4442017-09-29 Tom Tromey <tom@tromey.com>
445
446 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Update.
447 * ada-lang.h (struct ada_exc_info): Remove typedef. Declare
448 operator< and operator==.
449 (ada_exceptions_list): Return a std::vector.
450 * ada-lang.c (ada_exc_info::operator<): Rename from
451 compare_ada_exception_info.
452 (ada_exc_info::operator==): New.
453 (sort_remove_dups_ada_exceptions_list): Change type of
454 "exceptions".
455 (ada_add_standard_exceptions, ada_add_exceptions_from_frame)
456 (ada_add_global_exceptions): Likewise.
457 (ada_exceptions_list_1): Return a std::vector.
458 (ada_exceptions_list): Likewise.
459
52f9abe4
TT
4602017-09-29 Tom Tromey <tom@tromey.com>
461
462 * mi/mi-main.c (struct print_one_inferior_data) <inferiors>: Now a
463 'std::set *'.
464 (print_one_inferior): Update.
465 (free_vector_of_ints): Remove.
466 (list_available_thread_groups): Change "ids" to std::set.
467 (mi_cmd_list_thread_groups): Update.
468 (struct collect_cores_data) <core>: Now a std::set.
469 (collect_cores): Update.
470 (unique): Remove.
471 (print_one_inferior): Update.
472
dcd5ddcc
TT
4732017-09-29 Tom Tromey <tom@tromey.com>
474
475 * mi/mi-main.c (mi_execute_cli_command): Use std::string.
476 (mi_execute_async_cli_command): Likewise.
477 (mi_cmd_trace_frame_collected): Use field_fmt.
478
45d288cc
TT
4792017-09-29 Tom Tromey <tom@tromey.com>
480
481 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Use
482 gdb::byte_vector.
483
6afe2f4a
TT
4842017-09-29 Tom Tromey <tom@tromey.com>
485
486 * mi/mi-parse.c (mi_parse): Remove unused declaration.
487
9813429a
TT
4882017-09-29 Tom Tromey <tom@tromey.com>
489
490 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Don't copy "oarg".
491
2d6960b4
TT
4922017-09-29 Tom Tromey <tom@tromey.com>
493
494 * varobj.h (varobj_gen_name): Return std::string.
495 * varobj.c (varobj_gen_name): Return std::string.
496 * mi/mi-cmd-var.c (mi_cmd_var_create): Use std::string.
497 (mi_cmd_var_delete): Don't copy "name".
498
784c453a
TT
4992017-09-29 Tom Tromey <tom@tromey.com>
500
501 * mi/mi-cmd-break.c (mi_argv_to_format): Return std::string.
502 (mi_cmd_break_insert_1): Update.
503
a9bc57b9
TT
5042017-09-29 Tom Tromey <tom@tromey.com>
505
506 * target.h (make_scoped_defer_target_commit_resume): Update.
507 * target.c (make_scoped_defer_target_commit_resume): Rename from
508 make_cleanup_defer_target_commit_resume. Return a
509 scoped_restore.
510 * infrun.c (proceed): Use make_scoped_defer_target_commit_resume.
511
9754d8c4
TT
5122017-09-29 Tom Tromey <tom@tromey.com>
513
514 * main.c (captured_main_1): Remove unused declaration.
515 * spu-multiarch.c (parse_spufs_run): Remove unused declaration.
516
99ef965c
TT
5172017-09-29 Tom Tromey <tom@tromey.com>
518
519 * symtab.c (search_symbols): Remove unused outer cleanup.
520 (make_source_files_completion_list): Remove unused declaration.
521
42518ba7
TT
5222017-09-29 Tom Tromey <tom@tromey.com>
523
524 * mt-tdep.c (mt_push_dummy_call): Use gdb::byte_vector.
525
726b2169
TT
5262017-09-29 Tom Tromey <tom@tromey.com>
527
528 * xstormy16-tdep.c (xstormy16_push_dummy_call): Use
529 gdb::byte_vector.
530
55b06432
TT
5312017-09-29 Tom Tromey <tom@tromey.com>
532
533 * complaints.c (vcomplaint): Use std::string.
534
8abcee91
TT
5352017-09-29 Tom Tromey <tom@tromey.com>
536
537 * tracepoint.c (trace_variable_command): Use std::string.
538 (encode_actions_1): Remove unused declarations.
539 (create_tsv_from_upload): Use std::string.
540
6ad94bc7
TT
5412017-09-29 Tom Tromey <tom@tromey.com>
542
543 * cp-support.c (gdb_demangle): Use std::string.
544
2003f3d8
TT
5452017-09-29 Tom Tromey <tom@tromey.com>
546
547 * stack.c (parse_frame_specification): Use std::string
548 (info_frame_command): Use gdb::unique_xmalloc_ptr.
549
8f8accb5
TT
5502017-09-29 Tom Tromey <tom@tromey.com>
551
552 * tilegx-tdep.c (tilegx_push_dummy_call): Use gdb::byte_vector.
553
200aa7b1
TT
5542017-09-29 Tom Tromey <tom@tromey.com>
555
556 * utils.c (vfprintf_maybe_filtered): Use std::string.
557 (vfprintf_unfiltered): Likewise.
558
606aae8a
TT
5592017-09-29 Tom Tromey <tom@tromey.com>
560
561 * event-top.c (top_level_prompt): Return std::string.
562 (display_gdb_prompt): Update.
563
bd413795
TT
5642017-09-29 Tom Tromey <tom@tromey.com>
565
566 * unittests/common-utils-selftests.c (format): New function.
567 (string_vprintf_tests): New function.
568 (_initialize_common_utils_selftests): Register new tests.
569 * common/common-utils.c (string_vprintf): New function.
570 * common/common-utils.h (string_vprintf): Declare.
571
256642e8
PA
5722017-09-29 Pedro Alves <palves@redhat.com>
573
574 * common/rsp-low.c (unpack_varlen_hex): Constify.
575 * common/rsp-low.h (unpack_varlen_hex): Constify.
576 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
577 Constify.
578 * remote.c (remote_set_permissions, read_ptid)
579 (remote_current_thread, remote_get_threads_with_qthreadinfo)
580 (remote_static_tracepoint_marker_at)
581 (remote_static_tracepoint_markers_by_strid)
582 (stop_reply_extract_thread, remote_parse_stop_reply): Constify.
583 * tracepoint.c (parse_trace_status, parse_tracepoint_status)
584 (parse_tracepoint_definition, parse_tsv_definition)
585 (parse_static_tracepoint_marker_definition): Constify.
586 * tracepoint.h (parse_static_tracepoint_marker_definition)
587 (parse_trace_status, parse_tracepoint_status)
588 (parse_tracepoint_definition, parse_tsv_definition): Constify.
589
b6bb3468
PA
5902017-09-29 Pedro Alves <palves@redhat.com>
591
592 * remote.c (target_buf, target_buf_size): Delete.
593 (remote_get_noisy_reply): Remove buf_p and sizeof_buf parameters.
594 Use the connection's packet buffer instead.
595 All callers adjusted.
596 (_initialize_remote): Remove references to target_buf and
597 target_buf_size.
598
b2f8eb7a
PA
5992017-09-28 Pedro Alves <palves@redhat.com>
600
601 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
602 unittests/common-utils-selftests.c.
603 (SUBDIR_UNITTESTS_OBS): Add common-utils-selftests.o.
604 (COMMON_OBS): Remove utils-selftests.o.
605 * utils-selftests.c: Move to ...
606 * unittests/common-utils-selftests.c: ... here and rename self
607 test to "string_printf".
608
08302ed2
DE
6092017-09-28 Alexander Shaposhnikov <alexander.v.shaposhnikov@gmail.com> (tiny patch)
610
611 * dwarf2read.c (open_and_init_dwp_file): Protect against dwp_file
612 having NULL cus or tus.
613
96a5a1d3
UW
6142017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
615
616 * arm-tdep.c: (convert_from_extended): Remove.
617 (convert_to_extended): Likewise.
618 (arm_extract_return_value): Use convert_typed_floating.
619 (arm_store_return_value): Likewise.
620
621 * sh-tdep.h (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
622 * sh-tdep.c: Do not include "floatformat.h".
623 (sh_littlebyte_bigword_type): New function.
624 (sh_register_convert_to_virtual): Use convert_typed_floating.
625 (sh_register_convert_to_raw): Likewise.
626 * sh64-tdep.c: (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
627 (sh64_littlebyte_bigword_type): New function.
628 (sh64_extract_return_value): Use convert_typed_floating.
629 (sh64_register_convert_to_virtual): Likewise.
630 (sh64_register_convert_to_raw): Likewise.
631
0db7851f
UW
6322017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
633
634 * doublest.h (floatformat_from_type): Move to gdbtypes.h.
635 * doublest.c (floatformat_from_type): Move to gdbtypes.c.
636
637 * gdbtypes.h (union type_specific): Make field floatformat hold
638 just a single struct floatformat, not an array.
639 (floatformat_from_type): Move here.
640 * gdbtypes.c (floatformat_from_type): Move here. Update to
641 changed TYPE_FLOATFORMAT definition.
642 (verify_floatformat): Update to changed TYPE_FLOATFORMAT.
643 (recursive_dump_type): Likewise.
644 (init_float_type): Install correct floatformat for byte order.
645 (arch_float_type): Likewise.
646
77b7c781
UW
6472017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
648
649 * gdbtypes.c (init_type): Change incoming argument from
650 length-in-bytes to length-in-bits. Assert length is a
651 multiple of TARGET_CHAR_BITS.
652 (arch_type, arch_flags_type): Likewise.
653 (init_integer_type): Update call to init_type.
654 (init_character_type): Likewise.
655 (init_boolean_type): Likewise.
656 (init_float_type): Likewise.
657 (init_decfloat_type): Likewise.
658 (init_complex_type): Likewise.
659 (init_pointer_type): Likewise.
660 (objfile_type): Likewise.
661 (arch_integer_type): Update call to arch_type.
662 (arch_character_type): Likewise.
663 (arch_boolean_type): Likewise.
664 (arch_float_type): Likewise.
665 (arch_decfloat_type): Likewise.
666 (arch_complex_type): Likewise.
667 (arch_pointer_type): Likewise.
668 (gdbtypes_post_init): Likewise.
669
670 * dwarf2read.c (dwarf2_init_float_type): Update call to init_type.
671 (read_base_type): Likewise.
672 * mdebugread.c (basic_type): Likewise.
673 * stabsread.c (dbx_init_float_type): Likewise.
674 (rs6000_builtin_type): Likewise.
675 (read_range_type): Likewise. Also, fix call to init_integer_type
676 with erroneous length argument.
677
678 * ada-lang.c (ada_language_arch_info): Update call to arch_type.
679 * d-lang.c (build_d_types): Likewise.
680 * f-lang.c (build_fortran_types): Likewise.
681 * go-lang.c (build_go_types): Likewise.
682 * opencl-lang.c (build_opencl_types): Likewise.
683 * jit.c (finalize_symtab): Likewise.
684 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
685 (build_std_type_info_type): Likewise.
686 * target-descriptions.c (tdesc_gdb_type): Likewise. Also,
687 update call to arch_flags_type.
688
689 * linux-tdep.c (linux_get_siginfo_type_with_fields): Update call to
690 arch_type.
691 * fbsd-tdep.c (fbsd_get_siginfo_type): Likewise.
692 * windows-tdep.c (windows_get_tlb_type): Likewise.
693
694 * avr-tdep.c (avr_gdbarch_init): Update call to arch_type.
695 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
696 * m32c-tdep.c (make_types): Likewise.
697 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
698 (rl78_psw_type): Update call to arch_flags_type.
699 * m68k-tdep.c (m68k_ps_type): Update call to arch_flags_type.
700 * rx-tdep.c (rx_psw_type): Likewise.
701 (rx_fpsw_type): Likewise.
702 * sparc-tdep.c (sparc_psr_type): Likewise.
703 (sparc_fsr_type): Likewise.
704 * sparc64-tdep.c (sparc64_pstate_type): Likewise.
705 (sparc64_ccr_type): Likewise.
706 (sparc64_fsr_type): Likewise.
707 (sparc64_fprs_type): Likewise.
708
f21b4d5c
TT
7092017-09-27 Tom Tromey <tom@tromey.com>
710
711 * findcmd.c (find_command): Constify.
712
643c2ffa
TT
7132017-09-27 Tom Tromey <tom@tromey.com>
714
715 * ada-tasks.c (task_command_1, task_command): Constify.
716
510e5e56
TT
7172017-09-27 Tom Tromey <tom@tromey.com>
718
719 * symtab.c (maintenance_print_symbol_cache)
720 (maintenance_flush_symbol_cache)
721 (maintenance_print_symbol_cache_statistics): Constify.
722
e503b191
TT
7232017-09-27 Tom Tromey <tom@tromey.com>
724
725 * inferior.c (detach_inferior_command, kill_inferior_command)
726 (inferior_command): Constify.
727
4e001312
TT
7282017-09-27 Tom Tromey <tom@tromey.com>
729
730 * regcache.c (regcache_print, maintenance_print_registers)
731 (maintenance_print_raw_registers)
732 (maintenance_print_cooked_registers)
733 (maintenance_print_register_groups)
734 (maintenance_print_remote_registers): Constify.
735
77763700
TT
7362017-09-27 Tom Tromey <tom@tromey.com>
737
738 * printcmd.c (map_display_numbers, undisplay_command)
739 (enable_disable_display_command, enable_display_command)
740 (disable_display_command): Constify.
741
4495129a
TT
7422017-09-27 Tom Tromey <tom@tromey.com>
743
744 * breakpoint.h (delete_command): Don't declare.
745 * breakpoint.c (delete_command, enable_once_command)
746 (enable_count_command, enable_delete_command, breakpoint_1)
747 (maintenance_info_breakpoints, stopin_command, stopat_command)
748 (delete_command, delete_trace_command, save_breakpoints)
749 (save_breakpoints_command, save_tracepoints_command): Constify.
750
3088cf40
TT
7512017-09-27 Tom Tromey <tom@tromey.com>
752
753 * macrocmd.c (macro_expand_command, macro_expand_once_command)
754 (skip_ws, extract_identifier, macro_define_command)
755 (macro_undef_command, macro_list_command): Constify.
756
69f476a3
TT
7572017-09-27 Tom Tromey <tom@tromey.com>
758
759 * infcmd.c (environment_info, set_environment_command)
760 (unset_environment_command, path_info, info_proc_cmd_1)
761 (info_proc_cmd_mappings, info_proc_cmd_stat)
762 (info_proc_cmd_status, info_proc_cmd_cwd, info_proc_cmd_cmdline)
763 (info_proc_cmd_exe, info_proc_cmd_all): Constify.
764
c4a3e68e
TT
7652017-09-27 Tom Tromey <tom@tromey.com>
766
767 * i386-tdep.c (i386_mpx_info_bounds, i386_mpx_set_bounds):
768 Constify.
769
c9d31bd6
TT
7702017-09-27 Tom Tromey <tom@tromey.com>
771
772 * symfile-mem.c (add_symbol_file_from_memory_command): Constify.
773
1f3f85eb
TT
7742017-09-27 Tom Tromey <tom@tromey.com>
775
776 * demangle.c (demangle_command): Constify.
777
9c504b5d
TT
7782017-09-27 Tom Tromey <tom@tromey.com>
779
780 * progspace.c (maintenance_info_program_spaces_command):
781 Constify.
782
6663cf91
TT
7832017-09-27 Tom Tromey <tom@tromey.com>
784
785 * compile/compile.c (check_raw_argument, compile_file_command)
786 (compile_code_command, compile_print_command): Constify.
787
34e5fa26
TT
7882017-09-27 Tom Tromey <tom@tromey.com>
789
790 * reggroups.c (maintenance_print_reggroups): Constify.
791
8384c356
TT
7922017-09-27 Tom Tromey <tom@tromey.com>
793
794 * dwarf2read.c (save_gdb_index_command): Constify.
795
884beb0c
TT
7962017-09-27 Tom Tromey <tom@tromey.com>
797
798 * stap-probe.c (info_probes_stap_command): Constify.
799
e0b2930c
TT
8002017-09-27 Tom Tromey <tom@tromey.com>
801
802 * fork-child.c (unset_exec_wrapper_command): Constify.
803
f938677d
TT
8042017-09-27 Tom Tromey <tom@tromey.com>
805
806 * btrace.c (get_uint, get_context_size, no_chunk)
807 (maint_btrace_packet_history_cmd)
808 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
809 (maint_info_btrace_cmd): Constify.
810
8949cb87
TT
8112017-09-27 Tom Tromey <tom@tromey.com>
812
813 * reverse.c (delete_bookmark_command): Constify.
814
ac88e2de
TT
8152017-09-27 Tom Tromey <tom@tromey.com>
816
817 * remote.c (set_memory_packet_size)
818 (set_memory_write_packet_size, show_memory_write_packet_size)
819 (set_memory_read_packet_size, show_memory_read_packet_size)
820 (compare_sections_command, packet_command, remote_put_command)
821 (remote_get_command, remote_delete_command): Constify.
822
bd4c9dfe
TT
8232017-09-27 Tom Tromey <tom@tromey.com>
824
825 * mips-tdep.c (show_mipsfpu_command, set_mipsfpu_single_command)
826 (set_mipsfpu_double_command, set_mipsfpu_none_command)
827 (set_mipsfpu_auto_command): Constify.
828
5e93d4c6
TT
8292017-09-27 Tom Tromey <tom@tromey.com>
830
831 * cli/cli-cmds.h (cd_command): Constify.
832 * cli/cli-cmds.c (cd_command): Constify.
833
fc41a75b
TT
8342017-09-27 Tom Tromey <tom@tromey.com>
835
836 * thread.c (thread_name_command, thread_find_command): Constify.
837
67810076
TT
8382017-09-27 Tom Tromey <tom@tromey.com>
839
840 * probe.c (enable_probes_command, disable_probes_command):
841 Constify.
842
1d8b34a7
TT
8432017-09-27 Tom Tromey <tom@tromey.com>
844
845 * symfile.c (symbol_file_command): Constify.
846 * gdbcore.h (deprecated_file_changed_hook): Constify.
847 * exec.c (deprecated_file_changed_hook, exec_file_command)
848 (file_command): Constify.
849 * defs.h (symbol_file_command): Constify.
850
442019e1
TT
8512017-09-27 Tom Tromey <tom@tromey.com>
852
853 * remote-fileio.c (set_system_call_allowed)
854 (show_system_call_allowed): Constify.
855
2983f7cb
TT
8562017-09-27 Tom Tromey <tom@tromey.com>
857
858 * tracepoint.c (delete_trace_variable_command)
859 (tfind_end_command, tfind_start_command, tfind_pc_command)
860 (tfind_tracepoint_command, tfind_line_command)
861 (tfind_range_command, tfind_outside_command): Constify.
862
4fd41b24
TT
8632017-09-27 Tom Tromey <tom@tromey.com>
864
865 * ax-gdb.c (maint_agent_printf_command, agent_command)
866 (agent_eval_command): Constify.
867
f2fc3015
TT
8682017-09-27 Tom Tromey <tom@tromey.com>
869
870 * tracepoint.c (info_scope_command): Constify.
871 * python/python.c (gdbpy_decode_line): Constify.
872 * python/py-breakpoint.c (bppy_init): Constify.
873 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Constify.
874 * location.h: (new_linespec_location)
875 (string_to_event_location_basic, string_to_event_location):
876 Constify.
877 * location.c (new_linespec_location)
878 (string_to_event_location_basic, string_to_event_location):
879 Constify.
880 * linespec.h (decode_line_with_current_source)
881 (decode_line_with_last_displayed, linespec_lex_to_end): Constify.
882 * linespec.c (linespec_lex_to_end)
883 (decode_line_with_current_source)
884 (decode_line_with_last_displayed): Constify.
885 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x):
886 Constify.
887 * cli/cli-cmds.c (edit_command, list_command): Constify.
888 * breakpoint.h (until_break_command, watch_command_wrapper)
889 (awatch_command_wrapper, rwatch_command_wrapper)
890 (init_ada_exception_breakpoint): Constify.
891 * breakpoint.c (break_command_1, dprintf_command)
892 (break_range_command, watch_command_wrapper)
893 (rwatch_command_wrapper, awatch_command_wrapper)
894 (until_break_command, init_ada_exception_breakpoint)
895 (strace_marker_create_sals_from_location, trace_command)
896 (ftrace_command, strace_command, struct tracepoint): Constify.
897 * ax-gdb.c (agent_command_1): Constify.
898 * ada-lang.c (ada_exception_sal): Constify.
899
8c2f95f4
TT
9002017-09-27 Tom Tromey <tom@tromey.com>
901
902 * record.c (cmd_record_delete, cmd_record_stop, cmd_record_save)
903 (cmd_record_goto_begin, cmd_record_goto_end, get_insn_number)
904 (get_context_size, no_chunk, get_insn_history_modifiers)
905 (cmd_record_insn_history, get_call_history_modifiers)
906 (cmd_record_call_history): Constify.
907
a0d65762
TT
9082017-09-27 Tom Tromey <tom@tromey.com>
909
910 * source.c (show_substitute_path_command)
911 (unset_substitute_path_command, set_substitute_path_command):
912 Constify.
913
58971144
TT
9142017-09-27 Tom Tromey <tom@tromey.com>
915
916 * typeprint.c (maintenance_print_type): Constify.
917 * maint.c (maintenance_dump_me, maintenance_demangle)
918 (maintenance_time_display, maintenance_info_sections)
919 (maintenance_print_statistics, maintenance_deprecate)
920 (maintenance_undeprecate): Constify.
921 (maintenance_do_deprecate): Constify. Use std::string.
922 (maintenance_selftest): Constify.
923 * gdbtypes.h (maintenance_print_type): Constify.
924
c482f52c
TT
9252017-09-27 Tom Tromey <tom@tromey.com>
926
927 * hppa-tdep.c (unwind_command): Constify.
928
e100df1a
TT
9292017-09-27 Tom Tromey <tom@tromey.com>
930
931 * target-descriptions.c (unset_tdesc_filename_cmd)
932 (maint_print_c_tdesc_cmd, maintenance_check_xml_descriptions):
933 Constify.
934
31d56ade
TT
9352017-09-27 Tom Tromey <tom@tromey.com>
936
937 * dummy-frame.c (maintenance_print_dummy_frames): Constify.
938
b961da0b
TT
9392017-09-27 Tom Tromey <tom@tromey.com>
940
941 * tui/tui.c (tui_enable_command, tui_disable_command): Constify.
942
e2d8ae16
TT
9432017-09-27 Tom Tromey <tom@tromey.com>
944
945 * tui/tui-regs.c (tui_reg_command): Constify.
946
863779b0
TT
9472017-09-27 Tom Tromey <tom@tromey.com>
948
949 * skip.c (skip_file_command, skip_function_command)
950 (skip_enable_command, skip_disable_command, skip_delete_command):
951 Constify.
952
cdb34d4a
TT
9532017-09-27 Tom Tromey <tom@tromey.com>
954
955 * record-btrace.c (cmd_record_btrace_bts_start)
956 (cmd_record_btrace_pt_start): Constify.
957
e99c83e7
TT
9582017-09-27 Tom Tromey <tom@tromey.com>
959
960 * symmisc.c (maintenance_print_symbols)
961 (maintenance_print_msymbols, maintenance_print_objfiles)
962 (maintenance_info_symtabs, maintenance_check_symtabs)
963 (maintenance_expand_symtabs, maintenance_info_line_tables):
964 Constify.
965
32faf971
TT
9662017-09-27 Tom Tromey <tom@tromey.com>
967
968 * top.c (new_ui_command): Constify.
969
2cf311eb
TT
9702017-09-27 Tom Tromey <tom@tromey.com>
971
972 * symfile.c (add_symbol_file_command)
973 (remove_symbol_file_command, list_overlays_command)
974 (map_overlay_command, unmap_overlay_command)
975 (overlay_auto_command, overlay_manual_command)
976 (overlay_off_command, overlay_load_command): Constify.
977
e6738699
TT
9782017-09-27 Tom Tromey <tom@tromey.com>
979
980 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
981 (info_spu_mailbox_command, info_spu_dma_command)
982 (info_spu_proxydma_command): Constify.
983
aa360cd5
TT
9842017-09-27 Tom Tromey <tom@tromey.com>
985
986 * cli/cli-logging.c (set_logging_on, set_logging_off): Constify.
987
898241a5
TT
9882017-09-27 Tom Tromey <tom@tromey.com>
989
990 * cli/cli-script.c (user_defined_command): Constify.
991
2d0ac106
TT
9922017-09-27 Tom Tromey <tom@tromey.com>
993
994 * cli/cli-dump.c (dump_memory_command, dump_value_command)
995 (dump_srec_memory, dump_srec_value, dump_ihex_memory)
996 (dump_ihex_value, dump_verilog_memory, dump_verilog_value)
997 (dump_tekhex_memory, dump_tekhex_value, dump_binary_memory)
998 (dump_binary_value, append_binary_memory, append_binary_value):
999 Constify.
1000 (struct dump_context) <func>: Constify.
1001 (add_dump_command): Update.
1002
dede02ce
TT
10032017-09-27 Tom Tromey <tom@tromey.com>
1004
1005 * cli/cli-cmds.c (show_version, show_configuration)
1006 (source_command, show_user): Constify.
1007
d3cb6b99
TT
10082017-09-27 Tom Tromey <tom@tromey.com>
1009
1010 * target.c (maintenance_print_target_stack): Constify.
1011
1970a12f
TT
10122017-09-27 Tom Tromey <tom@tromey.com>
1013
1014 * interps.c (interpreter_exec_cmd): Constify.
1015
41243651
TT
10162017-09-27 Tom Tromey <tom@tromey.com>
1017
1018 * record-full.c (cmd_record_full_restore): Constify.
1019
4465d9db
TT
10202017-09-27 Tom Tromey <tom@tromey.com>
1021
1022 * memattr.c (enable_mem_command, disable_mem_command)
1023 (delete_mem_command): Constify.
1024
ad25e423
TT
10252017-09-27 Tom Tromey <tom@tromey.com>
1026
1027 * value.c (show_convenience): Constify.
1028
d64097b1
TT
10292017-09-27 Tom Tromey <tom@tromey.com>
1030
1031 * gdbcore.h (core_file_command): Update.
1032 * corefile.c (core_file_command): Constify.
1033
4d4589ef
TT
10342017-09-27 Tom Tromey <tom@tromey.com>
1035
1036 * user-regs.c (maintenance_print_user_registers): Constify.
1037
32a7bf17
TT
10382017-09-27 Tom Tromey <tom@tromey.com>
1039
1040 * cp-namespace.c (maintenance_cplus_namespace): Constify.
1041
4a475551
TT
10422017-09-27 Tom Tromey <tom@tromey.com>
1043
1044 * cp-support.c (first_component_command): Constify.
1045
990b9f9f
TT
10462017-09-27 Tom Tromey <tom@tromey.com>
1047
1048 * psymtab.c (maintenance_print_psymbols)
1049 (maintenance_info_psymtabs, maintenance_check_psymtabs):
1050 Constify.
1051
c281872e
TT
10522017-09-27 Tom Tromey <tom@tromey.com>
1053
1054 * windows-tdep.c (display_tib): Constify.
1055
5b64bf74
TT
10562017-09-27 Tom Tromey <tom@tromey.com>
1057
1058 * linux-fork.c (delete_checkpoint_command)
1059 (detach_checkpoint_command): Constify.
1060
4ada038f
TT
10612017-09-27 Tom Tromey <tom@tromey.com>
1062
1063 * cp-abi.c (set_cp_abi_cmd, show_cp_abi_cmd): Constify.
1064
57f5a81b
TT
10652017-09-27 Tom Tromey <tom@tromey.com>
1066
1067 * arc-tdep.c (dump_arc_instruction_command): Constify.
1068
b0a8e6c4
TT
10692017-09-27 Tom Tromey <tom@tromey.com>
1070
1071 * valprint.c (set_radix, show_radix): Constify.
1072
8d97dc1c
TT
10732017-09-27 Tom Tromey <tom@tromey.com>
1074
1075 * dtrace-probe.c (info_probes_dtrace_command): Constify.
1076
eb7c454d
TT
10772017-09-27 Tom Tromey <tom@tromey.com>
1078
1079 * command.h (not_just_help_class_command): Update.
1080 * cli/cli-decode.h (not_just_help_class_command): Update.
1081 * cli/cli-decode.c (not_just_help_class_command): Constify.
1082
e4e33335
TT
10832017-09-27 Tom Tromey <tom@tromey.com>
1084
1085 * gdb_bfd.c (maintenance_info_bfds): Constify.
1086
0450cc4c
TT
10872017-09-27 Tom Tromey <tom@tromey.com>
1088
1089 * cli/cli-decode.c (add_cmd, set_cmd_cfunc): New function
1090 overloads.
1091 (do_add_cmd): Rename from add_cmd. Don't call set_cmd_cfunc.
1092 (do_const_cfunc): New function.
1093 (cmd_cfunc_eq): New overload.
1094 (cli_user_command_p): Check do_const_cfunc.
1095 * cli/cli-decode.h (struct cmd_list_element) <function>: New field
1096 const_cfunc.
1097 * command.h (add_cmd): Add const overload and no-function
1098 overload.
1099 (set_cmd_cfunc): Add const overload.
1100 (cmd_const_cfunc_ftype): Declare.
1101 (cmd_cfunc_eq): Add const overload.
1102 * breakpoint.c, cli-cmds.c, cli-dump.c, guile/scm-cmd.c,
1103 python/py-cmd.c, target.c, tracepoint.c: Use no-function add_cmd
1104 overload.
1105
a9bbfbd8
TT
11062017-09-27 Tom Tromey <tom@tromey.com>
1107
1108 * macroexp.c (get_next_token_for_substitution): New function.
1109 (substitute_args): Call it. Check for __VA_OPT__.
1110
5230b05a
WT
11112017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
1112 Pedro Alves <palves@redhat.com>
1113
1114 * dwarf2read.c (dwarf2_cu): Remove field producer_is_icc and add
1115 producer_is_icc_lt_14.
1116 (producer_is_icc_lt_14): New function.
1117 (check_producer): Add code for checking version of ICC.
1118 (producer_is_icc): Move to producer.c.
1119 (read_structure_type): Restrict ICC workaround to ICC<14.
1120 * producer.c: Include selftest.h.
1121 (producer_is_icc, producer_parsing_tests, _initialize_producer):
1122 New functions.
1123 * producer.h (producer_is_icc): New declaration.
1124
b32b108a
WT
11252017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
1126
1127 * Makefile.in (SFILES): Add producer.c.
1128 (COMMON_OBS): Add producer.o
1129 * amd64-tdep.c (producer.h): Add new include.
1130 * dwarf2read.c (producer.h): Add new include.
1131 * producer.c: New file.
1132 * producer.h: New file.
1133 * utils.c (producer_is_gcc, producer_is_gcc_ge_4): Move to
1134 producer.c.
1135 * utils.h (producer_is_gcc, producer_is_gcc_ge_4): Move to
1136 producer.h.
1137
5007d765
MK
11382017-09-26 Matthias Klose <doko@ubuntu.com>
1139
1140 * configure.ac: Search ncursesw before ncurses.
1141 Check ncursesw/ncurses.h before ncurses/ncurses.h.
1142 * gdb_curses.h: Include <ncursesw/ncurses.h>
1143 * config.in, configure: Regenerate.
1144
281c4447
RO
11452017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1146
1147 PR gdb/22185
1148 * configure.host <*-*-solaris2.[01], *-*-solaris2.[2-9]*>: Mark as
1149 obsolete.
1150 Use gdb_host sol2 for i[34567]86-*-solaris2*, x86_64-*-solaris2*.
1151 Remove i386sol2 support.
1152 * configure.nat <i386sol2>: Remove.
1153 <sol2-64>: Fold into ...
1154 <sol2>: ... this.
1155 Move common settings to default section.
1156 Add sol-thread.o.
1157 * configure.tgt <i[34567]86-*-solaris2.1[0-9]*,
1158 x86_64-*-solaris2.1[0-9]*>: Rename to ...
1159 <i[34567]86-*-solaris2*, x86_64-*-solaris2*>: ... this.
1160 <i[34567]86-*-solaris*>: Remove.
1161 <sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*>: Remove.
1162
1163 * configure.ac: Remove wctype in libw check.
1164 (_MSE_INT_H): Don't define on Solaris 7-9.
1165 <solaris*>: Remove libthread_db.so.1 check.
1166 * configure: Regenerate.
1167 * config.in: Regenerate.
1168
1169 * proc-service.c: Remove PROC_SERVICE_IS_OLD handling.
1170 (gdb_ps_prochandle_t, gdb_ps_read_buf_t, gdb_ps_write_buf_t)
1171 (gdb_ps_size_t): Remove.
1172 Use base types in users.
1173 * sol-thread.c: Likewise, also for gdb_ps_addr_t.
1174
1175 * NEWS (Changes since GDB 8.0): Document Solaris 2.0-9 removal.
1176
39b06c20
RO
11772017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1178
1179 PR build/22206
1180 * sparc64-tdep.c (adi_tag_fd): Print pid as long.
1181 (adi_is_addr_mapped): Likewise.
1182 (PSR_ICC): Don't redefine.
1183 (PSR_IMPL): Likewise.
1184
6c3e20f1
TT
11852017-09-25 Tom Tromey <tom@tromey.com>
1186
1187 * regcache.c (regcache::dump): Use string_printf.
1188
b292235f
TT
11892017-09-25 Tom Tromey <tom@tromey.com>
1190
1191 * regcache.c (class regcache_invalidator): New.
1192 (struct register_to_invalidate): Remove.
1193 (make_cleanup_regcache_invalidate): Remove.
1194 (regcache::raw_write): Use regcache_invalidator.
1195
9ac86b52
TT
11962017-09-25 Tom Tromey <tom@tromey.com>
1197
1198 * spu-tdep.c (spu2ppu_sniffer): Update.
1199 * regcache.h (make_cleanup_regcache_xfree): Don't declare.
1200 * regcache.c (do_regcache_xfree, make_cleanup_regcache_xfree):
1201 Remove.
1202 * ppc-linux-tdep.c (ppu2spu_sniffer): Update.
1203 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Update.
1204 * frame.h (frame_save_as_regcache): Return std::unique_ptr.
1205 * frame.c (frame_save_as_regcache): Return std::unique_ptr.
1206 (frame_pop): Update.
1207
c0e383c6
TT
12082017-09-25 Tom Tromey <tom@tromey.com>
1209
1210 * spu-tdep.c (spu2ppu_dealloc_cache): Use delete.
1211 * regcache.h (regcache_xfree): Don't declare.
1212 * regcache.c (regcache_xfree): Remove.
1213 (do_regcache_xfree): Use delete.
1214 * ppc-linux-tdep.c (ppu2spu_dealloc_cache): Use delete.
1215 * linux-fork.c (free_fork): Use delete.
1216 (fork_save_infrun_state): Likewise.
1217 * jit.c (jit_dealloc_cache): Use delete.
1218 * infrun.c (discard_infcall_suspend_state): Use delete.
1219
791199cc
TT
12202017-09-25 Tom Tromey <tom@tromey.com>
1221
1222 * regcache.h (regcache_xmalloc): Don't declare.
1223 (regcache_raw_set_cached_value): Update comment.
1224 * regcache.c (regcache_xmalloc): Remove.
1225 * ppc-linux-tdep.c (ppu2spu_sniffer): Use new.
1226 * jit.c (jit_frame_sniffer): Use new.
1227 * frame.c (frame_save_as_regcache): Use new.
1228
289e23aa
AA
12292017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
1230
1231 * NEWS: Advertise support for guarded-storage registers on IBM z.
1232
1b63490c
AA
12332017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
1234
1235 * s390-linux-nat.c (have_regset_gs): New static variable.
1236 (s390_linux_fetch_inferior_registers): Handle guarded-storage
1237 control block and guarded-storage broadcast control regsets.
1238 (s390_read_description): Detect whether the target has
1239 guarded-storage support, return appropriate tdesc.
1240 * s390-linux-tdep.c (features/s390-gs-linux64.c): New include.
1241 (features/s390x-gs-linux64.c): Likewise.
1242 (struct gdbarch_tdep) <have_gs>: New field.
1243 (s390_regmap_gs, s390_regmap_gsbc, s390_gs_regset)
1244 (s390_gsbc_regset): New variables.
1245 (s390_iterate_over_regset_sections): Iterate over s390_gs_regset
1246 and s390_gsbc_regset, if applicable.
1247 (s390_core_read_description): Check whether core file was from a
1248 target with guarded-storage support; include appropriate regsets.
1249 (s390_gdbarch_init): Add registers for guarded-storage support.
1250 (_initialize_s390_tdep): Initialize new target descriptions that
1251 include registers for guarded-storage support.
1252 * s390-linux-tdep.h (HWCAP_S390_GS, S390_GSD_REGNUM)
1253 (S390_GSSM_REGNUM, S390_GSEPLA_REGNUM)
1254 (S390_BC_GSD_REGNUM, S390_BC_GSSM_REGNUM): New defines.
1255 (S390_NUM_REGS): Adjust macro definition.
1256 (s390_gs_regset, s390_gsbc_regset, tdesc_s390_gs_linux64)
1257 (tdesc_s390x_gs_linux64): New declarations.
1258
96235dc1
AA
12592017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
1260
1261 * features/s390-gs-linux64.xml: New file.
1262 * features/s390-gs.xml: New file.
1263 * features/s390-gsbc.xml: New file.
1264 * features/s390x-gs-linux64.xml: New file.
1265 * features/Makefile (WHICH): Add s390-gs-linux64 and
1266 s390x-gs-linux64.
1267 (s390-gs-linux64-expedite, s390x-gs-linux64-expedite): New macros.
1268 (XMLTOC): Add s390-gs-linux64.xml and s390x-linux64.xml.
1269 * features/s390-gs-linux64.c: New generated file.
1270 * features/s390x-gs-linux64.c: New file.
1271 * regformats/s390-gs-linux64.dat: New file.
1272 * regformats/s390x-gs-linux64.dat: New file.
1273
b4a7c699
TT
12742017-09-23 Tom Tromey <tom@tromey.com>
1275
1276 * defs.h (make_cleanup_override_quit_handler): Don't declare.
1277
c2f97536
TT
12782017-09-22 Tom Tromey <tom@tromey.com>
1279
1280 * utils.c (class scoped_input_handler) <m_quit_handler>: Change
1281 type to scoped_restore_tmpl.
1282 <scoped_input_handler>: Initialize m_quit_handler directly.
1283
43573013
SDJ
12842017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
1285
1286 * cli/cli-cmds.c (pwd_command): Use "getcwd (NULL, 0)".
1287 (cd_command): Likewise. Free "current_directory" before
1288 assigning to it.
1289 * main.c (captured_main_1): Use "getcwd (NULL, 0)".
1290 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Likewise.
1291 * top.c (gdb_dirbuf): Remove global declaration.
1292 * top.h (gdb_dirbuf): Likewise.
1293
6ec2e0f5
SDJ
12942017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
1295
1296 * gnulib/aclocal.m4: Regenerate.
1297 * gnulib/config.in: Regenerate.
1298 * gnulib/configure: Regenerate.
1299 * gnulib/import/Makefile.am: Regenerate.
1300 * gnulib/import/Makefile.in: Regenerate.
1301 * gnulib/import/assure.h: New file.
1302 * gnulib/import/at-func.c: Likewise
1303 * gnulib/import/chdir-long.c: New file.
1304 * gnulib/import/chdir-long.h: New file.
1305 * gnulib/import/cloexec.c: New file.
1306 * gnulib/import/cloexec.h: New file.
1307 * gnulib/import/close.c: New file.
1308 * gnulib/import/closedir.c: New file.
1309 * gnulib/import/dirent-private.h: New file.
1310 * gnulib/import/dup-safer.c: New file.
1311 * gnulib/import/dup.c: New file.
1312 * gnulib/import/dup2.c: New file.
1313 * gnulib/import/error.c: New file.
1314 * gnulib/import/error.h: New file.
1315 * gnulib/import/exitfail.c: New file.
1316 * gnulib/import/exitfail.h: New file.
1317 * gnulib/import/fchdir.c: New file.
1318 * gnulib/import/fcntl.c: New file.
1319 * gnulib/import/fcntl.in.h: New file.
1320 * gnulib/import/fd-hook.c: New file.
1321 * gnulib/import/fd-hook.h: New file.
1322 * gnulib/import/fd-safer.c: New file.
1323 * gnulib/import/fdopendir.c: New file.
1324 * gnulib/import/filename.h: New file.
1325 * gnulib/import/filenamecat-lgpl.c: New file.
1326 * gnulib/import/filenamecat.h: New file.
1327 * gnulib/import/fstat.c: New file.
1328 * gnulib/import/fstatat.c: New file.
1329 * gnulib/import/getcwd-lgpl.c: New file.
1330 * gnulib/import/getcwd.c: New file.
1331 * gnulib/import/getdtablesize.c: New file.
1332 * gnulib/import/getlogin_r.c: New file.
1333 * gnulib/import/getprogname.c: New file.
1334 * gnulib/import/getprogname.h: New file.
1335 * gnulib/import/gettext.h: New file.
1336 * gnulib/import/glob-libc.h: New file.
1337 * gnulib/import/glob.c: New file.
1338 * gnulib/import/glob.in.h: New file.
1339 * gnulib/import/intprops.h: New file.
1340 * gnulib/import/m4/chdir-long.m4: New file.
1341 * gnulib/import/m4/close.m4: New file.
1342 * gnulib/import/m4/closedir.m4: New file.
1343 * gnulib/import/m4/d-ino.m4: New file.
1344 * gnulib/import/m4/d-type.m4: New file.
1345 * gnulib/import/m4/dup.m4: New file.
1346 * gnulib/import/m4/dup2.m4: New file.
1347 * gnulib/import/m4/error.m4: New file.
1348 * gnulib/import/m4/fchdir.m4: New file.
1349 * gnulib/import/m4/fcntl.m4: New file.
1350 * gnulib/import/m4/fcntl_h.m4: New file.
1351 * gnulib/import/m4/fdopendir.m4: New file.
1352 * gnulib/import/m4/filenamecat.m4: New file.
1353 * gnulib/import/m4/fstat.m4: New file.
1354 * gnulib/import/m4/fstatat.m4: New file.
1355 * gnulib/import/m4/getcwd-abort-bug.m4: New file.
1356 * gnulib/import/m4/getcwd-path-max.m4: New file.
1357 * gnulib/import/m4/getcwd.m4: New file.
1358 * gnulib/import/m4/getdtablesize.m4: New file.
1359 * gnulib/import/m4/getlogin_r.m4: New file.
1360 * gnulib/import/m4/getprogname.m4: New file.
1361 * gnulib/import/m4/glob.m4: New file.
1362 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
1363 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
1364 * gnulib/import/m4/mempcpy.m4: New file.
1365 * gnulib/import/m4/memrchr.m4: New file.
1366 * gnulib/import/m4/mode_t.m4: New file.
1367 * gnulib/import/m4/msvc-inval.m4: New file.
1368 * gnulib/import/m4/msvc-nothrow.m4: New file.
1369 * gnulib/import/m4/open.m4: New file.
1370 * gnulib/import/m4/openat.m4: New file.
1371 * gnulib/import/m4/opendir.m4: New file.
1372 * gnulib/import/m4/readdir.m4: New file.
1373 * gnulib/import/m4/realloc.m4: New file.
1374 * gnulib/import/m4/rewinddir.m4: New file.
1375 * gnulib/import/m4/save-cwd.m4: New file.
1376 * gnulib/import/m4/strdup.m4: New file.
1377 * gnulib/import/m4/strerror.m4: New file.
1378 * gnulib/import/m4/unistd-safer.m4: New file.
1379 * gnulib/import/mempcpy.c: New file.
1380 * gnulib/import/memrchr.c: New file.
1381 * gnulib/import/msvc-inval.c: New file.
1382 * gnulib/import/msvc-inval.h: New file.
1383 * gnulib/import/msvc-nothrow.c: New file.
1384 * gnulib/import/msvc-nothrow.h: New file.
1385 * gnulib/import/open.c: New file.
1386 * gnulib/import/openat-die.c: New file.
1387 * gnulib/import/openat-priv.h: New file.
1388 * gnulib/import/openat-proc.c: New file.
1389 * gnulib/import/openat.c: New file.
1390 * gnulib/import/openat.h: New file.
1391 * gnulib/import/opendir.c: New file.
1392 * gnulib/import/pipe-safer.c: New file.
1393 * gnulib/import/readdir.c: New file.
1394 * gnulib/import/realloc.c: New file.
1395 * gnulib/import/rewinddir.c: New file.
1396 * gnulib/import/save-cwd.c: New file.
1397 * gnulib/import/save-cwd.h: New file.
1398 * gnulib/import/strdup.c: New file.
1399 * gnulib/import/strerror-override.c: New file.
1400 * gnulib/import/strerror-override.h: New file.
1401 * gnulib/import/strerror.c: New file.
1402 * gnulib/import/unistd--.h: New file.
1403 * gnulib/import/unistd-safer.h: New file.
1404 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
1405 "getcwd" and "glob".
1406 * ser-tcp.c: Undefine "close" before redefining it.
1407
432ae719
SM
14082017-09-21 Simon Marchi <simon.marchi@ericsson.com>
1409
1410 * guile/scm-value.c (gdbscm_value_address): Initialize address,
1411 get rid of res_val.
1412
4fa7574e
RO
14132017-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1414
1415 * configure.nat <i386sol2,i386>: Add fork-inferior.o to NATDEPFILES.
1416 <sol2,sparc>: Likewise.
1417 <sol2-64,i386>: Likewise.
1418
1419 * warning.m4 (AM_GDB_WARNINGS): Disable -Wunknown-pragmas,
1420 -Wdeprecated-declarations on *-*-solaris*.
1421 * configure: Regenerate.
1422
1423 * procfs.c: Include "nat/inferior.h".
1424 (procfs_info_proc): Fix typo.
1425
f6327dcb
KB
14262017-09-21 Kevin Buettner <kevinb@redhat.com>
1427
1428 * remote.c (vector): Include.
1429 (struct private_thread_info): Add field, thread_handle.
1430 (free_private_thread_info): Deallocate storage associated with
1431 thread handle.
1432 (get_private_info_thread): Initialize `thread_handle' field.
1433 (struct thread_item): Add field, thread_handle.
1434 (clear_threads_listing_context): Deallocate storage associated
1435 with thread handle.
1436 (start_thread): Add support for "handle" attribute.
1437 (thread_attributes): Add "handle".
1438 (remote_get_threads_with_qthreadinfo): Initialize thread_handle
1439 field.
1440 (remote_update_thread_list): Update thread_handle.
1441 (remote_thread_handle_to_thread_info): New function.
1442 (init_remote_ops): Initialize to_thread_handle_to_thread_info.
1443
fbbe5337
KB
14442017-09-21 Kevin Buettner <kevinb@redhat.com>
1445
1446 * python/py-inferior.c (gdbpy_thread_from_thread_handle): New
1447 function.
1448 (inferior_object_methods): Add gdbpy_thread_from_thread_handle.
1449 * python/python-internal.h (thread_object_type): Declare.
1450
e04ee09e
KB
14512017-09-21 Kevin Buettner <kevinb@redhat.com>
1452
1453 * target.h (struct target_ops): Add to_thread_handle_to_thread_info.
1454 (target_thread_handle_to_thread_info): Declare.
1455 * target.c (target_thread_handle_to_thread_info): New function.
1456 * target-delegates.c: Regenerate.
1457 * gdbthread.h (find_thread_by_handle): Declare.
1458 * thread.c (find_thread_by_handle): New function.
1459 * linux-thread-db.c (thread_db_thread_handle_to_thread_info): New
1460 function.
1461 (init_thread_db_ops): Register thread_db_thread_handle_to_thread_info.
1462
1e5b66ed
SM
14632017-09-21 Simon Marchi <simon.marchi@ericsson.com>
1464
1465 * nat/linux-waitpid.c (linux_debug): Add ATTRIBUTE_PRINTF.
1466
ebe48ba0
SM
14672017-09-21 Simon Marchi <simon.marchi@ericsson.com>
1468
1469 * microblaze-tdep.c (microblaze_debug): Add ATTRIBUTE_PRINTF.
1470
0a0bf5dc
YQ
14712017-09-21 Yao Qi <yao.qi@linaro.org>
1472
1473 * configure.tgt (aarch64*-*-freebsd*): Add fbsd-tdep.o solib-svr4.o
1474 to gdb_target_obs.
1475
d1b0a7bf
TT
14762017-09-20 Tom Tromey <tom@tromey.com>
1477
1478 * breakpoint.c (struct counted_command_line): Remove.
1479 (breakpoint_commands): Update.
1480 (alloc_counted_command_line, incref_counted_command_line)
1481 (decref_counted_command_line, do_cleanup_counted_command_line)
1482 (make_cleanup_decref_counted_command_line): Remove.
1483 (breakpoint_set_commands, commands_command_1, ~bpstats, bpstats)
1484 (bpstat_clear_actions, bpstat_do_actions_1, watchpoint_check)
1485 (bpstat_stop_status, print_one_breakpoint_location, ~breakpoint)
1486 (save_breakpoints): Update.
1487 * breakpoint.h (counted_command_line): Now a typedef to
1488 shared_ptr.
1489 (struct breakpoint) <commands>: Now a counted_command_line.
1490 (struct bpstats) <command>: Likewise.
1491
48649e1b
TT
14922017-09-20 Tom Tromey <tom@tromey.com>
1493
1494 * breakpoint.c (struct commands_info, do_map_commands_command):
1495 Remove.
1496 (commands_command_1): Update.
1497 (iterate_over_related_breakpoints): Take a function_view.
1498 (do_delete_breakpoint, do_map_delete_breakpoint): Remove.
1499 (delete_command): Update.
1500 (map_breakpoint_numbers): Take a function_view.
1501 (do_disable_breakpoint, do_map_delete_breakpoint): Remove.
1502 (disable_command): Update.
1503 (do_enable_breakpoint, do_map_enable_breakpoint): Remove.
1504 (enable_command): Update.
1505 (struct disp_data, do_enable_breakpoint_disp)
1506 (do_map_enable_once_breakpoint, do_map_enable_count_breakpoint)
1507 (do_map_enable_delete_breakpoint): Remove.
1508 (enable_once_command, enable_count_command, enable_delete_command)
1509 (delete_trace_variable_command): Update.
1510
04afa70c
TT
15112017-09-20 Tom Tromey <tom@tromey.com>
1512
1513 * breakpoint.c (~bpstats): Rename from bpstat_free. Update.
1514 (bpstat_clear): Use delete.
1515 (bpstats): New constructors.
1516 (bpstat_copy, bpstat_stop_status): Use new.
1517 (dprintf_after_condition_true): Update.
1518 * breakpoint.h (bpstats::bpstats): Add constructors.
1519 (bpstats::~bpstats): Add destructor.
1520
c83833f4
PA
15212017-09-20 Pedro Alves <palves@redhat.com>
1522
1523 * eval.c (make_params): Delete, refactored as ...
1524 (class fake_method): ... this new type's ctor.
1525 (fake_method::~fake_method): New.
1526 (evaluate_subexp_standard): Use 'fake_method'.
1527
223ffa71
TT
15282017-09-20 Tom Tromey <tom@tromey.com>
1529
1530 * windows-nat.c (get_windows_debug_event, windows_wait)
1531 (do_initial_windows_stuff, windows_attach): Update.
1532 * utils.c (vwarning, internal_vproblem): Update.
1533 (ui_unregister_input_event_handler_cleanup)
1534 (prepare_to_handle_input): Remove.
1535 (class scoped_input_handler): New.
1536 (defaulted_query, prompt_for_continue): Update.
1537 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
1538 Update.
1539 * top.c (undo_terminal_modifications_before_exit): Update.
1540 * target/target.h (target_terminal_init, target_terminal_inferior)
1541 (target_terminal_ours): Don't declare.
1542 (class target_terminal): New.
1543 * target.h (target_terminal_is_inferior, target_terminal_is_ours)
1544 (target_terminal_ours_for_output)
1545 (make_cleanup_restore_target_terminal): Don't declare.
1546 (target_terminal_info): Remove.
1547 * target.c (enum terminal_state, terminal_state): Remove.
1548 (target_terminal::terminal_state): Define.
1549 (target_terminal::init): Rename from target_terminal_init.
1550 (target_terminal::inferior): Rename from
1551 target_terminal_inferior.
1552 (target_terminal::ours): Rename from target_terminal_ours.
1553 (target_terminal::ours_for_output): Rename from
1554 target_terminal_ours_for_output.
1555 (target_terminal::info): New method.
1556 (cleanup_restore_target_terminal)
1557 (make_cleanup_restore_target_terminal): Remove.
1558 * solib.c (handle_solib_event): Update.
1559 * remote.c (remote_serial_quit_handler): Update.
1560 (remote_terminal_inferior, remote_wait_as): Update.
1561 * record-full.c (record_full_wait_1): Update.
1562 * nto-procfs.c (procfs_create_inferior): Update.
1563 * nat/fork-inferior.c (startup_inferior): Update.
1564 * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
1565 (mi_record_changed, mi_inferior_added, mi_inferior_appeared)
1566 (mi_inferior_exit, mi_inferior_removed, mi_traceframe_changed)
1567 (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified)
1568 (mi_breakpoint_created, mi_breakpoint_deleted)
1569 (mi_breakpoint_modified, mi_on_resume, mi_solib_loaded)
1570 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
1571 (mi_user_selected_context_changed, report_initial_inferior):
1572 Update.
1573 * linux-nat.c (linux_nat_attach, linux_nat_terminal_ours)
1574 (linux_nat_terminal_inferior): Update.
1575 * infrun.c (follow_fork_inferior)
1576 (handle_vfork_child_exec_or_exit, do_target_resume)
1577 (check_curr_ui_sync_execution_done, handle_inferior_event_1)
1578 (handle_signal_stop, maybe_remove_breakpoints, normal_stop):
1579 Update.
1580 * inflow.c (child_terminal_init, info_terminal_command): Update.
1581 * infcmd.c (post_create_inferior, continue_1, prepare_one_step)
1582 (attach_command): Update.
1583 * infcall.c (call_thread_fsm_should_stop): Update.
1584 * gnu-nat.c (gnu_attach): Update.
1585 * extension.c (struct active_ext_lang_state)
1586 (restore_active_ext_lang): Update.
1587 * exceptions.c (print_flush): Update.
1588 * event-top.c (async_enable_stdin, default_quit_handler): Update.
1589 (struct quit_handler_cleanup_data, restore_quit_handler)
1590 (restore_quit_handler_dtor, make_cleanup_override_quit_handler):
1591 Remove.
1592 * cp-support.c (gdb_demangle): Update.
1593 * breakpoint.c (update_inserted_breakpoint_locations)
1594 (insert_breakpoint_locations, handle_jit_event)
1595 (disable_breakpoints_in_unloaded_shlib): Update.
1596 * annotate.c (annotate_breakpoints_invalid)
1597 (annotate_frames_invalid): Update.
1598
013af3fc
TT
15992017-09-20 Tom Tromey <tom@tromey.com>
1600
1601 * main.c (catch_command_errors): Rename from
1602 catch_command_errors_const.
1603 (captured_main_1): Update.
1604
06871ae8
PA
16052017-09-20 Pedro Alves <palves@redhat.com>
1606
1607 * cli/cli-cmds.c (list_command): Use print_sal_location.
1608 (print_sal_location): New function.
1609 (ambiguous_line_spec): Use print_sal_location.
1610 * linespec.c (symbol_to_sal): Record the symbol in the sal.
1611 * symtab.c (find_function_start_sal): Likewise.
1612 * symtab.h (symtab_and_line::symbol): New field.
1613
e5f25bc5
PA
16142017-09-20 Pedro Alves <palves@redhat.com>
1615
1616 * linespec.c (minsym_found): Handle non-text minsyms.
1617 (symbol_to_sal): Record a sal.pc for non-block, non-label symbols.
1618
1b7fa39e
WT
16192017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
1620
1621 * features/Makefile (i386-avx-mpx-avx512-pku.dat): Add missing
1622 backslash.
1623
37dd0825
WT
16242017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
1625
1626 * gdb.arch/i386-avx512.c (move_zmm_data_to_reg): Use
1627 vmovups instead vmovaps.
1628 (move_zmm_data_to_memory): Use vmovups instead vmovaps.
1629
4e5a4f58
JB
16302017-09-19 John Baldwin <jhb@FreeBSD.org>
1631
1632 * NEWS (Changes since GDB 8.0): Add starti.
1633 * infcmd.c (enum run_break): New.
1634 (run_command_1): Queue pending event for RUN_STOP_AT_FIRST_INSN
1635 case.
1636 (run_command): Use enum run_how.
1637 (start_command): Likewise.
1638 (starti_command): New function.
1639 (RUN_ARGS_HELP): New macro.
1640 (_initialize_infcmd): Use RUN_ARGS_HELP for run and start
1641 commands. Add starti command.
1642
aa70c9f1
YQ
16432017-09-19 Yao Qi <yao.qi@linaro.org>
1644
1645 * Makefile.in (monitor.o): Remove the rule.
1646
d6541620
YQ
16472017-09-19 Yao Qi <yao.qi@linaro.org>
1648
1649 * annotate.h (struct annotate_arg_emitter): Use
1650 DISABLE_COPY_AND_ASSIGN.
1651 * common/refcounted-object.h (refcounted_object): Likewise.
1652 * completer.h (struct completion_result): Likewise.
1653 * dwarf2read.c (struct dwarf2_per_objfile): Likewise.
1654 * filename-seen-cache.h (filename_seen_cache): Likewise.
1655 * gdbcore.h (thread_section_name): Likewise.
1656 * gdb_regex.h (compiled_regex): Likewise.
1657 * gdbthread.h (scoped_restore_current_thread): Likewise.
1658 * inferior.h (scoped_restore_current_inferior): Likewise.
1659 * jit.c (jit_reader): Likewise.
1660 * linespec.h (struct linespec_result): Likewise.
1661 * mi/mi-parse.h (struct mi_parse): Likewise.
1662 * nat/fork-inferior.c (execv_argv): Likewise.
1663 * progspace.h (scoped_restore_current_program_space): Likewise.
1664 * python/python-internal.h (class gdbpy_enter): Likewise.
1665 * regcache.h (regcache): Likewise.
1666 * target-descriptions.c (struct tdesc_reg): Likewise.
1667 (struct tdesc_type): Likewise.
1668 (struct tdesc_feature): Likewise.
1669 * ui-out.h (ui_out_emit_type): Likewise.
1670
0615127c
SM
16712017-09-18 Simon Marchi <simon.marchi@ericsson.com>
1672
1673 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Remove
1674 label abort_expression.
1675
5e187554
SM
16762017-09-16 Simon Marchi <simon.marchi@ericsson.com>
1677
1678 * common/buffer.c (buffer_xml_printf): Adjust.
1679 * common/xml-utils.c (xml_escape_text): Change return type to
1680 std::string, update code accordingly.
1681 * common/xml-utils.h (xml_escape_text): Change return type to
1682 std::string.
1683 * rs6000-aix-tdep.c (rs6000_aix_shared_library_to_xml): Adjust.
1684 * windows-tdep.c (windows_xfer_shared_library): Adjust.
1685 * unittests/xml-utils-selftests.c (test_xml_escape_text):
1686 Adjust.
1687
c3d7b541
SM
16882017-09-16 Simon Marchi <simon.marchi@ericsson.com>
1689
1690 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new source file.
1691 (SUBDIR_UNITTESTS_OBS): Add new object file.
1692 * unittests/xml-utils-selftests.c: New file.
1693
1526853e
SM
16942017-09-16 Simon Marchi <simon.marchi@ericsson.com>
1695
1696 * common/selftest.h (selftest): New struct/interface.
1697 (register_test): Add name parameter, add new overload.
1698 (run_tests): Add filter parameter.
1699 (for_each_selftest_ftype): New typedef.
1700 (for_each_selftest): New declaration.
1701 * common/selftest.c (tests): Change type to
1702 map<string, unique_ptr<selftest>>.
1703 (simple_selftest): New struct.
1704 (register_test): New function.
1705 (register_test): Add name parameter and use it.
1706 (run_tests): Add filter parameter and use it. Add prints.
1707 Adjust to vector -> map change.
1708 * aarch64-tdep.c (_initialize_aarch64_tdep): Add names when
1709 registering selftests.
1710 * arm-tdep.c (_initialize_arm_tdep): Likewise.
1711 * disasm-selftests.c (_initialize_disasm_selftests): Likewise.
1712 * dwarf2-frame.c (_initialize_dwarf2_frame): Likewise.
1713 * dwarf2loc.c (_initialize_dwarf2loc): Likewise.
1714 * findvar.c (_initialize_findvar): Likewise.
1715 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Likewise.
1716 * maint.c (maintenance_selftest): Update call to run_tests.
1717 (maintenance_info_selftests): New function.
1718 (_initialize_maint_cmds): Register "maintenance info selftests"
1719 command. Update "maintenance selftest" doc.
1720 * regcache.c (_initialize_regcache): Add names when registering
1721 selftests.
1722 * rust-exp.y (_initialize_rust_exp): Likewise.
1723 * selftest-arch.c (gdbarch_selftest): New struct.
1724 (gdbarch_tests): Remove.
1725 (register_test_foreach_arch): Add name parameter. Call
1726 register_test.
1727 (tests_with_arch): Remove, move most content to
1728 gdbarch_selftest::operator().
1729 (_initialize_selftests_foreach_arch): Remove.
1730 * selftest-arch.h (register_test_foreach_arch): Add name
1731 parameter.
1732 (run_tests_with_arch): New declaration.
1733 * utils-selftests.c (_initialize_utils_selftests): Add names
1734 when registering selftests.
1735 * utils.c (_initialize_utils): Likewise.
1736 * unittests/array-view-selftests.c
1737 (_initialize_array_view_selftests): Likewise.
1738 * unittests/environ-selftests.c (_initialize_environ_selftests):
1739 Likewise.
1740 * unittests/function-view-selftests.c
1741 (_initialize_function_view_selftests): Likewise.
1742 * unittests/offset-type-selftests.c
1743 (_initialize_offset_type_selftests): Likewise.
1744 * unittests/optional-selftests.c
1745 (_initialize_optional_selftests): Likewise.
1746 * unittests/scoped_restore-selftests.c
1747 (_initialize_scoped_restore_selftests): Likewise.
1748 * NEWS: Document "maintenance selftest" and "maint info
1749 selftests".
1750
5846367a
SM
17512017-09-16 Simon Marchi <simon.marchi@ericsson.com>
1752
1753 * mi/mi-main.c (mi_load_progress): Restore current_uiout using a
1754 scoped_restore.
1755
bd77e8ff
SM
17562017-09-16 Simon Marchi <simon.marchi@ericsson.com>
1757
1758 * mi/mi-main.c (mi_load_progress): Make uiout variable
1759 a unique_ptr.
1760
26a67918
PA
17612017-09-15 Pedro Alves <palves@redhat.com>
1762
1763 * compile/compile-c-types.c (convert_enum, convert_int)
1764 (convert_float): Adjust to refer to int_type_v0 and float_type_v0.
1765
3f8a7804
SM
17662017-09-15 Simon Marchi <simon.marchi@ericsson.com>
1767
1768 * dwarf2read.c (copy_string): Remove.
1769 (parse_macro_definition): Replace copy_string with savestring.
1770
8d200706
YQ
17712017-09-15 Yao Qi <yao.qi@linaro.org>
1772
1773 * configure.tgt (i[34567]86-*-darwin*): Append amd64.o to
1774 gdb_target_obs.
1775 (i[34567]86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*):
1776 Likewise.
1777 (i[34567]86-*-linux*): Likewise.
1778
d185219d
SM
17792017-09-14 Simon Marchi <simon.marchi@ericsson.com>
1780
1781 * dwarf2expr.h (dwarf_stack_value): Add constructor.
1782 (dwarf_expr_context) <~dwarf_expr_context>: Define as default.
1783 <stack>: Change type to std::vector.
1784 <stack_len, stack_allocated>: Remove.
1785 <grow_stack>: Remove.
1786 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
1787 (dwarf_expr_context::~dwarf_expr_context): Remove.
1788 (dwarf_expr_context::grow_stack): Remove.
1789 (dwarf_expr_context::push): Adjust.
1790 (dwarf_expr_context::pop): Adjust.
1791 (dwarf_expr_context::fetch): Adjust.
1792 (dwarf_expr_context::fetch_in_stack_memory): Adjust.
1793 (dwarf_expr_context::stack_empty_p): Adjust.
1794 (dwarf_expr_context::execute_stack_op): Adjust.
1795
eccd80d6
SM
17962017-09-14 Simon Marchi <simon.marchi@ericsson.com>
1797
1798 * dwarf2expr.h (dwarf_expr_context) <stack_empty_p>: Change
1799 return type to bool.
1800 * dwarf2expr.c (dwarf_expr_context::stack_empty_p): Likewise.
1801
69009882
SM
18022017-09-14 Simon Marchi <simon.marchi@ericsson.com>
1803
1804 * dwarf2expr.h (dwarf_expr_piece) <v.mem.in_stack_memory>:
1805 Change type to bool.
1806 (dwarf_stack_value) <in_stack_memory>: Likewise.
1807 (dwarf_expr_context) <push_address>: Change parameter type to
1808 bool.
1809 <fetch_in_stack_memory>: Change return type to bool.
1810 <push>: Change parameter type to bool.
1811 * dwarf2expr.c (dwarf_expr_context::push): Change parameter type
1812 to bool.
1813 (dwarf_expr_context::push_address): Likewise.
1814 (dwarf_expr_context::fetch_in_stack_memory): Change return type
1815 to bool.
1816 (dwarf_expr_context::execute_stack_op): Adjust.
1817 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Adjust.
1818
1e467161
SM
18192017-09-14 Simon Marchi <simon.marchi@ericsson.com>
1820
1821 * dwarf2expr.h (struct dwarf_expr_piece): Move up.
1822 (struct dwarf_expr_context) <n_pieces>: Remove.
1823 <pieces>: Change type to std::vector.
1824 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
1825 (dwarf_expr_context::~dwarf_expr_context): Don't manually free
1826 pieces.
1827 (dwarf_expr_context::add_piece): Adjust.
1828 * dwarf2loc.c (struct piece_closure): Initialize fields.
1829 <n_pieces>: Remove.
1830 <pieces>: Change type to std::vector.
1831 (allocate_piece_closure): Adjust, change parameter to
1832 std::vector rvalue and std::move it to piece_closure.
1833 (rw_pieced_value): Adjust.
1834 (check_pieced_synthetic_pointer): Adjust.
1835 (indirect_synthetic_pointer): Adjust.
1836 (coerce_pieced_ref): Adjust.
1837 (free_pieced_value_closure): Adjust. Use delete to free
1838 piece_closure.
1839 (dwarf2_evaluate_loc_desc_full): Adjust. std::move ctx.pieces
1840 to allocate_piece_closure.
1841 (dwarf2_loc_desc_get_symbol_read_needs): Adjust.
1842
0782db84
SM
18432017-09-12 Simon Marchi <simon.marchi@ericsson.com>
1844
1845 * probe.h (probe_ops_cp): Remove typedef.
1846 (DEF_VEC_P (probe_ops_cp)): Remove.
1847 (all_probe_ops): Change type to std::vector.
1848 * probe.c (info_probes_for_ops): Adjust to vector change.
1849 (probe_linespec_to_ops): Likewise.
1850 (all_probe_ops): Change type to std::vector.
1851 (_initialize_probe): Adjust to vector change.
1852 * dtrace-probe.c (_initialize_dtrace_probe): Likewise.
1853 * elfread.c (elf_get_probes): Likewise.
1854 * stap-probe.c (_initialize_stap_probe): Likewise.
1855
1eac6bea
SM
18562017-09-12 Simon Marchi <simon.marchi@ericsson.com>
1857
1858 * probe.h (struct bound_probe): Define constructors.
1859 * probe.c (bound_probe_s): Remove typedef.
1860 (DEF_VEC_O (bound_probe_s)): Remove VEC.
1861 (collect_probes): Change return type to std::vector, remove
1862 cleanup.
1863 (compare_probes): Return bool, change parameter type. Change
1864 semantic to "less than".
1865 (gen_ui_out_table_header_info): Change parameter to std::vector
1866 and update.
1867 (exists_probe_with_pops): Likewise.
1868 (info_probes_for_ops): Update to std::vector change.
1869 (enable_probes_command): Likewise.
1870 (disable_probes_command): Likewise.
1871
aaa63a31
SM
18722017-09-12 Simon Marchi <simon.marchi@ericsson.com>
1873
1874 * probe.h (struct probe_ops) <get_probes>: Change parameter from
1875 vec to std::vector.
1876 * probe.c (parse_probes_in_pspace): Update.
1877 (find_probes_in_objfile): Update.
1878 (find_probe_by_pc): Update.
1879 (collect_probes): Update.
1880 (probe_any_get_probes): Update.
1881 * symfile.h (struct sym_probe_fns) <sym_get_probes> Change
1882 return type to reference to std::vector.
1883 * dtrace-probe.c (dtrace_process_dof_probe): Change parameter to
1884 std::vector and update.
1885 (dtrace_process_dof): Likewise.
1886 (dtrace_get_probes): Likewise.
1887 * elfread.c (elf_get_probes): Change return type to std::vector,
1888 store an std::vector in bfd_data.
1889 (probe_key_free): Update to std::vector.
1890 * stap-probe.c (handle_stap_probe): Change parameter to
1891 std::vector and update.
1892 (stap_get_probes): Likewise.
1893 * symfile-debug.c (debug_sym_get_probes): Change return type to
1894 std::vector and update.
1895
cb85b21b
TT
18962017-09-11 Tom Tromey <tom@tromey.com>
1897
1898 * breakpoint.c (program_breakpoint_here_p): Update.
1899 * target.c (make_scoped_restore_show_memory_breakpoints): Rename
1900 from make_show_memory_breakpoints_cleanup. Return a
1901 scoped_restore_tmpl<int>.
1902 (restore_show_memory_breakpoints): Remove.
1903 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Update.
1904 * mem-break.c (memory_validate_breakpoint): Update.
1905 * ia64-tdep.c (ia64_memory_insert_breakpoint): Update.
1906 (ia64_memory_remove_breakpoint): Update.
1907 (ia64_breakpoint_from_pc): Update.
1908 * target.h (make_scoped_restore_show_memory_breakpoints): Rename
1909 from make_show_memory_breakpoints_cleanup.
1910
8fbc99ef
TT
19112017-09-11 Tom Tromey <tom@tromey.com>
1912
1913 * d-namespace.c (d_lookup_symbol): Use std::string.
1914 (find_symbol_in_baseclass): Likewise.
1915
50feb4bd
TT
19162017-09-11 Tom Tromey <tom@tromey.com>
1917
1918 * ctf.c (ctf_start): Use std::string.
1919
c6dc63a1
TT
19202017-09-11 Tom Tromey <tom@tromey.com>
1921
1922 * ada-lang.c (is_known_support_routine): Update.
1923 (ada_unhandled_exception_name_addr_from_raise): Update.
1924 * guile/scm-frame.c (gdbscm_frame_name): Update.
1925 * python/py-frame.c (frapy_name): Update.
1926 (frapy_function): Update.
1927 * stack.h (find_frame_funname): Update.
1928 * stack.c (find_frame_funname): Return unique_xmalloc_ptr.
1929 (print_frame): Update.
1930
d6b9b80f
TT
19312017-09-11 Tom Tromey <tom@tromey.com>
1932
1933 * findcmd.c (put_bits): Take a gdb::byte_vector.
1934 (parse_find_args): Return gdb::byte_vector. "args" now const.
1935 Remove "pattern_bufp" and "pattern_lenp" parameters. Remove
1936 cleanups.
1937 (find_command): Update.
1938
a9921622
TT
19392017-09-11 Tom Tromey <tom@tromey.com>
1940
1941 * cli/cli-script.c (class scoped_restore_hook_in): New.
1942 (clear_hook_in_cleanup): Remove.
1943 (execute_cmd_pre_hook, execute_cmd_post_hook): Use
1944 scoped_restore_hook_in.
1945
be0d7abb
TT
19462017-09-11 Tom Tromey <tom@tromey.com>
1947
1948 * cli/cli-script.c (restore_interp): Remove.
1949 (read_command_lines): Use scoped_restore_interp.
1950 * interps.c (scoped_restore_interp::set_temp): Rename from
1951 interp_set_temp.
1952 * interps.h (class scoped_restore_interp): New.
1953 (interp_set_temp): Remove.
1954
00f675ff
TT
19552017-09-11 Tom Tromey <tom@tromey.com>
1956
1957 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
1958 (mi_cmd_catch_exception, mi_catch_load_unload): Update.
1959 * mi/mi-cmd-break.c (setup_breakpoint_reporting): Return a
1960 scoped_restore.
1961 (mi_cmd_break_insert_1): Update.
1962 * mi/mi-cmd-break.h (setup_breakpoint_reporting): Return a
1963 scoped_restore.
1964
cb791d59
TT
19652017-09-11 Tom Tromey <tom@tromey.com>
1966
1967 * demangle.c (demangle_command): Update.
1968 * breakpoint.c (disable_command): Update.
1969 (enable_command): Update.
1970 (find_location_by_number): Make "number" const. Use
1971 get_number_trailer.
1972 * cli/cli-utils.c (extract_arg): Return std::string.
1973 * probe.c (parse_probe_linespec): Update. Change types.
1974 (collect_probes): Take string arguments.
1975 (parse_probe_linespec): Likewise.
1976 (info_probes_for_ops): Update.
1977 (enable_probes_command): Update.
1978 (disable_probes_command): Update.
1979 * break-catch-sig.c (catch_signal_split_args): Update.
1980 * mi/mi-parse.c (mi_parse): Update.
1981
2039bd9f
TT
19822017-09-11 Tom Tromey <tom@tromey.com>
1983
1984 * language.h (language_enum): Make argument const.
1985 * language.c (language_enum): Make argument const.
1986
f1735a53
TT
19872017-09-11 Tom Tromey <tom@tromey.com>
1988
1989 * common/common-utils.h (skip_to_space): Remove macro, redeclare
1990 as function.
1991 (skip_to_space): Rename from skip_to_space_const.
1992 * common/common-utils.c (skip_to_space): New function.
1993 (skip_to_space): Rename from skip_to_space_const.
1994 * cli/cli-utils.h (get_number): Rename from get_number_const.
1995 (extract_arg): Rename from extract_arg_const.
1996 * cli/cli-utils.c (get_number): Rename from get_number_const.
1997 (extract_arg): Rename from extract_arg_const.
1998 (number_or_range_parser::get_number): Use ::get_number.
1999 * aarch64-linux-tdep.c, ada-lang.c, arm-linux-tdep.c, ax-gdb.c,
2000 break-catch-throw.c, breakpoint.c, cli/cli-cmds.c, cli/cli-dump.c,
2001 cli/cli-script.c, cli/cli-setshow.c, compile/compile.c,
2002 completer.c, demangle.c, disasm.c, findcmd.c, linespec.c,
2003 linux-tdep.c, linux-thread-db.c, location.c, mi/mi-parse.c,
2004 minsyms.c, nat/linux-procfs.c, printcmd.c, probe.c,
2005 python/py-breakpoint.c, record.c, rust-exp.y, serial.c, stack.c,
2006 stap-probe.c, tid-parse.c, tracepoint.c: Update all callers.
2007
7d221d74
TT
20082017-09-11 Tom Tromey <tom@tromey.com>
2009
2010 * python/python.c (do_start_initialization): Use
2011 py-event-types.def to initialize types.
2012 Define all object type structures.
2013 * python/python-internal.h: Don't declare event initialization
2014 functions.
2015 * python/py-threadevent.c (thread_event_object_type): Don't
2016 define.
2017 * python/py-stopevent.c (stop_event_object_type): Don't define.
2018 * python/py-signalevent.c (signal_event_object_type): Don't
2019 declare or define.
2020 * python/py-newobjfileevent.c (new_objfile_event_object_type)
2021 (clear_objfiles_event_object_type): Don't declare or define.
2022 * python/py-infevents.c (inferior_call_pre_event_object_type)
2023 (inferior_call_post_event_object_type)
2024 (register_changed_event_object_type)
2025 (memory_changed_event_object_type): Don't declare or define.
2026 * python/py-inferior.c (new_thread_event_object_type)
2027 (new_inferior_event_object_type)
2028 (inferior_deleted_event_object_type): Don't declare or define.
2029 * python/py-exitedevent.c (exited_event_object_type): Don't
2030 declare or define.
2031 * python/py-evts.c (gdbpy_initialize_py_events): Use
2032 py-all-events.def.
2033 * python/py-events.h (thread_event_object_type): Don't declare.
2034 (events_object): Use py-all-events.def.
2035 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove. Use
2036 py-event-types.def.
2037 * python/py-event-types.def: New file.
2038 * python/py-continueevent.c (create_continue_event_object): Don't
2039 declare or define.
2040 * python/py-bpevent.c (breakpoint_event_object_type): Don't
2041 declare or define.
2042 * python/py-all-events.def: New file.
2043
35c61a1d
TT
20442017-09-11 Tom Tromey <tom@tromey.com>
2045
2046 * python/py-threadevent.c (create_thread_event_object): Return
2047 gdbpy_ref.
2048 * python/py-stopevent.h (create_stop_event_object)
2049 (create_breakpoint_event_object, create_signal_event_object):
2050 Update.
2051 * python/py-stopevent.c (create_stop_event_object): Return
2052 gdbpy_ref.
2053 (emit_stop_event): Update.
2054 * python/py-signalevent.c (create_signal_event_object): Return
2055 gdbpy_ref.
2056 * python/py-infevents.c (create_inferior_call_event_object):
2057 Update.
2058 * python/py-event.h (create_event_object)
2059 (create_thread_event_object): Update.
2060 * python/py-event.c (create_event_object): Return gdbpy_ref.
2061 * python/py-continueevent.c: Return gdbpy_ref.
2062 * python/py-bpevent.c (create_breakpoint_event_object): Return
2063 gdbpy_ref.
2064
7c96f8c1
TT
20652017-09-11 Tom Tromey <tom@tromey.com>
2066
2067 PR python/15622:
2068 * NEWS: Add entry.
2069 * python/python.c (do_start_initialization): Initialize new event
2070 types.
2071 * python/python-internal.h (gdbpy_initialize_new_inferior_event)
2072 (gdbpy_initialize_inferior_deleted_event)
2073 (gdbpy_initialize_new_thread_event): Declare.
2074 * python/py-threadevent.c (create_thread_event_object): Add option
2075 "thread" parameter.
2076 * python/py-inferior.c (new_thread_event_object_type)
2077 (new_inferior_event_object_type)
2078 (inferior_deleted_event_object_type): Declare.
2079 (python_new_inferior, python_inferior_deleted): New functions.
2080 (add_thread_object): Emit new_thread event.
2081 (gdbpy_initialize_inferior): Attach new functions to corresponding
2082 observers.
2083 (new_thread, new_inferior, inferior_deleted): Define new event
2084 types.
2085 * python/py-evts.c (gdbpy_initialize_py_events): Add new
2086 registries.
2087 * python/py-events.h (events_object) <new_inferior,
2088 inferior_deleted, new_thread>: New fields.
2089 * python/py-event.h (create_thread_event_breakpoint): Add optional
2090 "thread" parameter.
2091
72542b8e
AB
20922017-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
2093
2094 * utils.c (abort_with_message): Don't compare gdb_stderr to NULL,
2095 check current_ui instead.
2096 (internal_vproblem): Likewise.
2097
0d64823e
SM
20982017-09-09 Simon Marchi <simon.marchi@ericsson.com>
2099
2100 * thread.c (print_thread_info_1): Remove unnecessary calls to
2101 uiout->is_mi_like_p.
2102
eb1e02fd
TT
21032017-09-09 Tom Tromey <tom@tromey.com>
2104
2105 * namespace.h (add_using_directive): Update.
2106 * namespace.c (add_using_directive): Change type of excludes to
2107 std::vector.
2108 * dwarf2read.c (read_import_statement): Use std::vector.
2109 (read_namespace): Update.
2110 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
2111
0fc21fd8
TT
21122017-09-09 Tom Tromey <tom@tromey.com>
2113
2114 * linespec.c (create_sals_line_offset): Use gdb::def_vector.
2115
49663d05
TT
21162017-09-09 Tom Tromey <tom@tromey.com>
2117
2118 * p-valprint.c (pascal_object_print_value): Use gdb::byte_vector.
2119
0b868b60
TT
21202017-09-09 Tom Tromey <tom@tromey.com>
2121
2122 * stack.c (func_command): Use gdb::def_vector.
2123
c0470d48
TT
21242017-09-09 Tom Tromey <tom@tromey.com>
2125
2126 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Use gdb::optional,
2127 ui_out_emit_list, ui_out_emit_tuple.
2128 (mi_cmd_var_update): Likewise.
2129
ca5909c7
TT
21302017-09-09 Tom Tromey <tom@tromey.com>
2131
2132 * mi/mi-interp.c (mi_user_selected_context_changed): Use
2133 ui_out_redirect_pop.
2134 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
2135 ui_out_redirect_pop.
2136 * utils.c (do_ui_out_redirect_pop)
2137 (make_cleanup_ui_out_redirect_pop): Remove.
2138 * top.c (execute_command_to_string): Use ui_out_redirect_pop.
2139 * utils.h (make_cleanup_ui_out_redirect_pop): Remove.
2140 * ui-out.h (ui_out_redirect_pop): New class.
2141
e6a2252a
TT
21422017-09-09 Tom Tromey <tom@tromey.com>
2143
2144 * mi/mi-main.c (output_cores): Use ui_out_emit_list.
2145 (list_available_thread_groups, mi_cmd_list_thread_groups)
2146 (mi_cmd_data_list_changed_registers, mi_cmd_data_read_memory)
2147 (mi_cmd_data_read_memory_bytes, mi_cmd_trace_frame_collected):
2148 Likewise.
2149
393702cd
TT
21502017-09-09 Tom Tromey <tom@tromey.com>
2151
2152 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
2153 ui_out_emit_tuple.
2154
76f9c9cf
TT
21552017-09-09 Tom Tromey <tom@tromey.com>
2156
2157 * target.c (flash_erase_command): Use ui_out_emit_tuple.
2158 * stack.c (print_frame): Use ui_out_emit_tuple.
2159 * spu-tdep.c (info_spu_event_command): Use ui_out_emit_tuple.
2160 (info_spu_mailbox_command, info_spu_dma_command)
2161 (info_spu_proxydma_command): Likewise.
2162 * mi/mi-main.c (mi_cmd_trace_frame_collected): Use
2163 ui_out_emit_tuple, gdb::byte_vector, bin2hex.
2164 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
2165 ui_out_emit_tuple.
2166 * breakpoint.c (print_it_watchpoint): Use ui_out_emit_tuple.
2167
dc9fe180
TT
21682017-09-09 Tom Tromey <tom@tromey.com>
2169
2170 * ui-out.h (make_cleanup_ui_out_table_begin_end): Remove.
2171 (class ui_out_emit_table): Update comment.
2172 * ui-out.c (do_cleanup_table_end)
2173 (make_cleanup_ui_out_table_begin_end): Remove.
2174 * spu-tdep.c (info_spu_mailbox_list): Use ui_out_emit_table.
2175 (info_spu_dma_cmdlist): Likewise.
2176 * probe.c (info_probes_for_ops): Use ui_out_emit_table.
2177 * darwin-nat-info.c (darwin_debug_regions_recurse): Use
2178 ui_out_emit_table.
2179
f8cc3da6
TT
21802017-09-09 Tom Tromey <tom@tromey.com>
2181
2182 * thread.c (print_thread_info_1): Use ui_out_emit_table,
2183 ui_out_emit_list, gdb::optional.
2184
481695ed
JB
21852017-09-09 John Baldwin <jhb@FreeBSD.org>
2186
2187 * aarch64-linux-nat.c: Remove _initialize_aarch64_linux_nat
2188 prototype.
2189 * aarch64-linux-tdep.c: Remove _initialize_aarch64_linux_tdep
2190 prototype.
2191 * aarch64-newlib-tdep.c: Remove _initialize_aarch64_newlib_tdep
2192 prototype.
2193 * aarch64-tdep.c: Remove _initialize_aarch64_tdep prototype.
2194 * ada-exp.y: Remove _initialize_ada_exp prototype.
2195 * ada-lang.c: Remove _initialize_ada_language prototype.
2196 * ada-tasks.c: Remove _initialize_tasks prototype.
2197 * addrmap.c: Remove _initialize_addrmap prototype.
2198 * agent.c: Remove _initialize_agent prototype.
2199 * aix-thread.c: Remove _initialize_aix_thread prototype.
2200 * alpha-bsd-nat.c: Remove _initialize_alphabsd_nat prototype.
2201 * alpha-linux-nat.c: Remove _initialize_alpha_linux_nat prototype.
2202 * alpha-linux-tdep.c: Remove _initialize_alpha_linux_tdep
2203 prototype.
2204 * alpha-nbsd-tdep.c: Remove _initialize_alphanbsd_tdep prototype.
2205 * alpha-obsd-tdep.c: Remove _initialize_alphaobsd_tdep prototype.
2206 * alpha-tdep.c: Remove _initialize_alpha_tdep prototype.
2207 * amd64-darwin-tdep.c: Remove _initialize_amd64_darwin_tdep
2208 prototype.
2209 * amd64-dicos-tdep.c: Remove _initialize_amd64_dicos_tdep
2210 prototype.
2211 * amd64-fbsd-nat.c: Remove _initialize_amd64fbsd_nat prototype.
2212 * amd64-fbsd-tdep.c: Remove _initialize_amd64fbsd_tdep prototype.
2213 * amd64-linux-nat.c: Remove _initialize_amd64_linux_nat prototype.
2214 * amd64-linux-tdep.c: Remove _initialize_amd64_linux_tdep
2215 prototype.
2216 * amd64-nbsd-nat.c: Remove _initialize_amd64nbsd_nat prototype.
2217 * amd64-nbsd-tdep.c: Remove _initialize_amd64nbsd_tdep prototype.
2218 * amd64-obsd-nat.c: Remove _initialize_amd64obsd_nat prototype.
2219 * amd64-obsd-tdep.c: Remove _initialize_amd64obsd_tdep prototype.
2220 * amd64-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
2221 * amd64-tdep.c: Remove _initialize_amd64_tdep prototype.
2222 * amd64-windows-nat.c: Remove _initialize_amd64_windows_nat
2223 prototype.
2224 * amd64-windows-tdep.c: Remove _initialize_amd64_windows_tdep
2225 prototype.
2226 * annotate.c: Remove _initialize_annotate prototype.
2227 * arc-newlib-tdep.c: Remove _initialize_arc_newlib_tdep prototype.
2228 * arc-tdep.c: Remove _initialize_arc_tdep prototype.
2229 * arch-utils.c: Remove _initialize_gdbarch_utils prototype.
2230 * arm-linux-nat.c: Remove _initialize_arm_linux_nat prototype.
2231 * arm-linux-tdep.c: Remove _initialize_arm_linux_tdep prototype.
2232 * arm-nbsd-tdep.c: Remove _initialize_arm_netbsd_tdep prototype.
2233 * arm-obsd-tdep.c: Remove _initialize_armobsd_tdep prototype.
2234 * arm-symbian-tdep.c: Remove _initialize_arm_symbian_tdep
2235 prototype.
2236 * arm-tdep.c: Remove _initialize_arm_tdep prototype.
2237 * arm-wince-tdep.c: Remove _initialize_arm_wince_tdep prototype.
2238 * auto-load.c: Remove _initialize_auto_load prototype.
2239 * auxv.c: Remove _initialize_auxv prototype.
2240 * avr-tdep.c: Remove _initialize_avr_tdep prototype.
2241 * ax-gdb.c: Remove _initialize_ax_gdb prototype.
2242 * bfin-linux-tdep.c: Remove _initialize_bfin_linux_tdep prototype.
2243 * bfin-tdep.c: Remove _initialize_bfin_tdep prototype.
2244 * break-catch-sig.c: Remove _initialize_break_catch_sig prototype.
2245 * break-catch-syscall.c: Remove _initialize_break_catch_syscall
2246 prototype.
2247 * break-catch-throw.c: Remove _initialize_break_catch_throw
2248 prototype.
2249 * breakpoint.c: Remove _initialize_breakpoint prototype.
2250 * bsd-uthread.c: Remove _initialize_bsd_uthread prototype.
2251 * btrace.c: Remove _initialize_btrace prototype.
2252 * charset.c: Remove _initialize_charset prototype.
2253 * cli/cli-cmds.c: Remove _initialize_cli_cmds prototype.
2254 * cli/cli-dump.c: Remove _initialize_cli_dump prototype.
2255 * cli/cli-interp.c: Remove _initialize_cli_interp prototype.
2256 * cli/cli-logging.c: Remove _initialize_cli_logging prototype.
2257 * cli/cli-script.c: Remove _initialize_cli_script prototype.
2258 * coff-pe-read.c: Remove _initialize_coff_pe_read prototype.
2259 * coffread.c: Remove _initialize_coffread prototype.
2260 * compile/compile.c: Remove _initialize_compile prototype.
2261 * complaints.c: Remove _initialize_complaints prototype.
2262 * completer.c: Remove _initialize_completer prototype.
2263 * copying.awk: Remove _initialize_copying prototype.
2264 * copying.c: Regenerate.
2265 * core-regset.c: Remove _initialize_core_regset prototype.
2266 * corefile.c: Remove _initialize_core prototype.
2267 * corelow.c: Remove _initialize_corelow prototype.
2268 * cp-abi.c: Remove _initialize_cp_abi prototype.
2269 * cp-namespace.c: Remove _initialize_cp_namespace prototype.
2270 * cp-support.c: Remove _initialize_cp_support prototype.
2271 * cp-valprint.c: Remove _initialize_cp_valprint prototype.
2272 * cris-linux-tdep.c: Remove _initialize_cris_linux_tdep prototype.
2273 * cris-tdep.c: Remove _initialize_cris_tdep prototype.
2274 * ctf.c: Remove _initialize_ctf prototype.
2275 * d-lang.c: Remove _initialize_d_language prototype.
2276 * darwin-nat-info.c: Remove _initialize_darwin_info_commands
2277 prototype.
2278 * darwin-nat.c: Remove _initialize_darwin_inferior prototype.
2279 * dbxread.c: Remove _initialize_dbxread prototype.
2280 * dcache.c: Remove _initialize_dcache prototype.
2281 * demangle.c: Remove _initialize_demangler prototype.
2282 * disasm-selftests.c: Remove _initialize_disasm_selftests
2283 prototype.
2284 * disasm.c: Remove _initialize_disasm prototype.
2285 * dtrace-probe.c: Remove _initialize_dtrace_probe prototype.
2286 * dummy-frame.c: Remove _initialize_dummy_frame prototype.
2287 * dwarf2-frame-tailcall.c: Remove _initialize_tailcall_frame
2288 prototype.
2289 * dwarf2-frame.c: Remove _initialize_dwarf2_frame prototype.
2290 * dwarf2expr.c: Remove _initialize_dwarf2expr prototype.
2291 * dwarf2loc.c: Remove _initialize_dwarf2loc prototype.
2292 * dwarf2read.c: Remove _initialize_dwarf2_read prototype.
2293 * elfread.c: Remove _initialize_elfread prototype.
2294 * exec.c: Remove _initialize_exec prototype.
2295 * extension.c: Remove _initialize_extension prototype.
2296 * f-lang.c: Remove _initialize_f_language prototype.
2297 * f-valprint.c: Remove _initialize_f_valprint prototype.
2298 * fbsd-nat.c: Remove _initialize_fbsd_nat prototype.
2299 * fbsd-tdep.c: Remove _initialize_fbsd_tdep prototype.
2300 * filesystem.c: Remove _initialize_filesystem prototype.
2301 * findcmd.c: Remove _initialize_mem_search prototype.
2302 * fork-child.c: Remove _initialize_fork_child prototype.
2303 * frame-base.c: Remove _initialize_frame_base prototype.
2304 * frame-unwind.c: Remove _initialize_frame_unwind prototype.
2305 * frame.c: Remove _initialize_frame prototype.
2306 * frv-linux-tdep.c: Remove _initialize_frv_linux_tdep prototype.
2307 * frv-tdep.c: Remove _initialize_frv_tdep prototype.
2308 * ft32-tdep.c: Remove _initialize_ft32_tdep prototype.
2309 * gcore.c: Remove _initialize_gcore prototype.
2310 * gdb_bfd.c: Remove _initialize_gdb_bfd prototype.
2311 * gdbarch.c: Regenerate.
2312 * gdbarch.sh: Remove _initialize_gdbarch prototype.
2313 * gdbtypes.c: Remove _initialize_gdbtypes prototype.
2314 * gnu-nat.c: Remove _initialize_gnu_nat prototype.
2315 * gnu-v2-abi.c: Remove _initialize_gnu_v2_abi prototype.
2316 * gnu-v3-abi.c: Remove _initialize_gnu_v3_abi prototype.
2317 * go-lang.c: Remove _initialize_go_language prototype.
2318 * go32-nat.c: Remove _initialize_go32_nat prototype.
2319 * guile/guile.c: Remove _initialize_guile prototype.
2320 * h8300-tdep.c: Remove _initialize_h8300_tdep prototype.
2321 * hppa-linux-nat.c: Remove _initialize_hppa_linux_nat prototype.
2322 * hppa-linux-tdep.c: Remove _initialize_hppa_linux_tdep prototype.
2323 * hppa-nbsd-nat.c: Remove _initialize_hppanbsd_nat prototype.
2324 * hppa-nbsd-tdep.c: Remove _initialize_hppanbsd_tdep prototype.
2325 * hppa-obsd-nat.c: Remove _initialize_hppaobsd_nat prototype.
2326 * hppa-obsd-tdep.c: Remove _initialize_hppaobsd_tdep prototype.
2327 * hppa-tdep.c: Remove _initialize_hppa_tdep prototype.
2328 * i386-bsd-nat.c: Remove _initialize_i386bsd_nat prototype.
2329 * i386-cygwin-tdep.c: Remove _initialize_i386_cygwin_tdep
2330 prototype.
2331 * i386-darwin-tdep.c: Remove _initialize_i386_darwin_tdep
2332 prototype.
2333 * i386-dicos-tdep.c: Remove _initialize_i386_dicos_tdep prototype.
2334 * i386-fbsd-nat.c: Remove _initialize_i386fbsd_nat prototype.
2335 * i386-fbsd-tdep.c: Remove _initialize_i386fbsd_tdep prototype.
2336 * i386-gnu-nat.c: Remove _initialize_i386gnu_nat prototype.
2337 * i386-gnu-tdep.c: Remove _initialize_i386gnu_tdep prototype.
2338 * i386-linux-nat.c: Remove _initialize_i386_linux_nat prototype.
2339 * i386-linux-tdep.c: Remove _initialize_i386_linux_tdep prototype.
2340 * i386-nbsd-nat.c: Remove _initialize_i386nbsd_nat prototype.
2341 * i386-nbsd-tdep.c: Remove _initialize_i386nbsd_tdep prototype.
2342 * i386-nto-tdep.c: Remove _initialize_i386nto_tdep prototype.
2343 * i386-obsd-nat.c: Remove _initialize_i386obsd_nat prototype.
2344 * i386-obsd-tdep.c: Remove _initialize_i386obsd_tdep prototype.
2345 * i386-sol2-nat.c: Remove _initialize_amd64_sol2_nat prototype.
2346 * i386-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
2347 * i386-tdep.c: Remove _initialize_i386_tdep prototype.
2348 * i386-windows-nat.c: Remove _initialize_i386_windows_nat
2349 prototype.
2350 * ia64-libunwind-tdep.c: Remove _initialize_libunwind_frame
2351 prototype.
2352 * ia64-linux-nat.c: Remove _initialize_ia64_linux_nat prototype.
2353 * ia64-linux-tdep.c: Remove _initialize_ia64_linux_tdep prototype.
2354 * ia64-tdep.c: Remove _initialize_ia64_tdep prototype.
2355 * ia64-vms-tdep.c: Remove _initialize_ia64_vms_tdep prototype.
2356 * infcall.c: Remove _initialize_infcall prototype.
2357 * infcmd.c: Remove _initialize_infcmd prototype.
2358 * inferior.c: Remove _initialize_inferiors prototype.
2359 * inflow.c: Remove _initialize_inflow prototype.
2360 * infrun.c: Remove _initialize_infrun prototype.
2361 * interps.c: Remove _initialize_interpreter prototype.
2362 * iq2000-tdep.c: Remove _initialize_iq2000_tdep prototype.
2363 * jit.c: Remove _initialize_jit prototype.
2364 * language.c: Remove _initialize_language prototype.
2365 * linux-fork.c: Remove _initialize_linux_fork prototype.
2366 * linux-nat.c: Remove _initialize_linux_nat prototype.
2367 * linux-tdep.c: Remove _initialize_linux_tdep prototype.
2368 * linux-thread-db.c: Remove _initialize_thread_db prototype.
2369 * lm32-tdep.c: Remove _initialize_lm32_tdep prototype.
2370 * m2-lang.c: Remove _initialize_m2_language prototype.
2371 * m32c-tdep.c: Remove _initialize_m32c_tdep prototype.
2372 * m32r-linux-nat.c: Remove _initialize_m32r_linux_nat prototype.
2373 * m32r-linux-tdep.c: Remove _initialize_m32r_linux_tdep prototype.
2374 * m32r-tdep.c: Remove _initialize_m32r_tdep prototype.
2375 * m68hc11-tdep.c: Remove _initialize_m68hc11_tdep prototype.
2376 * m68k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
2377 * m68k-bsd-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
2378 * m68k-linux-nat.c: Remove _initialize_m68k_linux_tdep prototype.
2379 * m68k-linux-tdep.c: Remove _initialize_m68k_linux_tdep prototype.
2380 * m68k-tdep.c: Remove _initialize_m68k_tdep prototype.
2381 * m88k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
2382 * m88k-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
2383 * machoread.c: Remove _initialize_machoread prototype.
2384 * macrocmd.c: Remove _initialize_macrocmd prototype.
2385 * macroscope.c: Remove _initialize_macroscope prototype.
2386 * maint.c: Remove _initialize_maint_cmds prototype.
2387 * mdebugread.c: Remove _initialize_mdebugread prototype.
2388 * memattr.c: Remove _initialize_mem prototype.
2389 * mep-tdep.c: Remove _initialize_mep_tdep prototype.
2390 * mi/mi-cmd-env.c: Remove _initialize_mi_cmd_env prototype.
2391 * mi/mi-cmds.c: Remove _initialize_mi_cmds prototype.
2392 * mi/mi-interp.c: Remove _initialize_mi_interp prototype.
2393 * mi/mi-main.c: Remove _initialize_mi_main prototype.
2394 * microblaze-linux-tdep.c: Remove
2395 _initialize_microblaze_linux_tdep prototype.
2396 * microblaze-tdep.c: Remove _initialize_microblaze_tdep prototype.
2397 * mips-fbsd-nat.c: Remove _initialize_mips_fbsd_nat prototype.
2398 * mips-fbsd-tdep.c: Remove _initialize_mips_fbsd_tdep prototype.
2399 * mips-linux-nat.c: Remove _initialize_mips_linux_nat prototype.
2400 * mips-linux-tdep.c: Remove _initialize_mips_linux_tdep prototype.
2401 * mips-nbsd-nat.c: Remove _initialize_mipsnbsd_nat prototype.
2402 * mips-nbsd-tdep.c: Remove _initialize_mipsnbsd_tdep prototype.
2403 * mips-sde-tdep.c: Remove _initialize_mips_sde_tdep prototype.
2404 * mips-tdep.c: Remove _initialize_mips_tdep prototype.
2405 * mips64-obsd-nat.c: Remove _initialize_mips64obsd_nat prototype.
2406 * mips64-obsd-tdep.c: Remove _initialize_mips64obsd_tdep
2407 prototype.
2408 * mipsread.c: Remove _initialize_mipsread prototype.
2409 * mn10300-linux-tdep.c: Remove _initialize_mn10300_linux_tdep
2410 prototype.
2411 * mn10300-tdep.c: Remove _initialize_mn10300_tdep prototype.
2412 * moxie-tdep.c: Remove _initialize_moxie_tdep prototype.
2413 * msp430-tdep.c: Remove _initialize_msp430_tdep prototype.
2414 * mt-tdep.c: Remove _initialize_mt_tdep prototype.
2415 * nds32-tdep.c: Remove _initialize_nds32_tdep prototype.
2416 * nios2-linux-tdep.c: Remove _initialize_nios2_linux_tdep
2417 prototype.
2418 * nios2-tdep.c: Remove _initialize_nios2_tdep prototype.
2419 * nto-procfs.c: Remove _initialize_procfs prototype.
2420 * nto-tdep.c: Remove _initialize_nto_tdep prototype.
2421 * objc-lang.c: Remove _initialize_objc_language prototype.
2422 * objfiles.c: Remove _initialize_objfiles prototype.
2423 * observer.c: Remove observer_test_first_notification_function,
2424 observer_test_second_notification_function,
2425 observer_test_third_notification_function, and
2426 _initialize_observer prototypes.
2427 * opencl-lang.c: Remove _initialize_opencl_language prototypes.
2428 * osabi.c: Remove _initialize_gdb_osabi prototype.
2429 * osdata.c: Remove _initialize_osdata prototype.
2430 * p-valprint.c: Remove _initialize_pascal_valprint prototype.
2431 * parse.c: Remove _initialize_parse prototype.
2432 * ppc-fbsd-nat.c: Remove _initialize_ppcfbsd_nat prototype.
2433 * ppc-fbsd-tdep.c: Remove _initialize_ppcfbsd_tdep prototype.
2434 * ppc-linux-nat.c: Remove _initialize_ppc_linux_nat prototype.
2435 * ppc-linux-tdep.c: Remove _initialize_ppc_linux_tdep prototype.
2436 * ppc-nbsd-nat.c: Remove _initialize_ppcnbsd_nat prototype.
2437 * ppc-nbsd-tdep.c: Remove _initialize_ppcnbsd_tdep prototype.
2438 * ppc-obsd-nat.c: Remove _initialize_ppcobsd_nat prototype.
2439 * ppc-obsd-tdep.c: Remove _initialize_ppcobsd_tdep prototype.
2440 * printcmd.c: Remove _initialize_printcmd prototype.
2441 * probe.c: Remove _initialize_probe prototype.
2442 * proc-api.c: Remove _initialize_proc_api prototype.
2443 * proc-events.c: Remove _initialize_proc_events prototype.
2444 * proc-service.c: Remove _initialize_proc_service prototype.
2445 * procfs.c: Remove _initialize_procfs prototype.
2446 * psymtab.c: Remove _initialize_psymtab prototype.
2447 * python/python.c: Remove _initialize_python prototype.
2448 * ravenscar-thread.c: Remove _initialize_ravenscar prototype.
2449 * record-btrace.c: Remove _initialize_record_btrace prototype.
2450 * record-full.c: Remove _initialize_record_full prototype.
2451 * record.c: Remove _initialize_record prototype.
2452 * regcache.c: Remove _initialize_regcache prototype.
2453 * reggroups.c: Remove _initialize_reggroup prototype.
2454 * remote-notif.c: Remove _initialize_notif prototype.
2455 * remote-sim.c: Remove _initialize_remote_sim prototype.
2456 * remote.c: Remove _initialize_remote prototype.
2457 * reverse.c: Remove _initialize_reverse prototype.
2458 * rl78-tdep.c: Remove _initialize_rl78_tdep prototype.
2459 * rs6000-aix-tdep.c: Remove _initialize_rs6000_aix_tdep prototype.
2460 * rs6000-lynx178-tdep.c: Remove _initialize_rs6000_lynx178_tdep
2461 prototype.
2462 * rs6000-nat.c: Remove _initialize_rs6000_nat prototype.
2463 * rs6000-tdep.c: Remove _initialize_rs6000_tdep prototype.
2464 * rust-exp.y: Remove _initialize_rust_exp prototype.
2465 * rx-tdep.c: Remove _initialize_rx_tdep prototype.
2466 * s390-linux-nat.c: Remove _initialize_s390_nat prototype.
2467 * s390-linux-tdep.c: Remove _initialize_s390_tdep prototype.
2468 * score-tdep.c: Remove _initialize_score_tdep prototype.
2469 * selftest-arch.c: Remove _initialize_selftests_foreach_arch
2470 prototype.
2471 * ser-go32.c: Remove _initialize_ser_dos prototype.
2472 * ser-mingw.c: Remove _initialize_ser_windows prototype.
2473 * ser-pipe.c: Remove _initialize_ser_pipe prototype.
2474 * ser-tcp.c: Remove _initialize_ser_tcp prototype.
2475 * ser-unix.c: Remove _initialize_ser_hardwire prototype.
2476 * serial.c: Remove _initialize_serial prototype.
2477 * sh-linux-tdep.c: Remove _initialize_sh_linux_tdep prototype.
2478 * sh-nbsd-nat.c: Remove _initialize_shnbsd_nat prototype.
2479 * sh-nbsd-tdep.c: Remove _initialize_shnbsd_tdep prototype.
2480 * sh-tdep.c: Remove _initialize_sh_tdep prototype.
2481 * skip.c: Remove _initialize_step_skip prototype.
2482 * sol-thread.c: Remove _initialize_sol_thread prototype.
2483 * solib-aix.c: Remove _initialize_solib_aix prototype.
2484 * solib-darwin.c: Remove _initialize_darwin_solib prototype.
2485 * solib-dsbt.c: Remove _initialize_dsbt_solib prototype.
2486 * solib-frv.c: Remove _initialize_frv_solib prototype.
2487 * solib-spu.c: Remove _initialize_spu_solib prototype.
2488 * solib-svr4.c: Remove _initialize_svr4_solib prototype.
2489 * solib-target.c: Remove _initialize_solib_target prototype.
2490 * solib.c: Remove _initialize_solib prototype.
2491 * source.c: Remove _initialize_source prototype.
2492 * sparc-linux-nat.c: Remove _initialize_sparc_linux_nat prototype.
2493 * sparc-linux-tdep.c: Remove _initialize_sparc_linux_tdep
2494 prototype.
2495 * sparc-nat.c: Remove _initialize_sparc_nat prototype.
2496 * sparc-nbsd-nat.c: Remove _initialize_sparcnbsd_nat prototype.
2497 * sparc-nbsd-tdep.c: Remove _initialize_sparcnbsd_tdep prototype.
2498 * sparc-obsd-tdep.c: Remove _initialize_sparc32obsd_tdep
2499 prototype.
2500 * sparc-sol2-nat.c: Remove _initialize_sparc_sol2_nat prototype.
2501 * sparc-sol2-tdep.c: Remove _initialize_sparc_sol2_tdep prototype.
2502 * sparc-tdep.c: Remove _initialize_sparc_tdep prototype.
2503 * sparc64-fbsd-nat.c: Remove _initialize_sparc64fbsd_nat
2504 prototype.
2505 * sparc64-fbsd-tdep.c: Remove _initialize_sparc64fbsd_tdep
2506 prototype.
2507 * sparc64-linux-nat.c: Remove _initialize_sparc64_linux_nat
2508 prototype.
2509 * sparc64-linux-tdep.c: Remove _initialize_sparc64_linux_tdep
2510 prototype.
2511 * sparc64-nat.c: Remove _initialize_sparc64_nat prototype.
2512 * sparc64-nbsd-nat.c: Remove _initialize_sparc64nbsd_nat
2513 prototype.
2514 * sparc64-nbsd-tdep.c: Remove _initialize_sparc64nbsd_tdep
2515 prototype.
2516 * sparc64-obsd-nat.c: Remove _initialize_sparc64obsd_nat
2517 prototype.
2518 * sparc64-obsd-tdep.c: Remove _initialize_sparc64obsd_tdep
2519 prototype.
2520 * sparc64-sol2-tdep.c: Remove _initialize_sparc64_sol2_tdep
2521 prototype.
2522 * spu-linux-nat.c: Remove _initialize_spu_nat prototype.
2523 * spu-multiarch.c: Remove _initialize_spu_multiarch prototype.
2524 * spu-tdep.c: Remove _initialize_spu_tdep prototype.
2525 * stabsread.c: Remove _initialize_stabsread prototype.
2526 * stack.c: Remove _initialize_stack prototype.
2527 * stap-probe.c: Remove _initialize_stap_probe prototype.
2528 * std-regs.c: Remove _initialize_frame_reg prototype.
2529 * symfile-debug.c: Remove _initialize_symfile_debug prototype.
2530 * symfile-mem.c: Remove _initialize_symfile_mem prototype.
2531 * symfile.c: Remove _initialize_symfile prototype.
2532 * symmisc.c: Remove _initialize_symmisc prototype.
2533 * symtab.c: Remove _initialize_symtab prototype.
2534 * target-dcache.c: Remove _initialize_target_dcache prototype.
2535 * target-descriptions.c: Remove _initialize_target_descriptions
2536 prototype.
2537 * thread.c: Remove _initialize_thread prototype.
2538 * tic6x-linux-tdep.c: Remove _initialize_tic6x_linux_tdep
2539 prototype.
2540 * tic6x-tdep.c: Remove _initialize_tic6x_tdep prototype.
2541 * tilegx-linux-nat.c: Remove _initialize_tile_linux_nat prototype.
2542 * tilegx-linux-tdep.c: Remove _initialize_tilegx_linux_tdep
2543 prototype.
2544 * tilegx-tdep.c: Remove _initialize_tilegx_tdep prototype.
2545 * tracefile-tfile.c: Remove _initialize_tracefile_tfile prototype.
2546 * tracefile.c: Remove _initialize_tracefile prototype.
2547 * tracepoint.c: Remove _initialize_tracepoint prototype.
2548 * tui/tui-hooks.c: Remove _initialize_tui_hooks prototype.
2549 * tui/tui-interp.c: Remove _initialize_tui_interp prototype.
2550 * tui/tui-layout.c: Remove _initialize_tui_layout prototype.
2551 * tui/tui-regs.c: Remove _initialize_tui_regs prototype.
2552 * tui/tui-stack.c: Remove _initialize_tui_stack prototype.
2553 * tui/tui-win.c: Remove _initialize_tui_win prototype.
2554 * tui/tui.c: Remove _initialize_tui prototype.
2555 * typeprint.c: Remove _initialize_typeprint prototype.
2556 * user-regs.c: Remove _initialize_user_regs prototype.
2557 * utils.c: Remove _initialize_utils prototype.
2558 * v850-tdep.c: Remove _initialize_v850_tdep prototype.
2559 * valarith.c: Remove _initialize_valarith prototype.
2560 * valops.c: Remove _initialize_valops prototype.
2561 * valprint.c: Remove _initialize_valprint prototype.
2562 * value.c: Remove _initialize_values prototype.
2563 * varobj.c: Remove _initialize_varobj prototype.
2564 * vax-bsd-nat.c: Remove _initialize_vaxbsd_nat prototype.
2565 * vax-nbsd-tdep.c: Remove _initialize_vaxnbsd_tdep prototype.
2566 * vax-tdep.c: Remove _initialize_vax_tdep prototype.
2567 * windows-nat.c: Remove _initialize_windows_nat,
2568 _initialize_check_for_gdb_ini, and _initialize_loadable
2569 prototypes.
2570 * windows-tdep.c: Remove _initialize_windows_tdep prototype.
2571 * xcoffread.c: Remove _initialize_xcoffread prototype.
2572 * xml-support.c: Remove _initialize_xml_support prototype.
2573 * xstormy16-tdep.c: Remove _initialize_xstormy16_tdep prototype.
2574 * xtensa-linux-nat.c: Remove _initialize_xtensa_linux_nat
2575 prototype.
2576 * xtensa-linux-tdep.c: Remove _initialize_xtensa_linux_tdep
2577 prototype.
2578 * xtensa-tdep.c: Remove _initialize_xtensa_tdep prototype.
2579
a611b5cb
KS
25802017-09-08 Keith Seitz <keiths@redhat.com>
2581
2582 * dwarf2read.c (struct field_info) <fnfields>: Remove unused
2583 field.
2584
469412dd
CW
25852017-09-08 Christoph Weinmann <christoph.t.weinmann@intel.com>
2586
2587 * f-valprint.c (f_val_print): Remove check for one byte
2588 sized integers. Remove printing of character type.
2589
a5ad232b
FP
25902017-09-08 Frank Penczek <frank.penczek@intel.com>
2591 Christoph Weinmann <christoph.t.weinmann@intel.com>
2592 Bernhard Heckel <bernhard.heckel@intel.com>
2593
2594 * f-typeprint.c (f_type_print_base): Use fprintfi_filtered
2595 to maintain proper indentation when printing pointers/refs.
2596
e5014227
JB
25972017-09-07 Joel Brobecker <brobecker@adacore.com>
2598
2599 GDB 8.0.1 released.
2600
63c99141
JB
26012017-09-07 Joel Brobecker <brobecker@adacore.com>
2602
2603 * NEWS (Changes in GDB 7.11): Remove entry for QStartupWithShell.
2604
69c1e056
TT
26052017-09-05 Tom Tromey <tom@tromey.com>
2606
2607 * parse.c (funcall_chain): Now a std::vector.
2608 (start_arglist, end_arglist): Simplify.
2609 (free_funcalls): Remove.
2610 (parse_exp_in_context_1): Remove cleanup.
2611
fef704bf
TT
26122017-09-05 Tom Tromey <tom@tromey.com>
2613
2614 * go-exp.y (go_parse): Don't create a cleanup.
2615
5613c585
TT
26162017-09-05 Tom Tromey <tom@tromey.com>
2617
2618 * d-exp.y (PrimaryExpression): Use std::string.
2619 (d_parse): Don't create a cleanup.
2620
eae49211
TT
26212017-09-05 Tom Tromey <tom@tromey.com>
2622
2623 * utils.c (do_clear_parser_state): Remove.
2624 (make_cleanup_clear_parser_state): Remove.
2625 * p-exp.y (pascal_parse): Use scoped_restore.
2626 * m2-exp.y (m2_parse): Use scoped_restore.
2627 * f-exp.y (f_parse): Use scoped_restore.
2628 * d-exp.y (d_parse): Use scoped_restore.
2629 * c-exp.y (c_parse): Use scoped_restore.
2630 * ada-exp.y (ada_parse): Use scoped_restore.
2631 * utils.h (make_cleanup_clear_parser_state): Remove.
2632
73b9be8b
KS
26332017-09-06 Keith Seitz <keiths@redhat.com>
2634
2635 * dwarf2read.c (dw2_linkage_name_attr): New function.
2636 (dw2_linkage_name): New function.
2637 (dwarf2_compute_name, dwarf2_physname, read_call_site_scope)
2638 (guess_full_die_structure_name, dwarf2_name): Use dw2_linkage_name.
2639 (anonymous_struct_prefix, dwarf2_name): Use dw2_linkage_name_attr.
2640
a102602b
KR
26412017-09-06 Kamil Rytarowski <n54@gmx.com>
2642
2643 * config/djgpp/djconfig.sh: Correct shell portability issue.
2644
28ad437d
KR
26452017-09-06 Kamil Rytarowski <n54@gmx.com>
2646
2647 * configure.nat: Define HAVE_NATIVE_GCORE_HOST on NetBSD.
2648
351787dd
JB
26492017-09-06 John Baldwin <jhb@FreeBSD.org>
2650
2651 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
2652 * NEWS: Mention new FreeBSD/mips native configuration.
2653 * configure.host: Add aarch64*-*-freebsd*.
2654 * configure.nat: Likewise.
2655 * aarch64-fbsd-nat.c: New file.
2656
c0f84956
JB
26572017-09-06 John Baldwin <jhb@FreeBSD.org>
2658
2659 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-fbsd-tdep.o.
2660 (ALLDEPFILES): Add aarch64-fbsd-tdep.c.
2661 * NEWS: Mention new FreeBSD/aarch64 target.
2662 * configure.tgt: Add aarch64*-*-freebsd*.
2663 * aarch64-fbsd-tdep.c: New file.
2664 * aarch64-fbsd-tdep.h: New file.
2665
7610297a
KR
26662017-09-06 Kamil Rytarowski <n54@gmx.com>
2667
2668 * MAINTAINERS (Write After Approval): Add Kamil Rytarowski.
2669
fbd1b771
JK
26702017-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2671
2672 * parse.c (find_minsym_type_and_address): Don't relocate addresses
2673 of TLS symbols.
2674
5ca79eae
PW
26752017-09-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2676
2677 * objfiles.c (get_objfile_bfd_data): Remove useless obstack_init
2678 call.
2679
bf93d7ba
SM
26802017-09-05 Simon Marchi <simon.marchi@ericsson.com>
2681
2682 * infrun.c (follow_exec): Call add_thread after
2683 target_find_description.
2684
1bb7c059
SM
26852017-09-05 Simon Marchi <simon.marchi@ericsson.com>
2686
2687 * infrun.c (handle_inferior_event_1): When exec'ing, read
2688 stop_pc after follow_exec.
2689
fc809827
SM
26902017-09-05 Simon Marchi <simon.marchi@ericsson.com>
2691
2692 * remote.c (process_g_packet): Update error message.
2693
d2fcdd85
YQ
26942017-09-05 Yao Qi <yao.qi@linaro.org>
2695
2696 * configure.tgt (gdb_target_obs): Add i386.o for x86_64-*
2697 targets.
2698
e69570ee
PA
26992017-09-05 Pedro Alves <palves@redhat.com>
2700
2701 * eval.c (eval_call, evaluate_funcall): New functions, factored
2702 out from ...
2703 (evaluate_subexp_standard): ... this.
2704
22916b07
YQ
27052017-09-05 Yao Qi <yao.qi@linaro.org>
2706
2707 * amd64-tdep.c (amd64_target_description): Create target
2708 descriptions.
2709 (_initialize_amd64_tdep): Don't call functions
2710 initialize_tdesc_amd64_*. Add self tests.
2711 * arch/amd64.c (amd64_create_target_description): Add parameter
2712 is_linux. Call set_tdesc_osabi if is_linux is true.
2713 * arch/amd64.h (amd64_create_target_description): Update the
2714 declaration.
2715 * arch/i386.c (i386_create_target_description): Add parameter
2716 is_linux. Call set_tdesc_osabi if is_linux is true.
2717 * arch/i386.h (i386_create_target_description): Update
2718 declaration.
2719 * configure.tgt: Add i386.o to gdb_target_obs.
2720 * features/Makefile (XMLTOC): Remove i386/*.xml.
2721 * features/i386/amd64-avx-avx512.c: Remove.
2722 * features/i386/amd64-avx-mpx-avx512-pku.c: Remove.
2723 * features/i386/amd64-avx-mpx.c: Remove.
2724 * features/i386/amd64-avx.c: Remove.
2725 * features/i386/amd64-mpx.c: Remove.
2726 * features/i386/amd64.c: Remove.
2727 * features/i386/i386-avx-avx512.c: Remove.
2728 * features/i386/i386-avx-mpx-avx512-pku.c: Remove.
2729 * features/i386/i386-avx-mpx.c: Remove.
2730 * features/i386/i386-avx.c: Remove.
2731 * features/i386/i386-mmx.c: Remove.
2732 * features/i386/i386-mpx.c: Remove.
2733 * features/i386/i386.c: Remove.
2734 * i386-tdep.c: Don't include features/i386/i386*.c., include
2735 target-descriptions.h and arch/i386.h.
2736 (i386_target_description): Create target descriptions.
2737 (i386_gdbarch_init): Don't call initialize_tdesc_i386_*
2738 functions. Do self tests.
2739
0854b7b1
YQ
27402017-09-05 Yao Qi <yao.qi@linaro.org>
2741
2742 * features/Makefile (XMLTOC): Remove i386/amd64XXX-linux.xml.
2743 * features/i386/amd64-avx-avx512-linux.c: Removed.
2744 * features/i386/amd64-avx-linux.c: Removed.
2745 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Removed.
2746 * features/i386/amd64-avx-mpx-linux.c: Removed.
2747 * features/i386/amd64-linux.c: Removed.
2748 * features/i386/amd64-mpx-linux.c: Removed.
2749 * features/i386/x32-avx-avx512-linux.c: Removed.
2750 * features/i386/x32-avx-linux.c: Removed.
2751 * features/i386/x32-linux.c: Removed.
2752
b4570e4b
YQ
27532017-09-05 Yao Qi <yao.qi@linaro.org>
2754
2755 * amd64-linux-tdep.c: Include arch/amd64.h. Don't include
2756 features/i386/*.c.
2757 (amd64_linux_read_description): Call
2758 amd64_create_target_description.
2759 * arch/amd64.c: New file.
2760 * arch/amd64.h: New file.
2761 * configure.tgt (x86_64-*-linux*): Append amd64.o.
2762 * Makefile.in (ALL_64_TARGET_OBS): Append amd64.o.
2763
6c73f67f
YQ
27642017-09-05 Yao Qi <yao.qi@linaro.org>
2765
2766 * amd64-linux-tdep.c: Don't include amd64-XXX-linux and
2767 x32-XXX-linux.c. Include 64bit-XX.c and x32-XX.c.
2768 (amd64_linux_read_description): Create target descriptions.
2769 (_initialize_amd64_linux_tdep): Don't call initialize_tdesc_XXX
2770 functions. Add unit tests.
2771 * features/Makefile (FEATURE_XMLFILES): Append 64bit-XXX.xml and
2772 x32-core.xml.
2773 * features/i386/64bit-avx.c: Generated.
2774 * features/i386/64bit-avx512.c: Generated.
2775 * features/i386/64bit-core.c: Generated.
2776 * features/i386/64bit-linux.c: Generated.
2777 * features/i386/64bit-mpx.c: Generated.
2778 * features/i386/64bit-pkeys.c: Generated.
2779 * features/i386/64bit-segments.c: Generated.
2780 * features/i386/64bit-sse.c: Generated.
2781 * features/i386/x32-core.c: Generated.
2782 * target-descriptions.c (maint_print_c_tdesc_cmd): Print feature
2783 c files for amd64-linux and x32-linux.
2784
9d3d478b
YQ
27852017-09-05 Yao Qi <yao.qi@linaro.org>
2786
2787 * amd64-linux-tdep.c (amd64_linux_read_description): New
2788 function.
2789 (amd64_linux_core_read_description): Call
2790 amd64_linux_read_description.
2791 (amd64_linux_init_abi): Likewise.
2792 (amd64_x32_linux_init_abi): Likewise.
2793 * amd64-linux-tdep.h (amd64_linux_read_description): Declare.
2794 * x86-linux-nat.c (x86_linux_read_description): Call
2795 amd64_linux_read_description.
2796
b9f1d50f
YQ
27972017-09-05 Yao Qi <yao.qi@linaro.org>
2798
2799 * amd64-linux-tdep.c (amd64_linux_core_read_description): Update
2800 comments.
2801
188c9e6d
YQ
28022017-09-05 Yao Qi <yao.qi@linaro.org>
2803
2804 * features/Makefile (XMLTOC): Remove i386/i386-XX-linux.xml.
2805 * features/i386/i386-avx-avx512-linux.c: Remove.
2806 * features/i386/i386-avx-linux.c: Remove.
2807 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Remove.
2808 * features/i386/i386-avx-mpx-linux.c: Remove.
2809 * features/i386/i386-linux.c: Remove.
2810 * features/i386/i386-mmx-linux.c: Remove.
2811 * features/i386/i386-mpx-linux.c: Remove.
2812
5f035c07
YQ
28132017-09-05 Yao Qi <yao.qi@linaro.org>
2814
2815 * Makefile.in (ALL_TARGET_OBS): Add i386.o.
2816 (SFILES): Add arch/i386.c.
2817 (HFILES_NO_SRCDIR): Add arch/i386.h.
2818 * arch/i386.c: New file.
2819 * arch/i386.h: New file.
2820 * arch/tdesc.h (allocate_target_description): Declare.
2821 (set_tdesc_architecture): Declare.
2822 (set_tdesc_osabi): Declare.
2823 * configure.tgt (i[34567]86-*-linux*): Add i386.o.
2824 * i386-linux-tdep.c: Don't include ../features/i386/32bit-XXX.c.
2825 include arch/i386.h.
2826 (i386_linux_read_description): Remove code and call
2827 i386_create_target_description.
2828 (set_tdesc_architecture): New function.
2829 (set_tdesc_osabi): New function.
2830 * target-descriptions.h (allocate_target_description): Remove.
2831
0abe8a89
YQ
28322017-09-05 Yao Qi <yao.qi@linaro.org>
2833
2834 * arch/tdesc.h (tdesc_create_feature): Add an argument xml.
2835 * target-descriptions.c (tdesc_create_feature): Likewise, and
2836 adjust code.
2837 * features/i386/32bit-avx.c: Re-generated.
2838 * features/i386/32bit-avx512.c: Re-generated.
2839 * features/i386/32bit-core.c: Re-generated.
2840 * features/i386/32bit-linux.c: Re-generated.
2841 * features/i386/32bit-mpx.c: Re-generated.
2842 * features/i386/32bit-pkeys.c: Re-generated.
2843 * features/i386/32bit-sse.c: Re-generated.
2844
0a188386
YQ
28452017-09-05 Yao Qi <yao.qi@linaro.org>
2846
2847 * regformats/regdef.h (struct reg): Override operator == and !=.
2848
f49ff000
YQ
28492017-09-05 Yao Qi <yao.qi@linaro.org>
2850
2851 * arch/tdesc.h: New file.
2852 * regformats/regdat.sh: Generate code using tdesc_create_reg.
2853 * target-descriptions.c: Update comments.
2854 * target-descriptions.h: Include "arch/tdesc.h". Remove the
2855 declarations.
2856 * features/i386/32bit-avx.c: Re-generated.
2857 * features/i386/32bit-avx512.c: Re-generated.
2858 * features/i386/32bit-core.c: Re-generated.
2859 * features/i386/32bit-linux.c: Re-generated.
2860 * features/i386/32bit-mpx.c: Re-generated.
2861 * features/i386/32bit-pkeys.c: Re-generated.
2862 * features/i386/32bit-sse.c: Re-generated.
2863
f7000548
YQ
28642017-09-05 Yao Qi <yao.qi@linaro.org>
2865
2866 * regformats/regdat.sh: Update generated code.
2867
c9a5e2a5
YQ
28682017-09-05 Yao Qi <yao.qi@linaro.org>
2869
2870 * regformats/regdat.sh: Adjust code order.
2871
d6b687ac
SM
28722017-09-05 Simon Marchi <simon.marchi@ericsson.com>
2873
2874 * expprint.c (dump_subexp_body_standard): Use constant format
2875 string in fprintf_filtered call.
2876
a379bfd0
JB
28772017-09-04 John Baldwin <jhb@FreeBSD.org>
2878
2879 * configure.nat: Add "x86-nat.o x86-dregs.o" for NetBSD/amd64 and
2880 NetBSD/i386.
2881 * x86-bsd-nat.c [!DBREG_DRX && __NetBSD__]: Define DBREG_DRX.
2882
f7efc967
JB
28832017-09-04 John Baldwin <jhb@FreeBSD.org>
2884
2885 * bsd-kvm.o: Make <sys/user.h> conditional on HAVE_SYS_USER_H.
2886
c49fbc6c
JB
28872017-09-04 John Baldwin <jhb@FreeBSD.org>
2888
2889 * bsd-kvm.o: Define _KMEMUSER.
2890 * configure.ac: Define _KMEMUSER when checking for "struct lwp".
2891 * configure: Regenerate.
2892
26562e73
JB
28932017-09-04 John Baldwin <jhb@FreeBSD.org>
2894
2895 * amd64-fbsd-nat.c: Add include of "x86-xstate.h".
2896 * i386-fbsd-nat.c: Likewise.
2897
31cf1487
JB
28982017-09-04 John Baldwin <jhb@FreeBSD.org>
2899
2900 * unittests/array-view-selftests.c: Add include of <array>.
2901
5b9f8a7c
JB
29022017-09-04 John Baldwin <jhb@FreeBSD.org>
2903
2904 * spu-tdep.c (flush_ea_cache): Add missing argument to
2905 call_function_by_hand.
2906
d69cf9b2
PA
29072017-09-04 Pedro Alves <palves@redhat.com>
2908
2909 * NEWS (Safer support for debugging with no debug info): New.
2910
3693fdb3
PA
29112017-09-04 Pedro Alves <palves@redhat.com>
2912
2913 * c-exp.y (function_method, function_method_void): Add current
2914 instance flags to TYPE_INSTANCE.
2915 * dwarf2read.c (check_modifier): New.
2916 (compute_delayed_physnames): Assert that only C++ adds delayed
2917 physnames. Mark fn_fields as const/volatile depending on
2918 physname.
2919 * eval.c (make_params): New type_instance_flags parameter. Use
2920 it as the new type's instance flags.
2921 (evaluate_subexp_standard) <TYPE_INSTANCE>: Extract the instance
2922 flags element and pass it to make_params.
2923 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: Handle
2924 instance flags element.
2925 (dump_subexp_body_standard) <TYPE_INSTANCE>: Likewise.
2926 * gdbtypes.h: Include "enum-flags.h".
2927 (type_instance_flags): New enum-flags type.
2928 (TYPE_CONST, TYPE_VOLATILE, TYPE_RESTRICT, TYPE_ATOMIC)
2929 (TYPE_CODE_SPACE, TYPE_DATA_SPACE): Return boolean.
2930 * parse.c (operator_length_standard) <TYPE_INSTANCE>: Adjust.
2931 (follow_type_instance_flags): New function.
2932 (operator_check_standard) <TYPE_INSTANCE>: Adjust.
2933 * parser-defs.h (follow_type_instance_flags): Declare.
2934 * valops.c (value_struct_elt_for_reference): const/volatile must
2935 match too.
2936
e68cb8e0
PA
29372017-09-04 Pedro Alves <palves@redhat.com>
2938
2939 * cp-namespace.c (cp_search_static_and_baseclasses): Handle
2940 function/method scopes; lookup the nested name as a function local
2941 static variable.
2942
858be34c
PA
29432017-09-04 Pedro Alves <palves@redhat.com>
2944
2945 (%type <voidval>): Add function_method.
2946 * c-exp.y (exp): New production for calls with no arguments.
2947 (function_method, function_method_void_or_typelist): New
2948 productions.
2949 (exp): New production for "method()::static_var".
2950 * eval.c (evaluate_subexp_standard): Handle OP_FUNC_STATIC_VAR.
2951 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
2952 Handle OP_FUNC_STATIC_VAR.
2953 * parse.c (operator_length_standard):
2954 Handle OP_FUNC_STATIC_VAR.
2955
dd5901a6
PA
29562017-09-04 Pedro Alves <palves@redhat.com>
2957
2958 * eval.c (evaluate_subexp_standard): Remove UNOP_MEMVAL_TLS
2959 handling.
2960 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
2961 Ditto.
2962 * parse.c (operator_length_standard, operator_check_standard):
2963 Ditto.
2964 * std-operator.def (UNOP_MEMVAL_TLS): Delete.
2965
46a4882b
PA
29662017-09-04 Pedro Alves <palves@redhat.com>
2967
2968 * ax-gdb.c: Include "typeprint.h".
2969 (gen_expr_for_cast): New function.
2970 (gen_expr) <OP_CAST, OP_CAST_TYPE>: Use it.
2971 <OP_VAR_VALUE, OP_MSYM_VAR_VALUE>: Error out if the variable's
2972 type is unknown.
2973 * dwarf2read.c (new_symbol_full): Fallback to int instead of
2974 nodebug_data_symbol.
2975 * eval.c: Include "typeprint.h".
2976 (evaluate_subexp_standard) <OP_VAR_VALUE, OP_VAR_MSYM_VALUE>:
2977 Error out if symbol has unknown type.
2978 <UNOP_CAST, UNOP_CAST_TYPE>: Common bits factored out to
2979 evaluate_subexp_for_cast.
2980 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof): Handle
2981 OP_VAR_MSYM_VALUE.
2982 (evaluate_subexp_for_cast): New function.
2983 * gdbtypes.c (init_nodebug_var_type): New function.
2984 (objfile_type): Use it to initialize types of variables with no
2985 debug info.
2986 * typeprint.c (error_unknown_type): New.
2987 * typeprint.h (error_unknown_type): New declaration.
2988 * compile/compile-c-types.c (convert_type_basic): Handle
2989 TYPE_CODE_ERROR; warn and fallback to int for variables with
2990 unknown type.
2991
fe13dfec
PA
29922017-09-04 Pedro Alves <palves@redhat.com>
2993
2994 * eval.c (evaluate_var_value): New function, factored out from ...
2995 (evaluate_subexp_standard): ... here.
2996
d008ee21
PA
29972017-09-04 Pedro Alves <palves@redhat.com>
2998
2999 * eval.c (evaluate_subexp_standard) <UNOP_COMPLEMENT, UNOP_ADDR>:
3000 Remove useless assignments to 'op'.
3001
827d0c51
PA
30022017-09-04 Pedro Alves <palves@redhat.com>
3003
3004 * eval.c (eval_skip_value): New function.
3005 (evaluate_subexp_standard): Use it.
3006
2c5a2be1
PA
30072017-09-04 Pedro Alves <palves@redhat.com>
3008
3009 * eval.c (evaluate_subexp_standard): <OP_FUNCALL>: Extract
3010 function name from symbol/minsym and pass it to
3011 error_call_unknown_return_type.
3012
74ea4be4
PA
30132017-09-04 Pedro Alves <palves@redhat.com>
3014
3015 * ada-lang.c (resolve_subexp): Handle OP_VAR_MSYM_VALUE.
3016 * ax-gdb.c (gen_msym_var_ref): New function.
3017 (gen_expr): Handle OP_VAR_MSYM_VALUE.
3018 * eval.c (evaluate_var_msym_value): New function.
3019 * eval.c (evaluate_subexp_standard): Handle OP_VAR_MSYM_VALUE.
3020 <OP_FUNCALL>: Extract function name from symbol/minsym and pass it
3021 to call_function_by_hand.
3022 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
3023 Handle OP_VAR_MSYM_VALUE.
3024 (union exp_element) <msymbol>: New field.
3025 * minsyms.h (struct type): Forward declare.
3026 (find_minsym_type_and_address): Declare.
3027 * parse.c (write_exp_elt_msym): New function.
3028 (write_exp_msymbol): Delete, refactored as ...
3029 (find_minsym_type_and_address): ... this new function.
3030 (write_exp_msymbol): Reimplement using OP_VAR_MSYM_VALUE.
3031 (operator_length_standard, operator_check_standard): Handle
3032 OP_VAR_MSYM_VALUE.
3033 * std-operator.def (OP_VAR_MSYM_VALUE): New.
3034
7022349d
PA
30352017-09-04 Pedro Alves <palves@redhat.com>
3036
3037 * ada-lang.c (ada_evaluate_subexp) <TYPE_CODE_FUNC>: Don't handle
3038 TYPE_GNU_IFUNC specially here. Throw error if return type is
3039 unknown.
3040 * ada-typeprint.c (print_func_type): Handle functions with unknown
3041 return type.
3042 * c-typeprint.c (c_type_print_base): Handle functions and methods
3043 with unknown return type.
3044 * compile/compile-c-symbols.c (convert_symbol_bmsym)
3045 <mst_text_gnu_ifunc>: Use nodebug_text_gnu_ifunc_symbol.
3046 * compile/compile-c-types.c: Include "objfiles.h".
3047 (convert_func): For functions with unknown return type, warn and
3048 default to int.
3049 * compile/compile-object-run.c (compile_object_run): Adjust call
3050 to call_function_by_hand_dummy.
3051 * elfread.c (elf_gnu_ifunc_resolve_addr): Adjust call to
3052 call_function_by_hand.
3053 * eval.c (evaluate_subexp_standard): Adjust calls to
3054 call_function_by_hand. Handle functions and methods with unknown
3055 return type. Pass expect_type to call_function_by_hand.
3056 * f-typeprint.c (f_type_print_base): Handle functions with unknown
3057 return type.
3058 * gcore.c (call_target_sbrk): Adjust call to
3059 call_function_by_hand.
3060 * gdbtypes.c (objfile_type): Leave nodebug text symbol with NULL
3061 return type instead of int. Make nodebug_text_gnu_ifunc_symbol be
3062 an integer address type instead of nodebug.
3063 * guile/scm-value.c (gdbscm_value_call): Adjust call to
3064 call_function_by_hand.
3065 * infcall.c (error_call_unknown_return_type): New function.
3066 (call_function_by_hand): New "default_return_type" parameter.
3067 Pass it down.
3068 (call_function_by_hand_dummy): New "default_return_type"
3069 parameter. Use it instead of defaulting to int. If there's no
3070 default and the return type is unknown, throw an error. If
3071 there's a default return type, and the called function has no
3072 debug info, then assume the function is prototyped.
3073 * infcall.h (call_function_by_hand, call_function_by_hand_dummy):
3074 New "default_return_type" parameter.
3075 (error_call_unknown_return_type): New declaration.
3076 * linux-fork.c (call_lseek): Cast return type of lseek.
3077 (inferior_call_waitpid, checkpoint_command): Adjust calls to
3078 call_function_by_hand.
3079 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap): Adjust
3080 calls to call_function_by_hand.
3081 * m2-typeprint.c (m2_procedure): Handle functions with unknown
3082 return type.
3083 * objc-lang.c (lookup_objc_class, lookup_child_selector)
3084 (value_nsstring, print_object_command): Adjust calls to
3085 call_function_by_hand.
3086 * p-typeprint.c (pascal_type_print_varspec_prefix): Handle
3087 functions with unknown return type.
3088 (pascal_type_print_func_varspec_suffix): New function.
3089 (pascal_type_print_varspec_suffix) <TYPE_CODE_FUNC,
3090 TYPE_CODE_METHOD>: Use it.
3091 * python/py-value.c (valpy_call): Adjust call to
3092 call_function_by_hand.
3093 * rust-lang.c (rust_evaluate_funcall): Adjust call to
3094 call_function_by_hand.
3095 * valarith.c (value_x_binop, value_x_unop): Adjust calls to
3096 call_function_by_hand.
3097 * valops.c (value_allocate_space_in_inferior): Adjust call to
3098 call_function_by_hand.
3099 * typeprint.c (type_print_unknown_return_type): New function.
3100 * typeprint.h (type_print_unknown_return_type): New declaration.
3101
54990598
PA
31022017-09-04 Pedro Alves <palves@redhat.com>
3103
3104 * gdbtypes.c (lookup_function_type_with_arguments): Mark function
3105 types with more than one parameter as prototyped.
3106
9a24775b
PA
31072017-09-04 Pedro Alves <palves@redhat.com>
3108
3109 * cli/cli-cmds.c (print_disassembly, disassemble_current_function)
3110 (disassemble_command): Use gdb_disassembly_flags instead of bare
3111 int.
3112 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn)
3113 (dump_insns, do_mixed_source_and_assembly_deprecated)
3114 (do_mixed_source_and_assembly, do_assembly_only, gdb_disassembly):
3115 Use gdb_disassembly_flags instead of bare int.
3116 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED, DISASSEMBLY_RAW_INSN)
3117 (DISASSEMBLY_OMIT_FNAME, DISASSEMBLY_FILENAME)
3118 (DISASSEMBLY_OMIT_PC, DISASSEMBLY_SOURCE)
3119 (DISASSEMBLY_SPECULATIVE): No longer macros. Instead they're...
3120 (enum gdb_disassembly_flag): ... values of this new enumeration.
3121 (gdb_disassembly_flags): Define.
3122 (gdb_disassembly)
3123 (gdb_pretty_print_disassembler::pretty_print_insn): Use it.
3124 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Use
3125 gdb_disassembly_flags instead of bare int.
3126 * record-btrace.c (btrace_insn_history)
3127 (record_btrace_insn_history, record_btrace_insn_history_range)
3128 (record_btrace_insn_history_from): Use gdb_disassembly_flags
3129 instead of bare int.
3130 * record.c (get_insn_history_modifiers, cmd_record_insn_history):
3131 Use gdb_disassembly_flags instead of bare int.
3132 * target-debug.h (target_debug_print_gdb_disassembly_flags):
3133 Define.
3134 * target-delegates.c: Regenerate.
3135 * target.c (target_insn_history, target_insn_history_from)
3136 (target_insn_history_range): Use gdb_disassembly_flags instead of
3137 bare int.
3138 * target.h: Include "disasm.h".
3139 (struct target_ops) <to_insn_history, to_insn_history_from,
3140 to_insn_history_range>: Use gdb_disassembly_flags instead of bare
3141 int.
3142 (target_insn_history, target_insn_history_from)
3143 (target_insn_history_range): Use gdb_disassembly_flags instead of
3144 bare int.
3145
80a65e9b
SM
31462017-09-04 Simon Marchi <simon.marchi@ericsson.com>
3147
3148 * cli/cli-script.c (build_command_line): For if/while commands,
3149 check whether args is empty.
3150
6b66338c
SM
31512017-09-04 Simon Marchi <simon.marchi@ericsson.com>
3152
3153 * cli/cli-script.h (enum misc_command_type): Move from defs.h.
3154 (enum command_control_type): Likewise.
3155 (struct command_line): Likewise.
3156 (free_command_lines): Likewise.
3157 (struct command_lines_deleter): Likewise.
3158 (command_line_up): Likewise.
3159 (read_command_lines): Likewise.
3160 (read_command_lines_1): Likewise.
3161 * defs.h (enum misc_command_type): Move to cli/cli-script.h.
3162 (enum command_control_type): Likewise.
3163 (struct command_line): Likewise.
3164 (free_command_lines): Likewise.
3165 (struct command_lines_deleter): Likewise.
3166 (command_line_up): Likewise.
3167 (read_command_lines): Likewise.
3168 (read_command_lines_1): Likewise.
3169 * breakpoint.h: Include cli/cli-script.h.
3170 * extension-priv.h: Likewise.
3171 * gdbcmd.h: Likewise.
3172
51abb421
PA
31732017-09-04 Pedro Alves <palves@redhat.com>
3174
3175 * ada-lang.c (is_known_support_routine): Move sal declaration to
3176 where it is initialized.
3177 * breakpoint.c (create_internal_breakpoint, init_catchpoint)
3178 (parse_breakpoint_sals, decode_static_tracepoint_spec)
3179 (clear_command, update_static_tracepoint): Remove init_sal
3180 references. Move declarations closer to initializations.
3181 * cli/cli-cmds.c (list_command): Move sal declarations closer to
3182 initializations.
3183 * elfread.c (elf_gnu_ifunc_resolver_stop): Remove init_sal
3184 references. Move sal declarations closer to initializations.
3185 * frame.c (find_frame_sal): Return a symtab_and_line via function
3186 return instead of output parameter. Remove init_sal references.
3187 * frame.h (find_frame_sal): Return a symtab_and_line via function
3188 return instead of output parameter.
3189 * guile/scm-frame.c (gdbscm_frame_sal): Adjust.
3190 * guile/scm-symtab.c (stscm_make_sal_smob): Use in-place new
3191 instead of memset.
3192 (gdbscm_find_pc_line): Remove init_sal reference.
3193 * infcall.c (call_function_by_hand_dummy): Remove init_sal
3194 references. Move declarations closer to initializations.
3195 * infcmd.c (set_step_frame): Update. Move declarations closer to
3196 initializations.
3197 (finish_backward): Remove init_sal references. Move declarations
3198 closer to initializations.
3199 * infrun.c (process_event_stop_test, handle_step_into_function)
3200 (insert_hp_step_resume_breakpoint_at_frame)
3201 (insert_step_resume_breakpoint_at_caller): Likewise.
3202 * linespec.c (create_sals_line_offset, decode_digits_ordinary)
3203 (symbol_to_sal): Likewise.
3204 * probe.c (parse_probes_in_pspace): Remove init_sal reference.
3205 * python/py-frame.c (frapy_find_sal): Move sal declaration closer
3206 to its initialization.
3207 * reverse.c (save_bookmark_command): Use new/delete. Remove
3208 init_sal references. Move declarations closer to initializations.
3209 * source.c (get_current_source_symtab_and_line): Remove brace
3210 initialization.
3211 (set_current_source_symtab_and_line): Now takes the sal by const
3212 reference. Remove brace initialization.
3213 (line_info): Remove init_sal reference.
3214 * source.h (set_current_source_symtab_and_line): Now takes a
3215 symtab_and_line via const reference.
3216 * stack.c (set_current_sal_from_frame): Adjust.
3217 (print_frame_info): Adjust.
3218 (get_last_displayed_sal): Return the sal via function return
3219 instead of via output parameter. Simplify.
3220 (frame_info): Adjust.
3221 * stack.h (get_last_displayed_sal): Return the sal via function
3222 return instead of via output parameter.
3223 * symtab.c (init_sal): Delete.
3224 (find_pc_sect_line): Remove init_sal references. Move
3225 declarations closer to initializations.
3226 (find_function_start_sal): Remove init_sal references. Move
3227 declarations closer to initializations.
3228 * symtab.h (struct symtab_and_line): In-class initialize all
3229 fields.
3230 * tracepoint.c (set_traceframe_context)
3231 (print_one_static_tracepoint_marker): Remove init_sal references.
3232 Move declarations closer to initializations.
3233 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Adjust.
3234 * tui/tui-stack.c (tui_show_frame_info): Adjust. Move
3235 declarations closer to initializations.
3236 * tui/tui-winsource.c (tui_update_source_window_as_is): Remove
3237 init_sal references. Adjust.
3238
6c5b2ebe
PA
32392017-09-04 Pedro Alves <palves@redhat.com>
3240
3241 * ax-gdb.c (agent_command_1): Use range-for.
3242 * break-catch-throw.c (re_set_exception_catchpoint): Update.
3243 * breakpoint.c: Include "common/array-view.h".
3244 (init_breakpoint_sal, create_breakpoint_sal): Change sals
3245 parameter from struct symtabs_and_lines to
3246 array_view<symtab_and_line>. Adjust. Use range-for. Update.
3247 (breakpoint_sals_to_pc): Change sals parameter from struct
3248 symtabs_and_lines to std::vector reference.
3249 (check_fast_tracepoint_sals): Change sals parameter from struct
3250 symtabs_and_lines to std::array_view. Use range-for.
3251 (decode_static_tracepoint_spec): Return a std::vector instead of
3252 symtabs_and_lines. Update.
3253 (create_breakpoint): Update.
3254 (break_range_command, until_break_command, clear_command): Update.
3255 (base_breakpoint_decode_location, bkpt_decode_location)
3256 (bkpt_probe_create_sals_from_location)
3257 (bkpt_probe_decode_location, tracepoint_decode_location)
3258 (tracepoint_probe_decode_location)
3259 (strace_marker_create_sals_from_location): Return a std::vector
3260 instead of symtabs_and_lines.
3261 (strace_marker_create_breakpoints_sal): Update.
3262 (strace_marker_decode_location): Return a std::vector instead of
3263 symtabs_and_lines. Update.
3264 (update_breakpoint_locations): Change struct symtabs_and_lines
3265 parameters to gdb::array_view. Adjust.
3266 (location_to_sals): Return a std::vector instead of
3267 symtabs_and_lines. Update.
3268 (breakpoint_re_set_default): Use std::vector instead of struct
3269 symtabs_and_lines.
3270 (decode_location_default): Return a std::vector instead of
3271 symtabs_and_lines. Update.
3272 * breakpoint.h: Include "common/array-view.h".
3273 (struct breakpoint_ops) <decode_location>: Now returns a
3274 std::vector instead of returning a symtabs_and_lines via output
3275 parameter.
3276 (update_breakpoint_locations): Change sals parameters to use
3277 gdb::array_view.
3278 * cli/cli-cmds.c (edit_command, list_command): Update to use
3279 std::vector and gdb::array_view.
3280 (ambiguous_line_spec): Adjust to use gdb::array_view and
3281 range-for.
3282 (compare_symtabs): Rename to ...
3283 (cmp_symtabs): ... this. Change parameters to symtab_and_line
3284 const reference and adjust.
3285 (filter_sals): Rewrite using std::vector and standard algorithms.
3286 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Simplify.
3287 (jump_command): Update to use std::vector.
3288 * linespec.c (struct linespec_state) <canonical_names>: Update
3289 comment.
3290 (add_sal_to_sals_basic): Delete.
3291 (add_sal_to_sals, filter_results, convert_results_to_lsals)
3292 (decode_line_2, create_sals_line_offset)
3293 (convert_address_location_to_sals, convert_linespec_to_sals)
3294 (convert_explicit_location_to_sals, parse_linespec)
3295 (event_location_to_sals, decode_line_full, decode_line_1)
3296 (decode_line_with_current_source)
3297 (decode_line_with_last_displayed, decode_objc)
3298 (decode_digits_list_mode, decode_digits_ordinary, minsym_found)
3299 (linespec_result::~linespec_result): Adjust to use std::vector
3300 instead of symtabs_and_lines.
3301 * linespec.h (linespec_sals::sals): Now a std::vector.
3302 (struct linespec_result): Use std::vector, bool, and in-class
3303 initialization.
3304 (decode_line_1, decode_line_with_current_source)
3305 (decode_line_with_last_displayed): Return std::vector.
3306 * macrocmd.c (info_macros_command): Use std::vector.
3307 * mi/mi-main.c (mi_cmd_trace_find): Use std::vector.
3308 * probe.c (parse_probes_in_pspace, parse_probes): Adjust to use
3309 std::vector.
3310 * probe.h (parse_probes): Return a std::vector.
3311 * python/python.c (gdbpy_decode_line): Use std::vector and
3312 gdb::array_view.
3313 * source.c (select_source_symtab, line_info): Use std::vector.
3314 * stack.c (func_command): Use std::vector.
3315 * symtab.h (struct symtabs_and_lines): Delete.
3316 * tracepoint.c (tfind_line_command, scope_info): Use std::vector.
3317
7c44b49c
PA
33182017-09-04 Pedro Alves <palves@redhat.com>
3319
3320 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
3321 unittests/array-view-selftests.c.
3322 (SUBDIR_UNITTESTS_OBS): Add array-view-selftests.o.
3323 * common/array-view.h: New file.
3324 * unittests/array-view-selftests.c: New file.
3325
e439fa14
PA
33262017-09-04 Pedro Alves <palves@redhat.com>
3327
3328 * cli/cli-cmds.c (edit_command): Pass message to
3329 ambiguous_line_spec.
3330 (list_command): Pass message to ambiguous_line_spec. Say
3331 "first"/"last" instead of "start" and "end" to be consistent with
3332 the manual.
3333 (ambiguous_line_spec): Add 'format' and vararg parameters. Use
3334 them to print formatted message.
3335
7525b645
PA
33362017-09-04 Pedro Alves <palves@redhat.com>
3337
3338 * btrace.c (ftrace_add_pt): Pass btrace_insn to
3339 ftrace_update_insns by reference instead of pointer.
3340
badc0020
YQ
33412017-09-04 Yao Qi <yao.qi@linaro.org>
3342
3343 * i386-go32-tdep.c: Include x86-xstate.h.
3344 (i386_go32_init_abi): Call i386_target_description.
3345 * i386-tdep.c (i386_target_description): Return tdesc_i386_mmx
3346 if xcr0 is X86_XSTATE_X87_MASK.
3347 * i386-tdep.h (tdesc_i386): Remove the declaration.
3348 (tdesc_i386_mmx): Likewise.
3349
d78bdb54
YQ
33502017-09-04 Yao Qi <yao.qi@linaro.org>
3351
3352 * i386-fbsd-tdep.c (i386fbsd_core_read_xcr0): Return
3353 X86_XSTATE_SSE_MASK instead of 0.
3354
ca1fa5ee
YQ
33552017-09-04 Yao Qi <yao.qi@linaro.org>
3356
3357 * amd64-fbsd-nat.c (amd64fbsd_read_description): Call
3358 i386_target_description.
3359 * i386-fbsd-nat.c (i386fbsd_read_description): Call
3360 i386_target_description.
3361 * i386-tdep.c (i386_gdbarch_init): Likewise.
3362
2434b019
YQ
33632017-09-04 Yao Qi <yao.qi@linaro.org>
3364
3365 * amd64-darwin-tdep.c: Include "x86-xstate.h".
3366 (x86_darwin_init_abi_64): Call amd64_target_description.
3367 * amd64-dicos-tdep.c: Likewise.
3368 * amd64-fbsd-nat.c: Likewise.
3369 * amd64-fbsd-tdep.c: Likewise.
3370 * amd64-nbsd-tdep.c: Likewise.
3371 * amd64-obsd-tdep.c: Likewise.
3372 * amd64-sol2-tdep.c: Likewise.
3373 * amd64-windows-tdep.c: Likewise.
3374 * amd64-tdep.h (tdesc_amd64): Remove the declaration.
3375
0860c437
SM
33762017-09-04 Simon Marchi <simon.marchi@ericsson.com>
3377
3378 * btrace.h (btrace_insn_s, DEF_VEC_O (btrace_insn_s)): Remove.
3379 (btrace_function) <insn>: Change type to use std::vector.
3380 * btrace.c (ftrace_debug, ftrace_call_num_insn,
3381 ftrace_find_call, ftrace_new_gap, ftrace_update_function,
3382 ftrace_update_insns, ftrace_compute_global_level_offset,
3383 btrace_stitch_bts, btrace_clear, btrace_insn_get,
3384 btrace_insn_end, btrace_insn_next, btrace_insn_prev): Adjust to
3385 change to std::vector.
3386 (ftrace_update_insns): Adjust to change to std::vector, change
3387 type of INSN parameter.
3388 (btrace_compute_ftrace_bts): Adjust call to ftrace_update_insns.
3389 * record-btrace.c (btrace_call_history_insn_range,
3390 btrace_compute_src_line_range,
3391 record_btrace_frame_prev_register): Adjust to change to
3392 std::vector.
3393 * python/py-record-btrace.c (recpy_bt_func_instructions): Adjust
3394 to change to std::vector.
3395
0638b7f9
TT
33962017-09-03 Tom Tromey <tom@tromey.com>
3397
3398 * corefile.c (reopen_exec_file): Use std::string.
3399
8f84fb0e
TT
34002017-09-03 Tom Tromey <tom@tromey.com>
3401
3402 * compile/compile.c (compile_register_name_mangled): Return
3403 std::string.
3404 * compile/compile-loc2c.c (pushf_register_address): Update.
3405 (pushf_register): Update.
3406 * compile/compile-c-types.c (convert_array): Update.
3407 * compile/compile-c-symbols.c (generate_vla_size): Update.
3408 (error_symbol_once): Use a gdb::unique_xmalloc_ptr.
3409 (symbol_substitution_name): Return a gdb::unique_xmalloc_ptr.
3410 (convert_one_symbol): Update.
3411 (generate_c_for_for_one_variable): Update.
3412 * compile/compile-c-support.c (c_get_range_decl_name): Return a
3413 std::string.
3414 (generate_register_struct): Update.
3415 * compile/compile-internal.h (c_get_range_decl_name): Return a
3416 std::string.
3417 (compile_register_name_mangled): Return std::string.
3418
18e9961f
TT
34192017-09-03 Tom Tromey <tom@tromey.com>
3420
3421 * utils.c (perror_string): Return a std::string.
3422 (throw_perror_with_name, perror_warning_with_name): Update.
3423
45343786
TT
34242017-09-03 Tom Tromey <tom@tromey.com>
3425
3426 * demangle.c (demangle_command): Use std::string,
3427 unique_xmalloc_ptr.
3428
b57af503
TT
34292017-09-03 Tom Tromey <tom@tromey.com>
3430
3431 * cli/cli-setshow.c (do_set_command): Use std::string.
3432
6eecf35f
TT
34332017-09-03 Tom Tromey <tom@tromey.com>
3434
3435 * cli/cli-cmds.c (cd_command): Use gdb::unique_xmalloc_ptr.
3436
56496dd4
TT
34372017-09-03 Tom Tromey <tom@tromey.com>
3438
3439 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use std::string.
3440
e91a1fa7
TT
34412017-09-03 Tom Tromey <tom@tromey.com>
3442
3443 * mi/mi-cmd-env.c (env_execute_cli_command): Use
3444 gdb::unique_xmalloc_ptr.
3445
7ffd83d7
TT
34462017-09-03 Tom Tromey <tom@tromey.com>
3447
3448 * thread.c (print_thread_info_1): Use string_printf.
3449 (thread_apply_command, thread_apply_all_command): Use
3450 std::string.
3451
1ccbe998
TT
34522017-09-03 Tom Tromey <tom@tromey.com>
3453
3454 * valprint.c (val_print_string): Update.
3455 * gdbcore.h (memory_error_message): Return std::string.
3456 * corefile.c (memory_error_message): Return std::string.
3457 (memory_error): Update.
3458 * breakpoint.c (insert_bp_location): Update.
3459
23fdd69e
SM
34602017-09-03 Simon Marchi <simon.marchi@ericsson.com>
3461
3462 * target/waitstatus.h (target_waitstatus_to_string): Change
3463 return type to std::string.
3464 * target/waitstatus.c (target_waitstatus_to_string): Return
3465 std::string.
3466 * target.h (target_waitstatus_to_string): Remove declaration.
3467 * infrun.c (resume, clear_proceed_status_thread,
3468 print_target_wait_results, do_target_wait, save_waitstatus,
3469 stop_all_threads): Adjust.
3470 * record-btrace.c (record_btrace_wait): Adjust.
3471 * target-debug.h
3472 (target_debug_print_struct_target_waitstatus_p): Adjust.
3473
5c811d30
JK
34742017-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3475
3476 PR gdb/22046
3477 * nat/linux-procfs.c (parse_proc_status_state): Fix PROC_STATE_STOPPED
3478 detection.
3479
0a2dde4a
SDJ
34802017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
3481
3482 * NEWS (Changes since GDB 8.0): Add entry mentioning new support
3483 for setting/unsetting environment variables on the remote target.
3484 (New remote packets): Add entries for QEnvironmentHexEncoded,
3485 QEnvironmentUnset and QEnvironmentReset.
3486 * common/environ.c (gdb_environ::operator=): Extend method to
3487 handle m_user_set_env_list and m_user_unset_env_list.
3488 (gdb_environ::clear): Likewise.
3489 (match_var_in_string): Change type of first parameter from 'char
3490 *' to 'const char *'.
3491 (gdb_environ::set): Extend method to handle
3492 m_user_set_env_list and m_user_unset_env_list.
3493 (gdb_environ::unset): Likewise.
3494 (gdb_environ::clear_user_set_env): New method.
3495 (gdb_environ::user_set_envp): Likewise.
3496 (gdb_environ::user_unset_envp): Likewise.
3497 * common/environ.h (gdb_environ): Handle m_user_set_env_list and
3498 m_user_unset_env_list on move constructor/assignment.
3499 (unset): Add new default parameter 'update_unset_list = true'.
3500 (clear_user_set_env): New method.
3501 (user_set_envp): Likewise.
3502 (user_unset_envp): Likewise.
3503 (m_user_set_env_list): New std::set.
3504 (m_user_unset_env_list): Likewise.
3505 * common/rsp-low.c (hex2str): New function.
3506 (bin2hex): New overload for bin2hex function.
3507 * common/rsp-low.c (hex2str): New prototype.
3508 (str2hex): New overload prototype.
3509 * remote.c: Include "environ.h". Add QEnvironmentHexEncoded,
3510 QEnvironmentUnset and QEnvironmentReset.
3511 (remote_protocol_features): Add QEnvironmentHexEncoded,
3512 QEnvironmentUnset and QEnvironmentReset packets.
3513 (send_environment_packet): New function.
3514 (extended_remote_environment_support): Likewise.
3515 (extended_remote_create_inferior): Call
3516 extended_remote_environment_support.
3517 (_initialize_remote): Add QEnvironmentHexEncoded,
3518 QEnvironmentUnset and QEnvironmentReset packet configs.
3519 * unittests/environ-selftests.c (gdb_selftest_env_var):
3520 New variable.
3521 (test_vector_initialization): New function.
3522 (test_init_from_host_environ): Likewise.
3523 (test_reinit_from_host_environ): Likewise.
3524 (test_set_A_unset_B_unset_A_cannot_find_A_can_find_B):
3525 Likewise.
3526 (test_unset_set_empty_vector): Likewise.
3527 (test_vector_clear): Likewise.
3528 (test_std_move): Likewise.
3529 (test_move_constructor):
3530 (test_self_move): Likewise.
3531 (test_set_unset_reset): Likewise.
3532 (run_tests): Rewrite in terms of the functions above.
3533
654670a4
WP
35342017-08-31 Weimin Pan <weimin.pan@oracle.com>
3535
3536 * sparc64-tdep.c (adi_stat_t): Fix comment formatting.
3537 (adi_available): Use a temp variable of type CORE_ADDR as argument
3538 3 when calling target_auxv_search.
3539 (adi_normalize_address): Use masks and xor operators to calculate
3540 normalized address.
3541 (adi_read_versions, adi_write_versions, adi_print_versions)
3542 (do_examine, do_assign): Use paddress.
3543
7755ddb7
JB
35442017-08-29 John Baldwin <jhb@FreeBSD.org>
3545
3546 * mips-fbsd-nat.c (getfpregs_supplies): Return true for FIR.
3547 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Split supply of FSR
3548 out of loop and add supply of FIR.
3549 (mips_fbsd_collect_fpregs): Split collect of FSR out of loop and
3550 add collect of FIR.
3551
fd437cbc
SM
35522017-08-28 Simon Marchi <simon.marchi@ericsson.com>
3553
3804a343 3554 PR gdb/21827
fd437cbc
SM
3555 * cli/cli-script.c (define_command): Don't convert command name
3556 to lower case.
3557
988f6b3d
JB
35582017-08-25 Joel Brobecker <brobecker@adacore.com>
3559
3560 * ada-lang.c (ada_lookup_struct_elt_type): Remove parameter "dispp".
3561 Update all callers accordingly. Remove all code blocks handling
3562 the case where DISPP is not NULL.
3563
663c44ac
JK
35642017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3565
3566 PR symtab/22003
3567 * dwarf2read.c (dwarf2_const_value_attr, dump_die_shallow)
3568 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
3569 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_implicit_const.
3570
f1902523
JK
35712017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3572
3573 * dwarf2read.c (build_type_psymtabs_reader): New prototype.
3574 (process_psymtab_comp_unit): Accept IS_DEBUG_TYPES.
3575 (read_comp_units_from_section): New parameter abbrev_section, use
3576 read_and_check_comp_unit_head, allocate signatured_type if needed.
3577 (create_all_comp_units): Update read_comp_units_from_section caller.
3578
87215ad1
SDJ
35792017-08-23 Pedro Alves <palves@redhat.com>
3580
3581 PR remote/21852
3582 * remote.c (add_current_inferior_and_thread): Set inferior_ptid
3583 to null_ptid and switch to thread without reading the registers
3584 after adding the inferior.
3585
6e41ddec
JK
35862017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
3587
3588 * NEWS (Changes since GDB 8.0): Add set compile-gcc and show
3589 compile-gcc.
3590 * compile/compile.c (compile_gcc, show_compile_gcc): New.
3591 (compile_to_object): Implement compile_gcc.
3592 (_initialize_compile): Install "set compile-gcc". Initialize
3593 compile_gcc.
3594
e68c32d5
JK
35952017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
3596
3597 * compile/compile.c (compile_to_object): Conditionally call
3598 set_verbose. Conditionally call compile or compile_v0.
3599
58afddc6
WP
36002017-08-07 Weimin Pan <weimin.pan@oracle.com>
3601
3602 * sparc64-tdep.h: (adi_normalize_address): New export.
3603 * sparc-nat.h: (open_adi_tag_fd): New export.
3604 * sparc64-linux-nat.c: (open_adi_tag_fd): New function.
3605 * sparc64-linux-tdep.c:
3606 (SEGV_ACCADI, SEGV_ADIDERR, SEGV_ADIPERR) New defines.
3607 (sparc64_linux_handle_segmentation_fault): New function.
3608 (sparc64_linux_init_abi): Register
3609 sparc64_linux_handle_segmentation_fault
3610 * sparc64-tdep.c: Include cli-utils.h,gdbcmd.h,auxv.h.
3611 (sparc64_addr_bits_remove): New function.
3612 (sparc64_init_abi): Register sparc64_addr_bits_remove.
3613 (MAX_PROC_NAME_SIZE): New macro.
3614 (AT_ADI_BLKSZ, AT_ADI_NBITS, AT_ADI_UEONADI) New defines.
3615 (sparc64adilist): New variable.
3616 (adi_proc_list): New variable.
3617 (find_adi_info): New function.
3618 (add_adi_info): New function.
3619 (get_adi_info_proc): New function.
3620 (get_adi_info): New function.
3621 (info_adi_command): New function.
3622 (read_maps_entry): New function.
3623 (adi_available): New function.
3624 (adi_normalize_address): New function.
3625 (adi_align_address): New function.
3626 (adi_convert_byte_count): New function.
3627 (adi_tag_fd): New function.
3628 (adi_is_addr_mapped): New function.
3629 (adi_read_versions): New function.
3630 (adi_write_versions): New function.
3631 (adi_print_versions): New function.
3632 (do_examine): New function.
3633 (do_assign): New function.
3634 (adi_examine_command): New function.
3635 (adi_assign_command): New function.
3636 (_initialize_sparc64_adi_tdep): New function.
3637
11db9430
SM
36382017-08-22 Simon Marchi <simon.marchi@ericsson.com>
3639
3640 * breakpoint.c (breakpoints_info): Rename to ...
3641 (info_breakpoints_command): ... this.
3642 (watchpoints_info): Rename to ...
3643 (info_watchpoints_command): ... this.
3644 (tracepoints_info): Rename to ...
3645 (info_tracepoints_command): ... this.
3646 (_initialize_breakpoint): Adjust.
3647 * dcache.c (dcache_info): Rename to ...
3648 (info_display_command): ... this.
3649 (_initialize_dcache): Adjust.
3650 * frame.h (args_info): Rename to ...
3651 (info_args_command): ... this.
3652 (locals_info): Rename to ...
3653 (info_locals_command): ... this.
3654 * infcmd.c (nofp_registers_info): Rename to ...
3655 (info_registers_command): ... this.
3656 (float_info): Rename to ...
3657 (info_float_command): ... this.
3658 (program_info): Rename to ...
3659 (info_program_command): ... this.
3660 (all_registers_info): Rename to ...
3661 (info_all_registers_command): ... this.
3662 (vector_info): Rename to ...
3663 (info_vector_command): ... this.
3664 (float_info): Rename to ...
3665 (info_float_command): ... this.
3666 (_initialize_infcmd): Adjust.
3667 * inferior.h (term_info): Rename to ...
3668 (info_terminal_command): ... this.
3669 * inflow.c (term_info): Rename to ...
3670 (info_terminal_command): ... this.
3671 (_initialize_inflow): Adjust.
3672 * infrun.c (signals_info): Rename to ...
3673 (info_signals_command): ... this.
3674 (_initialize_infrun): Adjust.
3675 * objc-lang.c (classes_info): Rename to ...
3676 (info_classes_command): ... this.
3677 (selectors_info): Rename to ...
3678 (info_selectors_command): ... this.
3679 (_initialize_objc_language): Adjust.
3680 * printcmd.c (sym_info): Rename to ...
3681 (info_symbol_command): ... this.
3682 (address_info): Rename to ...
3683 (info_address_command): ... this.
3684 (display_info): Rename to ...
3685 (info_display_command): ... this.
3686 (_initialize_printcmd): Adjust.
3687 * reverse.c (bookmarks_info): Rename to ...
3688 (info_breakpoints_command): ... this.
3689 (_initialize_reverse): Adjust.
3690 * ser-go32.c (dos_info): Rename to ...
3691 (info_serial_command): ... this.
3692 (_initialize_ser_dos): Adjust.
3693 * skip.c (skip_info): Rename to ...
3694 (info_skip_command): ... this.
3695 (_initialize_step_skip): Adjust.
3696 * source.c (line_info): Rename to ...
3697 (info_line_command): ... this.
3698 (source_info): Rename to ...
3699 (info_source_command)
3700 * stack.c (frame_info): Rename to ...
3701 (info_frame_command): ... this.
3702 (locals_info): Rename to ...
3703 (info_locals_command): ... this.
3704 (args_info): Rename to ...
3705 (info_args_command): ... this.
3706 (_initialize_stack): Adjust.
3707 * symtab.c (sources_info): Rename to ...
3708 (info_sources_command): ... this.
3709 (variables_info): Rename to ...
3710 (info_variables_command): ... this.
3711 (functions_info): Rename to ...
3712 (info_functions_command): ... this.
3713 (types_info): Rename to ...
3714 (info_types_command): ... this.
3715 (_initialize_symtab): Adjust.
3716 * target.c (target_info): Rename to ...
3717 (info_target_command): ... this.
3718 (initialize_targets): Adjust.
3719 * tracepoint.c (tvariables_info): Rename to ...
3720 (info_tvariables_command): ... this.
3721 (scope_info): Rename to ...
3722 (info_scope_command): ... this.
3723 (trace_dump_actions): Adjust.
3724 (_initialize_tracepoint): Adjust.
3725
b270e6f9
TT
37262017-08-22 Tom Tromey <tom@tromey.com>
3727
3728 * breakpoint.h (install_breakpoint): Update.
3729 * breakpoint.c (add_solib_catchpoint): Update.
3730 (install_breakpoint): Change argument to a std::unique_ptr.
3731 (create_fork_vfork_event_catchpoint): Use std::unique_ptr.
3732 (create_breakpoint_sal, create_breakpoint): Update.
3733 (watch_command_1, catch_exec_command_1)
3734 (strace_marker_create_breakpoints_sal): Use std::unique_ptr.
3735 (add_to_breakpoint_chain): Change argument to a std::unique_ptr.
3736 Return the breakpoint.
3737 (set_raw_breakpoint_without_location, set_raw_breakpoint)
3738 (new_single_step_breakpoint): Update.
3739 * break-catch-throw.c (handle_gnu_v3_exceptions): Use
3740 std::unique_ptr.
3741 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
3742 std::unique_ptr.
3743 * break-catch-sig.c (create_signal_catchpoint): Use
3744 std::unique_ptr.
3745 * ada-lang.c (create_ada_exception_catchpoint): Use
3746 std::unique_ptr.
3747
36bd8eaa
TT
37482017-08-22 Tom Tromey <tom@tromey.com>
3749
3750 * breakpoint.c (add_solib_catchpoint): Use std::unique_ptr.
3751
56f37645
TT
37522017-08-22 Tom Tromey <tom@tromey.com>
3753
3754 * psymtab.c (psymtab_search_name): Return a unique_xmalloc_ptr.
3755 (lookup_partial_symbol): Update.
3756
0b581c69
TT
37572017-08-22 Tom Tromey <tom@tromey.com>
3758
3759 * source.h (rewrite_source_path): Return a unique_xmalloc_ptr.
3760 * source.c (rewrite_source_path): Return a unique_xmalloc_ptr.
3761 (find_and_open_source, symtab_to_fullname): Update.
3762 * psymtab.c (psymtab_to_fullname): Update.
3763
14278e1f
TT
37642017-08-22 Tom Tromey <tom@tromey.com>
3765
3766 * exec.c (exec_file_attach): Update.
3767 * linux-thread-db.c (try_thread_db_load): Update.
3768 * guile/scm-safe-call.c (gdbscm_safe_source_script): Update.
3769 * utils.c (gdb_realpath): Change return type.
3770 (gdb_realpath_keepfile): Update.
3771 (gdb_realpath_check_trailer, gdb_realpath_tests): New functions.
3772 (_initialize_utils): Register the new self test.
3773 * source.c (openp): Update.
3774 (find_and_open_source): Update.
3775 * nto-tdep.c (nto_find_and_open_solib): Update.
3776 * main.c (set_gdb_data_directory): Update.
3777 (captured_main_1): Update.
3778 * dwarf2read.c (dwarf2_get_dwz_file): Update
3779 (dw2_map_symbol_filenames): Update.
3780 * auto-load.c (auto_load_safe_path_vec_update): Update.
3781 (filename_is_in_auto_load_safe_path_vec): Change type of
3782 "filename_realp".
3783 (auto_load_objfile_script): Update.
3784 (file_is_auto_load_safe): Update. Use std::string.
3785 * utils.h (gdb_realpath): Return a gdb::unique_xmalloc_ptr.
3786
4971c9a7
TT
37872017-08-22 Tom Tromey <tom@tromey.com>
3788
3789 * utils.c (gdb_realpath_keepfile): Return a
3790 gdb::unique_xmalloc_ptr.
3791 * exec.c (exec_file_attach): Update.
3792 * utils.h (gdb_realpath_keepfile): Return a
3793 gdb::unique_xmalloc_ptr.
3794
e3e41d58
TT
37952017-08-22 Tom Tromey <tom@tromey.com>
3796
3797 * compile/compile.c (compile_file_command): Use
3798 gdb::unique_xmalloc_ptr, std::string.
3799 * utils.c (gdb_abspath): Change return type.
3800 * source.c (openp): Update.
3801 * objfiles.c (allocate_objfile): Update.
3802 * main.c (set_gdb_data_directory): Update.
3803 * utils.h (gdb_abspath): Return a gdb::unique_xmalloc_ptr.
3804
0d999a6e
ZZ
38052017-08-22 Zhouyi Zhou <zhouzhouyi@gmail.com>
3806
3807 * cli-cmds.c (list_commands): List actual code around more than
3808 one location.
3809
329d5e7e
JB
38102017-08-21 John Baldwin <jhb@FreeBSD.org>
3811
3812 * fbsd-nat.c (fbsd_add_threads): Use array type for `lwps'.
3813
bf223d3e
PA
38142017-08-21 Pedro Alves <palves@redhat.com>
3815
3816 PR gdb/19487
3817 * c-exp.y (variable production): Handle function aliases.
3818 * minsyms.c (msymbol_is_text): New function.
3819 * minsyms.h (msymbol_is_text): Declare.
3820 * symtab.c (find_function_alias_target): New function.
3821 * symtab.h (find_function_alias_target): Declare.
3822
c973d0aa
PA
38232017-08-21 Pedro Alves <palves@redhat.com>
3824
3825 * eval.c (evaluate_subexp_standard) <OP_TYPE>: Don't dig past
3826 typedefs.
3827 * typeprint.c (whatis_exp): If handling "whatis", and expression
3828 is OP_TYPE, strip one typedef level. Otherwise don't strip
3829 typedefs here.
3830 * valops.c (value_cast): Save "to" type before resolving
3831 stubs/typedefs. Use that type as resulting value's type.
3832
2989a365
TT
38332017-08-18 Tom Tromey <tom@tromey.com>
3834 Pedro Alves <palves@redhat.com>
3835
3836 * spu-multiarch.c (parse_spufs_run): Use scoped_restore.
3837 * sol-thread.c (sol_thread_resume, sol_thread_wait)
3838 (sol_thread_xfer_partial, rw_common): Use scoped_restore.
3839 * procfs.c (procfs_do_thread_registers): Use scoped_restore.
3840 * proc-service.c (ps_xfer_memory): Use scoped_restore.
3841 * linux-tdep.c (linux_corefile_thread): Remove a cleanup.
3842 (linux_get_siginfo_data): Add "thread" argument. Use
3843 scoped_restore.
3844 * linux-nat.c (linux_child_follow_fork)
3845 (check_stopped_by_watchpoint): Use scoped_restore.
3846 * infrun.c (displaced_step_prepare_throw, write_memory_ptid)
3847 (THREAD_STOPPED_BY, handle_signal_stop): Use scoped_restore.
3848 (restore_inferior_ptid, save_inferior_ptid): Remove.
3849 * btrace.c (btrace_fetch): Use scoped_restore.
3850 * bsd-uthread.c (bsd_uthread_fetch_registers)
3851 (bsd_uthread_store_registers): Use scoped_restore.
3852 * breakpoint.c (reattach_breakpoints, detach_breakpoints): Use
3853 scoped_restore.
3854 * aix-thread.c (aix_thread_resume, aix_thread_wait)
3855 (aix_thread_xfer_partial): Use scoped_restore.
3856 * inferior.h (save_inferior_ptid): Remove.
3857
e60eb288
YQ
38582017-08-18 Yao Qi <yao.qi@linaro.org>
3859
3860 PR tdep/21818
3861 * arm-tdep.c (gdb_print_insn_arm): Mark
3862 USER_SPECIFIED_MACHINE_TYPE if exec_bfd isn't NULL.
3863
6d580b63
YQ
38642017-08-18 Yao Qi <yao.qi@linaro.org>
3865
3866 * NEWS: Mention GDBserver's new option "--selftest".
3867 * Makefile.in (SFILES): Remove selftest.c, add common/selftest.c.
3868 * selftest.c: Move it to common/selftest.c.
3869 * selftest.h: Move it to common/selftest.h.
3870 * selftest-arch.c (reset): New function.
3871 (tests_with_arch): Call reset.
3872
86dcbf50
YQ
38732017-08-18 Yao Qi <yao.qi@linaro.org>
3874
3875 * selftest.c (run_tests): Don't call QUIT. Call debug_printf
3876 instead of exception_fprintf and printf_filtered.
3877
7649770c
YQ
38782017-08-18 Yao Qi <yao.qi@linaro.org>
3879
3880 * selftest.c (register_self_test): Rename it to
3881 selftests::register_test.
3882 (run_self_tests): selftest::run_tests.
3883 * selftest.h: Update declarations.
3884 * selftest-arch.c (register_self_test_foreach_arch): Rename it to
3885 selftests::register_test_foreach_arch.
3886 * selftest-arch.h: Update declaration.
3887 * aarch64-tdep.c: Update.
3888 * arm-tdep.c: Likewise.
3889 * disasm-selftests.c: Likewise.
3890 * dwarf2loc.c: Likewise.
3891 * dwarf2-frame.c: Likewise.
3892 * findvar.c: Likewise.
3893 * gdbarch-selftests.c: Likewise.
3894 * maint.c (maintenance_selftest): Likewise.
3895 * regcache.c: Likewise.
3896 * rust-exp.y: Likewise.
3897 * selftest-arch.c: Likewise.
3898 * unittests/environ-selftests.c: Likewise.
3899 * unittests/function-view-selftests.c: Likewise.
3900 * unittests/offset-type-selftests.c: Likewise.
3901 * unittests/optional-selftests.c: Likewise.
3902 * unittests/scoped_restore-selftests.c: Likewise.
3903 * utils-selftests.c: Likewise.
3904
b0cba12e
PA
39052017-08-17 Pedro Alves <palves@redhat.com>
3906
3907 * cli/cli-cmds.c (source_command): Delete 'old_source_verbose'
3908 local.
3909
4c8aa72d
PA
39102017-08-17 Pedro Alves <palves@redhat.com>
3911
3912 * dwarf2read.c (struct dwarf2_cu) <line_header_die_owner>: New
3913 field.
3914 (reset_die_in_process): Delete, replaced by ...
3915 (process_die_scope): ... this new class. Make it responsible for
3916 freeing cu->line_header too.
3917 (process_die): Use process_die_scope.
3918 (handle_DW_AT_stmt_list): Record the line header's owner CU/DIE in
3919 cu->line_header_die_owner. Don't release the line header if it's
3920 owned by the CU.
3921 (setup_type_unit_groups): Make the CU/DIE own the line header.
3922 Don't release the line header here.
3923
ba713918
AL
39242017-08-17 Alex Lindsay <alexlindsay239@gmail.com> (tiny change)
3925
3926 * elfread.c (elf_read_minimal_symbols): xfree synthsyms.
3927
44d0fb3a
RK
39282017-08-17 Ruslan Kabatsayev <b7.10110111@gmail.com>
3929
3930 * NEWS: Mention new shortcuts for nexti and stepi in TUI
3931 Single-Key mode
3932
a5afdb16
RK
39332017-08-16 Ruslan Kabatsayev <b7.10110111@gmail.com>
3934
3935 * tui/tui.c (tui_commands): Add "nexti" and "stepi" to the Single-Key
3936 mode command list.
3937
47613aeb
SH
39382017-08-15 Stafford Horne <shorne@gmail.com>
3939
3940 * MAINTAINERS (Write After Approval): Add Stafford Horne.
3941
9c3cc999
SH
39422017-08-15 Stafford Horne <shorne@gmail.com>
3943
3944 * xtensa-tdep.c (xtensa_init_reggroups): Use xstrdup for cpname.
3945
206726fb
SDJ
39462017-08-15 Sergio Durigan Junior <sergiodj@redhat.com>
3947
3948 PR gdb/21954
3949 * infcmd.c (unset_environment_command): Use the 'clear' method on
3950 the environment instead of resetting it.
3951
0335ac6d
JB
39522017-08-15 John Baldwin <jhb@FreeBSD.org>
3953
3954 * fbsd-nat.c (fbsd_convert_siginfo): Fix compile on big-endian
3955 platforms.
3956
d3abe1c8
TT
39572017-08-14 Tom Tromey <tom@tromey.com>
3958
3959 * valprint.c (print_octal_chars): Use HOST_CHAR_BIT.
3960 (print_binary_chars): Likewise.
3961 (BITS_IN_BYTES): Remove.
3962
d6382fff
TT
39632017-08-14 Tom Tromey <tom@tromey.com>
3964
3965 PR gdb/21675
3966 * valprint.c (LOW_ZERO): Change value to 034.
3967 (print_octal_chars): Add static_asserts for octal constants.
3968 * printcmd.c (print_scalar_formatted): Add 'd' case.
3969
f978cb06
TT
39702017-08-11 Tom Tromey <tom@tromey.com>
3971
3972 * symfile.c (add_symbol_file_command): Use std::vector.
3973
2f5404b3
TT
39742017-08-14 Tom Tromey <tom@tromey.com>
3975
3976 * break-catch-throw.c (handle_gnu_v3_exceptions): Use std::move.
3977 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
3978 std::move.
3979 * break-catch-sig.c (create_signal_catchpoint): Use std::move.
3980
de7985c3
PA
39812017-08-11 Pedro Alves <palves@redhat.com>
3982
3983 * infrun.c (process_event_stop_test): Adjust
3984 function_name_is_marked_for_skip call.
3985 * skip.c: Include <list>.
3986 (skiplist_entry): Make it a class with private fields, and
3987 getters/setters.
3988 (skiplist_entry_chain): Delete.
3989 (skiplist_entries): New.
3990 (skiplist_entry_count): Delete.
3991 (highest_skiplist_entry_num): New.
3992 (ALL_SKIPLIST_ENTRIES, ALL_SKIPLIST_ENTRIES_SAFE): Delete.
3993 (add_skiplist_entry): Delete.
3994 (skiplist_entry::skiplist_entry): New.
3995 (skiplist_entry::add_entry): New.
3996 (skip_file_command, skip_function): Adjust.
3997 (compile_skip_regexp): Delete.
3998 (skip_command): Don't compile regexp here. Adjust to use
3999 skiplist_entry::add_entry.
4000 (skip_info): Adjust to use range-for and getters.
4001 (skip_enable_command, skip_disable_command): Adjust to use
4002 range-for and setters.
4003 (skip_delete_command): Adjust to use std::list.
4004 (add_skiplist_entry): Delete.
4005 (skip_file_p): Delete, refactored as ...
4006 (skiplist_entry::do_skip_file_p): ... this new method.
4007 (skip_gfile_p): Delete, refactored as ...
4008 (skiplist_entry::do_gskip_file_p): ... this new method.
4009 (skip_function_p, skip_rfunction_p): Delete, refactored as ...
4010 (skiplist_entry::skip_function_p): ... this new method.
4011 (function_name_is_marked_for_skip): Now returns bool, and takes
4012 the function sal by const reference. Adjust to use range-for and
4013 skiplist_entry methods.
4014 (_initialize_step_skip): Remove references to
4015 skiplist_entry_chain, skiplist_entry_count.
4016 * skip.h (function_name_is_marked_for_skip): Now returns bool, and
4017 takes the function sal by const reference.
4018
be7d3cd5
YQ
40192017-08-11 Yao Qi <yao.qi@linaro.org>
4020
4021 * dwarf2-frame.c (clear_pointer_cleanup): Remove.
4022 (dwarf2_frame_cache): Remove reset_cache_cleanup.
4023 (dwarf2_frame_cache):
4024 * frame-unwind.c (frame_unwind_try_unwinder): Catch
4025 RETURN_MASK_ALL and set *this_case to NULL.
4026 * frame-unwind.h: Update comments.
4027
1c90d9f0
YQ
40282017-08-11 Yao Qi <yao.qi@linaro.org>
4029
4030 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Remove.
4031 (dwarf2_frame_state_copy_regs): Remove.
4032 (dwarf2_frame_state_free_regs): Remove.
4033 (dwarf2_frame_state::~dwarf2_frame_state): Remove.
4034 (dwarf2_restore_rule): Call method .alloc_regs instead of
4035 dwarf2_frame_state_alloc_regs.
4036 (execute_cfa_program): Likewise. Call dwarf2_frame_state_reg_info
4037 constructor. Call std::move.
4038 (dwarf2_fetch_cfa_info): Don't call dwarf2_frame_state_copy_regs.
4039 (dwarf2_frame_cache): Likewise.
4040
4041 [GDB_SELF_TEST]: Include selftest.h and
4042 selftest-arch.h.
4043 [GDB_SELF_TEST] (execute_cfa_program_test): New function.
4044 (_initialize_dwarf2_frame) [GDB_SELF_TEST]: Register
4045 execute_cfa_program_test.
4046
4047 * dwarf2-frame.h (dwarf2_frame_state_reg_info): Add ctor, dtor,
4048 copy ctor, assignment operator, move assignment.
4049 <alloc_regs>: New method.
4050 <swap>: New method.
4051 (struct dwarf2_frame_state): Delete dtor.
4052 (dwarf2_frame_state_alloc_regs): Remove declaration.
4053 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): Don't call
4054 dwarf2_frame_state_alloc_regs, use .alloc_regs instead.
4055
afe37d6b
YQ
40562017-08-11 Yao Qi <yao.qi@linaro.org>
4057
4058 * dwarf2-frame.c (dwarf2_frame_state_free): Remove.
4059 (dwarf2_frame_state::dwarf2_frame_state): New.
4060 (dwarf2_frame_state::~dwarf2_frame_state): New.
4061 (dwarf2_fetch_cfa_info): Update.
4062 (dwarf2_frame_cache): Remove old_chain. Change 'fs' to an object
4063 rather than a pointer. Update code.
4064 * dwarf2-frame.h (struct dwarf2_frame_state): Declare ctor and
4065 dtor.
4066 <data_align, code_align, retaddr_column>: Change them to const.
4067 <armcc_cfa_offsets_sf, armcc_cfa_offsets_reversed>: Change them
4068 to bool.
4069
b348037f
YQ
40702017-08-11 Yao Qi <yao.qi@linaro.org>
4071
4072 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <exp_len>: Remove.
4073 <loc.exp>: New field.
4074 * dwarf2-frame.c (execute_cfa_program): Update.
4075 (dwarf2_frame_prev_register): Update.
4076
e7c9de26
PA
40772017-08-10 Pedro Alves <palves@redhat.com>
4078
4079 * common/gdb_unique_ptr.h (xfree_deleter<T[]>): Define.
4080
e8c6b620
JB
40812017-08-09 John Baldwin <jhb@FreeBSD.org>
4082
4083 * fbsd-nat.c (struct fbsd_fork_info): Remove.
4084 (fbsd_pending_children): Use std::list.
4085 (fbsd_remember_child): Likewise.
4086 (fbsd_is_child_pending): Likewise.
4087 (fbsd_pending_vfork_done): Use std::forward_list.
4088 (fbsd_add_vfork_done): Likewise.
4089 (fbsd_is_vfork_done_pending): Likewise.
4090 (fbsd_next_vfork_done): Likewise.
4091
e4a26669
JB
40922017-08-09 John Baldwin <jhb@FreeBSD.org>
4093
4094 * fbsd-nat.c [HAVE_KINFO_GETVMMAP] (struct free_deleter): New.
4095 (fbsd_find_memory_regions): Use free_deleter with std::unique_ptr.
4096 [!HAVE_KINFO_GETVMMAP] (fbsd_find_memory_regions): Use std::string
4097 for `mapfilename'.
4098 (fbsd_xfer_partial): Use gdb::byte_vector.
af3881e6 4099 (fbsd_add_threads): Use gdb::unique_xmalloc_ptr.
e4a26669 4100
142311d3
JB
41012017-08-09 John Baldwin <jhb@FreeBSD.org>
4102
4103 * fbsd-nat.c: [!HAVE_KINFO_GETVMMAP]: Include <sys/user.h> and
4104 "filestuff.h".
4105 (fbsd_find_memory_regions): Fix `mapfile' initialization.
4106
42fa2e0e
TT
41072017-08-09 Tom Tromey <tom@tromey.com>
4108
4109 * skip.c (skiplist_entry): New constructor.
4110 (skiplist_entry::enabled, skiplist_entry::function_is_regexp)
4111 (skiplist_entry::file_is_glob): Now bool.
4112 (skiplist_entry::file, skiplist_entry::function): Now
4113 std::string.
4114 (make_skip_entry): Return a unique_ptr. Use new.
4115 (free_skiplist_entry, free_skiplist_entry_cleanup)
4116 (make_free_skiplist_entry_cleanup): Remove.
4117 (skip_command, skip_disable_command, add_skiplist_entry)
4118 (skip_form_bytes, compile_skip_regexp, skip_command, skip_info)
4119 (skip_file_p, skip_gfile_p, skip_function_p, skip_rfunction_p)
4120 (function_name_is_marked_for_skip): Update.
4121 (skip_delete_command): Update. Use delete.
4122
cd3af38d
JW
41232017-08-09 Jiong Wang <jiong.wang@arm.com>
4124
4125 * aarch64-linux-tdep.c: Include "auxv.h" and "elf/common.h".
4126 (aarch64_linux_core_read_description): New function.
4127 (aarch64_linux_init_abi): Register gdbarch_core_read_description.
4128
29592bde
PA
41292017-08-09 Pedro Alves <palves@redhat.com>
4130
4131 * cp-name-parser.y (cp_comp_to_string): Return a
4132 gdb::unique_xmalloc_ptr<char>.
4133 * cp-support.c (replace_typedefs_qualified_name)
4134 (replace_typedefs): Adjust to use gdb::unique_xmalloc_ptr<char>.
4135 (cp_canonicalize_string_full): Use op= instead of explicit
4136 convertion.
4137 (cp_class_name_from_physname, method_name_from_physname)
4138 (cp_func_name, cp_remove_params): Adjust to use
4139 gdb::unique_xmalloc_ptr<char>.
4140 * cp-support.h (cp_comp_to_string): Return a
4141 gdb::unique_xmalloc_ptr<char>.
4142 * python/py-type.c (typy_lookup_type): Adjust to use
4143 gdb::unique_xmalloc_ptr<char>.
4144
b3340438
L
41452017-08-09 H.J. Lu <hongjiu.lu@intel.com>
4146
4147 * dwarf2read.c (dwarf2_string_attr): Fix a typo.
4148
e88e8651
YQ
41492017-08-09 Alex Lindsay <alexlindsay239@gmail.com>
4150 Yao Qi <yao.qi@linaro.org>
4151
4152 * cp-support.c (cp_canonicalize_string_full): Use
4153 gdb::unique_xmalloc_ptr<char>.
4154 (cp_canonicalize_string): Likewise.
4155
f5a29eb0
YQ
41562017-08-09 Yao Qi <yao.qi@linaro.org>
4157
4158 * features/Makefile (WHICH): Remove i386/ non-linux stuff.
4159 * regformats/i386/amd64-avx-avx512.dat: Remove.
4160 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Remove.
4161 * regformats/i386/amd64-avx-mpx.dat:Remove.
4162 * regformats/i386/amd64-avx.dat: Remove.
4163 * regformats/i386/amd64-mpx.dat: Remove.
4164 * regformats/i386/i386-avx-avx512.dat: Remove.
4165 * regformats/i386/i386-avx-mpx-avx512-pku.dat: Remove.
4166 * regformats/i386/i386-avx-mpx.dat: Remove.
4167 * regformats/i386/i386-mmx.dat: Remove.
4168 * regformats/i386/i386-mpx.dat: Remove.
4169
57757c2f
YQ
41702017-08-09 Yao Qi <yao.qi@linaro.org>
4171
4172 * amd64-tdep.h (tdesc_x32): Remove the declaration.
4173 * amd64-tdep.c: Don't include features/i386/x32*.c.
4174 (_initialize_amd64_tdep): Don't call initialize_tdesc_x32*
4175 functions.
4176 * features/Makefile (WHICH): Remove i386/x32, i386/x32-avx,
4177 and i386/x32-avx-avx512.
4178 (XMLTOC): Remove i386/x32-avx.xml, i386/x32-avx-avx512.xml,
4179 and i386/x32.xml.
4180 * features/i386/x32-avx-avx512.c: Removed.
4181 * features/i386/x32-avx-avx512.xml: Removed.
4182 * features/i386/x32-avx.c: Removed.
4183 * features/i386/x32-avx.xml: Removed.
4184 * features/i386/x32.c: Removed.
4185 * features/i386/x32.xml: Removed.
4186 * regformats/i386/x32-avx-avx512.dat: Removed.
4187 * regformats/i386/x32-avx.dat: Removed.
4188 * regformats/i386/x32.dat: Removed.
4189
ba7b109b
MR
41902017-08-07 Maciej W. Rozycki <macro@imgtec.com>
4191
4192 PR breakpoints/21886
4193 * mem-break.c (default_memory_insert_breakpoint): Use
4194 `->placed_address' rather than `->reqstd_address' for the
4195 breakpoint location.
4196
e347efc3
MR
41972017-08-07 Maciej W. Rozycki <macro@imgtec.com>
4198
4199 * arch-utils.c (default_print_insn): Remove arch/mach/endian
4200 assertions.
4201
0dba2a6c
MR
42022017-08-07 Maciej W. Rozycki <macro@imgtec.com>
4203
4204 * gdbarch.sh (gdbarch_info): Replace the `tdep_info' member with
4205 a union of `tdep_info', `tdesc_data' and `id'.
4206 * aarch64-tdep.c (aarch64_gdbarch_init): Use `info.tdesc_data'
4207 rather than `info.tdep_info'.
4208 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
4209 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
4210 * i386-tdep.c (i386_gdbarch_init): Likewise.
4211 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
4212 * mips-tdep.c (mips_gdbarch_init): Likewise.
4213 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
4214 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
4215 * ppc-linux-tdep.c (ppu2spu_sniffer): Use `info.id' rather than
4216 `info.tdep_info'.
4217 (ppc_linux_init_abi): Use `info.tdesc_data' rather than
4218 `info.tdep_info'.
4219 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
4220 * spu-multiarch.c (spu_gdbarch): Use `info.id' rather than
4221 `info.tdep_info'.
4222 * spu-tdep.c (spu_gdbarch_init): Likewise.
4223 * gdbarch.h: Regenerate.
4224
16eb6b2d
LS
42252017-08-07 Leszek Swirski <leszeks@google.com>
4226
7b005726 4227 PR symtab/20899
16eb6b2d
LS
4228 * dwarf2read.c (dwarf2_string_attr): Allow DW_FORM_GNU_strp_alt.
4229
74cbb09e
SM
42302017-08-07 Simon Marchi <simon.marchi@ericsson.com>
4231
4232 * remote-sim.c (gdbsim_load): Remove char **argv local variable.
4233 (gdbsim_open): Rename gdb_argv args object to argv.
4234
ee0c3293
TT
42352017-08-05 Tom Tromey <tom@tromey.com>
4236
4237 * compile/compile-object-load.c (compile_object_load): Use
4238 gdb::unique_xmalloc_ptr.
4239 * cli/cli-dump.c (scan_filename): Rename from
4240 scan_filename_with_cleanup. Change return type.
4241 (scan_expression): Rename from scan_expression_with_cleanup.
4242 Change return type.
4243 (dump_memory_to_file, dump_value_to_file, restore_command):
4244 Use gdb::unique_xmalloc_ptr. Update.
4245 * cli/cli-cmds.c (find_and_open_script): Use
4246 gdb::unique_xmalloc_ptr.
4247 * tracefile-tfile.c (tfile_open): Use gdb::unique_xmalloc_ptr.
4248 * symmisc.c (maintenance_print_symbols)
4249 (maintenance_print_msymbols): Use gdb::unique_xmalloc_ptr.
4250 * symfile.c (symfile_bfd_open, generic_load)
4251 (add_symbol_file_command, remove_symbol_file_command): Use
4252 gdb::unique_xmalloc_ptr.
4253 * source.c (openp): Use gdb::unique_xmalloc_ptr.
4254 * psymtab.c (maintenance_print_psymbols): Use
4255 gdb::unique_xmalloc_ptr.
4256 * corelow.c (core_open): Use gdb::unique_xmalloc_ptr.
4257 * breakpoint.c (save_breakpoints): Use gdb::unique_xmalloc_ptr.
4258 * solib.c (solib_map_sections): Use gdb::unique_xmalloc_ptr.
4259 (reload_shared_libraries_1): Likewise.
4260
3232fabd
TT
42612017-08-05 Tom Tromey <tom@tromey.com>
4262
4263 * rust-exp.y (rust_op_ptr, set_field): Remove typedefs.
4264 (rust_op_vector, rust_set_vector): New typedefs.
4265 (current_parser): New global.
4266 (work_obstack): Change to pointer type. Update all users.
4267 (rust_ast, pstate): Remove globals.
4268 (struct rust_parser): New.
4269 (%union) <params, field_inits>: Change type.
4270 (start, tuple_expr, unit_expr, struct_expr_list, literal)
4271 (field_expr, expr_list, maybe_expr_list, type_list): Update.
4272 (ast_call_ish, ast_path, ast_function_type, ast_tuple_type)
4273 (convert_params_to_types, convert_params_to_expression): Change
4274 type of "params".
4275 (ast_string): Change type of "fields".
4276 (rust_parse): Make a rust_parser. Remove cleanups.
4277 (rust_lex_tests): Make and install an auto_obstack.
4278
f02fd774
YQ
42792017-08-04 Yao Qi <yao.qi@linaro.org>
4280
4281 * configure.srv (ipa_x32_linux_regobj): New.
4282 * linux-amd64-ipa.c (get_ipa_tdesc): Use X86_TDESC_AVX_AVX512
4283 instead of X86_TDESC_AVX512.
4284 (initialize_low_tracepoint): Call
4285 init_registers_x32_avx_avx512_linux.
4286
91975afd
YQ
42872017-08-04 Yao Qi <yao.qi@linaro.org>
4288
4289 * utils.h (gdb_argv): Add namespace std for nullptr_t.
4290
2331fa3a
RK
42912017-08-03 Ruslan Kabatsayev <b7.10110111@gmail.com>
4292
4293 * MAINTAINERS (Write After Approval): Add Ruslan Kabatsayev.
4294
744e4fe1
TT
42952017-08-03 Tom Tromey <tom@tromey.com>
4296
4297 * utils.c (make_cleanup_freeargv, do_freeargv, gdb_buildargv):
4298 Remove.
4299 * utils.h (make_cleanup_freeargv, gdb_buildargv): Remove.
4300
1c034b67
TT
43012017-08-03 Tom Tromey <tom@tromey.com>
4302
4303 * python/py-param.c (compute_enum_values): Use gdb_argv.
4304
773a1edc
TT
43052017-08-03 Tom Tromey <tom@tromey.com>
4306
4307 * utils.h (struct gdb_argv_deleter): New.
4308 (gdb_argv): New class.
4309 * utils.c (gdb_argv::reset): New method.
4310 * tracepoint.c (delete_trace_variable_command): Use gdb_argv.
4311 * tracefile.c (tsave_command): Use gdb_argv.
4312 * top.c (new_ui_command): Use gdb_argv.
4313 * symmisc.c (maintenance_print_symbols)
4314 (maintenance_print_msymbols, maintenance_expand_symtabs): Use gdb_argv.
4315 * symfile.c (symbol_file_command, generic_load)
4316 (remove_symbol_file_command): Use gdb_argv.
4317 * stack.c (backtrace_command): Use gdb_argv.
4318 * source.c (add_path, show_substitute_path_command)
4319 (unset_substitute_path_command, set_substitute_path_command):
4320 Use gdb_argv.
4321 * skip.c (skip_command): Use gdb_argv. Use gdb_buildargv.
4322 * ser-mingw.c (pipe_windows_open): Use gdb_argv.
4323 * remote.c (extended_remote_run, remote_put_command)
4324 (remote_get_command, remote_delete_command): Use gdb_argv.
4325 * remote-sim.c (gdbsim_load, gdbsim_create_inferior)
4326 (gdbsim_open): Use gdb_argv.
4327 * python/py-cmd.c (gdbpy_string_to_argv): Use gdb_argv.
4328 * psymtab.c (maintenance_print_psymbols): Use gdb_argv.
4329 * procfs.c (procfs_info_proc): Use gdb_argv.
4330 * interps.c (interpreter_exec_cmd): Use gdb_argv.
4331 * infrun.c (handle_command): Use gdb_argv.
4332 * inferior.c (add_inferior_command, clone_inferior_command):
4333 Use gdb_argv.
4334 * guile/scm-string.c (gdbscm_string_to_argv): Use gdb_argv.
4335 * exec.c (exec_file_command): Use gdb_argv.
4336 * cli/cli-cmds.c (alias_command): Use gdb_argv.
4337 * compile/compile.c (build_argc_argv): Use gdb_argv.
4338
0d50bde3
TT
43392017-08-03 Tom Tromey <tom@tromey.com>
4340
4341 * python/python.c (gdbpy_decode_line): Use unique_xmalloc_ptr.
4342
7f968c89
TT
43432017-08-03 Tom Tromey <tom@tromey.com>
4344
4345 * python/python.c (compute_python_string): Return std::string.
4346 (gdbpy_eval_from_control_command): Update.
4347 (do_start_initialization): Use std::string.
4348 * python/py-varobj.c (py_varobj_iter_next): Use string_printf, not
4349 xstrprintf.
4350 * python/py-breakpoint.c (local_setattro): Use string_printf, not
4351 xstrprintf.
4352
3c9ebddd
TT
43532017-08-03 Tom Tromey <tom@tromey.com>
4354
4355 * top.h (do_restore_instream_cleanup): Remove.
4356 * top.c (do_restore_instream_cleanup): Remove.
4357 (read_command_file): Use scoped_restore.
4358 * cli/cli-script.c (execute_user_command): Use scoped_restore.
4359
b51b225e
TT
43602017-08-03 Tom Tromey <tom@tromey.com>
4361
4362 * cli/cli-script.c (execute_user_command)
4363 (execute_control_command): Use scoped_restore.
4364
ac991630
TT
43652017-08-03 Tom Tromey <tom@tromey.com>
4366
4367 * cli/cli-script.c (do_restore_user_call_depth): Remove.
4368 (execute_user_command): Remove user_call_depth; use
4369 user_args_stack's size instead.
4370
898e0c8e
TT
43712017-08-03 Tom Tromey <tom@tromey.com>
4372
4373 * top.h (in_user_command): Remove.
4374 * top.c (in_user_command): Remove.
4375 * cli/cli-script.c (do_restore_user_call_depth)
4376 (execute_user_command): Update.
4377
26fcd5d7
TT
43782017-08-03 Tom Tromey <tom@tromey.com>
4379
4380 * valops.c (search_struct_method): Use gdb::byte_vector.
4381 * valarith.c (value_concat): Use std::vector.
4382 * target.c (memory_xfer_partial): Use gdb::byte_vector.
4383 (simple_search_memory): Likewise.
4384 * printcmd.c (find_string_backward): Use gdb::byte_vector.
4385 * mi/mi-main.c (mi_cmd_data_write_memory): Use gdb::byte_vector.
4386 * gcore.c (gcore_copy_callback): Use gdb::byte_vector.
4387 * elfread.c (elf_rel_plt_read): Use std::string.
4388 * cp-valprint.c (cp_print_value): Use gdb::byte_vector.
4389 * cli/cli-dump.c (restore_section_callback): Use
4390 gdb::byte_vector.
4391
7c218e6c
TT
43922017-08-03 Tom Tromey <tom@tromey.com>
4393
4394 * jit.c (jit_reader_load_command): Use unique_xmalloc_ptr.
4395
31b68d4a
TT
43962017-08-03 Tom Tromey <tom@tromey.com>
4397
4398 * tui/tui-regs.c (tui_restore_gdbout): Remove.
4399 (tui_register_format): Use scoped_restore.
4400
2ec845e7
TT
44012017-08-03 Tom Tromey <tom@tromey.com>
4402
4403 * reverse.c (exec_direction_default): Remove.
4404 (exec_reverse_once): Use scoped_restore.
4405 * remote.c (restore_remote_timeout): Remove.
4406 (remote_flash_erase, remote_flash_write, remote_flash_done)
4407 (readchar, remote_serial_write): Use scoped_restore.
4408 * cli/cli-script.c (struct source_cleanup_lines_args)
4409 (source_cleanup_lines): Remove.
4410 (script_from_file): Use scoped_restore.
4411 * cli/cli-cmds.c (source_verbose_cleanup): Remove.
4412 (source_command): Use scoped_restore.
4413
b3bc8453
TT
44142017-08-03 Tom Tromey <tom@tromey.com>
4415
4416 * utils.h (make_cleanup_free_so): Remove.
4417 * utils.c (do_free_so, make_cleanup_free_so): Remove.
4418 * solist.h (struct so_deleter): New.
4419 (so_list_up): New typedef.
4420 * solib-svr4.c (svr4_read_so_list): Use so_list_up.
4421
e3ad2841
TT
44222017-08-03 Tom Tromey <tom@tromey.com>
4423
4424 * utils.h (make_cleanup_restore_current_language): Remove.
4425 * utils.c (do_restore_current_language)
4426 (make_cleanup_restore_current_language): Remove.
4427 * parse.c (parse_exp_in_context_1)
4428 (parse_expression_with_language): Use
4429 scoped_restore_current_language.
4430 * mi/mi-main.c (mi_cmd_execute): Use
4431 scoped_restore_current_language.
4432 * language.h (scoped_restore_current_language): New class.
4433
b80cf838
TT
44342017-08-03 Tom Tromey <tom@tromey.com>
4435
4436 * compile/compile.c (cleanup_unlink_file): Remove.
4437 (compile_to_object): Use gdb::unlinker.
4438 (eval_compile_command): Likewise.
4439
fad0444a
TT
44402017-08-03 Tom Tromey <tom@tromey.com>
4441
4442 * utils.h (make_cleanup_fclose): Remove.
4443 * utils.c (do_fclose_cleanup, make_cleanup_fclose): Remove.
4444
6e7bc05c
TT
44452017-08-03 Tom Tromey <tom@tromey.com>
4446
4447 * top.c (open_terminal_stream): Return gdb_file_up.
4448 (new_ui_command): Update.
4449
4a45905b
TT
44502017-08-03 Tom Tromey <tom@tromey.com>
4451
4452 * source.c (print_source_lines_base, forward_search_command)
4453 (reverse_search_command): Use gdb_file_up.
4454
7cd06d6e
TT
44552017-08-03 Tom Tromey <tom@tromey.com>
4456
4457 * fbsd-nat.c (fbsd_find_memory_regions): Update.
4458
ed166945
TT
44592017-08-03 Tom Tromey <tom@tromey.com>
4460
4461 * cli/cli-cmds.c (find_and_open_script): Change return type.
4462 Remove "streamp" and "full_path" parameters.
4463 (source_script_with_search): Update.
4464 * auto-load.c (source_script_file): Update.
4465 * cli/cli-cmds.h (find_and_open_script): Change type.
4466 (open_script): New struct.
4467
d419f42d
TT
44682017-08-03 Tom Tromey <tom@tromey.com>
4469
4470 * xml-support.c (xml_fetch_content_from_file): Update.
4471 * ui-file.c (stdio_file::open): Update.
4472 * tracefile-tfile.c (tfile_start): Update.
4473 * remote.c (remote_file_put, remote_file_get): Update.
4474 * nat/linux-procfs.c (linux_proc_get_int)
4475 (linux_proc_pid_get_state, linux_proc_tid_get_name): Update.
4476 * nat/linux-osdata.c (linux_common_core_of_thread): Update.
4477 (command_from_pid, commandline_from_pid, linux_xfer_osdata_cpus)
4478 (print_sockets, linux_xfer_osdata_shm, linux_xfer_osdata_sem)
4479 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Update.
4480 * nat/linux-btrace.c (linux_determine_kernel_start): Update.
4481 * linux-nat.c (linux_proc_pending_signals): Update.
4482 * dwarf2read.c (write_psymtabs_to_index): Use gdb_file_up.
4483 (file_closer): Remove.
4484 * compile/compile.c (compile_to_object): Update.
4485 * common/filestuff.h (struct gdb_file_deleter): New.
4486 (gdb_file_up): New typedef.
4487 (gdb_fopen_cloexec): Change return type.
4488 * common/filestuff.c (gdb_fopen_cloexec): Return gdb_file_up.
4489 * cli/cli-dump.c (fopen_with_cleanup): Remove.
4490 (dump_binary_file, restore_binary_file): Update.
4491 * auto-load.c (auto_load_objfile_script_1): Update.
4492
4a2b031d
TT
44932017-08-03 Tom Tromey <tom@tromey.com>
4494
4495 * tracepoint.c (tvariables_info_1): Use ui_out_emit_table.
4496 (info_static_tracepoint_markers_command): Likewise.
4497 * solib.c (info_sharedlibrary_command): Use ui_out_emit_table.
4498 * skip.c (skip_info): Use ui_out_emit_table.
4499 * progspace.c (print_program_space): Use ui_out_emit_table.
4500 * osdata.c (info_osdata): Use ui_out_emit_table.
4501 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Use
4502 ui_out_emit_table.
4503 * linux-thread-db.c (info_auto_load_libthread_db): Use
4504 ui_out_emit_table.
4505 * inferior.c (print_inferior): Use ui_out_emit_table.
4506 * gdb_bfd.c (maintenance_info_bfds): Use ui_out_emit_table.
4507 * breakpoint.c (breakpoint_1): Use ui_out_emit_table.
4508 * auto-load.c (auto_load_info_scripts): Use ui_out_emit_table.
4509 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_table.
4510 * ui-out.h (class ui_out_emit_table): New.
4511
a4f320fd
MR
45122017-08-02 Maciej W. Rozycki <macro@imgtec.com>
4513
4514 * mips-tdep.c (mips_fpu_type_str): New function.
4515 (mips_dump_tdep): Call it.
4516
a2f1f308
MR
45172017-08-01 Maciej W. Rozycki <macro@imgtec.com>
4518
4519 * mips-tdep.c (mips_gdbarch_init): Use MIPS_FPU_TYPE to access
4520 `->mips_fpu_type'.
4521
7e5ed83b
XR
45222017-07-31 Xavier Roirand <roirand@adacore.com>
4523
4524 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
4525
4c9dc811
XR
45262017-07-27 Xavier Roirand <roirand@adacore.com>
4527
4528 * MAINTAINERS (Write After Approval): Add Xavier Roirand.
4529
27d41eac
YQ
45302017-07-26 Yao Qi <yao.qi@linaro.org>
4531
4532 * cli/cli-cmds.c (maintenancechecklist): New variable.
4533 * gdbcmd.h (maintenancechecklist): Declare it.
4534 * i386-linux-tdep.c (_initialize_i386_linux_tdep) [GDB_SELF_TEST]:
4535 Call i386_linux_read_description with different masks.
4536 * maint.c (maintenance_check_command): New function.
4537 (_initialize_maint_cmds): Call add_prefix_cmd.
4538 * target-descriptions.c (tdesc_reg): override operator != and ==.
4539 (tdesc_type): Likewise.
4540 (tdesc_feature): Likewise.
4541 (target_desc): Likewise.
4542 [GDB_SELF_TEST] (selftests::record_xml_tdesc): New function.
4543 (maintenance_check_xml_descriptions): New function.
4544 (_initialize_target_descriptions) Add command "xml-descriptions".
4545 * target-descriptions.h (selftests::record_xml_tdesc): Declare.
4546
ea03d0d3
YQ
45472017-07-26 Yao Qi <yao.qi@linaro.org>
4548
4549 * i386-linux-tdep.c: Don't include features/i386/i386-*linux.c.
4550 Include features/i386/32bit-*.c.
4551 (i386_linux_read_description): Generate target description if it
4552 doesn't exist.
4553 (_initialize_i386_linux_tdep): Don't call _initialize_tdesc_i386
4554 functions.
4555 * features/i386/32bit-linux.c: Re-generated.
4556 * features/i386/32bit-sse.c: Likewise.
4557 * target-descriptions.c (print_c_feature::visit): Print code to
4558 set register number if needed.
4559 (print_c_feature) <m_next_regnum>: New field.
4560
25aa13e5
YQ
45612017-07-26 Yao Qi <yao.qi@linaro.org>
4562
4563 * features/Makefile (CFILES): Rename with TDESC_CFILES.
4564 (FEATURE_XMLFILES): New.
4565 (FEATURE_CFILES): New.
4566 New rules.
4567 (clean-cfiles): Remove generated c files.
4568 * features/i386/32bit-avx.c: Generated.
4569 * features/i386/32bit-avx512.c: Generated.
4570 * features/i386/32bit-core.c: Generated.
4571 * features/i386/32bit-linux.c: Generated.
4572 * features/i386/32bit-mpx.c: Generated.
4573 * features/i386/32bit-pkeys.c: Generated.
4574 * features/i386/32bit-sse.c: Generated.
4575 * target-descriptions.c: Include algorithm.
4576 (tdesc_element_visitor): Add method visit_end.
4577 (print_c_tdesc): Implement visit_end.
4578 (print_c_tdesc:: m_filename_after_features): Move it to
4579 protected.
4580 (print_c_feature): New class.
4581 (maint_print_c_tdesc_cmd): Use print_c_feature if XML file
4582 name starts with "i386/32bit-".
4583
6eb1e6a8
YQ
45842017-07-26 Yao Qi <yao.qi@linaro.org>
4585
4586 * target-descriptions.c (tdesc_element_visitor): New class.
4587 (tdesc_element): New class.
4588 (tdesc_reg): Inherit from tdesc_element.
4589 (tdesc_reg::accept): New function.
4590 (tdesc_type): Inherit from tdesc_element.
4591 (tdesc_type::accept): New function.
4592 (tdesc_feature): Inherit from tdesc_element.
4593 (tdesc_feature::accept): New function.
4594 (target_desc): Inherit from tdesc_element.
4595 (target_desc::target_desc): New.
4596 (target_desc::~target_desc): New.
4597 (target_desc::accept): New.
4598 (allocate_target_description): Use new.
4599 (free_target_description): Use delete.
4600 (print_c_tdesc): New class.
4601 (maint_print_c_tdesc_cmd): Adjust.
4602
4603 * features/aarch64.c: Re-generated.
4604 * features/arc-arcompact.c: Re-generated.
4605 * features/arc-v2.c: Re-generated.
4606 * features/arm/arm-with-iwmmxt.c: Re-generated.
4607 * features/arm/arm-with-m.c: Re-generated.
4608 * features/arm/arm-with-m-fpa-layout.c: Re-generated.
4609 * features/arm/arm-with-m-vfp-d16.c: Re-generated.
4610 * features/arm/arm-with-neon.c: Re-generated.
4611 * features/arm/arm-with-vfpv2.c: Re-generated.
4612 * features/arm/arm-with-vfpv3.c: Re-generated.
4613 * features/i386/amd64-avx-avx512.c: Re-generated.
4614 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
4615 * features/i386/amd64-avx.c: Re-generated.
4616 * features/i386/amd64-avx-linux.c: Re-generated.
4617 * features/i386/amd64-avx-mpx-avx512-pku.c: Re-generated.
4618 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
4619 * features/i386/amd64-avx-mpx.c: Re-generated.
4620 * features/i386/amd64-avx-mpx-linux.c: Re-generated.
4621 * features/i386/amd64.c: Re-generated.
4622 * features/i386/amd64-linux.c: Re-generated.
4623 * features/i386/amd64-mpx.c: Re-generated.
4624 * features/i386/amd64-mpx-linux.c: Re-generated.
4625 * features/i386/i386-avx-avx512.c: Re-generated.
4626 * features/i386/i386-avx-avx512-linux.c: Re-generated.
4627 * features/i386/i386-avx.c: Re-generated.
4628 * features/i386/i386-avx-linux.c: Re-generated.
4629 * features/i386/i386-avx-mpx-avx512-pku.c: Re-generated.
4630 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Re-generated.
4631 * features/i386/i386-avx-mpx.c: Re-generated.
4632 * features/i386/i386-avx-mpx-linux.c: Re-generated.
4633 * features/i386/i386.c: Re-generated.
4634 * features/i386/i386-linux.c: Re-generated.
4635 * features/i386/i386-mmx.c: Re-generated.
4636 * features/i386/i386-mmx-linux.c: Re-generated.
4637 * features/i386/i386-mpx.c: Re-generated.
4638 * features/i386/i386-mpx-linux.c: Re-generated.
4639 * features/i386/x32-avx-avx512.c: Re-generated.
4640 * features/i386/x32-avx-avx512-linux.c: Re-generated.
4641 * features/i386/x32-avx.c: Re-generated.
4642 * features/i386/x32-avx-linux.c: Re-generated.
4643 * features/i386/x32.c: Re-generated.
4644 * features/i386/x32-linux.c: Re-generated.
4645 * features/microblaze.c: Re-generated.
4646 * features/microblaze-with-stack-protect.c: Re-generated.
4647 * features/mips64-dsp-linux.c: Re-generated.
4648 * features/mips64-linux.c: Re-generated.
4649 * features/mips-dsp-linux.c: Re-generated.
4650 * features/mips-linux.c: Re-generated.
4651 * features/nds32.c: Re-generated.
4652 * features/nios2.c: Re-generated.
4653 * features/nios2-linux.c: Re-generated.
4654 * features/rs6000/powerpc-32.c: Re-generated.
4655 * features/rs6000/powerpc-32l.c: Re-generated.
4656 * features/rs6000/powerpc-403.c: Re-generated.
4657 * features/rs6000/powerpc-403gc.c : Re-generated.
4658 * features/rs6000/powerpc-405.c: Re-generated.
4659 * features/rs6000/powerpc-505.c: Re-generated.
4660 * features/rs6000/powerpc-601.c: Re-generated.
4661 * features/rs6000/powerpc-602.c: Re-generated.
4662 * features/rs6000/powerpc-603.c: Re-generated.
4663 * features/rs6000/powerpc-604.c: Re-generated.
4664 * features/rs6000/powerpc-64.c: Re-generated.
4665 * features/rs6000/powerpc-64l.c: Re-generated.
4666 * features/rs6000/powerpc-7400.c: Re-generated.
4667 * features/rs6000/powerpc-750.c: Re-generated.
4668 * features/rs6000/powerpc-860.c: Re-generated.
4669 * features/rs6000/powerpc-altivec32.c: Re-generated.
4670 * features/rs6000/powerpc-altivec32l.c: Re-generated.
4671 * features/rs6000/powerpc-altivec64.c: Re-generated.
4672 * features/rs6000/powerpc-altivec64l.c: Re-generated.
4673 * features/rs6000/powerpc-cell32l.c: Re-generated.
4674 * features/rs6000/powerpc-cell64l.c: Re-generated.
4675 * features/rs6000/powerpc-e500.c: Re-generated.
4676 * features/rs6000/powerpc-e500l.c: Re-generated.
4677 * features/rs6000/powerpc-isa205-32l.c: Re-generated.
4678 * features/rs6000/powerpc-isa205-64l.c: Re-generated.
4679 * features/rs6000/powerpc-isa205-altivec32l.c: Re-generated.
4680 * features/rs6000/powerpc-isa205-altivec64l.c: Re-generated.
4681 * features/rs6000/powerpc-isa205-vsx32l.c: Re-generated.
4682 * features/rs6000/powerpc-isa205-vsx64l.c: Re-generated.
4683 * features/rs6000/powerpc-vsx32.c: Re-generated.
4684 * features/rs6000/powerpc-vsx32l.c: Re-generated.
4685 * features/rs6000/powerpc-vsx64.c: Re-generated.
4686 * features/rs6000/powerpc-vsx64l.c: Re-generated.
4687 * features/rs6000/rs6000.c: Re-generated.
4688 * features/s390-linux32.c: Re-generated.
4689 * features/s390-linux32v1.c: Re-generated.
4690 * features/s390-linux32v2.c: Re-generated.
4691 * features/s390-linux64.c: Re-generated.
4692 * features/s390-linux64v1.c: Re-generated.
4693 * features/s390-linux64v2.c: Re-generated.
4694 * features/s390-te-linux64.c: Re-generated.
4695 * features/s390-tevx-linux64.c: Re-generated.
4696 * features/s390-vx-linux64.c: Re-generated.
4697 * features/s390x-linux64.c: Re-generated.
4698 * features/s390x-linux64v1.c: Re-generated.
4699 * features/s390x-linux64v2.c: Re-generated.
4700 * features/s390x-te-linux64.c: Re-generated.
4701 * features/s390x-tevx-linux64.c: Re-generated.
4702 * features/s390x-vx-linux64.c: Re-generated.
4703 * features/sparc/sparc32-solaris.c: Re-generated.
4704 * features/sparc/sparc64-solaris.c: Re-generated.
4705 * features/tic6x-c62x.c: Re-generated.
4706 * features/tic6x-c62x-linux.c: Re-generated.
4707 * features/tic6x-c64x.c: Re-generated.
4708 * features/tic6x-c64x-linux.c: Re-generated.
4709 * features/tic6x-c64xp.c: Re-generated.
4710 * features/tic6x-c64xp-linux.c: Re-generated.
4711
35b4818d
YQ
47122017-07-26 Yao Qi <yao.qi@linaro.org>
4713
4714 * i386-linux-tdep.c (i386_linux_read_description): New function.
4715 (i386_linux_core_read_description): Call
4716 i386_linux_read_description.
4717 * i386-linux-tdep.h (i386_linux_read_description): Declare.
4718 (tdesc_i386_linux, tdesc_i386_mmx_linux): Remove declarations.
4719 (tdesc_i386_avx_linux, tdesc_i386_mpx_linux): Likewise
4720 (tdesc_i386_avx_mpx_linux, tdesc_i386_avx_avx512_linux): Likewise.
4721 (tdesc_i386_avx_mpx_avx512_pku_linux): Likewise.
4722 * x86-linux-nat.c (x86_linux_read_description): Call
4723 i386_linux_read_description.
4724
8e2141c6
YQ
47252017-07-26 Yao Qi <yao.qi@linaro.org>
4726
4727 * NEWS: Mention it.
4728 * features/Makefile (%.c: %.xml): Pass the xml file name to
4729 command "maint print c-tdesc".
4730 * target-descriptions.c (maint_print_c_tdesc_cmd): Get file
4731 name from 'arg'.
4732
b468ff4c
YQ
47332017-07-26 Yao Qi <yao.qi@linaro.org>
4734
4735 * target-descriptions.c (target_desc): Add ctor and dtor. Do
4736 in-class initialization.
4737 (tdesc_create_feature): Call new instead of XCNEW.
4738 (free_target_description): Ue delete.
4739
b9c0e1b4
JB
47402017-07-25 John Baldwin <jhb@FreeBSD.org>
4741
4742 * configure.nat: Add "-lkvm" for NetBSD/sparc64 and fix typo.
4743
a04b5337
YQ
47442017-07-25 Yao Qi <yao.qi@linaro.org>
4745
4746 * amd64-tdep.c (amd64_init_abi): Make argument default_tdesc
4747 constant.
4748 (amd64_x32_init_abi): Likewise.
4749 * amd64-tdep.h (amd64_init_abi): Update declaration.
4750 (amd64_x32_init_abi): Likewise.
4751
02ad7fc2
YQ
47522017-07-25 Yao Qi <yao.qi@linaro.org>
4753
4754 PR tdep/21717
4755 * arm-linux-nat.c (arm_linux_fetch_inferior_registers): Update
4756 condition for FPSCR.
4757 (arm_linux_store_inferior_registers): Likewise.
4758
b6f48cb0
TT
47592017-07-22 Tom Tromey <tom@tromey.com>
4760
4761 * break-catch-syscall.c (struct catch_syscall_inferior_data)
4762 <syscalls_counts>: Now a std::vector.
4763 (get_catch_syscall_inferior_data): Use "new".
4764 (catch_syscall_inferior_data_cleanup): Use "delete".
4765 (insert_catch_syscall, remove_catch_syscall)
4766 (clear_syscall_counts): Update.
4767
e12c9b7a
TT
47682017-07-22 Tom Tromey <tom@tromey.com>
4769
4770 * break-catch-syscall.c (syscall_catchpoint)
4771 <syscalls_to_be_caught>: Now a std::vector<int>
4772 (~syscall_catchpoint): Remove.
4773 (insert_catch_syscall, remove_catch_syscall)
4774 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
4775 (print_mention_catch_syscall, print_recreate_catch_syscall):
4776 Update.
4777 (create_syscall_event_catchpoint): Change type of "filter"
4778 parameter.
4779 (catch_syscall_split_args): Return a std::vector.
4780 (catch_syscall_command_1, catching_syscall_number_1): Update.
4781
4fa8aeac
TT
47822017-07-22 Tom Tromey <tom@tromey.com>
4783
4784 * break-catch-throw.c (struct exception_catchpoint)
4785 <exception_rx>: Now a std::string.
4786 (~exception_catchpoint): Remove.
4787 (print_one_detail_exception_catchpoint): Update.
4788 (handle_gnu_v3_exceptions): Change type of except_rx.
4789 (extract_exception_regexp): Return a std::string.
4790 (catch_exception_command_1): Update.
4791
f746a154
TT
47922017-07-22 Tom Tromey <tom@tromey.com>
4793
4794 * break-catch-sig.c (gdb_signal_type): Remove typedef.
4795 (struct signal_catchpoint) <signals_to_be_caught>: Now a
4796 std::vector.
4797 <catch_all>: Now a bool.
4798 (~signal_catchpoint): Remove.
4799 (signal_catchpoint_insert_location)
4800 (signal_catchpoint_remove_location)
4801 (signal_catchpoint_breakpoint_hit, signal_catchpoint_print_one)
4802 (signal_catchpoint_print_mention)
4803 (signal_catchpoint_print_recreate)
4804 (signal_catchpoint_explains_signal): Update.
4805 (create_signal_catchpoint): Change type of "filter" and
4806 "catch_all".
4807 (catch_signal_split_args): Return a std::vector. Change type of
4808 "catch_all".
4809 (catch_signal_command): Update.
4810
47e77640
PA
48112017-07-20 Pedro Alves <palves@redhat.com>
4812
4813 * ada-lang.c (ada_language_defn): Make extern.
4814 (_initialize_ada_language): Remove add_language call.
4815 * c-lang.c (c_language_defn, cplus_language_defn)
4816 (asm_language_defn, minimal_language_defn): Make extern.
4817 (_initialize_c_language): Delete.
4818 * completer.c (compare_cstrings): Delete, moved to utils.h.
4819 * d-lang.c (d_language_defn): Make extern.
4820 (_initialize_d_language): Remove add_language calls.
4821 * defs.h (enum language): Add comment.
4822 * f-lang.c (f_language_defn): Make extern.
4823 (_initialize_f_language): Remove add_language call.
4824 * go-lang.c (go_language_defn): Make extern.
4825 (_initialize_go_language): Remove add_language call.
4826 * language.c: Include <algorithm>.
4827 (languages): Redefine as const array.
4828 (languages_size, languages_allocsize, DEFAULT_ALLOCSIZE): Delete.
4829 (set_language_command): Handle "local". Use for-range loop.
4830 (set_language): Remove loop.
4831 (language_enum): Rewrite.
4832 (language_def, language_str): Remove loops.
4833 (add_language): Delete.
4834 (add_set_language_command): New, based on add_languages.
4835 (skip_language_trampoline): Adjust.
4836 (local_language_defn): Delete.
4837 (language_gdbarch_post_init): Adjust.
4838 (_initialize_language): Remove add_language calls. Call
4839 add_set_language_command.
4840 * language.h (add_language): Delete.
4841 (auto_language_defn)
4842 (unknown_language_defn, minimal_language_defn, ada_language_defn)
4843 (asm_language_defn, c_language_defn, cplus_language_defn)
4844 (d_language_defn, f_language_defn, go_language_defn)
4845 (m2_language_defn, objc_language_defn, opencl_language_defn)
4846 (pascal_language_defn, rust_language_defn): Declare.
4847 * m2-lang.c (m2_language_defn): Make extern.
4848 (_initialize_m2_language): Remove add_language call.
4849 * objc-lang.c (objc_language_defn): Make extern.
4850 (_initialize_objc_language): Remove add_language call.
4851 * opencl-lang.c (opencl_language_defn): Make extern.
4852 (_initialize_opencl_language): Remove add_language call.
4853 * p-lang.c (pascal_language_defn): Make extern.
4854 (_initialize_pascal_language): Delete.
4855 * rust-lang.c (rust_language_defn): Make extern.
4856 (_initialize_rust_language): Delete.
4857 * utils.h (compare_cstrings): New static inline function.
4858
edb0c9cb
PA
48592017-07-20 Pedro Alves <palves@redhat.com>
4860
4861 * ada-lang.c (ada_to_fixed_type_1): Adjust.
4862 (get_var_value): Constify parameters.
4863 (get_int_var_value): Change prototype.
4864 (to_fixed_range_type): Adjust.
4865 * ada-lang.h (get_int_var_value): Change prototype.
4866
a778f165
PA
48672017-07-20 Pedro Alves <palves@redhat.com>
4868
4869 * dwarf2read.c (dw2_lookup_symbol): Use
4870 SYMBOL_MATCHES_SEARCH_NAME.
4871 * psymtab.c (psym_lookup_symbol): Use SYMBOL_MATCHES_SEARCH_NAME.
4872
42edd901
PA
48732017-07-20 Pedro Alves <palves@redhat.com>
4874
4875 * block.c (block_iter_name_step, block_iter_name_first)
4876 (block_iter_name_next): Delete.
4877 (block_lookup_symbol_primary): Adjust to use
4878 dict_iter_match_first/dict_iter_match_next.
4879 * block.h (block_iter_name_first, block_iter_name_next): Delete
4880 declarations.
4881 (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use
4882 dict_iter_match_first/dict_iter_match_next.
4883
cf325299
PA
48842017-07-20 Pedro Alves <palves@redhat.com>
4885
4886 * cp-support.c (cp_find_first_component_aux): Add missing case for
4887 end of string.
4888
c5ed0576
DB
48892017-07-18 David Blaikie <dblaikie@gmail.com>
4890
4891 * dwarf2read.c (create_cus_hash_table): Re-add lost initialization
4892 of dwo_cu's dwo_file.
4893
27841e76
YQ
48942017-07-18 Yao Qi <yao.qi@linaro.org>
4895
4896 * remote.c (store_registers_using_G): Remove one line comment.
4897
cfb7e58b
YQ
48982017-07-18 Yao Qi <yao.qi@linaro.org>
4899
4900 * regcache.c (regcache_cpy): Simplify it.
4901 (regcache::cpy_no_passthrough): Remove it.
4902 * regcache.h (cpy_no_passthrough): Remove it.
4903 (regcache_dup, regcache_cpy): Update comments.
4904
386535dd
PA
49052017-07-18 Pedro Alves <palves@redhat.com>
4906
4907 * remote-sim.c (sim_command_completer): Adjust to work with a
4908 completion_tracker instead of a VEC.
4909
c45ec17c
PA
49102017-07-17 Pedro Alves <palves@redhat.com>
4911
4912 * completer.c (complete_source_filenames): New function.
4913 (complete_address_and_linespec_locations): New function.
4914 (location_completer): Use complete_address_and_linespec_locations.
4915 (completion_tracker::build_completion_result): Honor the tracker's
4916 request to suppress append.
4917 * completer.h (completion_tracker::suppress_append_ws)
4918 (completion_tracker::set_suppress_append_ws): New methods.
4919 (completion_tracker::m_suppress_append_ws): New field.
4920 (complete_source_filenames): New declaration.
4921 * linespec.c (linespec_complete_what): New.
4922 (struct ls_parser) <complete_what, completion_word,
4923 completion_quote_char, completion_quote_end, completion_tracker>:
4924 New fields.
4925 (string_find_incomplete_keyword_at_end): New.
4926 (linespec_lexer_lex_string): Record quote char. If in completion
4927 mode, don't throw.
4928 (linespec_lexer_consume_token): Advance the completion word point.
4929 (linespec_lexer_peek_token): Save/restore completion info.
4930 (save_stream_and_consume_token): New.
4931 (set_completion_after_number): New.
4932 (linespec_parse_basic): Set what to complete next depending on
4933 token. Handle function and label completions specially.
4934 (parse_linespec): Disable objc shortcut in completion mode. Set
4935 what to complete next depending on token type. Skip keyword if in
4936 completion mode.
4937 (complete_linespec_component, linespec_complete): New.
4938 * linespec.h (linespec_complete): Declare.
4939
be966d42
PA
49402017-07-17 Pedro Alves <palves@redhat.com>
4941
4942 * linespec.c (linespec_lexer_lex_string, find_toplevel_char):
4943 Handle 'operator<' / 'operator<<'.
4944
a2459270
PA
49452017-07-17 Pedro Alves <palves@redhat.com>
4946
4947 * completer.c (collect_explicit_location_matches): Handle
4948 MATCH_LABEL.
4949 (convert_explicit_location_to_linespec): New, factored out from
4950 ...
4951 (convert_explicit_location_to_sals): ... this.
4952 (complete_label): New.
4953 (linespec_complete_label, find_label_symbols_in_block): New.
4954 (find_label_symbols): Add completion_mode parameter and adjust to
4955 call find_label_symbols_in_block.
4956 * linespec.h (linespec_complete_label): Declare.
4957
c6756f62
PA
49582017-07-17 Pedro Alves <palves@redhat.com>
4959
4960 * ada-lang.c (ada_collect_symbol_completion_matches): Add
4961 complete_symbol_mode parameter.
4962 * cli/cli-cmds.c (complete_command): Get the completion result out
4963 of the handle_brkchars tracker if used a custom word point.
4964 * completer.c: Include "linespec.h".
4965 (enum explicit_location_match_type) <MATCH_LINE>: New enumerator.
4966 (advance_to_expression_complete_word_point): New.
4967 (completion_tracker::completes_to_completion_word): New.
4968 (complete_files_symbols): Pass down
4969 complete_symbol_mode::EXPRESSION.
4970 (explicit_options, probe_options): New.
4971 (collect_explicit_location_matches): Complete on the
4972 explictit_loc->foo instead of word. Use
4973 linespec_complete_function. Handle MATCH_LINE. Handle offering
4974 keyword and options completions.
4975 (backup_text_ptr): Delete.
4976 (skip_keyword): New.
4977 (complete_explicit_location): Remove 'word' parameter. Add
4978 language, quoted_arg_start and quoted_arg_end parameters.
4979 Rewrite, parsing left to right.
4980 (location_completer): Rewrite.
4981 (location_completer_handle_brkchars): New function.
4982 (symbol_completer): Pass down complete_symbol_mode::EXPRESSION.
4983 (enum complete_line_internal_reason): Adjust comments.
4984 (completion_tracker::discard_completions): New.
4985 (completer_handle_brkchars_func_for_completer): Handle
4986 location_completer.
4987 (gdb_custom_word_point_brkchars)
4988 (gdb_org_rl_basic_quote_characters): New.
4989 (gdb_completion_word_break_characters_throw)
4990 (completion_find_completion_word): Handle trackers that use a
4991 custom word point.
4992 (completion_tracker::advance_custom_word_point_by): New.
4993 (completion_tracker::build_completion_result): Don't rely on
4994 readline appending the quote char.
4995 (gdb_rl_attempted_completion_function_throw): Handle trackers that
4996 use a custom word point.
4997 (gdb_rl_attempted_completion_function): Restore
4998 rl_basic_quote_characters.
4999 * completer.h (class completion_tracker): Extend intro comment.
5000 (completion_tracker::set_quote_char)
5001 (completion_tracker::quote_char)
5002 (completion_tracker::set_use_custom_word_point)
5003 (completion_tracker::use_custom_word_point)
5004 (completion_tracker::custom_word_point)
5005 (completion_tracker::set_custom_word_point)
5006 (completion_tracker::advance_custom_word_point_by)
5007 (completion_tracker::completes_to_completion_word)
5008 (completion_tracker::discard_completions): New methods.
5009 (completion_tracker::m_quote_char)
5010 (completion_tracker::m_use_custom_word_point)
5011 (completion_tracker::m_custom_word_point): New fields.
5012 (advance_to_expression_complete_word_point): Declare.
5013 * f-lang.c (f_collect_symbol_completion_matches): Add
5014 complete_symbol_mode parameter.
5015 * language.h (struct language_defn)
5016 <la_collect_symbol_completion_matches>: Add complete_symbol_mode
5017 parameter.
5018 * linespec.c (linespec_keywords): Add NULL terminator. Make extern.
5019 (linespec_complete_function): New function.
5020 (linespec_lexer_lex_keyword): Adjust.
5021 * linespec.h (linespec_keywords, linespec_complete_function): New
5022 declarations.
5023 * location.c (find_end_quote): New function.
5024 (explicit_location_lex_one): Add explicit_completion_info
5025 parameter. Save quoting info. Don't throw if being called for
5026 completion. Don't handle Ada operators here.
5027 (is_cp_operator, skip_op_false_positives, first_of)
5028 (explicit_location_lex_one_function): New function.
5029 (string_to_explicit_location): Replace 'dont_throw' parameter with
5030 an explicit_completion_info pointer parameter. Handle it. Don't
5031 use explicit_location_lex_one to lex function names. Use
5032 explicit_location_lex_one_function instead.
5033 * location.h (struct explicit_completion_info): New.
5034 (string_to_explicit_location): Replace 'dont_throw' parameter with
5035 an explicit_completion_info pointer parameter.
5036 * symtab.c (default_collect_symbol_completion_matches_break_on):
5037 Add complete_symbol_mode parameter. Handle LINESPEC mode.
5038 (default_collect_symbol_completion_matches)
5039 (collect_symbol_completion_matches): Add complete_symbol_mode
5040 parameter.
5041 (collect_symbol_completion_matches_type): Pass down
5042 complete_symbol_mode::EXPRESSION.
5043 (collect_file_symbol_completion_matches): Add complete_symbol_mode
5044 parameter. Handle LINESPEC mode.
5045 * symtab.h (complete_symbol_mode): New.
5046 (default_collect_symbol_completion_matches_break_on)
5047 (default_collect_symbol_completion_matches)
5048 (collect_symbol_completion_matches)
5049 (collect_file_symbol_completion_matches): Add complete_symbol_mode
5050 parameter.
5051
1d550c82
PA
50522017-07-17 Pedro Alves <palves@redhat.com>
5053
5054 * utils.c (enum class strncmp_iw_mode): New.
5055 (strcmp_iw): Rename to ...
5056 (strncmp_iw_with_mode): ... this. Add string2_len and mode
5057 parameters. Handle them.
5058 (strncmp_iw): New.
5059 (strcmp_iw): Reimplement as wrapper around strncmp_iw_with_mode.
5060 * utils.h (strncmp_iw): Declare.
5061 (strcmp_iw): Move describing comments here.
5062
8090b426
PA
50632017-07-17 Pedro Alves <palves@redhat.com>
5064
5065 * c-exp.y (operator_stoken): Use CP_OPERATOR_LEN and
5066 CP_OPERATOR_STR.
5067 * c-typeprint.c (is_type_conversion_operator): Use
5068 CP_OPERATOR_STR.
5069 * cp-support.c (LENGTH_OF_OPERATOR): Delete.
5070 (cp_find_first_component_aux): Use CP_OPERATOR_STR and
5071 CP_OPERATOR_LEN.
5072 * cp-support.h (CP_OPERATOR_STR, CP_OPERATOR_LEN): New.
5073 * gnu-v2-abi.c (gnuv2_is_operator_name): Use CP_OPERATOR_STR.
5074 * gnu-v3-abi.c (gnuv3_is_operator_name): Use CP_OPERATOR_STR.
5075 * linespec.c (linespec_lexer_lex_string): Use CP_OPERATOR_LEN and
5076 CP_OPERATOR_STR.
5077 * location.c: Include "cp-support.h".
5078 (explicit_location_lex_one): Use CP_OPERATOR_LEN and
5079 CP_OPERATOR_STR.
5080 * symtab.c (operator_chars): Use CP_OPERATOR_STR and
5081 CP_OPERATOR_LEN.
5082
6a2c1b87
PA
50832017-07-17 Pedro Alves <palves@redhat.com>
5084
5085 * cli/cli-cmds.c (complete_command): Use a completion tracker
5086 along with completion_find_completion_word for handle_brkchars
5087 phase.
5088 * completer.c (RL_QF_SINGLE_QUOTE, RL_QF_DOUBLE_QUOTE)
5089 (RL_QF_BACKSLASH, RL_QF_OTHER_QUOTE): New.
5090 (struct gdb_rl_completion_word_info): New.
5091 (gdb_rl_find_completion_word): New.
5092 (completion_find_completion_word): New.
5093 * completer.h (completion_find_completion_word): Declare.
5094
eb3ff9a5
PA
50952017-07-17 Pedro Alves <palves@redhat.com>
5096
5097 * ada-lang.c (symbol_completion_match): Adjust comments.
5098 (symbol_completion_add): Replace vector parameter with
5099 completion_tracker parameter. Use it.
5100 (ada_make_symbol_completion_list): Rename to...
5101 (ada_collect_symbol_completion_matches): ... this. Add
5102 completion_tracker parameter and use it.
5103 (ada_language_defn): Adjust.
5104 * break-catch-syscall.c (catch_syscall_completer): Adjust
5105 prototype and work with completion_tracker instead of VEC.
5106 * breakpoint.c (condition_completer): Adjust prototype and work
5107 with completion_tracker instead of VEC.
5108 * c-lang.c (c_language_defn, cplus_language_defn)
5109 (asm_language_defn, minimal_language_defn): Adjust to renames.
5110 * cli/cli-cmds.c (complete_command): Rework using
5111 completion_tracker. Catch exceptions when completing.
5112 * cli/cli-decode.c (integer_unlimited_completer)
5113 (complete_on_cmdlist, complete_on_enum): Adjust prototype and work
5114 with completion_tracker instead of VEC.
5115 * command.h (struct completion_tracker): Forward declare.
5116 (completer_ftype, completer_handle_brkchars_ftype): Change
5117 types.
5118 (complete_on_cmdlist, complete_on_enum): Adjust.
5119 * completer.c: Include <algorithm>.
5120 (struct gdb_completer_state): New.
5121 (current_completion): New global.
5122 (readline_line_completion_function): Delete.
5123 (noop_completer, filename_completer)
5124 (filename_completer_handle_brkchars, complete_files_symbols)
5125 (linespec_location_completer): Adjust to work with a
5126 completion_tracker instead of a VEC.
5127 (string_or_empty): New.
5128 (collect_explicit_location_matches): Adjust to work with a
5129 completion_tracker instead of a VEC.
5130 (explicit_location_completer): Rename to ...
5131 (complete_explicit_location): ... this and adjust to work with a
5132 completion_tracker instead of a VEC.
5133 (location_completer): Adjust to work with a completion_tracker
5134 instead of a VEC.
5135 (add_struct_fields): Adjust to work with a completion_list instead
5136 of VEC.
5137 (expression_completer): Rename to ...
5138 (complete_expression): ... this and adjust to work with a
5139 completion_tracker instead of a VEC. Use complete_files_symbols.
5140 (expression_completer): Reimplement on top of complete_expression.
5141 (symbol_completer): Adjust to work with a completion_tracker
5142 instead of a VEC.
5143 (enum complete_line_internal_reason): Add describing comments.
5144 (complete_line_internal_normal_command): Adjust to work with a
5145 completion_tracker instead of a VEC.
5146 (complete_line_internal): Rename to ...
5147 (complete_line_internal_1): ... this and adjust to work with a
5148 completion_tracker instead of a VEC. Assert TEXT is NULL in the
5149 handle_brkchars phase.
5150 (new_completion_tracker): Delete.
5151 (complete_line_internal): Reimplement as TRY/CATCH wrapper around
5152 complete_line_internal_1.
5153 (free_completion_tracker): Delete.
5154 (INITIAL_COMPLETION_HTAB_SIZE): New.
5155 (completion_tracker::completion_tracker)
5156 (completion_tracker::~completion_tracker): New.
5157 (maybe_add_completion): Delete.
5158 (completion_tracker::maybe_add_completion)
5159 (completion_tracker::add_completion)
5160 (completion_tracker::add_completions): New.
5161 (throw_max_completions_reached_error): Delete.
5162 (complete_line): Adjust to work with a completion_tracker instead
5163 of a VEC. Don't create a completion_tracker_t or check for max
5164 completions here.
5165 (command_completer, command_completer_handle_brkchars)
5166 (signal_completer, reg_or_group_completer_1)
5167 (reg_or_group_completer, default_completer_handle_brkchars):
5168 Adjust to work with a completion_tracker.
5169 (gdb_completion_word_break_characters_throw): New.
5170 (gdb_completion_word_break_characters): Reimplement.
5171 (line_completion_function): Delete.
5172 (completion_tracker::recompute_lowest_common_denominator)
5173 (expand_preserving_ws)
5174 (completion_tracker::build_completion_result)
5175 (completion_result::completion_result)
5176 (completion_result::completion_result)
5177 (completion_result::~completion_result)
5178 (completion_result::completion_result)
5179 (completion_result::release_match_list, compare_cstrings)
5180 (completion_result::sort_match_list)
5181 (completion_result::reset_match_list)
5182 (gdb_rl_attempted_completion_function_throw)
5183 (gdb_rl_attempted_completion_function): New.
5184 * completer.h (completion_list, struct completion_result)
5185 (class completion_tracker): New.
5186 (complete_line): Add completion_tracker parameter.
5187 (readline_line_completion_function): Delete.
5188 (gdb_rl_attempted_completion_function): New.
5189 (noop_completer, filename_completer, expression_completer)
5190 (location_completer, symbol_completer, command_completer)
5191 (signal_completer, reg_or_group_completer): Update prototypes.
5192 (completion_tracker_t, new_completion_tracker)
5193 (make_cleanup_free_completion_tracker): Delete.
5194 (enum maybe_add_completion_enum): Delete.
5195 (maybe_add_completion): Delete.
5196 (throw_max_completions_reached_error): Delete.
5197 * corefile.c (complete_set_gnutarget): Adjust to work with a
5198 completion_tracker instead of a VEC.
5199 * cp-abi.c (cp_abi_completer): Adjust to work with a
5200 completion_tracker instead of a VEC.
5201 * d-lang.c (d_language_defn): Adjust.
5202 * disasm.c (disassembler_options_completer): Adjust to work with a
5203 completion_tracker instead of a VEC.
5204 * f-lang.c (f_make_symbol_completion_list): Rename to ...
5205 (f_collect_symbol_completion_matches): ... this. Adjust to work
5206 with a completion_tracker instead of a VEC.
5207 (f_language_defn): Adjust.
5208 * go-lang.c (go_language_defn): Adjust.
5209 * guile/scm-cmd.c (cmdscm_add_completion, cmdscm_completer):
5210 Adjust to work with a completion_tracker instead of a VEC.
5211 * infrun.c (handle_completer): Likewise.
5212 * interps.c (interpreter_completer): Likewise.
5213 * interps.h (interpreter_completer): Likewise.
5214 * language.c (unknown_language_defn, auto_language_defn)
5215 (local_language_defn): Adjust.
5216 * language.h (language_defn::la_make_symbol_completion_list):
5217 Rename to ...
5218 (language_defn::la_collect_symbol_completion_matches): ... this
5219 and adjust to work with a completion_tracker instead of a VEC.
5220 * m2-lang.c (m2_language_defn): Adjust.
5221 * objc-lang.c (objc_language_defn): Adjust.
5222 * opencl-lang.c (opencl_language_defn): Adjust.
5223 * p-lang.c (pascal_language_defn): Adjust.
5224 * python/py-cmd.c (cmdpy_completer_helper): Handle NULL word.
5225 (cmdpy_completer_handle_brkchars, cmdpy_completer): Adjust to work
5226 with a completion_tracker.
5227 * rust-lang.c (rust_language_defn): Adjust.
5228 * symtab.c (free_completion_list, do_free_completion_list)
5229 (return_val, completion_tracker): Delete.
5230 (completion_list_add_name, completion_list_add_symbol)
5231 (completion_list_add_msymbol, completion_list_objc_symbol)
5232 (completion_list_add_fields, add_symtab_completions): Add
5233 completion_tracker parameter and use it.
5234 (default_make_symbol_completion_list_break_on_1): Rename to...
5235 (default_collect_symbol_completion_matches_break_on): ... this.
5236 Add completion_tracker parameter and use it instead of allocating
5237 a completion tracker here.
5238 (default_make_symbol_completion_list_break_on): Delete old
5239 implementation.
5240 (default_make_symbol_completion_list): Delete.
5241 (default_collect_symbol_completion_matches): New.
5242 (make_symbol_completion_list): Delete.
5243 (collect_symbol_completion_matches): New.
5244 (make_symbol_completion_type): Rename to ...
5245 (collect_symbol_completion_matches_type): ... this. Add
5246 completion_tracker parameter and use it instead of VEC.
5247 (make_file_symbol_completion_list_1): Rename to...
5248 (collect_file_symbol_completion_matches): ... this. Add
5249 completion_tracker parameter and use it instead of VEC.
5250 (make_file_symbol_completion_list): Delete.
5251 (add_filename_to_list): Use completion_list instead of a VEC.
5252 (add_partial_filename_data::list): Now a completion_list.
5253 (make_source_files_completion_list): Work with a completion_list
5254 instead of a VEC.
5255 * symtab.h: Include "completer.h".
5256 (default_make_symbol_completion_list_break_on)
5257 (default_make_symbol_completion_list, make_symbol_completion_list)
5258 (make_symbol_completion_type, make_file_symbol_completion_list)
5259 (make_source_files_completion_list): Delete.
5260 (default_collect_symbol_completion_matches_break_on)
5261 (default_collect_symbol_completion_matches)
5262 (collect_symbol_completion_matches)
5263 (collect_symbol_completion_matches_type)
5264 (collect_file_symbol_completion_matches)
5265 (make_source_files_completion_list): New.
5266 * top.c (init_main): Don't install a rl_completion_entry_function
5267 hook. Install a rl_attempted_completion_function hook instead.
5268 * tui/tui-layout.c (layout_completer): Adjust to work with a
5269 completion_tracker.
5270 * tui/tui-regs.c (tui_reggroup_completer):
5271 * tui/tui-win.c (window_name_completer, focus_completer)
5272 (winheight_completer): Adjust to work with a completion_tracker.
5273 * value.c: Include "completer.h".
5274 (complete_internalvar): Adjust to work with a completion_tracker.
5275 * value.h (complete_internalvar): Likewise.
5276
6e1dbf8c
PA
52772017-07-17 Pedro Alves <palves@redhat.com>
5278
5279 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): Adjust to
5280 renames.
5281 * cli/cli-decode.h (struct cmd_list_element) <completer>: Move
5282 comments to completer_ftype's declaration.
5283 <completer_handle_brkchars>: Change type to
5284 completer_handle_brkchars_ftype.
5285 * command.h (completer_ftype): Add describing comment and give
5286 names to parameters.
5287 (completer_ftype_void): Rename to ...
5288 (completer_handle_brkchars_ftype) ... this. Add describing comment.
5289 (set_cmd_completer_handle_brkchars): Adjust.
5290 * completer.c (filename_completer_handle_brkchars): New function.
5291 (complete_line_internal_normal_command): New function, factored
5292 out from ...
5293 (complete_line_internal): ... here.
5294 (command_completer_handle_brkchars)
5295 (default_completer_handle_brkchars)
5296 (completer_handle_brkchars_func_for_completer): New functions.
5297 * completer.h (set_gdb_completion_word_break_characters): Delete
5298 declaration.
5299 (completer_handle_brkchars_func_for_completer): New declaration.
5300 * python/py-cmd.c (cmdpy_completer_handle_brkchars): Adjust to use
5301 completer_handle_brkchars_func_for_completer.
5302
78b13106
PA
53032017-07-17 Pedro Alves <palves@redhat.com>
5304
5305 * completer.c (symbol_completer): New function, based on
5306 make_symbol_completion_list_fn.
5307 * completer.h (symbol_completer): New declaration.
5308 * guile/scm-cmd.c (cmdscm_completers): Adjust.
5309 * python/py-cmd.c (completers): Adjust.
5310 * symtab.c (make_symbol_completion_list_fn): Delete.
5311 * symtab.h (make_symbol_completion_list_fn): Delete.
5312 * cli/cli-decode.c (add_cmd): Adjust.
5313
bbf2f4df
PA
53142017-07-17 Pedro Alves <palves@redhat.com>
5315
5316 * Makefile.in (COMMON_OBS): Add filename-seen-cache.o.
5317 * dwarf2read.c: Include "filename-seen-cache.h".
5318 * dwarf2read.c (dwarf2_per_objfile) <filenames_cache>: New field.
5319 (dw2_map_symbol_filenames): Build and use a filenames_seen_cache.
5320 * filename-seen-cache.c: New file.
5321 * filename-seen-cache.h: New file.
5322 * symtab.c: Include "filename-seen-cache.h".
5323 (struct filename_seen_cache, INITIAL_FILENAME_SEEN_CACHE_SIZE)
5324 (create_filename_seen_cache, clear_filename_seen_cache)
5325 (delete_filename_seen_cache, filename_seen): Delete, parts moved
5326 to filename-seen-cache.h/filename-seen-cache.c.
5327 (output_source_filename, sources_info)
5328 (maybe_add_partial_symtab_filename)
5329 (make_source_files_completion_list): Adjust to use
5330 filename_seen_cache.
5331
330cdd98
PA
53322017-07-17 Pedro Alves <palves@redhat.com>
5333
5334 * dwarf2read.c (dwarf2_per_objfile): In-class initialize all
5335 fields.
5336 (dwarf2_per_objfile::dwarf2_per_objfile(objfile*, const
5337 dwarf2_debug_sections*)): New.
5338 (dwarf2_per_objfile::dwarf2_per_objfile(const
5339 dwarf2_per_objfile&)): Declare as deleted.
5340 (dwarf2_per_objfile::operator=): Declare as deleted.
5341 (dwarf2_per_objfile::dwarf2_per_objfile)
5342 (dwarf2_per_objfile::~dwarf2_per_objfile)
5343 (dwarf2_per_objfile::free_cached_comp_units): New.
5344 (dwarf2_has_info): dwarf2_per_objfile initialization code moved to
5345 ctor. Call dwarf2_per_objfile's ctor manually.
5346 (dwarf2_locate_sections): Deleted/refactored as ...
5347 (dwarf2_per_objfile::locate_sections): ... this new method.
5348 (free_cached_comp_units): Defer to
5349 dwarf2_per_objfile::free_cached_comp_units.
5350 (dwarf2_free_objfile): Call dwarf2_per_objfile's dtor manually.
5351
8880f2a9
TT
53522017-07-14 Tom Tromey <tom@tromey.com>
5353
5354 PR rust/21764:
5355 * rust-exp.y (convert_ast_to_expression): Add "want_type"
5356 parameter.
5357 <UNOP_SIZEOF>: Split into separate case.
5358 <UNOP_VAR_VALUE>: Handle want_type. Add error case.
5359
65547233
TT
53602017-07-14 Tom Tromey <tom@tromey.com>
5361
5362 PR rust/21763:
5363 * symtab.c (symbol_matches_domain): Add language_rust to special
5364 case.
5365 * rust-exp.y (convert_ast_to_expression) <OP_VAR_VALUE>: Don't
5366 treat LOC_TYPEDEF symbols as variables.
5367
8f14146e
PA
53682017-07-14 Pedro Alves <palves@redhat.com>
5369
5370 * symtab.c (make_file_symbol_completion_list_1): Iterate over
5371 symtabs matching all symtabs with SRCFILE as file name instead of
5372 only considering the first hit, with lookup_symtab.
5373
2347965c
SM
53742017-07-14 Simon Marchi <simon.marchi@ericsson.com>
5375
5376 * ax-gdb.c (gen_aggregate_elt_ref): Remove operand_name and
5377 operator_name parameters.
5378 (gen_expr): Update function call.
5379
40f4af28
SM
53802017-07-14 Simon Marchi <simon.marchi@ericsson.com>
5381
5382 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Remove gdbarch
5383 parameter.
5384 * symtab.h (struct symbol_computed_ops::tracepoint_var_ref):
5385 Likewise.
5386 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove gdbarch
5387 parameter, use agent_expr::gdbarch instead, update function
5388 calls.
5389 (locexpr_tracepoint_var_ref): Likewise.
5390 (loclist_tracepoint_var_ref): Likewise.
5391 * ax-gdb.c (gen_trace_static_fields): Likewise.
5392 (gen_traced_pop): Likewise.
5393 (gen_frame_args_address): Likewise.
5394 (gen_frame_locals_address): Likewise.
5395 (gen_var_ref): Likewise.
5396 (gen_struct_ref_recursive): Likewise.
5397 (gen_static_field): Likewise.
5398 (gen_maybe_namespace_elt): Likewise.
5399 (gen_expr): Likewise.
5400 (gen_trace_for_var): Likewise.
5401 (gen_trace_for_expr): Likewise.
5402 (gen_trace_for_return_address): Likewise.
5403
053f8057
SM
54042017-07-14 Simon Marchi <simon.marchi@ericsson.com>
5405
5406 * ax-gdb.c (gen_deref, gen_address_of): Remove unused ax
5407 parameter.
5408 (gen_struct_ref, gen_expr, gen_expr_binop_rest): Update call.
5409
6661ad48
SM
54102017-07-14 Simon Marchi <simon.marchi@ericsson.com>
5411
5412 * ax-gdb.c (gen_usual_unary): Remove exp parameter, get gdbarch
5413 from ax, update calls.
5414 (gen_usual_arithmetic): Likewise.
5415 (gen_integral_promotions): Likewise.
5416 (gen_bitfield_ref): Likewise.
5417 (gen_primitive_field): Likewise.
5418 (gen_struct_ref_recursive): Likewise.
5419 (gen_struct_ref): Likewise.
5420 (gen_maybe_namespace_elt): Likewise.
5421 (gen_struct_elt_for_reference): Likewise.
5422 (gen_namespace_elt): Likewise.
5423 (gen_aggregate_elt_ref): Likewise.
5424 (gen_expr): Get gdbarch from ax, update calls.
5425 (gen_expr_binop_rest): Likewise.
5426
c55a47e7
PA
54272017-07-13 Pedro Alves <palves@redhat.com>
5428
5429 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Pass tdesc_amd64
5430 as default tdesc.
5431 * amd64-dicos-tdep.c (amd64_dicos_init_abi):
5432 * amd64-fbsd-tdep.c (amd64fbsd_init_abi):
5433 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass
5434 tdesc_amd64_linux as default tdesc. Get final tdesc from the
5435 tdep.
5436 (amd64_x32_linux_init_abi): Pass tdesc_x32_linux as default tdesc.
5437 Get final tdesc from the tdep.
5438 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Pass tdesc_amd64 as
5439 default tdesc.
5440 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
5441 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
5442 * amd64-tdep.c (amd64_init_abi): Add 'default_tdesc' parameter.
5443 Use it as default tdesc.
5444 (amd64_x32_init_abi): Add 'default_tdesc' parameter, and pass it
5445 down to amd_init_abi. No longer handle fallback tdesc here.
5446 * amd64-tdep.h (tdesc_x32): Declare.
5447 (amd64_init_abi, amd64_x32_init_abi): Add 'default_tdesc'
5448 parameter.
5449 * amd64-windows-tdep.c (amd64_windows_init_abi): Pass tdesc_amd64
5450 as default tdesc.
5451
55efceab
AA
54522017-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5453
5454 * s390-linux-tdep.c (s390_process_record): Add support for
5455 instructions new in arch12.
5456
0aa37b65
JB
54572017-07-11 John Baldwin <jhb@FreeBSD.org>
5458
5459 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
5460 PT_GETFSBASE and PT_GETGSBASE.
5461 (amd64bsd_store_inferior_registers): Use PT_SETFSBASE and
5462 PT_SETGSBASE.
5463
48aeef91
JB
54642017-07-11 John Baldwin <jhb@FreeBSD.org>
5465
5466 * features/Makefile (amd64.dat, amd64-avx.dat, amd64-mpx.dat)
5467 (amd64-avx-mpx.dat, amd64-avx-avx512.dat)
5468 (amd64-avx-mpx-avx512-pku.dat): Add i386/64bit-segments.xml in
5469 those rules.
5470 * features/i386/amd64-avx-avx512.xml: Add 64bit-segments.xml.
5471 * features/i386/amd64-avx-mpx-avx512-pku.xml: Add 64bit-segments.xml.
5472 * features/i386/amd64-avx-mpx.xml: Add 64bit-segments.xml.
5473 * features/i386/amd64-avx.xml: Add 64bit-segments.xml.
5474 * features/i386/amd64-mpx.xml: Add 64bit-segments.xml.
5475 * features/i386/amd64.xml: Add 64bit-segments.xml.
5476 * features/i386/amd64-avx-avx512.c: Regenerated.
5477 * features/i386/amd64-avx-mpx-avx512-pku.c: Regenerated.
5478 * features/i386/amd64-avx-mpx.c: Regenerated.
5479 * features/i386/amd64-avx.c: Regenerated.
5480 * features/i386/amd64-mpx.c: Regenerated.
5481 * features/i386/amd64.c: Regenerated.
5482 * regformats/i386/amd64-avx-avx512.dat: Regenerated.
5483 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
5484 * regformats/i386/amd64-avx-mpx.dat: Regenerated.
5485 * regformats/i386/amd64-avx.dat: Regenerated.
5486 * regformats/i386/amd64-mpx.dat: Regenerated.
5487 * regformats/i386/amd64.dat: Regenerated.
5488
77c501bc
YQ
54892017-07-10 Yao Qi <yao.qi@linaro.org>
5490
5491 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
5492 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
5493
6dc8d757
AK
54942017-07-10 Anton Kolesov <Anton.Kolesov@synopsys.com>
5495
5496 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add setenv and
5497 unsetenv.
5498 * gnulib/aclocal.m4: Regenerate.
5499 * gnulib/config.in: Regenerate.
5500 * gnulib/configure: Regenerate.
5501 * gnulib/import/Makefile.am: Regenerate.
5502 * gnulib/import/Makefile.in: Regenerate.
5503 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
5504 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
5505 * gnulib/import/m4/environ.m4: New file.
5506 * gnulib/import/m4/setenv.m4: New file.
5507 * gnulib/import/setenv.c: New file.
5508 * gnulib/import/unsetenv.c: New file.
5509
266934d1
SM
55102017-07-09 Simon Marchi <simon.marchi@ericsson.com>
5511
5512 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Read
5513 address when op is DW_OP_addr.
5514
03278692
TT
55152017-07-09 Tom Tromey <tom@tromey.com>
5516
5517 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Reverse size
5518 check and apply to outer type.
5519
4b654465
JB
55202017-07-07 John Baldwin <jhb@FreeBSD.org>
5521
5522 * fbsd-tdep.c (LWPINFO_OFFSET, LWPINFO_PL_FLAGS)
5523 (LWPINFO64_PL_SIGINFO, LWPINFO32_PL_SIGINFO, PL_FLAG_SI)
5524 (SIZE64_SIGINFO_T, SIZE32_SIGINFO_T, fbsd_core_xfer_siginfo): New.
5525 (fbsd_init_abi): Install gdbarch "core_xfer_siginfo" method.
5526
2af9fc44
JB
55272017-07-07 John Baldwin <jhb@FreeBSD.org>
5528
5529 * fbsd-tdep.c (fbsd_core_thread_name): Use thread_section_name.
5530
382b69bb
JB
55312017-07-07 John Baldwin <jhb@FreeBSD.org>
5532
5533 * corelow.c (get_core_siginfo): Remove.
5534 (core_xfer_partial): Use the gdbarch "core_xfer_siginfo" method
5535 instead of get_core_siginfo.
5536 * gdbarch.sh (core_xfer_siginfo): New gdbarch callback.
5537 * gdbarch.h: Re-generate.
5538 * gdbarch.c: Re-generate.
5539 * linux-tdep.c (linux_core_xfer_siginfo): New.
5540 (linux_init_abi): Install gdbarch "core_xfer_siginfo" method.
5541
6e5eab33
JB
55422017-07-07 John Baldwin <jhb@FreeBSD.org>
5543
5544 * corelow.c (thread_section_name): Move to ...
5545 * gdbcore.h (thread_section_name): ... here.
5546
929edea9
JB
55472017-07-07 John Baldwin <jhb@FreeBSD.org>
5548
5549 * fbsd-nat.c [PT_LWPINFO && __LP64__] (union sigval32)
5550 (struct siginfo32): New.
5551 [PT_LWPINFO] (fbsd_siginfo_size, fbsd_convert_siginfo): New.
5552 (fbsd_xfer_partial) [PT_LWPINFO]: Handle TARGET_OBJECT_SIGNAL_INFO
5553 via ptrace(PT_LWPINFO).
5554
762c974a
JB
55552017-07-07 John Baldwin <jhb@FreeBSD.org>
5556
5557 * fbsd-tdep.c (fbsd_gdbarch_data_handle, struct fbsd_gdbarch_data)
5558 (init_fbsd_gdbarch_data, get_fbsd_gdbarch_data)
5559 (fbsd_get_siginfo_type): New.
5560 (fbsd_init_abi): Install gdbarch "get_siginfo_type" method.
5561 (_initialize_fbsd_tdep): New.
5562
33c5cd75
DB
55632017-07-06 David Blaikie <dblaikie@gmail.com>
5564
5565 * dwarf2read.c (struct dwo_file): Use a htab of dwo_unit* (rather than
5566 a singular dwo_unit*) to support multiple CUs in the same way that
5567 multiple TUs are supported.
5568 (create_cus_hash_table): Replace create_dwo_cu with a function for
5569 parsing multiple CUs from a DWO file.
5570 (open_and_init_dwo_file): Use create_cus_hash_table rather than
5571 create_dwo_cu.
5572 (lookup_dwo_cutu): Lookup CU in the hash table in the dwo_file with
5573 htab_find, rather than comparing the signature to a singleton CU in
5574 the dwo_file.
5575
8455d262
PA
55762017-07-06 Pedro Alves <palves@redhat.com>
5577
5578 * python/py-unwind.c (pyuw_dealloc_cache): Fix for loop condition.
5579
4da3eb35
PA
55802017-07-04 Pedro Alves <palves@redhat.com>
5581
5582 * gdbtypes.c (recursive_dump_type): Don't reference TYPE_STATIC.
5583 * gdbtypes.h (TYPE_STATIC): Delete.
5584 (struct fn_field) <is_public, is_abstract, is_static, is_final,
5585 is_synchronized, is_native>: Delete.
5586 <dummy>: Bump.
5587 (TYPE_FN_FIELD_PUBLIC, TYPE_FN_FIELD_STATIC, TYPE_FN_FIELD_FINAL)
5588 (TYPE_FN_FIELD_SYNCHRONIZED, TYPE_FN_FIELD_NATIVE)
5589 (TYPE_FN_FIELD_ABSTRACT): Delete.
5590
5bfd255c
SM
55912017-07-03 Simon Marchi <simon.marchi@ericsson.com>
5592
5593 * buffer.h (buffer_finish): Fix spelling mistakes.
5594
25c54127
EZ
55952017-07-01 Eli Zaretskii <eliz@gnu.org>
5596
5597 * .dir-locals.el: Automatically switch to C-style comments in
5598 versions of Emacs that support the feature.
5599
dc4bde35
SDJ
56002017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
5601 Pedro Alves <palves@redhat.com>
5602
5603 PR cli/21688
5604 * cli/cli-script.c (command_name_equals_not_inline): Remove function.
5605 (process_next_line): New variable 'inline_cmd'.
5606 Adjust 'if' clauses for "python", "compile" and "guile" to use
5607 'command_name_equals' and check for '!inline_cmd'.
5608
51ed89aa
SDJ
56092017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
5610
5611 PR cli/21688
5612 * cli/cli-script.c (command_name_equals_not_inline): New function.
5613 (process_next_line): Adjust 'if' clauses for "python", "compile"
5614 and "guile" to use command_name_equals_not_inline.
5615
eb17d413
PA
56162017-06-29 Pedro Alves <palves@redhat.com>
5617
5618 * completer.c (expression_completer): Call
5619 linespec_location_completer instead of location_completer.
5620
195bcdd5
PA
56212017-06-29 Pedro Alves <palves@redhat.com>
5622
5623 * completer.c (expression_completer): Remove code that recomputes
5624 'text' from 'word'.
5625
adc764e7
YQ
56262017-06-29 Yao Qi <yao.qi@linaro.org>
5627
5628 * regformats/regdat.sh: Generate code with
5629 "ifndef IN_PROCESS_AGENT".
5630
6e75794e
PA
56312017-06-28 Pedro Alves <palves@redhat.com>
5632
5633 * command.h: Include "common/scoped_restore.h".
5634
bc491f2e
YQ
56352017-06-28 Yao Qi <yao.qi@linaro.org>
5636
5637 * mi/mi-cmd-break.c (mi_argv_to_format): Use obstack_grow_str
5638 instead of obstack_grow.
5639
41664b45
DG
56402017-06-28 Doug Gilmore <Doug.Gilmore@imgtec.com>
5641
5642 PR gdb/21337
5643 * symfile.c (reread_symbols): Call objfiles_changed just before
5644 read_symbols.
5645
6da67eb1
PA
56462017-06-27 Pedro Alves <palves@redhat.com>
5647
5648 * symtab.c (COMPLETION_LIST_ADD_SYMBOL)
5649 (MCOMPLETION_LIST_ADD_SYMBOL): Delete macros, replace with ...
5650 (completion_list_add_symbol, completion_list_add_msymbol):
5651 ... these new functions.
5652 (add_symtab_completions)
5653 (default_make_symbol_completion_list_break_on_1): Adjust.
5654
23732b1e
PA
56552017-06-27 Pedro Alves <palves@redhat.com>
5656
5657 * objfiles.c (get_objfile_bfd_data): Call bfd_alloc instead of
5658 bfd_zalloc. Call objfile_per_bfd_storage's ctor.
5659 (free_objfile_per_bfd_storage): Call objfile_per_bfd_storage's
5660 dtor.
5661 * objfiles.h (objfile_per_bfd_storage): Add ctor. Make
5662 'storage_obstack' field an auto_obstack. In-class initialize all
5663 non-bitfield fields. Make minsyms_read bool.
5664 * symfile.c (read_symbols): Adjust.
5665
a4d1e79a
AH
56662017-06-27 Alan Hayward <alan.hayward@arm.com>
5667
5668 * remote-sim.c (gdbsim_fetch_register): Use byte_vector.
5669 (gdbsim_store_register): Likewise.
5670
8268c778
PA
56712017-06-27 Pedro Alves <palves@redhat.com>
5672
5673 * c-exp.y (name_obstack): Now an auto_obstack.
5674 (yylex): Use auto_obstack::clear.
5675 (c_parse): Use auto_obstack::clear instead of reinitializing and
5676 freeing the obstack.
5677 * c-lang.c (evaluate_subexp_c): Use auto_obstack.
5678 * d-exp.y (name_obstack): Now an auto_obstack.
5679 (yylex): Use auto_obstack::clear.
5680 (d_parse): Use auto_obstack::clear instead of reinitializing and
5681 freeing the obstack.
5682 * dwarf2loc.c (fetch_const_value_from_synthetic_pointer): Use
5683 auto_obstack.
5684 * dwarf2read.c (create_addrmap_from_index)
5685 (dwarf2_build_psymtabs_hard)
5686 (update_enumeration_type_from_children): Likewise.
5687 * gdb_obstack.h (auto_obstack): New type.
5688 * go-exp.y (name_obstack): Now an auto_obstack.
5689 (build_packaged_name): Use auto_obstack::clear.
5690 (go_parse): Use auto_obstack::clear instead of reinitializing and
5691 freeing the obstack.
5692 * linux-tdep.c (linux_make_mappings_corefile_notes): Use
5693 auto_obstack.
5694 * printcmd.c (printf_wide_c_string, ui_printf): Use auto_obstack.
5695 * rust-exp.y (work_obstack): Now an auto_obstack.
5696 (rust_parse, rust_lex_tests): Use auto_obstack::clear instead of
5697 reinitializing and freeing the obstack.
5698 * utils.c (do_obstack_free, make_cleanup_obstack_free): Delete.
5699 (host_char_to_target): Use auto_obstack.
5700 * utils.h (make_cleanup_obstack_free): Delete declaration.
5701 * valprint.c (generic_emit_char, generic_printstr): Use
5702 auto_obstack.
5703
db665f42
SM
57042017-06-27 Simon Marchi <simon.marchi@ericsson.com>
5705
5706 * darwin-nat.c (darwin_check_new_threads): Don't handle dummy
5707 thread.
5708 (darwin_init_thread_list): Don't update dummy thread.
5709 (darwin_create_inferior, darwin_attach): Don't add a dummy thread.
5710
873c0814
SM
57112017-06-26 Simon Marchi <simon.marchi@ericsson.com>
5712
5713 * record-full.c (netorder16): Remove.
5714
8b5a7a6e
SM
57152017-06-26 Simon Marchi <simon.marchi@ericsson.com>
5716
5717 * common/diagnostics.h: Define macros for GCC.
5718 (DIAGNOSTIC_IGNORE_UNUSED_FUNCTION): New macro.
5719 * common/vec.h: Include diagnostics.h.
5720 (DIAGNOSTIC_IGNORE_UNUSED_VEC_FUNCTION): New macro.
5721 (DEF_VEC_I, DEF_VEC_P, DEF_VEC_O): Ignore -Wunused-function
5722 warning.
5723
d1435379
SM
57242017-06-26 Simon Marchi <simon.marchi@ericsson.com>
5725
5726 * common/diagnostics.h (DIAGNOSTIC_IGNORE_DEPRECATED_REGISTER):
5727 New macro.
5728 * ada-lex.l: Ignore deprecated register warnings.
5729
cc75e0fd
SM
57302017-06-25 Simon Marchi <simon.marchi@ericsson.com>
5731
5732 * main.c (get_init_files): Replace "SYSTEM_GDBINIT +
5733 datadir_len" with "&SYSTEM_GDBINIT[datadir_len]".
5734
07809eaf
SM
57352017-06-25 Simon Marchi <simon.marchi@ericsson.com>
5736
5737 * dtrace-probe.c (dtrace_process_dof_probe): Put semi-colon on
5738 its own line.
5739
f076f034
SM
57402017-06-25 Simon Marchi <simon.marchi@ericsson.com>
5741
5742 * nat/x86-dregs.c (x86_show_dr): Print registers one per line.
5743
0dd5cbc5
AH
57442017-06-23 Alan Hayward <alan.hayward@arm.com>
5745
5746 * xtensa-tdep.c (XTENSA_MAX_REGISTER_SIZE): Add.
5747 (xtensa_register_write_masked): Use XTENSA_MAX_REGISTER_SIZE.
5748 (xtensa_register_read_masked): Likewise.
5749
d4c6ce5b
SDJ
57502017-06-22 Sergio Durigan Junior <sergiodj@redhat.com>
5751
5752 * common/environ.c (gdb_environ::unset): Update comment.
5753
16892a03
AH
57542017-06-22 Alan Hayward <alan.hayward@arm.com>
5755
5756 * python/py-unwind.c (pyuw_sniffer): Allocate space for
5757 registers.
5758
d7dcbefc
AH
57592017-06-22 Alan Hayward <alan.hayward@arm.com>
5760
5761 * record-full.c (record_full_exec_insn): Use byte_vector.
5762
b30ff123
YQ
57632017-06-22 Yao Qi <yao.qi@linaro.org>
5764
5765 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Regenerated.
5766 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
5767
4fa847d7
AH
57682017-06-22 Alan Hayward <alan.hayward@arm.com>
5769
5770 * remote.c (cached_reg): Move from here...
5771 * regcache.h (cached_reg): ...to here.
5772 * python/py-unwind.c (struct reg_info): Remove.
5773 (cached_frame_info): Use cached_reg_t.
5774 (pyuw_prev_register): Likewise.
5775 (pyuw_sniffer): Use cached_reg_t and allocate registers.
5776 (pyuw_dealloc_cache): Free all registers.
5777
f4906a9a
PA
57782017-06-22 Pedro Alves <palves@redhat.com>
5779 Simon Marchi <simon.marchi@ericsson.com>
5780
5781 * unittests/environ-selftests.c (run_tests): Ignore -Wself-move
5782 warning.
5783 * common/diagnostics.h: New file.
5784
b45a1208
PA
57852017-06-22 Pedro Alves <palves@redhat.com>
5786
5787 * common/agent.h: Add include guards.
5788
e4da2c61
SM
57892017-06-21 Simon Marchi <simon.marchi@ericsson.com>
5790
5791 * target.h (struct target_ops) <to_xfer_partial>: Update doc to
5792 talk about addressable units instead of bytes.
5793
96160d60
SDJ
57942017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
5795
5796 * common/environ.c (gdb_environ::unset): Use '::iterator' instead
5797 of '::const_iterator'.
5798
9a6c7d9c
SDJ
57992017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
5800
5801 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
5802 'unittests/environ-selftests.c'.
5803 (SUBDIR_UNITTESTS_OBS): Add 'environ-selftests.o'.
5804 * charset.c (find_charset_names): Declare object 'iconv_env'.
5805 Update code to use 'iconv_env' object. Remove call to
5806 'free_environ'.
5807 * common/environ.c: Include <utility>.
5808 (make_environ): Delete function.
5809 (free_environ): Delete function.
5810 (gdb_environ::clear): New function.
5811 (gdb_environ::operator=): New function.
5812 (gdb_environ::get): Likewise.
5813 (environ_vector): Delete function.
5814 (set_in_environ): Delete function.
5815 (gdb_environ::set): New function.
5816 (unset_in_environ): Delete function.
5817 (gdb_environ::unset): New function.
5818 (gdb_environ::envp): Likewise.
5819 * common/environ.h: Include <vector>.
5820 (struct gdb_environ): Delete; transform into...
5821 (class gdb_environ): ... this class.
5822 (free_environ): Delete prototype.
5823 (init_environ, get_in_environ, set_in_environ, unset_in_environ,
5824 environ_vector): Likewise.
5825 * infcmd.c (run_command_1): Update code to call
5826 'envp' from 'gdb_environ' class.
5827 (environment_info): Update code to call methods from 'gdb_environ'
5828 class.
5829 (unset_environment_command): Likewise.
5830 (path_info): Likewise.
5831 (path_command): Likewise.
5832 * inferior.c (inferior::~inferior): Delete call to 'free_environ'.
5833 (inferior::inferior): Initialize 'environment' using the host's
5834 information.
5835 * inferior.h: Remove forward declaration of 'struct gdb_environ'.
5836 Include "environ.h".
5837 (class inferior) <environment>: Change type from 'struct
5838 gdb_environ' to 'gdb_environ'.
5839 * mi/mi-cmd-env.c (mi_cmd_env_path): Update code to call
5840 methods from 'gdb_environ' class.
5841 * solib.c (solib_find_1): Likewise
5842 * unittests/environ-selftests.c: New file.
5843
75c554cf
YQ
58442017-06-20 Yao Qi <yao.qi@linaro.org>
5845
5846 * features/i386/i386-linux.xml: Exchange the order of including
5847 32bit-linux.xml and 32bit-sse.xml.
5848 * features/i386/i386-linux.c: Regenerated.
5849
72ddacb7
YQ
58502017-06-20 Yao Qi <yao.qi@linaro.org>
5851
5852 * target-descriptions.c (tdesc_reg): Add ctor, dtor.
5853 Delete copy ctor and assignment operator.
5854 (tdesc_type): Likewise.
5855 (tdesc_feature): Likewise.
5856 (tdesc_free_reg): Remove.
5857 (tdesc_create_reg): Use new.
5858 (tdesc_free_type): Remove.
5859 (tdesc_create_vector): Use new.
5860 (tdesc_create_union): Likewise.
5861 (tdesc_create_flags): Likewise.
5862 (tdesc_create_enum): Likewise.
5863 (tdesc_free_feature): Delete.
5864 (free_target_description): Use delete.
5865
325c9fd4
JB
58662017-06-19 John Baldwin <jhb@FreeBSD.org>
5867
5868 * mips-tdep.c (print_gp_register_row): Don't error for unavailable
5869 registers.
5870
16b7a719
PA
58712017-06-19 Pedro Alves <palves@redhat.com>
5872
5873 * dwarf2read.c (write_psymtabs_to_index): Construct file_closer
5874 after gdb::unlinker.
5875
1c8e01c9
SDJ
58762017-06-19 Sergio Durigan Junior <sergiodj@redhat.com>
5877
5878 * mi/mi-cm-env.c (_initialize_mi_cmd_env): Use getenv instead of
5879 gdb_environ to access an environment variable.
5880
ffce45d2
TP
58812017-06-18 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
5882
5883 * nat/linux-ptrace.c (linux_fork_to_function): Add cast to
5884 gdb_byte*.
5885
1d4fbac9
SM
58862017-06-17 Simon Marchi <simon.marchi@ericsson.com>
5887
5888 * nat/fork-inferior.h (trace_start_error): Add ATTRIBUTE_PRINTF.
5889
8465943a
SM
58902017-06-17 Simon Marchi <simon.marchi@ericsson.com>
5891
5892 * configure: Re-generate.
5893 * warning.m4 (build_warnings): Add -Wno-mismatched-tags.
5894
3e019bdc
SM
58952017-06-17 Simon Marchi <simon.marchi@ericsson.com>
5896
5897 * configure: Re-generate.
5898 * warning.m4: Pass -Werror to compiler when checking for
5899 supported warning flags.
5900
cf0dd6f0
SM
59012017-06-17 Simon Marchi <simon.marchi@ericsson.com>
5902
5903 * Makefile.in (COMPILE.pre): Add "-x c++".
5904
6f98355c
YQ
59052017-06-16 Alan Hayward <alan.hayward@arm.com>
5906 Pedro Alves <palves@redhat.com>
5907 Yao Qi <yao.qi@linaro.org>
5908
5909 * defs.h (RequireLongest): New.
5910 (extract_integer): Declare function template.
5911 (extract_signed_integer): Remove the declaration, but define it
5912 static inline.
5913 (extract_unsigned_integer): Likewise.
5914 (store_integer): Declare function template.
5915 (store_signed_integer): Remove the declaration, but define it
5916 static inline.
5917 (store_unsigned_integer): Likewise.
5918 * findvar.c (extract_integer): New function template.
5919 (extract_signed_integer): Remove.
5920 (extract_unsigned_integer): Remove.
5921 (extract_integer<LONGEST>, extract_integer<ULONGEST>): Explicit
5922 instantiations.
5923 (store_integer): New function template.
5924 (store_signed_integer): Remove.
5925 (store_unsigned_integer): Remove.
5926 (store_integer): Explicit instantiations.
5927 * regcache.c (regcache_raw_read_signed): Update.
5928 (regcache::raw_read): New function.
5929 (regcache::raw_read_signed): Remove.
5930 (regcache::raw_read_unsigned): Remove.
5931 (regcache_raw_read_unsigned): Update.
5932 (regcache_raw_write_unsigned): Update.
5933 (regcache::raw_write_signed): Remove.
5934 (regcache::raw_write): New function.
5935 (regcache_cooked_read_signed): Update.
5936 (regcache::raw_write_unsigned): Remove.
5937 (regcache::cooked_read_signed): Remove.
5938 (regcache_cooked_read_unsigned): Update.
5939 (regcache::cooked_read_unsigned): Remove.
5940 (regcache_cooked_write_signed): Update.
5941 (regcache_cooked_write_unsigned): Update.
5942 * regcache.h (regcache) <raw_read_signed>: Remove.
5943 <raw_write_signed, raw_read_unsigned, raw_write_unsigned>: Remove.
5944 <raw_read, raw_write>: New.
5945 <cooked_read_signed, cooked_write_signed>: Remove.
5946 <cooked_write_unsigned, cooked_read_unsigned>: Remove.
5947 <cooked_read, cooked_write>: New.
5948 * sh64-tdep.c (sh64_pseudo_register_read): Update.
5949 (sh64_pseudo_register_write): Update.
5950
a87dc45a
AK
59512017-06-16 Anton Kolesov <anton.kolesov@synopsys.com>
5952
5953 * arc-tdep.c (arc_disassembler_options): New variable.
5954 (arc_gdbarch_init): Set and use it. Use arc_delayed_print_insn instead
5955 of default_print_insn.
5956 (arc_delayed_print_insn): Set info->section when needed,
5957 use default_print_insn to retrieve a disassembler.
5958
45159d6a
SDJ
59592017-06-14 Sergio Durigan Junior <sergiodj@redhat.com>
5960
5961 PR gdb/21574
5962 * infcmd.c (_initialize_infcmd): Expand "help run" documentation
5963 to mention $SHELL and startup-with-shell.
5964
b46c4cf0
MF
59652017-06-14 Max Filippov <jcmvbkbc@gmail.com>
5966
5967 * MAINTAINERS: Move Maxim Grigoriev to the Past Maintainers.
5968
6394c606
YQ
59692017-06-14 Yao Qi <yao.qi@linaro.org>
5970
5971 * aarch64-tdep.c (aarch64_gdb_print_insn): Call
5972 default_print_insn instead of print_insn_aarch64.
5973 * arm-tdep.c (gdb_print_insn_arm): Call
5974 default_print_insn instead of print_insn_big_arm
5975 and print_insn_little_arm.
5976 * i386-tdep.c (i386_print_insn): Call default_print_insn
5977 instead of print_insn_i386.
5978 * ia64-tdep.c (ia64_print_insn): Call
5979 default_print_insn instead of print_insn_ia64.
5980 * mips-tdep.c (gdb_print_insn_mips): Call
5981 default_print_insn instead of print_insn_big_mips
5982 and print_insn_little_mips.
5983 * spu-tdep.c (gdb_print_insn_spu): Call default_print_insn
5984 instead of print_insn_spu.
5985
d5722aa2
PA
59862017-06-14 Pedro Alves <palves@redhat.com>
5987
5988 * ada-lang.c: Include "common/byte-vector.h".
5989 (ada_value_primitive_packed_val): Use gdb::byte_vector.
5990 * charset.c (wchar_iterator::iterate): Resize the vector instead
5991 of reserving it.
5992 * common/byte-vector.h: Include "common/def-vector.h".
5993 (wchar_iterator::m_out): Now a gdb::def_vector<gdb_wchar_t>.
5994 * cli/cli-dump.c: Include "common/byte-vector.h".
5995 (dump_memory_to_file, restore_binary_file): Use gdb::byte_vector.
5996 * common/byte-vector.h: New file.
5997 * common/def-vector.h: New file.
5998 * common/default-init-alloc.h: New file.
5999 * dwarf2loc.c: Include "common/byte-vector.h".
6000 (rw_pieced_value): Use gdb::byte_vector, and resize the vector
6001 instead of reserving it.
6002 * dwarf2read.c: Include "common/byte-vector.h".
6003 (data_buf::m_vec): Now a gdb::byte_vector.
6004 * gdb_regex.c: Include "common/def-vector.h".
6005 (compiled_regex::compiled_regex): Use gdb::def_vector<char>.
6006 * mi/mi-main.c: Include "common/byte-vector.h".
6007 (mi_cmd_data_read_memory): Use gdb::byte_vector.
6008 * printcmd.c: Include "common/byte-vector.h".
6009 (print_scalar_formatted): Use gdb::byte_vector.
6010 * valprint.c: Include "common/byte-vector.h".
6011 (maybe_negate_by_bytes, print_decimal_chars): Use
6012 gdb::byte_vector.
6013
01ec7a27
SM
60142017-06-13 Simon Marchi <simon.marchi@ericsson.com>
6015
6016 * darwin-nat.c: Include "nat/fork-inferior.h".
6017
848d9074
SM
60182017-06-13 Simon Marchi <simon.marchi@ericsson.com>
6019
6020 * configure.nat: Factor out Darwin bits that are not
6021 architecture-specific. Add fork-inferior.o.
6022
3b912944
SM
60232017-06-13 Simon Marchi <simon.marchi@ericsson.com>
6024
6025 * configure.nat: Factor out AIX bits that are not
6026 architecture-specific. Add fork-inferior.o.
6027
55acdf22
AA
60282017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6029
6030 * dwarf2loc.c (rw_pieced_value): New. Merge logic from...
6031 (read_pieced_value, write_pieced_value): ...here. Reduce to
6032 wrappers that just call rw_pieced_value.
6033
f65e2044
AA
60342017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6035
6036 * dwarf2loc.c (write_pieced_value): When writing the data for a
6037 memory piece, use write_memory_with_notification instead of
6038 write_memory.
6039
23f945bf
AA
60402017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6041
6042 * valops.c (read_value_memory): Change embedded_offset to
6043 represent a bit offset instead of a byte offset.
6044 * value.h (read_value_memory): Adjust comment.
6045
f236533e
AA
60462017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6047
6048 * dwarf2loc.c (read_pieced_value): Remove unnecessary variables
6049 dest_offset_bits and source_offset_bits.
6050 (write_pieced_value): Likewise.
6051
65d84b76
AA
60522017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6053
6054 * dwarf2loc.c (read_pieced_value): Respect the piece offset, as
6055 given by DW_OP_bit_piece.
6056 (write_pieced_value): Likewise.
6057
242d31ab
AA
60582017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6059
6060 * dwarf2loc.c (read_pieced_value): Move the buffer allocation and
6061 some other preparations to the places where sufficient information
6062 is available.
6063 (write_pieced_value): Likewise.
6064
03c8af18
AA
60652017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6066
6067 * dwarf2loc.c (bits_to_bytes): New function.
6068 (read_pieced_value): Fix offset calculations for register pieces
6069 on big-endian targets.
6070 (write_pieced_value): Likewise.
6071
840989c1
AA
60722017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6073
6074 * dwarf2loc.c (read_pieced_value): Remove buffer_size variable.
6075 (write_pieced_value): Likewise.
6076
359b19bb
AA
60772017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6078
6079 * dwarf2loc.c (write_pieced_value): When writing to a bit-field,
6080 transfer the source value's least significant bits, instead of its
6081 lowest-addressed ones. Rename type_len to max_offset.
6082 (read_pieced_value): Mirror above changes to write_pieced_value as
6083 applicable.
6084
07c9ca3b
AA
60852017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6086
6087 * dwarf2loc.c (write_pieced_value): In DWARF_VALUE_MEMORY,
6088 truncate full bytes from dest_offset_bits before using it as an
6089 offset into the buffer.
6090
f1cc9874
AA
60912017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6092
6093 * dwarf2loc.c (write_pieced_value): Include transfer size in
6094 byte-wise check.
6095
cdaac320
AA
60962017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6097
6098 * dwarf2loc.c (write_pieced_value): Fix copy/paste error in the
6099 calculation of this_size.
6100
af547a96
AA
61012017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6102
6103 * dwarf2loc.c (read_pieced_value): Respect parent value's offset
6104 when targeting a bit-field.
6105 (write_pieced_value): Likewise.
6106
ddd7882a
AA
61072017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6108
6109 * dwarf2loc.c (struct piece_closure) <addr_size>: Remove field.
6110 (allocate_piece_closure): Drop addr_size parameter.
6111 (dwarf2_evaluate_loc_desc_full): Adjust call to
6112 allocate_piece_closure.
6113
e9352324
AA
61142017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6115
6116 PR gdb/21226
6117 * dwarf2loc.c (read_pieced_value): Anchor stack value pieces at
6118 the LSB end, independent of endianness.
6119
d5d1163e
AA
61202017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6121
6122 * dwarf2loc.c (write_pieced_value): Fix order of calculations for
6123 size capping.
6124
032bb6ea
YQ
61252017-06-13 Yao Qi <yao.qi@linaro.org>
6126
6127 * mips-linux-nat.c: Move include features/mips*-linux.c to
6128 mips-linux-tdep.c.
6129 (_initialize_mips_linux_nat): Move initialize_tdesc_mips* calls
6130 to mips-linux-tdep.c.
6131 * mips-linux-tdep.c: Include features/mips*-linux.c
6132 (_initialize_mips_linux_tdep): Call initialize_tdesc_mips*
6133 functions.
6134 * mips-linux-tdep.h (tdesc_mips_linux): Declare.
6135 (tdesc_mips_dsp_linux, tdesc_mips64_linux): Declare.
6136 (tdesc_mips64_dsp_linux): Declare.
6137
f12f6bad
TT
61382017-06-12 Tom Tromey <tom@tromey.com>
6139
6140 * valprint.h (val_print_type_code_int): Remove.
6141 * valprint.c (generic_val_print_int): Always call
6142 val_print_scalar_formatted.
6143 (val_print_type_code_int): Remove.
6144 * printcmd.c (print_scalar_formatted): Handle options->format==0.
6145 * f-valprint.c (f_val_print): Use val_print_scalar_formatted.
6146 * c-valprint.c (c_val_print_int): Use val_print_scalar_formatted.
6147 * ada-valprint.c (ada_val_print_num): Use
6148 val_print_scalar_formatted.
6149
d9109c80
TT
61502017-06-12 Tom Tromey <tom@tromey.com>
6151
6152 * printcmd.c (print_scalar_formatted): Unify the two switches.
6153 Don't convert scalars to LONGEST.
6154
4ac0cb1c
TT
61552017-06-12 Tom Tromey <tom@tromey.com>
6156
6157 PR exp/16225:
6158 * valprint.h (print_decimal_chars): Update.
6159 * valprint.c (maybe_negate_by_bytes): New function.
6160 (print_decimal_chars): Add "is_signed" argument.
6161 * printcmd.c (print_scalar_formatted): Update.
6162
30a25466
TT
61632017-06-12 Tom Tromey <tom@tromey.com>
6164
6165 PR exp/16225:
6166 * valprint.h (print_binary_chars, print_hex_chars): Update.
6167 * valprint.c (val_print_type_code_int): Update.
6168 (print_binary_chars): Add "zero_pad" argument.
6169 (emit_octal_digit): New function.
6170 (print_octal_chars): Don't zero-pad.
6171 (print_decimal_chars): Likewise.
6172 (print_hex_chars): Add "zero_pad" argument.
6173 * sh64-tdep.c (sh64_do_fp_register): Update.
6174 * regcache.c (regcache::dump): Update.
6175 * printcmd.c (print_scalar_formatted): Update.
6176 * infcmd.c (default_print_one_register_info): Update.
6177
b3464d03
PA
61782017-06-12 Pedro Alves <palves@redhat.com>
6179 Alan Hayward <alan.hayward@arm.com>
6180
6181 * mips-tdep.c (MAX_MIPS_ABI_REGSIZE): New.
6182 (mips_eabi_push_dummy_call): Rename local 'regsize' to
6183 'abi_regsize'. Rename local array 'valbuf' to 'ref_valbuf', and
6184 use MAX_MIPS_ABI_REGSIZE instead of MAX_REGISTER_SIZE to size it.
6185 Assert that abi_regsize bytes fit in 'ref_valbuf'.
6186
4b76cda9
PA
61872017-06-12 Pedro Alves <palves@redhat.com>
6188
6189 * dwarf2read.c (mapped_symtab::data): Now a vector of
6190 symtab_index_entry instead of vector of
6191 std::unique_ptr<symtab_index_entry>. All users adjusted to check
6192 whether an element's name is NULL instead of checking whether the
6193 element itself is NULL.
6194 (find_slot): Change return type. Adjust.
6195 (hash_expand, , add_index_entry, uniquify_cu_indices)
6196 (write_hash_table): Adjust.
6197
e8f8bcb3
PA
61982017-06-12 Pedro Alves <palves@redhat.com>
6199
6200 * dwarf2read.c (recursively_count_psymbols): New function.
6201 (write_psymtabs_to_index): Call it to compute number of psyms and
6202 pass estimate size of psyms_seen to unordered_set's ctor.
6203
70a1152b
PA
62042017-06-12 Pedro Alves <palves@redhat.com>
6205
6206 * dwarf2read.c (write_hash_table): Check if key already exists
6207 before emplacing.
6208
c2f134ac
PA
62092017-06-12 Pedro Alves <palves@redhat.com>
6210
6211 * dwarf2read.c (data_buf::append_space): Rename to...
6212 (data_buf::grow): ... this, and make private. Adjust all callers.
6213 (data_buf::append_uint): New method.
6214 (add_address_entry, write_one_signatured_type)
6215 (write_psymtabs_to_index): Use it.
6216
a81e6d4d
PA
62172017-06-12 Pedro Alves <palves@redhat.com>
6218
6219 * dwarf2read.c (file_write(FILE *, const void *, size_t)): Delete.
6220 (file_write (FILE *, const std::vector<Elem>&)): Delete.
6221 (data_buf::file_write): Call ::fwrite directly.
6222
6fd931f2
PA
62232017-06-12 Pedro Alves <palves@redhat.com>
6224
6225 * dwarf2read.c (uniquify_cu_indices): Use std::unique and
6226 std::vector::erase.
6227
bc8f2430
JK
62282017-06-12 Jan Kratochvil <jan.kratochvil@redhat.com>
6229
6230 Code cleanup: C++ify .gdb_index producer.
6231 * dwarf2read.c: Include <unordered_set> and <unordered_map>.
6232 (MAYBE_SWAP) [WORDS_BIGENDIAN]: Cast to offset_type.
6233 (struct strtab_entry, hash_strtab_entry, eq_strtab_entry)
6234 (create_strtab, add_string): Remove.
6235 (file_write, data_buf): New.
6236 (struct symtab_index_entry): Use std::vector for cu_indices.
6237 (struct mapped_symtab): Use std::vector for data.
6238 (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry)
6239 (create_symbol_hash_table, create_mapped_symtab, cleanup_mapped_symtab):
6240 Remove.
6241 (find_slot): Change return type. Update it to the new data structures.
6242 (hash_expand, add_index_entry): Update it to the new data structures.
6243 (offset_type_compare): Remove.
6244 (uniquify_cu_indices): Update it to the new data structures.
6245 (c_str_view, c_str_view_hasher, vector_hasher): New.
6246 (add_indices_to_cpool): Remove.
6247 (write_hash_table): Update it to the new data structures.
6248 (struct psymtab_cu_index_map, hash_psymtab_cu_index)
6249 (eq_psymtab_cu_index): Remove.
6250 (psym_index_map): New typedef.
6251 (struct addrmap_index_data): Change addr_obstack pointer to data_buf
6252 reference and std::unordered_map for cu_index_htab.
6253 (add_address_entry, add_address_entry_worker, write_address_map)
6254 (write_psymbols): Update it to the new data structures.
6255 (write_obstack): Remove.
6256 (struct signatured_type_index_data): Change types_list to a data_buf
6257 reference and psyms_seen to a std::unordered_set reference.
6258 (write_one_signatured_type, recursively_write_psymbols)
6259 (write_psymtabs_to_index): Update it to the new data structures.
6260
c4dcb155
SM
62612017-06-11 Simon Marchi <simon.marchi@ericsson.com>
6262
6263 * NEWS (Changes since GDB 8.0): Announce {set,show} debug
6264 separate-debug-file commands.
6265 * symfile.h (separate_debug_file_debug): New global.
6266 * symfile.c (separate_debug_file_debug): New global.
6267 (separate_debug_file_exists, find_separate_debug_file): Add
6268 debug output.
6269 (_initialize_symfile): Add "set debug separate-debug-file"
6270 command.
6271 * build-id.c (build_id_to_debug_bfd,
6272 find_separate_debug_file_by_buildid): Add debug output.
6273
6d45d4b4
SM
62742017-06-10 Simon Marchi <simon.marchi@polymtl.ca>
6275
6276 * gdbarch.sh (displaced_step_free_closure): Remove.
6277 * gdbarch.h, gdbarch.c: Re-generate.
6278 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't set
6279 displaced_step_free_closure.
6280 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
6281 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
6282 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
6283 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
6284 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
6285 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
6286 * arch-utils.h (simple_displaced_step_free_closure): Remove.
6287 * arch-utils.c (simple_displaced_step_free_closure): Remove.
6288 * infrun.c (displaced_step_clear): Call xfree instead of
6289 gdbarch_displaced_step_free_closure.
6290
2f91880f
SDJ
62912017-06-08 Sergio Durigan Junior <sergiodj@redhat.com>
6292
6293 * common/common-utils.c (stringify_argv): Check for "arg[0] !=
6294 NULL".
6295
b8b6e72f
AH
62962017-06-08 Alan Hayward <alan.hayward@arm.com>
6297
6298 * mn10300-tdep.c (MN10300_MAX_REGISTER_SIZE): Add.
6299 (mn10300_extract_return_value): Use MN10300_MAX_REGISTER_SIZE.
6300 (mn10300_push_dummy_call): Likewise.
6301
5369082e
AH
63022017-06-08 Alan Hayward <alan.hayward@arm.com>
6303
6304 * mi/mi-main.c (register_changed_p): Use value_contents_eq.
6305
ff4ca5ac
AH
63062017-06-08 Alan Hayward <alan.hayward@arm.com>
6307
6308 * mi/mi-main.c (register_changed_p): Use cooked_read_value.
6309
aefd8b33
SDJ
63102017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6311
6312 * NEWS (Changes since GDB 8.0): Announce that GDBserver is now
6313 able to start inferiors using a shell.
6314 (New remote packets): Announce new packet "QStartupWithShell".
6315 * remote.c: Add PACKET_QStartupWithShell.
6316 (extended_remote_create_inferior): Handle new
6317 PACKET_QStartupWithShell.
6318 (remote_protocol_features) <QStartupWithShell>: New entry for
6319 PACKET_QStartupWithShell.
6320 (_initialize_remote): Call "add_packet_config_cmd" for
6321 QStartupShell.
6322
2090129c
SDJ
63232017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6324 Pedro Alves <palves@redhat.com>
6325
6326 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-inferior.h"
6327 and "nat/fork-inferior.h".
6328 * common/common-inferior.h: New file, with contents from
6329 "gdb/inferior.h".
6330 * commom/common-utils.c: Include "common-utils.h".
6331 (stringify_argv): New function.
6332 * common/common-utils.h (stringify_argv): New prototype.
6333 * configure.nat: Add "fork-inferior.o" as a dependency for
6334 "*linux*", "fbsd*" and "nbsd*" hosts.
6335 * corefile.c (get_exec_file): Update comment.
6336 * darwin-nat.c (darwin_ptrace_him): Call "gdb_startup_inferior"
6337 instead of "startup_inferior".
6338 (darwin_create_inferior): Call "add_thread_silent" after
6339 "fork_inferior".
6340 * fork-child.c: Cleanup unnecessary includes.
6341 (SHELL_FILE): Move to "common/common-fork-child.c".
6342 (environ): Likewise.
6343 (exec_wrapper): Initialize.
6344 (get_exec_wrapper): New function.
6345 (breakup_args): Move to "common/common-fork-child.c"; rename to
6346 "breakup_args_for_exec".
6347 (escape_bang_in_quoted_argument): Move to
6348 "common/common-fork-child.c".
6349 (saved_ui): New variable.
6350 (prefork_hook): New function.
6351 (postfork_hook): Likewise.
6352 (postfork_child_hook): Likewise.
6353 (gdb_startup_inferior): Likewise.
6354 (fork_inferior): Move to "common/common-fork-child.c". Update
6355 function to support gdbserver.
6356 (startup_inferior): Likewise.
6357 * gdbcore.h (get_exec_file): Remove declaration.
6358 * gnu-nat.c (gnu_create_inferior): Call "gdb_startup_inferior"
6359 instead of "startup_inferior". Call "add_thread_silent" after
6360 "fork_inferior".
6361 * inf-ptrace.c: Include "nat/fork-inferior.h" and "utils.h".
6362 (inf_ptrace_create_inferior): Call "gdb_startup_inferior"
6363 instead of "startup_inferior". Call "add_thread_silent" after
6364 "fork_inferior".
6365 * inferior.h: Include "common-inferior.h".
6366 (trace_start_error): Move to "common/common-utils.h".
6367 (trace_start_error_with_name): Likewise.
6368 (fork_inferior): Move prototype to "nat/fork-inferior.h".
6369 (startup_inferior): Likewise.
6370 (gdb_startup_inferior): New prototype.
6371 * nat/fork-inferior.c: New file, with contents from "fork-child.c".
6372 * nat/fork-inferior.h: New file.
6373 * procfs.c (procfs_init_inferior): Call "gdb_startup_inferior"
6374 instead of "startup_inferior". Call "add_thread_silent" after
6375 "fork_inferior".
6376 * target.h (target_terminal_init): Move prototype to
6377 "target/target.h".
6378 (target_terminal_inferior): Likewise.
6379 (target_terminal_ours): Likewise.
6380 * target/target.h (target_terminal_init): New prototype, moved
6381 from "target.h".
6382 (target_terminal_inferior): Likewise.
6383 (target_terminal_ours): Likewise.
6384 * utils.c (gdb_flush_out_err): New function.
6385
043a4934
SDJ
63862017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6387
6388 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-gdbthread.h".
6389 * common/common-gdbthread.h: New file, with parts from
6390 "gdb/gdbthread.h".
6391 * gdbthread.h: Include "common-gdbthread.h".
6392 (switch_to_thread): Moved to "common/common-gdbthread.h".
6393
15652511
SDJ
63942017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6395
6396 * Makefile.in (SFILES): Add "common/job-control.c".
6397 (HFILES_NO_SRCDIR): Add "common/job-control.h".
6398 (COMMON_OBS): Add "job-control.o".
6399 * common/job-control.c: New file, with contents from
6400 "gdb/inflow.c".
6401 * common/job-control.h: New file, with contents from "terminal.h".
6402 * fork-child.c: Include "job-control.h".
6403 * inflow.c: Include "job-control.h".
6404 (gdb_setpgid): Move to "common/common-inflow.c".
6405 (_initialize_inflow): Move setting of "job_control" to
6406 "handle_job_control".
6407 * terminal.h (job_control): Moved to "common/common-terminal.h".
6408 (gdb_setpgid): Likewise.
6409 * top.c: Include "job_control.h".
6410 * utils.c: Likewise.
6411 (job_control): Moved to "job-control.c".
6412
2d7cc5c7
PA
64132017-06-07 Pedro Alves <palves@redhat.com>
6414
6415 * Makefile.in (SFILES): Add gdb_regex.c.
6416 (COMMON_OBS): Add gdb_regex.o.
6417 * ada-lang.c (ada_add_standard_exceptions)
6418 (ada_add_exceptions_from_frame, name_matches_regex)
6419 (ada_add_global_exceptions, ada_exceptions_list_1): Change regex
6420 parameter type to compiled_regex. Adjust.
6421 (ada_exceptions_list): Use compiled_regex.
6422 * break-catch-throw.c (exception_catchpoint::pattern): Now a
6423 std::unique_ptr<compiled_regex>.
6424 (exception_catchpoint::~exception_catchpoint): Remove regfree
6425 call.
6426 (check_status_exception_catchpoint): Adjust to use compiled_regex.
6427 (handle_gnu_v3_exceptions): Adjust to use compiled_regex.
6428 * breakpoint.c (solib_catchpoint::compiled): Now a
6429 std::unique_ptr<compiled_regex>.
6430 (solib_catchpoint::~solib_catchpoint): Remove regfree call.
6431 (check_status_catch_solib): Adjust to use compiled_regex.
6432 (add_solib_catchpoint): Adjust to use compiled_regex.
6433 * cli/cli-cmds.c (apropos_command): Use compiled_regex.
6434 * cli/cli-decode.c (apropos_cmd): Change regex parameter to
6435 compiled_regex reference. Adjust to use it.
6436 * cli/cli-decode.h: Remove struct re_pattern_buffer forward
6437 declaration. Include "gdb_regex.h".
6438 (apropos_cmd): Change regex parameter to compiled_regex reference.
6439 * gdb_regex.c: New file.
6440 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Delete
6441 declarations.
6442 (class compiled_regex): New.
6443 * linux-tdep.c: Include "common/gdb_optional.h".
6444 (struct mapping_regexes): New, factored out from
6445 mapping_is_anonymous_p, and adjusted to use compiled_regex.
6446 (mapping_is_anonymous_p): Use mapping_regexes wrapped in a
6447 gdb::optional and remove cleanups. Adjust to compiled_regex.
6448 * probe.c: Include "common/gdb_optional.h".
6449 (collect_probes): Use compiled_regex and gdb::optional and remove
6450 cleanups.
6451 * skip.c: Include "common/gdb_optional.h".
6452 (skiplist_entry::compiled_function_regexp): Now a
6453 gdb::optional<compiled_regex>.
6454 (skiplist_entry::compiled_function_regexp_is_valid): Delete field.
6455 (free_skiplist_entry): Remove regfree call.
6456 (compile_skip_regexp, skip_rfunction_p): Adjust to use
6457 compiled_regex and gdb::optional.
6458 * symtab.c: Include "common/gdb_optional.h".
6459 (search_symbols): Use compiled_regex and gdb::optional.
6460 * utils.c (do_regfree_cleanup, make_regfree_cleanup)
6461 (get_regcomp_error, compile_rx_or_error): Delete. Some bits moved
6462 to gdb_regex.c.
6463
50d6adef
AH
64642017-06-07 Alan Hayward <alan.hayward@arm.com>
6465
6466 * regcache.c (regcache::save): Avoid buffer use.
6467 (regcache::dump): Likewise.
6468
4a8a33c8
AH
64692017-06-07 Alan Hayward <alan.hayward@arm.com>
6470
6471 * sh-tdep.c (sh_pseudo_register_read): Remove
6472 MAX_REGISTER_SIZE.
6473 (sh_pseudo_register_write): Likewise.
6474 * sh64-tdep.c (sh64_pseudo_register_read): Likewise.
6475 (sh64_pseudo_register_write): Likewise
6476
d1be909e
AH
64772017-06-07 Alan Hayward <alan.hayward@arm.com>
6478
6479 * aarch64-tdep.c (aarch64_store_return_value): Use
6480 V_REGISTER_SIZE.
6481 (aarch64_pseudo_read_value): Likewise.
6482 (aarch64_pseudo_write): Likewise.
6483
f4a65042
YQ
64842017-06-06 Yao Qi <yao.qi@linaro.org>
6485
6486 * regformats/regdef.h (set_register_cache): Remove the
6487 declaration.
6488
9f7fb0aa
AH
64892017-06-06 Alan Hayward <alan.hayward@arm.com>
6490
6491 * frame.c (frame_unwind_register_signed): Use
6492 frame_unwind_register_value.
6493
e1e01040
PA
64942017-06-06 Pedro Alves <palves@redhat.com>
6495
6496 PR breakpoints/21553
6497 * breakpoint.c (create_breakpoints_sal_default)
6498 (init_breakpoint_sal, create_breakpoint_sal): Use
6499 gdb::unique_xmalloc_ptr for string parameters.
6500 (create_breakpoint): Constify 'extra_string' and 'cond_string'
6501 parameters. Replace cleanups with gdb::unique_xmalloc_ptr.
6502 (base_breakpoint_create_breakpoints_sal)
6503 (bkpt_create_breakpoints_sal, tracepoint_create_breakpoints_sal)
6504 (strace_marker_create_breakpoints_sal)
6505 (create_breakpoints_sal_default): Use gdb::unique_xmalloc_ptr for
6506 string parameters.
6507 * breakpoint.h (breakpoint_ops::create_breakpoints_sal): Use
6508 gdb::unique_xmalloc_ptr for string parameters.
6509 (create_breakpoint): Constify 'extra_string' and 'cond_string'
6510 parameters.
6511
fbe654c8
AH
65122017-06-06 Alan Hayward <alan.hayward@arm.com>
6513
6514 * alpha-tdep.c (alpha_register_to_value): Use
6515 get_frame_register_value.
6516 (alpha_value_to_register): Use ALPHA_REGISTER_SIZE.
6517
ae0d01d6
AH
65182017-06-06 Alan Hayward <alan.hayward@arm.com>
6519
6520 * ia64-tdep.c (IA64_MAX_FP_REGISTER_SIZE) Add.
6521 (ia64_register_to_value): Use IA64_MAX_FP_REGISTER_SIZE.
6522 (ia64_value_to_register): Likewise.
6523 (ia64_extract_return_value): Likewise.
6524 (ia64_store_return_value): Likewise.
6525 (ia64_push_dummy_call): Likewise.
6526
49cf576c
JB
65272017-06-04 Joel Brobecker <brobecker@adacore.com>
6528
6529 GDB 8.0 released.
6530
26b6a6ab
SM
65312017-06-03 Simon Marchi <simon.marchi@ericsson.com>
6532
6533 * x86-linux-nat.c (struct arch_lwp_info): Remove.
6534
22827c51
SM
65352017-06-03 Simon Marchi <simon.marchi@polymtl.ca>
6536
6537 * linux-nat.c (linux_nat_post_attach_wait): Remove FIRST
6538 parameter.
6539 (linux_nat_attach): Adjust call to linux_nat_post_attach_wait.
6540
0e05cf3a
SM
65412017-06-02 Simon Marchi <simon.marchi@ericsson.com>
6542
6543 * event-loop.c (poll_timers): Unallocate timer using delete
6544 instead of xfree.
6545
c1fc2657
SM
65462017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
6547
6548 * breakpoint.h (struct breakpoint_ops) <dtor>: Remove.
6549 (struct breakpoint) <~breakpoint>: New.
6550 (struct watchpoint): Inherit from breakpoint.
6551 <~watchpoint>: New.
6552 <base>: Remove.
6553 (struct tracepoint): Inherit from breakpoint.
6554 <base>: Remove.
6555 * breakpoint.c (longjmp_breakpoint_ops): Remove.
6556 (struct longjmp_breakpoint): Inherit from breakpoint.
6557 <~longjmp_breakpoint>: New.
6558 <base>: Remove.
6559 (new_breakpoint_from_type): Remove casts.
6560 (watchpoint_in_thread_scope): Remove reference to base field.
6561 (watchpoint_del_at_next_stop): Likewise.
6562 (update_watchpoint): Likewise.
6563 (watchpoint_check): Likewise.
6564 (bpstat_check_watchpoint): Likewise.
6565 (set_longjmp_breakpoint): Likewise.
6566 (struct fork_catchpoint): Inherit from breakpoint.
6567 <base>: Remove.
6568 (struct solib_catchpoint): Inherit from breakpoint.
6569 <~solib_catchpoint>: New.
6570 <base>: Remove.
6571 (dtor_catch_solib): Change to ...
6572 (solib_catchpoint::~solib_catchpoint): ... this.
6573 (breakpoint_hit_catch_solib): Remove reference to base field.
6574 (add_solib_catchpoint): Likewise.
6575 (create_fork_vfork_event_catchpoint): Likewise.
6576 (struct exec_catchpoint): Inherit from breakpoint.
6577 <~exec_catchpoint>: New.
6578 <base>: Remove.
6579 (dtor_catch_exec): Change to ...
6580 (exec_catchpoint::~exec_catchpoint): ... this.
6581 (dtor_watchpoint): Change to ...
6582 (watchpoint::~watchpoint): ... this.
6583 (watch_command_1): Remove reference to base field.
6584 (catch_exec_command_1): Likewise.
6585 (base_breakpoint_dtor): Change to ...
6586 (breakpoint::~breakpoint): ... this.
6587 (base_breakpoint_ops): Remove dtor field value.
6588 (longjmp_bkpt_dtor): Change to ...
6589 (longjmp_breakpoint::~longjmp_breakpoint): ... this.
6590 (strace_marker_create_breakpoints_sal): Remove reference to base
6591 field.
6592 (delete_breakpoint): Don't manually call breakpoint destructor.
6593 (create_tracepoint_from_upload): Remove reference to base field.
6594 (trace_pass_set_count): Likewise.
6595 (initialize_breakpoint_ops): Don't initialize
6596 momentary_breakpoint_ops, don't set dtors.
6597 * ada-lang.c (struct ada_catchpoint): Inherit from breakpoint.
6598 <~ada_catchpoint>: New.
6599 <base>: Remove.
6600 (create_excep_cond_exprs): Remove reference to base field.
6601 (dtor_exception): Change to ...
6602 (ada_catchpoint::~ada_catchpoint): ... this.
6603 (dtor_catch_exception): Remove.
6604 (dtor_catch_exception_unhandled): Remove.
6605 (dtor_catch_assert): Remove.
6606 (create_ada_exception_catchpoint): Remove reference to base
6607 field.
6608 (initialize_ada_catchpoint_ops): Don't set dtors.
6609 * break-catch-sig.c (struct signal_catchpoint): Inherit from
6610 breakpoint.
6611 <~signal_catchpoint>: New.
6612 <base>: Remove.
6613 (signal_catchpoint_dtor): Change to ...
6614 (signal_catchpoint::~signal_catchpoint): ... this.
6615 (create_signal_catchpoint): Remove reference to base field.
6616 (initialize_signal_catchpoint_ops): Don't set dtor.
6617 * break-catch-syscall.c (struct syscall_catchpoint): Inherit
6618 from breakpoint.
6619 <~syscall_catchpoint>: New.
6620 <base>: Remove.
6621 (dtor_catch_syscall): Change to ...
6622 (syscall_catchpoint::~syscall_catchpoint): ... this.
6623 (create_syscall_event_catchpoint): Remove reference to base
6624 field.
6625 (initialize_syscall_catchpoint_ops): Don't set dtor.
6626 * break-catch-throw.c (struct exception_catchpoint): Inherit
6627 from breakpoint.
6628 <~exception_catchpoint>: New.
6629 <base>: Remove.
6630 (dtor_exception_catchpoint): Change to ...
6631 (exception_catchpoint::~exception_catchpoint): ... this.
6632 (handle_gnu_v3_exceptions): Remove reference to base field.
6633 (initialize_throw_catchpoint_ops): Don't set dtor.
6634 * ctf.c (ctf_get_traceframe_address): Remove reference to base
6635 field.
6636 * remote.c (remote_get_tracepoint_status): Likewise.
6637 * tracefile-tfile.c (tfile_get_traceframe_address): Likewise.
6638 * tracefile.c (tracefile_fetch_registers): Likewise.
6639 * tracepoint.c (actions_command): Likewise.
6640 (validate_actionline): Likewise.
6641 (tfind_1): Likewise.
6642 (get_traceframe_location): Likewise.
6643 (find_matching_tracepoint_location): Likewise.
6644 (parse_tracepoint_status): Likewise.
6645 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
6646
3b0871f4
SM
66472017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
6648
6649 * breakpoint.c (struct longjmp_breakpoint): New struct.
6650 (is_tracepoint_type): Change return type to bool.
6651 (is_longjmp_type): New function.
6652 (new_breakpoint_from_type): Handle longjmp kinds of breakpoints.
6653 (set_raw_breakpoint_without_location): Use
6654 new_breakpoint_from_type.
6655 (set_raw_breakpoint): Likewise.
6656
a5e364af
SM
66572017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
6658
6659 * breakpoint.c (new_breakpoint_from_type): New function.
6660 (create_breakpoint_sal): Use new_breakpoint_from_type and
6661 unique_ptr.
6662 (create_breakpoint): Likewise.
6663
ae3b3f34
SM
66642017-05-31 Simon Marchi <simon.marchi@ericsson.com>
6665
6666 * memattr.c (mem_info_command): Rename to ...
6667 (info_mem_command): ... this.
6668 (mem_enable_command): Rename to ...
6669 (enable_mem_command): ... this.
6670 (mem_disable_command): Rename to ...
6671 (disable_mem_command): ... this.
6672 (mem_delete_command): Rename to ...
6673 (delete_mem_command): ... this.
6674 (_initialize_mem): Adjust function names.
6675
13ace077
MM
66762017-05-31 Markus Metzger <markus.t.metzger@intel.com>
6677
6678 * btrace.c (handle_pt_insn_events): New.
6679 (ftrace_add_pt): Call handle_pt_insn_events. Rename ERRCODE into
6680 STATUS. Split into this and ...
6681 (handle_pt_insn_event_flags): ... this.
6682
c56ccc05
MM
66832017-05-31 Markus Metzger <markus.t.metzger@intel.com>
6684
6685 * configure.ac: Check for pt_insn_event, struct pt_insn.enabled,
6686 and struct pt_insn.resynced.
6687 * configure: Regenerated.
6688 * config.in: Regenerated.
6689
08c3f6d2
TW
66902017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6691
6692 * btrace.c (ftrace_find_call_by_number): New function.
6693 (ftrace_new_function): Store objects, not pointers.
6694 (ftrace_find_call_by_number, ftrace_new_return, ftrace_new_switch,
6695 ftrace_new_gap, ftrace_update_function,
6696 ftrace_compute_global_level_offset, btrace_stich_bts, btrace_clear,
6697 btrace_insn_get, btrace_insn_get_error, btrace_insn_end,
6698 btrace_insn_next, btrace_insn_prev, ptrace_find_insn_by_number,
6699 btrace_ends_with_single_insn, btrace_call_get): Account for
6700 btrace_thread_info::functions now storing objects.
6701 * btrace.h (struct btrace_thread_info): Add constructor.
6702 (struct btrace_thread_info) <functions>: Make std::vector.
6703 (struct btrace_thread_info) <prev, next, up, insn, errcode, flags):
6704 Initialize with default values.
6705 * record-btrace.c (record_btrace_frame_sniffer): Account for
6706 btrace_thread_info::functions now storing objects.
6707
8ffd39f2
TW
67082017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6709
6710 * btrace.c: Remove typedef bfun_s.
6711 (ftrace_new_gap): Directly add gaps to the list of gaps.
6712 (btrace_bridge_gaps, btrace_compute_ftrace_bts, pt_btrace_insn_flags,
6713 ftrace_add_pt, btrace_compute_ftrace_pt, btrace_compute_ftrace_1,
6714 btrace_finalize_ftrace, btrace_compute_ftrace): Use std::vector
6715 instead of gdb VEC.
6716
4aeb0dfc
TW
67172017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6718
6719 * btrace.c (ftrace_fixup_caller, ftrace_new_return, ftrace_connect_bfun,
6720 ftrace_bridge_gap): Replace references to btrace_thread_info::segment
6721 with btrace_thread_info::next_segment and
6722 btrace_thread_info::prev_segment.
6723 * btrace.h: Remove struct btrace_func_link.
6724 (struct btrace_function): Replace pair of function segment pointers
6725 with pair of indices.
6726 * python/py-record-btrace.c (btpy_call_prev_sibling,
6727 btpy_call_next_sibling): Replace references to
6728 btrace_thread_info::segment with btrace_thread_info::next_segment and
6729 btrace_thread_info::prev_segment.
6730 * record-btrace.c (record_btrace_frame_this_id): Use
6731 btrace_find_call_by_number.
6732
eb8f2b9c
TW
67332017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6734
6735 * btrace.c (ftrace_new_function, ftrace_fixup_level,
6736 ftrace_connect_bfun, ftrace_bridge_gap, btrace_bridge_gaps,
6737 btrace_insn_next, btrace_insn_prev): Remove references to
6738 btrace_thread_info::flow.
6739 * btrace.h (struct btrace_function): Remove FLOW.
6740
42bfe59e
TW
67412017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6742
6743 * btrace.c (ftrace_find_call_by_number): New function.
6744 (ftrace_update_caller, ftrace_new_call, ftrace_new_tailcall,
6745 ftrace_get_caller, ftrace_find_call, ftrace_new_return,
6746 ftrace_match_backtrace, ftrace_connect_bfun, ftrace_connect_backtrace,
6747 ftrace_bridge_gap, btrace_bridge_gaps): Use btrace_function::up as an
6748 index.
6749 * btrace.h (struct btrace_function): Turn UP into an index.
6750 * python/py-record-btrace.c (btpy_call_up): Use btrace_function::up
6751 as an index.
6752 * record-btrace.c (record_btrace_frame_unwind_stop_reason,
6753 record_btrace_frame_prev_register, record_btrace_frame_sniffer,
6754 record_btrace_tailcall_frame_sniffe): Use btrace_find_call_by_number.
6755
b54b03bd
TW
67562017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6757
6758 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
6759 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
6760 ftrace_update_function, ftrace_compute_global_level_offset,
6761 btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt,
6762 btrace_stitch_bts, btrace_fetch, btrace_clear, btrace_insn_number,
6763 btrace_insn_end, btrace_is_empty): Remove references to
6764 btrace_thread_info::begin and btrace_thread_info::end.
6765 * btrace.h (struct btrace_thread_info): Remove BEGIN and END.
6766 (struct btrace_thread_info) <functions>: Adjust comment.
6767 * record-btrace.c (record_btrace_start_replaying): Remove reference to
6768 btrace_thread_info::begin.
6769
8286623c
TW
67702017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6771
6772 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
6773 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
6774 ftrace_update_function): Remove arguments that implicitly were always
6775 BTINFO->END.
6776 (btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt):
6777 Don't pass BTINFO->END.
6778
a0f1b963
TW
67792017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6780
6781 * btrace.c: (btrace_insn_get, btrace_insn_get_error, btrace_insn_number,
6782 btrace_insn_begin, btrace_insn_end, btrace_insn_next, btrace_insn_prev,
6783 btrace_find_insn_by_number): Replace function segment pointer with
6784 index.
6785 (btrace_insn_cmp): Simplify.
6786 * btrace.h: (struct btrace_insn_iterator) Rename index to
6787 insn_index. Replace function segment pointer with index into function
6788 segment vector.
6789 * record-btrace.c (record_btrace_call_history): Replace function
6790 segment pointer use with index.
6791 (record_btrace_frame_sniffer): Retrieve function call segment through
6792 vector.
6793 (record_btrace_set_replay): Remove defunc't safety check.
6794
f158f208
TW
67952017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6796
6797 * btrace.c (btrace_ends_with_single_insn): New function.
6798 (btrace_call_get, btrace_call_number, btrace_call_begin,
6799 btrace_call_end, btrace_call_next, btrace_call_prev,
6800 btrace_find_call_by_number): Use index into call segment vector
6801 instead of pointer.
6802 (btrace_call_cmp): Simplify.
6803 * btrace.h (struct btrace_call_iterator): Replace function call segment
6804 pointer with index into vector.
6805 * record-btrace.c (record_btrace_call_history): Use index instead of
6806 pointer.
6807
521103fd
TW
68082017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6809
6810 * btrace.c (btrace_insn_begin, btrace_insn_end,
6811 btrace_find_insn_by_number): Add btinfo to iterator.
6812 * btrace.h (struct btrace_insn_iterator): Add btinfo.
6813
17b89b34
TW
68142017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6815
6816 * btrace.c (ftrace_new_function): Add btrace_thread_info to arguments
6817 and save pointers directly.
6818 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return,
6819 ftrace_new_switch, ftrace_new_gap, ftrace_update_function,
6820 ftrace_add_pt): Add btrace_thread_info to arguments. Adjust for
6821 changed signature of functions.
6822 (btrace_compute_ftrace_pt): Adjust for changed signature of functions.
6823 (btrace_fetch): Remove code that adds btrace_function pointers to
6824 vector of btrace_functions.
6825 (btrace_clear): Simplify freeing vector of btrace_functions.
6826
2b51eddc
TW
68272017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6828
6829 * btrace.c (btrace_fetch, btrace_clear, btrace_find_insn_by_number):
6830 Replace VEC_* with std::vector functions.
6831 * btrace.h: Add include: vector. Remove typedef for DEF_VEC_P.
6832 (struct btrace_thread_info)<functions>: Change type to std::vector.
6833
db6be0d5
SM
68342017-05-30 Simon Marchi <simon.marchi@ericsson.com>
6835
6836 * NEWS (Changes in GDB 8.0): Remove extra empty line. Move
6837 "Removed targets and native configurations" up. Merge duplicate
6838 "New commands" sub-sections. Add "New options" sub-sections.
6839
b057297a
AH
68402017-05-26 Alan Hayward <alan.hayward@arm.com>
6841
6842 * defs.h (copy_integer_to_size): New declaration.
6843 * findvar.c (copy_integer_to_size): New function.
6844 (do_cint_test): New selftest function.
6845 (copy_integer_to_size_test): Likewise.
6846 (_initialize_findvar): Likewise.
6847 * mips-fbsd-tdep.c (mips_fbsd_supply_reg): Use raw_supply_integer.
6848 (mips_fbsd_collect_reg): Use raw_collect_integer.
6849 * mips-linux-tdep.c (supply_32bit_reg): Use raw_supply_integer.
6850 (mips64_fill_gregset): Use raw_collect_integer
6851 (mips64_fill_fpregset): Use raw_supply_integer.
6852 * regcache.c (regcache::raw_supply_integer): New function.
6853 (regcache::raw_collect_integer): Likewise.
6854 * regcache.h: (regcache::raw_supply_integer): New declaration.
6855 (regcache::raw_collect_integer): Likewise.
6856
b77b02a5
YQ
68572017-05-24 Yao Qi <yao.qi@linaro.org>
6858
6859 * Makefile.in (SFILES): Add gdbarch-selftests.c.
6860 (COMMON_OBS): Add gdbarch-selftests.o.
6861 * frame.c [GDB_SELF_TESTS] (create_new_frame): New function.
6862 * frame.h [GDB_SELF_TESTS] (create_new_frame): Declare.
6863 * gdbarch-selftests.c: New file.
6864 * regcache.h (regcache) <~regcache>: Mark it virtual if
6865 GDB_SELF_TEST.
6866 <raw_write>: Likewise.
6867
e521e87e
YQ
68682017-05-24 Yao Qi <yao.qi@linaro.org>
6869
6870 * regcache.c (current_regcache): Change it to
6871 regcache::current_regcache.
6872 (regcache_observer_target_changed): Update.
6873 (regcache_thread_ptid_changed): Make it a regcache static
6874 method.
6875 (regcache_thread_ptid_changed): Update.
6876 (class regcache_access): New.
6877 (current_regcache_test): Update.
6878 (_initialize_regcache): Update.
6879 * regcache.h: Include forward_list.
6880 (regcache): Declare regcache_thread_ptid_changed and declare
6881 registers_changed_ptid as friend.
6882
d8e07dda
YQ
68832017-05-24 Yao Qi <yao.qi@linaro.org>
6884
6885 * i387-tdep.c (i387_register_to_value): Use register_size
6886 instead of TYPE_LENGTH.
6887 * m68k-tdep.c (m68k_register_to_value): Likewise.
6888
8c8f9122
YQ
68892017-05-24 Yao Qi <yao.qi@linaro.org>
6890
6891 * i387-tdep.c (i387_convert_register_p): Return false if type
6892 code isn't TYPE_CODE_FLT.
6893
68fce50f
YQ
68942017-05-24 Yao Qi <yao.qi@linaro.org>
6895
6896 * alpha-tdep.c (alpha_convert_register_p): Return true if type
6897 length is 4.
6898 (alpha_register_to_value): Remove type length check.
6899 (alpha_value_to_register): Likewise.
6900
88954b49
YQ
69012017-05-24 Yao Qi <yao.qi@linaro.org>
6902
6903 * ia64-tdep.c (ia64_convert_register_p): Check type's code is
6904 TYPE_CODE_FLT.
6905
e3ec9b69
YQ
69062017-05-24 Yao Qi <yao.qi@linaro.org>
6907
6908 * m68k-tdep.c (m68k_convert_register_p): Check type's code is
6909 TYPE_CODE_FLT or not.
6910
cdd238da
YQ
69112017-05-24 Yao Qi <yao.qi@linaro.org>
6912
6913 * alpha-tdep.c (alpha_gdbarch_init): Use XCNEW instead of XNEW.
6914 * avr-tdep.c (avr_gdbarch_init): Likewise.
6915 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
6916 * cris-tdep.c (cris_gdbarch_init): Likewise.
6917 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
6918 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
6919 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
6920 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
6921 * mep-tdep.c (mep_gdbarch_init): Likewise.
6922 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
6923 * mips-tdep.c (mips_gdbarch_init): Likewise.
6924 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
6925 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
6926 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
6927 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
6928 * v850-tdep.c (v850_gdbarch_init): Likewise.
6929
7a3929c4
YQ
69302017-05-24 Yao Qi <yao.qi@linaro.org>
6931
6932 * selftest-arch.c (tests_with_arch): Call registers_changed
6933 and reinit_frame_cache.
6934 * selftest.c (run_self_tests): Likewise.
6935
f4985dba
YQ
69362017-05-24 Yao Qi <yao.qi@linaro.org>
6937
6938 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove.
6939 (rs6000_gdbarch_init): Don't call set_gdbarch_print_insn.
6940
ab20fa4a
YQ
69412017-05-24 Yao Qi <yao.qi@linaro.org>
6942
6943 * rl78-tdep.c (rl78_gdbarch_init): Don't call
6944 set_gdbarch_print_insn.
6945
f532ab94
YQ
69462017-05-24 Yao Qi <yao.qi@linaro.org>
6947
6948 * h8300-tdep.c (h8300_gdbarch_init): Don't call
6949 set_gdbarch_print_insn.
6950
39503f82
YQ
69512017-05-24 Yao Qi <yao.qi@linaro.org>
6952
6953 * alpha-tdep.c (alpha_gdbarch_init): Don't call
6954 set_gdbarch_print_insn.
6955 * arc-tdep.c (arc_gdbarch_init): Likewise.
6956 * arch-utils.c: include dis-asm.h.
6957 (default_print_insn): New function.
6958 * arch-utils.h (default_print_insn): Declare.
6959 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_print_insn.
6960 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
6961 * cris-tdep.c (cris_delayed_get_disassembler): Remove.
6962 (cris_gdbarch_init): Don't call set_gdbarch_print_insn.
6963 * frv-tdep.c (frv_gdbarch_init): Likewise.
6964 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
6965 * gdbarch.sh (print_insn): Use default_print_insn.
6966 * gdbarch.c: Regenerated.
6967 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
6968 * iq2000-tdep.c (iq2000_gdbarch_init): Likewise.
6969 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
6970 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
6971 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
6972 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Remove.
6973 (m68hc11_gdbarch_init): Don't call set_gdbarch_print_insn.
6974 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
6975 * m88k-tdep.c (m88k_gdbarch_init): Likewise.
6976 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
6977 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
6978 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
6979 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
6980 * mt-tdep.c (mt_gdbarch_init): Likewise.
6981 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
6982 * nios2-tdep.c (nios2_print_insn): Remove.
6983 (nios2_gdbarch_init): Don't call set_gdbarch_print_insn.
6984 * rx-tdep.c (rx_gdbarch_init): Likewise.
6985 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
6986 * score-tdep.c (score_print_insn): Remove.
6987 (score_gdbarch_init): Don't call set_gdbarch_print_insn.
6988 * sh-tdep.c (sh_gdbarch_init): Likewise.
6989 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
6990 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
6991 * tic6x-tdep.c (tic6x_print_insn): Remove.
6992 (tic6x_gdbarch_init): Don't call set_gdbarch_print_insn.
6993 * tilegx-tdep.c (tilegx_gdbarch_init): Likewise.
6994 * v850-tdep.c (v850_gdbarch_init): Likewise.
6995 * vax-tdep.c (vax_gdbarch_init): Likewise.
6996 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
6997 * xtensa-tdep.c (xtensa_gdbarch_init): Likewise.
6998
f7241d4f
JB
69992017-05-23 John Baldwin <jhb@FreeBSD.org>
7000
7001 * mips-fbsd-tdep.c (MIPS_PC_REGNUM): Remove.
7002 (MIPS_FP0_REGNUM): Remove.
7003 (MIPS_FSR_REGNUM): Remove.
7004 (mips_fbsd_supply_fpregs): Use mips_regnum.
7005 (mips_fbsd_supply_gregs): Likewise.
7006 (mips_fbsd_collect_fpregs): Likewise.
7007 (mips_fbsd_collect_gregs): Likewise.
7008
d489d81d
JB
70092017-05-23 John Baldwin <jhb@FreeBSD.org>
7010
7011 * mips-fbsd-nat.c (getregs_supplies): Fix upper bound comparison.
7012 (getpfpregs_supplies): New function.
7013 (mips_fbsd_fetch_inferior_registers): Remove early exit and use
7014 getfpregs_supplies.
7015 (mips_fbsd_store_inferior_registers): Likewise.
7016
e11b3cdc
PA
70172017-05-22 Pedro Alves <palves@redhat.com>
7018
7019 * MAINTAINERS (Host/Native): Add John Baldwin as FreeBSD
7020 maintainer.
7021
0f068fb5
AH
70222017-05-22 Alan Hayward <alan.hayward@arm.com>
7023
7024 * ppc-linux-nat.c (fetch_register): Use PPC_MAX_REGISTER_SIZE.
7025 (store_register): Likewise.
7026 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Likewise.
7027 (get_decimal_float_return_value): Likewise.
7028 (do_ppc_sysv_return_value): Likewise.
7029 (ppc64_sysv_abi_push_integer): Likewise.
7030 (ppc64_sysv_abi_push_freg): Likewise.
7031 (ppc64_sysv_abi_return_value_base): Likewise.
7032 (ppc64_sysv_abi_return_value): Likewise.
7033 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
7034 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
7035 * rs6000-nat.c: Likewise.
7036 * rs6000-tdep.c (rs6000_register_to_value): Likewise.
7037 (rs6000_value_to_register): Likewise.
7038 * ppc-tdep.h (PPC_MAX_REGISTER_SIZE): Add.
7039
e6cf65f2
TT
70402017-05-21 Tom Tromey <tom@tromey.com>
7041
7042 PR rust/21466:
7043 * rust-lang.c (rust_print_type) <TYPE_CODE_ARRAY>: Print unsized
7044 arrays as "[T]", not "[T; ]".
7045
43cc5389
TT
70462017-05-19 Tom Tromey <tom@tromey.com>
7047
7048 PR rust/21484:
7049 * rust-lang.c (exp_descriptor_rust): New function.
7050 (rust_language_defn): Use it.
7051 * p-lang.c (pascal_language_defn): Update.
7052 * opencl-lang.c (opencl_language_defn): Update.
7053 * objc-lang.c (objc_language_defn): Update.
7054 * m2-lang.c (m2_language_defn): Update.
7055 * language.h (struct language_defn)
7056 <la_watch_location_expression>: New member.
7057 * language.c (unknown_language_defn, auto_language_defn)
7058 (local_language_defn): Update.
7059 * go-lang.c (go_language_defn): Update.
7060 * f-lang.c (f_language_defn): Update.
7061 * d-lang.c (d_language_defn): Update.
7062 * c-lang.h (c_watch_location_expression): Declare.
7063 * c-lang.c (c_watch_location_expression): New function.
7064 (c_language_defn, cplus_language_defn, asm_language_defn)
7065 (minimal_language_defn): Use it.
7066 * breakpoint.c (watch_command_1): Call
7067 la_watch_location_expression.
7068 * ada-lang.c (ada_language_defn): Update.
7069
7a6e7fcc
RO
70702017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7071
6e7e1744
RO
7072 PR tui/21482
7073 * gdb_curses.h (NOMACROS): Define.
7074 (NCURSES_NOMACROS): Define.
7075
70762017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7077
7078 PR tui/21482
7a6e7fcc
RO
7079 * tui/tui-windata.c (tui_erase_data_content): Cast last mvwaddstr
7080 arg to char *.
7081 * tui/tui-wingeneral.c (box_win): Likewise.
7082 * tui/tui-winsource.c (tui_erase_source_content): Likewise.
7083 (tui_show_source_line): Likewise.
7084 (tui_show_exec_info_content): Likewise.
7085
1933fd8e
VM
70862017-05-19 Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
7087
7088 * sparc-tdep.c (sparc_structure_return_p)
7089 (sparc_arg_on_registers_p): New functions.
7090 (sparc32_store_arguments): Use them.
7091 * sparc64-tdep.c (sparc64_16_byte_align_p)
7092 (sparc64_store_floating_fields, sparc64_extract_floating_fields):
7093 Handle TYPE_CODE_ARRAY.
7094
21873064
YQ
70952017-05-17 Yao Qi <yao.qi@linaro.org>
7096
7097 * cli/cli-decode.c (add_alias_cmd): New function.
7098 * command.h (add_alias_cmd): Declare.
7099 * infcmd.c (_initialize_infcmd): Don't call add_com_alias,
7100 instead call add_alias_cmd.
7101
2b351b19
PA
71022017-05-17 Pedro Alves <palves@redhat.com>
7103
7104 * Makefile.in (nat_extra_makefile_frag): Rename to ...
7105 (nat_makefile_frag): ... this. All references updated.
7106 * configure.ac: Likewise.
7107 * configure.nat: Likewise. Enhance comments.
7108 * configure: Regenerate.
7109
5f2ad7a3
RO
71102017-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7111
7112 * procfs.c (procfs_create_inferior): Change prototype to match
7113 definition.
7114
adf3dde5
EZ
71152017-05-13 Eli Zaretskii <eliz@gnu.org>
7116
7117 * tui/tui.c (tui_enable): Cast "unknown" to 'char *' to avoid a
7118 C++ compiler warning.
7119
6830f270
TT
71202017-05-12 Tom Tromey <tom@tromey.com>
7121
7122 PR rust/21483:
7123 * rust-lang.c (rust_evaluate_subexp) <STRUCTOP_STRUCT>: Don't
7124 recurse, just call value_struct_elt directly.
7125
68f2f2e3
TT
71262017-05-12 Tom Tromey <tom@tromey.com>
7127
7128 * rust-lang.c (rust_dump_subexp_body) <STRUCTOP_ANONYMOUS,
7129 OP_RUST_ARRAY>: Fix.
7130
256afbc2
TT
71312017-05-12 Tom Tromey <tom@tromey.com>
7132
7133 * rust-lang.c (rust_print_subexp): Replace "return" with "break".
7134
94bb8dfe
YQ
71352017-05-09 Yao Qi <yao.qi@linaro.org>
7136
7137 * regcache.c: Include <forward_list>.
7138 (struct regcache_list): Remove.
7139 (current_regcache): Update.
7140 (get_thread_arch_aspace_regcache): Update for std::forward_list.
7141 (regcache_thread_ptid_changed): Likewise.
7142 (registers_changed_ptid): Likewise.
7143 (current_regcache_size): Likewise.
7144
8248946c
YQ
71452017-05-09 Yao Qi <yao.qi@linaro.org>
7146
7147 * regcache.c [GDB_SELF_TEST]: Include selftest.h.
7148 (current_regcache_size): New function.
7149 (current_regcache_test): New function.
7150 (_initialize_regcache) [GDB_SELF_TEST]: Register the unit test.
7151
313c5961
AH
71522017-05-08 Alan Hayward <alan.hayward@arm.com>
7153
7154 * mips-tdep.c (mips_o32_return_value): Remove unused buffer.
7155 (print_gp_register_row): Use get_frame_register_value.
7156
27bfc1d1
AH
71572017-05-08 Alan Hayward <alan.hayward@arm.com>
7158
7159 * mips-linux-tdep.c (mips_supply_gregset): Use raw_supply_zeroed.
7160 (mips_supply_fpregset): Likewise.
7161 (mips64_supply_gregset): Likewise.
7162
146e6c5c
AH
71632017-05-08 Alan Hayward <alan.hayward@arm.com>
7164
7165 * mn10300-linux-tdep.c (am33_supply_gregset_method): Use
7166 regcache->raw_supply_zeroed.
7167
e50f25ec
SDJ
71682017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
7169
7170 * configure.nat: Rearrange 'case' statements to match
7171 host before cpu.
7172
21ea5acd
SDJ
71732017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
7174
7175 * Makefile.in: Remove "@host_makefile_frag@". Add variables
7176 NAT_FILE, NATDEPFILES, NAT_CDEPS, LOADLIBES, MH_CFLAGS, XM_CLIBS,
7177 NAT_GENERATED_FILES, HAVE_NATIVE_GCORE_HOST. Add
7178 "@nat_extra_makefile_frag@".
7179 (Makefile): Remove dependency on "@frags@".
7180 ($(GNULIB_BUILDDIR)/Makefile): Likewise.
7181 (data-directory/Makefile): Likewise.
7182 * config/aarch64/linux.mh: Deleted; moved contents to
7183 "gdb/configure.nat".
7184 * config/alpha/alpha-linux.mh: Likewise.
7185 * config/alpha/nbsd.mh: Likewise.
7186 * config/arm/linux.mh: Likewise.
7187 * config/arm/nbsdelf.mh: Likewise.
7188 * config/i386/cygwin.mh: Likewise.
7189 * config/i386/cygwin64.mh: Likewise.
7190 * config/i386/darwin.mh: Likewise.
7191 * config/i386/fbsd.mh: Likewise.
7192 * config/i386/fbsd64.mh: Likewise.
7193 * config/i386/go32.mh: Likewise.
7194 * config/i386/i386gnu.mh: Likewise.
7195 * config/i386/i386sol2.mh: Likewise.
7196 * config/i386/linux.mh: Likewise.
7197 * config/i386/linux64.mh: Likewise.
7198 * config/i386/mingw.mh: Likewise.
7199 * config/i386/mingw64.mh: Likewise.
7200 * config/i386/nbsd64.mh: Likewise.
7201 * config/i386/nbsdelf.mh: Likewise.
7202 * config/i386/nto.mh: Likewise.
7203 * config/i386/obsd.mh: Likewise.
7204 * config/i386/obsd64.mh: Likewise.
7205 * config/i386/sol2-64.mh: Likewise.
7206 * config/ia64/linux.mh: Likewise.
7207 * config/m32r/linux.mh: Likewise.
7208 * config/m68k/linux.mh: Likewise.
7209 * config/m68k/nbsdelf.mh: Likewise.
7210 * config/m68k/obsd.mh: Likewise.
7211 * config/m88k/obsd.mh: Likewise.
7212 * config/mips/fbsd.mh: Likewise.
7213 * config/mips/linux.mh: Likewise.
7214 * config/mips/nbsd.mh: Likewise.
7215 * config/mips/obsd64.mh: Likewise.
7216 * config/pa/linux.mh: Likewise.
7217 * config/pa/nbsd.mh: Likewise.
7218 * config/pa/obsd.mh: Likewise.
7219 * config/powerpc/aix.mh: Likewise.
7220 * config/powerpc/fbsd.mh: Likewise.
7221 * config/powerpc/linux.mh: Likewise.
7222 * config/powerpc/nbsd.mh: Likewise.
7223 * config/powerpc/obsd.mh: Likewise.
7224 * config/powerpc/ppc64-linux.mh: Likewise.
7225 * config/powerpc/spu-linux.mh: Likewise.
7226 * config/s390/linux.mh: Likewise.
7227 * config/sh/nbsd.mh: Likewise.
7228 * config/sparc/fbsd.mh: Likewise.
7229 * config/sparc/linux.mh: Likewise.
7230 * config/sparc/linux64.mh: Likewise.
7231 * config/sparc/nbsd64.mh: Likewise.
7232 * config/sparc/nbsdelf.mh: Likewise.
7233 * config/sparc/obsd64.mh: Likewise.
7234 * config/sparc/sol2.mh: Likewise.
7235 * config/tilegx/linux.mh: Likewise.
7236 * config/vax/nbsdelf.mh: Likewise.
7237 * config/vax/obsd.mh: Likewise.
7238 * config/xtensa/linux.mh: Likewise.
7239 * config/i386/i386gnu.mn: New file, with excerpts from
7240 "config/i386/i386gnu.mh".
7241 * configure: Regenerate.
7242 * configure.ac: Rewrite code to use "gdb/configure.nat" instead of
7243 *.mh files under "gdb/config".
7244 * configure.nat: New file, with contents from the
7245 "gdb/config/*/*.mh" files.
7246
7ed1acaf
TW
72472017-05-05 Tim Wiederhake <tim.wiederhake@intel.com>
7248
7249 * btrace.c (btrace_clear): Free insn vector.
7250
e13cb306
PA
72512017-05-05 Pedro Alves <palves@redhat.com>
7252
7253 * warning.m4 (build_warnings): Add -Wno-error=maybe-uninitialized.
7254 * configure: Regenerate.
7255
5ed8105e
PA
72562017-05-04 Pedro Alves <palves@redhat.com>
7257
7258 * Makefile.in (SFILES): Add progspace-and-thread.c.
7259 (HFILES_NO_SRCDIR): Add progspace-and-thread.h.
7260 (COMMON_OBS): Add progspace-and-thread.o.
7261 * breakpoint.c: Include "progspace-and-thread.h".
7262 (update_inserted_breakpoint_locations)
7263 (insert_breakpoint_locations, create_longjmp_master_breakpoint):
7264 Use scoped_restore_current_pspace_and_thread.
7265 (create_std_terminate_master_breakpoint): Use
7266 scoped_restore_current_program_space.
7267 (remove_breakpoint): Use scoped_restore_current_pspace_and_thread.
7268 (print_breakpoint_location): Use
7269 scoped_restore_current_program_space.
7270 (bp_loc_is_permanent): Use
7271 scoped_restore_current_pspace_and_thread.
7272 (resolve_sal_pc): Use scoped_restore_current_pspace_and_thread.
7273 (download_tracepoint_locations): Use
7274 scoped_restore_current_pspace_and_thread.
7275 (breakpoint_re_set): Use scoped_restore_current_pspace_and_thread.
7276 * exec.c (exec_close_1): Use scoped_restore_current_program_space.
7277 (enum step_over_calls_kind): Moved from inferior.h.
7278 (class scoped_restore_current_thread): New class.
7279 * gdbthread.h (make_cleanup_restore_current_thread): Delete
7280 declaration.
7281 (scoped_restore_current_thread): New class.
7282 * infcmd.c: Include "common/gdb_optional.h".
7283 (continue_1, proceed_after_attach): Use
7284 scoped_restore_current_thread.
7285 (notice_new_inferior): Use scoped_restore_current_thread.
7286 * inferior.c: Include "progspace-and-thread.h".
7287 (restore_inferior, save_current_inferior): Delete.
7288 (add_inferior_command, clone_inferior_command): Use
7289 scoped_restore_current_pspace_and_thread.
7290 * inferior.h (scoped_restore_current_inferior): New class.
7291 * infrun.c: Include "progspace-and-thread.h" and
7292 "common/gdb_optional.h".
7293 (follow_fork_inferior): Use
7294 scoped_restore_current_pspace_and_thread.
7295 (scoped_restore_exited_inferior): New class.
7296 (handle_vfork_child_exec_or_exit): Use
7297 scoped_restore_exited_inferior,
7298 scoped_restore_current_pspace_and_thread,
7299 scoped_restore_current_thread and scoped_restore.
7300 (fetch_inferior_event): Use scoped_restore_current_thread.
7301 * linespec.c (decode_line_full, decode_line_1): Use
7302 scoped_restore_current_program_space.
7303 * mi/mi-main.c: Include "progspace-and-thread.h".
7304 (exec_continue): Use scoped_restore_current_thread.
7305 (mi_cmd_exec_run): Use scoped_restore_current_pspace_and_thread.
7306 (mi_cmd_trace_frame_collected): Use scoped_restore_current_thread.
7307 * proc-service.c (ps_pglobal_lookup): Use
7308 scoped_restore_current_program_space.
7309 * progspace-and-thread.c: New file.
7310 * progspace-and-thread.h: New file.
7311 * progspace.c (release_program_space, clone_program_space): Use
7312 scoped_restore_current_program_space.
7313 (restore_program_space, save_current_program_space)
7314 (save_current_space_and_thread): Delete.
7315 (switch_to_program_space_and_thread): Moved to
7316 progspace-and-thread.c.
7317 * progspace.h (save_current_program_space)
7318 (save_current_space_and_thread): Delete declarations.
7319 (scoped_restore_current_program_space): New class.
7320 * remote.c (remote_btrace_maybe_reopen): Use
7321 scoped_restore_current_thread.
7322 * symtab.c: Include "progspace-and-thread.h".
7323 (skip_prologue_sal): Use scoped_restore_current_pspace_and_thread.
7324 * thread.c (print_thread_info_1): Use
7325 scoped_restore_current_thread.
7326 (struct current_thread_cleanup): Delete.
7327 (do_restore_current_thread_cleanup)
7328 (restore_current_thread_cleanup_dtor): Rename/convert both to ...
7329 (scoped_restore_current_thread::~scoped_restore_current_thread):
7330 ... this new dtor.
7331 (make_cleanup_restore_current_thread): Rename/convert to ...
7332 (scoped_restore_current_thread::scoped_restore_current_thread):
7333 ... this new ctor.
7334 (thread_apply_all_command): Use scoped_restore_current_thread.
7335 (thread_apply_command): Use scoped_restore_current_thread.
7336 * tracepoint.c (tdump_command): Use scoped_restore_current_thread.
7337 * varobj.c (value_of_root_1): Use scoped_restore_current_thread.
7338
f6223dbb
PA
73392017-05-04 Pedro Alves <palves@redhat.com>
7340
7341 * thread.c (make_cleanup_restore_current_thread): Move
7342 find_thread_ptid call before the is_stopped call. Assert that the
7343 thread is found. Replace is_stopped call by checking the thread's
7344 state directly. Remove unnecessary NULL-thread check.
7345
3c3ae77e
PA
73462017-05-04 Pedro Alves <palves@redhat.com>
7347
7348 * corelow.c (thread_section_name): New class.
7349 (get_core_register_section, get_core_siginfo): Use it.
7350
45eba0ab
AA
73512017-05-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
7352
7353 * corelow.c (sniff_core_bfd): Remove extra semicolon.
7354 (get_core_register_section): Remove xfree of NULL pointer.
7355
f81fdd35
AH
73562017-05-03 Alan Hayward <alan.hayward@arm.com>
7357
7358 * frv-linux-tdep.c (frv_linux_supply_gregset): Use raw_supply_zeroed.
7359 * regcache.c (regcache::raw_supply_zeroed): New function.
7360 * regcache.h (regcache::raw_supply_zeroed): New declaration.
7361
35837774
SM
73622017-05-03 Simon Marchi <simon.marchi@ericsson.com>
7363
7364 * gdbarch.sh: Remove commented out definition of
7365 TARGET_CHAR_BIT.
7366 * gdbarch.h: Re-generate.
7367
c94fee56
SDJ
73682017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
7369
7370 * configure: Regenerate.
7371
d17f7b36
SM
73722017-05-02 Simon Marchi <simon.marchi@ericsson.com>
7373
7374 * solib-target.c (solib_target_relocate_section_addresses):
7375 Remove num_section_bases, num_bases, segment_bases variables.
7376
b560ebd6
SM
73772017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7378
7379 * common/gdb_vecs.h (DEF_VEC_I (CORE_ADDR)): Remove.
7380
f2f46dfc
SM
73812017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7382
7383 * solib-target.c: Include <vector>
7384 (struct lm_info_target) <~lm_info_target>: Remove.
7385 <segment_bases, section_bases>: Change type to
7386 std::vector<CORE_ADDR>.
7387 (library_list_start_segment, library_list_start_section,
7388 library_list_end_library,
7389 solib_target_relocate_section_addresses): Adjust.
7390
a0ff9e1a
SM
73912017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7392
7393 * gdbarch.sh (software_single_step): Change return type to
7394 std::vector<CORE_ADDR>.
7395 * gdbarch.c, gdbarch.h: Re-generate.
7396 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw):
7397 Adjust.
7398 (arm_deal_with_atomic_sequence_raw): Adjust.
7399 (thumb_get_next_pcs_raw): Adjust.
7400 (arm_get_next_pcs_raw): Adjust.
7401 (arm_get_next_pcs): Adjust.
7402 * arch/arm-get-next-pcs.h (arm_get_next_pcs): Adjust.
7403 * aarch64-tdep.c (aarch64_software_single_step): Adjust.
7404 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Adjust.
7405 (alpha_software_single_step): Adjust.
7406 * alpha-tdep.h (alpha_software_single_step): Adjust.
7407 * arm-linux-tdep.c (arm_linux_software_single_step): Adjust.
7408 * arm-tdep.c (arm_software_single_step): Adjust.
7409 (arm_breakpoint_kind_from_current_state): Adjust.
7410 * arm-tdep.h (arm_software_single_step): Adjust.
7411 * breakpoint.c (insert_single_step_breakpoint): Adjust.
7412 * cris-tdep.c (cris_software_single_step): Adjust.
7413 * mips-tdep.c (mips_deal_with_atomic_sequence): Adjust.
7414 (micromips_deal_with_atomic_sequence): Adjust.
7415 (deal_with_atomic_sequence): Adjust.
7416 (mips_software_single_step): Adjust.
7417 * mips-tdep.h (mips_software_single_step): Adjust.
7418 * moxie-tdep.c (moxie_software_single_step): Adjust.
7419 * nios2-tdep.c (nios2_software_single_step): Adjust.
7420 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Adjust.
7421 * rs6000-aix-tdep.c (rs6000_software_single_step): Adjust.
7422 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Adjust.
7423 * s390-linux-tdep.c (s390_software_single_step): Adjust.
7424 * sparc-tdep.c (sparc_software_single_step): Adjust.
7425 * spu-tdep.c (spu_software_single_step): Adjust.
7426 * tic6x-tdep.c (tic6x_software_single_step): Adjust.
7427
ea480a30
SM
74282017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7429
7430 * gdbarch.sh: Use semi-colon as field separator instead of colon.
7431 * gdbarch.h: Re-generate.
7432
d050f7d7
TW
74332017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
7434
7435 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-instruction.o.
7436 (SUBDIR_PYTHON_SRCS): Add py-instruction.c.
7437 * python/py-instruction.c, python/py-instruction.h: New file.
7438 * python/py-record.c: Add py-instruction.h include.
7439 (gdbpy_initialize_record): Make gdb.Instruction a super class of
7440 gdb.RecordInstruction.
7441 * python/python-internal.h: Add gdbpy_initialize_instruction
7442 declaration.
7443 * python/python.c (do_start_initialization): Add
7444 gdbpy_initialize_instruction.
7445
14f819c8
TW
74462017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
7447
7448 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_CALL, btpy_call_type):
7449 Remove.
7450 (btrace_func_from_recpy_func): New function.
7451 (btpy_call_new, btpy_number, btpy_hash, btpy_richcompare): Remove.
7452 (btpy_call_level, btpy_call_symbol, btpy_call_instructions,
7453 btpy_call_up, btpy_call_prev_sibling, btpy_call_next_sibling): Rename to ...
7454 (recpy_bt_func_level, recpy_bt_func_symbol, recpy_bt_func_instructions,
7455 recpy_bt_func_up, recpy_bt_func_prev, recpy_bt_func_next): This.
7456 Also, use new helper functions.
7457 (btpy_list_item): Use new helper functions.
7458 (recpy_bt_function_call_history): Use new type name.
7459 (btpy_call_getset): Remove.
7460 (gdbpy_initialize_btrace): Remove code to initialize
7461 gdb.BtraceFunctionCall.
7462 * python/py-record-btrace.h (recpy_bt_func_number, recpy_btb_func_level,
7463 recpy_btb_func_symbol, recpy_bt_func_instructions, recpy_bt_func_up,
7464 recpy_bt_func_prev, recpy_bt_func_next): New export.
7465 * python/py-record.c (recpy_func_type): New static object.
7466 (recpy_func_new, recpy_func_level, recpy_func_symbol,
7467 recpy_func_instructions, recpy_func_up, recpy_func_prev,
7468 recpy_func_next): New function.
7469 (recpy_element_hash, recpy_element_richcompare): Updated comment.
7470 (recpy_func_getset): New static object.
7471 (gdbpy_initialize_record): Add code to initialize gdb.RecordInstruction.
7472 * python/py-record.h (recpy_func_type, recpy_func_new): New export.
7473
0ed5da75
TW
74742017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
7475
7476 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN): Remove.
7477 (btpy_object, btpy_insn_type, btpy_new): Remove.
7478 (btpy_list_object): Use gdb.RecordInstruction type instead of
7479 gdb.BtraceInstruction type.
7480 (btrace_insn_from_recpy_insn): New function.
7481 (btpy_insn_or_gap_new): Adjust comment. Use recpy_insn_new instead of
7482 btpy_new.
7483 (btpy_call_new, btpy_list_item): Do not use btpy_new anymore.
7484 (btpy_number, btpy_hash, btpy_call_level, btpy_call_symbol,
7485 btpy_call_instructions, btpy_call_up, btpy_call_prev_sibling,
7486 btpy_call_next_sibling, btpy_richcompare): Use recpy_element_object
7487 instead of btpy_object.
7488 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
7489 btpy_insn_data, btpy_insn_decode): Rename to ...
7490 (recpy_bt_insn_sal, recpy_bt_insn_pc, recpy_bt_insn_size,
7491 recpy_bt_insn_is_speculative, recpy_bt_insn_data,
7492 recpy_bt_insn_decode): This. Also, use new helper functions.
7493 (btpy_list_position, recpy_bt_goto): Use recpy_element_object and
7494 recpy_insn_type.
7495 (btpy_insn_getset): Remove.
7496 (gdbpy_initialize_btrace): Remove code to initialize
7497 gdb.BtraceInstruction. Use recpy_element_object.
7498 * python/py-record-btrace.h (recpy_bt_insn_number, recpy_bt_insn_sal,
7499 recpy_bt_insn_pc, recpy_bt_insn_data, recpy_bt_insn_decoded,
7500 recpy_bt_insn_size, recpy_bt_insn_is_speculative): New export.
7501 * python/py-record.c (recpy_insn_type): New static object.
7502 (recpy_insn_new, recpy_insn_sal, recpy_insn_pc, recpy_insn_data,
7503 recpy_insn_decoded, recpy_insn_size, recpy_insn_is_speculative,
7504 recpy_element_number, recpy_element_hash, recpy_element_richcompare):
7505 New function.
7506 (recpy_insn_getset): New static object.
7507 (gdbpy_initialize_record): Initialize gdb.RecordInstruction.
7508 * python/py-record.h (recpy_element_object): New typedef.
7509 (recpy_insn_type, recpy_insn_new): New export.
7510
913aeadd
TW
75112017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
7512
7513 * py-record-btrace.c (btpy_insn_new): Removed.
7514 (btpy_insn_or_gap_new): New function.
7515 (btpy_insn_error): Removed.
7516 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
7517 btpy_insn_data, btpy_insn_decode): Remove code path for gaps.
7518 (recpy_bt_replay_position, recpy_bt_begin, recpy_bt_end): Call
7519 btpy_insn_or_gap_new instead of btpy_insn_new.
7520 (btpy_insn_getset): Remove btpy_insn_error.
7521 * py-record.c (recpy_gap_type): New static object.
7522 (recpy_gap_object): New typedef.
7523 (recpy_gap_new, recpy_gap_number, recpy_gap_reason_code,
7524 recpy_gap_reason_string): New function.
7525 (recpy_gap_getset): New static object.
7526 (gdbpy_initialize_record): Initialize gdb.RecordGap type.
7527 * py-record.h (recpy_gap_new): New export.
7528
a3be24ad
TW
75292017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
7530
7531 * python/py-record.c (recpy_ptid): Remove.
7532 (recpy_record_getset): Remove recpy_ptid.
7533
ae20e79a
TW
75342017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
7535
7536 * btrace.c (btrace_fetch): Set inferior_ptid.
7537 * python/py-record-btrace.c: Add "py-record.h" include.
7538 (recpy_bt_format, recpy_bt_replay_position, recpy_bt_begin,
7539 recpy_bt_end, recpy_bt_instruction_history,
7540 recpy_bt_function_call_history, recpy_bt_goto): Use ptid stored
7541 in gdb.Record object instead of current ptid.
7542 * python/py-record.c: Include new "py-record.h" file.
7543 (recpy_record_object): Moved to py-record.h.
7544 * python/py-record.h: New file.
7545
8d0050ea
TW
75462017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
7547
7548 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN,
7549 BTPY_REQUIRE_VALID_CALL, recpy_bt_function_call_history): Fix
7550 indentation.
7551
3f380b50
JB
75522017-05-01 Joel Brobecker <brobecker@adacore.com>
7553
7554 * MAINTAINERS: Move Daniel Jacobowitz and Mark Kettenis to
7555 the past maintainers section.
7556
07495424
YQ
75572017-04-28 Yao Qi <yao.qi@linaro.org>
7558
7559 * infcmd.c (get_return_value): Use regcache ctor, and remove
7560 cleanup.
7561
deb1fa3e
YQ
75622017-04-28 Yao Qi <yao.qi@linaro.org>
7563 Pedro Alves <palves@redhat.com>
7564
7565 * regcache.c (regcache::regcache): New tag dispatch ctor.
7566 (do_cooked_read): Moved above.
7567 (regcache_dup): Use the tag dispatch ctor..
7568 * regcache.h (regcache): Declare ctor, delete copy ctor and
7569 assignment operator, remove friend regcache_dup.
7570
b421c83c
YQ
75712017-04-28 Yao Qi <yao.qi@linaro.org>
7572
7573 * regcache.c (regcache_dup): Assert !src->m_readonly_p and
7574 call method save instead of regcache_cpy.
7575 * regcache.h (struct regcache): Make regcache_dup a friend.
7576
ef79d9a3
YQ
75772017-04-28 Yao Qi <yao.qi@linaro.org>
7578
7579 * regcache.c (struct regcache): Move to regcache.h
7580 (regcache::arch): New method.
7581 (regcache_get_ptid): Update.
7582 (get_regcache_arch): Call arch method.
7583 (get_regcache_aspace): Call method aspace.
7584 (register_buffer): Change it to method.
7585 (regcache_save): Change it to regcache::save.
7586 (regcache_restore): Likewise.
7587 (regcache_cpy_no_passthrough): Remove the declaration.
7588 (regcache_cpy): Call methods restore and cpy_no_passthrough.
7589 (regcache_cpy_no_passthrough): Change it to method
7590 cpy_no_passthrough.
7591 (regcache_register_status): Change it to method
7592 get_register_status.
7593 (regcache_invalidate): Change it to method invalidate.
7594 (regcache_thread_ptid_changed): Use methods ptid and set_ptid.
7595 (regcache_raw_update): Change it to method raw_update.
7596 (regcache_raw_read): Likewise.
7597 (regcache_raw_read_signed): Likewise.
7598 (regcache_raw_read_unsigned): Likewise.
7599 (regcache_raw_write_signed): Likewise.
7600 (regcache_raw_write_unsigned): Likewise.
7601 (regcache_cooked_read): Likewise.
7602 (regcache_cooked_read_value): Likewise.
7603 (regcache_cooked_read_signed): Likewise.
7604 (regcache_cooked_read_unsigned): Likewise.
7605 (regcache_cooked_write_signed): Likewise.
7606 (regcache_cooked_write_unsigned): Likewise.
7607 (regcache_raw_set_cached_value): Likewise.
7608 (regcache_raw_write): Likewise.
7609 (regcache_cooked_write): Likewise.
7610 (regcache_xfer_part): Likewise.
7611 (regcache_raw_read_part): Likewise.
7612 (regcache_raw_write_part): Likewise.
7613 (regcache_cooked_read_part): Likewise.
7614 (regcache_cooked_write_part): Likewise.
7615 (regcache_raw_supply): Likewise.
7616 (regcache_raw_collect): Likewise.
7617 (regcache_transfer_regset): Likewise.
7618 (regcache_supply_regset): Likewise.
7619 (regcache_collect_regset): Likewise.
7620 (regcache_debug_print_register): Likewise.
7621 (enum regcache_dump_what): Move it to regcache.h.
7622 (regcache_dump): Change it to method dump.
7623 * regcache.h (enum regcache_dump_what): New.
7624 (class regcache): New.
7625 * target.c (target_fetch_registers): Call method
7626 debug_print_register.
7627 (target_store_registers): Likewise.
7628
f8fdb78e
SM
76292017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7630
7631 * windows-nat.c (struct lm_info_windows): Initialize field.
7632 (windows_make_so): Allocate lm_info_windows with new.
7633 (windows_free_so): Free lm_info_windows with delete.
7634
9ccbfd7b
SM
76352017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7636
7637 * solib-darwin.c (struct lm_info_darwin): Initialize field.
7638 (darwin_current_sos): Allocate lm_info_darwin with new, remove
7639 cleanup.
7640 (darwin_free_so): Free lm_info_darwin with delete.
7641
76e75227
SM
76422017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7643
7644 * solib-svr4.h (struct lm_info_svr4): Initialize fields.
7645 <l_addr_p>: Change type to bool.
7646 * solib-svr4.c (lm_info_read): Allocate lm_info_svr4 with new.
7647 (svr4_free_so): Free lm_info_svr4 with delete.
7648 (svr4_copy_library_list): Replace memcpy with call to copy
7649 constructor.
7650 (library_list_start_library, svr4_default_sos): Allocate
7651 lm_info_svr4 with new.
7652
51046d9e
SM
76532017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7654
7655 * solib-target.c (struct lm_info_target): Add destructor,
7656 initialize fields.
7657 <name>: Change type to std::string.
7658 (library_list_start_library): Allocate lm_info_target with new.
7659 (solib_target_free_library_list): Free lm_info_target with
7660 delete.
7661 (solib_target_current_sos): Adapt to std::string.
7662 (solib_target_free_so): Free lm_info_target with delete.
7663
4023ae76
SM
76642017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7665
7666 * solib-frv.c (struct lm_info_frv): Add destructor, initialize
7667 fields.
7668 (frv_current_sos): Allocate lm_info_frv with new.
7669 (frv_relocate_main_executable): Free lm_info_frv with delete,
7670 allocate with new.
7671 (frv_clear_solib, frv_free_so): Free lm_info_frv with delete.
7672
af43057b
SM
76732017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7674
7675 * solib-frv.c (struct lm_info_frv): Fix indentation.
7676
b0911207
SM
76772017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7678
7679 * solib-dsbt.c (struct lm_info_dsbt): Add destructor, initialize
7680 map field.
7681 (dsbt_current_sos): Allocate lm_info_dsbt with new.
7682 (dsbt_relocate_main_executable): Free lm_info_dsbt with delete
7683 and allocate with new.
7684 (dsbt_clear_solib, dsbt_free_so): Free lm_info_dsbt with delete.
7685
6c401f72
SM
76862017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7687
7688 * solib-aix.c (struct lm_info_aix): Initialize fields in-class.
7689 <filename, member_name>: Change type to std::string.
7690 (solib_aix_new_lm_info, solib_aix_xfree_lm_info): Remove.
7691 (library_list_start_library): Allocate lm_info_aix with new.
7692 (solib_aix_free_library_list, solib_aix_free_so): Free with delete.
7693 (solib_aix_current_sos): Adapt to std::string, copy lm_info_aix
7694 with copy constructor.
7695
d0e449a1
SM
76962017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7697
7698 * solist.h (struct lm_info): Remove.
7699 (struct lm_info_base): New class.
7700 (struct so_list) <lm_info>: Change type to lm_info_base *.
7701 * nto-tdep.c (struct lm_info): Remove.
7702 (lm_addr): Adjust.
7703 * solib-aix.c (struct lm_info): Rename to ...
7704 (struct lm_info_aix): ... this. Extend lm_info_base.
7705 (lm_info_p): Rename to ...
7706 (lm_info_aix_p): ... this, and adjust.
7707 (solib_aix_new_lm_info, solib_aix_xfree_lm_info,
7708 solib_aix_parse_libraries, library_list_start_library,
7709 solib_aix_free_library_list, solib_aix_parse_libraries,
7710 solib_aix_get_library_list,
7711 solib_aix_relocate_section_addresses, solib_aix_free_so,
7712 solib_aix_get_section_offsets,
7713 solib_aix_solib_create_inferior_hook, solib_aix_current_sos):
7714 Adjust.
7715 (struct solib_aix_inferior_data) <library_list>: Adjust.
7716 * solib-darwin.c (struct lm_info): Rename to ...
7717 (struct lm_info_darwin): ... this. Extend lm_info_base.
7718 (darwin_current_sos, darwin_relocate_section_addresses): Adjust.
7719 * solib-dsbt.c (struct lm_info): Rename to ...
7720 (struct lm_info_dsbt): ... this. Extend lm_info_base.
7721 (struct dsbt_info) <main_executable_lm_info): Adjust.
7722 (dsbt_current_sos, dsbt_relocate_main_executable, dsbt_free_so,
7723 dsbt_relocate_section_addresses): Adjust.
7724 * solib-frv.c (struct lm_info): Rename to ...
7725 (struct lm_info_frv): ... this. Extend lm_info_base.
7726 (main_executable_lm_info): Adjust.
7727 (frv_current_sos, frv_relocate_main_executable, frv_free_so,
7728 frv_relocate_section_addresses, frv_fdpic_find_global_pointer,
7729 find_canonical_descriptor_in_load_object,
7730 frv_fdpic_find_canonical_descriptor): Adjust.
7731 * solib-svr4.c (struct lm_info): Move to solib-svr4.h, renamed
7732 to lm_info_svr4.
7733 (lm_info_read, lm_addr_check, svr4_keep_data_in_core,
7734 svr4_clear_so, svr4_copy_library_list,
7735 library_list_start_library, svr4_default_sos, svr4_read_so_list,
7736 svr4_current_sos, svr4_fetch_objfile_link_map,
7737 solist_update_incremental): Adjust.
7738 * solib-svr4.h (struct lm_info_svr4): Move here from
7739 solib-svr4.c.
7740 * solib-target.c (struct lm_info): Rename to ...
7741 (struct lm_info_target): ... this. Extend lm_info_base.
7742 (lm_info_p): Rename to ...
7743 (lm_info_target_p): ... this.
7744 (solib_target_parse_libraries, library_list_start_segment,
7745 library_list_start_section, library_list_start_library,
7746 library_list_end_library, solib_target_free_library_list,
7747 solib_target_current_sos, solib_target_free_so,
7748 solib_target_relocate_section_addresses): Adjust.
7749 * windows-nat.c (struct lm_info): Rename to ...
7750 (struct lm_info_windows): ... this. Extend lm_info_base.
7751 (windows_make_so, handle_load_dll, handle_unload_dll,
7752 windows_xfer_shared_libraries): Adjust.
7753
434a4023
SM
77542017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7755
7756 * solib-darwin.c (struct darwin_so_list): Remove.
7757 (darwin_current_sos): Allocate an so_list object instead of a
7758 darwin_so_list, separately allocate an lm_info object.
7759 (darwin_free_so): Free lm_info.
7760
428544e8
JB
77612017-04-28 John Baldwin <jhb@FreeBSD.org>
7762
7763 * mips-tdep.c (print_gp_register_row): Replace printf_filtered
7764 with fprintf_filtered.
7765
4621115f
YQ
77662017-04-28 Yao Qi <yao.qi@linaro.org>
7767
7768 * regcache.c (regcache::regcache): New function.
7769 (regcache::~regcache): New function.
7770 (regcache_xmalloc_1): Remove.
7771 (regcache_xmalloc): Call new regcache.
7772 (regcache_xfree): Call delete regcache.
7773 (get_thread_arch_aspace_regcache): Call new regcache.
7774
339053c2
YQ
77752017-04-28 Yao Qi <yao.qi@linaro.org>
7776
7777 * mips-linux-nat.c (mips_linux_new_thread): Use ptid method
7778 lwp instead of ptid_get_lwp.
7779
7974a605
YQ
77802017-04-28 Yao Qi <yao.qi@linaro.org>
7781
7782 * mips-linux-nat.c (mips_linux_new_thread): Get lwpid from
7783 lwp_info instead of getting from inferior_ptid.
7784
e15c3eb4
KS
77852017-04-27 Keith Seitz <keiths@redhat.com>
7786
7787 * gdbtypes.c (LVALUE_REFERENCE_TO_RVALUE_BINDING_BADNESS)
7788 DIFFERENT_REFERENCE_TYPE_BADNESS): Remove.
7789 (CV_CONVERSION_BADNESS): Define.
7790 (rank_one_type): Remove overly restrictive rvalue reference
7791 rank checks.
7792 Add cv-qualifier checks and subranks for type equality.
7793 * gdbtypes.h (REFERENCE_CONVERSION_RVALUE,
7794 REFERENCE_CONVERSION_CONST_LVALUE, CV_CONVERSION_BADNESS,
7795 CV_CONVERSION_CONST, CV_CONVERSION_VOLATILE): Declare.
7796
72bc1d24
SM
77972017-04-27 Simon Marchi <simon.marchi@ericsson.com>
7798
7799 * python/py-inferior.c (inferior_to_inferior_object): Increment reference
7800 count when creating the object.
7801
55bcecda
UW
78022017-04-27 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
7803 Ulrich Weigand <uweigand@de.ibm.com>
7804
7805 * xcoffread.c (read_xcoff_symtab): Read correct function auxiliary
7806 entry if xlc -qfuncsect or gcc -ffunction-sections compiler option
7807 is used in AIX.
7808 (read_xcoff_symtab): Handle C_WEAKEXT storage class.
7809 (process_xcoff_symbol): Likewise.
7810 (scan_xcoff_symtab): Likewise.
7811
5c99fcf8
AH
78122017-04-26 Alan Hayward <alan.hayward@arm.com>
7813
7814 * ia64-tdep.c (examine_prologue): Use get_frame_register_unsigned.
7815 (ia64_sigtramp_frame_prev_register): Use read_memory_unsigned_integer.
7816 (ia64_access_reg): Use get_frame_register_unsigned.
7817 (ia64_access_rse_reg): Likewise.
7818 (ia64_libunwind_frame_prev_register): Likewise.
7819
b41c5a85
JW
78202017-04-26 Jiong Wang <jiong.wang@arm.com>
7821
7822 * gdbarch.sh: New gdbarch method execute_dwarf_cfa_vendor_op.
7823 * gdbarch.c: Regenerated.
7824 * gdbarch.h: Regenerated.
7825 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Made the
7826 visibility external.
7827 (execute_cfa_program): Call execute_dwarf_cfa_vendor_op for CFI
7828 between DW_CFA_lo_user and DW_CFA_high_user inclusive.
7829 (enum cfa_how_kind): Move to ...
7830 (struct dwarf2_frame_state_reg_info): Likewise.
7831 (struct dwarf2_frame_state): Likewise.
7832 * dwarf2-frame.h: ... here.
7833 (dwarf2_frame_state_alloc_regs): New declaration.
7834 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): New function.
7835 (sparc32_gdbarch_init): Register execute_dwarf_cfa_vendor_op hook.
7836
c185f580
AH
78372017-04-26 Alan Hayward <alan.hayward@arm.com>
7838
7839 * xtensa-tdep.c (xtensa_pseudo_register_read): Use
7840 regcache_raw_read_unsigned.
7841 (xtensa_pseudo_register_write): Likewise.
7842
19c45594
AH
78432017-04-26 Alan Hayward <alan.hayward@arm.com>
7844
7845 * nds32-tdep.c (nds32_pseudo_register_read): Abort on errors.
7846 (nds32_pseudo_register_write): Likewise.
7847
4658f12e
YQ
78482017-04-25 Yao Qi <yao.qi@linaro.org>
7849
7850 * regcache.c (struct regcache) <readonly_p>: Change its type
7851 to bool.
7852 (regcache_xmalloc_1): Update parameter type and callers update.
7853
d581dda8
YQ
78542017-04-25 Yao Qi <yao.qi@linaro.org>
7855
7856 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
7857 set_gdbarch_wchar_bit.
7858 * arm-tdep.c (arm_gdbarch_init): Likewise.
7859
debed3db
PA
78602017-04-25 Pedro Alves <palves@redhat.com>
7861
7862 * common/poison.h [!HAVE_IS_TRIVIALLY_COPYABLE] (IsRelocatable)
7863 (BothAreRelocatable, memcopy, memmove): Don't define.
7864 * common/traits.h (__has_feature, HAVE_IS_TRIVIALLY_COPYABLE): New
7865 macros.
7866
b0b92aeb
PA
78672017-04-25 Pedro Alves <palves@redhat.com>
7868
7869 * common/common-defs.h: Include "common/poison.h".
7870 * common/function-view.h: (Not, Or, Requires): Move to traits.h
7871 and adjust.
7872 * common/poison.h: New file.
7873 * common/traits.h: Include <type_traits>.
7874 (Not, Or, Requires): New, moved from common/function-view.h.
7875
16c4d54a
PA
78762017-04-25 Pedro Alves <palves@redhat.com>
7877
7878 * breakpoint.h (struct breakpoint): In-class initialize all
7879 fields. Make boolean fields "bool".
7880 * breakpoint.c (init_raw_breakpoint_without_location): Remove
7881 memset call and initializations no longer necessary.
7882
b5c36682
PA
78832017-04-25 Pedro Alves <palves@redhat.com>
7884
7885 * btrace.c (pt_btrace_insn_flags): Change parameter type to
7886 reference.
7887 (pt_btrace_insn): New function.
7888 (ftrace_add_pt): Remove memset call and use pt_btrace_insn.
7889
5625a286
PA
78902017-04-25 Pedro Alves <palves@redhat.com>
7891
7892 * ada-lang.c (ada_catchpoint_location): Now a "class". Remove
7893 "base" field and inherit from "bp_location" instead. Add
7894 non-default ctor.
7895 (allocate_location_exception): Use new non-default ctor.
7896 * breakpoint.c (get_first_locp_gte_addr): Remove memset call.
7897 (init_bp_location): Convert to ...
7898 (bp_location::bp_location): ... this new ctor, and remove memset
7899 call.
7900 (base_breakpoint_allocate_location): Use the new non-default ctor.
7901 * breakpoint.h (bp_location): Now a class. Declare default and
7902 non-default ctors. In-class initialize all members.
7903 (init_bp_location): Remove declaration.
7904
23bcc18f
PA
79052017-04-25 Pedro Alves <palves@redhat.com>
7906
7907 * common/enum-flags.h (enum_flags): Don't implement copy ctor and
7908 assignment operator.
7909
e1ba3053
YQ
79102017-04-24 Yao Qi <yao.qi@linaro.org>
7911
7912 * doublest.c (convert_doublest_to_floatformat): Call
7913 floatformat_totalsize_bytes.
7914
10f489e5
TT
79152017-04-22 Tom Tromey <tom@tromey.com>
7916
7917 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
7918 ui_out_emit_list.
7919 * stack.c (print_frame): Use ui_out_emit_list.
7920 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
7921 ui_out_emit_list.
7922 * mi/mi-main.c (print_one_inferior)
7923 (mi_cmd_data_list_register_names)
7924 (mi_cmd_data_list_register_values, mi_cmd_list_features)
7925 (mi_cmd_list_target_features, mi_cmd_trace_frame_collected): Use
7926 ui_out_emit_list.
7927 * mi/mi-interp.c (mi_on_normal_stop_1): Use ui_out_emit_list.
7928 (mi_output_solib_attribs): Use ui_out_emit_list,
7929 ui_out_emit_tuple.
7930 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_list.
7931 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
7932 (mi_cmd_stack_list_args, list_args_or_locals): Use
7933 ui_out_emit_list.
7934 * disasm.c (do_assembly_only): Use ui_out_emit_list.
7935 * breakpoint.c (print_solib_event, output_thread_groups): Use
7936 ui_out_emit_list.
7937
0092b74d
TT
79382017-04-22 Tom Tromey <tom@tromey.com>
7939
7940 * mi/mi-main.c (print_variable_or_computed): Use ui_out_emit_tuple.
7941 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_tuple.
7942 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_out_emit_tuple.
7943
a14a62dd
TT
79442017-04-22 Tom Tromey <tom@tromey.com>
7945
7946 * tracepoint.c (tvariables_info_1)
7947 (print_one_static_tracepoint_marker): Use ui_out_emit_tuple.
7948
46b9c129
TT
79492017-04-22 Tom Tromey <tom@tromey.com>
7950
7951 * stack.c (print_frame_arg): Use ui_out_emit_tuple,
7952 annotate_arg_emitter.
7953 * breakpoint.c (print_mention_watchpoint)
7954 (print_mention_masked_watchpoint): Use ui_out_emit_tuple.
7955 * annotate.h (struct annotate_arg_emitter): New.
7956
2e783024
TT
79572017-04-22 Tom Tromey <tom@tromey.com>
7958
7959 * record-btrace.c (record_btrace_insn_history)
7960 (record_btrace_insn_history_range, record_btrace_call_history)
7961 (record_btrace_call_history_range): Use ui_out_emit_tuple.
7962 * thread.c (do_captured_list_thread_ids, print_thread_info_1): Use
7963 ui_out_emit_tuple.
7964 * stack.c (print_frame_info): Use ui_out_emit_tuple.
7965 * solib.c (info_sharedlibrary_command): Use ui_out_emit_tuple.
7966 * skip.c (skip_info): Use ui_out_emit_tuple.
7967 * remote.c (show_remote_cmd): Use ui_out_emit_tuple.
7968 * progspace.c (print_program_space): Use ui_out_emit_tuple.
7969 * probe.c (info_probes_for_ops): Use ui_out_emit_tuple.
7970 * osdata.c (info_osdata): Use ui_out_emit_tuple.
7971 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
7972 ui_out_emit_tuple.
7973 * mi/mi-main.c (print_one_inferior, list_available_thread_groups)
7974 (output_register, mi_cmd_data_read_memory)
7975 (mi_cmd_data_read_memory_bytes, mi_load_progress)
7976 (mi_cmd_trace_frame_collected): Use ui_out_emit_tuple.
7977 * mi/mi-cmd-var.c (mi_cmd_var_list_children, varobj_update_one):
7978 Use ui_out_emit_tuple.
7979 * mi/mi-cmd-stack.c (mi_cmd_stack_list_args): Use
7980 ui_out_emit_tuple.
7981 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
7982 (mi_cmd_info_gdb_mi_command): Use ui_out_emit_tuple.
7983 * linux-thread-db.c (info_auto_load_libthread_db): Use
7984 ui_out_emit_tuple.
7985 * inferior.c (print_inferior): Use ui_out_emit_tuple.
7986 * gdb_bfd.c (print_one_bfd): Use ui_out_emit_tuple.
7987 * disasm.c (do_mixed_source_and_assembly_deprecated)
7988 (do_mixed_source_and_assembly): Use ui_out_emit_tuple.
7989 * cp-abi.c (list_cp_abis): Use ui_out_emit_tuple.
7990 * cli/cli-setshow.c (cmd_show_list): Use ui_out_emit_tuple.
7991 * breakpoint.c (print_one_breakpoint_location)
7992 (print_one_breakpoint): Use ui_out_emit_tuple.
7993 * auto-load.c (print_script, info_auto_load_cmd): Use
7994 ui_out_emit_tuple.
7995 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_tuple.
7996
9be21bb4
SM
79972017-04-21 Simon Marchi <simon.marchi@ericsson.com>
7998
7999 * thread.c (print_thread_info_1): Remove dead code.
8000
0d4c07af
JK
80012017-04-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8002
8003 * aarch64-tdep.c (selftests::aarch64_process_record_test): Make it #if
8004 GDB_SELF_TEST.
8005 * arm-tdep.c (selftests::arm_record_test): Likewise.
8006
4daf993d
YQ
80072017-04-21 Yao Qi <yao.qi@linaro.org>
8008
8009 * regcache.c (regcache_restore): Remove argument 2. Replace
8010 argument 3 with regcache. Get register status from
8011 src->register_status and get register contents from
8012 register_buffer (src, regnum).
8013 (regcache_cpy): Update.
8014
a6c21d4a
PA
80152017-04-19 Pedro Alves <palves@redhat.com>
8016
8017 * gdbthread.h (thread): Add missing closing parenthesis in
8018 comment.
8019
3a3fd0fd
PA
80202017-04-19 Pedro Alves <palves@redhat.com>
8021
8022 * common/refcounted-object.h: New file.
8023 * gdbthread.h: Include "common/refcounted-object.h".
8024 (thread_info): Inherit from refcounted_object and add comments.
8025 (thread_info::incref, thread_info::decref)
8026 (thread_info::m_refcount): Delete.
8027 (thread_info::deletable): Use the refcounted_object::refcount()
8028 method.
8029 * inferior.c (current_inferior_): Add comment.
8030 (set_current_inferior): Increment/decrement refcounts.
8031 (prune_inferiors, remove_inferior_command): Skip inferiors marked
8032 not-deletable instead of comparing with the current inferior.
8033 (initialize_inferiors): Increment the initial inferior's refcount.
8034 * inferior.h (struct inferior): Forward declare.
8035 Include "common/refcounted-object.h".
8036 (current_inferior, set_current_inferior): Move declaration to
8037 before struct inferior's definition, and fix comment.
8038 (inferior): Inherit from refcounted_object. Add comments.
8039 * thread.c (switch_to_thread_no_regs): Reference the thread's
8040 inferior pointer directly instead of doing a ptid lookup.
8041 (switch_to_no_thread): New function.
8042 (switch_to_thread(thread_info *)): New function, factored out
8043 from ...
8044 (switch_to_thread(ptid_t)): ... this.
8045 (restore_current_thread): Delete.
8046 (current_thread_cleanup): Remove 'inf_id' and 'was_removable'
8047 fields, and add 'inf' field.
8048 (do_restore_current_thread_cleanup): Check whether old->inf is
8049 alive instead of looking up an inferior by ptid. Use
8050 switch_to_thread and switch_to_no_thread.
8051 (restore_current_thread_cleanup_dtor): Use old->inf directly
8052 instead of lookup up an inferior by id. Decref the inferior.
8053 Don't restore 'removable'.
8054 (make_cleanup_restore_current_thread): Same the inferior pointer
8055 in old, instead of the inferior number. Incref the inferior.
8056 Don't save/clear 'removable'.
8057
9bcb1f16
PA
80582017-04-19 Pedro Alves <palves@redhat.com>
8059
8060 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
8061 unittests/scoped_restore-selftests.c.
8062 (SUBDIR_UNITTESTS_OBS): Add scoped_restore-selftests.o.
8063 * common/scoped_restore.h (scoped_restore_base): Make "class".
8064 (scoped_restore_base::release): New public method.
8065 (scoped_restore_base::scoped_restore_base): New protected ctor.
8066 (scoped_restore_base::m_saved_var): New protected field.
8067 (scoped_restore_tmpl::scoped_restore_tmpl(T*)): Initialize the
8068 scoped_restore_base base class instead of m_saved_var directly.
8069 (scoped_restore_tmpl::scoped_restore_tmpl(T*, T2)): Likewise.
8070 (scoped_restore_tmpl::scoped_restore_tmpl(const
8071 scoped_restore_tmpl<T>&)): Likewise.
8072 (scoped_restore_tmpl::~scoped_restore_tmpl): Use the saved_var
8073 method.
8074 (scoped_restore_tmpl::saved_var): New method.
8075 (scoped_restore_tmpl::m_saved_var): Delete.
8076 * inferior.h (inferior::detaching): Now a bool.
8077 * infrun.c (prepare_for_detach): Use a scoped_restore instead of a
8078 cleanup.
8079 * unittests/scoped_restore-selftests.c: New file.
8080
26fcd539
PA
80812017-04-19 Pedro Alves <palves@redhat.com>
8082
8083 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS):
8084 Re-sort in alphabetic order.
8085
fdd243b0
PA
80862017-04-18 Pedro Alves <palves@redhat.com>
8087
8088 * xml-support.c (obstack_xml_printf): Delete.
8089 * xml-support.h (obstack_xml_printf): Delete.
8090
4895cde2
PA
80912017-04-18 Pedro Alves <palves@redhat.com>
8092
8093 * xml-support.c (gdb_xml_parser) <use_dtd, dtd_name, parse,
8094 vdebug, verror, body_text, start_element, end_element, name,
8095 user_data, set_is_xinclude, set_error, expat_parser>: New methods.
8096 <name, user_data, expat_parser, scopes, error, last_line, dtd_name,
8097 is_xinclude>: Make private and add m_ prefix.
8098 (gdb_xml_parser::body_text): New method, based on ...
8099 (gdb_xml_body_text): ... this. Adjust.
8100 (gdb_xml_parser::vdebug): New method, based on ...
8101 (gdb_xml_debug): ... this. Adjust.
8102 (gdb_xml_parser::verror): New method, based on ...
8103 (gdb_xml_error): ... this. Adjust.
8104 (gdb_xml_parser::start_element): New method, based on ...
8105 (gdb_xml_start_element): ... this. Adjust.
8106 (gdb_xml_start_element_wrapper): Defer to
8107 gdb_xml_parser::start_element and gdb_xml_parser::set_error.
8108 (gdb_xml_parser::end_element): New method, based on ...
8109 (gdb_xml_end_element_wrapper): ... this. Adjust.
8110 (gdb_xml_parser::~gdb_xml_parser): Adjust.
8111 (gdb_xml_parser::gdb_xml_parser): Adjust to field renames.
8112 (gdb_xml_parser::use_dtd): New method, based on ...
8113 (gdb_xml_use_dtd): ... this. Adjust.
8114 (gdb_xml_parser::parse): New method, based on ...
8115 (gdb_xml_parse): ... this. Adjust.
8116 (gdb_xml_parse_quick): Adjust to call the parser's parse method.
8117 (xinclude_start_include): Adjust to call the parser's name method.
8118 (xml_xinclude_default, xml_xinclude_start_doctype)
8119 (xml_xinclude_end_doctype): Adjust to call the parser's user_data
8120 method.
8121 (xml_process_xincludes): Adjust to call parser methods.
8122 * xml-support.h (gdb_xml_use_dtd, gdb_xml_parse): Delete
8123 declarations.
8124
bd8a901f
PA
81252017-04-18 Pedro Alves <palves@redhat.com>
8126
8127 * tracefile-tfile.c (tfile_write_tdesc): Adjust to use
8128 gdb::optional<std::string>.
8129 * xml-support.c: Include <string>.
8130 (scope_level::scope_level(scope_level &&))
8131 (scope_level::~scope_level): Delete.
8132 (scope_level::body): Now a std::string.
8133 (gdb_xml_body_text, gdb_xml_end_element): Adjust.
8134 (xinclude_parsing_data::xinclude_parsing_data): Add 'output'
8135 parameter.
8136 (xinclude_parsing_data::~xinclude_parsing_data): Delete.
8137 (xinclude_parsing_data::output): Now a std::string reference.
8138 (xinclude_start_include): Adjust.
8139 (xml_xinclude_default): Adjust.
8140 (xml_process_xincludes): Add 'output' parameter, and return bool.
8141 * xml-support.h (xml_process_xincludes): Add 'output' parameter,
8142 and return bool.
8143 * xml-tdesc.c: Include <unordered_map> and <string>.
8144 (tdesc_xml_cache): Delete.
8145 (tdesc_xml_cache_s): Delete.
8146 (xml_cache): Now an std::unordered_map.
8147 (tdesc_parse_xml): Adjust to use std::string and unordered_map.
8148 (target_fetch_description_xml): Change return type to
8149 gdb::optional<std::string>, and adjust.
8150 * xml-tdesc.h: Include "common/gdb_optional.h" and <string>.
8151 (target_fetch_description_xml): Change return type to
8152 gdb::optional<std::string>.
8153
d35d1958
PA
81542017-04-18 Pedro Alves <palves@redhat.com>
8155
8156 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
8157 unittests/optional-selftests.c.
8158 (SUBDIR_UNITTESTS_OBS): Add optional-selftests.o.
8159 * unittests/optional-selftests.c: New file.
8160 * unittests/optional/assignment/1.cc: New file.
8161 * unittests/optional/assignment/2.cc: New file.
8162 * unittests/optional/assignment/3.cc: New file.
8163 * unittests/optional/assignment/4.cc: New file.
8164 * unittests/optional/assignment/5.cc: New file.
8165 * unittests/optional/assignment/6.cc: New file.
8166 * unittests/optional/assignment/7.cc: New file.
8167 * unittests/optional/cons/copy.cc: New file.
8168 * unittests/optional/cons/default.cc: New file.
8169 * unittests/optional/cons/move.cc: New file.
8170 * unittests/optional/cons/value.cc: New file.
8171 * unittests/optional/in_place.cc: New file.
8172 * unittests/optional/observers/1.cc: New file.
8173 * unittests/optional/observers/2.cc: New file.
8174
22796e97
PA
81752017-04-18 Pedro Alves <palves@redhat.com>
8176
8177 * common/gdb_optional.h: Include common/traits.h.
8178 (in_place_t): New type.
8179 (in_place): New constexpr variable.
8180 (optional::optional): Remove member initialization of
8181 m_instantiated.
8182 (optional::optional(in_place_t...)): New constructor.
8183 (optional::~optional): Use reset.
8184 (optional::optional(const optional&)): New.
8185 (optional::optional(const optional&&)): New.
8186 (optional::optional(T &)): New.
8187 (optional::optional(T &&)): New.
8188 (operator::operator=(const optional &)): New.
8189 (operator::operator=(optional &&)): New.
8190 (operator::operator= (const T &))
8191 (operator::operator= (T &&))
8192 (operator::emplace (Args &&... args)): Return a T&. Use reset.
8193 (operator::reset): New.
8194 (operator::m_instantiated):: Add in-class initializer.
8195 * common/traits.h: Include <type_traits>.
8196 (struct And): New types.
8197
a7fc9b61
PA
81982017-04-18 Pedro Alves <palves@redhat.com>
8199
8200 * xml-support.c: Include <vector>.
8201 (scope_level::scope_level(const gdb_xml_element *))
8202 (scope_level::scope_level(scope_level&&)): New.
8203 (scope_level::~scope_level): New.
8204 (scope_level_s): Delete.
8205 (gdb_xml_parser::scopes): Now a std::vector.
8206 (gdb_xml_body_text, gdb_xml_start_element, gdb_xml_end_element):
8207 Use std::vector.
8208 (gdb_xml_parser::~gdb_xml_parser): Remove now unnecessary
8209 scope cleanup code.
8210 (gdb_xml_parser::gdb_xml_parser): Remove explicit initialization
8211 of the scopes member. Use std::vector::emplace_back.
8212
010151c9
PA
82132017-04-18 Pedro Alves <palves@redhat.com>
8214
8215 * xml-support.c (gdb_xml_parser): Add ctor/dtor. Make is_xinclude
8216 a bool.
8217 (gdb_xml_end_element): Change type of first parameter.
8218 (gdb_xml_cleanup): Rename to ...
8219 (gdb_xml_parser::~gdb_xml_parser): ... this.
8220 (gdb_xml_create_parser_and_cleanup): Delete with ...
8221 (gdb_xml_parser::gdb_xml_parser): ... creation parts factored out
8222 to this new ctor.
8223 (gdb_xml_parse_quick): Create a local gdb_xml_parser instead of
8224 using gdb_xml_create_parser_and_cleanup.
8225 (xinclude_parsing_data): Add ctor/dtor.
8226 (xml_xinclude_cleanup): Delete.
8227 (xml_process_xincludes): Create a local xinclude_parsing_data
8228 instead of heap-allocating one. Create a local gdb_xml_parser
8229 instead of heap-allocating one with
8230 gdb_xml_create_parser_and_cleanup.
8231
d56060f0
JB
82322017-04-18 John Baldwin <jhb@FreeBSD.org>
8233
8234 PR threads/20743
8235 * fbsd-nat.c (resume_one_thread_cb): Remove.
8236 (resume_all_threads_cb): Remove.
8237 (fbsd_resume): Use ALL_NON_EXITED_THREADS instead of
8238 iterate_over_threads.
8239
305d16a9
JB
82402017-04-17 Joel Brobecker <brobecker@adacore.com>
8241
8242 * NEWS: Create a new section for the next release branch.
8243 Rename the section of the current branch, now that it has
8244 been cut.
8245
8bb57231
JB
82462017-04-17 Joel Brobecker <brobecker@adacore.com>
8247
8248 GDB 8.0 branch created (725bf5cf125783c2a7ca4ab63d3768e220bab2db):
8249 * version.in: Bump version to 8.0.50.DATE-git.
8250
096c92dd
SDJ
82512017-04-13 Sergio Durigan Junior <sergiodj@redhat.com>
8252
8253 PR gdb/21385
8254 * windows-nat.c (windows_create_inferior): Declare 'allargs'
8255 independently of the host, and fix build breakage on Cygwin.
8256
0550c955
PA
82572017-04-13 Pedro Alves <palves@redhat.com>
8258
8259 * inferior.c (free_inferior): Convert to ...
8260 (inferior::~inferior): ... this dtor.
8261 (inferior::inferior): New ctor, factored out from ...
8262 (add_inferior_silent): ... here. Allocate the inferior with a new
8263 expression.
8264 (delete_inferior): Call delete instead of free_inferior.
8265 * inferior.h (gdb_environ, continuation): Forward declare.
8266 (inferior): Now a class. Add in-class initialization to all
8267 members. Make boolean fields bool, except 'detaching'.
8268 (inferior::inferior): New explicit ctor.
8269 (inferior::~inferior): New.
8270
e3d60dfc
PA
82712017-04-13 Pedro Alves <palves@redhat.com>
8272
8273 * inferior.c (init_inferior_list): Delete.
8274 * inferior.h (init_inferior_list): Delete.
8275
5fd69d0a
PA
82762017-04-13 Pedro Alves <palves@redhat.com>
8277
8278 PR threads/13217
8279 * gdb.threads/threadapply.exp (thr_apply_detach): New procedure.
8280 (top level): Call it twice, with different thread sets.
8281
c6609450
PA
82822017-04-13 Pedro Alves <palves@redhat.com>
8283
8284 * thread.c: Include <algorithm>.
8285 (thread_array_cleanup): Delete.
8286 (scoped_inc_dec_ref): New class.
8287 (live_threads_count): New function.
8288 (set_thread_refcount): Delete.
8289 (tp_array_compar_ascending): Now a bool.
8290 (tp_array_compar): Convert to a std::sort comparison function.
8291 (thread_apply_all_command): Use std::vector and scoped_inc_dec_ref
8292 and live_threads_count.
8293
2a00d7ce
PA
82942017-04-13 Pedro Alves <palves@redhat.com>
8295
8296 * infrun.c (follow_fork_inferior): Also switch the current
8297 inferior.
8298
441d7c93
PA
82992017-04-13 Pedro Alves <palves@redhat.com>
8300
8301 * breakpoint.c (watch_command_1): Save watchpoint-frame info
8302 before calling create_internal_breakpoint.
8303
808480f6
PA
83042017-04-13 Pedro Alves <palves@redhat.com>
8305
8306 * fork-child.c (execv_argv): New class.
8307 (breakup_args): Refactored as ...
8308 (execv_argv::init_for_no_shell): .. this method of execv_argv.
8309 Copy arguments to storage and replace separators with NULL
8310 terminators in place.
8311 (escape_bang_in_quoted_argument): Adjust to return bool.
8312 (execv_argv::execv_argv): New ctor.
8313 (execv_argv::init_for_shell): New method, factored out from
8314 fork_inferior. Don't strdup strings into the vector.
8315 (fork_inferior): Eliminate "shell" local and use execv_argv. Use
8316 Remove free_vector_argv call.
8317
ad3d022a
YQ
83182017-04-13 Yao Qi <yao.qi@linaro.org>
8319
8320 * rx-tdep.c (rx_fpsw_type): Check tdep->rx_fpsw_type instead of
8321 tdep->rx_psw_type.
8322
e6ddc3bf
YQ
83232017-04-13 Yao Qi <yao.qi@linaro.org>
8324
8325 * rl78-tdep.c (rl78_gdbarch_init): Use XCNEW instead of XNEW.
8326 * rx-tdep.c (rx_gdbarch_init): Likewise.
8327
bfb8cf90
PA
83282017-04-13 Pedro Alves <palves@redhat.com>
8329
8330 * breakpoint.h (struct breakpoint): Reindent.
8331
f5336ca5
PA
83322017-04-13 Pedro Alves <palves@redhat.com>
8333
8334 * breakpoint.c (bp_location): Rename to ...
8335 (bp_locations): ... this. All references updated.
8336 (bp_location_count): Rename to ...
8337 (bp_locations_count): ... this. All references updated.
8338 (bp_location_placed_address_before_address_max): Rename to ...
8339 (bp_locations_placed_address_before_address_max): ... this. All
8340 references updated.
8341 (bp_location_shadow_len_after_address_max): Rename to ...
8342 (bp_locations_shadow_len_after_address_max): ... this. All
8343 references updated.
8344 (bp_location_compare_addrs): Rename to ...
8345 (bp_locations_compare_addrs): ... this. All references updated.
8346 (bp_location_compare):Rename to ...
8347 (bp_locations_compare): ... this. All references updated.
8348 (bp_location_target_extensions_update): Rename to ...
8349 (bp_locations_target_extensions_update): ... this. All references
8350 updated.
8351
be628ab8
SDJ
83522017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
8353
8354 * Makefile.in (HFILES_NO_SRCDIR): Add "common/gdb_termios.h".
8355 * common/common.m4: Check headers 'termios.h', 'termio.h' and
8356 'sgtty.h'.
8357 * common/gdb_termios.h: New file, with parts of "terminal.h".
8358 * inflow.c: Include "gdb_termios.h".
8359 * ser-unix.c: Include "gdb_termios.h".
8360 * terminal.h: Move terminal-related defines to
8361 "common/gdb_termios.h".
8362
8e9e35b1
TT
83632017-04-12 Tom Tromey <tom@tromey.com>
8364
8365 * probe.c (parse_probes): Update.
8366 * location.h (delete_event_location): Don't declare.
8367 (event_location_deleter::operator()): Update.
8368 * location.c (event_location_deleter::operator()): Rename from
8369 delete_event_location.
8370 * linespec.h (linespec_result) <location>: Change type to
8371 event_location_up.
8372 * linespec.c (canonicalize_linespec, event_location_to_sals)
8373 (decode_objc): Update.
8374 (linespec_result): Don't call delete_event_location.
8375 * breakpoint.c (create_breakpoints_sal)
8376 (bkpt_probe_create_sals_from_location)
8377 (strace_marker_create_sals_from_location): Update.
8378
16e802b9
TT
83792017-04-12 Tom Tromey <tom@tromey.com>
8380
8381 * linespec.h (struct linespec_result): Add constructor and
8382 destructor.
8383 (init_linespec_result, destroy_linespec_result)
8384 (make_cleanup_destroy_linespec_result): Don't declare.
8385 * linespec.c (init_linespec_result): Remove.
8386 (linespec_result::~linespec_result): Rename from
8387 destroy_linespec_result. Update.
8388 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
8389 Remove.
8390 * breakpoint.c (create_breakpoint, break_range_command)
8391 (decode_location_default): Update.
8392 * ax-gdb.c (agent_command_1): Update.
8393
d28cd78a
TT
83942017-04-12 Tom Tromey <tom@tromey.com>
8395
8396 * remote.c (remote_download_tracepoint): Update.
8397 * python/py-breakpoint.c (bppy_get_location): Update.
8398 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob)
8399 (gdbscm_breakpoint_location): Update.
8400 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Update.
8401 * breakpoint.h (struct breakpoint) <location, location_range_end>:
8402 Change type to event_location_up.
8403 * breakpoint.c (create_overlay_event_breakpoint)
8404 (create_longjmp_master_breakpoint)
8405 (create_std_terminate_master_breakpoint)
8406 (create_exception_master_breakpoint)
8407 (breakpoint_event_location_empty_p, print_breakpoint_location)
8408 (print_one_breakpoint_location, create_thread_event_breakpoint)
8409 (init_breakpoint_sal, create_breakpoint)
8410 (print_recreate_ranged_breakpoint, break_range_command)
8411 (init_ada_exception_breakpoint, say_where): Update.
8412 (base_breakpoint_dtor): Don't call delete_event_location.
8413 (bkpt_print_recreate, tracepoint_print_recreate)
8414 (dprintf_print_recreate, update_static_tracepoint)
8415 (breakpoint_re_set_default): Update.
8416
711799d5
TT
84172017-04-12 Tom Tromey <tom@tromey.com>
8418
8419 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
8420 type of "to_do". Update.
8421 (compute_stack_depth): Use std::vector.
8422
52d214d3
TT
84232017-04-12 Tom Tromey <tom@tromey.com>
8424
8425 * printcmd.c (find_instruction_backward): Use std::vector.
8426
4c404b8b
TT
84272017-04-12 Tom Tromey <tom@tromey.com>
8428
8429 * symfile.c (objfilep): Remove typedef.
8430 (reread_symbols): Use a std::vector.
8431
156d9eab
TT
84322017-04-12 Tom Tromey <tom@tromey.com>
8433
8434 * mi/mi-main.c (exec_direction_forward): Remove.
8435 (exec_reverse_continue, mi_execute_command): Use scoped_restore.
8436 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
8437 scoped_restore.
8438 * guile/guile.c (guile_repl_command, guile_command)
8439 (gdbscm_execute_gdb_command): Use scoped_restore.
8440 * go-exp.y (go_parse): Use scoped_restore.
8441 * d-exp.y (d_parse): Use scoped_restore.
8442 * cli/cli-decode.c (cmd_func): Use scoped_restore.
8443 * c-exp.y (c_parse): Use scoped_restore.
8444
4d89769a
TT
84452017-04-12 Tom Tromey <tom@tromey.com>
8446
8447 * mi/mi-parse.h (struct mi_parse): Add constructor, destructor.
8448 (mi_parse): Update return type.
8449 (mi_parse_free): Remove.
8450 * mi/mi-parse.c (mi_parse::mi_parse): New constructor.
8451 (mi_parse::~mi_parse): Rename from mi_parse_free.
8452 (mi_parse_cleanup): Remove.
8453 (mi_parse): Return a unique_ptr. Use new.
8454 * mi/mi-main.c (mi_execute_command): Update.
8455
4b217cc7
TT
84562017-04-12 Tom Tromey <tom@tromey.com>
8457
8458 * location.c (explicit_location_lex_one): Return a
8459 unique_xmalloc_ptr.
8460 (string_to_explicit_location): Update. Remove cleanups.
8461
59d3651b
TT
84622017-04-12 Tom Tromey <tom@tromey.com>
8463
8464 * gnu-v3-abi.c (value_and_voffset_p): Remove typedef.
8465 (compare_value_and_voffset): Change type. Update.
8466 (compute_vtable_size): Change type of "offset_vec".
8467 (gnuv3_print_vtable): Use std::vector. Remove cleanups.
8468 (gnuv3_get_typeid): Remove extraneous declaration.
8469
b24b0d6c
TT
84702017-04-12 Tom Tromey <tom@tromey.com>
8471
8472 * charset.h (wchar_iterator): Fix comment.
8473
80a3b8c5
TT
84742017-04-12 Tom Tromey <tom@tromey.com>
8475
8476 * charset.c (iconv_wrapper): New class.
8477 (cleanup_iconv): Remove.
8478 (convert_between_encodings): Use it.
8479
c83dd867
TT
84802017-04-12 Tom Tromey <tom@tromey.com>
8481
8482 * symfile.h (increment_reading_symtab): Update type.
8483 * symfile.c (decrement_reading_symtab): Remove.
8484 (increment_reading_symtab): Return a scoped_restore_tmpl<int>.
8485 * psymtab.c (psymtab_to_symtab): Update.
8486 * dwarf2read.c (dw2_instantiate_symtab): Update.
8487
0e8621a0
TT
84882017-04-12 Tom Tromey <tom@tromey.com>
8489
8490 * jit.c (struct jit_reader): Declare separately. Add constructor
8491 and destructor. Change type of "handle".
8492 (loaded_jit_reader): Define separately.
8493 (jit_reader_load): Update. New "new".
8494 (jit_reader_unload_command): Use "delete".
8495 * gdb-dlfcn.h (struct dlclose_deleter): New.
8496 (gdb_dlhandle_up): New typedef.
8497 (gdb_dlopen, gdb_dlsym): Update types.
8498 (gdb_dlclose): Remove.
8499 * gdb-dlfcn.c (gdb_dlopen): Return a gdb_dlhandle_up.
8500 (gdb_dlsym): Change type of "handle".
8501 (make_cleanup_dlclose): Remove.
8502 (dlclose_deleter::operator()): Rename from gdb_dlclose.
8503 * compile/compile-c-support.c (load_libcc): Update.
8504
67d89901
TT
85052017-04-12 Tom Tromey <tom@tromey.com>
8506
8507 * symtab.h (find_pcs_for_symtab_line): Change return type.
8508 * symtab.c (find_pcs_for_symtab_line): Change return type.
8509 * python/py-linetable.c (build_line_table_tuple_from_pcs): Change
8510 type of "vec". Update.
8511 (ltpy_get_pcs_for_line): Update.
8512 * linespec.c (decode_digits_ordinary): Update.
8513
93921405
TT
85142017-04-12 Tom Tromey <tom@tromey.com>
8515
8516 * tracepoint.c (actions_command): Update.
8517 * python/python.c (python_command, python_interactive_command):
8518 Update.
8519 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
8520 * guile/guile.c (guile_command): Update.
8521 * defs.h (read_command_lines, read_command_lines_1): Return
8522 command_line_up.
8523 (command_lines_deleter): New struct.
8524 (command_line_up): New typedef.
8525 * compile/compile.c (compile_code_command)
8526 (compile_print_command): Update.
8527 * cli/cli-script.h (get_command_line, copy_command_lines): Return
8528 command_line_up.
8529 (make_cleanup_free_command_lines): Remove.
8530 * cli/cli-script.c (get_command_line, read_command_lines_1)
8531 (copy_command_lines): Return command_line_up.
8532 (while_command, if_command, read_command_lines, define_command)
8533 (document_command): Update.
8534 (do_free_command_lines_cleanup, make_cleanup_free_command_lines):
8535 Remove.
8536 * breakpoint.h (breakpoint_set_commands): Change type of
8537 "commands".
8538 * breakpoint.c (breakpoint_set_commands): Change type of
8539 "commands". Update.
8540 (do_map_commands_command, update_dprintf_command_list)
8541 (create_tracepoint_from_upload): Update.
8542
ffc2605c
TT
85432017-04-12 Tom Tromey <tom@tromey.com>
8544
8545 * tracepoint.c (scope_info): Update.
8546 * spu-tdep.c (spu_catch_start): Update.
8547 * python/python.c (gdbpy_decode_line): Update.
8548 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
8549 * python/py-breakpoint.c (bppy_init): Update.
8550 * probe.c (parse_probes): Update.
8551 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
8552 * location.h (event_location_deleter): New struct.
8553 (event_location_up): New typedef.
8554 (new_linespec_location, new_address_location, new_probe_location)
8555 (new_explicit_location, copy_event_location)
8556 (string_to_event_location, string_to_event_location_basic)
8557 (string_to_explicit_location): Update return type.
8558 (make_cleanup_delete_event_location): Remove.
8559 * location.c (new_linespec_location, new_address_location)
8560 (new_probe_location, new_explicit_location, copy_event_location):
8561 Return event_location_up.
8562 (delete_event_location_cleanup)
8563 (make_cleanup_delete_event_location): Remove.
8564 (string_to_explicit_location, string_to_event_location_basic)
8565 (string_to_event_location): Return event_location_up.
8566 * linespec.c (canonicalize_linespec, event_location_to_sals)
8567 (decode_line_with_current_source)
8568 (decode_line_with_last_displayed, decode_objc): Update.
8569 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
8570 * completer.c (location_completer): Update.
8571 * cli/cli-cmds.c (edit_command, list_command): Update.
8572 * breakpoint.c (create_overlay_event_breakpoint)
8573 (create_longjmp_master_breakpoint)
8574 (create_std_terminate_master_breakpoint)
8575 (create_exception_master_breakpoint)
8576 (create_thread_event_breakpoint): Update.
8577 (init_breakpoint_sal): Update. Remove some dead code.
8578 (create_breakpoint_sal): Change type of "location". Update.
8579 (create_breakpoints_sal, create_breakpoint, break_command_1)
8580 (dprintf_command, break_range_command, until_break_command)
8581 (init_ada_exception_breakpoint)
8582 (strace_marker_create_sals_from_location)
8583 (update_static_tracepoint, trace_command, ftrace_command)
8584 (strace_command, create_tracepoint_from_upload): Update.
8585 * break-catch-throw.c (re_set_exception_catchpoint): Update.
8586 * ax-gdb.c (agent_command_1): Update.
8587
8f10c932
PA
85882017-04-12 Pedro Alves <palves@redhat.com>
8589
8590 * Makefile.in (ALL_TARGET_OBS): Add i386-go32-tdep.o.
8591 * configure.tgt: Handle i[34567]86-*-go32* and
8592 i[34567]86-*-msdosdjgpp*.
8593 * i386-tdep.c (i386_svr4_reg_to_regnum):
8594 Make extern.
8595 (i386_go32_init_abi, i386_coff_osabi_sniffer): Moved to
8596 i386-go32-tdep.c.
8597 (_initialize_i386_tdep): DJGPP bits moved to i386-go32-tdep.c.
8598 * i386-go32-tdep.c: New file.
8599 * i386-tdep.h (tdesc_i386_mmx, i386_svr4_reg_to_regnum): New
8600 declarations.
8601
0a31ccfb
SM
86022017-04-12 Simon Marchi <simon.marchi@ericsson.com>
8603
8604 * aix-thread.c (pd_status2str): Change return type to const char *.
8605
e9bb3fbb
PA
86062017-04-12 Pedro Alves <palves@redhat.com>
8607
8608 * i386-tdep.c (i386_elf_init_abi, i386_go32_init_abi): Remove
8609 calls to set_gdbarch_gnu_triplet_regexp.
8610
53375380
PA
86112017-04-12 Pedro Alves <palves@redhat.com>
8612
8613 PR gdb/21323
8614 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_wchar_t>:
8615 New enum value.
8616 (cplus_language_arch_info): Register cplus_primitive_type_wchar_t.
8617 * gdbtypes.h (struct builtin_type) <builtin_wchar>: New field.
8618 * gdbtypes.c (gdbtypes_post_init): Create the "wchar_t" type.
8619 * gdbarch.sh (wchar_bit, wchar_signed): New per-arch values.
8620 * gdbarch.h, gdbarch.c: Regenerate.
8621 * aarch64-tdep.c (aarch64_gdbarch_init): Override
8622 gdbarch_wchar_bit and gdbarch_wchar_signed.
8623 * alpha-tdep.c (alpha_gdbarch_init): Likewise.
8624 * arm-tdep.c (arm_gdbarch_init): Likewise.
8625 * avr-tdep.c (avr_gdbarch_init): Likewise.
8626 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
8627 * i386-nto-tdep.c (i386nto_init_abi): Likewise.
8628 * i386-tdep.c (i386_go32_init_abi): Likewise.
8629 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
8630 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
8631 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
8632 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
8633 * sh-tdep.c (sh_gdbarch_init): Likewise.
8634 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
8635 * sparc64-tdep.c (sparc64_init_abi): Likewise.
8636 * windows-tdep.c (windows_init_abi): Likewise.
8637 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
8638
53e710ac
PA
86392017-04-12 Pedro Alves <palves@redhat.com>
8640
8641 PR c++/21323
8642 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_char16_t,
8643 cplus_primitive_type_char32_t>: New enum values.
8644 (cplus_language_arch_info): Register cplus_primitive_type_char16_t
8645 and cplus_primitive_type_char32_t.
8646 * dwarf2read.c (read_base_type) <DW_ATE_UTF>: If bit size is 16 or
8647 32, use the archtecture's built-in type for char16_t and char32_t,
8648 respectively. Otherwise, fallback to init_integer_type as before,
8649 but make the type unsigned, and issue a complaint.
8650 * gdbtypes.c (gdbtypes_post_init): Make char16_t and char32_t unsigned.
8651
ab0538b8
AH
86522017-04-12 Alan Hayward <alan.hayward@arm.com>
8653
5e0e0422 8654 * m32r-tdep.c (M32R_ARG_REGISTER_SIZE): Added.
ab0538b8
AH
8655 (m32r_push_dummy_call): Use M32R_ARG_REGISTER_SIZE.
8656
5430098f
SDJ
86572017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
8658
8659 * windows-nat.c (windows_create_inferior): Declare 'toexec' as
8660 'const char *'.
8661
7c5ded6a
SDJ
86622017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
8663
8664 * common/common-utils.c (free_vector_argv): New function.
8665 * common/common-utils.h: Include <vector>.
8666 (free_vector_argv): New prototype.
8667 * darwin-nat.c (darwin_create_inferior): Rewrite function
8668 prototype in order to constify "exec_file" and accept a
8669 "std::string" for "allargs".
8670 * fork-child.c: Include <vector>.
8671 (breakup_args): Rewrite function, using C++.
8672 (fork_inferior): Rewrite function header, constify "exec_file_arg"
8673 and accept "std::string" for "allargs". Update the code to
8674 calculate "argv" based on "allargs". Update calls to "exec_fun"
8675 and "execvp".
8676 * gnu-nat.c (gnu_create_inferior): Rewrite function prototype in
8677 order to constify "exec_file" and accept a "std::string" for
8678 "allargs".
8679 * go32-nat.c (go32_create_inferior): Likewise.
8680 * inf-ptrace.c (inf_ptrace_create_inferior): Likewise.
8681 * infcmd.c (run_command_1): Constify "exec_file". Use
8682 "std::string" for inferior arguments.
8683 * inferior.h (fork_inferior): Update prototype.
8684 * linux-nat.c (linux_nat_create_inferior): Rewrite function
8685 prototype in order to constify "exec_file" and accept a
8686 "std::string" for "allargs".
8687 * nto-procfs.c (procfs_create_inferior): Likewise.
8688 * procfs.c (procfs_create_inferior): Likewise.
8689 * remote-sim.c (gdbsim_create_inferior): Likewise.
8690 * remote.c (extended_remote_run): Update code to accept
8691 "std::string" as argument.
8692 (extended_remote_create_inferior): Rewrite function prototype in
8693 order to constify "exec_file" and accept a "std::string" for
8694 "allargs".
8695 * rs6000-nat.c (super_create_inferior): Likewise.
8696 (rs6000_create_inferior): Likewise.
8697 * target.h (struct target_ops) <to_create_inferior>: Likewise.
8698 * windows-nat.c (windows_create_inferior): Likewise.
8699
ae0eee42
PA
87002017-04-11 Pedro Alves <palves@redhat.com>
8701
8702 * thread.c: Fix whitespace throughout.
8703
a6acac06
PR
87042017-04-11 Philipp Rudo <prudo@linux.vnet.ibm.com>
8705
8706 * linux-nat.c (linux_nat_detach): Remove delete_lwp call.
8707
64403bd1
AH
87082017-04-11 Alan Hayward <alan.hayward@arm.com>
8709
8710 * arm-tdep.c (arm_store_return_value): Use FP_REGISTER_SIZE
8711
a5bef50f
SDJ
87122017-04-10 Sergio Durigan Junior <sergiodj@redhat.com>
8713
8714 PR gdb/21364
8715 * osdata.c (info_osdata): Check if 'type' is an empty string
8716 instead of NULL.
8717
9295a5a9
PA
87182017-04-10 Pedro Alves <palves@redhat.com>
8719
8720 * thread.c (add_thread_silent, delete_thread_1, find_thread_ptid)
8721 (ptid_to_global_thread_id, in_thread_list)
8722 (do_captured_list_thread_ids, set_resumed, set_running)
8723 (set_executing, set_stop_requested, finish_thread_state)
8724 (validate_registers_access, can_access_registers_ptid)
8725 (print_thread_info_1, switch_to_thread)
8726 (do_restore_current_thread_cleanup)
8727 (make_cleanup_restore_current_thread, thread_command)
8728 (thread_name_command): Use operator== instead of ptid_equal.
8729
996812e3
PA
87302017-04-10 Pedro Alves <palves@redhat.com>
8731
8732 * thread.c (struct current_thread_cleanup) <next>: Delete field.
8733 (current_thread_cleanup_chain): Delete.
8734 (restore_current_thread_cleanup_dtor)
8735 (make_cleanup_restore_current_thread): Remove references to
8736 current_thread_cleanup_chain.
8737
845b344f
AH
87382017-04-10 Alan Hayward <alan.hayward@arm.com>
8739
8740 * msp430-tdep.c (msp430_pseudo_register_read): Never return
8741 REG_UNKNOWN.
8742
803bdfe4
YQ
87432017-04-10 Yao Qi <yao.qi@linaro.org>
8744
8745 PR gdb/19942
8746 * gdbthread.h (thread_info::deletable): New method.
8747 (thread_info::incref): New method.
8748 (thread_info::decref): New method.
8749 (thread_info::refcount): Move it to private.
8750 * infrun.c (save_stop_context): Call inc_refcount.
8751 (release_stop_context_cleanup): Likewise.
8752 * thread.c (set_thread_exited): New function.
8753 (init_thread_list): Delete "tp" only it is deletable, otherwise
8754 call set_thread_exited.
8755 (delete_thread_1): Call set_thread_exited.
8756 (current_thread_cleanup) <inferior_pid>: Remove.
8757 <thread>: New field.
8758 (restore_current_thread_ptid_changed): Removed.
8759 (do_restore_current_thread_cleanup): Adjust.
8760 (restore_current_thread_cleanup_dtor): Don't call
8761 find_thread_ptid.
8762 (set_thread_refcount): Use dec_refcount.
8763 (make_cleanup_restore_current_thread): Adjust.
8764 (thread_apply_all_command): Call inc_refcount.
8765 (_initialize_thread): Don't call
8766 observer_attach_thread_ptid_changed.
8767
8c25b497
YQ
87682017-04-10 Yao Qi <yao.qi@linaro.org>
8769
8770 * thread.c (delete_thread_1): Hoist code on marking thread as
8771 exited.
8772
8473b447
SM
87732017-04-09 Simon Marchi <simon.marchi@polymtl.ca>
8774
8775 * windows-nat.c (windows_detach): Initialize ptid with
8776 minus_one_ptid.
8777
6670ec13
SM
87782017-04-07 Simon Marchi <simon.marchi@ericsson.com>
8779
8780 * unittests/ptid-selftests.c: Fix erroneous assert messages.
8781
ba2f91bb
AH
87822017-04-07 Alan Hayward <alan.hayward@arm.com>
8783
8784 * bfin-tdep.c (BFIN_MAX_REGISTER_SIZE): Add.
8785 (bfin_pseudo_register_read): Use BFIN_MAX_REGISTER_SIZE.
8786 (bfin_pseudo_register_write): Likewise
8787
436252de
SM
87882017-04-06 Simon Marchi <simon.marchi@ericsson.com>
8789
8790 * common/ptid.h (struct ptid): Change to...
8791 (class ptid_t): ... this.
8792 <ptid_t>: New constructors.
8793 <pid, lwp_p, lwp, tid_p, tid, is_pid, operator==, operator!=,
8794 matches>: New methods.
8795 <make_null, make_minus_one>: New static methods.
8796 <pid>: Rename to...
8797 <m_pid>: ...this.
8798 <lwp>: Rename to...
8799 <m_lwp>: ...this.
8800 <tid>: Rename to...
8801 <m_tid>: ...this.
8802 (ptid_build, ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
8803 ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match): Take ptid arguments
8804 as references, move comment to class ptid_t.
8805 * common/ptid.c (null_ptid, minus_one_ptid): Initialize with
8806 ptid_t static methods.
8807 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_tid,
8808 ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match):
8809 Take ptid arguments as references, implement using ptid_t methods.
8810 * unittests/ptid-selftests.c: New file.
8811 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
8812 unittests/ptid-selftests.c.
8813 (SUBDIR_UNITTESTS_OBS): Add unittests/ptid-selftests.o.
8814
0dedf377
TP
88152017-04-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
8816
8817 * python/python.c (python_run_simple_file): Cast mode literal to
8818 non-const char pointer as expected by PyFile_FromString.
8819
4e9868d4
SM
88202017-04-05 Simon Marchi <simon.marchi@ericsson.com>
8821
8822 * common/ptid.c (ptid_lwp_p, ptid_tid_p): Remove comparison with
8823 minus_one_ptid and null_ptid.
8824
9bf2a700
PA
88252017-04-05 Pedro Alves <palves@redhat.com>
8826
8827 * warning.m4 (build_warnings): Remove -Wno-write-strings.
8828 * configure: Regenerate.
8829
a121b7c1
PA
88302017-04-05 Pedro Alves <palves@redhat.com>
8831
8832 * ada-exp.y (yyerror): Constify.
8833 * ada-lang.c (bound_name, get_selections)
8834 (ada_variant_discrim_type)
8835 (ada_variant_discrim_name, ada_value_struct_elt)
8836 (ada_lookup_struct_elt_type, is_unchecked_variant)
8837 (ada_which_variant_applies, standard_exc, ada_get_next_arg)
8838 (catch_ada_exception_command_split)
8839 (catch_ada_assert_command_split, catch_assert_command)
8840 (ada_op_name): Constify.
8841 * ada-lang.h (ada_yyerror, get_selections)
8842 (ada_variant_discrim_name, ada_value_struct_elt): Constify.
8843 * arc-tdep.c (arc_print_frame_cache): Constify.
8844 * arm-tdep.c (arm_skip_stub): Constify.
8845 * ax-gdb.c (gen_binop, gen_struct_ref_recursive, gen_struct_ref)
8846 (gen_aggregate_elt_ref): Constify.
8847 * bcache.c (print_bcache_statistics): Constify.
8848 * bcache.h (print_bcache_statistics): Constify.
8849 * break-catch-throw.c (catch_exception_command_1):
8850 * breakpoint.c (struct ep_type_description::description):
8851 Constify.
8852 (add_solib_catchpoint): Constify.
8853 (catch_fork_command_1): Add cast.
8854 (add_catch_command): Constify.
8855 * breakpoint.h (add_catch_command, add_solib_catchpoint):
8856 Constify.
8857 * bsd-uthread.c (bsd_uthread_state): Constify.
8858 * buildsym.c (patch_subfile_names): Constify.
8859 * buildsym.h (next_symbol_text_func, patch_subfile_names):
8860 Constify.
8861 * c-exp.y (yyerror): Constify.
8862 (token::oper): Constify.
8863 * c-lang.h (c_yyerror, cp_print_class_member): Constify.
8864 * c-varobj.c (cplus_describe_child): Constify.
8865 * charset.c (find_charset_names): Add cast.
8866 (find_charset_names): Constify array and add const_cast.
8867 * cli/cli-cmds.c (complete_command, cd_command): Constify.
8868 (edit_command): Constify.
8869 * cli/cli-decode.c (lookup_cmd): Constify.
8870 * cli/cli-dump.c (dump_memory_command, dump_value_command):
8871 Constify.
8872 (struct dump_context): Constify.
8873 (add_dump_command, restore_command): Constify.
8874 * cli/cli-script.c (get_command_line): Constify.
8875 * cli/cli-script.h (get_command_line): Constify.
8876 * cli/cli-utils.c (check_for_argument): Constify.
8877 * cli/cli-utils.h (check_for_argument): Constify.
8878 * coff-pe-read.c (struct read_pe_section_data): Constify.
8879 * command.h (lookup_cmd): Constify.
8880 * common/print-utils.c (decimal2str): Constify.
8881 * completer.c (gdb_print_filename): Constify.
8882 * corefile.c (set_gnutarget): Constify.
8883 * cp-name-parser.y (yyerror): Constify.
8884 * cp-valprint.c (cp_print_class_member): Constify.
8885 * cris-tdep.c (cris_register_name, crisv32_register_name):
8886 Constify.
8887 * d-exp.y (yyerror): Constify.
8888 (struct token::oper): Constify.
8889 * d-lang.h (d_yyerror): Constify.
8890 * dbxread.c (struct header_file_location::name): Constify.
8891 (add_old_header_file, add_new_header_file, last_function_name)
8892 (dbx_next_symbol_text, add_bincl_to_list)
8893 (find_corresponding_bincl_psymtab, set_namestring)
8894 (find_stab_function_addr, read_dbx_symtab, start_psymtab)
8895 (dbx_end_psymtab, read_ofile_symtab, process_one_symbol):
8896 * defs.h (command_line_input, print_address_symbolic)
8897 (deprecated_readline_begin_hook): Constify.
8898 * dwarf2read.c (anonymous_struct_prefix, dwarf_bool_name):
8899 Constify.
8900 * event-top.c (handle_line_of_input): Constify and add cast.
8901 * exceptions.c (catch_errors): Constify.
8902 * exceptions.h (catch_errors): Constify.
8903 * expprint.c (print_subexp_standard, op_string, op_name)
8904 (op_name_standard, dump_raw_expression, dump_raw_expression):
8905 * expression.h (op_name, op_string, dump_raw_expression):
8906 Constify.
8907 * f-exp.y (yyerror): Constify.
8908 (struct token::oper): Constify.
8909 (struct f77_boolean_val::name): Constify.
8910 * f-lang.c (f_word_break_characters): Constify.
8911 * f-lang.h (f_yyerror): Constify.
8912 * fork-child.c (fork_inferior): Add cast.
8913 * frv-tdep.c (struct gdbarch_tdep::register_names): Constify.
8914 (new_variant): Constify.
8915 * gdbarch.sh (pstring_ptr, pstring_list): Constify.
8916 * gdbarch.c: Regenerate.
8917 * gdbcore.h (set_gnutarget): Constify.
8918 * go-exp.y (yyerror): Constify.
8919 (token::oper): Constify.
8920 * go-lang.h (go_yyerror): Constify.
8921 * go32-nat.c (go32_sysinfo): Constify.
8922 * guile/scm-breakpoint.c (gdbscm_breakpoint_expression): Constify.
8923 * guile/scm-cmd.c (cmdscm_function): Constify.
8924 * guile/scm-param.c (pascm_param_value): Constify.
8925 * h8300-tdep.c (h8300_register_name, h8300s_register_name)
8926 (h8300sx_register_name): Constify.
8927 * hppa-tdep.c (hppa32_register_name, hppa64_register_name):
8928 Constify.
8929 * ia64-tdep.c (ia64_register_names): Constify.
8930 * infcmd.c (construct_inferior_arguments): Constify.
8931 (path_command, attach_post_wait): Constify.
8932 * language.c (show_range_command, show_case_command)
8933 (unk_lang_error): Constify.
8934 * language.h (language_defn::la_error)
8935 (language_defn::la_name_of_this): Constify.
8936 * linespec.c (decode_line_2): Constify.
8937 * linux-thread-db.c (thread_db_err_str): Constify.
8938 * lm32-tdep.c (lm32_register_name): Constify.
8939 * m2-exp.y (yyerror): Constify.
8940 * m2-lang.h (m2_yyerror): Constify.
8941 * m32r-tdep.c (m32r_register_names): Constify and make static.
8942 * m68hc11-tdep.c (m68hc11_register_names): Constify.
8943 * m88k-tdep.c (m88k_register_name): Constify.
8944 * macroexp.c (appendmem): Constify.
8945 * mdebugread.c (fdr_name, add_data_symbol, parse_type)
8946 (upgrade_type, parse_external, parse_partial_symbols)
8947 (mdebug_next_symbol_text, cross_ref, mylookup_symbol, new_psymtab)
8948 (new_symbol): Constify.
8949 * memattr.c (mem_info_command): Constify.
8950 * mep-tdep.c (register_name_from_keyword): Constify.
8951 * mi/mi-cmd-env.c (mi_cmd_env_path, _initialize_mi_cmd_env):
8952 Constify.
8953 * mi/mi-cmd-stack.c (list_args_or_locals): Constify.
8954 * mi/mi-cmd-var.c (mi_cmd_var_show_attributes): Constify.
8955 * mi/mi-main.c (captured_mi_execute_command): Constify and add
8956 cast.
8957 (mi_execute_async_cli_command): Constify.
8958 * mips-tdep.c (mips_register_name): Constify.
8959 * mn10300-tdep.c (register_name, mn10300_generic_register_name)
8960 (am33_register_name, am33_2_register_name)
8961 * moxie-tdep.c (moxie_register_names): Constify.
8962 * nat/linux-osdata.c (osdata_type): Constify fields.
8963 * nto-tdep.c (nto_parse_redirection): Constify.
8964 * objc-lang.c (lookup_struct_typedef, lookup_objc_class)
8965 (lookup_child_selector): Constify.
8966 (objc_methcall::name): Constify.
8967 * objc-lang.h (lookup_objc_class, lookup_child_selector)
8968 (lookup_struct_typedef): Constify.
8969 * objfiles.c (pc_in_section): Constify.
8970 * objfiles.h (pc_in_section): Constify.
8971 * p-exp.y (struct token::oper): Constify.
8972 (yyerror): Constify.
8973 * p-lang.h (pascal_yyerror): Constify.
8974 * parser-defs.h (op_name_standard): Constify.
8975 (op_print::string): Constify.
8976 (exp_descriptor::op_name): Constify.
8977 * printcmd.c (print_address_symbolic): Constify.
8978 * psymtab.c (print_partial_symbols): Constify.
8979 * python/py-breakpoint.c (stop_func): Constify.
8980 (bppy_get_expression): Constify.
8981 * python/py-cmd.c (cmdpy_completer::name): Constify.
8982 (cmdpy_function): Constify.
8983 * python/py-event.c (evpy_add_attribute)
8984 (gdbpy_initialize_event_generic): Constify.
8985 * python/py-event.h (evpy_add_attribute)
8986 (gdbpy_initialize_event_generic): Constify.
8987 * python/py-evts.c (add_new_registry): Constify.
8988 * python/py-finishbreakpoint.c (outofscope_func): Constify.
8989 * python/py-framefilter.c (get_py_iter_from_func): Constify.
8990 * python/py-inferior.c (get_buffer): Add cast.
8991 * python/py-param.c (parm_constant::name): Constify.
8992 * python/py-unwind.c (fprint_frame_id): Constify.
8993 * python/python.c (gdbpy_parameter_value): Constify.
8994 * remote-fileio.c (remote_fio_func_map): Make 'name' const.
8995 * remote.c (memory_packet_config::name): Constify.
8996 (show_packet_config_cmd, remote_write_bytes)
8997 (remote_buffer_add_string):
8998 * reverse.c (exec_reverse_once): Constify.
8999 * rs6000-tdep.c (variant::name, variant::description): Constify.
9000 * rust-exp.y (rustyyerror): Constify.
9001 * rust-lang.c (rust_op_name): Constify.
9002 * rust-lang.h (rustyyerror): Constify.
9003 * serial.h (serial_ops::name): Constify.
9004 * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name)
9005 (sh_sh3e_register_name, sh_sh2e_register_name)
9006 (sh_sh2a_register_name, sh_sh2a_nofpu_register_name)
9007 (sh_sh_dsp_register_name, sh_sh3_dsp_register_name)
9008 (sh_sh4_register_name, sh_sh4_nofpu_register_name)
9009 (sh_sh4al_dsp_register_name): Constify.
9010 * sh64-tdep.c (sh64_register_name): Constify.
9011 * solib-darwin.c (lookup_symbol_from_bfd): Constify.
9012 * spu-tdep.c (spu_register_name, info_spu_dma_cmdlist): Constify.
9013 * stabsread.c (patch_block_stabs, read_type_number)
9014 (ref_map::stabs, ref_add, process_reference)
9015 (symbol_reference_defined, define_symbol, define_symbol)
9016 (error_type, read_type, read_member_functions, read_cpp_abbrev)
9017 (read_one_struct_field, read_struct_fields, read_baseclasses)
9018 (read_tilde_fields, read_struct_type, read_array_type)
9019 (read_enum_type, read_sun_builtin_type, read_sun_floating_type)
9020 (read_huge_number, read_range_type, read_args, common_block_start)
9021 (find_name_end): Constify.
9022 * stabsread.h (common_block_start, define_symbol)
9023 (process_one_symbol, symbol_reference_defined, ref_add):
9024 * symfile.c (get_section_index, add_symbol_file_command):
9025 * symfile.h (get_section_index): Constify.
9026 * target-descriptions.c (tdesc_type::name): Constify.
9027 (tdesc_free_type): Add cast.
9028 * target.c (find_default_run_target):
9029 (add_deprecated_target_alias, find_default_run_target)
9030 (target_announce_detach): Constify.
9031 (do_option): Constify.
9032 * target.h (add_deprecated_target_alias): Constify.
9033 * thread.c (print_thread_info_1): Constify.
9034 * top.c (deprecated_readline_begin_hook, command_line_input):
9035 Constify.
9036 (init_main): Add casts.
9037 * top.h (handle_line_of_input): Constify.
9038 * tracefile-tfile.c (tfile_write_uploaded_tsv): Constify.
9039 * tracepoint.c (tvariables_info_1, trace_status_mi): Constify.
9040 (tfind_command): Rename to ...
9041 (tfind_command_1): ... this and constify.
9042 (tfind_command): New function.
9043 (tfind_end_command, tfind_start_command): Adjust.
9044 (encode_source_string): Constify.
9045 * tracepoint.h (encode_source_string): Constify.
9046 * tui/tui-data.c (tui_partial_win_by_name): Constify.
9047 * tui/tui-data.h (tui_partial_win_by_name): Constify.
9048 * tui/tui-source.c (tui_set_source_content_nil): Constify.
9049 * tui/tui-source.h (tui_set_source_content_nil): Constify.
9050 * tui/tui-win.c (parse_scrolling_args): Constify.
9051 * tui/tui-windata.c (tui_erase_data_content): Constify.
9052 * tui/tui-windata.h (tui_erase_data_content): Constify.
9053 * tui/tui-winsource.c (tui_erase_source_content): Constify.
9054 * tui/tui.c (tui_enable): Add cast.
9055 * utils.c (defaulted_query): Constify.
9056 (init_page_info): Add cast.
9057 (puts_debug, subset_compare): Constify.
9058 * utils.h (subset_compare): Constify.
9059 * varobj.c (varobj_format_string): Constify.
9060 * varobj.h (varobj_format_string): Constify.
9061 * vax-tdep.c (vax_register_name): Constify.
9062 * windows-nat.c (windows_detach): Constify.
9063 * xcoffread.c (process_linenos, xcoff_next_symbol_text): Constify.
9064 * xml-support.c (gdb_xml_end_element): Constify.
9065 * xml-tdesc.c (tdesc_start_reg): Constify.
9066 * xstormy16-tdep.c (xstormy16_register_name): Constify.
9067 * xtensa-tdep.c (xtensa_find_register_by_name): Constify.
9068 * xtensa-tdep.h (xtensa_register_t::name): Constify.
9069
995816ba
PA
90702017-04-05 Pedro Alves <palves@redhat.com>
9071
9072 * proc-api.c (struct trans): Constify.
9073 (procfs_note): Constify.
9074 * proc-events.c (struct trans, syscall_table):
9075 * proc-flags.c (struct trans): Constify.
9076 * proc-utils.h (procfs_note): Constify.
9077 * proc-why.c (struct trans): Constify.
9078 * procfs.c (dead_procinfo, find_syscall, proc_warn, proc_error)
9079 (procfs_detach): Constify.
9080 * sol-thread.c (struct string_map): Constify.
9081 (td_err_string, td_state_string): Constify.
9082
3e83a920
PA
90832017-04-05 Pedro Alves <palves@redhat.com>
9084
9085 * proc-api.c (procfs_filename): Don't initialize
9086 procfs_filename.
9087 (prepare_to_trace): Assume procfs_filename is non-NULL.
9088 (_initialize_proc_api): Give procfs_filename a default value here.
9089
63160a43
PA
90902017-04-05 Pedro Alves <palves@redhat.com>
9091
9092 * break-catch-throw.c (handle_gnu_v3_exceptions): Constify
9093 'cond_string' parameter.
9094 (extract_exception_regexp): Constify 'string' parameter.
9095 (catch_exception_command_1): Constify.
9096 * breakpoint.c (init_catchpoint)
9097 (create_fork_vfork_event_catchpoint): Constify 'cond_string'
9098 parameter.
9099 (ep_parse_optional_if_clause, catch_fork_command_1)
9100 (catch_exec_command_1): Constify.
9101 * breakpoint.h (init_catchpoint): Constify 'cond_string'
9102 parameter.
9103 (ep_parse_optional_if_clause): Constify.
9104 * cli/cli-utils.c (remove_trailing_whitespace)
9105 (check_for_argument): Constify.
9106 * cli/cli-utils.h (remove_trailing_whitespace): Constify and add
9107 non-const overload.
9108 (check_for_argument): Likewise.
9109
9b2eba3d
PA
91102017-04-05 Pedro Alves <palves@redhat.com>
9111
9112 * event-top.c (command_line_handler): Add cast to execute_command
9113 call.
9114 * record-btrace.c (cmd_record_btrace_bts_start)
9115 (cmd_record_btrace_pt_start, cmd_record_btrace_start)
9116 (cmd_record_btrace_start): Add cast to execute_command call.
9117 * record-full.c (record_full_goto_insn):
9118 * record.c (record_start, record_stop): Add cast to
9119 execute_command_to_string calls.
9120 (cmd_record_start): Add cast to execute_command calls.
9121
2adadf51
PA
91222017-04-05 Pedro Alves <palves@redhat.com>
9123
9124 * python/python-internal.h (gdb_PyArg_ParseTupleAndKeywords): New
9125 static inline function.
9126 * python/py-arch.c (archpy_disassemble): Constify 'keywords'
9127 array and use gdb_PyArg_ParseTupleAndKeywords.
9128 * python/py-cmd.c (cmdpy_init): Likewise.
9129 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
9130 * python/py-inferior.c (infpy_read_memory, infpy_write_memory)
9131 (infpy_search_memory): Likewise.
9132 * python/py-objfile.c (objfpy_add_separate_debug_file)
9133 (gdbpy_lookup_objfile): Likewise.
9134 * python/py-symbol.c (gdbpy_lookup_symbol)
9135 (gdbpy_lookup_global_symbol): Likewise.
9136 * python/py-type.c (gdbpy_lookup_type): Likewise.
9137 * python/py-value.c (valpy_lazy_string, valpy_string): Likewise.
9138 * python/python.c (execute_gdb_command, gdbpy_write, gdbpy_flush):
9139 Likewise.
9140
0d1f4ceb
PA
91412017-04-05 Pedro Alves <palves@redhat.com>
9142
9143 * python/python-internal.h (gdb_PyGetSetDef): New type.
9144 * python/py-block.c (block_object_getset)
9145 (breakpoint_object_getset): Now a gdb_PyGetSetDef array.
9146 * python/py-event.c (event_object_getset)
9147 (finish_breakpoint_object_getset): Likewise.
9148 * python/py-inferior.c (inferior_object_getset): Likewise.
9149 * python/py-infthread.c (thread_object_getset): Likewise.
9150 * python/py-lazy-string.c (lazy_string_object_getset): Likewise.
9151 * python/py-linetable.c (linetable_entry_object_getset): Likewise.
9152 * python/py-objfile.c (objfile_getset): Likewise.
9153 * python/py-progspace.c (pspace_getset): Likewise.
9154 * python/py-record-btrace.c (btpy_insn_getset, btpy_call_getset):
9155 Likewise.
9156 * python/py-record.c (recpy_record_getset): Likewise.
9157 * python/py-symbol.c (symbol_object_getset): Likewise.
9158 * python/py-symtab.c (symtab_object_getset, sal_object_getset):
9159 Likewise.
9160 * python/py-type.c (type_object_getset, field_object_getset):
9161 Likewise.
9162 * python/py-value.c (value_object_getset): Likewise.
9163
4d759979
PA
91642017-04-05 Pedro Alves <palves@redhat.com>
9165
9166 * python/python-internal.h (gdb_PyObject_CallMethod)
9167 (gdb_PyErr_NewException, gdb_PySys_GetObject, gdb_PySys_SetPath):
9168 New functions.
9169 (GDB_PYSYS_SETPATH_CHAR, PyObject_CallMethod, PyErr_NewException)
9170 (PySys_GetObject, PySys_SetPath): New macros.
9171
fdf9e36f
PA
91722017-04-05 Pedro Alves <palves@redhat.com>
9173
9174 * mi/mi-cmd-info.c (mi_cmd_info_os): Call info_osdata instead of
9175 info_osdata_command.
9176 * osdata.c (info_osdata_command): Rename to ...
9177 (info_osdata): ... this. Constify 'type' parameter, and remove
9178 the 'from_tty' parameter. Accept NULL TYPE.
9179 (info_osdata_command): New function.
9180 * osdata.h (info_osdata_command): Remove declaration.
9181 (info_osdata): New declaration.
9182
9f33b8b7
PA
91832017-04-05 Pedro Alves <palves@redhat.com>
9184
9185 * mi/mi-cmd-break.c (mi_cmd_break_insert_1, mi_cmd_break_insert)
9186 (mi_cmd_dprintf_insert, mi_cmd_break_passcount)
9187 (mi_cmd_break_watch, mi_cmd_break_commands): Constify 'command'
9188 parameter.
9189 * mi/mi-cmd-catch.c (mi_cmd_catch_assert, mi_cmd_catch_exception)
9190 (mi_cmd_catch_load, mi_cmd_catch_unload): Constify cmd' parameter.
9191 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Constify 'command'
9192 parameter.
9193 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_cd, mi_cmd_env_path)
9194 (mi_cmd_env_dir, mi_cmd_inferior_tty_set, _cmd_inferior_tty_show)
9195 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
9196 (mi_cmd_file_list_exec_source_files)
9197 (mi_cmd_file_list_shared_libraries): Constify 'command' parameter.
9198 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
9199 (mi_cmd_info_gdb_mi_command, mi_cmd_info_os): Constify 'command'
9200 parameter.
9201 * mi/mi-cmd-stack.c (mi_cmd_enable_frame_filters)
9202 (mi_cmd_stack_list_frames, mi_cmd_stack_info_depth)
9203 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
9204 (mi_cmd_stack_list_variables, mi_cmd_stack_select_frame)
9205 (mi_cmd_stack_info_frame): Constify 'command' parameter.
9206 * mi/mi-cmd-target.c (mi_cmd_target_file_get)
9207 (mi_cmd_target_file_put, mi_cmd_target_file_delete): Constify
9208 'command' parameter.
9209 * mi/mi-cmd-var.c (mi_cmd_var_create, mi_cmd_var_delete)
9210 (mi_cmd_var_set_format, mi_cmd_var_set_visualizer)
9211 (mi_cmd_var_set_frozen, mi_cmd_var_show_format)
9212 (mi_cmd_var_info_num_children, mi_cmd_var_list_children)
9213 (mi_cmd_var_info_type, mi_cmd_var_info_path_expression)
9214 (mi_cmd_var_info_expression, mi_cmd_var_show_attributes)
9215 (mi_cmd_var_evaluate_expression, mi_cmd_var_assign)
9216 (mi_cmd_var_update, mi_cmd_enable_pretty_printing)
9217 (mi_cmd_var_set_update_range): Constify 'command' parameter.
9218 * mi/mi-cmds.h (mi_cmd_argv_ftype): Constify 'command' parameter.
9219 * mi/mi-interp.c (mi_cmd_interpreter_exec): Constify 'command'
9220 parameter.
9221 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_exec_next)
9222 (mi_cmd_exec_next_instruction, mi_cmd_exec_step)
9223 (mi_cmd_exec_step_instruction, mi_cmd_exec_finish)
9224 (mi_cmd_exec_return ,mi_cmd_exec_jump, mi_cmd_exec_continue)
9225 (mi_cmd_exec_interrupt, mi_cmd_exec_run, mi_cmd_target_detach)
9226 (mi_cmd_target_flash_erase, mi_cmd_thread_select)
9227 (mi_cmd_thread_list_ids, mi_cmd_thread_info)
9228 (mi_cmd_list_thread_groups, mi_cmd_data_list_register_names)
9229 (mi_cmd_data_list_changed_registers)
9230 (mi_cmd_data_write_register_values)
9231 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
9232 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory)
9233 (mi_cmd_data_write_memory_bytes, mi_cmd_enable_timings)
9234 (mi_cmd_list_features, mi_cmd_list_target_features)
9235 (mi_cmd_add_inferior, mi_cmd_remove_inferior)
9236 (mi_cmd_trace_define_variable, mi_cmd_trace_list_variables)
9237 (mi_cmd_trace_find, mi_cmd_trace_save, mi_cmd_trace_start)
9238 (mi_cmd_trace_status, mi_cmd_trace_stop, mi_cmd_ada_task_info)
9239 (mi_cmd_trace_frame_collected): Constify 'command'
9240 parameter.
9241 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Constify
9242 'command' parameter.
9243
67cb5b2d
PA
92442017-04-05 Pedro Alves <palves@redhat.com>
9245
9246 * ada-lang.c (ada_completer_word_break_characters): Now a const
9247 array.
9248 (ada_get_gdb_completer_word_break_characters): Constify.
9249 * completer.c (gdb_completer_command_word_break_characters)
9250 (gdb_completer_file_name_break_characters)
9251 (gdb_completer_quote_characters): Now const arrays.
9252 (get_gdb_completer_quote_characters): Constify.
9253 (set_rl_completer_word_break_characters): New function.
9254 (set_gdb_completion_word_break_characters)
9255 (complete_line_internal): Use it.
9256 * completer.h (get_gdb_completer_quote_characters): Constify.
9257 (set_rl_completer_word_break_characters): Declare.
9258 * f-lang.c (f_word_break_characters): Constify.
9259 * language.c (default_word_break_characters): Constify.
9260 * language.h (language_defn::la_word_break_characters): Constify.
9261 (default_word_break_characters): Constify.
9262 * top.c (init_main): Use set_rl_completer_word_break_characters.
9263
7a114964
PA
92642017-04-05 Pedro Alves <palves@redhat.com>
9265
9266 * aix-thread.c (aix_thread_pid_to_str)
9267 (aix_thread_extra_thread_info): Constify.
9268 * bsd-kvm.c (bsd_kvm_pid_to_str): Constify.
9269 * bsd-uthread.c (bsd_uthread_extra_thread_info)
9270 (bsd_uthread_pid_to_str): Constify.
9271 * corelow.c (core_pid_to_str): Constify.
9272 * darwin-nat.c (darwin_pid_to_str): Constify.
9273 * fbsd-nat.c (fbsd_pid_to_str): Constify.
9274 * fbsd-tdep.c (fbsd_core_pid_to_str, gdbarch_core_pid_to_str):
9275 Constify.
9276 * gnu-nat.c (gnu_pid_to_str): Constify.
9277 * go32-nat.c (go32_pid_to_str): Constify.
9278 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Constify.
9279 * inf-ptrace.c (inf_ptrace_pid_to_str): Constify.
9280 * inferior.c (inferior_pid_to_str): Constify.
9281 * linux-nat.c (linux_nat_pid_to_str): Constify.
9282 * linux-tdep.c (linux_core_pid_to_str): Constify.
9283 * linux-thread-db.c (thread_db_pid_to_str)
9284 (thread_db_extra_thread_info): Constify.
9285 * nto-tdep.c (nto_extra_thread_info): Constify.
9286 * nto-tdep.h (nto_extra_thread_info): Constify.
9287 * obsd-nat.c (obsd_pid_to_str): Constify.
9288 * procfs.c (procfs_pid_to_str): Constify.
9289 * ravenscar-thread.c (ravenscar_extra_thread_info)
9290 (ravenscar_pid_to_str): Constify.
9291 * remote-sim.c (gdbsim_pid_to_str): Constify.
9292 * remote.c (remote_threads_extra_info, remote_pid_to_str):
9293 Constify.
9294 * sol-thread.c (solaris_pid_to_str): Constify.
9295 * sol2-tdep.c (sol2_core_pid_to_str): Constify.
9296 * sol2-tdep.h (sol2_core_pid_to_str): Constify.
9297 * target.c (default_pid_to_str, target_pid_to_str)
9298 (normal_pid_to_str, default_pid_to_str): Constify.
9299 * target.h (target_ops::to_pid_to_str)
9300 (target_ops::to_extra_thread_info): Constify.
9301 (target_pid_to_str, normal_pid_to_str): Constify.
9302 * windows-nat.c (windows_pid_to_str): Constify.
9303 * gdbarch.sh (core_pid_to_str): Constify.
9304 * target-delegates.c: Regenerate.
9305 * gdbarch.h, gdbarch.c: Regenerate.
9306
69bbf465
PA
93072017-04-05 Pedro Alves <palves@redhat.com>
9308
9309 * main.c (captured_main_1): Use gdb::unique_xmalloc_ptr to manage
9310 the memory of the temporary warning_pre_print override.
9311 * utils.c (warning_pre_print): Constify.
9312 * utils.h (warning_pre_print): Constify.
9313
be47f9e8
PA
93142017-04-05 Pedro Alves <palves@redhat.com>
9315
9316 * cli/cli-cmds.c (shell_escape): Constify 'arg' parameter.
9317 (shell_command): New function.
9318 (make_command): Use std::string.
9319 (init_cli_cmds): Register shell_command instead of shell_escape.
9320
bde6261a
PA
93212017-04-05 Pedro Alves <palves@redhat.com>
9322
9323 * breakpoint.c (dprintf_function, dprintf_channel): Don't initialize.
9324 * tracepoint.c (default_collect): Don't initialize.
9325
b38ef47f
PA
93262017-04-05 Pedro Alves <palves@redhat.com>
9327
9328 * macroexp.c (macro_buffer::shared): Now a bool.
9329 (init_buffer): Update.
9330 (init_shared_buffer): Constify 'addr' parameter.
9331 (substitute_args, expand, macro_expand, macro_expand_next): Remove
9332 casts.
9333
f995bbe8
PA
93342017-04-05 Pedro Alves <palves@redhat.com>
9335
9336 * arm-tdep.c (show_disassembly_style_sfunc): Constify local.
9337 * disasm.c (set_disassembler_options): Constify local.
9338 * i386-tdep.c (i386_print_insn): Remove cast and FIXME comment.
9339
4a596fe2
SDJ
93402017-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
9341
9342 PR gdb/21352
9343 * tracefile.c (tsave_command): Fix argument parsing for '-r'
9344 option.
9345
2cad08ea
YQ
93462017-04-05 Yao Qi <yao.qi@linaro.org>
9347
9348 * frame.c (frame_unwind_register_unsigned): Call
9349 frame_unwind_register_value.
9350
55a98976
YQ
93512017-04-05 Yao Qi <yao.qi@linaro.org>
9352
9353 * gdb.threads/thread-specific-bp.exp (check_thread_specific_breakpoint):
9354 Use gdb_test_multiple, and don't match anchor.
9355
4ac40124
PA
93562017-04-05 Pedro Alves <palves@redhat.com>
9357
9358 * MAINTAINERS (Global Maintainers): Add Simon Marchi.
9359 (Write After Approval): Remove Simon Marchi.
9360
c053b654
PA
93612017-04-05 Pedro Alves <palves@redhat.com>
9362
9363 * common/gdb_optional.h (optional::optional): Make constexpr and
9364 initialize m_dummy.
9365
4c7bf4f9
JB
93662017-04-04 John Baldwin <jhb@FreeBSD.org>
9367
9368 * amd64-fbsd-tdep.c: Remove "bsd-uthread.h" include.
9369 (amd64fbsd_jmp_buf_reg_offset): Remove.
9370 (amd64fbsd_supply_uthread): Remove function.
9371 (amd64fbsd_collect_uthread): Remove function.
9372 (amd64fbsd_init_abi): Don't set bsd-uthread callbacks.
9373 * configure.tgt (i[34567]86-*-freebsd*): Remove bsd-uthread.o.
9374 (x86_64-*-freebsd*): Remove bsd-uthread.o.
9375 (fbsd-nat.c): Update comment.
9376 * i386-fbsd-tdep.c: Remove "bsd-uthread.h" include.
9377 (i386fbsd_jmp_buf_reg_offset): Remove.
9378 (i386fbsd_supply_uthread): Remove function.
9379 (i386fbsd_collect_uthread): Remove function.
9380 (i386fbsd_init_abi): Don't set bsd-uthread callbacks.
9381
1e1a8bef
JB
93822017-04-04 John Baldwin <jhb@FreeBSD.org>
9383
9384 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-fbsd-tdep.o.
9385 (ALLDEPFILES): Remove alpha-fbsd-tdep.c
9386 * NEWS: Mention that support for FreeBSD/alpha was removed.
9387 * alpha-fbsd-tdep.c: Delete file.
9388 * config/alpha/fbsd.mh: Delete file.
9389 * configure.host: Delete alpha*-*-freebsd* and
9390 alpha*-*-kfreebsd*-gnu.
9391 * configure.tgt: Delete alpha*-*-freebsd* and
9392 alpha*-*-kfreebsd*-gnu.
9393
49907934
JB
93942017-04-04 John Baldwin <jhb@FreeBSD.org>
9395
9396 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers,
9397 amd64bsd_store_inferior_registers): Use ptid from regcache.
9398
6f77053d
PA
93992017-04-04 Pedro Alves <palves@redhat.com>
9400
9401 * dwarf2read.c (lnp_state_machine): Now a class. Initialize all
9402 data fields, make them private and add "m_" prefixes.
9403 (lnp_state_machine::lnp_state_machine): New ctor.
9404 (record_line, check_line_address, handle_set_discriminator)
9405 (handle_set_address, handle_advance_pc, handle_special_opcode)
9406 (handle_advance_line, handle_set_file, handle_negate_stmt)
9407 (handle_const_add_pc, handle_fixed_advance_pc, handle_copy)
9408 (end_sequence, advance_line): New methods.
9409 (m_gdbarch, m_record_lines_p): New fields.
9410 (lnp_reader_state): Delete.
9411 (dwarf_record_line): Rename to ...
9412 (lnp_state_machine::record_line): ... adjust.
9413 (init_lnp_state_machine): Delete.
9414 (lnp_state_machine::lnp_state_machine): New.
9415 (check_line_address): Rename to ...
9416 (lnp_state_machine::check_line_address): This.
9417 (dwarf_decode_lines_1): Remove reference to "reader_state".
9418 Adjust lnp_state_machine having a non-default ctor. Use bool.
9419 State machine internal state manipulation moved to
9420 lnp_state_machine methods.
9421
9c541725
PA
94222017-04-04 Pedro Alves <palves@redhat.com>
9423
9424 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9425 unittests/offset-type-selftests.c.
9426 (SUBDIR_UNITTESTS_OBS): Add offset-type-selftests.o.
9427 * common/offset-type.h: New file.
9428 * common/preprocessor.h: New file.
9429 * common/traits.h: New file.
9430 * common/valid-expr.h: New file.
9431 * dwarf2expr.c: Include "common/underlying.h". Adjust to use
9432 sect_offset and cu_offset strong typedefs throughout.
9433 * dwarf2expr.h: Adjust to use sect_offset and cu_offset strong
9434 typedefs throughout.
9435 * dwarf2loc.c: Include "common/underlying.h". Adjust to use
9436 sect_offset and cu_offset strong typedefs throughout.
9437 * dwarf2read.c: Adjust to use sect_offset and cu_offset strong
9438 typedefs throughout.
9439 * gdbtypes.h: Include "common/offset-type.h".
9440 (cu_offset): Now an offset type (strong typedef) instead of a
9441 struct.
9442 (sect_offset): Likewise.
9443 (union call_site_parameter_u): Rename "param_offset" field to
9444 "param_cu_off".
9445 * unittests/offset-type-selftests.c: New file.
9446
ecfb656c
PA
94472017-04-04 Pedro Alves <palves@redhat.com>
9448
9449 * common/underlying.h: New file.
9450 * dwarf2read.c: Include "common/gdb_optional.h" and
9451 "common/underlying.h".
9452 (dir_index, file_name_index): New types.
9453 (file_entry): Use them.
9454 (file_entry::include): Use to_underlying.
9455 (line_header::add_file_name): Use dir_index.
9456 (read_formatted_entries): Use gdb::optional. Read form before
9457 writting to file_entry.
9458 (dwarf_decode_line_header): Use dir_index.
9459 (lnp_state_machine::current_file): Use to_underlying.
9460 (lnp_state_machine::file): Change type to file_name_index.
9461 (dwarf_record_line): Use to_underlying.
9462 (init_lnp_state_machine): Use file_name_index.
9463 (dwarf_decode_lines_1): Use dir_index and file_name_index.
9464
d194f1fe
PA
94652017-04-04 Pedro Alves <palves@redhat.com>
9466
9467 * common/gdb_optional.h (gdb::optiona): Add operator->, operator*,
9468 operator bool, has_value and get methods.
9469
fff8551c
PA
94702017-04-04 Pedro Alves <palves@redhat.com>
9471
9472 * dwarf2read.c (struct file_entry): Add ctors, and initialize all
9473 fields.
9474 (line_header): Initialize all data fields. Change type of
9475 standard_opcode_lengths to std::unique_ptr<unsigned char[]>.
9476 Change type of include_dirs to std::vector<const char *>. Remove
9477 num_include_dirs, include_dirs_size. Change type of file_names to
9478 std::vector<file_entry>. Remove num_file_names, file_names_size.
9479 (line_header::line_header): New.
9480 (line_header::add_include_dir, line_header::add_file_name): New
9481 methods.
9482 (line_header::include_dir_at): Remove NULL check.
9483 (line_header::file_name_at): Add const overload.
9484 (line_header_up): New unique_ptr typedef.
9485 (dw2_get_file_names_reader): Use line_header_up. Adjust to use
9486 std::vector. Remove free_line_header call.
9487 (dwarf2_build_include_psymtabs): Use line_header_up. Remove
9488 free_line_header call.
9489 (free_cu_line_header): Delete.
9490 (handle_DW_AT_stmt_list, handle_DW_AT_stmt_list)
9491 (setup_type_unit_groups): Use line_header_up instead of cleanups.
9492 Adjust to use std::vector.
9493 (free_line_header): Delete.
9494 (free_line_header_voidp): Use delete.
9495 (add_include_dir): Replace with ...
9496 (line_header::add_include_dir): ... this method. Use std::vector.
9497 (add_file_name): Replace with ...
9498 (line_header::add_file_name): ... this method. Use std::vector.
9499 (add_include_dir_stub): Delete.
9500 (read_formatted_entries): Remove memset.
9501 (dwarf_decode_line_header): Return a line_header_up instead of a
9502 raw pointer. Remove cleanup handling. Pass lambdas to
9503 read_formatted_entries. Adjust to use line_header methods.
9504 (dwarf_decode_lines_1): Adjust to use line_header methods.
9505 (dwarf_decode_lines, file_file_name, file_full_name): Adjust to
9506 use std::vector.
9507
d62a8ae2
SM
95082017-04-04 Simon Marchi <simon.marchi@polymtl.ca>
9509
9510 * remote.c (set_general_thread, set_continue_thread): Use ptid_t
9511 instead of struct ptid.
9512
db3a1dc7
AH
95132017-05-04 Alan Hayward <alan.hayward@arm.com>
9514
9515 * frame.c (get_frame_register_bytes): Unwind using value.
9516 (put_frame_register_bytes): Likewise.
9517
b1b45502
IB
95182017-03-30 Iain Buclaw <ibuclaw@gdcproject.org>
9519
9520 * d-exp.y (type_aggregate_p): Treat TYPE_CODE_MODULE as being
9521 aggregate-like.
9522
ec13808e
JK
95232017-03-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9524
9525 * auto-load.c (auto_load_section_scripts): Check SEC_HAS_CONTENTS.
9526
12316564
YQ
95272017-03-29 Yao Qi <yao.qi@linaro.org>
9528
9529 * gdbthread.h (struct thread_info): Declare constructor and
9530 destructor. Add some in-class member initializers.
9531 * thread.c (free_thread): Remove.
9532 (init_thread_list): Call delete instead of free_thread.
9533 (new_thread): Call thread_info constructor.
9534 (thread_info::thread_info): New function.
9535 (thread_info::~thread_info): New function.
9536 (delete_thread_1): Call delete instead of free_thread.
9537 (make_cleanup_restore_current_thread): Move tp and frame to
9538 inner block.
9539
fe5f7374
AK
95402017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
9541
9542 * arc-tdep.c (arc_frame_cache): Add support for prologue analysis.
9543 (arc_skip_prologue): Likewise.
9544 (arc_make_frame_cache): Likewise.
9545 (arc_pv_get_operand): New function.
9546 (arc_is_in_prologue): Likewise.
9547 (arc_analyze_prologue): Likewise.
9548 (arc_print_frame_cache): Likewise.
9549 (MAX_PROLOGUE_LENGTH): New constant.
9550
eea78757
AK
95512017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
9552
9553 * configure.tgt: Add arc-insn.o.
9554 * arc-tdep.c (arc_delayed_print_insn): Make non-static.
9555 (dump_arc_instruction_command): New function.
9556 (arc_fprintf_disasm): Likewise.
9557 (arc_disassemble_info): Likewise.
9558 (arc_insn_get_operand_value): Likewise.
9559 (arc_insn_get_operand_value_signed): Likewise.
9560 (arc_insn_get_memory_base_reg): Likewise.
9561 (arc_insn_get_memory_offset): Likewise.
9562 (arc_insn_get_branch_target): Likewise.
9563 (arc_insn_dump): Likewise.
9564 (arc_insn_get_linear_next_pc): Likewise.
9565 * arc-tdep.h (arc_delayed_print_insn): Add function declaration.
9566 (arc_disassemble_info): Likewise.
9567 (arc_insn_get_branch_target): Likewise.
9568 (arc_insn_get_linear_next_pc): Likewise.
9569 * NEWS: Mention new "maint print arc arc-instruction".
9570
3be78afd
AK
95712017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
9572
9573 * arc-tdep (maintenance_print_arc_list): New variable.
9574 (maintenance_print_arc_command): New function.
9575
296ec4fa
AK
95762017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
9577
9578 * arc-tdep.c (core_v2_register_names, core_arcompact_register_names)
9579 Add "limm" and "reserved".
9580 (arc_cannot_fetch_register, arc_cannot_store_register): Add
9581 ARC_RESERVED_REGNUM and ARC_LIMM_REGNUM.
9582 * arc-tdep.h (arc_regnum): Likewise.
9583
f74f865e
MF
95842017-03-27 Max Filippov <jcmvbkbc@gmail.com>
9585
9586 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
9587 for THREADPTR register.
9588 (supply_gregset_reg): Call regcache_raw_supply for THREADPTR
9589 register.
9590 * xtensa-tdep.c (XTENSA_DBREGN_UREG): New definition.
9591 (xtensa_derive_tdep): Initialize tdep->threadptr_regnum.
9592 * xtensa-tdep.h (gdbarch_tdep::threadptr_regnum): New field.
9593
0d0bf81a
MF
95942017-03-27 Max Filippov <jcmvbkbc@gmail.com>
9595
9596 * xtensa-tdep.c (xtensa_pseudo_register_read): Treat all
9597 registers above gdbarch_num_regs (gdbarch) as privileged in
9598 call0 ABI.
9599
0ce4291e
MF
96002017-03-27 Max Filippov <jcmvbkbc@gmail.com>
9601
9602 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
9603 for a single specified register or for all registers in
9604 a0_base..a0_base + C0_NREGS range.
9605 (supply_gregset_reg): Call regcache_raw_supply for a single
9606 specified register or for all registers in a0_base..a0_base +
9607 C0_NREGS range.
9608
c56054f9
MF
96092017-03-27 Max Filippov <jcmvbkbc@gmail.com>
9610
9611 * arch/xtensa.h (C0_NREGS): Add definition.
9612 * xtensa-tdep.c (C0_NREGS): Remove definition.
9613
a4398628
MF
96142017-03-27 Max Filippov <jcmvbkbc@gmail.com>
9615
9616 * xtensa-tdep.c (xtensa_scan_prologue, call0_analyze_prologue):
9617 Drop xtensa_default_isa initialization.
9618 (xtensa_gdbarch_init): Initialize xtensa_default_isa.
9619
8c43009f
PA
96202017-03-27 Pedro Alves <palves@redhat.com>
9621
9622 * dwarf2read.c (file_entry) <dir_index>: Add comment.
9623 (file_entry::include_dir): New method.
9624 (line_header::include_dir_at, line_header::file_name_at): New
9625 methods.
9626 (setup_type_unit_groups, setup_type_unit_groups)
9627 (psymtab_include_file_name): Simplify using the new methods.
9628 (lnp_state_machine) <the_line_header>: New field.
9629 <file>: Add comment.
9630 (lnp_state_machine::current_file): New method.
9631 (dwarf_record_line): Simplify using the new methods.
9632 (init_lnp_state_machine): Initialize the "the_line_header" field.
9633 (dwarf_decode_lines_1, dwarf_decode_lines, file_file_name):
9634 Simplify using the new methods.
9635
a7e80b9e
PA
96362017-03-27 Pedro Alves <palves@redhat.com>
9637
9638 * cp-name-parser.y (make_empty): Delete.
9639 (demangler_special, nested_name, ptr_operator, array_indicator)
9640 (direct_declarator, declarator_1): Use fill_comp instead of
9641 make_empty.
9642
21047726
PA
96432017-03-27 Pedro Alves <palves@redhat.com>
9644
9645 * xml-support.h (gdb_xml_debug): Pass a "first-to-check" argument
9646 to ATTRIBUTE_PRINTF.
9647 * solib-target.c (library_list_start_list): Print "string" not
9648 "version".
9649 * xml-tdesc.c (tdesc_start_field): Pass "field_name" to
9650 gdb_xml_error call.
9651
d721ba37
PA
96522017-03-27 Pedro Alves <palves@redhat.com>
9653
9654 * dwarf2read.c (struct file_and_directory): New.
9655 (dwarf2_get_dwz_file): Adjust to use std::string.
9656 (dw2_get_file_names_reader): Adjust to use file_and_directory.
9657 (find_file_and_directory): Adjust to return a file_and_directory
9658 object.
9659 (read_file_scope): Adjust to use file_and_directory. Remove
9660 make_cleanup/do_cleanups calls.
9661 (open_and_init_dwp_file): Adjust to use std::string. Remove
9662 make_cleanup/do_cleanups calls.
9663 * python/python.c (do_start_initialization): Adjust to ldirname
9664 returning a std::string.
9665 * utils.c (ldirname): Now returns a std::string.
9666 * utils.h (ldirname): Change return type to std::string.
9667 * xml-syscall.c (xml_init_syscalls_info): Adjust to ldirname
9668 returning a std::string.
9669 * xml-tdesc.c (file_read_description_xml): Likewise.
9670
ed771251
AH
96712017-03-24 Alan Hayward <alan.hayward@arm.com>
9672
9673 * regcache.c (regcache_debug_print_register): New function.
9674 * regcache.h (regcache_debug_print_register): New declaration.
9675 * target.c (debug_print_register): Remove.
9676 (target_fetch_registers): Call regcache_debug_print_register.
9677 (target_store_registers): Likewise.
9678
568c1b9f
PB
96792017-03-24 Pádraig Brady <pbrady@fb.com>
9680
9681 * dwarf2read.c (setup_type_unit_groups): Ensure dir_index doesn't
9682 reference beyond the 'lh->include_dirs' array before accessing to
9683 it.
9684 (psymtab_include_file_name): Likewise.
9685 (dwarf_decode_lines_1): Likewise.
9686 (dwarf_decode_lines): Likewise.
9687 (file_file_name): Likewise.
9688
3e00d44f
SM
96892017-03-23 Simon Marchi <simon.marchi@ericsson.com>
9690
9691 * fbsd-tdep.c (fbsd_corefile_thread): Don't set/restore
9692 inferior_ptid.
9693 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
9694 ps_lsetfpregs): Likewise.
9695 * regcache.c (regcache_raw_update, regcache_raw_write): Likewise.
9696 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
9697 ps_lsetfpregs): Likewise.
9698 * target.c (target_fetch_registers, target_store_registers):
9699 Remove asserts.
9700
077ae656
AH
97012017-03-23 Alan Hayward <alan.hayward@arm.com>
9702
9703 * sol-thread.c (sol_thread_store_registers): Remove regcache calls.
9704
1e2b521d
YQ
97052017-03-23 Yao Qi <yao.qi@linaro.org>
9706
9707 * aarch64-tdep.c (aarch64_process_record_test): Declare.
9708 (_initialize_aarch64_tdep): Register it.
9709 (aarch64_record_load_store): Handle PRFM instruction.
9710 (aarch64_process_record_test): New function.
9711
33877125
YQ
97122017-03-23 Yao Qi <yao.qi@linaro.org>
9713
9714 * aarch64-tdep.c (aarch64_record_load_store): Fix code
9715 indentation.
9716
a0eef940
YQ
97172017-03-23 Yao Qi <yao.qi@linaro.org>
9718
9719 * aarch64-tdep.c: Remove AARCH64_RECORD_FAILURE.
9720
3f2a3564
PR
97212017-03-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
9722
9723 python/python.c (do_start_initialization): Fix memory leak.
9724
b67aeab0
SM
97252017-03-22 Simon Marchi <simon.marchi@polymtl.ca>
9726
9727 * inf-ptrace.c (inf_ptrace_xfer_partial): Get pid from ptid
9728 using get_ptrace_pid.
9729 * linux-nat.c (linux_nat_xfer_partial): Don't set/restore
9730 inferior_ptid.
9731 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use lwp of
9732 inferior_ptid instead of pid.
9733
ffdbe864
YQ
97342017-03-22 Yao Qi <yao.qi@linaro.org>
9735
9736 * aarch64-tdep.c: Wrap locally used classes in anonymous
9737 namespace.
9738 * arm-tdep.c: Likewise.
9739 * linespec.c: Likewise.
9740 * ui-out.c: Likewise.
9741
9d736fbf
JG
97422017-03-22 Jonah Graham <jonah@kichwacoders.com>
9743
9744 PR gdb/19637
9745 * python/lib/gdb/printer/bound_registers.py: Import sys.
9746
3de88e9a
SM
97472017-03-21 Simon Marchi <simon.marchi@ericsson.com>
9748
9749 * windows-nat.c (do_windows_fetch_inferior_registers): Add
9750 windows_thread_info parameter and use it instead of
9751 current_thread.
9752 (windows_fetch_inferior_registers): Don't set current_thread,
9753 pass the thread to do_windows_fetch_inferior_registers. Use
9754 ptid from regcache instead of inferior_ptid.
9755 (do_windows_store_inferior_registers): Add windows_thread_info
9756 parameter and use it instead of current_thread.
9757 (windows_store_inferior_registers): Don't set current_thread,
9758 pass the thread to do_windows_store_inferior_registers. Use
9759 ptid from regcache instead of inferior_ptid.
9760
0e7b8f61
SM
97612017-03-21 Simon Marchi <simon.marchi@ericsson.com>
9762
9763 * ser-mingw.c (ser_windows_raw): Remove reference to
9764 struct serial::current_timeout.
9765
5badf10a
IR
97662017-03-21 Ivo Raisr <ivo.raisr@oracle.com>
9767
9768 PR tdep/20928
9769 * gdb/sparc-tdep.h (gdbarch_tdep) <sparc64_ccr_type>: New field.
9770 * gdb/sparc64-tdep.c (sparc64_ccr_type): New function.
9771 (sparc64_fsr_type): Fix %fsr decoding.
9772
cee59b3f
TW
97732017-03-21 Tim Wiederhake <tim.wiederhake@intel.com>
9774
9775 * python/py-record-btrace.c (btpy_insn_data): Change return type
9776 for Python 2.
9777
639a9038
SM
97782017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
9779
9780 * spu-linux-nat.c (spu_fetch_inferior_registers,
9781 spu_store_inferior_registers): Use ptid from regcache, set and
9782 restore inferior_ptid.
9783 * spu-multiarch.c (spu_fetch_registers, spu_store_registers):
9784 Likewise.
9785
bcc0c096
SM
97862017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
9787
9788 * i386-linux-nat.c (fetch_register, store_register,
9789 i386_linux_fetch_inferior_registers,
9790 i386_linux_store_inferior_registers): Use ptid from regcache.
9791 * ia64-linux-nat.c (ia64_linux_fetch_register,
9792 ia64_linux_store_register): Likewise.
9793 * inf-ptrace.c (inf_ptrace_fetch_register,
9794 inf_ptrace_store_register): Likewise.
9795 * m32r-linux-nat.c (m32r_linux_fetch_inferior_registers,
9796 m32r_linux_store_inferior_registers): Likewise.
9797 * m68k-bsd-nat.c (m68kbsd_fetch_inferior_registers,
9798 m68kbsd_store_inferior_registers): Likewise.
9799 * m68k-linux-nat.c (fetch_register, store_register,
9800 m68k_linux_fetch_inferior_registers,
9801 m68k_linux_store_inferior_registers): Likewise.
9802 * m88k-bsd-nat.c (m88kbsd_fetch_inferior_registers,
9803 m88kbsd_store_inferior_registers): Likewise.
9804 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers,
9805 mips_fbsd_store_inferior_registers): Likewise.
9806 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers,
9807 mips64_linux_regsets_store_registers): Likewise.
9808 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers,
9809 mipsnbsd_store_inferior_registers): Likewise.
9810 * mips-obsd-nat.c (mips64obsd_fetch_inferior_registers,
9811 mips64obsd_store_inferior_registers): Likewise.
9812 * nto-procfs.c (procfs_fetch_registers, procfs_store_registers):
9813 Likewise.
9814 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers,
9815 ppcfbsd_store_inferior_registers): Likewise.
9816 * ppc-linux-nat.c (ppc_linux_fetch_inferior_registers,
9817 ppc_linux_store_inferior_registers): Likewise.
9818 * ppc-nbsd-nat.c (ppcnbsd_fetch_inferior_registers,
9819 ppcnbsd_store_inferior_registers): Likewise.
9820 * ppc-obsd-nat.c (ppcobsd_fetch_registers,
9821 ppcobsd_store_registers): Likewise.
9822 * procfs.c (procfs_fetch_registers, procfs_store_registers):
9823 Likewise.
9824 * ravenscar-thread.c (ravenscar_fetch_registers,
9825 ravenscar_store_registers, ravenscar_prepare_to_store):
9826 Likewise.
9827 * record-btrace.c (record_btrace_fetch_registers,
9828 record_btrace_store_registers, record_btrace_prepare_to_store):
9829 Likewise.
9830 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register):
9831 Lookup inferior using ptid from regcache, instead of
9832 current_inferior.
9833 * remote.c (remote_fetch_registers, remote_store_registers): Use
9834 ptid from regcache.
9835 * rs6000-nat.c (fetch_register, store_register): Likewise.
9836 * s390-linux-nat.c (s390_linux_fetch_inferior_registers,
9837 s390_linux_store_inferior_registers): Likewise.
9838 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers,
9839 shnbsd_store_inferior_registers): Likewise.
9840 * sol-thread.c (sol_thread_fetch_registers,
9841 sol_thread_store_registers): Likewise.
9842 * sparc-nat.c (sparc_fetch_inferior_registers,
9843 sparc_store_inferior_registers): Likewise.
9844 * tilegx-linux-nat.c (fetch_inferior_registers,
9845 store_inferior_registers): Likewise.
9846 * vax-bsd-nat.c (vaxbsd_fetch_inferior_registers,
9847 vaxbsd_store_inferior_registers): Likewise.
9848 * xtensa-linux-nat.c (fetch_gregs, store_gregs, fetch_xtregs,
9849 store_xtregs): Likewise.
9850
c0f55cc6
AV
98512017-03-20 Artemiy Volkov <artemiyv@acm.org>
9852
9853 PR gdb/14441
9854 * NEWS: Mention support for rvalue references in GDB and python.
9855 * doc/gdb.texinfo (C Plus Plus Expressions): Mention that GDB
9856 supports both lvalue and rvalue references.
9857
15c0a2a9
AV
98582017-03-20 Artemiy Volkov <artemiyv@acm.org>
9859
9860 PR gdb/14441
9861 * gdbtypes.c (rank_one_type): Implement overloading
9862 resolution rules regarding rvalue references.
9863
aa006118
AV
98642017-03-20 Artemiy Volkov <artemiyv@acm.org>
9865
9866 PR gdb/14441
9867 * aarch64-tdep.c (aarch64_type_align)
9868 (aarch64_extract_return_value, aarch64_store_return_value): Change
9869 lvalue reference type checks to general reference type checks.
9870 * amd64-tdep.c (amd64_classify): Likewise.
9871 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
9872 Likewise.
9873 * arm-tdep.c (arm_type_align, arm_extract_return_value)
9874 (arm_store_return_value): Likewise.
9875 * ax-gdb.c (gen_fetch, gen_cast): Likewise.
9876 * c-typeprint.c (c_print_type): Likewise.
9877 * c-varobj.c (adjust_value_for_child_access, c_value_of_variable)
9878 (cplus_number_of_children, cplus_describe_child): Likewise.
9879 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
9880 * completer.c (expression_completer): Likewise.
9881 * cp-support.c (make_symbol_overload_list_adl_namespace):
9882 Likewise.
9883 * darwin-nat-info.c (info_mach_region_command): Likewise.
9884 * dwarf2loc.c (entry_data_value_coerce_ref)
9885 (value_of_dwarf_reg_entry): Likewise.
9886 * eval.c (ptrmath_type_p, evaluate_subexp_standard)
9887 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof):
9888 Likewise.
9889 * findvar.c (extract_typed_address, store_typed_address):
9890 Likewise.
9891 * gdbtypes.c (rank_one_type): Likewise.
9892 * hppa-tdep.c (hppa64_integral_or_pointer_p): Likewise.
9893 * infcall.c (value_arg_coerce): Likewise.
9894 * language.c (pointer_type): Likewise.
9895 * m32c-tdep.c (m32c_reg_arg_type, m32c_m16c_address_to_pointer):
9896 Likewise.
9897 * m88k-tdep.c (m88k_integral_or_pointer_p): Likewise.
9898 * mn10300-tdep.c (mn10300_type_align): Likewise.
9899 * msp430-tdep.c (msp430_push_dummy_call): Likewise.
9900 * ppc-sysv-tdep.c (do_ppc_sysv_return_value)
9901 (ppc64_sysv_abi_push_param, ppc64_sysv_abi_return_value):
9902 Likewise.
9903 * printcmd.c (print_formatted, x_command): Likewise.
9904 * python/py-type.c (typy_get_composite, typy_template_argument):
9905 Likewise.
9906 * python/py-value.c (valpy_referenced_value)
9907 (valpy_get_dynamic_type, value_has_field): Likewise.
9908 * s390-linux-tdep.c (s390_function_arg_integer): Likewise.
9909 * sparc-tdep.c (sparc_integral_or_pointer_p): Likewise.
9910 * sparc64-tdep.c (sparc64_integral_or_pointer_p): Likewise.
9911 * spu-tdep.c (spu_scalar_value_p): Likewise.
9912 * symtab.c (lookup_symbol_aux): Likewise.
9913 * typeprint.c (whatis_exp, print_type_scalar): Likewise.
9914 * valarith.c (binop_types_user_defined_p, unop_user_defined_p):
9915 Likewise.
9916 * valops.c (value_cast_pointers, value_cast)
9917 (value_reinterpret_cast, value_dynamic_cast, value_addr, typecmp)
9918 (value_struct_elt, value_struct_elt_bitpos)
9919 (value_find_oload_method_list, find_overload_match)
9920 (value_rtti_indirect_type): Likewise.
9921 * valprint.c (val_print_scalar_type_p, generic_val_print):
9922 Likewise.
9923 * value.c (value_actual_type, value_as_address, unpack_long)
9924 (pack_long, pack_unsigned_long, coerce_ref_if_computed)
9925 (coerce_ref): Likewise.
9926 * varobj.c (varobj_get_value_type): Likewise.
9927
3fcf899d
AV
99282017-03-20 Artemiy Volkov <artemiyv@acm.org>
9929
9930 PR gdb/14441
9931 * doc/python.texi (Types in Python): Add TYPE_CODE_RVALUE_REF to
9932 table of constants.
9933 * python/lib/gdb/command/explore.py: Support exploring values
9934 of rvalue reference types.
9935 * python/lib/gdb/types.py: Implement get_basic_type() for
9936 rvalue reference types.
9937 * python/py-type.c (pyty_codes) <TYPE_CODE_RVALUE_REF>: New
9938 constant.
9939 * python/py-value.c (valpy_getitem): Add an rvalue reference
9940 check.
9941 (valpy_reference_value): Add new parameter "refcode".
9942 (valpy_lvalue_reference_value, valpy_rvalue_reference_value):
9943 New wrappers for valpy_reference_value().
9944 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
9945 (gdbpy_invoke_xmethod): Likewise.
9946
4297a3f0
AV
99472017-03-20 Artemiy Volkov <artemiyv@acm.org>
9948
9949 PR gdb/14441
9950 * dwarf2read.c (process_die, read_type_die_1): Handle the
9951 DW_TAG_rvalue_reference_type DIE.
9952 (read_tag_reference_type): Add new parameter "refcode".
9953
e1cb3213
AV
99542017-03-20 Artemiy Volkov <artemiyv@acm.org>
9955
9956 PR gdb/14441
9957 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix)
9958 (c_type_print_modifier, c_type_print_varspec_suffix)
9959 (c_type_print_base): Support printing rvalue reference types.
9960 * c-valprint.c (c_val_print, c_value_print): Support printing
9961 rvalue reference values.
9962
e4347c89
AV
99632017-03-20 Artemiy Volkov <artemiyv@acm.org>
9964
9965 PR gdb/14441
9966 * cp-name-parser.y (ptr_operator): Handle the '&&' token in
9967 typename.
9968 * cp-support.c (replace_typedefs): Handle
9969 DEMANGLE_COMPONENT_RVALUE_REFERENCE.
9970 * python/py-type.c (typy_lookup_type): Likewise.
9971
53cc15f5
AV
99722017-03-20 Artemiy Volkov <artemiyv@acm.org>
9973
9974 PR gdb/14441
9975 * c-exp.y (ptr_operator): Handle the '&&' token in the typename.
9976 * parse.c (insert_type): Change assert statement.
9977 (follow_types): Handle rvalue reference types.
9978 * parser-defs.h (enum type_pieces) <tp_rvalue_reference>: New
9979 constant.
9980
a65cfae5
AV
99812017-03-20 Artemiy Volkov <artemiyv@acm.org>
9982
9983 PR gdb/14441
9984 * ada-lang.c (ada_evaluate_subexp): Adhere to the new
9985 value_ref() interface.
9986 * c-valprint.c (c_value_print): Likewise.
9987 * infcall.c (value_arg_coerce): Likewise.
9988 * python/py-value.c (valpy_reference_value): Likewise.
9989 * valops.c (value_cast, value_reinterpret_cast)
9990 (value_dynamic_cast, typecmp): Likewise.
9991 (value_ref): Parameterize by kind of return value reference type.
9992 * value.h (value_ref): Add new parameter "refcode".
9993
3b224330
AV
99942017-03-20 Artemiy Volkov <artemiyv@acm.org>
9995
9996 PR gdb/14441
9997 * dwarf2read.c (read_tag_reference_type): Use
9998 lookup_lvalue_reference_type() instead of lookup_reference_type().
9999 * eval.c (evaluate_subexp_standard): Likewise.
10000 * f-exp.y: Likewise.
10001 * gdbtypes.c (make_reference_type, lookup_reference_type):
10002 Generalize with rvalue reference types.
10003 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): New
10004 convenience wrappers for lookup_reference_type().
10005 * gdbtypes.h (make_reference_type, lookup_reference_type): Add a
10006 reference kind parameter.
10007 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): Add
10008 wrappers for lookup_reference_type().
10009 * guile/scm-type.c (gdbscm_type_reference): Use
10010 lookup_lvalue_reference_type() instead of lookup_reference_type().
10011 * guile/scm-value.c (gdbscm_value_dynamic_type): Likewise.
10012 * parse.c (follow_types): Likewise.
10013 * python/py-type.c (typy_reference, typy_lookup_type): Likewise.
10014 * python/py-value.c (valpy_get_dynamic_type, valpy_getitem):
10015 Likewise.
10016 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
10017 (gdbpy_invoke_xmethod): Likewise.
10018 * stabsread.c: Provide extra argument to make_reference_type()
10019 call.
10020 * valops.c (value_ref, value_rtti_indirect_type): Use
10021 lookup_lvalue_reference_type() instead of lookup_reference_type().
10022
f9aeb8d4
AV
100232017-03-20 Artemiy Volkov <artemiyv@acm.org>
10024
10025 PR gdb/14441
10026 * gdbtypes.h (enum type_code) <TYPE_CODE_RVALUE_REF>: New constant.
10027 (TYPE_IS_REFERENCE): New macro.
10028 (struct type): Add rvalue_reference_type field.
10029 (TYPE_RVALUE_REFERENCE_TYPE): New macro.
10030
51457a05
MAL
100312017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
10032
10033 * NEWS: Add an entry about new '-file-list-shared-libraries' command.
10034 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries):
10035 New function definition.
10036 * mi/mi-cmds.c (mi_cmds): Add -file-list-shared-libraries command.
10037 * mi/mi-cmds.h (mi_cmd_file_list_shared_libraries):
10038 New function declaration.
10039 * mi/mi-interp.c (mi_output_solib_attribs): New Function.
10040 * mi/mi-interp.h: New file.
10041 * solib.c (info_sharedlibrary_command): Replace for loop with
10042 ALL_SO_LIBS macro
10043 * solib.h (update_solib_list): New function declaration.
10044 (so_list_head): Move macro.
10045 * solist.h (ALL_SO_LIBS): New macro.
10046
e696b3ad
MAL
100472017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
10048
10049 * infcmd.c (post_create_inferior): Remove unused argument in
10050 call to solib_add.
10051 * remote.c (remote_start_remote): Likewise.
10052 * solib-frv.c (frv_fetch_objfile_link_map): Likewise.
10053 * solib-svr4.c: (svr4_fetch_objfile_link_map): Likewise.
10054 (enable_break): Likewise.
10055 * solib.c (update_solib_list): Remove unused target argument
10056 and its documentation.
10057 (solib_add): Remove unused target argument. Remove unused
10058 argument in call to update_solib_list.
10059 (info_sharedlibrary_command): Remove unused argument in call
10060 to update_solib_list.
10061 (sharedlibrary_command): Remove unused argument in call to
10062 solib_add.
10063 (handle_solib_event): Likewise.
10064 (reload_shared_libraries): Likewise.
10065 * solib.h (solib_add): Remove unused target argument.
10066
dcb84eda
AA
100672017-03-20 Andreas Arnez <arnez@linux.vnet.ibm.com>
10068
10069 * s390-linux-tdep.c (is_rsi, is_rie): Remove functions.
10070 (s390_displaced_step_fixup): Cover relative branches with the
10071 default fixup handling. This fixes lack of support for some
10072 relative branch instructions.
10073
d9cb6cdc
SM
100742017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
10075
10076 * i386-gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Use
10077 ptid from regcache.
10078
1afaf9f4
SM
100792017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
10080
10081 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers,
10082 i386_darwin_store_inferior_registers): Use ptid from regcache.
10083
aac12e24
SM
100842017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
10085
10086 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers,
10087 i386bsd_store_inferior_registers): Use ptid from regcache.
10088
bbe1eef1
SM
100892017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
10090
10091 * hppa-obsd-nat.c (hppaobsd_fetch_registers,
10092 hppaobsd_store_registers): Use ptid from regcache.
10093
10799020
SM
100942017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
10095
10096 * hppa-nbsd-nat.c (hppanbsd_fetch_registers,
10097 hppanbsd_store_registers): Use ptid from regcache.
10098
00204cf7
SM
100992017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
10100
10101 * hppa-linux-nat.c (fetch_register, store_register): Use ptid
10102 from regcache. Use get_ptrace_pid.
10103
11a33714
SM
101042017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
10105
10106 * corelow.c (get_core_register_section): Use ptid from regcache,
10107 update doc.
10108
317cd492
SM
101092017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
10110
10111 * bsd-uthread.c (bsd_uthread_fetch_registers,
10112 bsd_uthread_store_registers): Use ptid from regcache, set and
10113 restore inferior_ptid.
10114
9ac8a7c2
SM
101152017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
10116
10117 * arm-nbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
10118 fetch_fp_regs, store_register, store_regs, store_fp_register,
10119 store_fp_regs): Use ptid from regcache.
10120
4ac4bb6a
SM
101212017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
10122
10123 * arm-linux-nat.c (fetch_fpregs, store_fpregs, fetch_regs,
10124 store_regs, fetch_wmmx_regs, store_wmmx_regs, fetch_vfp_regs,
10125 store_vfp_regs): Use ptid from regcache.
10126
9bcbdca8
PA
101272017-03-17 Pedro Alves <palves@redhat.com>
10128
10129 PR remote/21188
10130 * ser-base.c (ser_base_wait_for): Add comment.
10131 (do_ser_base_readchar): Improve comment based on the ser-unix.c's
10132 version.
10133 * ser-unix.c (hardwire_raw): Remove reference to
10134 scb->current_timeout.
10135 (wait_for, do_hardwire_readchar, hardwire_readchar): Delete.
10136 (hardwire_ops): Install ser_base_readchar instead of
10137 hardwire_readchar.
10138 * serial.h (struct serial) <current_timeout, timeout_remaining>:
10139 Remove fields.
10140
7503099f
JG
101412017-03-17 Jonah Graham <jonah@kichwacoders.com>
10142
10143 PR gdb/19637
10144 * python/lib/gdb/printer/bound_registers.py: Add support for
10145 Python 3.
10146
7942e96e
AA
101472017-03-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
10148
10149 * dwarf2loc.c (indirect_synthetic_pointer): Get data type of
10150 pointed-to DIE and pass it to dwarf2_evaluate_loc_desc_full.
10151 (dwarf2_evaluate_loc_desc_full): New parameter subobj_type; rename
10152 byte_offset to subobj_byte_offset. Fix the handling of
10153 DWARF_VALUE_STACK on big-endian targets when coming via an
10154 implicit pointer.
10155 (dwarf2_evaluate_loc_desc): Adjust call to
10156 dwarf2_evaluate_loc_desc_full.
10157 * dwarf2loc.h (dwarf2_fetch_die_type_sect_off): New declaration.
10158 * dwarf2read.c (dwarf2_fetch_die_type_sect_off): New function.
10159
ba14f379
YQ
101602017-03-16 Yao Qi <yao.qi@linaro.org>
10161
10162 * arm-tdep.c (thumb_record_misc): Decode CBNZ, CBZ, REV16,
10163 and REVSH instructions.
10164
b121eeb9
YQ
101652017-03-16 Yao Qi <yao.qi@linaro.org>
10166
10167 * arm-tdep.c [GDB_SELF_TEST]: include "selftests.h".
10168 (arm_record_test): Declare.
10169 (_initialize_arm_tdep) [GDB_SELF_TEST]: call register_self_test.
10170 (thumb_record_ld_st_reg_offset): Rewrite the opcode matching to
10171 align with the manual.
10172 (thumb_record_misc): Adjust the code order to align with the
10173 manual.
10174 (thumb2_record_decode_insn_handler): Fix instruction matching.
10175 (instruction_reader_thumb): New class.
10176 (arm_record_test): New function.
10177
728a7913
YQ
101782017-03-16 Yao Qi <yao.qi@linaro.org>
10179
10180 * arm-tdep.c (abstract_memory_reader): New class.
10181 (instruction_reader): New class.
10182 (extract_arm_insn): Add argument 'reader'. Callers updated.
10183 (decode_insn): Likewise.
10184
34b43320
DE
101852017-03-16 Doug Evans <dje@google.com>
10186
a7c0469f
DE
10187 * guile/scm-lazy-string.c (lazy_string_smob): Clarify use of LENGTH
10188 member. Change type of TYPE member to SCM. All uses updated.
10189 (lsscm_make_lazy_string_smob): Add assert.
10190 (lsscm_make_lazy_string): Flag bad length values.
10191 (lsscm_elt_type): New function.
10192 (gdbscm_lazy_string_to_value): Rewrite to use
10193 lsscm_safe_lazy_string_to_value.
10194 (lsscm_safe_lazy_string_to_value): Fix handling of TYPE_CODE_PTR.
10195 * guile/scm-value.c (gdbscm_value_to_lazy_string): Flag bad length
10196 values. Fix TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle typedefs
10197 in incoming type.
10198 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
10199 * guile/scm-type.c (tyscm_scm_to_type): New function.
10200
102012017-03-15 Doug Evans <dje@google.com>
10202
34b43320
DE
10203 PR python/17728, python/18439, python/18779
10204 * python/py-lazy-string.c (lazy_string_object): Clarify use of LENGTH
10205 member. Change type of TYPE member to PyObject *. All uses updated.
10206 (stpy_convert_to_value): Fix handling of TYPE_CODE_PTR.
10207 (gdbpy_create_lazy_string_object): Flag bad length values.
10208 Handle TYPE_CODE_ARRAY with possibly different user-provided length.
10209 Handle typedefs in incoming type.
10210 (stpy_lazy_string_elt_type): New function.
10211 (gdbpy_extract_lazy_string): Call it.
10212 * python/py-value.c (valpy_lazy_string): Flag bad length values.
10213 Fix handling of TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle
10214 typedefs in incoming type.
10215
a3a5fecc
DE
102162017-03-16 Doug Evans <dje@google.com>
10217
10218 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
10219 * guile/scm-type.c (tyscm_scm_to_type): New function.
10220
28f1c605
JW
102212017-03-16 Jiong Wang <jiong.wang@arm.com>
10222
10223 * inf-ptrace.c (inf_ptrace_peek_poke): Change the type to
10224 "ULONGEST" for "skip".
10225
87c336f6
AA
102262017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
10227
10228 PR gdb/21220
10229 * inf-ptrace.c (inf_ptrace_xfer_partial): In "case
10230 TARGET_OBJECT_MEMORY", extract the logic for ptrace peek/poke...
10231 (inf_ptrace_peek_poke): ...here. New function. Now also loop
10232 over ptrace peek/poke until end of buffer or error.
10233
cf81cf60
SM
102342017-03-14 Simon Marchi <simon.marchi@ericsson.com>
10235
10236 * parse.c (length_of_subexp): Make static.
10237 * parser-defs.h (length_of_subexp): Remove.
10238
a379284a
AA
102392017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
10240
10241 * linux-nat.c (linux_proc_xfer_partial): Handle write operations
10242 as well.
10243
8a6200ba
PA
102442017-03-14 Pedro Alves <palves@redhat.com>
10245
10246 * cp-name-parser.y (cp_demangled_name_to_comp): Update comment.
10247 (main): Use std::unique_ptr. Remove calls to
10248 cp_demangled_name_parse_free.
10249
f79ec206
SM
102502017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
10251
10252 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers,
10253 alphabsd_store_inferior_registers): Use regcache->ptid instead
10254 of inferior_ptid.
10255
edb5fb00
SM
102562017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
10257
10258 * aix-thread.c (aix_thread_fetch_registers,
10259 aix_thread_store_registers): Use regcache->ptid instead of
10260 inferior_ptid.
10261
55119686
SM
102622017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
10263
10264 * aarch64-linux-nat.c (fetch_gregs_from_thread,
10265 store_gregs_to_thread, fetch_fpregs_from_thread,
10266 store_fpregs_to_thread): Use regcache->ptid instead of
10267 inferior_ptid.
10268
6a06fbb7
SM
102692017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
10270
10271 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers,
10272 amd64_linux_fetch_inferior_registers): Use regcache->ptid
10273 instead of inferior_ptid.
10274
c6386875
SM
102752017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
10276
10277 * target.c (target_fetch_registers, target_store_registers): Add
10278 assert.
10279
ddaaf0fb
SM
102802017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
10281
10282 * regcache.h (regcache_get_ptid): New function.
10283 * regcache.c (regcache_get_ptid): New function.
10284
b9da89d1 102852017-03-13 Mark Wielaard <mark@klomp.org>
10286
10287 * cp-name-parser.y (make_empty): Initialize d_printing to zero.
10288
5f4d1085
KS
102892017-03-10 Keith Seitz <keiths@redhat.com>
10290
10291 PR c++/8218
10292 * c-typeprint.c (cp_type_print_method_args): Skip artificial arguments.
10293
c65d6b55
PA
102942017-03-08 Pedro Alves <palves@redhat.com>
10295
10296 PR gdb/18360
10297 * infrun.c (start_step_over, do_target_resume, resume)
10298 (restart_threads): Assert we're not resuming a thread that is
10299 meant to be stopped.
10300 (infrun_thread_stop_requested_callback): Delete.
10301 (infrun_thread_stop_requested): If the thread is internally
10302 stopped, queue a pending stop event and clear the thread's
10303 inline-frame state.
10304 (handle_stop_requested): New function.
10305 (handle_syscall_event, handle_inferior_event_1): Use
10306 handle_stop_requested.
10307 (handle_stop_requested): New function.
10308 (handle_signal_stop): Set the thread's stop_signal here instead of
10309 at caller.
10310 (finish_step_over): Clear step over info unconditionally.
10311 (handle_signal_stop): If the user had interrupted the event
10312 thread, consider the stop a random signal.
10313 (handle_signal_stop) <signal arrived while stepping over
10314 breakpoint>: Don't restart threads here.
10315 (stop_waiting): Don't clear step-over info here.
10316
15c22686
PA
103172017-03-08 Pedro Alves <palves@redhat.com>
10318
10319 PR 21206
10320 * common/gdb_unlinker.h (unlinker::unlinker): Attribute nonnull
10321 goes to argument 2, not 1.
10322
6e5d74e7
PA
103232017-03-08 Pedro Alves <palves@redhat.com>
10324
10325 PR cli/21218
10326 * top.c (gdb_readline_wrapper): Avoid passing NULL to
10327 display_gdb_prompt.
10328 (command_line_input): Add comment.
10329
9753a2f6
PA
103302017-03-08 Pedro Alves <palves@redhat.com>
10331
10332 PR tui/21216
10333 * tui/tui-file.c (tui_file::write): New.
10334 * tui/tui-file.h (tui_file): Override "write".
10335 * tui/tui-io.c (do_tui_putc, update_start_line): New functions,
10336 factored out from ...
10337 (tui_puts): ... here.
10338 (tui_putc): Use them.
10339 (tui_write): New function.
10340 * tui/tui-io.h (tui_write): Declare.
10341
1672e0d9
SDJ
103422017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
10343
10344 * Makefile.in (SFILES): Replace "environ.c" with
10345 "common/environ.c".
10346 (HFILES_NO_SRCDIR): Likewise, for "environ.h".
10347 * environ.c: Include "common-defs.h" instead of "defs.h. Moved
10348 to...
10349 * common/environ.c: ... here.
10350 * environ.h: Moved to...
10351 * common/environ.h: ... here.
10352
f7bb4e3a
PB
103532017-03-07 Peter Bergner <bergner@vnet.ibm.com>
10354
10355 * gdbarch.sh (pstring_ptr): New static function.
10356 (gdbarch_disassembler_options): Use it.
10357 (gdbarch_verify_disassembler_options): Print valid_disassembler_options,
10358 not valid_disassembler_option->name.
10359 * gdbarch.c: Regenerate.
10360
e45ced6c
PB
103612017-03-07 Peter Bergner <bergner@vnet.ibm.com>
10362
10363 * config/powerpc/ppc64-linux.mh (MH_CFLAGS): Delete.
10364
5f6fd321
PA
103652017-03-07 Pedro Alves <palves@redhat.com>
10366
10367 * tui/tui-regs.c (tui_restore_gdbout): Don't delete gdb_stdout.
10368
6dbb839a 103692017-03-07 Walfred Tedeschi <walfred.tedeschi@intel.com>
4a612d6f
WT
10370
10371 * i387-tdep.h (i387_reset_bnd_regs): Add function definition.
10372 * i387-tdep.c (i387_reset_bnd_regs): Add function implementation.
10373 * i386-tdep.c (i386_push_dummy_call): Call i387_reset_bnd_regs.
6dbb839a 10374 * amd64-tdep.c (amd64_push_dummy_call): Call i387_reset_bnd_regs.
4a612d6f 10375
d274ecf4
SM
103762017-03-06 Simon Marchi <simon.marchi@ericsson.com>
10377
10378 * xtensa-linux-nat.c (fetch_gregs): Remove const.
10379
df97be55
SM
103802017-03-03 Simon Marchi <simon.marchi@ericsson.com>
10381
10382 * remote.c (remote_add_target_side_commands): Use range-based
10383 for loop.
10384
7d45f3df
YQ
103852017-03-03 Yao Qi <yao.qi@linaro.org>
10386
10387 PR gdb/21165
10388 * ada-valprint.c (ada_val_print_ref): Call value_fetch_lazy if
10389 value is lazy.
10390 * valprint.c (common_val_print): Likewise.
10391
65b48a81
PB
103922017-02-28 Peter Bergner <bergner@vnet.ibm.com>
10393
10394 * NEWS: Mention new set/show disassembler-options commands.
10395 * doc/gdb.texinfo: Document new set/show disassembler-options commands.
10396 * disasm.c: Include "arch-utils.h", "gdbcmd.h" and "safe-ctype.h".
10397 (prospective_options): New static variable.
10398 (gdb_disassembler::gdb_disassembler): Initialize
10399 m_di.disassembler_options.
10400 (gdb_buffered_insn_length_init_dis): Initilize di->disassembler_options.
10401 (get_disassembler_options): New function.
10402 (set_disassembler_options): Likewise.
10403 (set_disassembler_options_sfunc): Likewise.
10404 (show_disassembler_options_sfunc): Likewise.
10405 (disassembler_options_completer): Likewise.
10406 (_initialize_disasm): Likewise.
10407 * disasm.h (get_disassembler_options): New prototype.
10408 (set_disassembler_options): Likewise.
10409 * gdbarch.sh (gdbarch_disassembler_options): New variable.
10410 (gdbarch_verify_disassembler_options): Likewise.
10411 * gdbarch.c: Regenerate.
10412 * gdbarch.h: Likewise.
10413 * arm-tdep.c (num_disassembly_options): Delete.
10414 (set_disassembly_style): Likewise.
10415 (arm_disassembler_options): New static variable.
10416 (set_disassembly_style_sfunc): Convert short style name into long
10417 option name. Call set_disassembler_options.
10418 (show_disassembly_style_sfunc): New function.
10419 (arm_gdbarch_init): Call set_gdbarch_disassembler_options and
10420 set_gdbarch_verify_disassembler_options.
10421 (_initialize_arm_tdep): Delete regnames variable and update callers.
10422 (arm_disassembler_options): Initialize.
10423 (disasm_options): New variable.
10424 (num_disassembly_options): Rename from this...
10425 (num_disassembly_styles): ...to this. Compute by scanning through
10426 disasm_options.
10427 (valid_disassembly_styles): Initialize using disasm_options.
10428 Remove calls to parse_arm_disassembler_option, get_arm_regnames and
10429 set_arm_regname_option.
10430 Pass show_disassembly_style_sfunc to the "disassembler" setshow command.
10431 * rs6000-tdep.c (powerpc_disassembler_options): New static variable.
10432 (rs6000_gdbarch_init): Call set_gdbarch_disassembler_options and
10433 set_gdbarch_verify_disassembler_options.
10434 * s390-tdep.c (s390_disassembler_options): New static variable.
10435 (s390_gdbarch_init):all set_gdbarch_disassembler_options and
10436 set_gdbarch_verify_disassembler_options.
10437
d538e36d
SM
104382017-02-27 Simon Marchi <simon.marchi@ericsson.com>
10439
10440 * remote.c (remote_add_target_side_condition): Remove "struct"
10441 keyword from range-based for loop.
10442
83621223
SM
104432017-02-27 Simon Marchi <simon.marchi@ericsson.com>
10444
10445 * remote.c (remote_add_target_side_condition): Use range-based
10446 for loop. Update comment.
10447
2123df0e
YQ
104482017-02-27 Yao Qi <yao.qi@linaro.org>
10449
10450 * f-typeprint.c (f_print_type): Check "varstring" is empty first.
10451
8e368124
AH
104522017-02-26 Alan Hayward <alan.hayward@arm.com>
10453
10454 * regcache.c (regcache_raw_update): New function.
10455 (regcache_raw_read): Move code to regcache_raw_update.
10456 * regcache.h (regcache_raw_update): New declaration.
10457 * remote.c (remote_prepare_to_store): Call regcache_raw_update.
10458
a49dd8dd
JK
104592017-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10460
10461 * dwarf2read.c (create_debug_type_hash_table): Initialize
10462 header.signature and header.type_offset_in_tu.
10463
34e4bae9
PA
104642017-02-24 Pedro Alves <palves@redhat.com>
10465
10466 * symtab.c (make_file_symbol_completion_list_1): Use
10467 add_symtab_completions.
10468
b0e4b369
AH
104692017-02-24 Alan Hayward <alan.hayward@arm.com>
10470
10471 * stack.c (frame_info): Use frame_unwind_register_value to avoid buf.
10472
975c21ab
AH
104732017-02-24 Alan Hayward <alan.hayward@arm.com>
10474
10475 * i386-tdep.c (i386_pseudo_register_read_into_value): Use
10476 I386_MAX_REGISTER_SIZE.
10477 (i386_pseudo_register_write): Likewise.
10478 (i386_process_record): Likewise.
10479 * i387-tdep.c (i387_supply_xsave): Likewise.
10480 * m68k-linux-nat.c (fetch_register): Use M68K_MAX_REGISTER_SIZE.
10481 (store_register): Likewise.
10482
14bc53a8
PA
104832017-02-23 Pedro Alves <palves@redhat.com>
10484
10485 * ada-lang.c: Include "common/function-view.h".
10486 (ada_iterate_over_symbols): Adjust to use function_view as
10487 callback type.
10488 (struct add_partial_datum, ada_complete_symbol_matcher): Delete.
10489 (ada_make_symbol_completion_list): Use a lambda.
10490 (ada_exc_search_name_matches): Delete.
10491 (name_matches_regex): New.
10492 (ada_add_global_exceptions): Use a lambda and name_matches_regex.
10493 * compile/compile-c-support.c: Include "common/function-view.h".
10494 (print_one_macro): Change prototype to accept a ui_file pointer.
10495 (write_macro_definitions): Use a lambda.
10496 * dwarf2read.c: Include "common/function-view.h".
10497 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
10498 (dw2_expand_symtabs_matching): Adjust to use function_view as
10499 callback type.
10500 * language.h: Include "common/function-view.h".
10501 (struct language_defn) <la_iterate_over_symbols>: Adjust to use
10502 function_view as callback type.
10503 (LA_ITERATE_OVER_SYMBOLS): Remove DATA parameter.
10504 * linespec.c: Include "common/function-view.h".
10505 (collect_info::add_symbol): New method.
10506 (struct symbol_and_data_callback, iterate_inline_only, struct
10507 symbol_matcher_data, iterate_name_matcher): Delete.
10508 (iterate_over_all_matching_symtabs): Adjust to use function_view
10509 as callback type and lambdas.
10510 (iterate_over_file_blocks): Adjust to use function_view as
10511 callback type.
10512 (decode_compound_collector): Now a class with private fields.
10513 (decode_compound_collector::release_symbols): New method.
10514 (collect_one_symbol): Rename to...
10515 (decode_compound_collector::operator()): ... this and adjust.
10516 (lookup_prefix_sym): decode_compound_collector construction bits
10517 move to decode_compound_collector ctor. Pass the
10518 decode_compound_collector object directly as callback. Remove
10519 cleanups and use decode_compound_collector::release_symbols
10520 instead.
10521 (symtab_collector): Now a class with private fields.
10522 (symtab_collector::release_symtabs): New method.
10523 (add_symtabs_to_list): Rename to...
10524 (symtab_collector::operator()): ... this and adjust.
10525 (collect_symtabs_from_filename): symtab_collector construction
10526 bits move to symtab_collector ctor. Pass the symtab_collector
10527 object directly as callback. Remove cleanups and use
10528 symtab_collector::release_symtabs instead.
10529 (collect_symbols): Delete.
10530 (add_matching_symbols_to_info): Use lambdas.
10531 * macrocmd.c (print_macro_callback): Delete.
10532 (info_macro_command): Use a lambda.
10533 (info_macros_command): Pass print_macro_definition as callable
10534 directly.
10535 (print_one_macro): Remove 'ignore' parameter.
10536 (macro_list_command): Adjust.
10537 * macrotab.c (macro_for_each_data::fn): Now a function_view.
10538 (macro_for_each_data::user_data): Delete field.
10539 (foreach_macro): Adjust to call the function_view.
10540 (macro_for_each): Adjust to use function_view as callback type.
10541 (foreach_macro_in_scope): Adjust to call the function_view.
10542 (macro_for_each_in_scope): Adjust to use function_view as callback
10543 type.
10544 * macrotab.h: Include "common/function-view.h".
10545 (macro_callback_fn): Declare a prototype instead of a pointer.
10546 Remove "user_data" parameter.
10547 (macro_for_each, macro_for_each_in_scope): Adjust to use
10548 function_view as callback type.
10549 * psymtab.c (partial_map_expand_apply)
10550 (psym_map_symtabs_matching_filename, recursively_search_psymtabs):
10551 Adjust to use function_view as callback type and to return bool.
10552 (psym_expand_symtabs_matching): Adjust to use function_view as
10553 callback types.
10554 * symfile-debug.c (debug_qf_map_symtabs_matching_filename): Adjust
10555 to use function_view as callback type and to return bool.
10556 (debug_qf_expand_symtabs_matching): Adjust to use function_view as
10557 callback types.
10558 * symfile.c (expand_symtabs_matching): Adjust to use function_view
10559 as callback types.
10560 * symfile.h: Include "common/function-view.h".
10561 (expand_symtabs_file_matcher_ftype)
10562 (expand_symtabs_symbol_matcher_ftype)
10563 (expand_symtabs_exp_notify_ftype): Remove "data" parameter and
10564 return bool.
10565 (quick_symbol_functions::map_symtabs_matching_filename)
10566 (quick_symbol_functions::expand_symtabs_matching): Adjust to use
10567 function_view as callback type and return bool.
10568 (expand_symtabs_matching): Adjust to use function_view as callback
10569 type.
10570 (maintenance_expand_name_matcher)
10571 (maintenance_expand_file_matcher): Delete.
10572 (maintenance_expand_symtabs): Use lambdas.
10573 * symtab.c (iterate_over_some_symtabs): Adjust to use
10574 function_view as callback types and return bool.
10575 (iterate_over_symtabs): Likewise. Use unique_xmalloc_ptr instead
10576 of a cleanup.
10577 (lookup_symtab_callback): Delete.
10578 (lookup_symtab): Use a lambda.
10579 (iterate_over_symbols): Adjust to use function_view as callback
10580 type.
10581 (struct search_symbols_data, search_symbols_file_matches)
10582 (search_symbols_name_matches): Delete.
10583 (search_symbols): Use a pair of lambdas.
10584 (struct add_name_data, add_macro_name, symbol_completion_matcher)
10585 (symtab_expansion_callback): Delete.
10586 (default_make_symbol_completion_list_break_on_1): Use lambdas.
10587 * symtab.h: Include "common/function-view.h".
10588 (iterate_over_some_symtabs): Adjust to use function_view as
10589 callback type and return bool.
10590 (iterate_over_symtabs): Adjust to use function_view as callback
10591 type.
10592 (symbol_found_callback_ftype): Remove 'data' parameter and return
10593 bool.
10594 (iterate_over_symbols): Adjust to use function_view as callback
10595 type.
10596
07e253aa
PA
105972017-02-23 Pedro Alves <palves@redhat.com>
10598
10599 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS): New.
10600 (%.o) <unittests/%.c>: New pattern.
10601 * configure.ac ($development): Add $(SUBDIR_UNITTESTS_OBS) to
10602 CONFIG_OBS, and $(SUBDIR_UNITTESTS_SRCS) to CONFIG_SRCS.
10603 * common/function-view.h: New file.
10604 * unittests/function-view-selftests.c: New file.
10605 * configure: Regenerate.
10606
8eaf5320
SM
106072017-02-23 Simon Marchi <simon.marchi@ericsson.com>
10608
10609 * bsd-uthread.c (bsd_uthread_thread_alive): Use ptid instead of
10610 inferior_ptid.
10611 * go32-nat.c (go32_thread_alive): Likewise.
10612
38768751
YQ
106132017-02-23 Yao Qi <yao.qi@linaro.org>
10614
10615 * varobj-iter.h (varobj_iter_delete): Call xfree instead of
10616 delete.
10617
0a8beaba
YQ
106182017-02-23 Yao Qi <yao.qi@linaro.org>
10619
10620 * varobj.c (varobj_clear_saved_item): Use delete instead of
10621 xfree.
10622 (update_dynamic_varobj_children): Likewise.
10623
58fdfd2c
JK
106242017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10625
10626 * dwarf2read.c (dwarf2_record_block_ranges): Add forgotten BASEADDR.
10627
1b90b139
SM
106282017-02-21 Simon Marchi <simon.marchi@ericsson.com>
10629
10630 * common/enum-flags.h (enum_flags::enum_flags): Initialize
10631 m_enum_value to 0 in default constructor.
10632
2039d74e
EBM
106332017-02-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
10634
10635 * rs6000-tdep.c (LOAD_AND_RESERVE_MASK): Rename from LWARX_MASK.
10636 (STORE_CONDITIONAL_MASK): Rename from STWCX_MASK.
10637 (LBARX_INSTRUCTION, LHARX_INSTRUCTION, LQARX_INSTRUCTION,
10638 STBCX_INSTRUCTION, STHCX_INSTRUCTION, STQCX_INSTRUCTION): New defines.
10639 (IS_LOAD_AND_RESERVE_INSN, IS_STORE_CONDITIONAL_INSN): New macros.
10640 (ppc_displaced_step_copy_insn): Use IS_LOAD_AND_RESERVE_INSN.
10641 (ppc_deal_with_atomic_sequence): Use IS_LOAD_AND_RESERVE_INSN and
10642 IS_STORE_CONDITIONAL_INSN.
10643
7814882a
JK
106442017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10645
10646 * dwarf2_rnglists_process: Initialize range_beginning and range_end.
10647
0ae60b63
JK
106482017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10649
10650 * NEWS (Changes since GDB 7.12): Add DWARF-5.
10651
0224619f
JK
106522017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10653
10654 * dwarf2read.c (skip_one_die, read_attribute_value)
10655 (dwarf2_const_value_attr, dump_die_shallow)
10656 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
10657 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_data16.
10658
0af92d60
JK
106592017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10660
10661 * dwarf2read.c (read_file_scope): Rename DW_MACRO_GNU_*.
10662 (dwarf_parse_macro_header): Accept DWARF version 5.
10663 (dwarf_decode_macro_bytes, dwarf_decode_macros): Rename DW_MACRO_GNU_*.
10664
216f72a1
JK
106652017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10666
10667 * block.c (call_site_for_pc): Rename DW_OP_GNU_*, DW_TAG_GNU_* and
10668 DW_AT_GNU_*.
10669 * common/common-exceptions.h (enum errors): Likewise.
10670 * dwarf2-frame.c (class dwarf_expr_executor): Likewise.
10671 * dwarf2expr.c (dwarf_block_to_dwarf_reg)
10672 (dwarf_expr_context::execute_stack_op): Likewise.
10673 * dwarf2expr.h (struct dwarf_expr_context, struct dwarf_expr_piece):
10674 Likewise.
10675 * dwarf2loc.c (dwarf_evaluate_loc_desc::get_base_type)
10676 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
10677 (show_entry_values_debug, call_site_to_target_addr)
10678 (func_addr_to_tail_call_list, func_verify_no_selftailcall)
10679 (dwarf_expr_reg_to_entry_parameter, dwarf_entry_parameter_to_value)
10680 (entry_data_value_free_closure, value_of_dwarf_reg_entry)
10681 (value_of_dwarf_block_entry, indirect_pieced_value)
10682 (symbol_needs_eval_context::push_dwarf_reg_entry_value):
10683 (disassemble_dwarf_expression): Likewise.
10684 * dwarf2read.c (process_die, inherit_abstract_dies)
10685 (read_call_site_scope): Likewise.
10686 * gdbtypes.h (struct func_type, struct call_site_parameter)
10687 (struct call_site): Likewise.
10688 * stack.c (read_frame_arg): Likewise.
10689 * std-operator.def (OP_VAR_ENTRY_VALUE): Likewise.
10690
43988095
JK
106912017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10692
10693 * defs.h (read_unsigned_leb128): New declaration.
10694 * dwarf2loc.c (decode_debug_loclists_addresses): New function.
10695 (decode_debug_loc_dwo_addresses): Update DEBUG_LOC_* to DW_LLE_*.
10696 (dwarf2_find_location_expression): Call also
10697 decode_debug_loclists_addresses. Handle DWARF-5 ULEB128 length.
10698 * dwarf2loc.h (dwarf2_version): New declaration.
10699 * dwarf2read.c (struct dwarf2_per_objfile): Add loclists, line_str,
10700 rnglists.
10701 (dwarf2_elf_names): Add .debug_loclists, .debug_line_str,
10702 .debug_rnglists.
10703 (struct dwop_section_names): Add loclists_dwo.
10704 (dwop_section_names): Add .debug_loclists.dwo.
10705 (struct comp_unit_head): Add unit_type, signature, type_offset_in_tu.
10706 (struct dwarf2_per_cu_data): Add dwarf_version.
10707 (struct dwo_sections): Add loclists.
10708 (struct attr_abbrev): Add implicit_const.
10709 (read_indirect_line_string): New declaration.
10710 (read_unsigned_leb128): Delete declaration.
10711 (rcuh_kind): New definition.
10712 (read_and_check_comp_unit_head): Change parameter
10713 is_debug_types_section to section_kind.
10714 (dwarf2_locate_sections): Handle loclists, line_str and rnglists.
10715 (read_comp_unit_head): Change parameter abfd to section, add parameter
10716 section_kind. Handle DWARF-5.
10717 (error_check_comp_unit_head): Accept also DWARF version 5.
10718 (read_and_check_comp_unit_head): Change parameter
10719 is_debug_types_section to section_kind.
10720 (read_and_check_type_unit_head): Delete function.
10721 (read_abbrev_offset): Handle DWARF-5.
10722 (create_debug_type_hash_table): Add parameter section_kind. Process
10723 only DW_UT_type. Use signature and type_offset_in_tu from struct
10724 comp_unit_head.
10725 (create_debug_types_hash_table): Update create_debug_type_hash_table
10726 caller.
10727 (create_all_type_units): Call create_debug_type_hash_table.
10728 (read_cutu_die_from_dwo, init_cutu_and_read_dies): Change
10729 read_and_check_type_unit_head caller to read_and_check_comp_unit_head
10730 caller.
10731 (skip_one_die): Handle DW_FORM_implicit_const.
10732 (dwarf2_rnglists_process): New function.
10733 (dwarf2_ranges_process): Call dwarf2_rnglists_process for DWARF-5.
10734 (abbrev_table_read_table): Handle DW_FORM_implicit_const.
10735 (read_attribute_value): Handle DW_FORM_implicit_const,
10736 DW_FORM_line_strp.
10737 (read_attribute): Handle DW_FORM_implicit_const.
10738 (read_indirect_string_at_offset_from): New function from
10739 read_indirect_string_at_offset.
10740 (read_indirect_string_at_offset): Call
10741 read_indirect_string_at_offset_from.
10742 (read_indirect_line_string_at_offset): New function.
10743 (read_indirect_string): New function comment.
10744 (read_indirect_line_string): New function.
10745 (read_unsigned_leb128): Make it global.
10746 (dwarf2_string_attr): Handle DWARF-5.
10747 (add_include_dir_stub, read_formatted_entries): New functions.
10748 (dwarf_decode_line_header, dump_die_shallow, cu_debug_loc_section):
10749 Handle DWARF-5.
10750 (per_cu_header_read_in): Update read_comp_unit_head caller.
10751 (dwarf2_version): New function.
10752 * symfile.h (struct dwarf2_debug_sections): Add loclists, line_str and
10753 rnglists.
10754 * xcoffread.c (dwarf2_xcoff_names): Update struct dwarf2_debug_sections
10755 fields.
10756
22d2f3ab
JK
107572017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10758
10759 * dwarf2read.c (abbrev_table_read_table): Read the data only once.
10760
5f46c5a5
JK
107612017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10762
10763 * dwarf2read.c (dwarf2_ranges_process): New function from
10764 dwarf2_ranges_read.
10765 (dwarf2_ranges_read, dwarf2_record_block_ranges): Use
10766 dwarf2_ranges_process.
10767
78d4d2c5
JK
107682017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10769
10770 * dwarf2read.c (create_debug_type_hash_table): New function from
10771 create_debug_types_hash_table.
10772 (create_debug_types_hash_table): Call create_debug_type_hash_table.
10773 (create_all_type_units, open_and_init_dwo_file): Update
10774 create_debug_types_hash_table callers.
10775
1b076f25
SDJ
107762017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10777
10778 PR gdb/16188
10779 * fork-child.c (trace_start_error): Fix thinko. va_end should
10780 refer to 'ap', not 'args'.
10781
0db8980c
SDJ
107822017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10783 Pedro Alves <palves@redhat.com>
10784
10785 PR gdb/16188
10786 * darwin-nat.c (darwin_ptrace_me): Check if calls to system
10787 calls succeeded.
10788 * fork-child.c (trace_start_error): New function.
10789 (trace_start_error_with_name): Likewise.
10790 * gnu-nat.c (gnu_ptrace_me): Check if call to PTRACE succeeded.
10791 * inf-ptrace.c (inf_ptrace_me): Likewise.
10792 * inferior.h (trace_start_error): New prototype.
10793 (trace_start_error_with_name): Likewise.
10794
99e8a4f9
SDJ
107952017-02-15 Sergio Durigan Junior <sergiodj@redhat.com>
10796
10797 PR gdb/21164
10798 * psymtab.c (maintenance_print_psymbols): Verify if 'argv' is not
10799 NULL before using it.
10800 * symmisc.c (maintenance_print_symbols): Likewise.
10801 (maintenance_print_msymbols): Likewise.
10802
4e746bb6
TW
108032017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10804
10805 * NEWS: Add record Python bindings entry.
10806
108072017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10808
10809 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-record-btrace.o,
10810 py-record-full.o.
10811 (SUBDIR_PYTHON_SRCS): Add py-record-btrace.c, py-record-full.c.
10812 * python/py-record-btrace.c, python/py-record-btrace.h,
10813 python/py-record-full.c, python/py-record-full.h: New file.
10814 * python/py-record.c: Add include for py-record-btrace.h and
10815 py-record-full.h.
10816 (recpy_method, recpy_format, recpy_goto, recpy_replay_position,
10817 recpy_instruction_history, recpy_function_call_history, recpy_begin,
10818 recpy_end): Use functions from py-record-btrace.c and py-record-full.c.
10819 * python/python-internal.h (PyInt_FromSsize_t, PyInt_AsSsize_t):
10820 New definition.
10821 (gdbpy_initialize_btrace): New export.
10822 * python/python.c (_initialize_python): Add gdbpy_initialize_btrace.
10823
108242017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10825
10826 * Makefile.in (SUBDIR_PYTHON_OBS): Add python/py-record.o.
10827 (SUBDIR_PYTHON_SRCS): Add python/py-record.c.
10828 * python/py-record.c: New file.
10829 * python/python-internal.h (gdbpy_start_recording,
10830 gdbpy_current_recording, gdpy_stop_recording,
10831 gdbpy_initialize_record): New export.
10832 * python/python.c (_initialize_python): Add gdbpy_initialize_record.
10833 (python_GdbMethods): Add gdbpy_start_recording,
10834 gdbpy_current_recording and gdbpy_stop_recording.
10835
108362017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10837
10838 * record-btrace.c (record_btrace_record_method): New function.
10839 (init_record_btrace_ops): Initialize to_record_method.
10840 * record-full.c (record_full_record_method): New function.
10841 (init_record_full_ops, init_record_full_core_ops): Add
10842 record_full_record_method.
10843 * record.h (enum record_method): New enum.
10844 * target-debug.h (target_debug_print_enum_record_method: New define.
10845 * target-delegates.c: Regenerate.
10846 * target.c (target_record_method): New function.
10847 * target.h: Include record.h.
10848 (struct target_ops) <to_record_method>: New field.
10849 (target_record_method): New export.
10850
108512017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10852
10853 * record.h (record_start, record_stop): New export.
10854 * record.c (record_start, record_stop): New function.
10855
108562017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10857
10858 * btrace.c (btrace_fetch): Copy function call segments pointer
10859 into a vector.
10860 (btrace_clear): Clear the vector.
10861 (btrace_find_insn_by_number): Use binary search to find the correct
10862 function call segment.
10863 * btrace.h (brace_fun_p): New typedef.
10864 (struct btrace_thread_info) <functions>: New field.
10865
108662017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10867
10868 * record-btrace.c (btrace_ui_out_decode_error): Move most of it ...
10869 * btrace.c (btrace_decode_error): ... here. New function.
10870 * btrace.h (btrace_decode_error): New export.
10871
108722017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10873
10874 * btrace.c (ftrace_call_num_insn, btrace_insn_get_error): New function.
10875 (ftrace_new_function, btrace_insn_number, btrace_insn_cmp,
10876 btrace_find_insn_by_number): Remove special case for gaps.
10877 * btrace.h (btrace_insn_get_error): New export.
10878 (btrace_insn_number, btrace_find_insn_by_number): Adjust comment.
10879 * record-btrace.c (btrace_insn_history): Print number for gaps.
10880 (record_btrace_info, record_btrace_goto): Handle gaps.
10881
3f77c769
TT
108822017-02-14 Tom Tromey <tom@tromey.com>
10883
10884 PR python/13598:
10885 * python/python.c (gdbpy_before_prompt_hook): Emit before_prompt
10886 event.
10887 * python/py-evts.c (gdbpy_initialize_py_events): Add
10888 before_prompt registry.
10889 * python/py-events.h (events_object) <before_prompt>: New field.
10890
4c2c7ac6
MM
108912017-02-14 Markus Metzger <markus.t.metzger@intel.com>
10892
10893 * btrace.c (ftrace_new_switch): Preserve up link and flags.
10894
5cf30ebf
LM
108952017-02-13 Luis Machado <lgustavo@codesourcery.com>
10896
10897 * symfile (_initialize_symfile): Add usage text to the load command's
10898 help text.
10899
26a06916
SM
109002017-02-10 Simon Marchi <simon.marchi@ericsson.com>
10901
10902 * utils.c (defaulted_query): Don't query on secondary UIs.
10903
0b145e37
TT
109042017-02-10 Tom Tromey <tom@tromey.com>
10905
10906 * rust-lang.c (rust_get_disr_info): Remove unused variable.
10907
2d8365c4
TT
109082017-02-10 Tom Tromey <tom@tromey.com>
10909
10910 * python/py-value.c (valpy_richcompare_throw): Remove unnecessary
10911 "cleanup" local.
10912 * python/py-type.c (typy_legacy_template_argument): Remove
10913 unnecessary "cleanup" local.
10914
2bb8f231
TT
109152017-02-10 Tom Tromey <tom@tromey.com>
10916
10917 * python/python.c (do_start_initialization): New function, from
10918 _initialize_python.
10919 (_initialize_python): Call do_start_initialization.
10920 * python/py-linetable.c (ltpy_iternext): Use explicit returns, not
10921 goto.
10922
1bdfaf42
TT
109232017-02-10 Tom Tromey <tom@tromey.com>
10924
10925 * python/py-prettyprint.c (pretty_print_one_value): Use
10926 gdbpy_ref.
10927
88b6faea
TT
109282017-02-10 Tom Tromey <tom@tromey.com>
10929
10930 * python/py-cmd.c (cmdpy_destroyer): Use gdbpy_ref.
10931 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Use
10932 gdbpy_ref.
10933 * python/py-type.c (field_new): Use gdbpy_ref.
10934 * python/py-symtab.c (symtab_and_line_to_sal_object): Use
10935 gdbpy_ref.
10936 * python/py-progspace.c (pspy_new): Use gdbpy_ref.
10937 (py_free_pspace): Likewise.
10938 (pspace_to_pspace_object): Likewise.
10939 * python/py-objfile.c (objfpy_new): Use gdbpy_ref.
10940 (py_free_objfile): Likewise.
10941 (objfile_to_objfile_object): Likewise.
10942 * python/py-inferior.c (delete_thread_object): Use
10943 gdbpy_ref.
10944 (infpy_read_memory): Likewise.
10945 (py_free_inferior): Likewise.
10946 * python/py-evtregistry.c (create_eventregistry_object): Use
10947 gdbpy_ref.
10948 * python/py-event.c (create_event_object): Use gdbpy_ref.
10949
7780f186
TT
109502017-02-10 Tom Tromey <tom@tromey.com>
10951
10952 * python/py-ref.h (gdbpy_ref_policy): Now a template.
10953 (gdbpy_ref): Now a template; allow subclasses of PyObject to be
10954 used.
10955 * python/py-arch.c, python/py-bpevent.c, python/py-breakpoint.c,
10956 python/py-cmd.c, python/py-continueevent.c, python/py-event.c,
10957 python/py-exitedevent.c, python/py-finishbreakpoint.c,
10958 python/py-framefilter.c, python/py-function.c,
10959 python/py-inferior.c, python/py-infevents.c,
10960 python/py-linetable.c, python/py-newobjfileevent.c,
10961 python/py-param.c, python/py-prettyprint.c, python/py-ref.h,
10962 python/py-signalevent.c, python/py-stopevent.c,
10963 python/py-symbol.c, python/py-threadevent.c, python/py-type.c,
10964 python/py-unwind.c, python/py-utils.c, python/py-value.c,
10965 python/py-varobj.c, python/py-xmethods.c, python/python.c,
10966 varobj.c: Change gdbpy_ref to gdbpy_ref<>.
10967
d4b0bb18
TT
109682017-02-10 Tom Tromey <tom@tromey.com>
10969
10970 * ui-out.h (ui_out_emit_type): New class.
10971 (ui_out_emit_tuple, ui_out_emit_list): New typedefs.
10972 * python/py-framefilter.c (py_print_single_arg): Use gdb::optional
10973 and ui_out_emit_tuple.
10974 (enumerate_locals): Likewise.
10975 (py_mi_print_variables, py_print_locals, py_print_args): Use
10976 ui_out_emit_list.
10977 (py_print_frame): Use gdb::optional, ui_out_emit_tuple,
10978 ui_out_emit_list.
10979 * common/gdb_optional.h: New file.
10980
f67f945c
MG
109812017-02-10 Martin Galvan <martingalvan@sourceware.org>
10982
10983 * MAINTAINERS (Write After Approval): Update my e-mail address.
10984
18da0c51
MG
109852017-02-10 Martin Galvan <martingalvan@sourceware.org>
10986
10987 PR gdb/21122
10988 * breakpoint.c (_initialize_breakpoint): Update the help description
10989 of the 'commands' command to indicate that it takes a list argument.
10990
62c14536
SM
109912017-02-09 Simon Marchi <simon.marchi@ericsson.com>
10992
10993 * interps.c (current_interp_set_logging): Remove "return".
10994
ff6fa247
GB
109952017-02-09 Gary Benson <gbenson@redhat.com>
10996
10997 * symtab.c (add_symtab_completions): Prevent NULL pointer
10998 dereference.
10999
a474bd8e
PA
110002017-02-08 Pedro Alves <palves@redhat.com>
11001
11002 * interps.c (interp::interp): Remove reference to quiet_p.
11003 (interp_set): Make static. Remove dead "Switching to" output
11004 code.
11005 (interp_quiet_p, interp_set_quiet): Delete.
11006 (interpreter_exec_cmd): Don't set the interpreter quiet.
11007 * interps.h (interp_quiet_p): Make static.
11008 (class interp) <quiet_p>: Remove field
11009
3d7b173c
JG
110102017-02-08 Jerome Guitton <guitton@adacore.com>
11011
604c4576
JG
11012 * cli/cli-decode.c (find_command_name_length): Make it extern.
11013 * cli/cli-decode.h (find_command_name_length): Declare.
11014 * cli/cli-script.c (command_name_equals, line_first_arg):
11015 New functions.
11016 (process_next_line): Use cli-decode to parse command names.
11017 (build_command_line): Make args a constant pointer.
11018
110192017-02-08 Jerome Guitton <guitton@adacore.com>
6dbb839a 11020
3d7b173c
JG
11021 * cli-decode.c (lookup_cmd_1, lookup_cmd_composition):
11022 Remove case-insensitive search.
11023
1291063d
JM
110242017-02-07 Jose E. Marchesi <jose.marchesi@oracle.com>
11025
11026 * sparc-tdep.c (sparc32_gdbarch_init): Do not place a + operator
11027 at the end of the line. Avoids an ARI warning.
11028
20b477a7
LM
110292017-02-06 Luis Machado <lgustavo@codesourcery.com>
11030
11031 * NEWS: Mention support for record/replay of Intel 64 rdrand and
11032 rdseed instructions.
11033 i386-tdep.c (i386_process_record): Handle Intel 64 rdrand and rseed.
11034
3f7b46f2
IR
110352017-02-06 Ivo Raisr <ivo.raisr@oracle.com>
11036
11037 PR tdep/20936
11038 Provide and use sparc32 and sparc64 target description XML files.
11039 * features/sparc/sparc32-cp0.xml, features/sparc/sparc32-cpu.xml,
11040 features/sparc/sparc32-fpu.xml: New files for sparc 32-bit.
11041 * features/sparc/sparc64-cp0.xml, features/sparc/sparc64-cpu.xml,
11042 features/sparc/sparc64-fpu.xml: New files for sparc 64-bit.
11043 * features/sparc/sparc32-solaris.xml: New file.
11044 * features/sparc/sparc64-solaris.xml: New file.
11045 * features/sparc/sparc32-solaris.c: Generated.
11046 * features/sparc/sparc64-solaris.c: Generated.
11047 * sparc-tdep.h: Account for differences in target descriptions.
11048 * sparc-tdep.c (sparc32_register_name): Use target provided registers.
11049 (sparc32_register_type): Use target provided registers.
11050 (validate_tdesc_registers): New function.
11051 (sparc32_gdbarch_init): Use tdesc_has_registers.
11052 Set pseudoregister functions.
11053 * sparc64-tdep.c (sparc64_register_name): Use target provided registers.
11054 (sparc64_register_type): Use target provided registers.
11055 (sparc64_init_abi): Set pseudoregister functions.
11056
f0fd41c1
TT
110572017-02-03 Tom Tromey <tom@tromey.com>
11058
11059 PR rust/21097:
11060 * rust-lang.c (rust_print_type) <TYPE_CODE_UNION>: Handle enums
11061 with a single member.
11062
d6f9b0fb
PA
110632017-02-03 Pedro Alves <palves@redhat.com>
11064
11065 * cli/cli-interp.c (cli_interp_base::cli_interp_base)
11066 (cli_interp_base::~cli_interp_base): New.
11067 (cli_interp): New struct.
11068 (as_cli_interp): Cast the interp itself to cli_interp.
11069 (cli_interpreter_pre_command_loop): Rename to ...
11070 (cli_interp_base::pre_command_loop): ... this. Remove 'self'
11071 parameter.
11072 (cli_interpreter_init): Rename to ...
11073 (cli_interp::init): ... this. Remove 'self' parameter. Use
11074 boolean. Make extern.
11075 (cli_interpreter_resume): Rename to ...
11076 (cli_interp::resume): ... this. Remove 'data' parameter. Make
11077 extern.
11078 (cli_interpreter_suspend): Rename to ...
11079 (cli_interp::suspend): ... this. Remove 'data' parameter. Make
11080 extern.
11081 (cli_interpreter_exec): Rename to ...
11082 (cli_interp::exec): ... this. Remove 'data' parameter. Make
11083 extern.
11084 (cli_interpreter_supports_command_editing): Rename to ...
11085 (cli_interp_base::supports_command_editing): ... this. Remove
11086 'interp' parameter. Make extern.
11087 (cli_ui_out): Rename to ...
11088 (cli_interp::interp_ui_out): ... this. Remove 'interp' parameter.
11089 Make extern.
11090 (cli_set_logging): Rename to ...
11091 (cli_interp_base::set_logging): ... this. Remove 'interp'
11092 parameter. Make extern.
11093 (cli_interp_procs): Delete.
11094 (cli_interp_factory): Adjust to use "new".
11095 * cli/cli-interp.h: Include "interps.h".
11096 (struct cli_interp_base): New struct.
11097 * interps.c (struct interp): Delete. Fields moved to interps.h.
11098 (interp_new): Delete.
11099 (interp::interp, interp::~interp): New.
11100 (interp_set): Use bool, and return void. Assume the interpreter
11101 has suspend, init and resume methods, and that the all return
11102 void.
11103 (set_top_level_interpreter): interp_set returns void.
11104 (interp_ui_out): Adapt.
11105 (current_interp_set_logging): Adapt.
11106 (interp_data): Delete.
11107 (interp_pre_command_loop, interp_supports_command_editing): Adapt.
11108 (interp_exec): Adapt.
11109 (top_level_interpreter_data): Delete.
11110 * interps.h (interp_init_ftype, interp_resume_ftype)
11111 (interp_suspend_ftype, interp_exec_ftype)
11112 (interp_pre_command_loop_ftype, interp_ui_out_ftype): Delete.
11113 (class interp): New.
11114 (interp_new): Delete.
11115 (interp_set): Now returns void. Use bool.
11116 (interp_data, top_level_interpreter_data): Delete.
11117 * mi/mi-common.h: Include interps.h.
11118 (class mi_interp): Inherit from interp. Define a ctor. Declare
11119 init, resume, suspect, exec, interp_ui_out, set_logging and
11120 pre_command_loop methods.
11121 * mi/mi-interp.c (as_mi_interp): Cast the interp itself.
11122 (mi_interpreter_init): Rename to ...
11123 (mi_interp::init): ... this. Remove the 'interp' parameter, use
11124 bool, return void and make extern. Adjust.
11125 (mi_interpreter_resume): ... Rename to ...
11126 (mi_interp::resume): ... this. Remove the 'data' parameter,
11127 return void and make extern. Adjust.
11128 (mi_interpreter_suspend): ... Rename to ...
11129 (mi_interp::suspend): ... this. Remove the 'data' parameter,
11130 return void and make extern. Adjust.
11131 (mi_interpreter_exec): ... Rename to ...
11132 (mi_interp::exec): ... this. Remove the 'data' parameter and make
11133 extern. Adjust.
11134 (mi_interpreter_pre_command_loop): ... Rename to ...
11135 (mi_interp::pre_command_loop): ... this. Remove the 'self'
11136 parameter and make extern.
11137 (mi_on_normal_stop_1): Adjust.
11138 (mi_ui_out): Rename to ...
11139 (mi_interp::interp_ui_out): ... this. Remove the 'interp'
11140 parameter and make extern. Adjust.
11141 (mi_set_logging): Rename to ...
11142 (mi_interp::set_logging): ... this. Remove the 'interp'
11143 parameter and make extern. Adjust.
11144 (mi_interp_procs): Delete.
11145 (mi_interp_factory): Adjust to use 'new'.
11146 * mi/mi-main.c (mi_cmd_gdb_exit, captured_mi_execute_command)
11147 (mi_print_exception, mi_execute_command, mi_load_progress):
11148 Adjust.
11149 * tui/tui-interp.c (tui_interp): New class.
11150 (as_tui_interp): Return a tui_interp pointer.
11151 (tui_on_normal_stop, tui_on_signal_received)
11152 (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited)
11153 (tui_on_no_history, tui_on_user_selected_context_changed): Adjust
11154 to use interp::interp_ui_out.
11155 (tui_init): Rename to ...
11156 (tui_interp::init): ... this. Remove the 'self' parameter, use
11157 bool, return void and make extern. Adjust.
11158 (tui_resume): Rename to ...
11159 (tui_interp::resume): ... this. Remove the 'data' parameter,
11160 return void and make extern. Adjust.
11161 (tui_suspend): Rename to ...
11162 (tui_interp::suspend): ... this. Remove the 'data' parameter,
11163 return void and make extern. Adjust.
11164 (tui_ui_out): Rename to ...
11165 (tui_interp::interp_ui_out): ... this. Remove the 'self'
11166 parameter, and make extern. Adjust.
11167 (tui_exec): Rename to ...
11168 (tui_interp::exec): ... this. Remove the 'data' parameter and
11169 make extern.
11170 (tui_interp_procs): Delete.
11171 (tui_interp_factory): Use "new".
11172
65c40c95
TT
111732017-02-02 Tom Tromey <tom@tromey.com>
11174
11175 * rust-exp.y (ends_raw_string, space_then_number)
11176 (rust_identifier_start_p): Return bool.
11177 * rust-lang.c (rust_tuple_type_p, rust_underscore_fields)
11178 (rust_tuple_struct_type_p, rust_tuple_variant_type_p)
11179 (rust_slice_type_p, rust_range_type_p, rust_u8_type_p)
11180 (rust_chartype_p): Return bool.
11181 (val_print_struct, rust_print_struct_def, rust_print_type):
11182 Update.
11183 * rust-lang.h (rust_tuple_type_p, rust_tuple_struct_type_p):
11184 Return bool.
11185
b50f188d
TT
111862017-02-02 Tom Tromey <tom@tromey.com>
11187
11188 * rust-lang.c: Reindent.
11189
03c85b11
TT
111902017-02-02 Tom Tromey <tom@tromey.com>
11191
11192 * rust-lang.h (rust_crate_for_block): Update.
11193 * rust-lang.c (rust_crate_for_block): Return std::string.
11194 (rust_get_disr_info): Use std:;string, not
11195 gdb::unique_xmalloc_ptr.
11196 * rust-exp.y (crate_name): Update.
11197
9b6da501
PA
111982017-02-02 Pedro Alves <palves@redhat.com>
11199
11200 * disasm-selftests.c (print_one_insn_test): Move the "verbose"
11201 field out of gdb_disassembler_test and make it static.
11202
ec4cb20b
PA
112032017-02-02 Pedro Alves <palves@redhat.com>
11204
11205 * mi/mi-common.h (struct mi_interp): Delete the mi2_interp,
11206 mi1_interp and mi_interp fields.
11207
5be5dbf0
PA
112082017-02-02 Pedro Alves <palves@redhat.com>
11209
616268b6
PA
11210 * cli/cli-interp.c (struct saved_output_files, saved_output):
11211 Moved from cli/cli-logging.c.
11212 (cli_set_logging): New function.
11213 (cli_interp_procs): Install cli_set_logging.
11214 * cli/cli-interp.h (make_logging_output, cli_set_logging):
11215 Declare.
11216 * cli/cli-logging.c (struct saved_output_files, saved_output):
11217 Moved to cli/cli-interp.c.
11218 (pop_output_files): Don't save outputs here.
11219 (make_logging_output): New function.
11220 (handle_redirections): Don't build tee nor save previous outputs
11221 here.
11222 * interps.c (current_interp_set_logging): Change prototype.
11223 Assume there's always a set_logging_proc method installed.
11224 * interps.h (interp_set_logging_ftype): Change prototype.
11225 (current_interp_set_logging): Change prototype and adjust comment.
11226 * mi/mi-interp.c (mi_set_logging): Change protototype. Adjust to
11227 use make_logging_output.
11228 * tui/tui-interp.c (tui_interp_procs): Install cli_set_logging.
112292017-02-02 Pedro Alves <palves@redhat.com>
11230
5be5dbf0
PA
11231 * cli/cli-logging.c (maybe_warn_already_logging): New factored out
11232 from ...
11233 (set_logging_overwrite): ... here.
11234 (logging_no_redirect_file): Delete.
11235 (set_logging_redirect): Don't handle redirection on the fly.
11236 Instead warn that "logging off" / "logging on" is necessary.
11237 (pop_output_files): Delete references to logging_no_redirect_file.
11238 (show_logging_command): Always speak in terms of what will happen
11239 once logging is reenabled.
11240
c99cc448
PA
112412017-02-02 Pedro Alves <palves@redhat.com>
11242
11243 * disasm.h (gdb_pretty_print_disassembler): Tweak intro comment.
11244
8b172ce7
PA
112452017-02-02 Pedro Alves <palves@redhat.com>
11246
11247 * disasm.c (gdb_pretty_print_insn): Rename to ...
11248 (gdb_pretty_print_disassembler::pretty_print_insn): ... this.
11249 Remove gdbarch parameter. Adapt to clear the object's buffers
11250 instead of allocating new buffers, and to print using the object's
11251 gdb_disassembler instead of calling gdb_print_insn.
11252 (dump_insns): Use gdb_pretty_print_disassembler.
11253 * disasm.h (gdb_pretty_print_insn): Delete declaration.
11254 (gdb_pretty_print_disassembler): New class.
11255 * record-btrace.c (btrace_insn_history): Use
11256 gdb_pretty_print_disassembler.
11257
d7e74731
PA
112582017-02-02 Pedro Alves <palves@redhat.com>
11259
11260 * ada-lang.c (type_as_string): Use string_file.
11261 * ada-valprint.c (ada_print_floating): Use string_file.
11262 * ada-varobj.c (ada_varobj_scalar_image)
11263 (ada_varobj_get_value_image): Use string_file.
11264 * aix-thread.c (aix_thread_extra_thread_info): Use string_file.
11265 * arm-tdep.c (_initialize_arm_tdep): Use string_printf.
11266 * breakpoint.c (update_inserted_breakpoint_locations)
11267 (insert_breakpoint_locations, reattach_breakpoints)
11268 (print_breakpoint_location, print_one_detail_ranged_breakpoint)
11269 (print_it_watchpoint): Use string_file.
11270 (save_breakpoints): Use stdio_file.
11271 * c-exp.y (oper): Use string_file.
11272 * cli/cli-logging.c (set_logging_redirect): Use ui_file_up and
11273 tee_file.
11274 (pop_output_files): Use delete.
11275 (handle_redirections): Use stdio_file and tee_file.
11276 * cli/cli-setshow.c (do_show_command): Use string_file.
11277 * compile/compile-c-support.c (c_compute_program): Use
11278 string_file.
11279 * compile/compile-c-symbols.c (generate_vla_size): Take a
11280 'string_file &' instead of a 'ui_file *'.
11281 (generate_c_for_for_one_variable): Take a 'string_file &' instead
11282 of a 'ui_file *'. Use string_file.
11283 (generate_c_for_variable_locations): Take a 'string_file &'
11284 instead of a 'ui_file *'.
11285 * compile/compile-internal.h (generate_c_for_for_one_variable):
11286 Take a 'string_file &' instead of a 'ui_file *'.
11287 * compile/compile-loc2c.c (push, pushf, unary, binary)
11288 (print_label, pushf_register_address, pushf_register)
11289 (do_compile_dwarf_expr_to_c): Take a 'string_file &' instead of a
11290 'ui_file *'. Adjust.
11291 * compile/compile.c (compile_to_object): Use string_file.
11292 * compile/compile.h (compile_dwarf_expr_to_c)
11293 (compile_dwarf_bounds_to_c): Take a 'string_file &' instead of a
11294 'ui_file *'.
11295 * cp-support.c (inspect_type): Use string_file and obstack_copy0.
11296 (replace_typedefs_qualified_name): Use string_file and
11297 obstack_copy0.
11298 * disasm.c (gdb_pretty_print_insn): Use string_file.
11299 (gdb_disassembly): Adjust reference the null_stream global.
11300 (do_ui_file_delete): Delete.
11301 (gdb_insn_length): Use null_stream.
11302 * dummy-frame.c (maintenance_print_dummy_frames): Use stdio_file.
11303 * dwarf2loc.c (dwarf2_compile_property_to_c)
11304 (locexpr_generate_c_location, loclist_generate_c_location): Take a
11305 'string_file &' instead of a 'ui_file *'.
11306 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise.
11307 * dwarf2read.c (do_ui_file_peek_last): Delete.
11308 (dwarf2_compute_name): Use string_file.
11309 * event-top.c (gdb_setup_readline): Use stdio_file.
11310 * gdbarch.sh (verify_gdbarch): Use string_file.
11311 * gdbtypes.c (safe_parse_type): Use null_stream.
11312 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Use
11313 string_file.
11314 * guile/scm-disasm.c (gdbscm_print_insn_from_port): Take a
11315 'string_file *' instead of a 'ui_file *'.
11316 (gdbscm_arch_disassemble): Use string_file.
11317 * guile/scm-frame.c (frscm_print_frame_smob): Use string_file.
11318 * guile/scm-ports.c (class ioscm_file_port): Now a class that
11319 inherits from ui_file.
11320 (ioscm_file_port_delete, ioscm_file_port_rewind)
11321 (ioscm_file_port_put): Delete.
11322 (ioscm_file_port_write): Rename to ...
11323 (ioscm_file_port::write): ... this. Remove file_port_magic
11324 checks.
11325 (ioscm_file_port_new): Delete.
11326 (ioscm_with_output_to_port_worker): Use ioscm_file_port and
11327 ui_file_up.
11328 * guile/scm-type.c (tyscm_type_name): Use string_file.
11329 * guile/scm-value.c (vlscm_print_value_smob, gdbscm_value_print):
11330 Use string_file.
11331 * infcmd.c (print_return_value_1): Use string_file.
11332 * infrun.c (print_target_wait_results): Use string_file.
11333 * language.c (add_language): Use string_file.
11334 * location.c (explicit_to_string_internal): Use string_file.
11335 * main.c (captured_main_1): Use null_file.
11336 * maint.c (maintenance_print_architecture): Use stdio_file.
11337 * mi/mi-cmd-stack.c (list_arg_or_local): Use string_file.
11338 * mi/mi-common.h (struct mi_interp) <out, err, log, targ,
11339 event_channel>: Change type to mi_console_file pointer.
11340 * mi/mi-console.c (mi_console_file_fputs, mi_console_file_flush)
11341 (mi_console_file_delete): Delete.
11342 (struct mi_console_file): Delete.
11343 (mi_console_file_magic): Delete.
11344 (mi_console_file_new): Delete.
11345 (mi_console_file::mi_console_file): New.
11346 (mi_console_file_delete): Delete.
11347 (mi_console_file_fputs): Delete.
11348 (mi_console_file::write): New.
11349 (mi_console_raw_packet): Delete.
11350 (mi_console_file::flush): New.
11351 (mi_console_file_flush): Delete.
11352 (mi_console_set_raw): Rename to ...
11353 (mi_console_file::set_raw): ... this.
11354 * mi/mi-console.h (class mi_console_file): New class.
11355 (mi_console_file_new, mi_console_set_raw): Delete.
11356 * mi/mi-interp.c (mi_interpreter_init): Use mi_console_file.
11357 (mi_set_logging): Use delete and tee_file. Adjust.
11358 * mi/mi-main.c (output_register): Use string_file.
11359 (mi_cmd_data_evaluate_expression): Use string_file.
11360 (mi_cmd_data_read_memory): Use string_file.
11361 (mi_cmd_execute, print_variable_or_computed): Use string_file.
11362 * mi/mi-out.c (mi_ui_out::main_stream): New.
11363 (mi_ui_out::rewind): Use main_stream and
11364 string_file.
11365 (mi_ui_out::put): Use main_stream and string_file.
11366 (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
11367 Allocate a 'string_file' instead.
11368 (mi_out_new): Don't allocate a mem_fileopen stream here.
11369 * mi/mi-out.h (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
11370 (mi_ui_out::main_stream): Declare method.
11371 * printcmd.c (eval_command): Use string_file.
11372 * psymtab.c (maintenance_print_psymbols): Use stdio_file.
11373 * python/py-arch.c (archpy_disassemble): Use string_file.
11374 * python/py-breakpoint.c (bppy_get_commands): Use string_file.
11375 * python/py-frame.c (frapy_str): Use string_file.
11376 * python/py-framefilter.c (py_print_type, py_print_single_arg):
11377 Use string_file.
11378 * python/py-type.c (typy_str): Use string_file.
11379 * python/py-unwind.c (unwind_infopy_str): Use string_file.
11380 * python/py-value.c (valpy_str): Use string_file.
11381 * record-btrace.c (btrace_insn_history): Use string_file.
11382 * regcache.c (regcache_print): Use stdio_file.
11383 * reggroups.c (maintenance_print_reggroups): Use stdio_file.
11384 * remote.c (escape_buffer): Use string_file.
11385 * rust-lang.c (rust_get_disr_info): Use string_file.
11386 * serial.c (serial_open_ops_1): Use stdio_file.
11387 (do_serial_close): Use delete.
11388 * stack.c (print_frame_arg): Use string_file.
11389 (print_frame_args): Remove local mem_fileopen stream, not used.
11390 (print_frame): Use string_file.
11391 * symmisc.c (maintenance_print_symbols): Use stdio_file.
11392 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
11393 Take a 'string_file *' instead of a 'ui_file *'.
11394 * top.c (new_ui): Use stdio_file and stderr_file.
11395 (free_ui): Use delete.
11396 (execute_command_to_string): Use string_file.
11397 (quit_confirm): Use string_file.
11398 * tracepoint.c (collection_list::append_exp): Use string_file.
11399 * tui/tui-disasm.c (tui_disassemble): Use string_file.
11400 * tui/tui-file.c: Don't include "ui-file.h".
11401 (enum streamtype, struct tui_stream): Delete.
11402 (tui_file_new, tui_file_delete, tui_fileopen, tui_sfileopen)
11403 (tui_file_isatty, tui_file_rewind, tui_file_put): Delete.
11404 (tui_file::tui_file): New method.
11405 (tui_file_fputs): Delete.
11406 (tui_file_get_strbuf): Delete.
11407 (tui_file::puts): New method.
11408 (tui_file_adjust_strbuf): Delete.
11409 (tui_file_flush): Delete.
11410 (tui_file::flush): New method.
11411 * tui/tui-file.h: Tweak intro comment.
11412 Include ui-file.h.
11413 (tui_fileopen, tui_sfileopen, tui_file_get_strbuf)
11414 (tui_file_adjust_strbuf): Delete declarations.
11415 (class tui_file): New class.
11416 * tui/tui-io.c (tui_initialize_io): Use tui_file.
11417 * tui/tui-regs.c (tui_restore_gdbout): Use delete.
11418 (tui_register_format): Use string_stream.
11419 * tui/tui-stack.c (tui_make_status_line): Use string_file.
11420 (tui_get_function_from_frame): Use string_file.
11421 * typeprint.c (type_to_string): Use string_file.
11422 * ui-file.c (struct ui_file, ui_file_magic, ui_file_new): Delete.
11423 (null_stream): New global.
11424 (ui_file_delete): Delete.
11425 (ui_file::ui_file): New.
11426 (null_file_isatty): Delete.
11427 (ui_file::~ui_file): New.
11428 (null_file_rewind): Delete.
11429 (ui_file::printf): New.
11430 (null_file_put): Delete.
11431 (null_file_flush): Delete.
11432 (ui_file::putstr): New.
11433 (null_file_write): Delete.
11434 (ui_file::putstrn): New.
11435 (null_file_read): Delete.
11436 (ui_file::putc): New.
11437 (null_file_fputs): Delete.
11438 (null_file_write_async_safe): Delete.
11439 (ui_file::vprintf): New.
11440 (null_file_delete): Delete.
11441 (null_file::write): New.
11442 (null_file_fseek): Delete.
11443 (null_file::puts): New.
11444 (ui_file_data): Delete.
11445 (null_file::write_async_safe): New.
11446 (gdb_flush, ui_file_isatty): Adjust.
11447 (ui_file_put, ui_file_rewind): Delete.
11448 (ui_file_write): Adjust.
11449 (ui_file_write_for_put): Delete.
11450 (ui_file_write_async_safe, ui_file_read): Adjust.
11451 (ui_file_fseek): Delete.
11452 (fputs_unfiltered): Adjust.
11453 (set_ui_file_flush, set_ui_file_isatty, set_ui_file_rewind)
11454 (set_ui_file_put, set_ui_file_write, set_ui_file_write_async_safe)
11455 (set_ui_file_read, set_ui_file_fputs, set_ui_file_fseek)
11456 (set_ui_file_data): Delete.
11457 (string_file::~string_file, string_file::write)
11458 (struct accumulated_ui_file, do_ui_file_xstrdup, ui_file_xstrdup)
11459 (do_ui_file_as_string, ui_file_as_string): Delete.
11460 (do_ui_file_obsavestring, ui_file_obsavestring): Delete.
11461 (struct mem_file): Delete.
11462 (mem_file_new): Delete.
11463 (stdio_file::stdio_file): New.
11464 (mem_file_delete): Delete.
11465 (stdio_file::stdio_file): New.
11466 (mem_fileopen): Delete.
11467 (stdio_file::~stdio_file): New.
11468 (mem_file_rewind): Delete.
11469 (stdio_file::set_stream): New.
11470 (mem_file_put): Delete.
11471 (stdio_file::open): New.
11472 (mem_file_write): Delete.
11473 (stdio_file_magic, struct stdio_file): Delete.
11474 (stdio_file_new, stdio_file_delete, stdio_file_flush): Delete.
11475 (stdio_file::flush): New.
11476 (stdio_file_read): Rename to ...
11477 (stdio_file::read): ... this. Adjust.
11478 (stdio_file_write): Rename to ...
11479 (stdio_file::write): ... this. Adjust.
11480 (stdio_file_write_async_safe): Rename to ...
11481 (stdio_file::write_async_safe) ... this. Adjust.
11482 (stdio_file_fputs): Rename to ...
11483 (stdio_file::puts) ... this. Adjust.
11484 (stdio_file_isatty): Delete.
11485 (stdio_file_fseek): Delete.
11486 (stdio_file::isatty): New.
11487 (stderr_file_write): Rename to ...
11488 (stderr_file::write) ... this. Adjust.
11489 (stderr_file_fputs): Rename to ...
11490 (stderr_file::puts) ... this. Adjust.
11491 (stderr_fileopen, stdio_fileopen, gdb_fopen): Delete.
11492 (stderr_file::stderr_file): New.
11493 (tee_file_magic): Delete.
11494 (struct tee_file): Delete.
11495 (tee_file::tee_file): New.
11496 (tee_file_new): Delete.
11497 (tee_file::~tee_file): New.
11498 (tee_file_delete): Delete.
11499 (tee_file_flush): Rename to ...
11500 (tee_file::flush): ... this. Adjust.
11501 (tee_file_write): Rename to ...
11502 (tee_file::write): ... this. Adjust.
11503 (tee_file::write_async_safe): New.
11504 (tee_file_fputs): Rename to ...
11505 (tee_file::puts): ... this. Adjust.
11506 (tee_file_isatty): Rename to ...
11507 (tee_file::isatty): ... this. Adjust.
11508 * ui-file.h (struct obstack, struct ui_file): Don't
11509 forward-declare.
11510 (ui_file_new, ui_file_flush_ftype, set_ui_file_flush)
11511 (ui_file_write_ftype)
11512 (set_ui_file_write, ui_file_fputs_ftype, set_ui_file_fputs)
11513 (ui_file_write_async_safe_ftype, set_ui_file_write_async_safe)
11514 (ui_file_read_ftype, set_ui_file_read, ui_file_isatty_ftype)
11515 (set_ui_file_isatty, ui_file_rewind_ftype, set_ui_file_rewind)
11516 (ui_file_put_method_ftype, ui_file_put_ftype, set_ui_file_put)
11517 (ui_file_delete_ftype, set_ui_file_data, ui_file_fseek_ftype)
11518 (set_ui_file_fseek): Delete.
11519 (ui_file_data, ui_file_delete, ui_file_rewind)
11520 (struct ui_file): New.
11521 (ui_file_up): New.
11522 (class null_file): New.
11523 (null_stream): Declare.
11524 (ui_file_write_for_put, ui_file_put): Delete.
11525 (ui_file_xstrdup, ui_file_as_string, ui_file_obsavestring):
11526 Delete.
11527 (ui_file_fseek, mem_fileopen, stdio_fileopen, stderr_fileopen)
11528 (gdb_fopen, tee_file_new): Delete.
11529 (struct string_file): New.
11530 (struct stdio_file): New.
11531 (stdio_file_up): New.
11532 (struct stderr_file): New.
11533 (class tee_file): New.
11534 * ui-out.c (ui_out::field_stream): Take a 'string_file &' instead
11535 of a 'ui_file *'. Adjust.
11536 * ui-out.h (class ui_out) <field_stream>: Likewise.
11537 * utils.c (do_ui_file_delete, make_cleanup_ui_file_delete)
11538 (null_stream): Delete.
11539 (error_stream): Take a 'string_file &' instead of a 'ui_file *'.
11540 Adjust.
11541 * utils.h (struct ui_file): Delete forward declaration..
11542 (make_cleanup_ui_file_delete, null_stream): Delete declarations.
11543 (error_stream): Take a 'string_file &' instead of a
11544 'ui_file *'.
11545 * varobj.c (varobj_value_get_print_value): Use string_file.
11546 * xtensa-tdep.c (xtensa_verify_config): Use string_file.
11547 * gdbarch.c: Regenerate.
11548
187808b0
PA
115492017-02-02 Pedro Alves <palves@redhat.com>
11550
11551 * disasm.c (gdb_disassembler::pretty_print_insn): Rename to...
11552 (gdb_pretty_print_insn): ... this. Now a free function. Add back
11553 a 'gdbarch' parameter. Allocate a mem_fileopen stream here.
11554 Adjust to call gdb_print_insn instead of
11555 gdb_disassembler::print_insn.
11556 (dump_insns, do_mixed_source_and_assembly_deprecated)
11557 (do_mixed_source_and_assembly, do_assembly_only): Add back a
11558 'gdbarch' parameter. Remove gdb_disassembler parameter.
11559 (gdb_disassembly): Don't allocate a gdb_disassembler here.
11560 * disasm.h (gdb_disassembler::pretty_print_insn): Delete
11561 declaration.
11562 (gdb_pretty_print_insn): Re-add declaration.
11563 * record-btrace.c (btrace_insn_history): Don't allocate a
11564 gdb_disassembler here. Adjust to call gdb_pretty_print_insn.
11565
7a8eb317
SM
115662017-02-01 Simon Marchi <simon.marchi@polymtl.ca>
11567
11568 * disasm.h (gdb_disassembly): Remove file_string parameter.
11569 * disasm.c (gdb_disassembly): Likewise.
11570 * cli/cli-cmds.c (print_disassembly): Adapt.
11571 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
11572 * stack.c (do_gdb_disassembly): Likewise.
11573
7346ef59
AA
115742017-02-01 Andreas Arnez <arnez@linux.vnet.ibm.com>
11575
11576 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): For
11577 DWARF_VALUE_LITERAL, no longer ignore the offset on big-endian
11578 targets. And if the implicit value is longer than needed, extract
11579 the first bytes instead of the "least significant" ones.
11580
cd4007e4
MM
115812017-02-01 Markus Metzger <markus.t.metzger@intel.com>
11582
11583 * btrace.c (btrace_enable): Do not call btrace_add_pc for
11584 BTRACE_FORMAT_PT or if can_access_registers_ptid returns false.
11585 (btrace_fetch): Assert can_access_registers_ptid.
11586 * record-btrace.c (require_btrace_thread, record_btrace_info): Call
11587 validate_registers_access.
11588
cf77c34e
MM
115892017-02-01 Markus Metzger <markus.t.metzger@intel.com>
11590
11591 * gdbthread.h (can_access_registers_ptid): New.
11592 * thread.c (can_access_registers_ptid): New.
11593
be85ce7d
PA
115942017-02-01 Pedro Alves <palves@redhat.com>
11595
11596 * i386-tdep.c (i386_fast_tracepoint_valid_at): Use gdb_insn_length.
11597
29b0b251
PA
115982017-01-31 Pedro Alves <palves@redhat.com>
11599
11600 * mi/mi-interp.c (mi_breakpoint_created, mi_breakpoint_modified):
11601 Fix typos.
11602
289b5b24
PA
116032017-01-31 Pedro Alves <palves@redhat.com>
11604
11605 * stack.c (print_frame_args): Remove local mem_fileopen stream,
11606 not used.
11607
b47413b4
PA
116082017-01-31 Pedro Alves <palves@redhat.com>
11609
11610 * varobj.c (varobj_value_get_print_value): Remove xstrdup call.
11611
60adb36c
PA
116122017-01-31 Pedro Alves <palves@redhat.com>
11613
11614 * common/scoped_restore.h
11615 (scoped_restore_tmpl::scoped_restore_tmpl): Template on T2, and
11616 change the value's parameter type to T2.
11617 (make_scoped_restore): Likewise.
11618
2735833d
WT
116192017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
11620 Richard Henderson <rth@redhat.com>
11621
11622 * amd64-linux-nat.c (PTRACE_ARCH_PRCTL): New define.
11623 (amd64_linux_fetch_inferior_registers): Add case to fetch FS_BASE
11624 GS_BASE for older kernels.
11625 (amd64_linux_store_inferior_registers): Add case to store FS_BASE
11626 GS_BASE for older kernels.
11627 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Add FS_BASE
11628 and GS_BASE to the offset table.
11629 (amd64_linux_register_reggroup_p): Add FS_BASE and GS_BASE to the
11630 system register group.
11631 * amd64-nat.c (amd64_native_gregset_reg_offset): Implements case
11632 for older kernels.
11633 * amd64-tdep.c (amd64_init_abi): Add segment registers for the
11634 amd64 ABI.
11635 * amd64-tdep.h (amd64_regnum): Add AMD64_FSBASE_REGNUM and
11636 AMD64_GSBASE_REGNUM.
11637 (AMD64_NUM_REGS): Set to AMD64_GSBASE_REGNUM + 1.
11638 * features/Makefile (amd64-linux.dat, amd64-avx-linux.dat)
11639 (amd64-mpx-linux.dat, amd64-avx512-linux.dat, x32-linux.dat)
11640 (x32-avx-linux.dat, x32-avx512-linux.dat): Add
11641 i386/64bit-segments.xml in those rules.
11642 * features/i386/64bit-segments.xml: New file.
11643 * features/i386/amd64-avx-mpx-linux.xml: Add 64bit-segments.xml.
11644 * features/i386/amd64-avx-linux.xml: Add 64bit-segments.xml.
11645 * features/i386/amd64-avx512-linux.xml: Add 64bit-segments.xml.
11646 * features/i386/amd64-mpx-linux.xml: Add 64bit-segments.xml.
11647 * features/i386/x32-avx512-linux.xml: Add 64bit-segments.xml.
11648 * features/i386/x32-avx-linux.xml: Add 64bit-segments.xml.
11649 * features/i386/amd64-linux.xml: Add 64bit-segments.xml.
11650 * features/i386/amd64-avx-linux.c: Regenerated.
11651 * features/i386/amd64-avx-mpx-linux.c: Regenerated.
11652 * features/i386/amd64-avx-mpx.c: Regenerated.
11653 * features/i386/amd64-avx512-linux.c: Regenerated.
11654 * features/i386/amd64-linux.c: Regenerated.
11655 * features/i386/amd64-mpx-linux.c: Regenerated.
11656 * features/i386/i386-avx-mpx-linux.c: Regenerated.
11657 * features/i386/i386-avx-mpx.c: Regenerated.
11658 * features/i386/x32-avx-linux.c: Regenerated.
11659 * features/i386/x32-avx512-linux.c: Regenerated.
11660 * regformats/i386/amd64-avx-linux.dat: Regenerated.
11661 * regformats/i386/amd64-avx-mpx-linux.dat: Regenerated.
11662 * regformats/i386/amd64-avx512-linux.dat: Regenerated.
11663 * regformats/i386/amd64-linux.dat: Regenerated.
11664 * regformats/i386/amd64-mpx-linux.dat: Regenerated.
11665 * regformats/i386/x32-avx-linux.dat: Regenerated.
11666 * regformats/i386/x32-avx512-linux.dat: Regenerated.
11667 * regformats/i386/x32-linux.dat: Regenerated.
11668
8884e97e
WT
116692017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
11670
11671 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM):
11672 Set to AMD64_NUM_REGS.
11673
7005d26a
WT
116742017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
11675
11676 * amd64-nat.c (amd64_native_gregset_reg_offset): Simplify logic
11677 that checks validity of a register number.
11678
4bd2e1b2
KC
116792017-01-27 Kees Cook <keescook@google.com>
11680
11681 * gdb/arm-linux-nat.c (arm_linux_fetch_inferior_registers): Call
11682 fetch_fpregs if target has fpa registers.
11683 (arm_linux_store_inferior_registers): Call store_fpregs if target
11684 has fpa registers.
11685
7cf1de6c
AA
116862017-01-26 Andreas Arnez <arnez@linux.vnet.ibm.com>
11687
11688 * cris-tdep.c (cris_gdbarch_init): Remove check for
11689 info.byte_order and force it to BFD_ENDIAN_LITTLE.
11690
874a1c8c
AT
116912017-01-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
11692
11693 * corelow.c (get_core_register_section): Check for regset
11694 existence before checking for REGSET_VARIABLE_SIZE.
11695
d8b49cf0
YQ
116962017-01-26 Yao Qi <yao.qi@linaro.org>
11697 Pedro Alves <palves@redhat.com>
11698
11699 PR gdb/20939
11700 * disasm.c (gdb_disassembler::dis_asm_memory_error): Don't
11701 call memory_error, save memaddr instead.
11702 (gdb_disassembler::print_insn): If gdbarch_print_insn returns
11703 negative, cal memory_error.
11704 * disasm.h (gdb_disassembler) <m_err_memaddr>: New field.
11705
658ca58c
YQ
117062017-01-26 Yao Qi <yao.qi@linaro.org>
11707
11708 * disasm-selftests.c (memory_error_test): New function.
11709 (_initialize_disasm_selftests): Register memory_error_test.
11710
79843d45
YQ
117112017-01-26 Yao Qi <yao.qi@linaro.org>
11712
11713 * Makefile.in (SFILES): Add disasm-selftests.c and
11714 selftest-arch.c.
11715 (COMMON_OBS): Add disasm-selftests.o and selftest-arch.o.
11716 * disasm-selftests.c: New file.
11717 * selftest-arch.c: New file.
11718 * selftest-arch.h: New file.
11719
8cafda32
YQ
117202017-01-26 Yao Qi <yao.qi@linaro.org>
11721
11722 * mep-tdep.c (mep_gdb_print_insn): Set info->arch
11723 to bfd_arch_mep. Don't return 0 if section is not
11724 found. Call print_insn_mep.
11725
e47ad6c0
YQ
117262017-01-26 Pedro Alves <palves@redhat.com>
11727 Yao Qi <yao.qi@linaro.org>
11728
11729 * arm-tdep.c: Include "disasm.h".
11730 (gdb_print_insn_arm): Update code to get gdbarch.
11731 * disasm.c (dis_asm_read_memory): Change it to
11732 gdb_disassembler::dis_asm_read_memory.
11733 (dis_asm_memory_error): Likewise.
11734 (dis_asm_print_address): Likewise.
11735 (gdb_pretty_print_insn): Change it to
11736 gdb_disassembler::pretty_print_insn.
11737 (dump_insns): Add one argument gdb_disassemlber. All
11738 callers updated.
11739 (do_mixed_source_and_assembly_deprecated): Likewise.
11740 (do_mixed_source_and_assembly): Likewise.
11741 (do_assembly_only): Likewise.
11742 (gdb_disassembler::gdb_disassembler): New.
11743 (gdb_disassembler::print_insn): New.
11744 * disasm.h (class gdb_disassembler): New.
11745 (gdb_pretty_print_insn): Remove declaration.
11746 (gdb_disassemble_info): Likewise.
11747 * guile/scm-disasm.c (class gdbscm_disassembler): New.
11748 (gdbscm_disasm_read_memory_worker): Update.
11749 (gdbscm_disasm_read_memory): Update.
11750 (gdbscm_disasm_memory_error): Remove.
11751 (gdbscm_disasm_print_address): Remove.
11752 (gdbscm_disassembler::gdbscm_disassembler): New.
11753 (gdbscm_print_insn_from_port): Update.
11754 * mips-tdep.c: Include disasm.h.
11755 (gdb_print_insn_mips): Update code to get gdbarch.
11756 * record-btrace.c (btrace_insn_history): Update.
11757 * spu-tdep.c: Include disasm.h.
11758 (struct spu_dis_asm_data): Remove.
11759 (struct spu_dis_asm_info): New.
11760 (spu_dis_asm_print_address): Use spu_dis_asm_info to get
11761 SPU id.
11762 (gdb_print_insn_spu): Cast disassemble_info to
11763 spu_dis_asm_info.
11764
80d75874
YQ
117652017-01-26 Yao Qi <yao.qi@linaro.org>
11766
11767 * disasm.c (do_ui_file_delete): Delete.
11768 (gdb_insn_length): Move code creating stream to ...
11769 * utils.c (null_stream): ... here. New function.
11770 * utils.h (null_stream): Declare.
11771
60685cd0
SM
117722017-01-23 Simon Marchi <simon.marchi@polymtl.ca>
11773
11774 * python/py-inferior.c (find_thread_object): Return directly
11775 from the loop. Remove "found" variable.
11776
eb1cdb62
JB
117772017-01-21 Joel Brobecker <brobecker@adacore.com>
11778
11779 GDB 7.12.1 released.
11780
b1ce6568
SM
117812017-01-20 Simon Marchi <simon.marchi@ericsson.com>
11782
11783 * python/py-function.c (fnpy_call): Reorder declarations to have
11784 the gdbpy_enter object declared first.
11785 * python/py-xmethods.c (gdbpy_get_xmethod_arg_types): Likewise.
11786
6f8b0407
SM
117872017-01-20 Simon Marchi <simon.marchi@ericsson.com>
11788
fec93fb1 11789 PR python/21068
6f8b0407
SM
11790 * python/python-internal.h (PyMem_RawMalloc): Define for
11791 Python < 3.4.
11792 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use
11793 PyMem_RawMalloc instead of PyMem_Malloc.
11794
78cbbba8
LM
117952017-01-20 Mike Wrighton <mike_wrighton@codesourcery.com>
11796 Luis Machado <lgustavo@codesourcery.com>
11797
11798 * NEWS (New commands): Mention flash-erase.
11799 (New MI commands): Mention target-flash-erase.
11800 * mi/mi-cmds.c (mi_cmd_target_flash_erase): Add target-flash-erase MI
11801 command.
11802 * mi/mi-cmds.h (mi_cmd_target_flash_erase): New declaration.
11803 * mi/mi-main.c (mi_cmd_target_flash_erase): New function.
11804 * target.c (flash_erase_command): New function.
11805 (initialize_targets): Add new flash-erase command.
11806 * target.h (flash_erase_command): New declaration.
11807
2132fe85
JB
118082017-01-20 Joel Brobecker <brobecker@adacore.com>
11809
11810 * nat/linux-ptrace.c: Only include <sys/procfs.h> if
11811 HAVE_SYS_PROCFS_H is defined.
11812
d1dff226
AH
118132017-01-18 Alan Hayward <alan.hayward@arm.com>
11814
11815 * remote.c (struct cached_reg): Change data into a pointer.
11816 * (stop_reply_dtr): Free data pointers before deleting vector.
11817 (process_stop_reply): Likewise.
11818 (remote_parse_stop_reply): Allocate space for data
11819
9890e433
AH
118202017-01-18 Alan Hayward <alan.hayward@arm.com>
11821
11822 * amd64-tdep.c (amd64_pseudo_register_read_value): remove
11823 MAX_REGISTER_SIZE.
11824 (amd64_pseudo_register_read_value): Likewise.
11825 * remote.c (fetch_register_using_p): Remove MAX_REGISTER_SIZE.
11826 (store_register_using_P): Likewise.
11827 * regcache.c (regcache_xfer_part): Likewise.
11828
7a36499a
IR
118292017-01-16 Ivo Raisr <ivo.raisr@oracle.com>
11830
11831 Split real and pseudo registers.
11832 * sparc-tdep.h (SPARC_CORE_REGISTERS): New macro.
11833 (sparc32_pseudo_regnum): New enum.
11834 * sparc64-tdep.h (sparc64_pseudo_regnum): New enum.
11835 * sparc-tdep.c (SPARC32_FPU_REGISTERS): New macro.
11836 (SPARC32_CP0_REGISTERS): New macro.
11837 (sparc32_pseudo_register_name): New function.
11838 (sparc32_register_name): Use sparc32_pseudo_register_name.
11839 (sparc32_pseudo_register_type): New function.
11840 (sparc32_register_type): Use sparc32_pseudo_register_type.
11841 (sparc32_pseudo_register_read, sparc32_pseudo_register_write): Handle
11842 pseudo register numbers.
11843 * sparc64-tdep.c SPARC64_FPU_REGISTERS): New macro.
11844 (SPARC64_CP0_REGISTERS): New macro.
11845 (sparc64_pseudo_register_name): New function.
11846 (sparc64_register_name): Use sparc64_pseudo_register_name.
11847 (sparc64_pseudo_register_type): New function.
11848 (sparc64_register_type): Use sparc64_pseudo_register_type.
11849 (sparc64_pseudo_register_read, sparc64_pseudo_register_write): Handle
11850 pseudo register numbers.
11851 (sparc64_store_floating_fields, sparc64_extract_floating_fields,
11852 sparc64_store_arguments): Handle pseudo register numbers.
11853
6f8976bf
YQ
118542017-01-13 Yao Qi <yao.qi@linaro.org>
11855
11856 * remote.c (REMOTE_DEBUG_MAX_CHAR): New macro.
11857 (putpkt_binary): Print only REMOTE_DEBUG_MAX_CHAR chars in debug
11858 output.
11859 (getpkt_or_notif_sane_1): Likewise.
11860
e4241ace
YQ
118612017-01-13 Yao Qi <yao.qi@linaro.org>
11862
11863 * Makefile.in (checker-headers): Use CXX and CXX_DIALET instead
11864 of CC. Pass "-x c++-header" instead of "-x c".
11865
3015c064
SM
118662017-01-12 Simon Marchi <simon.marchi@ericsson.com>
11867
11868 * remote.c (remote_can_async_p): Update comment.
11869
fde1b17d
SM
118702017-01-12 Simon Marchi <simon.marchi@ericsson.com>
11871
11872 * linux-nat.c (linux_nat_can_async_p): Update comment.
11873
ca1ca08b
SM
118742017-01-12 Simon Marchi <simon.marchi@ericsson.com>
11875
11876 * serial.c (serial_open): Forget about "pc" and "lpt" serial interface.
11877
4ad2da73
SM
118782017-01-11 Simon Marchi <simon.marchi@ericsson.com>
11879
11880 * cli/cli-decode.c (lookup_cmd_1): Fix typo in comment.
11881
c8b23b3f
TT
118822017-01-10 Tom Tromey <tom@tromey.com>
11883
11884 * python/py-type.c (typy_legacy_template_argument): Update.
11885 * cp-support.h (struct demangle_parse_info) (demangle_parse_info,
11886 ~demangle_parse_info): Declare new members.
11887 (cp_demangled_name_to_comp): Return unique_ptr.
11888 (cp_demangled_name_parse_free)
11889 (make_cleanup_cp_demangled_name_parse_free)
11890 (cp_new_demangle_parse_info): Remove.
11891 * cp-support.c (do_demangled_name_parse_free_cleanup)
11892 (make_cleanup_cp_demangled_name_parse_free): Remove.
11893 (inspect_type, cp_canonicalize_string_full)
11894 (cp_canonicalize_string): Update.
11895 (mangled_name_to_comp): Change return type.
11896 (cp_class_name_from_physname, method_name_from_physname)
11897 (cp_func_name, cp_remove_params): Update.
11898 * cp-name-parser.y (demangle_parse_info): New constructor, from
11899 cp_new_demangle_parse_info.
11900 (~demangle_parse_info): New destructor, from
11901 cp_demangled_name_parse_free.
11902 (cp_merge_demangle_parse_infos): Update.
11903 (cp_demangled_name_to_comp): Change return type.
11904
1ac32117
TT
119052017-01-10 Tom Tromey <tom@tromey.com>
11906
11907 * top.c (prevent_dont_repeat): Change return type.
11908 * python/python.c (execute_gdb_command): Use std::string.
11909 Update.
11910 * guile/guile.c (gdbscm_execute_gdb_command): Update.
11911 * command.h (prevent_dont_repeat): Change return type.
11912 * breakpoint.c (bpstat_do_actions_1): Update.
11913
0cf08227
TT
119142017-01-10 Tom Tromey <tom@tromey.com>
11915
11916 * value.h (scoped_value_mark::~scoped_value_mark): Call
11917 free_to_mark.
11918 (scoped_value_mark::free_to_mark): New method.
11919 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
11920 scoped_value_mark.
11921
eb115069
TT
119222017-01-10 Tom Tromey <tom@tromey.com>
11923
11924 * python/py-value.c (valpy_dereference, valpy_referenced_value)
11925 (valpy_reference_value, valpy_const_value, valpy_get_address)
11926 (valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
11927 (valpy_getitem, valpy_call, valpy_binop_throw, valpy_negative)
11928 (valpy_absolute, valpy_richcompare_throw): Use scoped_value_mark.
11929 * dwarf2loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
11930 scoped_value_mark.
11931 * dwarf2-frame.c (execute_stack_op): Use scoped_value_mark.
11932 * value.h (scoped_value_mark): New class.
11933
906768f9
TT
119342017-01-10 Tom Tromey <tom@tromey.com>
11935
11936 * dwarf2read.c (dwarf2_build_psymtabs): Use psymtab_discarder.
11937 * psympriv.h (make_cleanup_discard_psymtabs): Don't declare.
11938 * psymtab.c (discard_psymtabs_upto): Remove.
11939 (make_cleanup_discard_psymtabs): Remove.
11940 (struct psymtab_state): Remove.
11941
bef155c3
TT
119422017-01-10 Tom Tromey <tom@tromey.com>
11943
11944 * record-full.c (record_full_save_cleanups): Remove.
11945 (record_full_save): Use gdb::unlinker.
11946 * gcore.c (do_bfd_delete_cleanup): Remove.
11947 (gcore_command): Use gdb::unlinker, unique_xmalloc_ptr. Remove
11948 cleanups.
11949 * dwarf2read.c (unlink_if_set): Remove.
11950 (write_psymtabs_to_index): Use gdb::unlinker.
11951 * common/gdb_unlinker.h: New file.
11952
192b62ce
TT
119532017-01-10 Tom Tromey <tom@tromey.com>
11954
11955 * windows-tdep.c (windows_xfer_shared_library): Update.
11956 * windows-nat.c (windows_make_so): Update.
11957 * utils.h (make_cleanup_bfd_unref): Remove.
11958 * utils.c (do_bfd_close_cleanup, make_cleanup_bfd_unref): Remove.
11959 * symfile.h (symfile_bfd_open)
11960 (find_separate_debug_file_in_section): Return gdb_bfd_ref_ptr.
11961 * symfile.c (read_symbols, symbol_file_add)
11962 (separate_debug_file_exists): Update.
11963 (symfile_bfd_open): Return gdb_bfd_ref_ptr.
11964 (generic_load, reread_symbols): Update.
11965 * symfile-mem.c (symbol_file_add_from_memory): Update.
11966 * spu-linux-nat.c (spu_bfd_open): Return gdb_bfd_ref_ptr.
11967 (spu_symbol_file_add_from_memory): Update.
11968 * solist.h (struct target_so_ops) <bfd_open>: Return
11969 gdb_bfd_ref_ptr.
11970 (solib_bfd_fopen, solib_bfd_open): Return gdb_bfd_ref_ptr.
11971 * solib.c (solib_bfd_fopen, solib_bfd_open): Return
11972 gdb_bfd_ref_ptr.
11973 (solib_map_sections, reload_shared_libraries_1): Update.
11974 * solib-svr4.c (enable_break): Update.
11975 * solib-spu.c (spu_bfd_fopen): Return gdb_bfd_ref_ptr.
11976 * solib-frv.c (enable_break2): Update.
11977 * solib-dsbt.c (enable_break): Update.
11978 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): Return
11979 gdb_bfd_ref_ptr.
11980 (darwin_solib_get_all_image_info_addr_at_init): Update.
11981 (darwin_bfd_open): Return gdb_bfd_ref_ptr.
11982 * solib-aix.c (solib_aix_bfd_open): Return gdb_bfd_ref_ptr.
11983 * record-full.c (record_full_save): Update.
11984 * python/py-objfile.c (objfpy_add_separate_debug_file): Update.
11985 * procfs.c (insert_dbx_link_bpt_in_file): Update.
11986 * minidebug.c (find_separate_debug_file_in_section): Return
11987 gdb_bfd_ref_ptr.
11988 * machoread.c (macho_add_oso_symfile): Change abfd to
11989 gdb_bfd_ref_ptr.
11990 (macho_symfile_read_all_oso): Update.
11991 (macho_check_dsym): Return gdb_bfd_ref_ptr.
11992 (macho_symfile_read): Update.
11993 * jit.c (bfd_open_from_target_memory): Return gdb_bfd_ref_ptr.
11994 (jit_bfd_try_read_symtab): Update.
11995 * gdb_bfd.h (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
11996 (gdb_bfd_openw, gdb_bfd_openr_iovec)
11997 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
11998 gdb_bfd_ref_ptr.
11999 (gdb_bfd_ref_policy): New struct.
12000 (gdb_bfd_ref_ptr): New typedef.
12001 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
12002 (gdb_bfd_openw, gdb_bfd_openr_iovec)
12003 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
12004 gdb_bfd_ref_ptr.
12005 * gcore.h (create_gcore_bfd): Return gdb_bfd_ref_ptr.
12006 * gcore.c (create_gcore_bfd): Return gdb_bfd_ref_ptr.
12007 (gcore_command): Update.
12008 * exec.c (exec_file_attach): Update.
12009 * elfread.c (elf_symfile_read): Update.
12010 * dwarf2read.c (dwarf2_get_dwz_file): Update.
12011 (try_open_dwop_file, open_dwo_file): Return gdb_bfd_ref_ptr.
12012 (open_and_init_dwo_file): Update.
12013 (open_dwp_file): Return gdb_bfd_ref_ptr.
12014 (open_and_init_dwp_file): Update.
12015 * corelow.c (core_open): Update.
12016 * compile/compile-object-load.c (compile_object_load): Update.
12017 * common/gdb_ref_ptr.h (ref_ptr::operator->): New operator.
12018 * coffread.c (coff_symfile_read): Update.
12019 * cli/cli-dump.c (bfd_openr_or_error, bfd_openw_or_error): Return
12020 gdb_bfd_ref_ptr. Rename.
12021 (dump_bfd_file, restore_command): Update.
12022 * build-id.h (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
12023 * build-id.c (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
12024 (find_separate_debug_file_by_buildid): Update.
12025
50315b21
TT
120262017-01-10 Tom Tromey <tom@tromey.com>
12027
12028 * common/gdb_ref_ptr.h: New file.
12029 * python/py-ref.h (struct gdbpy_ref_policy): New.
12030 (gdbpy_ref): Now a typedef.
12031
fc4007c9
TT
120322017-01-10 Tom Tromey <tom@tromey.com>
12033
12034 * utils.h (make_cleanup_htab_delete): Don't declare.
12035 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete):
12036 Remove.
12037 * linespec.c (decode_compound_collector): Add constructor,
12038 destructor.
12039 (lookup_prefix_sym): Remove cleanup.
12040 (symtab_collector): Add constructor, destructor.
12041 (collect_symtabs_from_filename): Remove cleanup.
12042 * disasm.c (do_mixed_source_and_assembly): Use htab_up.
12043 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
12044 Use htab_up.
12045 * gnu-v3-abi.c (gnuv3_print_vtable): Use htab_up.
12046 * dwarf2read.c (dw2_expand_symtabs_matching)
12047 (dw2_map_symbol_filenames, dwarf_decode_macros)
12048 (write_psymtabs_to_index): Use htab_up.
12049 * dwarf2loc.c (func_verify_no_selftailcall)
12050 (call_site_find_chain_1, func_verify_no_selftailcall)
12051 (chain_candidate, call_site_find_chain_1): Use std::unordered_set,
12052 std::vector, gdb::unique_xmalloc_ptr.
12053 (call_sitep): Remove typedef.
12054 (dwarf2_locexpr_baton_eval): Remove unused variable.
12055
8dbcee67
TT
120562017-01-10 Tom Tromey <tom@tromey.com>
12057
12058 * python/python-internal.h (make_cleanup_py_decref)
12059 (make_cleanup_py_xdecref): Don't declare.
12060 * python/py-utils.c (py_decref, make_cleanup_py_decref)
12061 (py_xdecref, make_cleanup_py_xdecref): Remove.
12062
13df46cc
TT
120632017-01-10 Tom Tromey <tom@tromey.com>
12064
12065 * python/py-framefilter.c (py_mi_print_variables): Use gdbpy_ref.
12066 (py_print_locals, enumerate_locals, py_print_args): Use gdbpy_ref.
12067
06fc9bf7
TT
120682017-01-10 Tom Tromey <tom@tromey.com>
12069
12070 * python/py-framefilter.c (enumerate_args): Use gdbpy_ref.
12071
830a4934
TT
120722017-01-10 Tom Tromey <tom@tromey.com>
12073
12074 * python/py-utils.c (unicode_to_encoded_string)
12075 (python_string_to_target_string)
12076 (python_string_to_target_python_string)
12077 (python_string_to_host_string, gdbpy_obj_to_string)
12078 (get_addr_from_python): Use gdbpy_ref.
12079
4586d543
TT
120802017-01-10 Tom Tromey <tom@tromey.com>
12081
12082 * python/py-unwind.c (pyuw_object_attribute_to_pointer): Use
12083 gdbpy_ref.
12084
59876f8f
TT
120852017-01-10 Tom Tromey <tom@tromey.com>
12086
12087 * python/python.c (eval_python_command, gdbpy_decode_line)
12088 (gdbpy_run_events, gdbpy_start_type_printers)
12089 (gdbpy_apply_type_printers): Use gdbpy_ref.
12090
97d83487
TT
120912017-01-10 Tom Tromey <tom@tromey.com>
12092
12093 * python/py-param.c (get_doc_string, compute_enum_values): Use
12094 gdbpy_ref.
12095
9205649a
TT
120962017-01-10 Tom Tromey <tom@tromey.com>
12097
12098 * python/py-inferior.c (find_thread_object, build_inferior_list):
12099 Use gdbpy_ref.
12100
74c49d45
TT
121012017-01-10 Tom Tromey <tom@tromey.com>
12102
12103 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
12104
16361ffb
TT
121052017-01-10 Tom Tromey <tom@tromey.com>
12106
12107 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope): Use
12108 gdbpy_ref.
12109
905f2cca
TT
121102017-01-10 Tom Tromey <tom@tromey.com>
12111
12112 * python/py-cmd.c (cmdpy_completer_helper): Use gdbpy_ref. Remove
12113 extra incref.
12114 (cmdpy_completer_handle_brkchars, cmdpy_completer, cmdpy_init):
12115 Use gdbpy_ref.
12116
64081434
TT
121172017-01-10 Tom Tromey <tom@tromey.com>
12118
12119 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
12120 gdbpy_ref.
12121
59e9e831
TT
121222017-01-10 Tom Tromey <tom@tromey.com>
12123
12124 * python/py-arch.c (archpy_disassemble): Use gdbpy_ref. Don't
12125 decref results of PyArg_ParseTupleAndKeywords.
12126
9de10f6d
TT
121272017-01-10 Tom Tromey <tom@tromey.com>
12128
12129 * python/python.c (python_run_simple_file): Use
12130 unique_xmalloc_ptr, gdbpy_ref.
12131
2bd5759d
TT
121322017-01-10 Tom Tromey <tom@tromey.com>
12133
12134 * python/py-prettyprint.c (print_stack_unless_memory_error)
12135 (print_string_repr, print_children): Use gdbpy_ref.
12136 (dummy_python_frame): New class.
12137 (dummy_python_frame::dummy_python_frame): Rename from
12138 push_dummy_python_frame.
12139 (py_restore_tstate): Remove.
12140
3b4e0e01
TT
121412017-01-10 Tom Tromey <tom@tromey.com>
12142
12143 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
12144
17a22718
TT
121452017-01-10 Tom Tromey <tom@tromey.com>
12146
12147 * python/python.c (ensure_python_env, restore_python_env):
12148 Remove.
12149 * python/python-internal.h (ensure_python_env): Don't declare.
12150 * varobj.h (varobj_ensure_python_env): Don't declare.
12151 * varobj.c (varobj_ensure_python_env): Remove.
12152
68cdc557
TT
121532017-01-10 Tom Tromey <tom@tromey.com>
12154
12155 * varobj.c (varobj_value_get_print_value): Use
12156 gdbpy_enter_varobj.
12157
1eba6383
TT
121582017-01-10 Tom Tromey <tom@tromey.com>
12159
12160 * python/py-prettyprint.c (print_string_repr, print_children):
12161 Update.
12162 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Change type
12163 of "encoding".
12164 * varobj.c (varobj_value_get_print_value): Update.
12165 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
12166
bde7b3e3
TT
121672017-01-10 Tom Tromey <tom@tromey.com>
12168
12169 * varobj.c (varobj_get_display_hint)
12170 (dynamic_varobj_has_child_method, install_new_value_visualizer)
12171 (varobj_set_visualizer, free_variable): Use
12172 gdbpy_enter_varobj.
12173
a7785f8c
TT
121742017-01-10 Tom Tromey <tom@tromey.com>
12175
12176 * python/python.c (python_command): Use gdbpy_enter, gdbpy_ref.
12177 (do_finish_initialization): New function. Use gdbpy_ref.
12178 (gdbpy_finish_initialization): Use gdbpy_enter. Call
12179 do_finish_initialization.
12180
2865bfce
TT
121812017-01-10 Tom Tromey <tom@tromey.com>
12182
12183 * python/py-param.c (get_set_value, get_show_value): Use
12184 gdbpy_enter, gdbpy_ref.
12185
0e9dcc75
TT
121862017-01-10 Tom Tromey <tom@tromey.com>
12187
12188 * python/py-function.c (fnpy_call): Use gdbpy_enter, gdbpy_ref.
12189
12a5cedd
TT
121902017-01-10 Tom Tromey <tom@tromey.com>
12191
12192 * python/py-cmd.c (cmdpy_function): Use gdbpy_enter, gdbpy_ref.
12193
788f2586
TT
121942017-01-10 Tom Tromey <tom@tromey.com>
12195
12196 * python/py-varobj.c (py_varobj_iter_dtor, py_varobj_iter_next):
12197 Use gdbpy_enter_varobj.
12198
6cd67bea
TT
121992017-01-10 Tom Tromey <tom@tromey.com>
12200
12201 * varobj.c (gdbpy_enter_varobj): New constructor.
12202 * python/python-internal.h (gdbpy_enter_varobj): New class.
12203 * python/py-varobj.c (py_varobj_get_iterator): Use
12204 gdbpy_enter_varobj.
12205
14b122bf
TT
122062017-01-10 Tom Tromey <tom@tromey.com>
12207
12208 * python/py-xmethods.c (gdbpy_get_xmethod_result_type): Use
12209 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
12210 (gdbpy_invoke_xmethod): Use gdbpy_ref, gdbpy_enter.
12211 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref,
12212 unique_xmalloc_ptr.
12213 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref, gdbpy_enter.
12214
bf1ca3b9
TT
122152017-01-10 Tom Tromey <tom@tromey.com>
12216
12217 * python/py-xmethods.c (invoke_match_method): Use
12218 gdbpy_ref.
12219
572a5524
TT
122202017-01-10 Tom Tromey <tom@tromey.com>
12221
12222 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): use
12223 gdbpy_enter, gdbpy_ref.
12224
396a78b6
TT
122252017-01-10 Tom Tromey <tom@tromey.com>
12226
12227 * python/python.c (python_interactive_command): Use gdbpy_enter.
12228
a88b13c7
TT
122292017-01-10 Tom Tromey <tom@tromey.com>
12230
12231 * python/python.c (gdbpy_before_prompt_hook): Use gdbpy_enter,
12232 gdbpy_ref.
12233
e9f0c363
TT
122342017-01-10 Tom Tromey <tom@tromey.com>
12235
12236 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Use
12237 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
12238
6349f452
TT
122392017-01-10 Tom Tromey <tom@tromey.com>
12240
12241 * utils.h (htab_deleter): New struct.
12242 (htab_up): New typedef.
12243 * python/py-framefilter.c (gdbpy_apply_frame_filter): Use
12244 gdbpy_enter, gdbpy_ref, htab_up.
12245
c0171de6
TT
122462017-01-10 Tom Tromey <tom@tromey.com>
12247
12248 * python/py-unwind.c (pending_frame_invalidate): Remove.
12249 (pyuw_sniffer): Use gdbpy_enter and gdbpy_ref.
12250
f18e226f
TT
122512017-01-10 Tom Tromey <tom@tromey.com>
12252
12253 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data)
12254 (gdbpy_clone_xmethod_worker_data): Use gdbpy_enter.
12255
c57af3f1
TT
122562017-01-10 Tom Tromey <tom@tromey.com>
12257
12258 * python/py-type.c (save_objfile_types): Use gdbpy_enter.
12259
60e600ec
TT
122602017-01-10 Tom Tromey <tom@tromey.com>
12261
12262 * python/python.c (gdbpy_eval_from_control_command)
12263 (gdbpy_source_script, gdbpy_run_events)
12264 (gdbpy_source_objfile_script, gdbpy_execute_objfile_script)
12265 (gdbpy_free_type_printers, gdbpy_finish_initialization): Use
12266 gdbpy_enter.
12267
bf7da5b0
TT
122682017-01-10 Tom Tromey <tom@tromey.com>
12269
12270 * python/py-progspace.c (py_free_pspace): Use gdbpy_enter.
12271
2d38bced
TT
122722017-01-10 Tom Tromey <tom@tromey.com>
12273
12274 * python/py-objfile.c (py_free_objfile): Use gdbpy_enter.
12275
07bc7329
TT
122762017-01-10 Tom Tromey <tom@tromey.com>
12277
12278 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
12279 (python_on_inferior_call_pre, python_on_inferior_call_post)
12280 (python_on_memory_change, python_on_register_change)
12281 (python_inferior_exit, python_new_objfile, add_thread_object)
12282 (delete_thread_object, py_free_inferior): Use gdbpy_enter.
12283
6e7c365e
TT
122842017-01-10 Tom Tromey <tom@tromey.com>
12285
12286 * python/py-finishbreakpoint.c (bpfinishpy_handle_stop)
12287 (bpfinishpy_handle_exit): Use gdbpy_enter.
12288
6ba0cd40
TT
122892017-01-10 Tom Tromey <tom@tromey.com>
12290
12291 * python/py-cmd.c (cmdpy_destroyer)
12292 (cmdpy_completer_handle_brkchars, cmdpy_completer): Use
12293 gdbpy_enter.
12294
de2dc875
TT
122952017-01-10 Tom Tromey <tom@tromey.com>
12296
12297 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
12298 gdbpy_enter.
12299 (gdbpy_breakpoint_has_cond): Likewise.
12300
4ecee2c4
TT
123012017-01-10 Tom Tromey <tom@tromey.com>
12302
12303 * python/python.c (gdbpy_enter): New constructor.
12304 (~gdbpy_enter): New destructor.
12305 (restore_python_env, ensure_python_env): Rewrite.
12306 * python/python-internal.h (gdbpy_enter): New class.
12307
37fce74f
TT
123082017-01-10 Tom Tromey <tom@tromey.com>
12309
12310 * python/py-symbol.c (gdbpy_lookup_symbol): Use gdbpy_ref.
12311
53a0cca3
TT
123122017-01-10 Tom Tromey <tom@tromey.com>
12313
12314 * python/py-value.c (value_has_field, get_field_flag)
12315 (get_field_type, valpy_getitem, convert_value_from_python): Use
12316 gdbpy_ref.
12317
ff3724f5
TT
123182017-01-10 Tom Tromey <tom@tromey.com>
12319
12320 * python/python.c (gdbpy_progspaces, gdbpy_objfiles): Use
12321 gdbpy_ref.
12322
0700aea5
TT
123232017-01-10 Tom Tromey <tom@tromey.com>
12324
12325 * python/py-prettyprint.c (search_pp_list)
12326 (find_pretty_printer_from_objfiles)
12327 (find_pretty_printer_from_progspace)
12328 (find_pretty_printer_from_gdb, find_pretty_printer)
12329 (gdbpy_get_display_hint, gdbpy_get_varobj_pretty_printer): Use
12330 gdbpy_ref.
12331
1bb44c9f
TT
123322017-01-10 Tom Tromey <tom@tromey.com>
12333
12334 * python/py-param.c (call_doc_function): Use gdbpy_ref.
12335
87ce03fd
TT
123362017-01-10 Tom Tromey <tom@tromey.com>
12337
12338 * python/py-linetable.c (build_line_table_tuple_from_pcs)
12339 (ltpy_get_all_source_lines): Use gdbpy_ref.
12340
ee0a3fb8
TT
123412017-01-10 Tom Tromey <tom@tromey.com>
12342
12343 * python/py-framefilter.c (extract_sym, extract_value)
12344 (get_py_iter_from_func, bootstrap_python_frame_filters): Use
12345 gdbpy_ref.
12346
bf2a52fa
TT
123472017-01-10 Tom Tromey <tom@tromey.com>
12348
12349 * python/py-breakpoint.c (gdbpy_breakpoints): Use gdbpy_ref.
12350
f59fe7f8
TT
123512017-01-10 Tom Tromey <tom@tromey.com>
12352
12353 * python/py-inferior.c (gdbpy_inferiors): Use gdbpy_ref.
12354
80bd970a
TT
123552017-01-10 Tom Tromey <tom@tromey.com>
12356
12357 * python/py-function.c (convert_values_to_python, fnpy_init): Use
12358 gdbpy_ref.
12359
d1b3de2e
TT
123602017-01-10 Tom Tromey <tom@tromey.com>
12361
12362 * python/py-cmd.c (gdbpy_string_to_argv): Use gdbpy_ref.
12363
3bb43384
TT
123642017-01-10 Tom Tromey <tom@tromey.com>
12365
12366 * python/py-type.c (convert_field, make_fielditem, typy_fields)
12367 (typy_range): Use gdbpy_ref.
12368
abf5651e
TT
123692017-01-10 Tom Tromey <tom@tromey.com>
12370
12371 * python/py-threadevent.c (create_thread_event_object): Use
12372 gdbpy_ref.
12373 * python/py-stopevent.c (create_stop_event_object): Simplify.
12374 (emit_stop_event): Use gdbpy_ref.
12375 * python/py-signalevent.c (create_signal_event_object): Use
12376 gdbpy_ref.
12377 * python/py-newobjfileevent.c (create_new_objfile_event_object)
12378 (emit_new_objfile_event, create_clear_objfiles_event_object)
12379 (emit_clear_objfiles_event): Use gdbpy_ref.
12380 * python/py-infevents.c (create_inferior_call_event_object)
12381 (create_register_changed_event_object)
12382 (create_memory_changed_event_object, emit_inferior_call_event)
12383 (emit_memory_changed_event, emit_register_changed_event): Use
12384 gdbpy_ref.
12385 * python/py-exitedevent.c (create_exited_event_object)
12386 (emit_exited_event): Use gdbpy_ref.
12387 * python/py-event.h (evpy_emit_event): Remove
12388 CPYCHECKER_STEALS_REFERENCE_TO_ARG annotation.
12389 * python/py-event.c (evpy_emit_event): Use gdbpy_ref.
12390 * python/py-continueevent.c (emit_continue_event): Use
12391 gdbpy_ref.
12392 * python/py-breakpoint.c (gdbpy_breakpoint_created)
12393 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
12394 gdbpy_ref.
12395 * python/py-bpevent.c (create_breakpoint_event_object): Use
12396 gdbpy_ref.
12397
a68ff33e
TT
123982017-01-10 Tom Tromey <tom@tromey.com>
12399
12400 * python/py-ref.h: New file.
12401
7becfd03
SM
124022017-01-10 Simon Marchi <simon.marchi@ericsson.com>
12403
12404 * cli-out.c (cli_ui_out::do_redirect): Change return type to
12405 void.
12406 * cli-out.h (cli_ui_out::do_redirect): Likewise.
12407 * mi/mi-out.c (mi_ui_out::do_redirect): Likewise.
12408 * mi/mi-out.h (mi_ui_out::do_redirect): Likewise.
12409 * ui-out.c (ui_out::redirect): Likewise.
12410 * ui-out.h (ui_out::redirect, ui_out::do_redirect): Likewise.
12411 * cli/cli-logging.c (set_logging_redirect): Update call site of
12412 ui_out::redirect.
12413 (handle_redirections): Likewise.
12414 * scm-ports.c (ioscm_with_output_to_port_worker): Likewise.
12415 * top.c (execute_command_to_string): Likewise.
12416 * utils.c (do_ui_out_redirect_pop): Likewise.
12417
df294654
SM
124182017-01-10 Simon Marchi <simon.marchi@ericsson.com>
12419
12420 * stack.c (_initialize_stack): Update "frame" command help message.
12421
f5e6296e
IB
124222017-01-08 Iain Buclaw <ibuclaw@gdcproject.org>
12423
12424 * d-exp.y (CastExpression): Emit UNOP_CAST_TYPE.
12425
0e2d6fa6
YQ
124262017-01-06 Yao Qi <yao.qi@linaro.org>
12427
12428 * x86-linux-nat.h: Include gdb_proc_service.h.
12429
44d6d3f9
YQ
124302017-01-06 Yao Qi <yao.qi@linaro.org>
12431
12432 * ser-base.h: Include serial.h.
12433
656731fe
YQ
124342017-01-06 Yao Qi <yao.qi@linaro.org>
12435
12436 * ppc-linux-tdep.h: Include ppc-tdep.h.
12437
1ca8f924
YQ
124382017-01-06 Yao Qi <yao.qi@linaro.org>
12439
12440 * nat/amd64-linux-siginfo.h: Include signal.h.
12441
bc3008c4
YQ
124422017-01-06 Yao Qi <yao.qi@linaro.org>
12443
12444 * nat/aarch64-linux-hw-point.h: Include break-common.h.
12445
66c80d03
YQ
124462017-01-06 Yao Qi <yao.qi@linaro.org>
12447
12448 * mi/mi-parse.h: Include mi-cmds.h.
12449
051d2dda
YQ
124502017-01-06 Yao Qi <yao.qi@linaro.org>
12451
12452 * inf-loop.c: Don't include "target.h".
12453 * inf-loop.h: Include it here.
12454
8018d34f
YQ
124552017-01-06 Yao Qi <yao.qi@linaro.org>
12456
12457 * dfp.h: Include "dboulest.h" and "expression.h".
12458
c0b8369c
YQ
124592017-01-06 Yao Qi <yao.qi@linaro.org>
12460
12461 * ax-gdb.h: Include "ax.h".
12462
ad5cba2a
YQ
124632017-01-06 Yao Qi <yao.qi@linaro.org>
12464
12465 * Makefile.in (HFILES_NO_SRCDIR): Replace gdb_ptrace.h
12466 with nat/gdb_ptrace.h.
12467
1c33cd7f
YQ
124682017-01-05 Yao Qi <yao.qi@linaro.org>
12469
12470 * mips-fbsd-tdep.c (mips_fbsd_sigframe_init): Move && to
12471 new line.
12472 (mips64_fbsd_sigframe_init): Likewise.
12473
c988ac1d
JB
124742017-01-04 John Baldwin <jhb@FreeBSD.org>
12475
12476 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Use
12477 GDB_OSABI_FREEBSD instead of GDB_OSABI_FREEBSD_ELF.
12478
b268007c
JB
124792017-01-04 John Baldwin <jhb@FreeBSD.org>
12480
12481 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
12482 * NEWS: Mention new FreeBSD/mips native configuration.
12483 * config/mips/fbsd.mh: New file.
12484 * configure.host: Add mips*-*-freebsd*.
12485 * mips-fbsd-nat.c: New file.
12486
387360da
JB
124872017-01-04 John Baldwin <jhb@FreeBSD.org>
12488
12489 * Makefile.in (ALL_TARGET_OBS): Add mips-fbsd-tdep.o.
12490 (ALLDEPFILES): Add mips-fbsd-tdep.c.
12491 * NEWS: Mention new FreeBSD/mips target.
12492 * configure.tgt: Add mips*-*-freebsd*.
12493 * mips-fbsd-tdep.c: New file.
12494 * mips-fbsd-tdep.h: New file.
12495
2aaaf250
YQ
124962017-01-04 Yao Qi <yao.qi@linaro.org>
12497
12498 * dwarf2loc.c (write_pieced_value): Don't use VALUE_FRAME_ID (to),
12499 use c->frame_id when the piece location is DWARF_VALUE_REGISTER.
12500
61baf725
JB
125012017-01-01 Joel Brobecker <brobecker@adacore.com>
12502
6dbb839a 12503 Update copyright year range in all GDB files.
61baf725 12504
c113e7ff 125052017-01-01 Joel Brobecker <brobecker@adacore.com>
ce0db137 12506
c113e7ff 12507 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2016.
ce0db137 12508
c113e7ff 12509For older changes see ChangeLog-2016.
c906108c
SS
12510\f
12511Local Variables:
12512mode: change-log
12513left-margin: 8
12514fill-column: 74
12515version-control: never
57da7796 12516coding: utf-8
c906108c 12517End:
This page took 2.772028 seconds and 4 git commands to generate.