Remove cleanup from frame_prepare_for_sniffer
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
30a9c02f
TT
12017-10-08 Tom Tromey <tom@tromey.com>
2
3 * frame-unwind.c (frame_unwind_try_unwinder): Update.
4 * frame.h (frame_cleanup_after_sniffer): Declare.
5 (frame_prepare_for_sniffer): Return void.
6 * frame.c (frame_cleanup_after_sniffer): No longer static. Change
7 type of argument.
8 (frame_prepare_for_sniffer): Return void.
9
757325a3
TT
102017-10-08 Tom Tromey <tom@tromey.com>
11
12 * utils.h (make_cleanup_value_free): Remove.
13 * utils.c (do_value_free, struct cleanup): Remove.
14 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>:
15 Use gdb_value_up.
16 * value.h (struct value_deleter): New.
17 (gdb_value_up): New typedef.
18
b9c04fb2
TT
192017-10-08 Tom Tromey <tom@tromey.com>
20
21 * symtab.c (free_search_symbols, do_free_search_symbols_cleanup)
22 (make_cleanup_free_search_symbols): Remove.
23 (search_symbols): Return std::vector.
24 (symbol_search::compare_search_syms): Now member of
25 symbol_search. Change arguments.
26 (sort_search_symbols_remove_dups): Change arguments. Rewrite.
27 (symtab_symbol_info, rbreak_command): Update.
28 * symtab.h (struct symbol_search) <next>: Remove.
29 Add constructors.
30 (symbol_search::operator<): New function.
31 (symbol_search::operator==): New function.
32 (search_symbols): Remove std::vector.
33 (free_search_symbols, make_cleanup_free_search_symbols): Remove.
34 (symbol_search::compare_search_syms): Declare.
35
0d28b0a5
YQ
362017-10-06 Yao Qi <yao.qi@linaro.org>
37
38 * Makefile.in (ALL_64_TARGET_OBS): Replace aarch64-insn.o with
39 arch/aarch64-insn.o.
40 Remove one rule.
41 * configure.tgt: Replace aarch64-insn.o with arch/aarch64-insn.o.
42
71917808
YQ
432017-10-06 Yao Qi <yao.qi@linaro.org>
44
45 * Makefile.in (ALL_TARGET_OBS): Replace arm.o, arm-get-next-pcs.o,
46 and arm-linux.o with arch/arm.o, arch/arm-get-next-pcs.o and
47 arch/arm-linux.o respectively.
48 * configure.tgt: Likewise.
49
2081b2b2
YQ
502017-10-06 Yao Qi <yao.qi@linaro.org>
51
52 * Makefile.in (ALL_TARGET_OBS): Rename i386.o to arch/i386.o.
53 * configure.tgt (i386_tobjs): Replace i386.o with arch/i386.o.
54
a1b85d28
PA
552017-10-06 Pedro Alves <palves@redhat.com>
56
57 * windows-nat.c: Include <algorithm>.
58
d97987e2
YQ
592017-10-06 Yao Qi <yao.qi@linaro.org>
60
61 * configure.tgt (i386_tobjs): New variable.
62 (amd64_tobjs): New variable.
63 Set $cpu_obs and $os_obs.
64
f38307f5
YQ
652017-10-06 Yao Qi <yao.qi@linaro.org>
66
67 * Makefile.in (CONFIG_SRC_SUBDIR): New.
68 (ALL_64_TARGET_OBS): Replace amd64.o with arch/amd64.o.
69 (clean): Remove object files and dependency files.
70 (distclean): Remove the directory.
71 * configure.ac: Invoke AC_CONFIG_COMMANDS.
72 * configure: Re-generated.
73 * configure.tgt: Replace amd64.o with arch/amd64.o.
74
2f924de6
JM
752017-10-05 Jose E. Marchesi <jose.marchesi@oracle.com>
76
77 PR build/22188
78 * arm-tdep.c (arm_decode_misc_memhint_neon): Fix decoding of CPS
79 and SETEND.
80
2fd9d7ca
PA
812017-10-05 Pedro Alves <palves@redhat.com>
82
83 * linux-nat.c (linux_child_follow_fork): When following the parent
84 and detaching the child, consult the parent thread's architecture
85 instead of the child's.
86
d13b8493
UW
872017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
88
89 * ax.h: Do not include "doublest.h".
90 (union agent_val): Remove.
91
3b4b2f16
UW
922017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
93
94 * dfp.h (MAX_DECIMAL_STRING): Move to dfp.c.
95 (decimal_to_string): Return std::string object.
96 (decimal_from_string): Accept std::string object. Return bool.
97 (decimal_from_integral, decimal_from_doublest): Remove.
98 (decimal_from_longest): Add prototype.
99 (decimal_from_ulongest): Likewise.
100 (decimal_to_longest): Likewise.
101 (decimal_from_doublest): Likewise.
102 * dfp.c: Do not include "gdbtypes.h" or "value.h".
103 (MAX_DECIMAL_STRING): Move here.
104 (decimal_to_string): Return std::string object.
105 (decimal_from_string): Accept std::string object. Return bool.
106 (decimal_from_integral): Remove, replace by ...
107 (decimal_from_longest, decimal_from_ulongest): ... these new functions.
108 (decimal_to_longest): New function.
109 (decimal_from_floating): Remove, replace by ...
110 (decimal_from_doublest): ... this new function.
111 (decimal_to_doublest): Update to new decimal_to_string interface.
112
113 * value.c (unpack_long): Use decimal_to_longest.
114 * valops.c (value_cast): Use decimal_from_doublest instead of
115 decimal_from_floating. Use decimal_from_[u]longest isntead of
116 decimal_from_integral.
117 * valarith.c (value_args_as_decimal): Likewise.
118 * valprint.c (print_decimal_floating): Update to new
119 decimal_to_string interface.
120 * printcmd.c (printf_decfloat): Likewise.
121 * c-exp.y (parse_number): Update to new decimal_from_string interface.
122
1841ee5d
UW
1232017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
124
125 * doublest.h: Do not include "floatformat.h". Remove stale comments.
126 * gdbtypes.c: Include "floatformat.h".
127 * value.c: Likewise.
128 * m68k-tdep.c: Likewise.
129
130 * findvar.c: Do not include "floatformat.h".
131 * amd64-darwin-tdep.c: Likewise.
132 * arm-linux-tdep.c: Likewise.
133 * i386-darwin-tdep.c: Likewise.
134 * i387-tdep.c: Likewise.
135 * m68k-linux-tdep.c: Likewise.
136 * mep-tdep.c: Likewise.
137 * mips-tdep.c: Likewise.
138 * nios2-tdep.c: Likewise.
139 * s390-linux-tdep.c: Likewise.
140 * sparc-obsd-tdep.c: Likewise.
141 * sparc-tdep.c: Likewise.
142 * sparc64-tdep.c: Likewise.
143 * spu-tdep.c: Likewise.
144 * tic6x-tdep.c: Likewise.
145 * tilegx-tdep.c: Likewise.
146 * vax-tdep.c: Likewise.
147 * xstormy16-tdep.c: Likewise.
148 * xtensa-tdep.c: Likewise.
149
150 * top.c: Do not include "doublest.h".
151 * aarch64-tdep.c: Likewise.
152 * alpha-tdep.c: Likewise.
153 * arm-linux-tdep.c: Likewise.
154 * m68k-linux-tdep.c: Likewise.
155 * tilegx-tdep.c: Likewise.
156 * xstormy16-tdep.c: Likewise.
157
a80a6471
JB
1582017-10-05 John Baldwin <jhb@FreeBSD.org>
159
160 * mips-fbsd-tdep.c (MIPS_INST_ADDIU_A0_SP_N32): Define.
161 (mipsn32_fbsd_sigframe): Define.
162 (mips_fbsd_init_abi): Install mipsn32_fbsd_sigframe unwinder
163 for FreeBSD/mipsn32.
164
12c4bd7f
JB
1652017-10-05 John Baldwin <jhb@FreeBSD.org>
166
167 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_EHDRFLAGS and
168 AT_HWCAP.
169
c91933e9
TG
1702017-10-05 Tristan Gingold <tgingold@free.fr>
171
172 * MAINTAINERS (Misc): Update my email address.
173
5cd63fda
PA
1742017-10-04 Pedro Alves <palves@redhat.com>
175
176 * remote.c (get_remote_arch_state): New 'gdbarch' parameter. Use
177 it instead of target_gdbarch.
178 (get_remote_state, get_remote_packet_size): Adjust
179 get_remote_arch_state calls, passing down target_gdbarch
180 explicitly.
181 (packet_reg_from_regnum, packet_reg_from_pnum): New parameter
182 'gdbarch' and use it instead of target_gdbarch.
183 (get_memory_packet_size): Adjust get_remote_arch_state calls,
184 passing down target_gdbarch explicitly.
185 (struct stop_reply) <arch>: New field.
186 (remote_parse_stop_reply): Use the stopped thread's architecture,
187 not the current inferior's. Save the architecture in the
188 stop_reply.
189 (process_stop_reply): Use the stop reply's architecture.
190 (process_g_packet, remote_fetch_registers)
191 (remote_prepare_to_store, store_registers_using_G)
192 (remote_store_registers): Adjust get_remote_arch_state calls,
193 using the regcache's architecture.
194 (remote_get_trace_status): Adjust get_remote_arch_state calls,
195 passing down target_gdbarch explicitly.
196 * spu-multiarch.c (spu_thread_architecture): Defer to the target
197 beneath instead of calling target_gdbarch.
198 * target.c (default_thread_architecture): Use the specified
199 inferior's architecture, instead of the current inferior's
200 architecture (via target_gdbarch).
201
ed4227b7
PA
2022017-10-04 Pedro Alves <palves@redhat.com>
203
204 * regcache.c (get_thread_arch_regcache): Remove null_ptid special
205 case.
206 (regcache_print): Handle !target_has_registers here instead.
207
55b11ddf
PA
2082017-10-04 Pedro Alves <palves@redhat.com>
209
210 * frame.c (create_test_frame): Delete.
211 * frame.h (create_test_frame): Delete.
212 * gdbarch-selftests.c: Include gdbthread.h and target.h.
213 (class regcache_test): Delete.
214 (test_target_has_registers, test_target_has_stack)
215 (test_target_has_memory, test_target_prepare_to_store)
216 (test_target_store_registers): New functions.
217 (test_target_ops): New class.
218 (register_to_value_test): Error out if there's already a
219 process_stratum (or higher) target pushed. Create a fuller mock
220 environment, with mock target_ops, inferior, address space, thread
221 and inferior_ptid.
222 * progspace.c (struct address_space): Move to ...
223 * progspace.h (struct address_space): ... here.
224 * regcache.h (regcache::~regcache, regcache::raw_write)
225 [GDB_SELF_TEST]: No longer virtual.
226
4c71c105
SM
2272017-10-04 Simon Marchi <simon.marchi@ericsson.com>
228
229 * mi/mi-main.c (list_available_thread_groups): Reverse filter logic.
230
73dcd72d
PA
2312017-10-04 Pedro Alves <palves@redhat.com>
232
233 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Move code
234 out of 'between TRY and CATCH'.
235
44704526
PA
2362017-10-04 Pedro Alves <palves@redhat.com>
237
238 * cli/cli-cmds.c (complete_command): Add missing END_CATCH.
239 * common/common-exceptions.h (TRY): Open an outermost scope.
240 Expand intro comment.
241 (CATCH): Reindent.
242 (END_CATCH): Close the outermost scope.
243 * completer.c (complete_line_internal): Add missing END_CATCH.
244
bc3b087d
SDJ
2452017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
246
247 * NEWS (Changes since GDB 8.0): Add entry about new
248 'set-cwd-on-gdbserver' feature.
249 (New remote packets): Add entry for QSetWorkingDir.
250 * common/common-inferior.h (set_inferior_cwd): New prototype.
251 * infcmd.c (set_inferior_cwd): Remove "static".
252 (show_cwd_command): Expand text to include remote debugging.
253 * remote.c: Add PACKET_QSetWorkingDir.
254 (remote_protocol_features) <QSetWorkingDir>: New entry for
255 PACKET_QSetWorkingDir.
256 (extended_remote_set_inferior_cwd): New function.
257 (extended_remote_create_inferior): Call
258 "extended_remote_set_inferior_cwd".
259 (_initialize_remote): Call "add_packet_config_cmd" for
260 QSetWorkingDir.
261
d092c5a2
SDJ
2622017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
263
264 * NEWS (New commands): Mention "set/show cwd".
265 * cli/cli-cmds.c (_initialize_cli_cmds): Mention "set cwd" on
266 "cd" command's help text.
267 * common/common-inferior.h (get_inferior_cwd): New prototype.
268 * infcmd.c (inferior_cwd_scratch): New global variable.
269 (set_inferior_cwd): New function.
270 (get_inferior_cwd): Likewise.
271 (set_cwd_command): Likewise.
272 (show_cwd_command): Likewise.
273 (_initialize_infcmd): Add "set/show cwd" commands.
274 * inferior.h (class inferior) <cwd>: New field.
275 * nat/fork-inferior.c: Include "gdb_tilde_expand.h".
276 (fork_inferior): Change inferior's cwd before its execution.
277 * windows-nat.c (windows_create_inferior): Pass inferior's cwd
278 to CreateProcess.
279
7da0a886
SDJ
2802017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
281
282 * Makefile.in (SFILES): Add gdb_tilde_expand.c.
283 (HFILES_NO_SRCDIR): Add gdb_tilde_expand.h.
284 (COMMON_OBS): Add gdb_tilde_expand.o.
285 * common/gdb_tilde_expand.c: New file.
286 * common/gdb_tilde_expand.h: Likewise.
287
db8dd160
MR
2882017-10-03 Maciej W. Rozycki <macro@imgtec.com>
289
290 * gdbarch.sh (objfile): Remove duplicate declaration.
291 * gdbarch.h: Regenerate.
292
f8bfbf22
TT
2932017-10-03 Tom Tromey <tom@tromey.com>
294
295 * utils.c (internal_vproblem): Use string_vprintf.
296
5178ed48
TT
2972017-10-03 Tom Tromey <tom@tromey.com>
298
299 * printcmd.c (info_symbol_command): Use std::string.
300
8cff8730
TT
3012017-10-03 Tom Tromey <tom@tromey.com>
302
303 * top.c (gdb_safe_append_history): Use std::string.
304
895b8f30
TT
3052017-10-03 Tom Tromey <tom@tromey.com>
306
307 * event-top.c (stdin_event_handler): Update.
308 * main.c (captured_main_1): Update.
309 * top.h (make_delete_ui_cleanup): Remove.
310 (struct ui): Add constructor and destructor.
311 (new_ui, delete_ui): Remove.
312 * top.c (make_delete_ui_cleanup): Remove.
313 (new_ui_command): Use std::unique_ptr.
314 (delete_ui_cleanup): Remove.
315 (ui::ui): Rename from new_ui. Update.
316 (free_ui): Remove.
317 (ui::~ui): Rename from delete_ui. Update.
318
0efef640
TT
3192017-10-03 Tom Tromey <tom@tromey.com>
320
321 * symfile.c (load_progress): Use gdb::byte_vector.
322
245ad7d3
TT
3232017-10-03 Tom Tromey <tom@tromey.com>
324
325 * mi/mi-main.c (mi_cmd_trace_frame_collected): Remove unused
326 declaration.
327 * printcmd.c (x_command): Remove unused declaration.
328 * symfile.c (symbol_file_command): Remove unused declaration.
329
e05550d7
TT
3302017-10-03 Tom Tromey <tom@tromey.com>
331
332 * utils.c (internal_vproblem): Use std::string.
333 (defaulted_query): Likewise.
334
b95de2b7
TT
3352017-10-03 Tom Tromey <tom@tromey.com>
336
337 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Update.
338 * top.c (execute_command_to_string): Update.
339 * utils.c (make_cleanup_restore_page_info): Remove.
340 (do_restore_page_info_cleanup): Remove.
341 (set_batch_flag_and_restore_page_info):
342 New.
343 (make_cleanup_restore_page_info): Remove.
344 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
345 (~set_batch_flag_and_restore_page_info): New
346 (make_cleanup_restore_uinteger): Remove.
347 (make_cleanup_restore_integer): Remove.
348 (struct restore_integer_closure): Remove.
349 (restore_integer): Remove.
350 * utils.h (struct set_batch_flag_and_restore_page_info): New
351 class.
352 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
353 (make_cleanup_restore_page_info): Remove.
354 (make_cleanup_restore_uinteger) Remove.
355 (make_cleanup_restore_integer) Remove.
356
07036511
TT
3572017-10-03 Tom Tromey <tom@tromey.com>
358
359 * record-full.h (record_full_gdb_operation_disable_set): Return
360 scoped_restore_tmpl<int>.
361 * infrun.c (adjust_pc_after_break): Update.
362 (handle_signal_stop): Update.
363 * record-full.c (record_full_gdb_operation_disable_set): Return
364 scoped_restore_tmpl<int>.
365 (record_full_wait_1, record_full_insert_breakpoint)
366 (record_full_remove_breakpoint, record_full_save)
367 (record_full_goto_insn): Update.
368
45320ffa
TT
3692017-10-02 Tom Tromey <tom@tromey.com>
370
371 PR rust/22236:
372 * rust-lang.c (rust_val_print_str): New function.
373 (val_print_struct): Call it.
374 (rust_subscript): Preserve name of slice type.
375
b3e3859b
TT
3762017-10-02 Tom Tromey <tom@tromey.com>
377
378 * rust-lang.c (rust_subscript): Handle slices in
379 EVAL_AVOID_SIDE_EFFECTS case.
380
01af5e0d
TT
3812017-10-02 Tom Tromey <tom@tromey.com>
382
383 * rust-lang.c (rust_slice_type_p): Recognize &str as a slice type.
384
888e3ddb
TT
3852017-10-02 Tom Tromey <tom@tromey.com>
386
387 * rust-lang.h (rust_slice_type): Add "extern".
388
cc536b21
PA
3892017-10-02 Tom Tromey <tom@tromey.com>
390 Pedro Alves <palves@redhat.com>
391
392 * ada-lang.h (ada_exc_info::operator<): Make const.
393 (ada_exc_info::operator==): Make const.
394 * ada-lang.c (ada_exc_info::operator<, ada_exc_info::operator==):
395 Make const.
396
386c8614
TT
3972017-09-29 Tom Tromey <tom@tromey.com>
398
399 * target.c (read_whatever_is_readable): Change type of "result".
400 Update.
401 (free_memory_read_result_vector): Remove.
402 (read_memory_robust): Change return type. Update.
403 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Update. Use
404 bin2hex, std::string.
405 * target.h (memory_read_result_s): Remove typedef.
406 (free_memory_read_result_vector): Remove.
407 (read_memory_robust): Return std::vector.
408
789c4b5e
TT
4092017-09-29 Tom Tromey <tom@tromey.com>
410
411 * mi/mi-main.c (captured_mi_execute_command): Use scope_restore.
412
ab816a27
TT
4132017-09-29 Tom Tromey <tom@tromey.com>
414
415 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Update.
416 * ada-lang.h (struct ada_exc_info): Remove typedef. Declare
417 operator< and operator==.
418 (ada_exceptions_list): Return a std::vector.
419 * ada-lang.c (ada_exc_info::operator<): Rename from
420 compare_ada_exception_info.
421 (ada_exc_info::operator==): New.
422 (sort_remove_dups_ada_exceptions_list): Change type of
423 "exceptions".
424 (ada_add_standard_exceptions, ada_add_exceptions_from_frame)
425 (ada_add_global_exceptions): Likewise.
426 (ada_exceptions_list_1): Return a std::vector.
427 (ada_exceptions_list): Likewise.
428
52f9abe4
TT
4292017-09-29 Tom Tromey <tom@tromey.com>
430
431 * mi/mi-main.c (struct print_one_inferior_data) <inferiors>: Now a
432 'std::set *'.
433 (print_one_inferior): Update.
434 (free_vector_of_ints): Remove.
435 (list_available_thread_groups): Change "ids" to std::set.
436 (mi_cmd_list_thread_groups): Update.
437 (struct collect_cores_data) <core>: Now a std::set.
438 (collect_cores): Update.
439 (unique): Remove.
440 (print_one_inferior): Update.
441
dcd5ddcc
TT
4422017-09-29 Tom Tromey <tom@tromey.com>
443
444 * mi/mi-main.c (mi_execute_cli_command): Use std::string.
445 (mi_execute_async_cli_command): Likewise.
446 (mi_cmd_trace_frame_collected): Use field_fmt.
447
45d288cc
TT
4482017-09-29 Tom Tromey <tom@tromey.com>
449
450 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Use
451 gdb::byte_vector.
452
6afe2f4a
TT
4532017-09-29 Tom Tromey <tom@tromey.com>
454
455 * mi/mi-parse.c (mi_parse): Remove unused declaration.
456
9813429a
TT
4572017-09-29 Tom Tromey <tom@tromey.com>
458
459 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Don't copy "oarg".
460
2d6960b4
TT
4612017-09-29 Tom Tromey <tom@tromey.com>
462
463 * varobj.h (varobj_gen_name): Return std::string.
464 * varobj.c (varobj_gen_name): Return std::string.
465 * mi/mi-cmd-var.c (mi_cmd_var_create): Use std::string.
466 (mi_cmd_var_delete): Don't copy "name".
467
784c453a
TT
4682017-09-29 Tom Tromey <tom@tromey.com>
469
470 * mi/mi-cmd-break.c (mi_argv_to_format): Return std::string.
471 (mi_cmd_break_insert_1): Update.
472
a9bc57b9
TT
4732017-09-29 Tom Tromey <tom@tromey.com>
474
475 * target.h (make_scoped_defer_target_commit_resume): Update.
476 * target.c (make_scoped_defer_target_commit_resume): Rename from
477 make_cleanup_defer_target_commit_resume. Return a
478 scoped_restore.
479 * infrun.c (proceed): Use make_scoped_defer_target_commit_resume.
480
9754d8c4
TT
4812017-09-29 Tom Tromey <tom@tromey.com>
482
483 * main.c (captured_main_1): Remove unused declaration.
484 * spu-multiarch.c (parse_spufs_run): Remove unused declaration.
485
99ef965c
TT
4862017-09-29 Tom Tromey <tom@tromey.com>
487
488 * symtab.c (search_symbols): Remove unused outer cleanup.
489 (make_source_files_completion_list): Remove unused declaration.
490
42518ba7
TT
4912017-09-29 Tom Tromey <tom@tromey.com>
492
493 * mt-tdep.c (mt_push_dummy_call): Use gdb::byte_vector.
494
726b2169
TT
4952017-09-29 Tom Tromey <tom@tromey.com>
496
497 * xstormy16-tdep.c (xstormy16_push_dummy_call): Use
498 gdb::byte_vector.
499
55b06432
TT
5002017-09-29 Tom Tromey <tom@tromey.com>
501
502 * complaints.c (vcomplaint): Use std::string.
503
8abcee91
TT
5042017-09-29 Tom Tromey <tom@tromey.com>
505
506 * tracepoint.c (trace_variable_command): Use std::string.
507 (encode_actions_1): Remove unused declarations.
508 (create_tsv_from_upload): Use std::string.
509
6ad94bc7
TT
5102017-09-29 Tom Tromey <tom@tromey.com>
511
512 * cp-support.c (gdb_demangle): Use std::string.
513
2003f3d8
TT
5142017-09-29 Tom Tromey <tom@tromey.com>
515
516 * stack.c (parse_frame_specification): Use std::string
517 (info_frame_command): Use gdb::unique_xmalloc_ptr.
518
8f8accb5
TT
5192017-09-29 Tom Tromey <tom@tromey.com>
520
521 * tilegx-tdep.c (tilegx_push_dummy_call): Use gdb::byte_vector.
522
200aa7b1
TT
5232017-09-29 Tom Tromey <tom@tromey.com>
524
525 * utils.c (vfprintf_maybe_filtered): Use std::string.
526 (vfprintf_unfiltered): Likewise.
527
606aae8a
TT
5282017-09-29 Tom Tromey <tom@tromey.com>
529
530 * event-top.c (top_level_prompt): Return std::string.
531 (display_gdb_prompt): Update.
532
bd413795
TT
5332017-09-29 Tom Tromey <tom@tromey.com>
534
535 * unittests/common-utils-selftests.c (format): New function.
536 (string_vprintf_tests): New function.
537 (_initialize_common_utils_selftests): Register new tests.
538 * common/common-utils.c (string_vprintf): New function.
539 * common/common-utils.h (string_vprintf): Declare.
540
256642e8
PA
5412017-09-29 Pedro Alves <palves@redhat.com>
542
543 * common/rsp-low.c (unpack_varlen_hex): Constify.
544 * common/rsp-low.h (unpack_varlen_hex): Constify.
545 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
546 Constify.
547 * remote.c (remote_set_permissions, read_ptid)
548 (remote_current_thread, remote_get_threads_with_qthreadinfo)
549 (remote_static_tracepoint_marker_at)
550 (remote_static_tracepoint_markers_by_strid)
551 (stop_reply_extract_thread, remote_parse_stop_reply): Constify.
552 * tracepoint.c (parse_trace_status, parse_tracepoint_status)
553 (parse_tracepoint_definition, parse_tsv_definition)
554 (parse_static_tracepoint_marker_definition): Constify.
555 * tracepoint.h (parse_static_tracepoint_marker_definition)
556 (parse_trace_status, parse_tracepoint_status)
557 (parse_tracepoint_definition, parse_tsv_definition): Constify.
558
b6bb3468
PA
5592017-09-29 Pedro Alves <palves@redhat.com>
560
561 * remote.c (target_buf, target_buf_size): Delete.
562 (remote_get_noisy_reply): Remove buf_p and sizeof_buf parameters.
563 Use the connection's packet buffer instead.
564 All callers adjusted.
565 (_initialize_remote): Remove references to target_buf and
566 target_buf_size.
567
b2f8eb7a
PA
5682017-09-28 Pedro Alves <palves@redhat.com>
569
570 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
571 unittests/common-utils-selftests.c.
572 (SUBDIR_UNITTESTS_OBS): Add common-utils-selftests.o.
573 (COMMON_OBS): Remove utils-selftests.o.
574 * utils-selftests.c: Move to ...
575 * unittests/common-utils-selftests.c: ... here and rename self
576 test to "string_printf".
577
08302ed2
DE
5782017-09-28 Alexander Shaposhnikov <alexander.v.shaposhnikov@gmail.com> (tiny patch)
579
580 * dwarf2read.c (open_and_init_dwp_file): Protect against dwp_file
581 having NULL cus or tus.
582
96a5a1d3
UW
5832017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
584
585 * arm-tdep.c: (convert_from_extended): Remove.
586 (convert_to_extended): Likewise.
587 (arm_extract_return_value): Use convert_typed_floating.
588 (arm_store_return_value): Likewise.
589
590 * sh-tdep.h (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
591 * sh-tdep.c: Do not include "floatformat.h".
592 (sh_littlebyte_bigword_type): New function.
593 (sh_register_convert_to_virtual): Use convert_typed_floating.
594 (sh_register_convert_to_raw): Likewise.
595 * sh64-tdep.c: (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
596 (sh64_littlebyte_bigword_type): New function.
597 (sh64_extract_return_value): Use convert_typed_floating.
598 (sh64_register_convert_to_virtual): Likewise.
599 (sh64_register_convert_to_raw): Likewise.
600
0db7851f
UW
6012017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
602
603 * doublest.h (floatformat_from_type): Move to gdbtypes.h.
604 * doublest.c (floatformat_from_type): Move to gdbtypes.c.
605
606 * gdbtypes.h (union type_specific): Make field floatformat hold
607 just a single struct floatformat, not an array.
608 (floatformat_from_type): Move here.
609 * gdbtypes.c (floatformat_from_type): Move here. Update to
610 changed TYPE_FLOATFORMAT definition.
611 (verify_floatformat): Update to changed TYPE_FLOATFORMAT.
612 (recursive_dump_type): Likewise.
613 (init_float_type): Install correct floatformat for byte order.
614 (arch_float_type): Likewise.
615
77b7c781
UW
6162017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
617
618 * gdbtypes.c (init_type): Change incoming argument from
619 length-in-bytes to length-in-bits. Assert length is a
620 multiple of TARGET_CHAR_BITS.
621 (arch_type, arch_flags_type): Likewise.
622 (init_integer_type): Update call to init_type.
623 (init_character_type): Likewise.
624 (init_boolean_type): Likewise.
625 (init_float_type): Likewise.
626 (init_decfloat_type): Likewise.
627 (init_complex_type): Likewise.
628 (init_pointer_type): Likewise.
629 (objfile_type): Likewise.
630 (arch_integer_type): Update call to arch_type.
631 (arch_character_type): Likewise.
632 (arch_boolean_type): Likewise.
633 (arch_float_type): Likewise.
634 (arch_decfloat_type): Likewise.
635 (arch_complex_type): Likewise.
636 (arch_pointer_type): Likewise.
637 (gdbtypes_post_init): Likewise.
638
639 * dwarf2read.c (dwarf2_init_float_type): Update call to init_type.
640 (read_base_type): Likewise.
641 * mdebugread.c (basic_type): Likewise.
642 * stabsread.c (dbx_init_float_type): Likewise.
643 (rs6000_builtin_type): Likewise.
644 (read_range_type): Likewise. Also, fix call to init_integer_type
645 with erroneous length argument.
646
647 * ada-lang.c (ada_language_arch_info): Update call to arch_type.
648 * d-lang.c (build_d_types): Likewise.
649 * f-lang.c (build_fortran_types): Likewise.
650 * go-lang.c (build_go_types): Likewise.
651 * opencl-lang.c (build_opencl_types): Likewise.
652 * jit.c (finalize_symtab): Likewise.
653 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
654 (build_std_type_info_type): Likewise.
655 * target-descriptions.c (tdesc_gdb_type): Likewise. Also,
656 update call to arch_flags_type.
657
658 * linux-tdep.c (linux_get_siginfo_type_with_fields): Update call to
659 arch_type.
660 * fbsd-tdep.c (fbsd_get_siginfo_type): Likewise.
661 * windows-tdep.c (windows_get_tlb_type): Likewise.
662
663 * avr-tdep.c (avr_gdbarch_init): Update call to arch_type.
664 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
665 * m32c-tdep.c (make_types): Likewise.
666 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
667 (rl78_psw_type): Update call to arch_flags_type.
668 * m68k-tdep.c (m68k_ps_type): Update call to arch_flags_type.
669 * rx-tdep.c (rx_psw_type): Likewise.
670 (rx_fpsw_type): Likewise.
671 * sparc-tdep.c (sparc_psr_type): Likewise.
672 (sparc_fsr_type): Likewise.
673 * sparc64-tdep.c (sparc64_pstate_type): Likewise.
674 (sparc64_ccr_type): Likewise.
675 (sparc64_fsr_type): Likewise.
676 (sparc64_fprs_type): Likewise.
677
f21b4d5c
TT
6782017-09-27 Tom Tromey <tom@tromey.com>
679
680 * findcmd.c (find_command): Constify.
681
643c2ffa
TT
6822017-09-27 Tom Tromey <tom@tromey.com>
683
684 * ada-tasks.c (task_command_1, task_command): Constify.
685
510e5e56
TT
6862017-09-27 Tom Tromey <tom@tromey.com>
687
688 * symtab.c (maintenance_print_symbol_cache)
689 (maintenance_flush_symbol_cache)
690 (maintenance_print_symbol_cache_statistics): Constify.
691
e503b191
TT
6922017-09-27 Tom Tromey <tom@tromey.com>
693
694 * inferior.c (detach_inferior_command, kill_inferior_command)
695 (inferior_command): Constify.
696
4e001312
TT
6972017-09-27 Tom Tromey <tom@tromey.com>
698
699 * regcache.c (regcache_print, maintenance_print_registers)
700 (maintenance_print_raw_registers)
701 (maintenance_print_cooked_registers)
702 (maintenance_print_register_groups)
703 (maintenance_print_remote_registers): Constify.
704
77763700
TT
7052017-09-27 Tom Tromey <tom@tromey.com>
706
707 * printcmd.c (map_display_numbers, undisplay_command)
708 (enable_disable_display_command, enable_display_command)
709 (disable_display_command): Constify.
710
4495129a
TT
7112017-09-27 Tom Tromey <tom@tromey.com>
712
713 * breakpoint.h (delete_command): Don't declare.
714 * breakpoint.c (delete_command, enable_once_command)
715 (enable_count_command, enable_delete_command, breakpoint_1)
716 (maintenance_info_breakpoints, stopin_command, stopat_command)
717 (delete_command, delete_trace_command, save_breakpoints)
718 (save_breakpoints_command, save_tracepoints_command): Constify.
719
3088cf40
TT
7202017-09-27 Tom Tromey <tom@tromey.com>
721
722 * macrocmd.c (macro_expand_command, macro_expand_once_command)
723 (skip_ws, extract_identifier, macro_define_command)
724 (macro_undef_command, macro_list_command): Constify.
725
69f476a3
TT
7262017-09-27 Tom Tromey <tom@tromey.com>
727
728 * infcmd.c (environment_info, set_environment_command)
729 (unset_environment_command, path_info, info_proc_cmd_1)
730 (info_proc_cmd_mappings, info_proc_cmd_stat)
731 (info_proc_cmd_status, info_proc_cmd_cwd, info_proc_cmd_cmdline)
732 (info_proc_cmd_exe, info_proc_cmd_all): Constify.
733
c4a3e68e
TT
7342017-09-27 Tom Tromey <tom@tromey.com>
735
736 * i386-tdep.c (i386_mpx_info_bounds, i386_mpx_set_bounds):
737 Constify.
738
c9d31bd6
TT
7392017-09-27 Tom Tromey <tom@tromey.com>
740
741 * symfile-mem.c (add_symbol_file_from_memory_command): Constify.
742
1f3f85eb
TT
7432017-09-27 Tom Tromey <tom@tromey.com>
744
745 * demangle.c (demangle_command): Constify.
746
9c504b5d
TT
7472017-09-27 Tom Tromey <tom@tromey.com>
748
749 * progspace.c (maintenance_info_program_spaces_command):
750 Constify.
751
6663cf91
TT
7522017-09-27 Tom Tromey <tom@tromey.com>
753
754 * compile/compile.c (check_raw_argument, compile_file_command)
755 (compile_code_command, compile_print_command): Constify.
756
34e5fa26
TT
7572017-09-27 Tom Tromey <tom@tromey.com>
758
759 * reggroups.c (maintenance_print_reggroups): Constify.
760
8384c356
TT
7612017-09-27 Tom Tromey <tom@tromey.com>
762
763 * dwarf2read.c (save_gdb_index_command): Constify.
764
884beb0c
TT
7652017-09-27 Tom Tromey <tom@tromey.com>
766
767 * stap-probe.c (info_probes_stap_command): Constify.
768
e0b2930c
TT
7692017-09-27 Tom Tromey <tom@tromey.com>
770
771 * fork-child.c (unset_exec_wrapper_command): Constify.
772
f938677d
TT
7732017-09-27 Tom Tromey <tom@tromey.com>
774
775 * btrace.c (get_uint, get_context_size, no_chunk)
776 (maint_btrace_packet_history_cmd)
777 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
778 (maint_info_btrace_cmd): Constify.
779
8949cb87
TT
7802017-09-27 Tom Tromey <tom@tromey.com>
781
782 * reverse.c (delete_bookmark_command): Constify.
783
ac88e2de
TT
7842017-09-27 Tom Tromey <tom@tromey.com>
785
786 * remote.c (set_memory_packet_size)
787 (set_memory_write_packet_size, show_memory_write_packet_size)
788 (set_memory_read_packet_size, show_memory_read_packet_size)
789 (compare_sections_command, packet_command, remote_put_command)
790 (remote_get_command, remote_delete_command): Constify.
791
bd4c9dfe
TT
7922017-09-27 Tom Tromey <tom@tromey.com>
793
794 * mips-tdep.c (show_mipsfpu_command, set_mipsfpu_single_command)
795 (set_mipsfpu_double_command, set_mipsfpu_none_command)
796 (set_mipsfpu_auto_command): Constify.
797
5e93d4c6
TT
7982017-09-27 Tom Tromey <tom@tromey.com>
799
800 * cli/cli-cmds.h (cd_command): Constify.
801 * cli/cli-cmds.c (cd_command): Constify.
802
fc41a75b
TT
8032017-09-27 Tom Tromey <tom@tromey.com>
804
805 * thread.c (thread_name_command, thread_find_command): Constify.
806
67810076
TT
8072017-09-27 Tom Tromey <tom@tromey.com>
808
809 * probe.c (enable_probes_command, disable_probes_command):
810 Constify.
811
1d8b34a7
TT
8122017-09-27 Tom Tromey <tom@tromey.com>
813
814 * symfile.c (symbol_file_command): Constify.
815 * gdbcore.h (deprecated_file_changed_hook): Constify.
816 * exec.c (deprecated_file_changed_hook, exec_file_command)
817 (file_command): Constify.
818 * defs.h (symbol_file_command): Constify.
819
442019e1
TT
8202017-09-27 Tom Tromey <tom@tromey.com>
821
822 * remote-fileio.c (set_system_call_allowed)
823 (show_system_call_allowed): Constify.
824
2983f7cb
TT
8252017-09-27 Tom Tromey <tom@tromey.com>
826
827 * tracepoint.c (delete_trace_variable_command)
828 (tfind_end_command, tfind_start_command, tfind_pc_command)
829 (tfind_tracepoint_command, tfind_line_command)
830 (tfind_range_command, tfind_outside_command): Constify.
831
4fd41b24
TT
8322017-09-27 Tom Tromey <tom@tromey.com>
833
834 * ax-gdb.c (maint_agent_printf_command, agent_command)
835 (agent_eval_command): Constify.
836
f2fc3015
TT
8372017-09-27 Tom Tromey <tom@tromey.com>
838
839 * tracepoint.c (info_scope_command): Constify.
840 * python/python.c (gdbpy_decode_line): Constify.
841 * python/py-breakpoint.c (bppy_init): Constify.
842 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Constify.
843 * location.h: (new_linespec_location)
844 (string_to_event_location_basic, string_to_event_location):
845 Constify.
846 * location.c (new_linespec_location)
847 (string_to_event_location_basic, string_to_event_location):
848 Constify.
849 * linespec.h (decode_line_with_current_source)
850 (decode_line_with_last_displayed, linespec_lex_to_end): Constify.
851 * linespec.c (linespec_lex_to_end)
852 (decode_line_with_current_source)
853 (decode_line_with_last_displayed): Constify.
854 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x):
855 Constify.
856 * cli/cli-cmds.c (edit_command, list_command): Constify.
857 * breakpoint.h (until_break_command, watch_command_wrapper)
858 (awatch_command_wrapper, rwatch_command_wrapper)
859 (init_ada_exception_breakpoint): Constify.
860 * breakpoint.c (break_command_1, dprintf_command)
861 (break_range_command, watch_command_wrapper)
862 (rwatch_command_wrapper, awatch_command_wrapper)
863 (until_break_command, init_ada_exception_breakpoint)
864 (strace_marker_create_sals_from_location, trace_command)
865 (ftrace_command, strace_command, struct tracepoint): Constify.
866 * ax-gdb.c (agent_command_1): Constify.
867 * ada-lang.c (ada_exception_sal): Constify.
868
8c2f95f4
TT
8692017-09-27 Tom Tromey <tom@tromey.com>
870
871 * record.c (cmd_record_delete, cmd_record_stop, cmd_record_save)
872 (cmd_record_goto_begin, cmd_record_goto_end, get_insn_number)
873 (get_context_size, no_chunk, get_insn_history_modifiers)
874 (cmd_record_insn_history, get_call_history_modifiers)
875 (cmd_record_call_history): Constify.
876
a0d65762
TT
8772017-09-27 Tom Tromey <tom@tromey.com>
878
879 * source.c (show_substitute_path_command)
880 (unset_substitute_path_command, set_substitute_path_command):
881 Constify.
882
58971144
TT
8832017-09-27 Tom Tromey <tom@tromey.com>
884
885 * typeprint.c (maintenance_print_type): Constify.
886 * maint.c (maintenance_dump_me, maintenance_demangle)
887 (maintenance_time_display, maintenance_info_sections)
888 (maintenance_print_statistics, maintenance_deprecate)
889 (maintenance_undeprecate): Constify.
890 (maintenance_do_deprecate): Constify. Use std::string.
891 (maintenance_selftest): Constify.
892 * gdbtypes.h (maintenance_print_type): Constify.
893
c482f52c
TT
8942017-09-27 Tom Tromey <tom@tromey.com>
895
896 * hppa-tdep.c (unwind_command): Constify.
897
e100df1a
TT
8982017-09-27 Tom Tromey <tom@tromey.com>
899
900 * target-descriptions.c (unset_tdesc_filename_cmd)
901 (maint_print_c_tdesc_cmd, maintenance_check_xml_descriptions):
902 Constify.
903
31d56ade
TT
9042017-09-27 Tom Tromey <tom@tromey.com>
905
906 * dummy-frame.c (maintenance_print_dummy_frames): Constify.
907
b961da0b
TT
9082017-09-27 Tom Tromey <tom@tromey.com>
909
910 * tui/tui.c (tui_enable_command, tui_disable_command): Constify.
911
e2d8ae16
TT
9122017-09-27 Tom Tromey <tom@tromey.com>
913
914 * tui/tui-regs.c (tui_reg_command): Constify.
915
863779b0
TT
9162017-09-27 Tom Tromey <tom@tromey.com>
917
918 * skip.c (skip_file_command, skip_function_command)
919 (skip_enable_command, skip_disable_command, skip_delete_command):
920 Constify.
921
cdb34d4a
TT
9222017-09-27 Tom Tromey <tom@tromey.com>
923
924 * record-btrace.c (cmd_record_btrace_bts_start)
925 (cmd_record_btrace_pt_start): Constify.
926
e99c83e7
TT
9272017-09-27 Tom Tromey <tom@tromey.com>
928
929 * symmisc.c (maintenance_print_symbols)
930 (maintenance_print_msymbols, maintenance_print_objfiles)
931 (maintenance_info_symtabs, maintenance_check_symtabs)
932 (maintenance_expand_symtabs, maintenance_info_line_tables):
933 Constify.
934
32faf971
TT
9352017-09-27 Tom Tromey <tom@tromey.com>
936
937 * top.c (new_ui_command): Constify.
938
2cf311eb
TT
9392017-09-27 Tom Tromey <tom@tromey.com>
940
941 * symfile.c (add_symbol_file_command)
942 (remove_symbol_file_command, list_overlays_command)
943 (map_overlay_command, unmap_overlay_command)
944 (overlay_auto_command, overlay_manual_command)
945 (overlay_off_command, overlay_load_command): Constify.
946
e6738699
TT
9472017-09-27 Tom Tromey <tom@tromey.com>
948
949 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
950 (info_spu_mailbox_command, info_spu_dma_command)
951 (info_spu_proxydma_command): Constify.
952
aa360cd5
TT
9532017-09-27 Tom Tromey <tom@tromey.com>
954
955 * cli/cli-logging.c (set_logging_on, set_logging_off): Constify.
956
898241a5
TT
9572017-09-27 Tom Tromey <tom@tromey.com>
958
959 * cli/cli-script.c (user_defined_command): Constify.
960
2d0ac106
TT
9612017-09-27 Tom Tromey <tom@tromey.com>
962
963 * cli/cli-dump.c (dump_memory_command, dump_value_command)
964 (dump_srec_memory, dump_srec_value, dump_ihex_memory)
965 (dump_ihex_value, dump_verilog_memory, dump_verilog_value)
966 (dump_tekhex_memory, dump_tekhex_value, dump_binary_memory)
967 (dump_binary_value, append_binary_memory, append_binary_value):
968 Constify.
969 (struct dump_context) <func>: Constify.
970 (add_dump_command): Update.
971
dede02ce
TT
9722017-09-27 Tom Tromey <tom@tromey.com>
973
974 * cli/cli-cmds.c (show_version, show_configuration)
975 (source_command, show_user): Constify.
976
d3cb6b99
TT
9772017-09-27 Tom Tromey <tom@tromey.com>
978
979 * target.c (maintenance_print_target_stack): Constify.
980
1970a12f
TT
9812017-09-27 Tom Tromey <tom@tromey.com>
982
983 * interps.c (interpreter_exec_cmd): Constify.
984
41243651
TT
9852017-09-27 Tom Tromey <tom@tromey.com>
986
987 * record-full.c (cmd_record_full_restore): Constify.
988
4465d9db
TT
9892017-09-27 Tom Tromey <tom@tromey.com>
990
991 * memattr.c (enable_mem_command, disable_mem_command)
992 (delete_mem_command): Constify.
993
ad25e423
TT
9942017-09-27 Tom Tromey <tom@tromey.com>
995
996 * value.c (show_convenience): Constify.
997
d64097b1
TT
9982017-09-27 Tom Tromey <tom@tromey.com>
999
1000 * gdbcore.h (core_file_command): Update.
1001 * corefile.c (core_file_command): Constify.
1002
4d4589ef
TT
10032017-09-27 Tom Tromey <tom@tromey.com>
1004
1005 * user-regs.c (maintenance_print_user_registers): Constify.
1006
32a7bf17
TT
10072017-09-27 Tom Tromey <tom@tromey.com>
1008
1009 * cp-namespace.c (maintenance_cplus_namespace): Constify.
1010
4a475551
TT
10112017-09-27 Tom Tromey <tom@tromey.com>
1012
1013 * cp-support.c (first_component_command): Constify.
1014
990b9f9f
TT
10152017-09-27 Tom Tromey <tom@tromey.com>
1016
1017 * psymtab.c (maintenance_print_psymbols)
1018 (maintenance_info_psymtabs, maintenance_check_psymtabs):
1019 Constify.
1020
c281872e
TT
10212017-09-27 Tom Tromey <tom@tromey.com>
1022
1023 * windows-tdep.c (display_tib): Constify.
1024
5b64bf74
TT
10252017-09-27 Tom Tromey <tom@tromey.com>
1026
1027 * linux-fork.c (delete_checkpoint_command)
1028 (detach_checkpoint_command): Constify.
1029
4ada038f
TT
10302017-09-27 Tom Tromey <tom@tromey.com>
1031
1032 * cp-abi.c (set_cp_abi_cmd, show_cp_abi_cmd): Constify.
1033
57f5a81b
TT
10342017-09-27 Tom Tromey <tom@tromey.com>
1035
1036 * arc-tdep.c (dump_arc_instruction_command): Constify.
1037
b0a8e6c4
TT
10382017-09-27 Tom Tromey <tom@tromey.com>
1039
1040 * valprint.c (set_radix, show_radix): Constify.
1041
8d97dc1c
TT
10422017-09-27 Tom Tromey <tom@tromey.com>
1043
1044 * dtrace-probe.c (info_probes_dtrace_command): Constify.
1045
eb7c454d
TT
10462017-09-27 Tom Tromey <tom@tromey.com>
1047
1048 * command.h (not_just_help_class_command): Update.
1049 * cli/cli-decode.h (not_just_help_class_command): Update.
1050 * cli/cli-decode.c (not_just_help_class_command): Constify.
1051
e4e33335
TT
10522017-09-27 Tom Tromey <tom@tromey.com>
1053
1054 * gdb_bfd.c (maintenance_info_bfds): Constify.
1055
0450cc4c
TT
10562017-09-27 Tom Tromey <tom@tromey.com>
1057
1058 * cli/cli-decode.c (add_cmd, set_cmd_cfunc): New function
1059 overloads.
1060 (do_add_cmd): Rename from add_cmd. Don't call set_cmd_cfunc.
1061 (do_const_cfunc): New function.
1062 (cmd_cfunc_eq): New overload.
1063 (cli_user_command_p): Check do_const_cfunc.
1064 * cli/cli-decode.h (struct cmd_list_element) <function>: New field
1065 const_cfunc.
1066 * command.h (add_cmd): Add const overload and no-function
1067 overload.
1068 (set_cmd_cfunc): Add const overload.
1069 (cmd_const_cfunc_ftype): Declare.
1070 (cmd_cfunc_eq): Add const overload.
1071 * breakpoint.c, cli-cmds.c, cli-dump.c, guile/scm-cmd.c,
1072 python/py-cmd.c, target.c, tracepoint.c: Use no-function add_cmd
1073 overload.
1074
a9bbfbd8
TT
10752017-09-27 Tom Tromey <tom@tromey.com>
1076
1077 * macroexp.c (get_next_token_for_substitution): New function.
1078 (substitute_args): Call it. Check for __VA_OPT__.
1079
5230b05a
WT
10802017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
1081 Pedro Alves <palves@redhat.com>
1082
1083 * dwarf2read.c (dwarf2_cu): Remove field producer_is_icc and add
1084 producer_is_icc_lt_14.
1085 (producer_is_icc_lt_14): New function.
1086 (check_producer): Add code for checking version of ICC.
1087 (producer_is_icc): Move to producer.c.
1088 (read_structure_type): Restrict ICC workaround to ICC<14.
1089 * producer.c: Include selftest.h.
1090 (producer_is_icc, producer_parsing_tests, _initialize_producer):
1091 New functions.
1092 * producer.h (producer_is_icc): New declaration.
1093
b32b108a
WT
10942017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
1095
1096 * Makefile.in (SFILES): Add producer.c.
1097 (COMMON_OBS): Add producer.o
1098 * amd64-tdep.c (producer.h): Add new include.
1099 * dwarf2read.c (producer.h): Add new include.
1100 * producer.c: New file.
1101 * producer.h: New file.
1102 * utils.c (producer_is_gcc, producer_is_gcc_ge_4): Move to
1103 producer.c.
1104 * utils.h (producer_is_gcc, producer_is_gcc_ge_4): Move to
1105 producer.h.
1106
5007d765
MK
11072017-09-26 Matthias Klose <doko@ubuntu.com>
1108
1109 * configure.ac: Search ncursesw before ncurses.
1110 Check ncursesw/ncurses.h before ncurses/ncurses.h.
1111 * gdb_curses.h: Include <ncursesw/ncurses.h>
1112 * config.in, configure: Regenerate.
1113
281c4447
RO
11142017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1115
1116 PR gdb/22185
1117 * configure.host <*-*-solaris2.[01], *-*-solaris2.[2-9]*>: Mark as
1118 obsolete.
1119 Use gdb_host sol2 for i[34567]86-*-solaris2*, x86_64-*-solaris2*.
1120 Remove i386sol2 support.
1121 * configure.nat <i386sol2>: Remove.
1122 <sol2-64>: Fold into ...
1123 <sol2>: ... this.
1124 Move common settings to default section.
1125 Add sol-thread.o.
1126 * configure.tgt <i[34567]86-*-solaris2.1[0-9]*,
1127 x86_64-*-solaris2.1[0-9]*>: Rename to ...
1128 <i[34567]86-*-solaris2*, x86_64-*-solaris2*>: ... this.
1129 <i[34567]86-*-solaris*>: Remove.
1130 <sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*>: Remove.
1131
1132 * configure.ac: Remove wctype in libw check.
1133 (_MSE_INT_H): Don't define on Solaris 7-9.
1134 <solaris*>: Remove libthread_db.so.1 check.
1135 * configure: Regenerate.
1136 * config.in: Regenerate.
1137
1138 * proc-service.c: Remove PROC_SERVICE_IS_OLD handling.
1139 (gdb_ps_prochandle_t, gdb_ps_read_buf_t, gdb_ps_write_buf_t)
1140 (gdb_ps_size_t): Remove.
1141 Use base types in users.
1142 * sol-thread.c: Likewise, also for gdb_ps_addr_t.
1143
1144 * NEWS (Changes since GDB 8.0): Document Solaris 2.0-9 removal.
1145
39b06c20
RO
11462017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1147
1148 PR build/22206
1149 * sparc64-tdep.c (adi_tag_fd): Print pid as long.
1150 (adi_is_addr_mapped): Likewise.
1151 (PSR_ICC): Don't redefine.
1152 (PSR_IMPL): Likewise.
1153
6c3e20f1
TT
11542017-09-25 Tom Tromey <tom@tromey.com>
1155
1156 * regcache.c (regcache::dump): Use string_printf.
1157
b292235f
TT
11582017-09-25 Tom Tromey <tom@tromey.com>
1159
1160 * regcache.c (class regcache_invalidator): New.
1161 (struct register_to_invalidate): Remove.
1162 (make_cleanup_regcache_invalidate): Remove.
1163 (regcache::raw_write): Use regcache_invalidator.
1164
9ac86b52
TT
11652017-09-25 Tom Tromey <tom@tromey.com>
1166
1167 * spu-tdep.c (spu2ppu_sniffer): Update.
1168 * regcache.h (make_cleanup_regcache_xfree): Don't declare.
1169 * regcache.c (do_regcache_xfree, make_cleanup_regcache_xfree):
1170 Remove.
1171 * ppc-linux-tdep.c (ppu2spu_sniffer): Update.
1172 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Update.
1173 * frame.h (frame_save_as_regcache): Return std::unique_ptr.
1174 * frame.c (frame_save_as_regcache): Return std::unique_ptr.
1175 (frame_pop): Update.
1176
c0e383c6
TT
11772017-09-25 Tom Tromey <tom@tromey.com>
1178
1179 * spu-tdep.c (spu2ppu_dealloc_cache): Use delete.
1180 * regcache.h (regcache_xfree): Don't declare.
1181 * regcache.c (regcache_xfree): Remove.
1182 (do_regcache_xfree): Use delete.
1183 * ppc-linux-tdep.c (ppu2spu_dealloc_cache): Use delete.
1184 * linux-fork.c (free_fork): Use delete.
1185 (fork_save_infrun_state): Likewise.
1186 * jit.c (jit_dealloc_cache): Use delete.
1187 * infrun.c (discard_infcall_suspend_state): Use delete.
1188
791199cc
TT
11892017-09-25 Tom Tromey <tom@tromey.com>
1190
1191 * regcache.h (regcache_xmalloc): Don't declare.
1192 (regcache_raw_set_cached_value): Update comment.
1193 * regcache.c (regcache_xmalloc): Remove.
1194 * ppc-linux-tdep.c (ppu2spu_sniffer): Use new.
1195 * jit.c (jit_frame_sniffer): Use new.
1196 * frame.c (frame_save_as_regcache): Use new.
1197
289e23aa
AA
11982017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
1199
1200 * NEWS: Advertise support for guarded-storage registers on IBM z.
1201
1b63490c
AA
12022017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
1203
1204 * s390-linux-nat.c (have_regset_gs): New static variable.
1205 (s390_linux_fetch_inferior_registers): Handle guarded-storage
1206 control block and guarded-storage broadcast control regsets.
1207 (s390_read_description): Detect whether the target has
1208 guarded-storage support, return appropriate tdesc.
1209 * s390-linux-tdep.c (features/s390-gs-linux64.c): New include.
1210 (features/s390x-gs-linux64.c): Likewise.
1211 (struct gdbarch_tdep) <have_gs>: New field.
1212 (s390_regmap_gs, s390_regmap_gsbc, s390_gs_regset)
1213 (s390_gsbc_regset): New variables.
1214 (s390_iterate_over_regset_sections): Iterate over s390_gs_regset
1215 and s390_gsbc_regset, if applicable.
1216 (s390_core_read_description): Check whether core file was from a
1217 target with guarded-storage support; include appropriate regsets.
1218 (s390_gdbarch_init): Add registers for guarded-storage support.
1219 (_initialize_s390_tdep): Initialize new target descriptions that
1220 include registers for guarded-storage support.
1221 * s390-linux-tdep.h (HWCAP_S390_GS, S390_GSD_REGNUM)
1222 (S390_GSSM_REGNUM, S390_GSEPLA_REGNUM)
1223 (S390_BC_GSD_REGNUM, S390_BC_GSSM_REGNUM): New defines.
1224 (S390_NUM_REGS): Adjust macro definition.
1225 (s390_gs_regset, s390_gsbc_regset, tdesc_s390_gs_linux64)
1226 (tdesc_s390x_gs_linux64): New declarations.
1227
96235dc1
AA
12282017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
1229
1230 * features/s390-gs-linux64.xml: New file.
1231 * features/s390-gs.xml: New file.
1232 * features/s390-gsbc.xml: New file.
1233 * features/s390x-gs-linux64.xml: New file.
1234 * features/Makefile (WHICH): Add s390-gs-linux64 and
1235 s390x-gs-linux64.
1236 (s390-gs-linux64-expedite, s390x-gs-linux64-expedite): New macros.
1237 (XMLTOC): Add s390-gs-linux64.xml and s390x-linux64.xml.
1238 * features/s390-gs-linux64.c: New generated file.
1239 * features/s390x-gs-linux64.c: New file.
1240 * regformats/s390-gs-linux64.dat: New file.
1241 * regformats/s390x-gs-linux64.dat: New file.
1242
b4a7c699
TT
12432017-09-23 Tom Tromey <tom@tromey.com>
1244
1245 * defs.h (make_cleanup_override_quit_handler): Don't declare.
1246
c2f97536
TT
12472017-09-22 Tom Tromey <tom@tromey.com>
1248
1249 * utils.c (class scoped_input_handler) <m_quit_handler>: Change
1250 type to scoped_restore_tmpl.
1251 <scoped_input_handler>: Initialize m_quit_handler directly.
1252
43573013
SDJ
12532017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
1254
1255 * cli/cli-cmds.c (pwd_command): Use "getcwd (NULL, 0)".
1256 (cd_command): Likewise. Free "current_directory" before
1257 assigning to it.
1258 * main.c (captured_main_1): Use "getcwd (NULL, 0)".
1259 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Likewise.
1260 * top.c (gdb_dirbuf): Remove global declaration.
1261 * top.h (gdb_dirbuf): Likewise.
1262
6ec2e0f5
SDJ
12632017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
1264
1265 * gnulib/aclocal.m4: Regenerate.
1266 * gnulib/config.in: Regenerate.
1267 * gnulib/configure: Regenerate.
1268 * gnulib/import/Makefile.am: Regenerate.
1269 * gnulib/import/Makefile.in: Regenerate.
1270 * gnulib/import/assure.h: New file.
1271 * gnulib/import/at-func.c: Likewise
1272 * gnulib/import/chdir-long.c: New file.
1273 * gnulib/import/chdir-long.h: New file.
1274 * gnulib/import/cloexec.c: New file.
1275 * gnulib/import/cloexec.h: New file.
1276 * gnulib/import/close.c: New file.
1277 * gnulib/import/closedir.c: New file.
1278 * gnulib/import/dirent-private.h: New file.
1279 * gnulib/import/dup-safer.c: New file.
1280 * gnulib/import/dup.c: New file.
1281 * gnulib/import/dup2.c: New file.
1282 * gnulib/import/error.c: New file.
1283 * gnulib/import/error.h: New file.
1284 * gnulib/import/exitfail.c: New file.
1285 * gnulib/import/exitfail.h: New file.
1286 * gnulib/import/fchdir.c: New file.
1287 * gnulib/import/fcntl.c: New file.
1288 * gnulib/import/fcntl.in.h: New file.
1289 * gnulib/import/fd-hook.c: New file.
1290 * gnulib/import/fd-hook.h: New file.
1291 * gnulib/import/fd-safer.c: New file.
1292 * gnulib/import/fdopendir.c: New file.
1293 * gnulib/import/filename.h: New file.
1294 * gnulib/import/filenamecat-lgpl.c: New file.
1295 * gnulib/import/filenamecat.h: New file.
1296 * gnulib/import/fstat.c: New file.
1297 * gnulib/import/fstatat.c: New file.
1298 * gnulib/import/getcwd-lgpl.c: New file.
1299 * gnulib/import/getcwd.c: New file.
1300 * gnulib/import/getdtablesize.c: New file.
1301 * gnulib/import/getlogin_r.c: New file.
1302 * gnulib/import/getprogname.c: New file.
1303 * gnulib/import/getprogname.h: New file.
1304 * gnulib/import/gettext.h: New file.
1305 * gnulib/import/glob-libc.h: New file.
1306 * gnulib/import/glob.c: New file.
1307 * gnulib/import/glob.in.h: New file.
1308 * gnulib/import/intprops.h: New file.
1309 * gnulib/import/m4/chdir-long.m4: New file.
1310 * gnulib/import/m4/close.m4: New file.
1311 * gnulib/import/m4/closedir.m4: New file.
1312 * gnulib/import/m4/d-ino.m4: New file.
1313 * gnulib/import/m4/d-type.m4: New file.
1314 * gnulib/import/m4/dup.m4: New file.
1315 * gnulib/import/m4/dup2.m4: New file.
1316 * gnulib/import/m4/error.m4: New file.
1317 * gnulib/import/m4/fchdir.m4: New file.
1318 * gnulib/import/m4/fcntl.m4: New file.
1319 * gnulib/import/m4/fcntl_h.m4: New file.
1320 * gnulib/import/m4/fdopendir.m4: New file.
1321 * gnulib/import/m4/filenamecat.m4: New file.
1322 * gnulib/import/m4/fstat.m4: New file.
1323 * gnulib/import/m4/fstatat.m4: New file.
1324 * gnulib/import/m4/getcwd-abort-bug.m4: New file.
1325 * gnulib/import/m4/getcwd-path-max.m4: New file.
1326 * gnulib/import/m4/getcwd.m4: New file.
1327 * gnulib/import/m4/getdtablesize.m4: New file.
1328 * gnulib/import/m4/getlogin_r.m4: New file.
1329 * gnulib/import/m4/getprogname.m4: New file.
1330 * gnulib/import/m4/glob.m4: New file.
1331 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
1332 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
1333 * gnulib/import/m4/mempcpy.m4: New file.
1334 * gnulib/import/m4/memrchr.m4: New file.
1335 * gnulib/import/m4/mode_t.m4: New file.
1336 * gnulib/import/m4/msvc-inval.m4: New file.
1337 * gnulib/import/m4/msvc-nothrow.m4: New file.
1338 * gnulib/import/m4/open.m4: New file.
1339 * gnulib/import/m4/openat.m4: New file.
1340 * gnulib/import/m4/opendir.m4: New file.
1341 * gnulib/import/m4/readdir.m4: New file.
1342 * gnulib/import/m4/realloc.m4: New file.
1343 * gnulib/import/m4/rewinddir.m4: New file.
1344 * gnulib/import/m4/save-cwd.m4: New file.
1345 * gnulib/import/m4/strdup.m4: New file.
1346 * gnulib/import/m4/strerror.m4: New file.
1347 * gnulib/import/m4/unistd-safer.m4: New file.
1348 * gnulib/import/mempcpy.c: New file.
1349 * gnulib/import/memrchr.c: New file.
1350 * gnulib/import/msvc-inval.c: New file.
1351 * gnulib/import/msvc-inval.h: New file.
1352 * gnulib/import/msvc-nothrow.c: New file.
1353 * gnulib/import/msvc-nothrow.h: New file.
1354 * gnulib/import/open.c: New file.
1355 * gnulib/import/openat-die.c: New file.
1356 * gnulib/import/openat-priv.h: New file.
1357 * gnulib/import/openat-proc.c: New file.
1358 * gnulib/import/openat.c: New file.
1359 * gnulib/import/openat.h: New file.
1360 * gnulib/import/opendir.c: New file.
1361 * gnulib/import/pipe-safer.c: New file.
1362 * gnulib/import/readdir.c: New file.
1363 * gnulib/import/realloc.c: New file.
1364 * gnulib/import/rewinddir.c: New file.
1365 * gnulib/import/save-cwd.c: New file.
1366 * gnulib/import/save-cwd.h: New file.
1367 * gnulib/import/strdup.c: New file.
1368 * gnulib/import/strerror-override.c: New file.
1369 * gnulib/import/strerror-override.h: New file.
1370 * gnulib/import/strerror.c: New file.
1371 * gnulib/import/unistd--.h: New file.
1372 * gnulib/import/unistd-safer.h: New file.
1373 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
1374 "getcwd" and "glob".
1375 * ser-tcp.c: Undefine "close" before redefining it.
1376
432ae719
SM
13772017-09-21 Simon Marchi <simon.marchi@ericsson.com>
1378
1379 * guile/scm-value.c (gdbscm_value_address): Initialize address,
1380 get rid of res_val.
1381
4fa7574e
RO
13822017-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1383
1384 * configure.nat <i386sol2,i386>: Add fork-inferior.o to NATDEPFILES.
1385 <sol2,sparc>: Likewise.
1386 <sol2-64,i386>: Likewise.
1387
1388 * warning.m4 (AM_GDB_WARNINGS): Disable -Wunknown-pragmas,
1389 -Wdeprecated-declarations on *-*-solaris*.
1390 * configure: Regenerate.
1391
1392 * procfs.c: Include "nat/inferior.h".
1393 (procfs_info_proc): Fix typo.
1394
f6327dcb
KB
13952017-09-21 Kevin Buettner <kevinb@redhat.com>
1396
1397 * remote.c (vector): Include.
1398 (struct private_thread_info): Add field, thread_handle.
1399 (free_private_thread_info): Deallocate storage associated with
1400 thread handle.
1401 (get_private_info_thread): Initialize `thread_handle' field.
1402 (struct thread_item): Add field, thread_handle.
1403 (clear_threads_listing_context): Deallocate storage associated
1404 with thread handle.
1405 (start_thread): Add support for "handle" attribute.
1406 (thread_attributes): Add "handle".
1407 (remote_get_threads_with_qthreadinfo): Initialize thread_handle
1408 field.
1409 (remote_update_thread_list): Update thread_handle.
1410 (remote_thread_handle_to_thread_info): New function.
1411 (init_remote_ops): Initialize to_thread_handle_to_thread_info.
1412
fbbe5337
KB
14132017-09-21 Kevin Buettner <kevinb@redhat.com>
1414
1415 * python/py-inferior.c (gdbpy_thread_from_thread_handle): New
1416 function.
1417 (inferior_object_methods): Add gdbpy_thread_from_thread_handle.
1418 * python/python-internal.h (thread_object_type): Declare.
1419
e04ee09e
KB
14202017-09-21 Kevin Buettner <kevinb@redhat.com>
1421
1422 * target.h (struct target_ops): Add to_thread_handle_to_thread_info.
1423 (target_thread_handle_to_thread_info): Declare.
1424 * target.c (target_thread_handle_to_thread_info): New function.
1425 * target-delegates.c: Regenerate.
1426 * gdbthread.h (find_thread_by_handle): Declare.
1427 * thread.c (find_thread_by_handle): New function.
1428 * linux-thread-db.c (thread_db_thread_handle_to_thread_info): New
1429 function.
1430 (init_thread_db_ops): Register thread_db_thread_handle_to_thread_info.
1431
1e5b66ed
SM
14322017-09-21 Simon Marchi <simon.marchi@ericsson.com>
1433
1434 * nat/linux-waitpid.c (linux_debug): Add ATTRIBUTE_PRINTF.
1435
ebe48ba0
SM
14362017-09-21 Simon Marchi <simon.marchi@ericsson.com>
1437
1438 * microblaze-tdep.c (microblaze_debug): Add ATTRIBUTE_PRINTF.
1439
0a0bf5dc
YQ
14402017-09-21 Yao Qi <yao.qi@linaro.org>
1441
1442 * configure.tgt (aarch64*-*-freebsd*): Add fbsd-tdep.o solib-svr4.o
1443 to gdb_target_obs.
1444
d1b0a7bf
TT
14452017-09-20 Tom Tromey <tom@tromey.com>
1446
1447 * breakpoint.c (struct counted_command_line): Remove.
1448 (breakpoint_commands): Update.
1449 (alloc_counted_command_line, incref_counted_command_line)
1450 (decref_counted_command_line, do_cleanup_counted_command_line)
1451 (make_cleanup_decref_counted_command_line): Remove.
1452 (breakpoint_set_commands, commands_command_1, ~bpstats, bpstats)
1453 (bpstat_clear_actions, bpstat_do_actions_1, watchpoint_check)
1454 (bpstat_stop_status, print_one_breakpoint_location, ~breakpoint)
1455 (save_breakpoints): Update.
1456 * breakpoint.h (counted_command_line): Now a typedef to
1457 shared_ptr.
1458 (struct breakpoint) <commands>: Now a counted_command_line.
1459 (struct bpstats) <command>: Likewise.
1460
48649e1b
TT
14612017-09-20 Tom Tromey <tom@tromey.com>
1462
1463 * breakpoint.c (struct commands_info, do_map_commands_command):
1464 Remove.
1465 (commands_command_1): Update.
1466 (iterate_over_related_breakpoints): Take a function_view.
1467 (do_delete_breakpoint, do_map_delete_breakpoint): Remove.
1468 (delete_command): Update.
1469 (map_breakpoint_numbers): Take a function_view.
1470 (do_disable_breakpoint, do_map_delete_breakpoint): Remove.
1471 (disable_command): Update.
1472 (do_enable_breakpoint, do_map_enable_breakpoint): Remove.
1473 (enable_command): Update.
1474 (struct disp_data, do_enable_breakpoint_disp)
1475 (do_map_enable_once_breakpoint, do_map_enable_count_breakpoint)
1476 (do_map_enable_delete_breakpoint): Remove.
1477 (enable_once_command, enable_count_command, enable_delete_command)
1478 (delete_trace_variable_command): Update.
1479
04afa70c
TT
14802017-09-20 Tom Tromey <tom@tromey.com>
1481
1482 * breakpoint.c (~bpstats): Rename from bpstat_free. Update.
1483 (bpstat_clear): Use delete.
1484 (bpstats): New constructors.
1485 (bpstat_copy, bpstat_stop_status): Use new.
1486 (dprintf_after_condition_true): Update.
1487 * breakpoint.h (bpstats::bpstats): Add constructors.
1488 (bpstats::~bpstats): Add destructor.
1489
c83833f4
PA
14902017-09-20 Pedro Alves <palves@redhat.com>
1491
1492 * eval.c (make_params): Delete, refactored as ...
1493 (class fake_method): ... this new type's ctor.
1494 (fake_method::~fake_method): New.
1495 (evaluate_subexp_standard): Use 'fake_method'.
1496
223ffa71
TT
14972017-09-20 Tom Tromey <tom@tromey.com>
1498
1499 * windows-nat.c (get_windows_debug_event, windows_wait)
1500 (do_initial_windows_stuff, windows_attach): Update.
1501 * utils.c (vwarning, internal_vproblem): Update.
1502 (ui_unregister_input_event_handler_cleanup)
1503 (prepare_to_handle_input): Remove.
1504 (class scoped_input_handler): New.
1505 (defaulted_query, prompt_for_continue): Update.
1506 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
1507 Update.
1508 * top.c (undo_terminal_modifications_before_exit): Update.
1509 * target/target.h (target_terminal_init, target_terminal_inferior)
1510 (target_terminal_ours): Don't declare.
1511 (class target_terminal): New.
1512 * target.h (target_terminal_is_inferior, target_terminal_is_ours)
1513 (target_terminal_ours_for_output)
1514 (make_cleanup_restore_target_terminal): Don't declare.
1515 (target_terminal_info): Remove.
1516 * target.c (enum terminal_state, terminal_state): Remove.
1517 (target_terminal::terminal_state): Define.
1518 (target_terminal::init): Rename from target_terminal_init.
1519 (target_terminal::inferior): Rename from
1520 target_terminal_inferior.
1521 (target_terminal::ours): Rename from target_terminal_ours.
1522 (target_terminal::ours_for_output): Rename from
1523 target_terminal_ours_for_output.
1524 (target_terminal::info): New method.
1525 (cleanup_restore_target_terminal)
1526 (make_cleanup_restore_target_terminal): Remove.
1527 * solib.c (handle_solib_event): Update.
1528 * remote.c (remote_serial_quit_handler): Update.
1529 (remote_terminal_inferior, remote_wait_as): Update.
1530 * record-full.c (record_full_wait_1): Update.
1531 * nto-procfs.c (procfs_create_inferior): Update.
1532 * nat/fork-inferior.c (startup_inferior): Update.
1533 * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
1534 (mi_record_changed, mi_inferior_added, mi_inferior_appeared)
1535 (mi_inferior_exit, mi_inferior_removed, mi_traceframe_changed)
1536 (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified)
1537 (mi_breakpoint_created, mi_breakpoint_deleted)
1538 (mi_breakpoint_modified, mi_on_resume, mi_solib_loaded)
1539 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
1540 (mi_user_selected_context_changed, report_initial_inferior):
1541 Update.
1542 * linux-nat.c (linux_nat_attach, linux_nat_terminal_ours)
1543 (linux_nat_terminal_inferior): Update.
1544 * infrun.c (follow_fork_inferior)
1545 (handle_vfork_child_exec_or_exit, do_target_resume)
1546 (check_curr_ui_sync_execution_done, handle_inferior_event_1)
1547 (handle_signal_stop, maybe_remove_breakpoints, normal_stop):
1548 Update.
1549 * inflow.c (child_terminal_init, info_terminal_command): Update.
1550 * infcmd.c (post_create_inferior, continue_1, prepare_one_step)
1551 (attach_command): Update.
1552 * infcall.c (call_thread_fsm_should_stop): Update.
1553 * gnu-nat.c (gnu_attach): Update.
1554 * extension.c (struct active_ext_lang_state)
1555 (restore_active_ext_lang): Update.
1556 * exceptions.c (print_flush): Update.
1557 * event-top.c (async_enable_stdin, default_quit_handler): Update.
1558 (struct quit_handler_cleanup_data, restore_quit_handler)
1559 (restore_quit_handler_dtor, make_cleanup_override_quit_handler):
1560 Remove.
1561 * cp-support.c (gdb_demangle): Update.
1562 * breakpoint.c (update_inserted_breakpoint_locations)
1563 (insert_breakpoint_locations, handle_jit_event)
1564 (disable_breakpoints_in_unloaded_shlib): Update.
1565 * annotate.c (annotate_breakpoints_invalid)
1566 (annotate_frames_invalid): Update.
1567
013af3fc
TT
15682017-09-20 Tom Tromey <tom@tromey.com>
1569
1570 * main.c (catch_command_errors): Rename from
1571 catch_command_errors_const.
1572 (captured_main_1): Update.
1573
06871ae8
PA
15742017-09-20 Pedro Alves <palves@redhat.com>
1575
1576 * cli/cli-cmds.c (list_command): Use print_sal_location.
1577 (print_sal_location): New function.
1578 (ambiguous_line_spec): Use print_sal_location.
1579 * linespec.c (symbol_to_sal): Record the symbol in the sal.
1580 * symtab.c (find_function_start_sal): Likewise.
1581 * symtab.h (symtab_and_line::symbol): New field.
1582
e5f25bc5
PA
15832017-09-20 Pedro Alves <palves@redhat.com>
1584
1585 * linespec.c (minsym_found): Handle non-text minsyms.
1586 (symbol_to_sal): Record a sal.pc for non-block, non-label symbols.
1587
1b7fa39e
WT
15882017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
1589
1590 * features/Makefile (i386-avx-mpx-avx512-pku.dat): Add missing
1591 backslash.
1592
37dd0825
WT
15932017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
1594
1595 * gdb.arch/i386-avx512.c (move_zmm_data_to_reg): Use
1596 vmovups instead vmovaps.
1597 (move_zmm_data_to_memory): Use vmovups instead vmovaps.
1598
4e5a4f58
JB
15992017-09-19 John Baldwin <jhb@FreeBSD.org>
1600
1601 * NEWS (Changes since GDB 8.0): Add starti.
1602 * infcmd.c (enum run_break): New.
1603 (run_command_1): Queue pending event for RUN_STOP_AT_FIRST_INSN
1604 case.
1605 (run_command): Use enum run_how.
1606 (start_command): Likewise.
1607 (starti_command): New function.
1608 (RUN_ARGS_HELP): New macro.
1609 (_initialize_infcmd): Use RUN_ARGS_HELP for run and start
1610 commands. Add starti command.
1611
aa70c9f1
YQ
16122017-09-19 Yao Qi <yao.qi@linaro.org>
1613
1614 * Makefile.in (monitor.o): Remove the rule.
1615
d6541620
YQ
16162017-09-19 Yao Qi <yao.qi@linaro.org>
1617
1618 * annotate.h (struct annotate_arg_emitter): Use
1619 DISABLE_COPY_AND_ASSIGN.
1620 * common/refcounted-object.h (refcounted_object): Likewise.
1621 * completer.h (struct completion_result): Likewise.
1622 * dwarf2read.c (struct dwarf2_per_objfile): Likewise.
1623 * filename-seen-cache.h (filename_seen_cache): Likewise.
1624 * gdbcore.h (thread_section_name): Likewise.
1625 * gdb_regex.h (compiled_regex): Likewise.
1626 * gdbthread.h (scoped_restore_current_thread): Likewise.
1627 * inferior.h (scoped_restore_current_inferior): Likewise.
1628 * jit.c (jit_reader): Likewise.
1629 * linespec.h (struct linespec_result): Likewise.
1630 * mi/mi-parse.h (struct mi_parse): Likewise.
1631 * nat/fork-inferior.c (execv_argv): Likewise.
1632 * progspace.h (scoped_restore_current_program_space): Likewise.
1633 * python/python-internal.h (class gdbpy_enter): Likewise.
1634 * regcache.h (regcache): Likewise.
1635 * target-descriptions.c (struct tdesc_reg): Likewise.
1636 (struct tdesc_type): Likewise.
1637 (struct tdesc_feature): Likewise.
1638 * ui-out.h (ui_out_emit_type): Likewise.
1639
0615127c
SM
16402017-09-18 Simon Marchi <simon.marchi@ericsson.com>
1641
1642 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Remove
1643 label abort_expression.
1644
5e187554
SM
16452017-09-16 Simon Marchi <simon.marchi@ericsson.com>
1646
1647 * common/buffer.c (buffer_xml_printf): Adjust.
1648 * common/xml-utils.c (xml_escape_text): Change return type to
1649 std::string, update code accordingly.
1650 * common/xml-utils.h (xml_escape_text): Change return type to
1651 std::string.
1652 * rs6000-aix-tdep.c (rs6000_aix_shared_library_to_xml): Adjust.
1653 * windows-tdep.c (windows_xfer_shared_library): Adjust.
1654 * unittests/xml-utils-selftests.c (test_xml_escape_text):
1655 Adjust.
1656
c3d7b541
SM
16572017-09-16 Simon Marchi <simon.marchi@ericsson.com>
1658
1659 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new source file.
1660 (SUBDIR_UNITTESTS_OBS): Add new object file.
1661 * unittests/xml-utils-selftests.c: New file.
1662
1526853e
SM
16632017-09-16 Simon Marchi <simon.marchi@ericsson.com>
1664
1665 * common/selftest.h (selftest): New struct/interface.
1666 (register_test): Add name parameter, add new overload.
1667 (run_tests): Add filter parameter.
1668 (for_each_selftest_ftype): New typedef.
1669 (for_each_selftest): New declaration.
1670 * common/selftest.c (tests): Change type to
1671 map<string, unique_ptr<selftest>>.
1672 (simple_selftest): New struct.
1673 (register_test): New function.
1674 (register_test): Add name parameter and use it.
1675 (run_tests): Add filter parameter and use it. Add prints.
1676 Adjust to vector -> map change.
1677 * aarch64-tdep.c (_initialize_aarch64_tdep): Add names when
1678 registering selftests.
1679 * arm-tdep.c (_initialize_arm_tdep): Likewise.
1680 * disasm-selftests.c (_initialize_disasm_selftests): Likewise.
1681 * dwarf2-frame.c (_initialize_dwarf2_frame): Likewise.
1682 * dwarf2loc.c (_initialize_dwarf2loc): Likewise.
1683 * findvar.c (_initialize_findvar): Likewise.
1684 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Likewise.
1685 * maint.c (maintenance_selftest): Update call to run_tests.
1686 (maintenance_info_selftests): New function.
1687 (_initialize_maint_cmds): Register "maintenance info selftests"
1688 command. Update "maintenance selftest" doc.
1689 * regcache.c (_initialize_regcache): Add names when registering
1690 selftests.
1691 * rust-exp.y (_initialize_rust_exp): Likewise.
1692 * selftest-arch.c (gdbarch_selftest): New struct.
1693 (gdbarch_tests): Remove.
1694 (register_test_foreach_arch): Add name parameter. Call
1695 register_test.
1696 (tests_with_arch): Remove, move most content to
1697 gdbarch_selftest::operator().
1698 (_initialize_selftests_foreach_arch): Remove.
1699 * selftest-arch.h (register_test_foreach_arch): Add name
1700 parameter.
1701 (run_tests_with_arch): New declaration.
1702 * utils-selftests.c (_initialize_utils_selftests): Add names
1703 when registering selftests.
1704 * utils.c (_initialize_utils): Likewise.
1705 * unittests/array-view-selftests.c
1706 (_initialize_array_view_selftests): Likewise.
1707 * unittests/environ-selftests.c (_initialize_environ_selftests):
1708 Likewise.
1709 * unittests/function-view-selftests.c
1710 (_initialize_function_view_selftests): Likewise.
1711 * unittests/offset-type-selftests.c
1712 (_initialize_offset_type_selftests): Likewise.
1713 * unittests/optional-selftests.c
1714 (_initialize_optional_selftests): Likewise.
1715 * unittests/scoped_restore-selftests.c
1716 (_initialize_scoped_restore_selftests): Likewise.
1717 * NEWS: Document "maintenance selftest" and "maint info
1718 selftests".
1719
5846367a
SM
17202017-09-16 Simon Marchi <simon.marchi@ericsson.com>
1721
1722 * mi/mi-main.c (mi_load_progress): Restore current_uiout using a
1723 scoped_restore.
1724
bd77e8ff
SM
17252017-09-16 Simon Marchi <simon.marchi@ericsson.com>
1726
1727 * mi/mi-main.c (mi_load_progress): Make uiout variable
1728 a unique_ptr.
1729
26a67918
PA
17302017-09-15 Pedro Alves <palves@redhat.com>
1731
1732 * compile/compile-c-types.c (convert_enum, convert_int)
1733 (convert_float): Adjust to refer to int_type_v0 and float_type_v0.
1734
3f8a7804
SM
17352017-09-15 Simon Marchi <simon.marchi@ericsson.com>
1736
1737 * dwarf2read.c (copy_string): Remove.
1738 (parse_macro_definition): Replace copy_string with savestring.
1739
8d200706
YQ
17402017-09-15 Yao Qi <yao.qi@linaro.org>
1741
1742 * configure.tgt (i[34567]86-*-darwin*): Append amd64.o to
1743 gdb_target_obs.
1744 (i[34567]86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*):
1745 Likewise.
1746 (i[34567]86-*-linux*): Likewise.
1747
d185219d
SM
17482017-09-14 Simon Marchi <simon.marchi@ericsson.com>
1749
1750 * dwarf2expr.h (dwarf_stack_value): Add constructor.
1751 (dwarf_expr_context) <~dwarf_expr_context>: Define as default.
1752 <stack>: Change type to std::vector.
1753 <stack_len, stack_allocated>: Remove.
1754 <grow_stack>: Remove.
1755 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
1756 (dwarf_expr_context::~dwarf_expr_context): Remove.
1757 (dwarf_expr_context::grow_stack): Remove.
1758 (dwarf_expr_context::push): Adjust.
1759 (dwarf_expr_context::pop): Adjust.
1760 (dwarf_expr_context::fetch): Adjust.
1761 (dwarf_expr_context::fetch_in_stack_memory): Adjust.
1762 (dwarf_expr_context::stack_empty_p): Adjust.
1763 (dwarf_expr_context::execute_stack_op): Adjust.
1764
eccd80d6
SM
17652017-09-14 Simon Marchi <simon.marchi@ericsson.com>
1766
1767 * dwarf2expr.h (dwarf_expr_context) <stack_empty_p>: Change
1768 return type to bool.
1769 * dwarf2expr.c (dwarf_expr_context::stack_empty_p): Likewise.
1770
69009882
SM
17712017-09-14 Simon Marchi <simon.marchi@ericsson.com>
1772
1773 * dwarf2expr.h (dwarf_expr_piece) <v.mem.in_stack_memory>:
1774 Change type to bool.
1775 (dwarf_stack_value) <in_stack_memory>: Likewise.
1776 (dwarf_expr_context) <push_address>: Change parameter type to
1777 bool.
1778 <fetch_in_stack_memory>: Change return type to bool.
1779 <push>: Change parameter type to bool.
1780 * dwarf2expr.c (dwarf_expr_context::push): Change parameter type
1781 to bool.
1782 (dwarf_expr_context::push_address): Likewise.
1783 (dwarf_expr_context::fetch_in_stack_memory): Change return type
1784 to bool.
1785 (dwarf_expr_context::execute_stack_op): Adjust.
1786 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Adjust.
1787
1e467161
SM
17882017-09-14 Simon Marchi <simon.marchi@ericsson.com>
1789
1790 * dwarf2expr.h (struct dwarf_expr_piece): Move up.
1791 (struct dwarf_expr_context) <n_pieces>: Remove.
1792 <pieces>: Change type to std::vector.
1793 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
1794 (dwarf_expr_context::~dwarf_expr_context): Don't manually free
1795 pieces.
1796 (dwarf_expr_context::add_piece): Adjust.
1797 * dwarf2loc.c (struct piece_closure): Initialize fields.
1798 <n_pieces>: Remove.
1799 <pieces>: Change type to std::vector.
1800 (allocate_piece_closure): Adjust, change parameter to
1801 std::vector rvalue and std::move it to piece_closure.
1802 (rw_pieced_value): Adjust.
1803 (check_pieced_synthetic_pointer): Adjust.
1804 (indirect_synthetic_pointer): Adjust.
1805 (coerce_pieced_ref): Adjust.
1806 (free_pieced_value_closure): Adjust. Use delete to free
1807 piece_closure.
1808 (dwarf2_evaluate_loc_desc_full): Adjust. std::move ctx.pieces
1809 to allocate_piece_closure.
1810 (dwarf2_loc_desc_get_symbol_read_needs): Adjust.
1811
0782db84
SM
18122017-09-12 Simon Marchi <simon.marchi@ericsson.com>
1813
1814 * probe.h (probe_ops_cp): Remove typedef.
1815 (DEF_VEC_P (probe_ops_cp)): Remove.
1816 (all_probe_ops): Change type to std::vector.
1817 * probe.c (info_probes_for_ops): Adjust to vector change.
1818 (probe_linespec_to_ops): Likewise.
1819 (all_probe_ops): Change type to std::vector.
1820 (_initialize_probe): Adjust to vector change.
1821 * dtrace-probe.c (_initialize_dtrace_probe): Likewise.
1822 * elfread.c (elf_get_probes): Likewise.
1823 * stap-probe.c (_initialize_stap_probe): Likewise.
1824
1eac6bea
SM
18252017-09-12 Simon Marchi <simon.marchi@ericsson.com>
1826
1827 * probe.h (struct bound_probe): Define constructors.
1828 * probe.c (bound_probe_s): Remove typedef.
1829 (DEF_VEC_O (bound_probe_s)): Remove VEC.
1830 (collect_probes): Change return type to std::vector, remove
1831 cleanup.
1832 (compare_probes): Return bool, change parameter type. Change
1833 semantic to "less than".
1834 (gen_ui_out_table_header_info): Change parameter to std::vector
1835 and update.
1836 (exists_probe_with_pops): Likewise.
1837 (info_probes_for_ops): Update to std::vector change.
1838 (enable_probes_command): Likewise.
1839 (disable_probes_command): Likewise.
1840
aaa63a31
SM
18412017-09-12 Simon Marchi <simon.marchi@ericsson.com>
1842
1843 * probe.h (struct probe_ops) <get_probes>: Change parameter from
1844 vec to std::vector.
1845 * probe.c (parse_probes_in_pspace): Update.
1846 (find_probes_in_objfile): Update.
1847 (find_probe_by_pc): Update.
1848 (collect_probes): Update.
1849 (probe_any_get_probes): Update.
1850 * symfile.h (struct sym_probe_fns) <sym_get_probes> Change
1851 return type to reference to std::vector.
1852 * dtrace-probe.c (dtrace_process_dof_probe): Change parameter to
1853 std::vector and update.
1854 (dtrace_process_dof): Likewise.
1855 (dtrace_get_probes): Likewise.
1856 * elfread.c (elf_get_probes): Change return type to std::vector,
1857 store an std::vector in bfd_data.
1858 (probe_key_free): Update to std::vector.
1859 * stap-probe.c (handle_stap_probe): Change parameter to
1860 std::vector and update.
1861 (stap_get_probes): Likewise.
1862 * symfile-debug.c (debug_sym_get_probes): Change return type to
1863 std::vector and update.
1864
cb85b21b
TT
18652017-09-11 Tom Tromey <tom@tromey.com>
1866
1867 * breakpoint.c (program_breakpoint_here_p): Update.
1868 * target.c (make_scoped_restore_show_memory_breakpoints): Rename
1869 from make_show_memory_breakpoints_cleanup. Return a
1870 scoped_restore_tmpl<int>.
1871 (restore_show_memory_breakpoints): Remove.
1872 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Update.
1873 * mem-break.c (memory_validate_breakpoint): Update.
1874 * ia64-tdep.c (ia64_memory_insert_breakpoint): Update.
1875 (ia64_memory_remove_breakpoint): Update.
1876 (ia64_breakpoint_from_pc): Update.
1877 * target.h (make_scoped_restore_show_memory_breakpoints): Rename
1878 from make_show_memory_breakpoints_cleanup.
1879
8fbc99ef
TT
18802017-09-11 Tom Tromey <tom@tromey.com>
1881
1882 * d-namespace.c (d_lookup_symbol): Use std::string.
1883 (find_symbol_in_baseclass): Likewise.
1884
50feb4bd
TT
18852017-09-11 Tom Tromey <tom@tromey.com>
1886
1887 * ctf.c (ctf_start): Use std::string.
1888
c6dc63a1
TT
18892017-09-11 Tom Tromey <tom@tromey.com>
1890
1891 * ada-lang.c (is_known_support_routine): Update.
1892 (ada_unhandled_exception_name_addr_from_raise): Update.
1893 * guile/scm-frame.c (gdbscm_frame_name): Update.
1894 * python/py-frame.c (frapy_name): Update.
1895 (frapy_function): Update.
1896 * stack.h (find_frame_funname): Update.
1897 * stack.c (find_frame_funname): Return unique_xmalloc_ptr.
1898 (print_frame): Update.
1899
d6b9b80f
TT
19002017-09-11 Tom Tromey <tom@tromey.com>
1901
1902 * findcmd.c (put_bits): Take a gdb::byte_vector.
1903 (parse_find_args): Return gdb::byte_vector. "args" now const.
1904 Remove "pattern_bufp" and "pattern_lenp" parameters. Remove
1905 cleanups.
1906 (find_command): Update.
1907
a9921622
TT
19082017-09-11 Tom Tromey <tom@tromey.com>
1909
1910 * cli/cli-script.c (class scoped_restore_hook_in): New.
1911 (clear_hook_in_cleanup): Remove.
1912 (execute_cmd_pre_hook, execute_cmd_post_hook): Use
1913 scoped_restore_hook_in.
1914
be0d7abb
TT
19152017-09-11 Tom Tromey <tom@tromey.com>
1916
1917 * cli/cli-script.c (restore_interp): Remove.
1918 (read_command_lines): Use scoped_restore_interp.
1919 * interps.c (scoped_restore_interp::set_temp): Rename from
1920 interp_set_temp.
1921 * interps.h (class scoped_restore_interp): New.
1922 (interp_set_temp): Remove.
1923
00f675ff
TT
19242017-09-11 Tom Tromey <tom@tromey.com>
1925
1926 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
1927 (mi_cmd_catch_exception, mi_catch_load_unload): Update.
1928 * mi/mi-cmd-break.c (setup_breakpoint_reporting): Return a
1929 scoped_restore.
1930 (mi_cmd_break_insert_1): Update.
1931 * mi/mi-cmd-break.h (setup_breakpoint_reporting): Return a
1932 scoped_restore.
1933
cb791d59
TT
19342017-09-11 Tom Tromey <tom@tromey.com>
1935
1936 * demangle.c (demangle_command): Update.
1937 * breakpoint.c (disable_command): Update.
1938 (enable_command): Update.
1939 (find_location_by_number): Make "number" const. Use
1940 get_number_trailer.
1941 * cli/cli-utils.c (extract_arg): Return std::string.
1942 * probe.c (parse_probe_linespec): Update. Change types.
1943 (collect_probes): Take string arguments.
1944 (parse_probe_linespec): Likewise.
1945 (info_probes_for_ops): Update.
1946 (enable_probes_command): Update.
1947 (disable_probes_command): Update.
1948 * break-catch-sig.c (catch_signal_split_args): Update.
1949 * mi/mi-parse.c (mi_parse): Update.
1950
2039bd9f
TT
19512017-09-11 Tom Tromey <tom@tromey.com>
1952
1953 * language.h (language_enum): Make argument const.
1954 * language.c (language_enum): Make argument const.
1955
f1735a53
TT
19562017-09-11 Tom Tromey <tom@tromey.com>
1957
1958 * common/common-utils.h (skip_to_space): Remove macro, redeclare
1959 as function.
1960 (skip_to_space): Rename from skip_to_space_const.
1961 * common/common-utils.c (skip_to_space): New function.
1962 (skip_to_space): Rename from skip_to_space_const.
1963 * cli/cli-utils.h (get_number): Rename from get_number_const.
1964 (extract_arg): Rename from extract_arg_const.
1965 * cli/cli-utils.c (get_number): Rename from get_number_const.
1966 (extract_arg): Rename from extract_arg_const.
1967 (number_or_range_parser::get_number): Use ::get_number.
1968 * aarch64-linux-tdep.c, ada-lang.c, arm-linux-tdep.c, ax-gdb.c,
1969 break-catch-throw.c, breakpoint.c, cli/cli-cmds.c, cli/cli-dump.c,
1970 cli/cli-script.c, cli/cli-setshow.c, compile/compile.c,
1971 completer.c, demangle.c, disasm.c, findcmd.c, linespec.c,
1972 linux-tdep.c, linux-thread-db.c, location.c, mi/mi-parse.c,
1973 minsyms.c, nat/linux-procfs.c, printcmd.c, probe.c,
1974 python/py-breakpoint.c, record.c, rust-exp.y, serial.c, stack.c,
1975 stap-probe.c, tid-parse.c, tracepoint.c: Update all callers.
1976
7d221d74
TT
19772017-09-11 Tom Tromey <tom@tromey.com>
1978
1979 * python/python.c (do_start_initialization): Use
1980 py-event-types.def to initialize types.
1981 Define all object type structures.
1982 * python/python-internal.h: Don't declare event initialization
1983 functions.
1984 * python/py-threadevent.c (thread_event_object_type): Don't
1985 define.
1986 * python/py-stopevent.c (stop_event_object_type): Don't define.
1987 * python/py-signalevent.c (signal_event_object_type): Don't
1988 declare or define.
1989 * python/py-newobjfileevent.c (new_objfile_event_object_type)
1990 (clear_objfiles_event_object_type): Don't declare or define.
1991 * python/py-infevents.c (inferior_call_pre_event_object_type)
1992 (inferior_call_post_event_object_type)
1993 (register_changed_event_object_type)
1994 (memory_changed_event_object_type): Don't declare or define.
1995 * python/py-inferior.c (new_thread_event_object_type)
1996 (new_inferior_event_object_type)
1997 (inferior_deleted_event_object_type): Don't declare or define.
1998 * python/py-exitedevent.c (exited_event_object_type): Don't
1999 declare or define.
2000 * python/py-evts.c (gdbpy_initialize_py_events): Use
2001 py-all-events.def.
2002 * python/py-events.h (thread_event_object_type): Don't declare.
2003 (events_object): Use py-all-events.def.
2004 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove. Use
2005 py-event-types.def.
2006 * python/py-event-types.def: New file.
2007 * python/py-continueevent.c (create_continue_event_object): Don't
2008 declare or define.
2009 * python/py-bpevent.c (breakpoint_event_object_type): Don't
2010 declare or define.
2011 * python/py-all-events.def: New file.
2012
35c61a1d
TT
20132017-09-11 Tom Tromey <tom@tromey.com>
2014
2015 * python/py-threadevent.c (create_thread_event_object): Return
2016 gdbpy_ref.
2017 * python/py-stopevent.h (create_stop_event_object)
2018 (create_breakpoint_event_object, create_signal_event_object):
2019 Update.
2020 * python/py-stopevent.c (create_stop_event_object): Return
2021 gdbpy_ref.
2022 (emit_stop_event): Update.
2023 * python/py-signalevent.c (create_signal_event_object): Return
2024 gdbpy_ref.
2025 * python/py-infevents.c (create_inferior_call_event_object):
2026 Update.
2027 * python/py-event.h (create_event_object)
2028 (create_thread_event_object): Update.
2029 * python/py-event.c (create_event_object): Return gdbpy_ref.
2030 * python/py-continueevent.c: Return gdbpy_ref.
2031 * python/py-bpevent.c (create_breakpoint_event_object): Return
2032 gdbpy_ref.
2033
7c96f8c1
TT
20342017-09-11 Tom Tromey <tom@tromey.com>
2035
2036 PR python/15622:
2037 * NEWS: Add entry.
2038 * python/python.c (do_start_initialization): Initialize new event
2039 types.
2040 * python/python-internal.h (gdbpy_initialize_new_inferior_event)
2041 (gdbpy_initialize_inferior_deleted_event)
2042 (gdbpy_initialize_new_thread_event): Declare.
2043 * python/py-threadevent.c (create_thread_event_object): Add option
2044 "thread" parameter.
2045 * python/py-inferior.c (new_thread_event_object_type)
2046 (new_inferior_event_object_type)
2047 (inferior_deleted_event_object_type): Declare.
2048 (python_new_inferior, python_inferior_deleted): New functions.
2049 (add_thread_object): Emit new_thread event.
2050 (gdbpy_initialize_inferior): Attach new functions to corresponding
2051 observers.
2052 (new_thread, new_inferior, inferior_deleted): Define new event
2053 types.
2054 * python/py-evts.c (gdbpy_initialize_py_events): Add new
2055 registries.
2056 * python/py-events.h (events_object) <new_inferior,
2057 inferior_deleted, new_thread>: New fields.
2058 * python/py-event.h (create_thread_event_breakpoint): Add optional
2059 "thread" parameter.
2060
72542b8e
AB
20612017-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
2062
2063 * utils.c (abort_with_message): Don't compare gdb_stderr to NULL,
2064 check current_ui instead.
2065 (internal_vproblem): Likewise.
2066
0d64823e
SM
20672017-09-09 Simon Marchi <simon.marchi@ericsson.com>
2068
2069 * thread.c (print_thread_info_1): Remove unnecessary calls to
2070 uiout->is_mi_like_p.
2071
eb1e02fd
TT
20722017-09-09 Tom Tromey <tom@tromey.com>
2073
2074 * namespace.h (add_using_directive): Update.
2075 * namespace.c (add_using_directive): Change type of excludes to
2076 std::vector.
2077 * dwarf2read.c (read_import_statement): Use std::vector.
2078 (read_namespace): Update.
2079 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
2080
0fc21fd8
TT
20812017-09-09 Tom Tromey <tom@tromey.com>
2082
2083 * linespec.c (create_sals_line_offset): Use gdb::def_vector.
2084
49663d05
TT
20852017-09-09 Tom Tromey <tom@tromey.com>
2086
2087 * p-valprint.c (pascal_object_print_value): Use gdb::byte_vector.
2088
0b868b60
TT
20892017-09-09 Tom Tromey <tom@tromey.com>
2090
2091 * stack.c (func_command): Use gdb::def_vector.
2092
c0470d48
TT
20932017-09-09 Tom Tromey <tom@tromey.com>
2094
2095 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Use gdb::optional,
2096 ui_out_emit_list, ui_out_emit_tuple.
2097 (mi_cmd_var_update): Likewise.
2098
ca5909c7
TT
20992017-09-09 Tom Tromey <tom@tromey.com>
2100
2101 * mi/mi-interp.c (mi_user_selected_context_changed): Use
2102 ui_out_redirect_pop.
2103 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
2104 ui_out_redirect_pop.
2105 * utils.c (do_ui_out_redirect_pop)
2106 (make_cleanup_ui_out_redirect_pop): Remove.
2107 * top.c (execute_command_to_string): Use ui_out_redirect_pop.
2108 * utils.h (make_cleanup_ui_out_redirect_pop): Remove.
2109 * ui-out.h (ui_out_redirect_pop): New class.
2110
e6a2252a
TT
21112017-09-09 Tom Tromey <tom@tromey.com>
2112
2113 * mi/mi-main.c (output_cores): Use ui_out_emit_list.
2114 (list_available_thread_groups, mi_cmd_list_thread_groups)
2115 (mi_cmd_data_list_changed_registers, mi_cmd_data_read_memory)
2116 (mi_cmd_data_read_memory_bytes, mi_cmd_trace_frame_collected):
2117 Likewise.
2118
393702cd
TT
21192017-09-09 Tom Tromey <tom@tromey.com>
2120
2121 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
2122 ui_out_emit_tuple.
2123
76f9c9cf
TT
21242017-09-09 Tom Tromey <tom@tromey.com>
2125
2126 * target.c (flash_erase_command): Use ui_out_emit_tuple.
2127 * stack.c (print_frame): Use ui_out_emit_tuple.
2128 * spu-tdep.c (info_spu_event_command): Use ui_out_emit_tuple.
2129 (info_spu_mailbox_command, info_spu_dma_command)
2130 (info_spu_proxydma_command): Likewise.
2131 * mi/mi-main.c (mi_cmd_trace_frame_collected): Use
2132 ui_out_emit_tuple, gdb::byte_vector, bin2hex.
2133 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
2134 ui_out_emit_tuple.
2135 * breakpoint.c (print_it_watchpoint): Use ui_out_emit_tuple.
2136
dc9fe180
TT
21372017-09-09 Tom Tromey <tom@tromey.com>
2138
2139 * ui-out.h (make_cleanup_ui_out_table_begin_end): Remove.
2140 (class ui_out_emit_table): Update comment.
2141 * ui-out.c (do_cleanup_table_end)
2142 (make_cleanup_ui_out_table_begin_end): Remove.
2143 * spu-tdep.c (info_spu_mailbox_list): Use ui_out_emit_table.
2144 (info_spu_dma_cmdlist): Likewise.
2145 * probe.c (info_probes_for_ops): Use ui_out_emit_table.
2146 * darwin-nat-info.c (darwin_debug_regions_recurse): Use
2147 ui_out_emit_table.
2148
f8cc3da6
TT
21492017-09-09 Tom Tromey <tom@tromey.com>
2150
2151 * thread.c (print_thread_info_1): Use ui_out_emit_table,
2152 ui_out_emit_list, gdb::optional.
2153
481695ed
JB
21542017-09-09 John Baldwin <jhb@FreeBSD.org>
2155
2156 * aarch64-linux-nat.c: Remove _initialize_aarch64_linux_nat
2157 prototype.
2158 * aarch64-linux-tdep.c: Remove _initialize_aarch64_linux_tdep
2159 prototype.
2160 * aarch64-newlib-tdep.c: Remove _initialize_aarch64_newlib_tdep
2161 prototype.
2162 * aarch64-tdep.c: Remove _initialize_aarch64_tdep prototype.
2163 * ada-exp.y: Remove _initialize_ada_exp prototype.
2164 * ada-lang.c: Remove _initialize_ada_language prototype.
2165 * ada-tasks.c: Remove _initialize_tasks prototype.
2166 * addrmap.c: Remove _initialize_addrmap prototype.
2167 * agent.c: Remove _initialize_agent prototype.
2168 * aix-thread.c: Remove _initialize_aix_thread prototype.
2169 * alpha-bsd-nat.c: Remove _initialize_alphabsd_nat prototype.
2170 * alpha-linux-nat.c: Remove _initialize_alpha_linux_nat prototype.
2171 * alpha-linux-tdep.c: Remove _initialize_alpha_linux_tdep
2172 prototype.
2173 * alpha-nbsd-tdep.c: Remove _initialize_alphanbsd_tdep prototype.
2174 * alpha-obsd-tdep.c: Remove _initialize_alphaobsd_tdep prototype.
2175 * alpha-tdep.c: Remove _initialize_alpha_tdep prototype.
2176 * amd64-darwin-tdep.c: Remove _initialize_amd64_darwin_tdep
2177 prototype.
2178 * amd64-dicos-tdep.c: Remove _initialize_amd64_dicos_tdep
2179 prototype.
2180 * amd64-fbsd-nat.c: Remove _initialize_amd64fbsd_nat prototype.
2181 * amd64-fbsd-tdep.c: Remove _initialize_amd64fbsd_tdep prototype.
2182 * amd64-linux-nat.c: Remove _initialize_amd64_linux_nat prototype.
2183 * amd64-linux-tdep.c: Remove _initialize_amd64_linux_tdep
2184 prototype.
2185 * amd64-nbsd-nat.c: Remove _initialize_amd64nbsd_nat prototype.
2186 * amd64-nbsd-tdep.c: Remove _initialize_amd64nbsd_tdep prototype.
2187 * amd64-obsd-nat.c: Remove _initialize_amd64obsd_nat prototype.
2188 * amd64-obsd-tdep.c: Remove _initialize_amd64obsd_tdep prototype.
2189 * amd64-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
2190 * amd64-tdep.c: Remove _initialize_amd64_tdep prototype.
2191 * amd64-windows-nat.c: Remove _initialize_amd64_windows_nat
2192 prototype.
2193 * amd64-windows-tdep.c: Remove _initialize_amd64_windows_tdep
2194 prototype.
2195 * annotate.c: Remove _initialize_annotate prototype.
2196 * arc-newlib-tdep.c: Remove _initialize_arc_newlib_tdep prototype.
2197 * arc-tdep.c: Remove _initialize_arc_tdep prototype.
2198 * arch-utils.c: Remove _initialize_gdbarch_utils prototype.
2199 * arm-linux-nat.c: Remove _initialize_arm_linux_nat prototype.
2200 * arm-linux-tdep.c: Remove _initialize_arm_linux_tdep prototype.
2201 * arm-nbsd-tdep.c: Remove _initialize_arm_netbsd_tdep prototype.
2202 * arm-obsd-tdep.c: Remove _initialize_armobsd_tdep prototype.
2203 * arm-symbian-tdep.c: Remove _initialize_arm_symbian_tdep
2204 prototype.
2205 * arm-tdep.c: Remove _initialize_arm_tdep prototype.
2206 * arm-wince-tdep.c: Remove _initialize_arm_wince_tdep prototype.
2207 * auto-load.c: Remove _initialize_auto_load prototype.
2208 * auxv.c: Remove _initialize_auxv prototype.
2209 * avr-tdep.c: Remove _initialize_avr_tdep prototype.
2210 * ax-gdb.c: Remove _initialize_ax_gdb prototype.
2211 * bfin-linux-tdep.c: Remove _initialize_bfin_linux_tdep prototype.
2212 * bfin-tdep.c: Remove _initialize_bfin_tdep prototype.
2213 * break-catch-sig.c: Remove _initialize_break_catch_sig prototype.
2214 * break-catch-syscall.c: Remove _initialize_break_catch_syscall
2215 prototype.
2216 * break-catch-throw.c: Remove _initialize_break_catch_throw
2217 prototype.
2218 * breakpoint.c: Remove _initialize_breakpoint prototype.
2219 * bsd-uthread.c: Remove _initialize_bsd_uthread prototype.
2220 * btrace.c: Remove _initialize_btrace prototype.
2221 * charset.c: Remove _initialize_charset prototype.
2222 * cli/cli-cmds.c: Remove _initialize_cli_cmds prototype.
2223 * cli/cli-dump.c: Remove _initialize_cli_dump prototype.
2224 * cli/cli-interp.c: Remove _initialize_cli_interp prototype.
2225 * cli/cli-logging.c: Remove _initialize_cli_logging prototype.
2226 * cli/cli-script.c: Remove _initialize_cli_script prototype.
2227 * coff-pe-read.c: Remove _initialize_coff_pe_read prototype.
2228 * coffread.c: Remove _initialize_coffread prototype.
2229 * compile/compile.c: Remove _initialize_compile prototype.
2230 * complaints.c: Remove _initialize_complaints prototype.
2231 * completer.c: Remove _initialize_completer prototype.
2232 * copying.awk: Remove _initialize_copying prototype.
2233 * copying.c: Regenerate.
2234 * core-regset.c: Remove _initialize_core_regset prototype.
2235 * corefile.c: Remove _initialize_core prototype.
2236 * corelow.c: Remove _initialize_corelow prototype.
2237 * cp-abi.c: Remove _initialize_cp_abi prototype.
2238 * cp-namespace.c: Remove _initialize_cp_namespace prototype.
2239 * cp-support.c: Remove _initialize_cp_support prototype.
2240 * cp-valprint.c: Remove _initialize_cp_valprint prototype.
2241 * cris-linux-tdep.c: Remove _initialize_cris_linux_tdep prototype.
2242 * cris-tdep.c: Remove _initialize_cris_tdep prototype.
2243 * ctf.c: Remove _initialize_ctf prototype.
2244 * d-lang.c: Remove _initialize_d_language prototype.
2245 * darwin-nat-info.c: Remove _initialize_darwin_info_commands
2246 prototype.
2247 * darwin-nat.c: Remove _initialize_darwin_inferior prototype.
2248 * dbxread.c: Remove _initialize_dbxread prototype.
2249 * dcache.c: Remove _initialize_dcache prototype.
2250 * demangle.c: Remove _initialize_demangler prototype.
2251 * disasm-selftests.c: Remove _initialize_disasm_selftests
2252 prototype.
2253 * disasm.c: Remove _initialize_disasm prototype.
2254 * dtrace-probe.c: Remove _initialize_dtrace_probe prototype.
2255 * dummy-frame.c: Remove _initialize_dummy_frame prototype.
2256 * dwarf2-frame-tailcall.c: Remove _initialize_tailcall_frame
2257 prototype.
2258 * dwarf2-frame.c: Remove _initialize_dwarf2_frame prototype.
2259 * dwarf2expr.c: Remove _initialize_dwarf2expr prototype.
2260 * dwarf2loc.c: Remove _initialize_dwarf2loc prototype.
2261 * dwarf2read.c: Remove _initialize_dwarf2_read prototype.
2262 * elfread.c: Remove _initialize_elfread prototype.
2263 * exec.c: Remove _initialize_exec prototype.
2264 * extension.c: Remove _initialize_extension prototype.
2265 * f-lang.c: Remove _initialize_f_language prototype.
2266 * f-valprint.c: Remove _initialize_f_valprint prototype.
2267 * fbsd-nat.c: Remove _initialize_fbsd_nat prototype.
2268 * fbsd-tdep.c: Remove _initialize_fbsd_tdep prototype.
2269 * filesystem.c: Remove _initialize_filesystem prototype.
2270 * findcmd.c: Remove _initialize_mem_search prototype.
2271 * fork-child.c: Remove _initialize_fork_child prototype.
2272 * frame-base.c: Remove _initialize_frame_base prototype.
2273 * frame-unwind.c: Remove _initialize_frame_unwind prototype.
2274 * frame.c: Remove _initialize_frame prototype.
2275 * frv-linux-tdep.c: Remove _initialize_frv_linux_tdep prototype.
2276 * frv-tdep.c: Remove _initialize_frv_tdep prototype.
2277 * ft32-tdep.c: Remove _initialize_ft32_tdep prototype.
2278 * gcore.c: Remove _initialize_gcore prototype.
2279 * gdb_bfd.c: Remove _initialize_gdb_bfd prototype.
2280 * gdbarch.c: Regenerate.
2281 * gdbarch.sh: Remove _initialize_gdbarch prototype.
2282 * gdbtypes.c: Remove _initialize_gdbtypes prototype.
2283 * gnu-nat.c: Remove _initialize_gnu_nat prototype.
2284 * gnu-v2-abi.c: Remove _initialize_gnu_v2_abi prototype.
2285 * gnu-v3-abi.c: Remove _initialize_gnu_v3_abi prototype.
2286 * go-lang.c: Remove _initialize_go_language prototype.
2287 * go32-nat.c: Remove _initialize_go32_nat prototype.
2288 * guile/guile.c: Remove _initialize_guile prototype.
2289 * h8300-tdep.c: Remove _initialize_h8300_tdep prototype.
2290 * hppa-linux-nat.c: Remove _initialize_hppa_linux_nat prototype.
2291 * hppa-linux-tdep.c: Remove _initialize_hppa_linux_tdep prototype.
2292 * hppa-nbsd-nat.c: Remove _initialize_hppanbsd_nat prototype.
2293 * hppa-nbsd-tdep.c: Remove _initialize_hppanbsd_tdep prototype.
2294 * hppa-obsd-nat.c: Remove _initialize_hppaobsd_nat prototype.
2295 * hppa-obsd-tdep.c: Remove _initialize_hppaobsd_tdep prototype.
2296 * hppa-tdep.c: Remove _initialize_hppa_tdep prototype.
2297 * i386-bsd-nat.c: Remove _initialize_i386bsd_nat prototype.
2298 * i386-cygwin-tdep.c: Remove _initialize_i386_cygwin_tdep
2299 prototype.
2300 * i386-darwin-tdep.c: Remove _initialize_i386_darwin_tdep
2301 prototype.
2302 * i386-dicos-tdep.c: Remove _initialize_i386_dicos_tdep prototype.
2303 * i386-fbsd-nat.c: Remove _initialize_i386fbsd_nat prototype.
2304 * i386-fbsd-tdep.c: Remove _initialize_i386fbsd_tdep prototype.
2305 * i386-gnu-nat.c: Remove _initialize_i386gnu_nat prototype.
2306 * i386-gnu-tdep.c: Remove _initialize_i386gnu_tdep prototype.
2307 * i386-linux-nat.c: Remove _initialize_i386_linux_nat prototype.
2308 * i386-linux-tdep.c: Remove _initialize_i386_linux_tdep prototype.
2309 * i386-nbsd-nat.c: Remove _initialize_i386nbsd_nat prototype.
2310 * i386-nbsd-tdep.c: Remove _initialize_i386nbsd_tdep prototype.
2311 * i386-nto-tdep.c: Remove _initialize_i386nto_tdep prototype.
2312 * i386-obsd-nat.c: Remove _initialize_i386obsd_nat prototype.
2313 * i386-obsd-tdep.c: Remove _initialize_i386obsd_tdep prototype.
2314 * i386-sol2-nat.c: Remove _initialize_amd64_sol2_nat prototype.
2315 * i386-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
2316 * i386-tdep.c: Remove _initialize_i386_tdep prototype.
2317 * i386-windows-nat.c: Remove _initialize_i386_windows_nat
2318 prototype.
2319 * ia64-libunwind-tdep.c: Remove _initialize_libunwind_frame
2320 prototype.
2321 * ia64-linux-nat.c: Remove _initialize_ia64_linux_nat prototype.
2322 * ia64-linux-tdep.c: Remove _initialize_ia64_linux_tdep prototype.
2323 * ia64-tdep.c: Remove _initialize_ia64_tdep prototype.
2324 * ia64-vms-tdep.c: Remove _initialize_ia64_vms_tdep prototype.
2325 * infcall.c: Remove _initialize_infcall prototype.
2326 * infcmd.c: Remove _initialize_infcmd prototype.
2327 * inferior.c: Remove _initialize_inferiors prototype.
2328 * inflow.c: Remove _initialize_inflow prototype.
2329 * infrun.c: Remove _initialize_infrun prototype.
2330 * interps.c: Remove _initialize_interpreter prototype.
2331 * iq2000-tdep.c: Remove _initialize_iq2000_tdep prototype.
2332 * jit.c: Remove _initialize_jit prototype.
2333 * language.c: Remove _initialize_language prototype.
2334 * linux-fork.c: Remove _initialize_linux_fork prototype.
2335 * linux-nat.c: Remove _initialize_linux_nat prototype.
2336 * linux-tdep.c: Remove _initialize_linux_tdep prototype.
2337 * linux-thread-db.c: Remove _initialize_thread_db prototype.
2338 * lm32-tdep.c: Remove _initialize_lm32_tdep prototype.
2339 * m2-lang.c: Remove _initialize_m2_language prototype.
2340 * m32c-tdep.c: Remove _initialize_m32c_tdep prototype.
2341 * m32r-linux-nat.c: Remove _initialize_m32r_linux_nat prototype.
2342 * m32r-linux-tdep.c: Remove _initialize_m32r_linux_tdep prototype.
2343 * m32r-tdep.c: Remove _initialize_m32r_tdep prototype.
2344 * m68hc11-tdep.c: Remove _initialize_m68hc11_tdep prototype.
2345 * m68k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
2346 * m68k-bsd-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
2347 * m68k-linux-nat.c: Remove _initialize_m68k_linux_tdep prototype.
2348 * m68k-linux-tdep.c: Remove _initialize_m68k_linux_tdep prototype.
2349 * m68k-tdep.c: Remove _initialize_m68k_tdep prototype.
2350 * m88k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
2351 * m88k-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
2352 * machoread.c: Remove _initialize_machoread prototype.
2353 * macrocmd.c: Remove _initialize_macrocmd prototype.
2354 * macroscope.c: Remove _initialize_macroscope prototype.
2355 * maint.c: Remove _initialize_maint_cmds prototype.
2356 * mdebugread.c: Remove _initialize_mdebugread prototype.
2357 * memattr.c: Remove _initialize_mem prototype.
2358 * mep-tdep.c: Remove _initialize_mep_tdep prototype.
2359 * mi/mi-cmd-env.c: Remove _initialize_mi_cmd_env prototype.
2360 * mi/mi-cmds.c: Remove _initialize_mi_cmds prototype.
2361 * mi/mi-interp.c: Remove _initialize_mi_interp prototype.
2362 * mi/mi-main.c: Remove _initialize_mi_main prototype.
2363 * microblaze-linux-tdep.c: Remove
2364 _initialize_microblaze_linux_tdep prototype.
2365 * microblaze-tdep.c: Remove _initialize_microblaze_tdep prototype.
2366 * mips-fbsd-nat.c: Remove _initialize_mips_fbsd_nat prototype.
2367 * mips-fbsd-tdep.c: Remove _initialize_mips_fbsd_tdep prototype.
2368 * mips-linux-nat.c: Remove _initialize_mips_linux_nat prototype.
2369 * mips-linux-tdep.c: Remove _initialize_mips_linux_tdep prototype.
2370 * mips-nbsd-nat.c: Remove _initialize_mipsnbsd_nat prototype.
2371 * mips-nbsd-tdep.c: Remove _initialize_mipsnbsd_tdep prototype.
2372 * mips-sde-tdep.c: Remove _initialize_mips_sde_tdep prototype.
2373 * mips-tdep.c: Remove _initialize_mips_tdep prototype.
2374 * mips64-obsd-nat.c: Remove _initialize_mips64obsd_nat prototype.
2375 * mips64-obsd-tdep.c: Remove _initialize_mips64obsd_tdep
2376 prototype.
2377 * mipsread.c: Remove _initialize_mipsread prototype.
2378 * mn10300-linux-tdep.c: Remove _initialize_mn10300_linux_tdep
2379 prototype.
2380 * mn10300-tdep.c: Remove _initialize_mn10300_tdep prototype.
2381 * moxie-tdep.c: Remove _initialize_moxie_tdep prototype.
2382 * msp430-tdep.c: Remove _initialize_msp430_tdep prototype.
2383 * mt-tdep.c: Remove _initialize_mt_tdep prototype.
2384 * nds32-tdep.c: Remove _initialize_nds32_tdep prototype.
2385 * nios2-linux-tdep.c: Remove _initialize_nios2_linux_tdep
2386 prototype.
2387 * nios2-tdep.c: Remove _initialize_nios2_tdep prototype.
2388 * nto-procfs.c: Remove _initialize_procfs prototype.
2389 * nto-tdep.c: Remove _initialize_nto_tdep prototype.
2390 * objc-lang.c: Remove _initialize_objc_language prototype.
2391 * objfiles.c: Remove _initialize_objfiles prototype.
2392 * observer.c: Remove observer_test_first_notification_function,
2393 observer_test_second_notification_function,
2394 observer_test_third_notification_function, and
2395 _initialize_observer prototypes.
2396 * opencl-lang.c: Remove _initialize_opencl_language prototypes.
2397 * osabi.c: Remove _initialize_gdb_osabi prototype.
2398 * osdata.c: Remove _initialize_osdata prototype.
2399 * p-valprint.c: Remove _initialize_pascal_valprint prototype.
2400 * parse.c: Remove _initialize_parse prototype.
2401 * ppc-fbsd-nat.c: Remove _initialize_ppcfbsd_nat prototype.
2402 * ppc-fbsd-tdep.c: Remove _initialize_ppcfbsd_tdep prototype.
2403 * ppc-linux-nat.c: Remove _initialize_ppc_linux_nat prototype.
2404 * ppc-linux-tdep.c: Remove _initialize_ppc_linux_tdep prototype.
2405 * ppc-nbsd-nat.c: Remove _initialize_ppcnbsd_nat prototype.
2406 * ppc-nbsd-tdep.c: Remove _initialize_ppcnbsd_tdep prototype.
2407 * ppc-obsd-nat.c: Remove _initialize_ppcobsd_nat prototype.
2408 * ppc-obsd-tdep.c: Remove _initialize_ppcobsd_tdep prototype.
2409 * printcmd.c: Remove _initialize_printcmd prototype.
2410 * probe.c: Remove _initialize_probe prototype.
2411 * proc-api.c: Remove _initialize_proc_api prototype.
2412 * proc-events.c: Remove _initialize_proc_events prototype.
2413 * proc-service.c: Remove _initialize_proc_service prototype.
2414 * procfs.c: Remove _initialize_procfs prototype.
2415 * psymtab.c: Remove _initialize_psymtab prototype.
2416 * python/python.c: Remove _initialize_python prototype.
2417 * ravenscar-thread.c: Remove _initialize_ravenscar prototype.
2418 * record-btrace.c: Remove _initialize_record_btrace prototype.
2419 * record-full.c: Remove _initialize_record_full prototype.
2420 * record.c: Remove _initialize_record prototype.
2421 * regcache.c: Remove _initialize_regcache prototype.
2422 * reggroups.c: Remove _initialize_reggroup prototype.
2423 * remote-notif.c: Remove _initialize_notif prototype.
2424 * remote-sim.c: Remove _initialize_remote_sim prototype.
2425 * remote.c: Remove _initialize_remote prototype.
2426 * reverse.c: Remove _initialize_reverse prototype.
2427 * rl78-tdep.c: Remove _initialize_rl78_tdep prototype.
2428 * rs6000-aix-tdep.c: Remove _initialize_rs6000_aix_tdep prototype.
2429 * rs6000-lynx178-tdep.c: Remove _initialize_rs6000_lynx178_tdep
2430 prototype.
2431 * rs6000-nat.c: Remove _initialize_rs6000_nat prototype.
2432 * rs6000-tdep.c: Remove _initialize_rs6000_tdep prototype.
2433 * rust-exp.y: Remove _initialize_rust_exp prototype.
2434 * rx-tdep.c: Remove _initialize_rx_tdep prototype.
2435 * s390-linux-nat.c: Remove _initialize_s390_nat prototype.
2436 * s390-linux-tdep.c: Remove _initialize_s390_tdep prototype.
2437 * score-tdep.c: Remove _initialize_score_tdep prototype.
2438 * selftest-arch.c: Remove _initialize_selftests_foreach_arch
2439 prototype.
2440 * ser-go32.c: Remove _initialize_ser_dos prototype.
2441 * ser-mingw.c: Remove _initialize_ser_windows prototype.
2442 * ser-pipe.c: Remove _initialize_ser_pipe prototype.
2443 * ser-tcp.c: Remove _initialize_ser_tcp prototype.
2444 * ser-unix.c: Remove _initialize_ser_hardwire prototype.
2445 * serial.c: Remove _initialize_serial prototype.
2446 * sh-linux-tdep.c: Remove _initialize_sh_linux_tdep prototype.
2447 * sh-nbsd-nat.c: Remove _initialize_shnbsd_nat prototype.
2448 * sh-nbsd-tdep.c: Remove _initialize_shnbsd_tdep prototype.
2449 * sh-tdep.c: Remove _initialize_sh_tdep prototype.
2450 * skip.c: Remove _initialize_step_skip prototype.
2451 * sol-thread.c: Remove _initialize_sol_thread prototype.
2452 * solib-aix.c: Remove _initialize_solib_aix prototype.
2453 * solib-darwin.c: Remove _initialize_darwin_solib prototype.
2454 * solib-dsbt.c: Remove _initialize_dsbt_solib prototype.
2455 * solib-frv.c: Remove _initialize_frv_solib prototype.
2456 * solib-spu.c: Remove _initialize_spu_solib prototype.
2457 * solib-svr4.c: Remove _initialize_svr4_solib prototype.
2458 * solib-target.c: Remove _initialize_solib_target prototype.
2459 * solib.c: Remove _initialize_solib prototype.
2460 * source.c: Remove _initialize_source prototype.
2461 * sparc-linux-nat.c: Remove _initialize_sparc_linux_nat prototype.
2462 * sparc-linux-tdep.c: Remove _initialize_sparc_linux_tdep
2463 prototype.
2464 * sparc-nat.c: Remove _initialize_sparc_nat prototype.
2465 * sparc-nbsd-nat.c: Remove _initialize_sparcnbsd_nat prototype.
2466 * sparc-nbsd-tdep.c: Remove _initialize_sparcnbsd_tdep prototype.
2467 * sparc-obsd-tdep.c: Remove _initialize_sparc32obsd_tdep
2468 prototype.
2469 * sparc-sol2-nat.c: Remove _initialize_sparc_sol2_nat prototype.
2470 * sparc-sol2-tdep.c: Remove _initialize_sparc_sol2_tdep prototype.
2471 * sparc-tdep.c: Remove _initialize_sparc_tdep prototype.
2472 * sparc64-fbsd-nat.c: Remove _initialize_sparc64fbsd_nat
2473 prototype.
2474 * sparc64-fbsd-tdep.c: Remove _initialize_sparc64fbsd_tdep
2475 prototype.
2476 * sparc64-linux-nat.c: Remove _initialize_sparc64_linux_nat
2477 prototype.
2478 * sparc64-linux-tdep.c: Remove _initialize_sparc64_linux_tdep
2479 prototype.
2480 * sparc64-nat.c: Remove _initialize_sparc64_nat prototype.
2481 * sparc64-nbsd-nat.c: Remove _initialize_sparc64nbsd_nat
2482 prototype.
2483 * sparc64-nbsd-tdep.c: Remove _initialize_sparc64nbsd_tdep
2484 prototype.
2485 * sparc64-obsd-nat.c: Remove _initialize_sparc64obsd_nat
2486 prototype.
2487 * sparc64-obsd-tdep.c: Remove _initialize_sparc64obsd_tdep
2488 prototype.
2489 * sparc64-sol2-tdep.c: Remove _initialize_sparc64_sol2_tdep
2490 prototype.
2491 * spu-linux-nat.c: Remove _initialize_spu_nat prototype.
2492 * spu-multiarch.c: Remove _initialize_spu_multiarch prototype.
2493 * spu-tdep.c: Remove _initialize_spu_tdep prototype.
2494 * stabsread.c: Remove _initialize_stabsread prototype.
2495 * stack.c: Remove _initialize_stack prototype.
2496 * stap-probe.c: Remove _initialize_stap_probe prototype.
2497 * std-regs.c: Remove _initialize_frame_reg prototype.
2498 * symfile-debug.c: Remove _initialize_symfile_debug prototype.
2499 * symfile-mem.c: Remove _initialize_symfile_mem prototype.
2500 * symfile.c: Remove _initialize_symfile prototype.
2501 * symmisc.c: Remove _initialize_symmisc prototype.
2502 * symtab.c: Remove _initialize_symtab prototype.
2503 * target-dcache.c: Remove _initialize_target_dcache prototype.
2504 * target-descriptions.c: Remove _initialize_target_descriptions
2505 prototype.
2506 * thread.c: Remove _initialize_thread prototype.
2507 * tic6x-linux-tdep.c: Remove _initialize_tic6x_linux_tdep
2508 prototype.
2509 * tic6x-tdep.c: Remove _initialize_tic6x_tdep prototype.
2510 * tilegx-linux-nat.c: Remove _initialize_tile_linux_nat prototype.
2511 * tilegx-linux-tdep.c: Remove _initialize_tilegx_linux_tdep
2512 prototype.
2513 * tilegx-tdep.c: Remove _initialize_tilegx_tdep prototype.
2514 * tracefile-tfile.c: Remove _initialize_tracefile_tfile prototype.
2515 * tracefile.c: Remove _initialize_tracefile prototype.
2516 * tracepoint.c: Remove _initialize_tracepoint prototype.
2517 * tui/tui-hooks.c: Remove _initialize_tui_hooks prototype.
2518 * tui/tui-interp.c: Remove _initialize_tui_interp prototype.
2519 * tui/tui-layout.c: Remove _initialize_tui_layout prototype.
2520 * tui/tui-regs.c: Remove _initialize_tui_regs prototype.
2521 * tui/tui-stack.c: Remove _initialize_tui_stack prototype.
2522 * tui/tui-win.c: Remove _initialize_tui_win prototype.
2523 * tui/tui.c: Remove _initialize_tui prototype.
2524 * typeprint.c: Remove _initialize_typeprint prototype.
2525 * user-regs.c: Remove _initialize_user_regs prototype.
2526 * utils.c: Remove _initialize_utils prototype.
2527 * v850-tdep.c: Remove _initialize_v850_tdep prototype.
2528 * valarith.c: Remove _initialize_valarith prototype.
2529 * valops.c: Remove _initialize_valops prototype.
2530 * valprint.c: Remove _initialize_valprint prototype.
2531 * value.c: Remove _initialize_values prototype.
2532 * varobj.c: Remove _initialize_varobj prototype.
2533 * vax-bsd-nat.c: Remove _initialize_vaxbsd_nat prototype.
2534 * vax-nbsd-tdep.c: Remove _initialize_vaxnbsd_tdep prototype.
2535 * vax-tdep.c: Remove _initialize_vax_tdep prototype.
2536 * windows-nat.c: Remove _initialize_windows_nat,
2537 _initialize_check_for_gdb_ini, and _initialize_loadable
2538 prototypes.
2539 * windows-tdep.c: Remove _initialize_windows_tdep prototype.
2540 * xcoffread.c: Remove _initialize_xcoffread prototype.
2541 * xml-support.c: Remove _initialize_xml_support prototype.
2542 * xstormy16-tdep.c: Remove _initialize_xstormy16_tdep prototype.
2543 * xtensa-linux-nat.c: Remove _initialize_xtensa_linux_nat
2544 prototype.
2545 * xtensa-linux-tdep.c: Remove _initialize_xtensa_linux_tdep
2546 prototype.
2547 * xtensa-tdep.c: Remove _initialize_xtensa_tdep prototype.
2548
a611b5cb
KS
25492017-09-08 Keith Seitz <keiths@redhat.com>
2550
2551 * dwarf2read.c (struct field_info) <fnfields>: Remove unused
2552 field.
2553
469412dd
CW
25542017-09-08 Christoph Weinmann <christoph.t.weinmann@intel.com>
2555
2556 * f-valprint.c (f_val_print): Remove check for one byte
2557 sized integers. Remove printing of character type.
2558
a5ad232b
FP
25592017-09-08 Frank Penczek <frank.penczek@intel.com>
2560 Christoph Weinmann <christoph.t.weinmann@intel.com>
2561 Bernhard Heckel <bernhard.heckel@intel.com>
2562
2563 * f-typeprint.c (f_type_print_base): Use fprintfi_filtered
2564 to maintain proper indentation when printing pointers/refs.
2565
e5014227
JB
25662017-09-07 Joel Brobecker <brobecker@adacore.com>
2567
2568 GDB 8.0.1 released.
2569
63c99141
JB
25702017-09-07 Joel Brobecker <brobecker@adacore.com>
2571
2572 * NEWS (Changes in GDB 7.11): Remove entry for QStartupWithShell.
2573
69c1e056
TT
25742017-09-05 Tom Tromey <tom@tromey.com>
2575
2576 * parse.c (funcall_chain): Now a std::vector.
2577 (start_arglist, end_arglist): Simplify.
2578 (free_funcalls): Remove.
2579 (parse_exp_in_context_1): Remove cleanup.
2580
fef704bf
TT
25812017-09-05 Tom Tromey <tom@tromey.com>
2582
2583 * go-exp.y (go_parse): Don't create a cleanup.
2584
5613c585
TT
25852017-09-05 Tom Tromey <tom@tromey.com>
2586
2587 * d-exp.y (PrimaryExpression): Use std::string.
2588 (d_parse): Don't create a cleanup.
2589
eae49211
TT
25902017-09-05 Tom Tromey <tom@tromey.com>
2591
2592 * utils.c (do_clear_parser_state): Remove.
2593 (make_cleanup_clear_parser_state): Remove.
2594 * p-exp.y (pascal_parse): Use scoped_restore.
2595 * m2-exp.y (m2_parse): Use scoped_restore.
2596 * f-exp.y (f_parse): Use scoped_restore.
2597 * d-exp.y (d_parse): Use scoped_restore.
2598 * c-exp.y (c_parse): Use scoped_restore.
2599 * ada-exp.y (ada_parse): Use scoped_restore.
2600 * utils.h (make_cleanup_clear_parser_state): Remove.
2601
73b9be8b
KS
26022017-09-06 Keith Seitz <keiths@redhat.com>
2603
2604 * dwarf2read.c (dw2_linkage_name_attr): New function.
2605 (dw2_linkage_name): New function.
2606 (dwarf2_compute_name, dwarf2_physname, read_call_site_scope)
2607 (guess_full_die_structure_name, dwarf2_name): Use dw2_linkage_name.
2608 (anonymous_struct_prefix, dwarf2_name): Use dw2_linkage_name_attr.
2609
a102602b
KR
26102017-09-06 Kamil Rytarowski <n54@gmx.com>
2611
2612 * config/djgpp/djconfig.sh: Correct shell portability issue.
2613
28ad437d
KR
26142017-09-06 Kamil Rytarowski <n54@gmx.com>
2615
2616 * configure.nat: Define HAVE_NATIVE_GCORE_HOST on NetBSD.
2617
351787dd
JB
26182017-09-06 John Baldwin <jhb@FreeBSD.org>
2619
2620 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
2621 * NEWS: Mention new FreeBSD/mips native configuration.
2622 * configure.host: Add aarch64*-*-freebsd*.
2623 * configure.nat: Likewise.
2624 * aarch64-fbsd-nat.c: New file.
2625
c0f84956
JB
26262017-09-06 John Baldwin <jhb@FreeBSD.org>
2627
2628 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-fbsd-tdep.o.
2629 (ALLDEPFILES): Add aarch64-fbsd-tdep.c.
2630 * NEWS: Mention new FreeBSD/aarch64 target.
2631 * configure.tgt: Add aarch64*-*-freebsd*.
2632 * aarch64-fbsd-tdep.c: New file.
2633 * aarch64-fbsd-tdep.h: New file.
2634
7610297a
KR
26352017-09-06 Kamil Rytarowski <n54@gmx.com>
2636
2637 * MAINTAINERS (Write After Approval): Add Kamil Rytarowski.
2638
fbd1b771
JK
26392017-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2640
2641 * parse.c (find_minsym_type_and_address): Don't relocate addresses
2642 of TLS symbols.
2643
5ca79eae
PW
26442017-09-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2645
2646 * objfiles.c (get_objfile_bfd_data): Remove useless obstack_init
2647 call.
2648
bf93d7ba
SM
26492017-09-05 Simon Marchi <simon.marchi@ericsson.com>
2650
2651 * infrun.c (follow_exec): Call add_thread after
2652 target_find_description.
2653
1bb7c059
SM
26542017-09-05 Simon Marchi <simon.marchi@ericsson.com>
2655
2656 * infrun.c (handle_inferior_event_1): When exec'ing, read
2657 stop_pc after follow_exec.
2658
fc809827
SM
26592017-09-05 Simon Marchi <simon.marchi@ericsson.com>
2660
2661 * remote.c (process_g_packet): Update error message.
2662
d2fcdd85
YQ
26632017-09-05 Yao Qi <yao.qi@linaro.org>
2664
2665 * configure.tgt (gdb_target_obs): Add i386.o for x86_64-*
2666 targets.
2667
e69570ee
PA
26682017-09-05 Pedro Alves <palves@redhat.com>
2669
2670 * eval.c (eval_call, evaluate_funcall): New functions, factored
2671 out from ...
2672 (evaluate_subexp_standard): ... this.
2673
22916b07
YQ
26742017-09-05 Yao Qi <yao.qi@linaro.org>
2675
2676 * amd64-tdep.c (amd64_target_description): Create target
2677 descriptions.
2678 (_initialize_amd64_tdep): Don't call functions
2679 initialize_tdesc_amd64_*. Add self tests.
2680 * arch/amd64.c (amd64_create_target_description): Add parameter
2681 is_linux. Call set_tdesc_osabi if is_linux is true.
2682 * arch/amd64.h (amd64_create_target_description): Update the
2683 declaration.
2684 * arch/i386.c (i386_create_target_description): Add parameter
2685 is_linux. Call set_tdesc_osabi if is_linux is true.
2686 * arch/i386.h (i386_create_target_description): Update
2687 declaration.
2688 * configure.tgt: Add i386.o to gdb_target_obs.
2689 * features/Makefile (XMLTOC): Remove i386/*.xml.
2690 * features/i386/amd64-avx-avx512.c: Remove.
2691 * features/i386/amd64-avx-mpx-avx512-pku.c: Remove.
2692 * features/i386/amd64-avx-mpx.c: Remove.
2693 * features/i386/amd64-avx.c: Remove.
2694 * features/i386/amd64-mpx.c: Remove.
2695 * features/i386/amd64.c: Remove.
2696 * features/i386/i386-avx-avx512.c: Remove.
2697 * features/i386/i386-avx-mpx-avx512-pku.c: Remove.
2698 * features/i386/i386-avx-mpx.c: Remove.
2699 * features/i386/i386-avx.c: Remove.
2700 * features/i386/i386-mmx.c: Remove.
2701 * features/i386/i386-mpx.c: Remove.
2702 * features/i386/i386.c: Remove.
2703 * i386-tdep.c: Don't include features/i386/i386*.c., include
2704 target-descriptions.h and arch/i386.h.
2705 (i386_target_description): Create target descriptions.
2706 (i386_gdbarch_init): Don't call initialize_tdesc_i386_*
2707 functions. Do self tests.
2708
0854b7b1
YQ
27092017-09-05 Yao Qi <yao.qi@linaro.org>
2710
2711 * features/Makefile (XMLTOC): Remove i386/amd64XXX-linux.xml.
2712 * features/i386/amd64-avx-avx512-linux.c: Removed.
2713 * features/i386/amd64-avx-linux.c: Removed.
2714 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Removed.
2715 * features/i386/amd64-avx-mpx-linux.c: Removed.
2716 * features/i386/amd64-linux.c: Removed.
2717 * features/i386/amd64-mpx-linux.c: Removed.
2718 * features/i386/x32-avx-avx512-linux.c: Removed.
2719 * features/i386/x32-avx-linux.c: Removed.
2720 * features/i386/x32-linux.c: Removed.
2721
b4570e4b
YQ
27222017-09-05 Yao Qi <yao.qi@linaro.org>
2723
2724 * amd64-linux-tdep.c: Include arch/amd64.h. Don't include
2725 features/i386/*.c.
2726 (amd64_linux_read_description): Call
2727 amd64_create_target_description.
2728 * arch/amd64.c: New file.
2729 * arch/amd64.h: New file.
2730 * configure.tgt (x86_64-*-linux*): Append amd64.o.
2731 * Makefile.in (ALL_64_TARGET_OBS): Append amd64.o.
2732
6c73f67f
YQ
27332017-09-05 Yao Qi <yao.qi@linaro.org>
2734
2735 * amd64-linux-tdep.c: Don't include amd64-XXX-linux and
2736 x32-XXX-linux.c. Include 64bit-XX.c and x32-XX.c.
2737 (amd64_linux_read_description): Create target descriptions.
2738 (_initialize_amd64_linux_tdep): Don't call initialize_tdesc_XXX
2739 functions. Add unit tests.
2740 * features/Makefile (FEATURE_XMLFILES): Append 64bit-XXX.xml and
2741 x32-core.xml.
2742 * features/i386/64bit-avx.c: Generated.
2743 * features/i386/64bit-avx512.c: Generated.
2744 * features/i386/64bit-core.c: Generated.
2745 * features/i386/64bit-linux.c: Generated.
2746 * features/i386/64bit-mpx.c: Generated.
2747 * features/i386/64bit-pkeys.c: Generated.
2748 * features/i386/64bit-segments.c: Generated.
2749 * features/i386/64bit-sse.c: Generated.
2750 * features/i386/x32-core.c: Generated.
2751 * target-descriptions.c (maint_print_c_tdesc_cmd): Print feature
2752 c files for amd64-linux and x32-linux.
2753
9d3d478b
YQ
27542017-09-05 Yao Qi <yao.qi@linaro.org>
2755
2756 * amd64-linux-tdep.c (amd64_linux_read_description): New
2757 function.
2758 (amd64_linux_core_read_description): Call
2759 amd64_linux_read_description.
2760 (amd64_linux_init_abi): Likewise.
2761 (amd64_x32_linux_init_abi): Likewise.
2762 * amd64-linux-tdep.h (amd64_linux_read_description): Declare.
2763 * x86-linux-nat.c (x86_linux_read_description): Call
2764 amd64_linux_read_description.
2765
b9f1d50f
YQ
27662017-09-05 Yao Qi <yao.qi@linaro.org>
2767
2768 * amd64-linux-tdep.c (amd64_linux_core_read_description): Update
2769 comments.
2770
188c9e6d
YQ
27712017-09-05 Yao Qi <yao.qi@linaro.org>
2772
2773 * features/Makefile (XMLTOC): Remove i386/i386-XX-linux.xml.
2774 * features/i386/i386-avx-avx512-linux.c: Remove.
2775 * features/i386/i386-avx-linux.c: Remove.
2776 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Remove.
2777 * features/i386/i386-avx-mpx-linux.c: Remove.
2778 * features/i386/i386-linux.c: Remove.
2779 * features/i386/i386-mmx-linux.c: Remove.
2780 * features/i386/i386-mpx-linux.c: Remove.
2781
5f035c07
YQ
27822017-09-05 Yao Qi <yao.qi@linaro.org>
2783
2784 * Makefile.in (ALL_TARGET_OBS): Add i386.o.
2785 (SFILES): Add arch/i386.c.
2786 (HFILES_NO_SRCDIR): Add arch/i386.h.
2787 * arch/i386.c: New file.
2788 * arch/i386.h: New file.
2789 * arch/tdesc.h (allocate_target_description): Declare.
2790 (set_tdesc_architecture): Declare.
2791 (set_tdesc_osabi): Declare.
2792 * configure.tgt (i[34567]86-*-linux*): Add i386.o.
2793 * i386-linux-tdep.c: Don't include ../features/i386/32bit-XXX.c.
2794 include arch/i386.h.
2795 (i386_linux_read_description): Remove code and call
2796 i386_create_target_description.
2797 (set_tdesc_architecture): New function.
2798 (set_tdesc_osabi): New function.
2799 * target-descriptions.h (allocate_target_description): Remove.
2800
0abe8a89
YQ
28012017-09-05 Yao Qi <yao.qi@linaro.org>
2802
2803 * arch/tdesc.h (tdesc_create_feature): Add an argument xml.
2804 * target-descriptions.c (tdesc_create_feature): Likewise, and
2805 adjust code.
2806 * features/i386/32bit-avx.c: Re-generated.
2807 * features/i386/32bit-avx512.c: Re-generated.
2808 * features/i386/32bit-core.c: Re-generated.
2809 * features/i386/32bit-linux.c: Re-generated.
2810 * features/i386/32bit-mpx.c: Re-generated.
2811 * features/i386/32bit-pkeys.c: Re-generated.
2812 * features/i386/32bit-sse.c: Re-generated.
2813
0a188386
YQ
28142017-09-05 Yao Qi <yao.qi@linaro.org>
2815
2816 * regformats/regdef.h (struct reg): Override operator == and !=.
2817
f49ff000
YQ
28182017-09-05 Yao Qi <yao.qi@linaro.org>
2819
2820 * arch/tdesc.h: New file.
2821 * regformats/regdat.sh: Generate code using tdesc_create_reg.
2822 * target-descriptions.c: Update comments.
2823 * target-descriptions.h: Include "arch/tdesc.h". Remove the
2824 declarations.
2825 * features/i386/32bit-avx.c: Re-generated.
2826 * features/i386/32bit-avx512.c: Re-generated.
2827 * features/i386/32bit-core.c: Re-generated.
2828 * features/i386/32bit-linux.c: Re-generated.
2829 * features/i386/32bit-mpx.c: Re-generated.
2830 * features/i386/32bit-pkeys.c: Re-generated.
2831 * features/i386/32bit-sse.c: Re-generated.
2832
f7000548
YQ
28332017-09-05 Yao Qi <yao.qi@linaro.org>
2834
2835 * regformats/regdat.sh: Update generated code.
2836
c9a5e2a5
YQ
28372017-09-05 Yao Qi <yao.qi@linaro.org>
2838
2839 * regformats/regdat.sh: Adjust code order.
2840
d6b687ac
SM
28412017-09-05 Simon Marchi <simon.marchi@ericsson.com>
2842
2843 * expprint.c (dump_subexp_body_standard): Use constant format
2844 string in fprintf_filtered call.
2845
a379bfd0
JB
28462017-09-04 John Baldwin <jhb@FreeBSD.org>
2847
2848 * configure.nat: Add "x86-nat.o x86-dregs.o" for NetBSD/amd64 and
2849 NetBSD/i386.
2850 * x86-bsd-nat.c [!DBREG_DRX && __NetBSD__]: Define DBREG_DRX.
2851
f7efc967
JB
28522017-09-04 John Baldwin <jhb@FreeBSD.org>
2853
2854 * bsd-kvm.o: Make <sys/user.h> conditional on HAVE_SYS_USER_H.
2855
c49fbc6c
JB
28562017-09-04 John Baldwin <jhb@FreeBSD.org>
2857
2858 * bsd-kvm.o: Define _KMEMUSER.
2859 * configure.ac: Define _KMEMUSER when checking for "struct lwp".
2860 * configure: Regenerate.
2861
26562e73
JB
28622017-09-04 John Baldwin <jhb@FreeBSD.org>
2863
2864 * amd64-fbsd-nat.c: Add include of "x86-xstate.h".
2865 * i386-fbsd-nat.c: Likewise.
2866
31cf1487
JB
28672017-09-04 John Baldwin <jhb@FreeBSD.org>
2868
2869 * unittests/array-view-selftests.c: Add include of <array>.
2870
5b9f8a7c
JB
28712017-09-04 John Baldwin <jhb@FreeBSD.org>
2872
2873 * spu-tdep.c (flush_ea_cache): Add missing argument to
2874 call_function_by_hand.
2875
d69cf9b2
PA
28762017-09-04 Pedro Alves <palves@redhat.com>
2877
2878 * NEWS (Safer support for debugging with no debug info): New.
2879
3693fdb3
PA
28802017-09-04 Pedro Alves <palves@redhat.com>
2881
2882 * c-exp.y (function_method, function_method_void): Add current
2883 instance flags to TYPE_INSTANCE.
2884 * dwarf2read.c (check_modifier): New.
2885 (compute_delayed_physnames): Assert that only C++ adds delayed
2886 physnames. Mark fn_fields as const/volatile depending on
2887 physname.
2888 * eval.c (make_params): New type_instance_flags parameter. Use
2889 it as the new type's instance flags.
2890 (evaluate_subexp_standard) <TYPE_INSTANCE>: Extract the instance
2891 flags element and pass it to make_params.
2892 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: Handle
2893 instance flags element.
2894 (dump_subexp_body_standard) <TYPE_INSTANCE>: Likewise.
2895 * gdbtypes.h: Include "enum-flags.h".
2896 (type_instance_flags): New enum-flags type.
2897 (TYPE_CONST, TYPE_VOLATILE, TYPE_RESTRICT, TYPE_ATOMIC)
2898 (TYPE_CODE_SPACE, TYPE_DATA_SPACE): Return boolean.
2899 * parse.c (operator_length_standard) <TYPE_INSTANCE>: Adjust.
2900 (follow_type_instance_flags): New function.
2901 (operator_check_standard) <TYPE_INSTANCE>: Adjust.
2902 * parser-defs.h (follow_type_instance_flags): Declare.
2903 * valops.c (value_struct_elt_for_reference): const/volatile must
2904 match too.
2905
e68cb8e0
PA
29062017-09-04 Pedro Alves <palves@redhat.com>
2907
2908 * cp-namespace.c (cp_search_static_and_baseclasses): Handle
2909 function/method scopes; lookup the nested name as a function local
2910 static variable.
2911
858be34c
PA
29122017-09-04 Pedro Alves <palves@redhat.com>
2913
2914 (%type <voidval>): Add function_method.
2915 * c-exp.y (exp): New production for calls with no arguments.
2916 (function_method, function_method_void_or_typelist): New
2917 productions.
2918 (exp): New production for "method()::static_var".
2919 * eval.c (evaluate_subexp_standard): Handle OP_FUNC_STATIC_VAR.
2920 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
2921 Handle OP_FUNC_STATIC_VAR.
2922 * parse.c (operator_length_standard):
2923 Handle OP_FUNC_STATIC_VAR.
2924
dd5901a6
PA
29252017-09-04 Pedro Alves <palves@redhat.com>
2926
2927 * eval.c (evaluate_subexp_standard): Remove UNOP_MEMVAL_TLS
2928 handling.
2929 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
2930 Ditto.
2931 * parse.c (operator_length_standard, operator_check_standard):
2932 Ditto.
2933 * std-operator.def (UNOP_MEMVAL_TLS): Delete.
2934
46a4882b
PA
29352017-09-04 Pedro Alves <palves@redhat.com>
2936
2937 * ax-gdb.c: Include "typeprint.h".
2938 (gen_expr_for_cast): New function.
2939 (gen_expr) <OP_CAST, OP_CAST_TYPE>: Use it.
2940 <OP_VAR_VALUE, OP_MSYM_VAR_VALUE>: Error out if the variable's
2941 type is unknown.
2942 * dwarf2read.c (new_symbol_full): Fallback to int instead of
2943 nodebug_data_symbol.
2944 * eval.c: Include "typeprint.h".
2945 (evaluate_subexp_standard) <OP_VAR_VALUE, OP_VAR_MSYM_VALUE>:
2946 Error out if symbol has unknown type.
2947 <UNOP_CAST, UNOP_CAST_TYPE>: Common bits factored out to
2948 evaluate_subexp_for_cast.
2949 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof): Handle
2950 OP_VAR_MSYM_VALUE.
2951 (evaluate_subexp_for_cast): New function.
2952 * gdbtypes.c (init_nodebug_var_type): New function.
2953 (objfile_type): Use it to initialize types of variables with no
2954 debug info.
2955 * typeprint.c (error_unknown_type): New.
2956 * typeprint.h (error_unknown_type): New declaration.
2957 * compile/compile-c-types.c (convert_type_basic): Handle
2958 TYPE_CODE_ERROR; warn and fallback to int for variables with
2959 unknown type.
2960
fe13dfec
PA
29612017-09-04 Pedro Alves <palves@redhat.com>
2962
2963 * eval.c (evaluate_var_value): New function, factored out from ...
2964 (evaluate_subexp_standard): ... here.
2965
d008ee21
PA
29662017-09-04 Pedro Alves <palves@redhat.com>
2967
2968 * eval.c (evaluate_subexp_standard) <UNOP_COMPLEMENT, UNOP_ADDR>:
2969 Remove useless assignments to 'op'.
2970
827d0c51
PA
29712017-09-04 Pedro Alves <palves@redhat.com>
2972
2973 * eval.c (eval_skip_value): New function.
2974 (evaluate_subexp_standard): Use it.
2975
2c5a2be1
PA
29762017-09-04 Pedro Alves <palves@redhat.com>
2977
2978 * eval.c (evaluate_subexp_standard): <OP_FUNCALL>: Extract
2979 function name from symbol/minsym and pass it to
2980 error_call_unknown_return_type.
2981
74ea4be4
PA
29822017-09-04 Pedro Alves <palves@redhat.com>
2983
2984 * ada-lang.c (resolve_subexp): Handle OP_VAR_MSYM_VALUE.
2985 * ax-gdb.c (gen_msym_var_ref): New function.
2986 (gen_expr): Handle OP_VAR_MSYM_VALUE.
2987 * eval.c (evaluate_var_msym_value): New function.
2988 * eval.c (evaluate_subexp_standard): Handle OP_VAR_MSYM_VALUE.
2989 <OP_FUNCALL>: Extract function name from symbol/minsym and pass it
2990 to call_function_by_hand.
2991 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
2992 Handle OP_VAR_MSYM_VALUE.
2993 (union exp_element) <msymbol>: New field.
2994 * minsyms.h (struct type): Forward declare.
2995 (find_minsym_type_and_address): Declare.
2996 * parse.c (write_exp_elt_msym): New function.
2997 (write_exp_msymbol): Delete, refactored as ...
2998 (find_minsym_type_and_address): ... this new function.
2999 (write_exp_msymbol): Reimplement using OP_VAR_MSYM_VALUE.
3000 (operator_length_standard, operator_check_standard): Handle
3001 OP_VAR_MSYM_VALUE.
3002 * std-operator.def (OP_VAR_MSYM_VALUE): New.
3003
7022349d
PA
30042017-09-04 Pedro Alves <palves@redhat.com>
3005
3006 * ada-lang.c (ada_evaluate_subexp) <TYPE_CODE_FUNC>: Don't handle
3007 TYPE_GNU_IFUNC specially here. Throw error if return type is
3008 unknown.
3009 * ada-typeprint.c (print_func_type): Handle functions with unknown
3010 return type.
3011 * c-typeprint.c (c_type_print_base): Handle functions and methods
3012 with unknown return type.
3013 * compile/compile-c-symbols.c (convert_symbol_bmsym)
3014 <mst_text_gnu_ifunc>: Use nodebug_text_gnu_ifunc_symbol.
3015 * compile/compile-c-types.c: Include "objfiles.h".
3016 (convert_func): For functions with unknown return type, warn and
3017 default to int.
3018 * compile/compile-object-run.c (compile_object_run): Adjust call
3019 to call_function_by_hand_dummy.
3020 * elfread.c (elf_gnu_ifunc_resolve_addr): Adjust call to
3021 call_function_by_hand.
3022 * eval.c (evaluate_subexp_standard): Adjust calls to
3023 call_function_by_hand. Handle functions and methods with unknown
3024 return type. Pass expect_type to call_function_by_hand.
3025 * f-typeprint.c (f_type_print_base): Handle functions with unknown
3026 return type.
3027 * gcore.c (call_target_sbrk): Adjust call to
3028 call_function_by_hand.
3029 * gdbtypes.c (objfile_type): Leave nodebug text symbol with NULL
3030 return type instead of int. Make nodebug_text_gnu_ifunc_symbol be
3031 an integer address type instead of nodebug.
3032 * guile/scm-value.c (gdbscm_value_call): Adjust call to
3033 call_function_by_hand.
3034 * infcall.c (error_call_unknown_return_type): New function.
3035 (call_function_by_hand): New "default_return_type" parameter.
3036 Pass it down.
3037 (call_function_by_hand_dummy): New "default_return_type"
3038 parameter. Use it instead of defaulting to int. If there's no
3039 default and the return type is unknown, throw an error. If
3040 there's a default return type, and the called function has no
3041 debug info, then assume the function is prototyped.
3042 * infcall.h (call_function_by_hand, call_function_by_hand_dummy):
3043 New "default_return_type" parameter.
3044 (error_call_unknown_return_type): New declaration.
3045 * linux-fork.c (call_lseek): Cast return type of lseek.
3046 (inferior_call_waitpid, checkpoint_command): Adjust calls to
3047 call_function_by_hand.
3048 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap): Adjust
3049 calls to call_function_by_hand.
3050 * m2-typeprint.c (m2_procedure): Handle functions with unknown
3051 return type.
3052 * objc-lang.c (lookup_objc_class, lookup_child_selector)
3053 (value_nsstring, print_object_command): Adjust calls to
3054 call_function_by_hand.
3055 * p-typeprint.c (pascal_type_print_varspec_prefix): Handle
3056 functions with unknown return type.
3057 (pascal_type_print_func_varspec_suffix): New function.
3058 (pascal_type_print_varspec_suffix) <TYPE_CODE_FUNC,
3059 TYPE_CODE_METHOD>: Use it.
3060 * python/py-value.c (valpy_call): Adjust call to
3061 call_function_by_hand.
3062 * rust-lang.c (rust_evaluate_funcall): Adjust call to
3063 call_function_by_hand.
3064 * valarith.c (value_x_binop, value_x_unop): Adjust calls to
3065 call_function_by_hand.
3066 * valops.c (value_allocate_space_in_inferior): Adjust call to
3067 call_function_by_hand.
3068 * typeprint.c (type_print_unknown_return_type): New function.
3069 * typeprint.h (type_print_unknown_return_type): New declaration.
3070
54990598
PA
30712017-09-04 Pedro Alves <palves@redhat.com>
3072
3073 * gdbtypes.c (lookup_function_type_with_arguments): Mark function
3074 types with more than one parameter as prototyped.
3075
9a24775b
PA
30762017-09-04 Pedro Alves <palves@redhat.com>
3077
3078 * cli/cli-cmds.c (print_disassembly, disassemble_current_function)
3079 (disassemble_command): Use gdb_disassembly_flags instead of bare
3080 int.
3081 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn)
3082 (dump_insns, do_mixed_source_and_assembly_deprecated)
3083 (do_mixed_source_and_assembly, do_assembly_only, gdb_disassembly):
3084 Use gdb_disassembly_flags instead of bare int.
3085 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED, DISASSEMBLY_RAW_INSN)
3086 (DISASSEMBLY_OMIT_FNAME, DISASSEMBLY_FILENAME)
3087 (DISASSEMBLY_OMIT_PC, DISASSEMBLY_SOURCE)
3088 (DISASSEMBLY_SPECULATIVE): No longer macros. Instead they're...
3089 (enum gdb_disassembly_flag): ... values of this new enumeration.
3090 (gdb_disassembly_flags): Define.
3091 (gdb_disassembly)
3092 (gdb_pretty_print_disassembler::pretty_print_insn): Use it.
3093 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Use
3094 gdb_disassembly_flags instead of bare int.
3095 * record-btrace.c (btrace_insn_history)
3096 (record_btrace_insn_history, record_btrace_insn_history_range)
3097 (record_btrace_insn_history_from): Use gdb_disassembly_flags
3098 instead of bare int.
3099 * record.c (get_insn_history_modifiers, cmd_record_insn_history):
3100 Use gdb_disassembly_flags instead of bare int.
3101 * target-debug.h (target_debug_print_gdb_disassembly_flags):
3102 Define.
3103 * target-delegates.c: Regenerate.
3104 * target.c (target_insn_history, target_insn_history_from)
3105 (target_insn_history_range): Use gdb_disassembly_flags instead of
3106 bare int.
3107 * target.h: Include "disasm.h".
3108 (struct target_ops) <to_insn_history, to_insn_history_from,
3109 to_insn_history_range>: Use gdb_disassembly_flags instead of bare
3110 int.
3111 (target_insn_history, target_insn_history_from)
3112 (target_insn_history_range): Use gdb_disassembly_flags instead of
3113 bare int.
3114
80a65e9b
SM
31152017-09-04 Simon Marchi <simon.marchi@ericsson.com>
3116
3117 * cli/cli-script.c (build_command_line): For if/while commands,
3118 check whether args is empty.
3119
6b66338c
SM
31202017-09-04 Simon Marchi <simon.marchi@ericsson.com>
3121
3122 * cli/cli-script.h (enum misc_command_type): Move from defs.h.
3123 (enum command_control_type): Likewise.
3124 (struct command_line): Likewise.
3125 (free_command_lines): Likewise.
3126 (struct command_lines_deleter): Likewise.
3127 (command_line_up): Likewise.
3128 (read_command_lines): Likewise.
3129 (read_command_lines_1): Likewise.
3130 * defs.h (enum misc_command_type): Move to cli/cli-script.h.
3131 (enum command_control_type): Likewise.
3132 (struct command_line): Likewise.
3133 (free_command_lines): Likewise.
3134 (struct command_lines_deleter): Likewise.
3135 (command_line_up): Likewise.
3136 (read_command_lines): Likewise.
3137 (read_command_lines_1): Likewise.
3138 * breakpoint.h: Include cli/cli-script.h.
3139 * extension-priv.h: Likewise.
3140 * gdbcmd.h: Likewise.
3141
51abb421
PA
31422017-09-04 Pedro Alves <palves@redhat.com>
3143
3144 * ada-lang.c (is_known_support_routine): Move sal declaration to
3145 where it is initialized.
3146 * breakpoint.c (create_internal_breakpoint, init_catchpoint)
3147 (parse_breakpoint_sals, decode_static_tracepoint_spec)
3148 (clear_command, update_static_tracepoint): Remove init_sal
3149 references. Move declarations closer to initializations.
3150 * cli/cli-cmds.c (list_command): Move sal declarations closer to
3151 initializations.
3152 * elfread.c (elf_gnu_ifunc_resolver_stop): Remove init_sal
3153 references. Move sal declarations closer to initializations.
3154 * frame.c (find_frame_sal): Return a symtab_and_line via function
3155 return instead of output parameter. Remove init_sal references.
3156 * frame.h (find_frame_sal): Return a symtab_and_line via function
3157 return instead of output parameter.
3158 * guile/scm-frame.c (gdbscm_frame_sal): Adjust.
3159 * guile/scm-symtab.c (stscm_make_sal_smob): Use in-place new
3160 instead of memset.
3161 (gdbscm_find_pc_line): Remove init_sal reference.
3162 * infcall.c (call_function_by_hand_dummy): Remove init_sal
3163 references. Move declarations closer to initializations.
3164 * infcmd.c (set_step_frame): Update. Move declarations closer to
3165 initializations.
3166 (finish_backward): Remove init_sal references. Move declarations
3167 closer to initializations.
3168 * infrun.c (process_event_stop_test, handle_step_into_function)
3169 (insert_hp_step_resume_breakpoint_at_frame)
3170 (insert_step_resume_breakpoint_at_caller): Likewise.
3171 * linespec.c (create_sals_line_offset, decode_digits_ordinary)
3172 (symbol_to_sal): Likewise.
3173 * probe.c (parse_probes_in_pspace): Remove init_sal reference.
3174 * python/py-frame.c (frapy_find_sal): Move sal declaration closer
3175 to its initialization.
3176 * reverse.c (save_bookmark_command): Use new/delete. Remove
3177 init_sal references. Move declarations closer to initializations.
3178 * source.c (get_current_source_symtab_and_line): Remove brace
3179 initialization.
3180 (set_current_source_symtab_and_line): Now takes the sal by const
3181 reference. Remove brace initialization.
3182 (line_info): Remove init_sal reference.
3183 * source.h (set_current_source_symtab_and_line): Now takes a
3184 symtab_and_line via const reference.
3185 * stack.c (set_current_sal_from_frame): Adjust.
3186 (print_frame_info): Adjust.
3187 (get_last_displayed_sal): Return the sal via function return
3188 instead of via output parameter. Simplify.
3189 (frame_info): Adjust.
3190 * stack.h (get_last_displayed_sal): Return the sal via function
3191 return instead of via output parameter.
3192 * symtab.c (init_sal): Delete.
3193 (find_pc_sect_line): Remove init_sal references. Move
3194 declarations closer to initializations.
3195 (find_function_start_sal): Remove init_sal references. Move
3196 declarations closer to initializations.
3197 * symtab.h (struct symtab_and_line): In-class initialize all
3198 fields.
3199 * tracepoint.c (set_traceframe_context)
3200 (print_one_static_tracepoint_marker): Remove init_sal references.
3201 Move declarations closer to initializations.
3202 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Adjust.
3203 * tui/tui-stack.c (tui_show_frame_info): Adjust. Move
3204 declarations closer to initializations.
3205 * tui/tui-winsource.c (tui_update_source_window_as_is): Remove
3206 init_sal references. Adjust.
3207
6c5b2ebe
PA
32082017-09-04 Pedro Alves <palves@redhat.com>
3209
3210 * ax-gdb.c (agent_command_1): Use range-for.
3211 * break-catch-throw.c (re_set_exception_catchpoint): Update.
3212 * breakpoint.c: Include "common/array-view.h".
3213 (init_breakpoint_sal, create_breakpoint_sal): Change sals
3214 parameter from struct symtabs_and_lines to
3215 array_view<symtab_and_line>. Adjust. Use range-for. Update.
3216 (breakpoint_sals_to_pc): Change sals parameter from struct
3217 symtabs_and_lines to std::vector reference.
3218 (check_fast_tracepoint_sals): Change sals parameter from struct
3219 symtabs_and_lines to std::array_view. Use range-for.
3220 (decode_static_tracepoint_spec): Return a std::vector instead of
3221 symtabs_and_lines. Update.
3222 (create_breakpoint): Update.
3223 (break_range_command, until_break_command, clear_command): Update.
3224 (base_breakpoint_decode_location, bkpt_decode_location)
3225 (bkpt_probe_create_sals_from_location)
3226 (bkpt_probe_decode_location, tracepoint_decode_location)
3227 (tracepoint_probe_decode_location)
3228 (strace_marker_create_sals_from_location): Return a std::vector
3229 instead of symtabs_and_lines.
3230 (strace_marker_create_breakpoints_sal): Update.
3231 (strace_marker_decode_location): Return a std::vector instead of
3232 symtabs_and_lines. Update.
3233 (update_breakpoint_locations): Change struct symtabs_and_lines
3234 parameters to gdb::array_view. Adjust.
3235 (location_to_sals): Return a std::vector instead of
3236 symtabs_and_lines. Update.
3237 (breakpoint_re_set_default): Use std::vector instead of struct
3238 symtabs_and_lines.
3239 (decode_location_default): Return a std::vector instead of
3240 symtabs_and_lines. Update.
3241 * breakpoint.h: Include "common/array-view.h".
3242 (struct breakpoint_ops) <decode_location>: Now returns a
3243 std::vector instead of returning a symtabs_and_lines via output
3244 parameter.
3245 (update_breakpoint_locations): Change sals parameters to use
3246 gdb::array_view.
3247 * cli/cli-cmds.c (edit_command, list_command): Update to use
3248 std::vector and gdb::array_view.
3249 (ambiguous_line_spec): Adjust to use gdb::array_view and
3250 range-for.
3251 (compare_symtabs): Rename to ...
3252 (cmp_symtabs): ... this. Change parameters to symtab_and_line
3253 const reference and adjust.
3254 (filter_sals): Rewrite using std::vector and standard algorithms.
3255 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Simplify.
3256 (jump_command): Update to use std::vector.
3257 * linespec.c (struct linespec_state) <canonical_names>: Update
3258 comment.
3259 (add_sal_to_sals_basic): Delete.
3260 (add_sal_to_sals, filter_results, convert_results_to_lsals)
3261 (decode_line_2, create_sals_line_offset)
3262 (convert_address_location_to_sals, convert_linespec_to_sals)
3263 (convert_explicit_location_to_sals, parse_linespec)
3264 (event_location_to_sals, decode_line_full, decode_line_1)
3265 (decode_line_with_current_source)
3266 (decode_line_with_last_displayed, decode_objc)
3267 (decode_digits_list_mode, decode_digits_ordinary, minsym_found)
3268 (linespec_result::~linespec_result): Adjust to use std::vector
3269 instead of symtabs_and_lines.
3270 * linespec.h (linespec_sals::sals): Now a std::vector.
3271 (struct linespec_result): Use std::vector, bool, and in-class
3272 initialization.
3273 (decode_line_1, decode_line_with_current_source)
3274 (decode_line_with_last_displayed): Return std::vector.
3275 * macrocmd.c (info_macros_command): Use std::vector.
3276 * mi/mi-main.c (mi_cmd_trace_find): Use std::vector.
3277 * probe.c (parse_probes_in_pspace, parse_probes): Adjust to use
3278 std::vector.
3279 * probe.h (parse_probes): Return a std::vector.
3280 * python/python.c (gdbpy_decode_line): Use std::vector and
3281 gdb::array_view.
3282 * source.c (select_source_symtab, line_info): Use std::vector.
3283 * stack.c (func_command): Use std::vector.
3284 * symtab.h (struct symtabs_and_lines): Delete.
3285 * tracepoint.c (tfind_line_command, scope_info): Use std::vector.
3286
7c44b49c
PA
32872017-09-04 Pedro Alves <palves@redhat.com>
3288
3289 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
3290 unittests/array-view-selftests.c.
3291 (SUBDIR_UNITTESTS_OBS): Add array-view-selftests.o.
3292 * common/array-view.h: New file.
3293 * unittests/array-view-selftests.c: New file.
3294
e439fa14
PA
32952017-09-04 Pedro Alves <palves@redhat.com>
3296
3297 * cli/cli-cmds.c (edit_command): Pass message to
3298 ambiguous_line_spec.
3299 (list_command): Pass message to ambiguous_line_spec. Say
3300 "first"/"last" instead of "start" and "end" to be consistent with
3301 the manual.
3302 (ambiguous_line_spec): Add 'format' and vararg parameters. Use
3303 them to print formatted message.
3304
7525b645
PA
33052017-09-04 Pedro Alves <palves@redhat.com>
3306
3307 * btrace.c (ftrace_add_pt): Pass btrace_insn to
3308 ftrace_update_insns by reference instead of pointer.
3309
badc0020
YQ
33102017-09-04 Yao Qi <yao.qi@linaro.org>
3311
3312 * i386-go32-tdep.c: Include x86-xstate.h.
3313 (i386_go32_init_abi): Call i386_target_description.
3314 * i386-tdep.c (i386_target_description): Return tdesc_i386_mmx
3315 if xcr0 is X86_XSTATE_X87_MASK.
3316 * i386-tdep.h (tdesc_i386): Remove the declaration.
3317 (tdesc_i386_mmx): Likewise.
3318
d78bdb54
YQ
33192017-09-04 Yao Qi <yao.qi@linaro.org>
3320
3321 * i386-fbsd-tdep.c (i386fbsd_core_read_xcr0): Return
3322 X86_XSTATE_SSE_MASK instead of 0.
3323
ca1fa5ee
YQ
33242017-09-04 Yao Qi <yao.qi@linaro.org>
3325
3326 * amd64-fbsd-nat.c (amd64fbsd_read_description): Call
3327 i386_target_description.
3328 * i386-fbsd-nat.c (i386fbsd_read_description): Call
3329 i386_target_description.
3330 * i386-tdep.c (i386_gdbarch_init): Likewise.
3331
2434b019
YQ
33322017-09-04 Yao Qi <yao.qi@linaro.org>
3333
3334 * amd64-darwin-tdep.c: Include "x86-xstate.h".
3335 (x86_darwin_init_abi_64): Call amd64_target_description.
3336 * amd64-dicos-tdep.c: Likewise.
3337 * amd64-fbsd-nat.c: Likewise.
3338 * amd64-fbsd-tdep.c: Likewise.
3339 * amd64-nbsd-tdep.c: Likewise.
3340 * amd64-obsd-tdep.c: Likewise.
3341 * amd64-sol2-tdep.c: Likewise.
3342 * amd64-windows-tdep.c: Likewise.
3343 * amd64-tdep.h (tdesc_amd64): Remove the declaration.
3344
0860c437
SM
33452017-09-04 Simon Marchi <simon.marchi@ericsson.com>
3346
3347 * btrace.h (btrace_insn_s, DEF_VEC_O (btrace_insn_s)): Remove.
3348 (btrace_function) <insn>: Change type to use std::vector.
3349 * btrace.c (ftrace_debug, ftrace_call_num_insn,
3350 ftrace_find_call, ftrace_new_gap, ftrace_update_function,
3351 ftrace_update_insns, ftrace_compute_global_level_offset,
3352 btrace_stitch_bts, btrace_clear, btrace_insn_get,
3353 btrace_insn_end, btrace_insn_next, btrace_insn_prev): Adjust to
3354 change to std::vector.
3355 (ftrace_update_insns): Adjust to change to std::vector, change
3356 type of INSN parameter.
3357 (btrace_compute_ftrace_bts): Adjust call to ftrace_update_insns.
3358 * record-btrace.c (btrace_call_history_insn_range,
3359 btrace_compute_src_line_range,
3360 record_btrace_frame_prev_register): Adjust to change to
3361 std::vector.
3362 * python/py-record-btrace.c (recpy_bt_func_instructions): Adjust
3363 to change to std::vector.
3364
0638b7f9
TT
33652017-09-03 Tom Tromey <tom@tromey.com>
3366
3367 * corefile.c (reopen_exec_file): Use std::string.
3368
8f84fb0e
TT
33692017-09-03 Tom Tromey <tom@tromey.com>
3370
3371 * compile/compile.c (compile_register_name_mangled): Return
3372 std::string.
3373 * compile/compile-loc2c.c (pushf_register_address): Update.
3374 (pushf_register): Update.
3375 * compile/compile-c-types.c (convert_array): Update.
3376 * compile/compile-c-symbols.c (generate_vla_size): Update.
3377 (error_symbol_once): Use a gdb::unique_xmalloc_ptr.
3378 (symbol_substitution_name): Return a gdb::unique_xmalloc_ptr.
3379 (convert_one_symbol): Update.
3380 (generate_c_for_for_one_variable): Update.
3381 * compile/compile-c-support.c (c_get_range_decl_name): Return a
3382 std::string.
3383 (generate_register_struct): Update.
3384 * compile/compile-internal.h (c_get_range_decl_name): Return a
3385 std::string.
3386 (compile_register_name_mangled): Return std::string.
3387
18e9961f
TT
33882017-09-03 Tom Tromey <tom@tromey.com>
3389
3390 * utils.c (perror_string): Return a std::string.
3391 (throw_perror_with_name, perror_warning_with_name): Update.
3392
45343786
TT
33932017-09-03 Tom Tromey <tom@tromey.com>
3394
3395 * demangle.c (demangle_command): Use std::string,
3396 unique_xmalloc_ptr.
3397
b57af503
TT
33982017-09-03 Tom Tromey <tom@tromey.com>
3399
3400 * cli/cli-setshow.c (do_set_command): Use std::string.
3401
6eecf35f
TT
34022017-09-03 Tom Tromey <tom@tromey.com>
3403
3404 * cli/cli-cmds.c (cd_command): Use gdb::unique_xmalloc_ptr.
3405
56496dd4
TT
34062017-09-03 Tom Tromey <tom@tromey.com>
3407
3408 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use std::string.
3409
e91a1fa7
TT
34102017-09-03 Tom Tromey <tom@tromey.com>
3411
3412 * mi/mi-cmd-env.c (env_execute_cli_command): Use
3413 gdb::unique_xmalloc_ptr.
3414
7ffd83d7
TT
34152017-09-03 Tom Tromey <tom@tromey.com>
3416
3417 * thread.c (print_thread_info_1): Use string_printf.
3418 (thread_apply_command, thread_apply_all_command): Use
3419 std::string.
3420
1ccbe998
TT
34212017-09-03 Tom Tromey <tom@tromey.com>
3422
3423 * valprint.c (val_print_string): Update.
3424 * gdbcore.h (memory_error_message): Return std::string.
3425 * corefile.c (memory_error_message): Return std::string.
3426 (memory_error): Update.
3427 * breakpoint.c (insert_bp_location): Update.
3428
23fdd69e
SM
34292017-09-03 Simon Marchi <simon.marchi@ericsson.com>
3430
3431 * target/waitstatus.h (target_waitstatus_to_string): Change
3432 return type to std::string.
3433 * target/waitstatus.c (target_waitstatus_to_string): Return
3434 std::string.
3435 * target.h (target_waitstatus_to_string): Remove declaration.
3436 * infrun.c (resume, clear_proceed_status_thread,
3437 print_target_wait_results, do_target_wait, save_waitstatus,
3438 stop_all_threads): Adjust.
3439 * record-btrace.c (record_btrace_wait): Adjust.
3440 * target-debug.h
3441 (target_debug_print_struct_target_waitstatus_p): Adjust.
3442
5c811d30
JK
34432017-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3444
3445 PR gdb/22046
3446 * nat/linux-procfs.c (parse_proc_status_state): Fix PROC_STATE_STOPPED
3447 detection.
3448
0a2dde4a
SDJ
34492017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
3450
3451 * NEWS (Changes since GDB 8.0): Add entry mentioning new support
3452 for setting/unsetting environment variables on the remote target.
3453 (New remote packets): Add entries for QEnvironmentHexEncoded,
3454 QEnvironmentUnset and QEnvironmentReset.
3455 * common/environ.c (gdb_environ::operator=): Extend method to
3456 handle m_user_set_env_list and m_user_unset_env_list.
3457 (gdb_environ::clear): Likewise.
3458 (match_var_in_string): Change type of first parameter from 'char
3459 *' to 'const char *'.
3460 (gdb_environ::set): Extend method to handle
3461 m_user_set_env_list and m_user_unset_env_list.
3462 (gdb_environ::unset): Likewise.
3463 (gdb_environ::clear_user_set_env): New method.
3464 (gdb_environ::user_set_envp): Likewise.
3465 (gdb_environ::user_unset_envp): Likewise.
3466 * common/environ.h (gdb_environ): Handle m_user_set_env_list and
3467 m_user_unset_env_list on move constructor/assignment.
3468 (unset): Add new default parameter 'update_unset_list = true'.
3469 (clear_user_set_env): New method.
3470 (user_set_envp): Likewise.
3471 (user_unset_envp): Likewise.
3472 (m_user_set_env_list): New std::set.
3473 (m_user_unset_env_list): Likewise.
3474 * common/rsp-low.c (hex2str): New function.
3475 (bin2hex): New overload for bin2hex function.
3476 * common/rsp-low.c (hex2str): New prototype.
3477 (str2hex): New overload prototype.
3478 * remote.c: Include "environ.h". Add QEnvironmentHexEncoded,
3479 QEnvironmentUnset and QEnvironmentReset.
3480 (remote_protocol_features): Add QEnvironmentHexEncoded,
3481 QEnvironmentUnset and QEnvironmentReset packets.
3482 (send_environment_packet): New function.
3483 (extended_remote_environment_support): Likewise.
3484 (extended_remote_create_inferior): Call
3485 extended_remote_environment_support.
3486 (_initialize_remote): Add QEnvironmentHexEncoded,
3487 QEnvironmentUnset and QEnvironmentReset packet configs.
3488 * unittests/environ-selftests.c (gdb_selftest_env_var):
3489 New variable.
3490 (test_vector_initialization): New function.
3491 (test_init_from_host_environ): Likewise.
3492 (test_reinit_from_host_environ): Likewise.
3493 (test_set_A_unset_B_unset_A_cannot_find_A_can_find_B):
3494 Likewise.
3495 (test_unset_set_empty_vector): Likewise.
3496 (test_vector_clear): Likewise.
3497 (test_std_move): Likewise.
3498 (test_move_constructor):
3499 (test_self_move): Likewise.
3500 (test_set_unset_reset): Likewise.
3501 (run_tests): Rewrite in terms of the functions above.
3502
654670a4
WP
35032017-08-31 Weimin Pan <weimin.pan@oracle.com>
3504
3505 * sparc64-tdep.c (adi_stat_t): Fix comment formatting.
3506 (adi_available): Use a temp variable of type CORE_ADDR as argument
3507 3 when calling target_auxv_search.
3508 (adi_normalize_address): Use masks and xor operators to calculate
3509 normalized address.
3510 (adi_read_versions, adi_write_versions, adi_print_versions)
3511 (do_examine, do_assign): Use paddress.
3512
7755ddb7
JB
35132017-08-29 John Baldwin <jhb@FreeBSD.org>
3514
3515 * mips-fbsd-nat.c (getfpregs_supplies): Return true for FIR.
3516 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Split supply of FSR
3517 out of loop and add supply of FIR.
3518 (mips_fbsd_collect_fpregs): Split collect of FSR out of loop and
3519 add collect of FIR.
3520
fd437cbc
SM
35212017-08-28 Simon Marchi <simon.marchi@ericsson.com>
3522
3804a343 3523 PR gdb/21827
fd437cbc
SM
3524 * cli/cli-script.c (define_command): Don't convert command name
3525 to lower case.
3526
988f6b3d
JB
35272017-08-25 Joel Brobecker <brobecker@adacore.com>
3528
3529 * ada-lang.c (ada_lookup_struct_elt_type): Remove parameter "dispp".
3530 Update all callers accordingly. Remove all code blocks handling
3531 the case where DISPP is not NULL.
3532
663c44ac
JK
35332017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3534
3535 PR symtab/22003
3536 * dwarf2read.c (dwarf2_const_value_attr, dump_die_shallow)
3537 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
3538 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_implicit_const.
3539
f1902523
JK
35402017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3541
3542 * dwarf2read.c (build_type_psymtabs_reader): New prototype.
3543 (process_psymtab_comp_unit): Accept IS_DEBUG_TYPES.
3544 (read_comp_units_from_section): New parameter abbrev_section, use
3545 read_and_check_comp_unit_head, allocate signatured_type if needed.
3546 (create_all_comp_units): Update read_comp_units_from_section caller.
3547
87215ad1
SDJ
35482017-08-23 Pedro Alves <palves@redhat.com>
3549
3550 PR remote/21852
3551 * remote.c (add_current_inferior_and_thread): Set inferior_ptid
3552 to null_ptid and switch to thread without reading the registers
3553 after adding the inferior.
3554
6e41ddec
JK
35552017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
3556
3557 * NEWS (Changes since GDB 8.0): Add set compile-gcc and show
3558 compile-gcc.
3559 * compile/compile.c (compile_gcc, show_compile_gcc): New.
3560 (compile_to_object): Implement compile_gcc.
3561 (_initialize_compile): Install "set compile-gcc". Initialize
3562 compile_gcc.
3563
e68c32d5
JK
35642017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
3565
3566 * compile/compile.c (compile_to_object): Conditionally call
3567 set_verbose. Conditionally call compile or compile_v0.
3568
58afddc6
WP
35692017-08-07 Weimin Pan <weimin.pan@oracle.com>
3570
3571 * sparc64-tdep.h: (adi_normalize_address): New export.
3572 * sparc-nat.h: (open_adi_tag_fd): New export.
3573 * sparc64-linux-nat.c: (open_adi_tag_fd): New function.
3574 * sparc64-linux-tdep.c:
3575 (SEGV_ACCADI, SEGV_ADIDERR, SEGV_ADIPERR) New defines.
3576 (sparc64_linux_handle_segmentation_fault): New function.
3577 (sparc64_linux_init_abi): Register
3578 sparc64_linux_handle_segmentation_fault
3579 * sparc64-tdep.c: Include cli-utils.h,gdbcmd.h,auxv.h.
3580 (sparc64_addr_bits_remove): New function.
3581 (sparc64_init_abi): Register sparc64_addr_bits_remove.
3582 (MAX_PROC_NAME_SIZE): New macro.
3583 (AT_ADI_BLKSZ, AT_ADI_NBITS, AT_ADI_UEONADI) New defines.
3584 (sparc64adilist): New variable.
3585 (adi_proc_list): New variable.
3586 (find_adi_info): New function.
3587 (add_adi_info): New function.
3588 (get_adi_info_proc): New function.
3589 (get_adi_info): New function.
3590 (info_adi_command): New function.
3591 (read_maps_entry): New function.
3592 (adi_available): New function.
3593 (adi_normalize_address): New function.
3594 (adi_align_address): New function.
3595 (adi_convert_byte_count): New function.
3596 (adi_tag_fd): New function.
3597 (adi_is_addr_mapped): New function.
3598 (adi_read_versions): New function.
3599 (adi_write_versions): New function.
3600 (adi_print_versions): New function.
3601 (do_examine): New function.
3602 (do_assign): New function.
3603 (adi_examine_command): New function.
3604 (adi_assign_command): New function.
3605 (_initialize_sparc64_adi_tdep): New function.
3606
11db9430
SM
36072017-08-22 Simon Marchi <simon.marchi@ericsson.com>
3608
3609 * breakpoint.c (breakpoints_info): Rename to ...
3610 (info_breakpoints_command): ... this.
3611 (watchpoints_info): Rename to ...
3612 (info_watchpoints_command): ... this.
3613 (tracepoints_info): Rename to ...
3614 (info_tracepoints_command): ... this.
3615 (_initialize_breakpoint): Adjust.
3616 * dcache.c (dcache_info): Rename to ...
3617 (info_display_command): ... this.
3618 (_initialize_dcache): Adjust.
3619 * frame.h (args_info): Rename to ...
3620 (info_args_command): ... this.
3621 (locals_info): Rename to ...
3622 (info_locals_command): ... this.
3623 * infcmd.c (nofp_registers_info): Rename to ...
3624 (info_registers_command): ... this.
3625 (float_info): Rename to ...
3626 (info_float_command): ... this.
3627 (program_info): Rename to ...
3628 (info_program_command): ... this.
3629 (all_registers_info): Rename to ...
3630 (info_all_registers_command): ... this.
3631 (vector_info): Rename to ...
3632 (info_vector_command): ... this.
3633 (float_info): Rename to ...
3634 (info_float_command): ... this.
3635 (_initialize_infcmd): Adjust.
3636 * inferior.h (term_info): Rename to ...
3637 (info_terminal_command): ... this.
3638 * inflow.c (term_info): Rename to ...
3639 (info_terminal_command): ... this.
3640 (_initialize_inflow): Adjust.
3641 * infrun.c (signals_info): Rename to ...
3642 (info_signals_command): ... this.
3643 (_initialize_infrun): Adjust.
3644 * objc-lang.c (classes_info): Rename to ...
3645 (info_classes_command): ... this.
3646 (selectors_info): Rename to ...
3647 (info_selectors_command): ... this.
3648 (_initialize_objc_language): Adjust.
3649 * printcmd.c (sym_info): Rename to ...
3650 (info_symbol_command): ... this.
3651 (address_info): Rename to ...
3652 (info_address_command): ... this.
3653 (display_info): Rename to ...
3654 (info_display_command): ... this.
3655 (_initialize_printcmd): Adjust.
3656 * reverse.c (bookmarks_info): Rename to ...
3657 (info_breakpoints_command): ... this.
3658 (_initialize_reverse): Adjust.
3659 * ser-go32.c (dos_info): Rename to ...
3660 (info_serial_command): ... this.
3661 (_initialize_ser_dos): Adjust.
3662 * skip.c (skip_info): Rename to ...
3663 (info_skip_command): ... this.
3664 (_initialize_step_skip): Adjust.
3665 * source.c (line_info): Rename to ...
3666 (info_line_command): ... this.
3667 (source_info): Rename to ...
3668 (info_source_command)
3669 * stack.c (frame_info): Rename to ...
3670 (info_frame_command): ... this.
3671 (locals_info): Rename to ...
3672 (info_locals_command): ... this.
3673 (args_info): Rename to ...
3674 (info_args_command): ... this.
3675 (_initialize_stack): Adjust.
3676 * symtab.c (sources_info): Rename to ...
3677 (info_sources_command): ... this.
3678 (variables_info): Rename to ...
3679 (info_variables_command): ... this.
3680 (functions_info): Rename to ...
3681 (info_functions_command): ... this.
3682 (types_info): Rename to ...
3683 (info_types_command): ... this.
3684 (_initialize_symtab): Adjust.
3685 * target.c (target_info): Rename to ...
3686 (info_target_command): ... this.
3687 (initialize_targets): Adjust.
3688 * tracepoint.c (tvariables_info): Rename to ...
3689 (info_tvariables_command): ... this.
3690 (scope_info): Rename to ...
3691 (info_scope_command): ... this.
3692 (trace_dump_actions): Adjust.
3693 (_initialize_tracepoint): Adjust.
3694
b270e6f9
TT
36952017-08-22 Tom Tromey <tom@tromey.com>
3696
3697 * breakpoint.h (install_breakpoint): Update.
3698 * breakpoint.c (add_solib_catchpoint): Update.
3699 (install_breakpoint): Change argument to a std::unique_ptr.
3700 (create_fork_vfork_event_catchpoint): Use std::unique_ptr.
3701 (create_breakpoint_sal, create_breakpoint): Update.
3702 (watch_command_1, catch_exec_command_1)
3703 (strace_marker_create_breakpoints_sal): Use std::unique_ptr.
3704 (add_to_breakpoint_chain): Change argument to a std::unique_ptr.
3705 Return the breakpoint.
3706 (set_raw_breakpoint_without_location, set_raw_breakpoint)
3707 (new_single_step_breakpoint): Update.
3708 * break-catch-throw.c (handle_gnu_v3_exceptions): Use
3709 std::unique_ptr.
3710 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
3711 std::unique_ptr.
3712 * break-catch-sig.c (create_signal_catchpoint): Use
3713 std::unique_ptr.
3714 * ada-lang.c (create_ada_exception_catchpoint): Use
3715 std::unique_ptr.
3716
36bd8eaa
TT
37172017-08-22 Tom Tromey <tom@tromey.com>
3718
3719 * breakpoint.c (add_solib_catchpoint): Use std::unique_ptr.
3720
56f37645
TT
37212017-08-22 Tom Tromey <tom@tromey.com>
3722
3723 * psymtab.c (psymtab_search_name): Return a unique_xmalloc_ptr.
3724 (lookup_partial_symbol): Update.
3725
0b581c69
TT
37262017-08-22 Tom Tromey <tom@tromey.com>
3727
3728 * source.h (rewrite_source_path): Return a unique_xmalloc_ptr.
3729 * source.c (rewrite_source_path): Return a unique_xmalloc_ptr.
3730 (find_and_open_source, symtab_to_fullname): Update.
3731 * psymtab.c (psymtab_to_fullname): Update.
3732
14278e1f
TT
37332017-08-22 Tom Tromey <tom@tromey.com>
3734
3735 * exec.c (exec_file_attach): Update.
3736 * linux-thread-db.c (try_thread_db_load): Update.
3737 * guile/scm-safe-call.c (gdbscm_safe_source_script): Update.
3738 * utils.c (gdb_realpath): Change return type.
3739 (gdb_realpath_keepfile): Update.
3740 (gdb_realpath_check_trailer, gdb_realpath_tests): New functions.
3741 (_initialize_utils): Register the new self test.
3742 * source.c (openp): Update.
3743 (find_and_open_source): Update.
3744 * nto-tdep.c (nto_find_and_open_solib): Update.
3745 * main.c (set_gdb_data_directory): Update.
3746 (captured_main_1): Update.
3747 * dwarf2read.c (dwarf2_get_dwz_file): Update
3748 (dw2_map_symbol_filenames): Update.
3749 * auto-load.c (auto_load_safe_path_vec_update): Update.
3750 (filename_is_in_auto_load_safe_path_vec): Change type of
3751 "filename_realp".
3752 (auto_load_objfile_script): Update.
3753 (file_is_auto_load_safe): Update. Use std::string.
3754 * utils.h (gdb_realpath): Return a gdb::unique_xmalloc_ptr.
3755
4971c9a7
TT
37562017-08-22 Tom Tromey <tom@tromey.com>
3757
3758 * utils.c (gdb_realpath_keepfile): Return a
3759 gdb::unique_xmalloc_ptr.
3760 * exec.c (exec_file_attach): Update.
3761 * utils.h (gdb_realpath_keepfile): Return a
3762 gdb::unique_xmalloc_ptr.
3763
e3e41d58
TT
37642017-08-22 Tom Tromey <tom@tromey.com>
3765
3766 * compile/compile.c (compile_file_command): Use
3767 gdb::unique_xmalloc_ptr, std::string.
3768 * utils.c (gdb_abspath): Change return type.
3769 * source.c (openp): Update.
3770 * objfiles.c (allocate_objfile): Update.
3771 * main.c (set_gdb_data_directory): Update.
3772 * utils.h (gdb_abspath): Return a gdb::unique_xmalloc_ptr.
3773
0d999a6e
ZZ
37742017-08-22 Zhouyi Zhou <zhouzhouyi@gmail.com>
3775
3776 * cli-cmds.c (list_commands): List actual code around more than
3777 one location.
3778
329d5e7e
JB
37792017-08-21 John Baldwin <jhb@FreeBSD.org>
3780
3781 * fbsd-nat.c (fbsd_add_threads): Use array type for `lwps'.
3782
bf223d3e
PA
37832017-08-21 Pedro Alves <palves@redhat.com>
3784
3785 PR gdb/19487
3786 * c-exp.y (variable production): Handle function aliases.
3787 * minsyms.c (msymbol_is_text): New function.
3788 * minsyms.h (msymbol_is_text): Declare.
3789 * symtab.c (find_function_alias_target): New function.
3790 * symtab.h (find_function_alias_target): Declare.
3791
c973d0aa
PA
37922017-08-21 Pedro Alves <palves@redhat.com>
3793
3794 * eval.c (evaluate_subexp_standard) <OP_TYPE>: Don't dig past
3795 typedefs.
3796 * typeprint.c (whatis_exp): If handling "whatis", and expression
3797 is OP_TYPE, strip one typedef level. Otherwise don't strip
3798 typedefs here.
3799 * valops.c (value_cast): Save "to" type before resolving
3800 stubs/typedefs. Use that type as resulting value's type.
3801
2989a365
TT
38022017-08-18 Tom Tromey <tom@tromey.com>
3803 Pedro Alves <palves@redhat.com>
3804
3805 * spu-multiarch.c (parse_spufs_run): Use scoped_restore.
3806 * sol-thread.c (sol_thread_resume, sol_thread_wait)
3807 (sol_thread_xfer_partial, rw_common): Use scoped_restore.
3808 * procfs.c (procfs_do_thread_registers): Use scoped_restore.
3809 * proc-service.c (ps_xfer_memory): Use scoped_restore.
3810 * linux-tdep.c (linux_corefile_thread): Remove a cleanup.
3811 (linux_get_siginfo_data): Add "thread" argument. Use
3812 scoped_restore.
3813 * linux-nat.c (linux_child_follow_fork)
3814 (check_stopped_by_watchpoint): Use scoped_restore.
3815 * infrun.c (displaced_step_prepare_throw, write_memory_ptid)
3816 (THREAD_STOPPED_BY, handle_signal_stop): Use scoped_restore.
3817 (restore_inferior_ptid, save_inferior_ptid): Remove.
3818 * btrace.c (btrace_fetch): Use scoped_restore.
3819 * bsd-uthread.c (bsd_uthread_fetch_registers)
3820 (bsd_uthread_store_registers): Use scoped_restore.
3821 * breakpoint.c (reattach_breakpoints, detach_breakpoints): Use
3822 scoped_restore.
3823 * aix-thread.c (aix_thread_resume, aix_thread_wait)
3824 (aix_thread_xfer_partial): Use scoped_restore.
3825 * inferior.h (save_inferior_ptid): Remove.
3826
e60eb288
YQ
38272017-08-18 Yao Qi <yao.qi@linaro.org>
3828
3829 PR tdep/21818
3830 * arm-tdep.c (gdb_print_insn_arm): Mark
3831 USER_SPECIFIED_MACHINE_TYPE if exec_bfd isn't NULL.
3832
6d580b63
YQ
38332017-08-18 Yao Qi <yao.qi@linaro.org>
3834
3835 * NEWS: Mention GDBserver's new option "--selftest".
3836 * Makefile.in (SFILES): Remove selftest.c, add common/selftest.c.
3837 * selftest.c: Move it to common/selftest.c.
3838 * selftest.h: Move it to common/selftest.h.
3839 * selftest-arch.c (reset): New function.
3840 (tests_with_arch): Call reset.
3841
86dcbf50
YQ
38422017-08-18 Yao Qi <yao.qi@linaro.org>
3843
3844 * selftest.c (run_tests): Don't call QUIT. Call debug_printf
3845 instead of exception_fprintf and printf_filtered.
3846
7649770c
YQ
38472017-08-18 Yao Qi <yao.qi@linaro.org>
3848
3849 * selftest.c (register_self_test): Rename it to
3850 selftests::register_test.
3851 (run_self_tests): selftest::run_tests.
3852 * selftest.h: Update declarations.
3853 * selftest-arch.c (register_self_test_foreach_arch): Rename it to
3854 selftests::register_test_foreach_arch.
3855 * selftest-arch.h: Update declaration.
3856 * aarch64-tdep.c: Update.
3857 * arm-tdep.c: Likewise.
3858 * disasm-selftests.c: Likewise.
3859 * dwarf2loc.c: Likewise.
3860 * dwarf2-frame.c: Likewise.
3861 * findvar.c: Likewise.
3862 * gdbarch-selftests.c: Likewise.
3863 * maint.c (maintenance_selftest): Likewise.
3864 * regcache.c: Likewise.
3865 * rust-exp.y: Likewise.
3866 * selftest-arch.c: Likewise.
3867 * unittests/environ-selftests.c: Likewise.
3868 * unittests/function-view-selftests.c: Likewise.
3869 * unittests/offset-type-selftests.c: Likewise.
3870 * unittests/optional-selftests.c: Likewise.
3871 * unittests/scoped_restore-selftests.c: Likewise.
3872 * utils-selftests.c: Likewise.
3873
b0cba12e
PA
38742017-08-17 Pedro Alves <palves@redhat.com>
3875
3876 * cli/cli-cmds.c (source_command): Delete 'old_source_verbose'
3877 local.
3878
4c8aa72d
PA
38792017-08-17 Pedro Alves <palves@redhat.com>
3880
3881 * dwarf2read.c (struct dwarf2_cu) <line_header_die_owner>: New
3882 field.
3883 (reset_die_in_process): Delete, replaced by ...
3884 (process_die_scope): ... this new class. Make it responsible for
3885 freeing cu->line_header too.
3886 (process_die): Use process_die_scope.
3887 (handle_DW_AT_stmt_list): Record the line header's owner CU/DIE in
3888 cu->line_header_die_owner. Don't release the line header if it's
3889 owned by the CU.
3890 (setup_type_unit_groups): Make the CU/DIE own the line header.
3891 Don't release the line header here.
3892
ba713918
AL
38932017-08-17 Alex Lindsay <alexlindsay239@gmail.com> (tiny change)
3894
3895 * elfread.c (elf_read_minimal_symbols): xfree synthsyms.
3896
44d0fb3a
RK
38972017-08-17 Ruslan Kabatsayev <b7.10110111@gmail.com>
3898
3899 * NEWS: Mention new shortcuts for nexti and stepi in TUI
3900 Single-Key mode
3901
a5afdb16
RK
39022017-08-16 Ruslan Kabatsayev <b7.10110111@gmail.com>
3903
3904 * tui/tui.c (tui_commands): Add "nexti" and "stepi" to the Single-Key
3905 mode command list.
3906
47613aeb
SH
39072017-08-15 Stafford Horne <shorne@gmail.com>
3908
3909 * MAINTAINERS (Write After Approval): Add Stafford Horne.
3910
9c3cc999
SH
39112017-08-15 Stafford Horne <shorne@gmail.com>
3912
3913 * xtensa-tdep.c (xtensa_init_reggroups): Use xstrdup for cpname.
3914
206726fb
SDJ
39152017-08-15 Sergio Durigan Junior <sergiodj@redhat.com>
3916
3917 PR gdb/21954
3918 * infcmd.c (unset_environment_command): Use the 'clear' method on
3919 the environment instead of resetting it.
3920
0335ac6d
JB
39212017-08-15 John Baldwin <jhb@FreeBSD.org>
3922
3923 * fbsd-nat.c (fbsd_convert_siginfo): Fix compile on big-endian
3924 platforms.
3925
d3abe1c8
TT
39262017-08-14 Tom Tromey <tom@tromey.com>
3927
3928 * valprint.c (print_octal_chars): Use HOST_CHAR_BIT.
3929 (print_binary_chars): Likewise.
3930 (BITS_IN_BYTES): Remove.
3931
d6382fff
TT
39322017-08-14 Tom Tromey <tom@tromey.com>
3933
3934 PR gdb/21675
3935 * valprint.c (LOW_ZERO): Change value to 034.
3936 (print_octal_chars): Add static_asserts for octal constants.
3937 * printcmd.c (print_scalar_formatted): Add 'd' case.
3938
f978cb06
TT
39392017-08-11 Tom Tromey <tom@tromey.com>
3940
3941 * symfile.c (add_symbol_file_command): Use std::vector.
3942
2f5404b3
TT
39432017-08-14 Tom Tromey <tom@tromey.com>
3944
3945 * break-catch-throw.c (handle_gnu_v3_exceptions): Use std::move.
3946 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
3947 std::move.
3948 * break-catch-sig.c (create_signal_catchpoint): Use std::move.
3949
de7985c3
PA
39502017-08-11 Pedro Alves <palves@redhat.com>
3951
3952 * infrun.c (process_event_stop_test): Adjust
3953 function_name_is_marked_for_skip call.
3954 * skip.c: Include <list>.
3955 (skiplist_entry): Make it a class with private fields, and
3956 getters/setters.
3957 (skiplist_entry_chain): Delete.
3958 (skiplist_entries): New.
3959 (skiplist_entry_count): Delete.
3960 (highest_skiplist_entry_num): New.
3961 (ALL_SKIPLIST_ENTRIES, ALL_SKIPLIST_ENTRIES_SAFE): Delete.
3962 (add_skiplist_entry): Delete.
3963 (skiplist_entry::skiplist_entry): New.
3964 (skiplist_entry::add_entry): New.
3965 (skip_file_command, skip_function): Adjust.
3966 (compile_skip_regexp): Delete.
3967 (skip_command): Don't compile regexp here. Adjust to use
3968 skiplist_entry::add_entry.
3969 (skip_info): Adjust to use range-for and getters.
3970 (skip_enable_command, skip_disable_command): Adjust to use
3971 range-for and setters.
3972 (skip_delete_command): Adjust to use std::list.
3973 (add_skiplist_entry): Delete.
3974 (skip_file_p): Delete, refactored as ...
3975 (skiplist_entry::do_skip_file_p): ... this new method.
3976 (skip_gfile_p): Delete, refactored as ...
3977 (skiplist_entry::do_gskip_file_p): ... this new method.
3978 (skip_function_p, skip_rfunction_p): Delete, refactored as ...
3979 (skiplist_entry::skip_function_p): ... this new method.
3980 (function_name_is_marked_for_skip): Now returns bool, and takes
3981 the function sal by const reference. Adjust to use range-for and
3982 skiplist_entry methods.
3983 (_initialize_step_skip): Remove references to
3984 skiplist_entry_chain, skiplist_entry_count.
3985 * skip.h (function_name_is_marked_for_skip): Now returns bool, and
3986 takes the function sal by const reference.
3987
be7d3cd5
YQ
39882017-08-11 Yao Qi <yao.qi@linaro.org>
3989
3990 * dwarf2-frame.c (clear_pointer_cleanup): Remove.
3991 (dwarf2_frame_cache): Remove reset_cache_cleanup.
3992 (dwarf2_frame_cache):
3993 * frame-unwind.c (frame_unwind_try_unwinder): Catch
3994 RETURN_MASK_ALL and set *this_case to NULL.
3995 * frame-unwind.h: Update comments.
3996
1c90d9f0
YQ
39972017-08-11 Yao Qi <yao.qi@linaro.org>
3998
3999 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Remove.
4000 (dwarf2_frame_state_copy_regs): Remove.
4001 (dwarf2_frame_state_free_regs): Remove.
4002 (dwarf2_frame_state::~dwarf2_frame_state): Remove.
4003 (dwarf2_restore_rule): Call method .alloc_regs instead of
4004 dwarf2_frame_state_alloc_regs.
4005 (execute_cfa_program): Likewise. Call dwarf2_frame_state_reg_info
4006 constructor. Call std::move.
4007 (dwarf2_fetch_cfa_info): Don't call dwarf2_frame_state_copy_regs.
4008 (dwarf2_frame_cache): Likewise.
4009
4010 [GDB_SELF_TEST]: Include selftest.h and
4011 selftest-arch.h.
4012 [GDB_SELF_TEST] (execute_cfa_program_test): New function.
4013 (_initialize_dwarf2_frame) [GDB_SELF_TEST]: Register
4014 execute_cfa_program_test.
4015
4016 * dwarf2-frame.h (dwarf2_frame_state_reg_info): Add ctor, dtor,
4017 copy ctor, assignment operator, move assignment.
4018 <alloc_regs>: New method.
4019 <swap>: New method.
4020 (struct dwarf2_frame_state): Delete dtor.
4021 (dwarf2_frame_state_alloc_regs): Remove declaration.
4022 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): Don't call
4023 dwarf2_frame_state_alloc_regs, use .alloc_regs instead.
4024
afe37d6b
YQ
40252017-08-11 Yao Qi <yao.qi@linaro.org>
4026
4027 * dwarf2-frame.c (dwarf2_frame_state_free): Remove.
4028 (dwarf2_frame_state::dwarf2_frame_state): New.
4029 (dwarf2_frame_state::~dwarf2_frame_state): New.
4030 (dwarf2_fetch_cfa_info): Update.
4031 (dwarf2_frame_cache): Remove old_chain. Change 'fs' to an object
4032 rather than a pointer. Update code.
4033 * dwarf2-frame.h (struct dwarf2_frame_state): Declare ctor and
4034 dtor.
4035 <data_align, code_align, retaddr_column>: Change them to const.
4036 <armcc_cfa_offsets_sf, armcc_cfa_offsets_reversed>: Change them
4037 to bool.
4038
b348037f
YQ
40392017-08-11 Yao Qi <yao.qi@linaro.org>
4040
4041 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <exp_len>: Remove.
4042 <loc.exp>: New field.
4043 * dwarf2-frame.c (execute_cfa_program): Update.
4044 (dwarf2_frame_prev_register): Update.
4045
e7c9de26
PA
40462017-08-10 Pedro Alves <palves@redhat.com>
4047
4048 * common/gdb_unique_ptr.h (xfree_deleter<T[]>): Define.
4049
e8c6b620
JB
40502017-08-09 John Baldwin <jhb@FreeBSD.org>
4051
4052 * fbsd-nat.c (struct fbsd_fork_info): Remove.
4053 (fbsd_pending_children): Use std::list.
4054 (fbsd_remember_child): Likewise.
4055 (fbsd_is_child_pending): Likewise.
4056 (fbsd_pending_vfork_done): Use std::forward_list.
4057 (fbsd_add_vfork_done): Likewise.
4058 (fbsd_is_vfork_done_pending): Likewise.
4059 (fbsd_next_vfork_done): Likewise.
4060
e4a26669
JB
40612017-08-09 John Baldwin <jhb@FreeBSD.org>
4062
4063 * fbsd-nat.c [HAVE_KINFO_GETVMMAP] (struct free_deleter): New.
4064 (fbsd_find_memory_regions): Use free_deleter with std::unique_ptr.
4065 [!HAVE_KINFO_GETVMMAP] (fbsd_find_memory_regions): Use std::string
4066 for `mapfilename'.
4067 (fbsd_xfer_partial): Use gdb::byte_vector.
af3881e6 4068 (fbsd_add_threads): Use gdb::unique_xmalloc_ptr.
e4a26669 4069
142311d3
JB
40702017-08-09 John Baldwin <jhb@FreeBSD.org>
4071
4072 * fbsd-nat.c: [!HAVE_KINFO_GETVMMAP]: Include <sys/user.h> and
4073 "filestuff.h".
4074 (fbsd_find_memory_regions): Fix `mapfile' initialization.
4075
42fa2e0e
TT
40762017-08-09 Tom Tromey <tom@tromey.com>
4077
4078 * skip.c (skiplist_entry): New constructor.
4079 (skiplist_entry::enabled, skiplist_entry::function_is_regexp)
4080 (skiplist_entry::file_is_glob): Now bool.
4081 (skiplist_entry::file, skiplist_entry::function): Now
4082 std::string.
4083 (make_skip_entry): Return a unique_ptr. Use new.
4084 (free_skiplist_entry, free_skiplist_entry_cleanup)
4085 (make_free_skiplist_entry_cleanup): Remove.
4086 (skip_command, skip_disable_command, add_skiplist_entry)
4087 (skip_form_bytes, compile_skip_regexp, skip_command, skip_info)
4088 (skip_file_p, skip_gfile_p, skip_function_p, skip_rfunction_p)
4089 (function_name_is_marked_for_skip): Update.
4090 (skip_delete_command): Update. Use delete.
4091
cd3af38d
JW
40922017-08-09 Jiong Wang <jiong.wang@arm.com>
4093
4094 * aarch64-linux-tdep.c: Include "auxv.h" and "elf/common.h".
4095 (aarch64_linux_core_read_description): New function.
4096 (aarch64_linux_init_abi): Register gdbarch_core_read_description.
4097
29592bde
PA
40982017-08-09 Pedro Alves <palves@redhat.com>
4099
4100 * cp-name-parser.y (cp_comp_to_string): Return a
4101 gdb::unique_xmalloc_ptr<char>.
4102 * cp-support.c (replace_typedefs_qualified_name)
4103 (replace_typedefs): Adjust to use gdb::unique_xmalloc_ptr<char>.
4104 (cp_canonicalize_string_full): Use op= instead of explicit
4105 convertion.
4106 (cp_class_name_from_physname, method_name_from_physname)
4107 (cp_func_name, cp_remove_params): Adjust to use
4108 gdb::unique_xmalloc_ptr<char>.
4109 * cp-support.h (cp_comp_to_string): Return a
4110 gdb::unique_xmalloc_ptr<char>.
4111 * python/py-type.c (typy_lookup_type): Adjust to use
4112 gdb::unique_xmalloc_ptr<char>.
4113
b3340438
L
41142017-08-09 H.J. Lu <hongjiu.lu@intel.com>
4115
4116 * dwarf2read.c (dwarf2_string_attr): Fix a typo.
4117
e88e8651
YQ
41182017-08-09 Alex Lindsay <alexlindsay239@gmail.com>
4119 Yao Qi <yao.qi@linaro.org>
4120
4121 * cp-support.c (cp_canonicalize_string_full): Use
4122 gdb::unique_xmalloc_ptr<char>.
4123 (cp_canonicalize_string): Likewise.
4124
f5a29eb0
YQ
41252017-08-09 Yao Qi <yao.qi@linaro.org>
4126
4127 * features/Makefile (WHICH): Remove i386/ non-linux stuff.
4128 * regformats/i386/amd64-avx-avx512.dat: Remove.
4129 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Remove.
4130 * regformats/i386/amd64-avx-mpx.dat:Remove.
4131 * regformats/i386/amd64-avx.dat: Remove.
4132 * regformats/i386/amd64-mpx.dat: Remove.
4133 * regformats/i386/i386-avx-avx512.dat: Remove.
4134 * regformats/i386/i386-avx-mpx-avx512-pku.dat: Remove.
4135 * regformats/i386/i386-avx-mpx.dat: Remove.
4136 * regformats/i386/i386-mmx.dat: Remove.
4137 * regformats/i386/i386-mpx.dat: Remove.
4138
57757c2f
YQ
41392017-08-09 Yao Qi <yao.qi@linaro.org>
4140
4141 * amd64-tdep.h (tdesc_x32): Remove the declaration.
4142 * amd64-tdep.c: Don't include features/i386/x32*.c.
4143 (_initialize_amd64_tdep): Don't call initialize_tdesc_x32*
4144 functions.
4145 * features/Makefile (WHICH): Remove i386/x32, i386/x32-avx,
4146 and i386/x32-avx-avx512.
4147 (XMLTOC): Remove i386/x32-avx.xml, i386/x32-avx-avx512.xml,
4148 and i386/x32.xml.
4149 * features/i386/x32-avx-avx512.c: Removed.
4150 * features/i386/x32-avx-avx512.xml: Removed.
4151 * features/i386/x32-avx.c: Removed.
4152 * features/i386/x32-avx.xml: Removed.
4153 * features/i386/x32.c: Removed.
4154 * features/i386/x32.xml: Removed.
4155 * regformats/i386/x32-avx-avx512.dat: Removed.
4156 * regformats/i386/x32-avx.dat: Removed.
4157 * regformats/i386/x32.dat: Removed.
4158
ba7b109b
MR
41592017-08-07 Maciej W. Rozycki <macro@imgtec.com>
4160
4161 PR breakpoints/21886
4162 * mem-break.c (default_memory_insert_breakpoint): Use
4163 `->placed_address' rather than `->reqstd_address' for the
4164 breakpoint location.
4165
e347efc3
MR
41662017-08-07 Maciej W. Rozycki <macro@imgtec.com>
4167
4168 * arch-utils.c (default_print_insn): Remove arch/mach/endian
4169 assertions.
4170
0dba2a6c
MR
41712017-08-07 Maciej W. Rozycki <macro@imgtec.com>
4172
4173 * gdbarch.sh (gdbarch_info): Replace the `tdep_info' member with
4174 a union of `tdep_info', `tdesc_data' and `id'.
4175 * aarch64-tdep.c (aarch64_gdbarch_init): Use `info.tdesc_data'
4176 rather than `info.tdep_info'.
4177 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
4178 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
4179 * i386-tdep.c (i386_gdbarch_init): Likewise.
4180 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
4181 * mips-tdep.c (mips_gdbarch_init): Likewise.
4182 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
4183 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
4184 * ppc-linux-tdep.c (ppu2spu_sniffer): Use `info.id' rather than
4185 `info.tdep_info'.
4186 (ppc_linux_init_abi): Use `info.tdesc_data' rather than
4187 `info.tdep_info'.
4188 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
4189 * spu-multiarch.c (spu_gdbarch): Use `info.id' rather than
4190 `info.tdep_info'.
4191 * spu-tdep.c (spu_gdbarch_init): Likewise.
4192 * gdbarch.h: Regenerate.
4193
16eb6b2d
LS
41942017-08-07 Leszek Swirski <leszeks@google.com>
4195
7b005726 4196 PR symtab/20899
16eb6b2d
LS
4197 * dwarf2read.c (dwarf2_string_attr): Allow DW_FORM_GNU_strp_alt.
4198
74cbb09e
SM
41992017-08-07 Simon Marchi <simon.marchi@ericsson.com>
4200
4201 * remote-sim.c (gdbsim_load): Remove char **argv local variable.
4202 (gdbsim_open): Rename gdb_argv args object to argv.
4203
ee0c3293
TT
42042017-08-05 Tom Tromey <tom@tromey.com>
4205
4206 * compile/compile-object-load.c (compile_object_load): Use
4207 gdb::unique_xmalloc_ptr.
4208 * cli/cli-dump.c (scan_filename): Rename from
4209 scan_filename_with_cleanup. Change return type.
4210 (scan_expression): Rename from scan_expression_with_cleanup.
4211 Change return type.
4212 (dump_memory_to_file, dump_value_to_file, restore_command):
4213 Use gdb::unique_xmalloc_ptr. Update.
4214 * cli/cli-cmds.c (find_and_open_script): Use
4215 gdb::unique_xmalloc_ptr.
4216 * tracefile-tfile.c (tfile_open): Use gdb::unique_xmalloc_ptr.
4217 * symmisc.c (maintenance_print_symbols)
4218 (maintenance_print_msymbols): Use gdb::unique_xmalloc_ptr.
4219 * symfile.c (symfile_bfd_open, generic_load)
4220 (add_symbol_file_command, remove_symbol_file_command): Use
4221 gdb::unique_xmalloc_ptr.
4222 * source.c (openp): Use gdb::unique_xmalloc_ptr.
4223 * psymtab.c (maintenance_print_psymbols): Use
4224 gdb::unique_xmalloc_ptr.
4225 * corelow.c (core_open): Use gdb::unique_xmalloc_ptr.
4226 * breakpoint.c (save_breakpoints): Use gdb::unique_xmalloc_ptr.
4227 * solib.c (solib_map_sections): Use gdb::unique_xmalloc_ptr.
4228 (reload_shared_libraries_1): Likewise.
4229
3232fabd
TT
42302017-08-05 Tom Tromey <tom@tromey.com>
4231
4232 * rust-exp.y (rust_op_ptr, set_field): Remove typedefs.
4233 (rust_op_vector, rust_set_vector): New typedefs.
4234 (current_parser): New global.
4235 (work_obstack): Change to pointer type. Update all users.
4236 (rust_ast, pstate): Remove globals.
4237 (struct rust_parser): New.
4238 (%union) <params, field_inits>: Change type.
4239 (start, tuple_expr, unit_expr, struct_expr_list, literal)
4240 (field_expr, expr_list, maybe_expr_list, type_list): Update.
4241 (ast_call_ish, ast_path, ast_function_type, ast_tuple_type)
4242 (convert_params_to_types, convert_params_to_expression): Change
4243 type of "params".
4244 (ast_string): Change type of "fields".
4245 (rust_parse): Make a rust_parser. Remove cleanups.
4246 (rust_lex_tests): Make and install an auto_obstack.
4247
f02fd774
YQ
42482017-08-04 Yao Qi <yao.qi@linaro.org>
4249
4250 * configure.srv (ipa_x32_linux_regobj): New.
4251 * linux-amd64-ipa.c (get_ipa_tdesc): Use X86_TDESC_AVX_AVX512
4252 instead of X86_TDESC_AVX512.
4253 (initialize_low_tracepoint): Call
4254 init_registers_x32_avx_avx512_linux.
4255
91975afd
YQ
42562017-08-04 Yao Qi <yao.qi@linaro.org>
4257
4258 * utils.h (gdb_argv): Add namespace std for nullptr_t.
4259
2331fa3a
RK
42602017-08-03 Ruslan Kabatsayev <b7.10110111@gmail.com>
4261
4262 * MAINTAINERS (Write After Approval): Add Ruslan Kabatsayev.
4263
744e4fe1
TT
42642017-08-03 Tom Tromey <tom@tromey.com>
4265
4266 * utils.c (make_cleanup_freeargv, do_freeargv, gdb_buildargv):
4267 Remove.
4268 * utils.h (make_cleanup_freeargv, gdb_buildargv): Remove.
4269
1c034b67
TT
42702017-08-03 Tom Tromey <tom@tromey.com>
4271
4272 * python/py-param.c (compute_enum_values): Use gdb_argv.
4273
773a1edc
TT
42742017-08-03 Tom Tromey <tom@tromey.com>
4275
4276 * utils.h (struct gdb_argv_deleter): New.
4277 (gdb_argv): New class.
4278 * utils.c (gdb_argv::reset): New method.
4279 * tracepoint.c (delete_trace_variable_command): Use gdb_argv.
4280 * tracefile.c (tsave_command): Use gdb_argv.
4281 * top.c (new_ui_command): Use gdb_argv.
4282 * symmisc.c (maintenance_print_symbols)
4283 (maintenance_print_msymbols, maintenance_expand_symtabs): Use gdb_argv.
4284 * symfile.c (symbol_file_command, generic_load)
4285 (remove_symbol_file_command): Use gdb_argv.
4286 * stack.c (backtrace_command): Use gdb_argv.
4287 * source.c (add_path, show_substitute_path_command)
4288 (unset_substitute_path_command, set_substitute_path_command):
4289 Use gdb_argv.
4290 * skip.c (skip_command): Use gdb_argv. Use gdb_buildargv.
4291 * ser-mingw.c (pipe_windows_open): Use gdb_argv.
4292 * remote.c (extended_remote_run, remote_put_command)
4293 (remote_get_command, remote_delete_command): Use gdb_argv.
4294 * remote-sim.c (gdbsim_load, gdbsim_create_inferior)
4295 (gdbsim_open): Use gdb_argv.
4296 * python/py-cmd.c (gdbpy_string_to_argv): Use gdb_argv.
4297 * psymtab.c (maintenance_print_psymbols): Use gdb_argv.
4298 * procfs.c (procfs_info_proc): Use gdb_argv.
4299 * interps.c (interpreter_exec_cmd): Use gdb_argv.
4300 * infrun.c (handle_command): Use gdb_argv.
4301 * inferior.c (add_inferior_command, clone_inferior_command):
4302 Use gdb_argv.
4303 * guile/scm-string.c (gdbscm_string_to_argv): Use gdb_argv.
4304 * exec.c (exec_file_command): Use gdb_argv.
4305 * cli/cli-cmds.c (alias_command): Use gdb_argv.
4306 * compile/compile.c (build_argc_argv): Use gdb_argv.
4307
0d50bde3
TT
43082017-08-03 Tom Tromey <tom@tromey.com>
4309
4310 * python/python.c (gdbpy_decode_line): Use unique_xmalloc_ptr.
4311
7f968c89
TT
43122017-08-03 Tom Tromey <tom@tromey.com>
4313
4314 * python/python.c (compute_python_string): Return std::string.
4315 (gdbpy_eval_from_control_command): Update.
4316 (do_start_initialization): Use std::string.
4317 * python/py-varobj.c (py_varobj_iter_next): Use string_printf, not
4318 xstrprintf.
4319 * python/py-breakpoint.c (local_setattro): Use string_printf, not
4320 xstrprintf.
4321
3c9ebddd
TT
43222017-08-03 Tom Tromey <tom@tromey.com>
4323
4324 * top.h (do_restore_instream_cleanup): Remove.
4325 * top.c (do_restore_instream_cleanup): Remove.
4326 (read_command_file): Use scoped_restore.
4327 * cli/cli-script.c (execute_user_command): Use scoped_restore.
4328
b51b225e
TT
43292017-08-03 Tom Tromey <tom@tromey.com>
4330
4331 * cli/cli-script.c (execute_user_command)
4332 (execute_control_command): Use scoped_restore.
4333
ac991630
TT
43342017-08-03 Tom Tromey <tom@tromey.com>
4335
4336 * cli/cli-script.c (do_restore_user_call_depth): Remove.
4337 (execute_user_command): Remove user_call_depth; use
4338 user_args_stack's size instead.
4339
898e0c8e
TT
43402017-08-03 Tom Tromey <tom@tromey.com>
4341
4342 * top.h (in_user_command): Remove.
4343 * top.c (in_user_command): Remove.
4344 * cli/cli-script.c (do_restore_user_call_depth)
4345 (execute_user_command): Update.
4346
26fcd5d7
TT
43472017-08-03 Tom Tromey <tom@tromey.com>
4348
4349 * valops.c (search_struct_method): Use gdb::byte_vector.
4350 * valarith.c (value_concat): Use std::vector.
4351 * target.c (memory_xfer_partial): Use gdb::byte_vector.
4352 (simple_search_memory): Likewise.
4353 * printcmd.c (find_string_backward): Use gdb::byte_vector.
4354 * mi/mi-main.c (mi_cmd_data_write_memory): Use gdb::byte_vector.
4355 * gcore.c (gcore_copy_callback): Use gdb::byte_vector.
4356 * elfread.c (elf_rel_plt_read): Use std::string.
4357 * cp-valprint.c (cp_print_value): Use gdb::byte_vector.
4358 * cli/cli-dump.c (restore_section_callback): Use
4359 gdb::byte_vector.
4360
7c218e6c
TT
43612017-08-03 Tom Tromey <tom@tromey.com>
4362
4363 * jit.c (jit_reader_load_command): Use unique_xmalloc_ptr.
4364
31b68d4a
TT
43652017-08-03 Tom Tromey <tom@tromey.com>
4366
4367 * tui/tui-regs.c (tui_restore_gdbout): Remove.
4368 (tui_register_format): Use scoped_restore.
4369
2ec845e7
TT
43702017-08-03 Tom Tromey <tom@tromey.com>
4371
4372 * reverse.c (exec_direction_default): Remove.
4373 (exec_reverse_once): Use scoped_restore.
4374 * remote.c (restore_remote_timeout): Remove.
4375 (remote_flash_erase, remote_flash_write, remote_flash_done)
4376 (readchar, remote_serial_write): Use scoped_restore.
4377 * cli/cli-script.c (struct source_cleanup_lines_args)
4378 (source_cleanup_lines): Remove.
4379 (script_from_file): Use scoped_restore.
4380 * cli/cli-cmds.c (source_verbose_cleanup): Remove.
4381 (source_command): Use scoped_restore.
4382
b3bc8453
TT
43832017-08-03 Tom Tromey <tom@tromey.com>
4384
4385 * utils.h (make_cleanup_free_so): Remove.
4386 * utils.c (do_free_so, make_cleanup_free_so): Remove.
4387 * solist.h (struct so_deleter): New.
4388 (so_list_up): New typedef.
4389 * solib-svr4.c (svr4_read_so_list): Use so_list_up.
4390
e3ad2841
TT
43912017-08-03 Tom Tromey <tom@tromey.com>
4392
4393 * utils.h (make_cleanup_restore_current_language): Remove.
4394 * utils.c (do_restore_current_language)
4395 (make_cleanup_restore_current_language): Remove.
4396 * parse.c (parse_exp_in_context_1)
4397 (parse_expression_with_language): Use
4398 scoped_restore_current_language.
4399 * mi/mi-main.c (mi_cmd_execute): Use
4400 scoped_restore_current_language.
4401 * language.h (scoped_restore_current_language): New class.
4402
b80cf838
TT
44032017-08-03 Tom Tromey <tom@tromey.com>
4404
4405 * compile/compile.c (cleanup_unlink_file): Remove.
4406 (compile_to_object): Use gdb::unlinker.
4407 (eval_compile_command): Likewise.
4408
fad0444a
TT
44092017-08-03 Tom Tromey <tom@tromey.com>
4410
4411 * utils.h (make_cleanup_fclose): Remove.
4412 * utils.c (do_fclose_cleanup, make_cleanup_fclose): Remove.
4413
6e7bc05c
TT
44142017-08-03 Tom Tromey <tom@tromey.com>
4415
4416 * top.c (open_terminal_stream): Return gdb_file_up.
4417 (new_ui_command): Update.
4418
4a45905b
TT
44192017-08-03 Tom Tromey <tom@tromey.com>
4420
4421 * source.c (print_source_lines_base, forward_search_command)
4422 (reverse_search_command): Use gdb_file_up.
4423
7cd06d6e
TT
44242017-08-03 Tom Tromey <tom@tromey.com>
4425
4426 * fbsd-nat.c (fbsd_find_memory_regions): Update.
4427
ed166945
TT
44282017-08-03 Tom Tromey <tom@tromey.com>
4429
4430 * cli/cli-cmds.c (find_and_open_script): Change return type.
4431 Remove "streamp" and "full_path" parameters.
4432 (source_script_with_search): Update.
4433 * auto-load.c (source_script_file): Update.
4434 * cli/cli-cmds.h (find_and_open_script): Change type.
4435 (open_script): New struct.
4436
d419f42d
TT
44372017-08-03 Tom Tromey <tom@tromey.com>
4438
4439 * xml-support.c (xml_fetch_content_from_file): Update.
4440 * ui-file.c (stdio_file::open): Update.
4441 * tracefile-tfile.c (tfile_start): Update.
4442 * remote.c (remote_file_put, remote_file_get): Update.
4443 * nat/linux-procfs.c (linux_proc_get_int)
4444 (linux_proc_pid_get_state, linux_proc_tid_get_name): Update.
4445 * nat/linux-osdata.c (linux_common_core_of_thread): Update.
4446 (command_from_pid, commandline_from_pid, linux_xfer_osdata_cpus)
4447 (print_sockets, linux_xfer_osdata_shm, linux_xfer_osdata_sem)
4448 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Update.
4449 * nat/linux-btrace.c (linux_determine_kernel_start): Update.
4450 * linux-nat.c (linux_proc_pending_signals): Update.
4451 * dwarf2read.c (write_psymtabs_to_index): Use gdb_file_up.
4452 (file_closer): Remove.
4453 * compile/compile.c (compile_to_object): Update.
4454 * common/filestuff.h (struct gdb_file_deleter): New.
4455 (gdb_file_up): New typedef.
4456 (gdb_fopen_cloexec): Change return type.
4457 * common/filestuff.c (gdb_fopen_cloexec): Return gdb_file_up.
4458 * cli/cli-dump.c (fopen_with_cleanup): Remove.
4459 (dump_binary_file, restore_binary_file): Update.
4460 * auto-load.c (auto_load_objfile_script_1): Update.
4461
4a2b031d
TT
44622017-08-03 Tom Tromey <tom@tromey.com>
4463
4464 * tracepoint.c (tvariables_info_1): Use ui_out_emit_table.
4465 (info_static_tracepoint_markers_command): Likewise.
4466 * solib.c (info_sharedlibrary_command): Use ui_out_emit_table.
4467 * skip.c (skip_info): Use ui_out_emit_table.
4468 * progspace.c (print_program_space): Use ui_out_emit_table.
4469 * osdata.c (info_osdata): Use ui_out_emit_table.
4470 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Use
4471 ui_out_emit_table.
4472 * linux-thread-db.c (info_auto_load_libthread_db): Use
4473 ui_out_emit_table.
4474 * inferior.c (print_inferior): Use ui_out_emit_table.
4475 * gdb_bfd.c (maintenance_info_bfds): Use ui_out_emit_table.
4476 * breakpoint.c (breakpoint_1): Use ui_out_emit_table.
4477 * auto-load.c (auto_load_info_scripts): Use ui_out_emit_table.
4478 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_table.
4479 * ui-out.h (class ui_out_emit_table): New.
4480
a4f320fd
MR
44812017-08-02 Maciej W. Rozycki <macro@imgtec.com>
4482
4483 * mips-tdep.c (mips_fpu_type_str): New function.
4484 (mips_dump_tdep): Call it.
4485
a2f1f308
MR
44862017-08-01 Maciej W. Rozycki <macro@imgtec.com>
4487
4488 * mips-tdep.c (mips_gdbarch_init): Use MIPS_FPU_TYPE to access
4489 `->mips_fpu_type'.
4490
7e5ed83b
XR
44912017-07-31 Xavier Roirand <roirand@adacore.com>
4492
4493 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
4494
4c9dc811
XR
44952017-07-27 Xavier Roirand <roirand@adacore.com>
4496
4497 * MAINTAINERS (Write After Approval): Add Xavier Roirand.
4498
27d41eac
YQ
44992017-07-26 Yao Qi <yao.qi@linaro.org>
4500
4501 * cli/cli-cmds.c (maintenancechecklist): New variable.
4502 * gdbcmd.h (maintenancechecklist): Declare it.
4503 * i386-linux-tdep.c (_initialize_i386_linux_tdep) [GDB_SELF_TEST]:
4504 Call i386_linux_read_description with different masks.
4505 * maint.c (maintenance_check_command): New function.
4506 (_initialize_maint_cmds): Call add_prefix_cmd.
4507 * target-descriptions.c (tdesc_reg): override operator != and ==.
4508 (tdesc_type): Likewise.
4509 (tdesc_feature): Likewise.
4510 (target_desc): Likewise.
4511 [GDB_SELF_TEST] (selftests::record_xml_tdesc): New function.
4512 (maintenance_check_xml_descriptions): New function.
4513 (_initialize_target_descriptions) Add command "xml-descriptions".
4514 * target-descriptions.h (selftests::record_xml_tdesc): Declare.
4515
ea03d0d3
YQ
45162017-07-26 Yao Qi <yao.qi@linaro.org>
4517
4518 * i386-linux-tdep.c: Don't include features/i386/i386-*linux.c.
4519 Include features/i386/32bit-*.c.
4520 (i386_linux_read_description): Generate target description if it
4521 doesn't exist.
4522 (_initialize_i386_linux_tdep): Don't call _initialize_tdesc_i386
4523 functions.
4524 * features/i386/32bit-linux.c: Re-generated.
4525 * features/i386/32bit-sse.c: Likewise.
4526 * target-descriptions.c (print_c_feature::visit): Print code to
4527 set register number if needed.
4528 (print_c_feature) <m_next_regnum>: New field.
4529
25aa13e5
YQ
45302017-07-26 Yao Qi <yao.qi@linaro.org>
4531
4532 * features/Makefile (CFILES): Rename with TDESC_CFILES.
4533 (FEATURE_XMLFILES): New.
4534 (FEATURE_CFILES): New.
4535 New rules.
4536 (clean-cfiles): Remove generated c files.
4537 * features/i386/32bit-avx.c: Generated.
4538 * features/i386/32bit-avx512.c: Generated.
4539 * features/i386/32bit-core.c: Generated.
4540 * features/i386/32bit-linux.c: Generated.
4541 * features/i386/32bit-mpx.c: Generated.
4542 * features/i386/32bit-pkeys.c: Generated.
4543 * features/i386/32bit-sse.c: Generated.
4544 * target-descriptions.c: Include algorithm.
4545 (tdesc_element_visitor): Add method visit_end.
4546 (print_c_tdesc): Implement visit_end.
4547 (print_c_tdesc:: m_filename_after_features): Move it to
4548 protected.
4549 (print_c_feature): New class.
4550 (maint_print_c_tdesc_cmd): Use print_c_feature if XML file
4551 name starts with "i386/32bit-".
4552
6eb1e6a8
YQ
45532017-07-26 Yao Qi <yao.qi@linaro.org>
4554
4555 * target-descriptions.c (tdesc_element_visitor): New class.
4556 (tdesc_element): New class.
4557 (tdesc_reg): Inherit from tdesc_element.
4558 (tdesc_reg::accept): New function.
4559 (tdesc_type): Inherit from tdesc_element.
4560 (tdesc_type::accept): New function.
4561 (tdesc_feature): Inherit from tdesc_element.
4562 (tdesc_feature::accept): New function.
4563 (target_desc): Inherit from tdesc_element.
4564 (target_desc::target_desc): New.
4565 (target_desc::~target_desc): New.
4566 (target_desc::accept): New.
4567 (allocate_target_description): Use new.
4568 (free_target_description): Use delete.
4569 (print_c_tdesc): New class.
4570 (maint_print_c_tdesc_cmd): Adjust.
4571
4572 * features/aarch64.c: Re-generated.
4573 * features/arc-arcompact.c: Re-generated.
4574 * features/arc-v2.c: Re-generated.
4575 * features/arm/arm-with-iwmmxt.c: Re-generated.
4576 * features/arm/arm-with-m.c: Re-generated.
4577 * features/arm/arm-with-m-fpa-layout.c: Re-generated.
4578 * features/arm/arm-with-m-vfp-d16.c: Re-generated.
4579 * features/arm/arm-with-neon.c: Re-generated.
4580 * features/arm/arm-with-vfpv2.c: Re-generated.
4581 * features/arm/arm-with-vfpv3.c: Re-generated.
4582 * features/i386/amd64-avx-avx512.c: Re-generated.
4583 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
4584 * features/i386/amd64-avx.c: Re-generated.
4585 * features/i386/amd64-avx-linux.c: Re-generated.
4586 * features/i386/amd64-avx-mpx-avx512-pku.c: Re-generated.
4587 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
4588 * features/i386/amd64-avx-mpx.c: Re-generated.
4589 * features/i386/amd64-avx-mpx-linux.c: Re-generated.
4590 * features/i386/amd64.c: Re-generated.
4591 * features/i386/amd64-linux.c: Re-generated.
4592 * features/i386/amd64-mpx.c: Re-generated.
4593 * features/i386/amd64-mpx-linux.c: Re-generated.
4594 * features/i386/i386-avx-avx512.c: Re-generated.
4595 * features/i386/i386-avx-avx512-linux.c: Re-generated.
4596 * features/i386/i386-avx.c: Re-generated.
4597 * features/i386/i386-avx-linux.c: Re-generated.
4598 * features/i386/i386-avx-mpx-avx512-pku.c: Re-generated.
4599 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Re-generated.
4600 * features/i386/i386-avx-mpx.c: Re-generated.
4601 * features/i386/i386-avx-mpx-linux.c: Re-generated.
4602 * features/i386/i386.c: Re-generated.
4603 * features/i386/i386-linux.c: Re-generated.
4604 * features/i386/i386-mmx.c: Re-generated.
4605 * features/i386/i386-mmx-linux.c: Re-generated.
4606 * features/i386/i386-mpx.c: Re-generated.
4607 * features/i386/i386-mpx-linux.c: Re-generated.
4608 * features/i386/x32-avx-avx512.c: Re-generated.
4609 * features/i386/x32-avx-avx512-linux.c: Re-generated.
4610 * features/i386/x32-avx.c: Re-generated.
4611 * features/i386/x32-avx-linux.c: Re-generated.
4612 * features/i386/x32.c: Re-generated.
4613 * features/i386/x32-linux.c: Re-generated.
4614 * features/microblaze.c: Re-generated.
4615 * features/microblaze-with-stack-protect.c: Re-generated.
4616 * features/mips64-dsp-linux.c: Re-generated.
4617 * features/mips64-linux.c: Re-generated.
4618 * features/mips-dsp-linux.c: Re-generated.
4619 * features/mips-linux.c: Re-generated.
4620 * features/nds32.c: Re-generated.
4621 * features/nios2.c: Re-generated.
4622 * features/nios2-linux.c: Re-generated.
4623 * features/rs6000/powerpc-32.c: Re-generated.
4624 * features/rs6000/powerpc-32l.c: Re-generated.
4625 * features/rs6000/powerpc-403.c: Re-generated.
4626 * features/rs6000/powerpc-403gc.c : Re-generated.
4627 * features/rs6000/powerpc-405.c: Re-generated.
4628 * features/rs6000/powerpc-505.c: Re-generated.
4629 * features/rs6000/powerpc-601.c: Re-generated.
4630 * features/rs6000/powerpc-602.c: Re-generated.
4631 * features/rs6000/powerpc-603.c: Re-generated.
4632 * features/rs6000/powerpc-604.c: Re-generated.
4633 * features/rs6000/powerpc-64.c: Re-generated.
4634 * features/rs6000/powerpc-64l.c: Re-generated.
4635 * features/rs6000/powerpc-7400.c: Re-generated.
4636 * features/rs6000/powerpc-750.c: Re-generated.
4637 * features/rs6000/powerpc-860.c: Re-generated.
4638 * features/rs6000/powerpc-altivec32.c: Re-generated.
4639 * features/rs6000/powerpc-altivec32l.c: Re-generated.
4640 * features/rs6000/powerpc-altivec64.c: Re-generated.
4641 * features/rs6000/powerpc-altivec64l.c: Re-generated.
4642 * features/rs6000/powerpc-cell32l.c: Re-generated.
4643 * features/rs6000/powerpc-cell64l.c: Re-generated.
4644 * features/rs6000/powerpc-e500.c: Re-generated.
4645 * features/rs6000/powerpc-e500l.c: Re-generated.
4646 * features/rs6000/powerpc-isa205-32l.c: Re-generated.
4647 * features/rs6000/powerpc-isa205-64l.c: Re-generated.
4648 * features/rs6000/powerpc-isa205-altivec32l.c: Re-generated.
4649 * features/rs6000/powerpc-isa205-altivec64l.c: Re-generated.
4650 * features/rs6000/powerpc-isa205-vsx32l.c: Re-generated.
4651 * features/rs6000/powerpc-isa205-vsx64l.c: Re-generated.
4652 * features/rs6000/powerpc-vsx32.c: Re-generated.
4653 * features/rs6000/powerpc-vsx32l.c: Re-generated.
4654 * features/rs6000/powerpc-vsx64.c: Re-generated.
4655 * features/rs6000/powerpc-vsx64l.c: Re-generated.
4656 * features/rs6000/rs6000.c: Re-generated.
4657 * features/s390-linux32.c: Re-generated.
4658 * features/s390-linux32v1.c: Re-generated.
4659 * features/s390-linux32v2.c: Re-generated.
4660 * features/s390-linux64.c: Re-generated.
4661 * features/s390-linux64v1.c: Re-generated.
4662 * features/s390-linux64v2.c: Re-generated.
4663 * features/s390-te-linux64.c: Re-generated.
4664 * features/s390-tevx-linux64.c: Re-generated.
4665 * features/s390-vx-linux64.c: Re-generated.
4666 * features/s390x-linux64.c: Re-generated.
4667 * features/s390x-linux64v1.c: Re-generated.
4668 * features/s390x-linux64v2.c: Re-generated.
4669 * features/s390x-te-linux64.c: Re-generated.
4670 * features/s390x-tevx-linux64.c: Re-generated.
4671 * features/s390x-vx-linux64.c: Re-generated.
4672 * features/sparc/sparc32-solaris.c: Re-generated.
4673 * features/sparc/sparc64-solaris.c: Re-generated.
4674 * features/tic6x-c62x.c: Re-generated.
4675 * features/tic6x-c62x-linux.c: Re-generated.
4676 * features/tic6x-c64x.c: Re-generated.
4677 * features/tic6x-c64x-linux.c: Re-generated.
4678 * features/tic6x-c64xp.c: Re-generated.
4679 * features/tic6x-c64xp-linux.c: Re-generated.
4680
35b4818d
YQ
46812017-07-26 Yao Qi <yao.qi@linaro.org>
4682
4683 * i386-linux-tdep.c (i386_linux_read_description): New function.
4684 (i386_linux_core_read_description): Call
4685 i386_linux_read_description.
4686 * i386-linux-tdep.h (i386_linux_read_description): Declare.
4687 (tdesc_i386_linux, tdesc_i386_mmx_linux): Remove declarations.
4688 (tdesc_i386_avx_linux, tdesc_i386_mpx_linux): Likewise
4689 (tdesc_i386_avx_mpx_linux, tdesc_i386_avx_avx512_linux): Likewise.
4690 (tdesc_i386_avx_mpx_avx512_pku_linux): Likewise.
4691 * x86-linux-nat.c (x86_linux_read_description): Call
4692 i386_linux_read_description.
4693
8e2141c6
YQ
46942017-07-26 Yao Qi <yao.qi@linaro.org>
4695
4696 * NEWS: Mention it.
4697 * features/Makefile (%.c: %.xml): Pass the xml file name to
4698 command "maint print c-tdesc".
4699 * target-descriptions.c (maint_print_c_tdesc_cmd): Get file
4700 name from 'arg'.
4701
b468ff4c
YQ
47022017-07-26 Yao Qi <yao.qi@linaro.org>
4703
4704 * target-descriptions.c (target_desc): Add ctor and dtor. Do
4705 in-class initialization.
4706 (tdesc_create_feature): Call new instead of XCNEW.
4707 (free_target_description): Ue delete.
4708
b9c0e1b4
JB
47092017-07-25 John Baldwin <jhb@FreeBSD.org>
4710
4711 * configure.nat: Add "-lkvm" for NetBSD/sparc64 and fix typo.
4712
a04b5337
YQ
47132017-07-25 Yao Qi <yao.qi@linaro.org>
4714
4715 * amd64-tdep.c (amd64_init_abi): Make argument default_tdesc
4716 constant.
4717 (amd64_x32_init_abi): Likewise.
4718 * amd64-tdep.h (amd64_init_abi): Update declaration.
4719 (amd64_x32_init_abi): Likewise.
4720
02ad7fc2
YQ
47212017-07-25 Yao Qi <yao.qi@linaro.org>
4722
4723 PR tdep/21717
4724 * arm-linux-nat.c (arm_linux_fetch_inferior_registers): Update
4725 condition for FPSCR.
4726 (arm_linux_store_inferior_registers): Likewise.
4727
b6f48cb0
TT
47282017-07-22 Tom Tromey <tom@tromey.com>
4729
4730 * break-catch-syscall.c (struct catch_syscall_inferior_data)
4731 <syscalls_counts>: Now a std::vector.
4732 (get_catch_syscall_inferior_data): Use "new".
4733 (catch_syscall_inferior_data_cleanup): Use "delete".
4734 (insert_catch_syscall, remove_catch_syscall)
4735 (clear_syscall_counts): Update.
4736
e12c9b7a
TT
47372017-07-22 Tom Tromey <tom@tromey.com>
4738
4739 * break-catch-syscall.c (syscall_catchpoint)
4740 <syscalls_to_be_caught>: Now a std::vector<int>
4741 (~syscall_catchpoint): Remove.
4742 (insert_catch_syscall, remove_catch_syscall)
4743 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
4744 (print_mention_catch_syscall, print_recreate_catch_syscall):
4745 Update.
4746 (create_syscall_event_catchpoint): Change type of "filter"
4747 parameter.
4748 (catch_syscall_split_args): Return a std::vector.
4749 (catch_syscall_command_1, catching_syscall_number_1): Update.
4750
4fa8aeac
TT
47512017-07-22 Tom Tromey <tom@tromey.com>
4752
4753 * break-catch-throw.c (struct exception_catchpoint)
4754 <exception_rx>: Now a std::string.
4755 (~exception_catchpoint): Remove.
4756 (print_one_detail_exception_catchpoint): Update.
4757 (handle_gnu_v3_exceptions): Change type of except_rx.
4758 (extract_exception_regexp): Return a std::string.
4759 (catch_exception_command_1): Update.
4760
f746a154
TT
47612017-07-22 Tom Tromey <tom@tromey.com>
4762
4763 * break-catch-sig.c (gdb_signal_type): Remove typedef.
4764 (struct signal_catchpoint) <signals_to_be_caught>: Now a
4765 std::vector.
4766 <catch_all>: Now a bool.
4767 (~signal_catchpoint): Remove.
4768 (signal_catchpoint_insert_location)
4769 (signal_catchpoint_remove_location)
4770 (signal_catchpoint_breakpoint_hit, signal_catchpoint_print_one)
4771 (signal_catchpoint_print_mention)
4772 (signal_catchpoint_print_recreate)
4773 (signal_catchpoint_explains_signal): Update.
4774 (create_signal_catchpoint): Change type of "filter" and
4775 "catch_all".
4776 (catch_signal_split_args): Return a std::vector. Change type of
4777 "catch_all".
4778 (catch_signal_command): Update.
4779
47e77640
PA
47802017-07-20 Pedro Alves <palves@redhat.com>
4781
4782 * ada-lang.c (ada_language_defn): Make extern.
4783 (_initialize_ada_language): Remove add_language call.
4784 * c-lang.c (c_language_defn, cplus_language_defn)
4785 (asm_language_defn, minimal_language_defn): Make extern.
4786 (_initialize_c_language): Delete.
4787 * completer.c (compare_cstrings): Delete, moved to utils.h.
4788 * d-lang.c (d_language_defn): Make extern.
4789 (_initialize_d_language): Remove add_language calls.
4790 * defs.h (enum language): Add comment.
4791 * f-lang.c (f_language_defn): Make extern.
4792 (_initialize_f_language): Remove add_language call.
4793 * go-lang.c (go_language_defn): Make extern.
4794 (_initialize_go_language): Remove add_language call.
4795 * language.c: Include <algorithm>.
4796 (languages): Redefine as const array.
4797 (languages_size, languages_allocsize, DEFAULT_ALLOCSIZE): Delete.
4798 (set_language_command): Handle "local". Use for-range loop.
4799 (set_language): Remove loop.
4800 (language_enum): Rewrite.
4801 (language_def, language_str): Remove loops.
4802 (add_language): Delete.
4803 (add_set_language_command): New, based on add_languages.
4804 (skip_language_trampoline): Adjust.
4805 (local_language_defn): Delete.
4806 (language_gdbarch_post_init): Adjust.
4807 (_initialize_language): Remove add_language calls. Call
4808 add_set_language_command.
4809 * language.h (add_language): Delete.
4810 (auto_language_defn)
4811 (unknown_language_defn, minimal_language_defn, ada_language_defn)
4812 (asm_language_defn, c_language_defn, cplus_language_defn)
4813 (d_language_defn, f_language_defn, go_language_defn)
4814 (m2_language_defn, objc_language_defn, opencl_language_defn)
4815 (pascal_language_defn, rust_language_defn): Declare.
4816 * m2-lang.c (m2_language_defn): Make extern.
4817 (_initialize_m2_language): Remove add_language call.
4818 * objc-lang.c (objc_language_defn): Make extern.
4819 (_initialize_objc_language): Remove add_language call.
4820 * opencl-lang.c (opencl_language_defn): Make extern.
4821 (_initialize_opencl_language): Remove add_language call.
4822 * p-lang.c (pascal_language_defn): Make extern.
4823 (_initialize_pascal_language): Delete.
4824 * rust-lang.c (rust_language_defn): Make extern.
4825 (_initialize_rust_language): Delete.
4826 * utils.h (compare_cstrings): New static inline function.
4827
edb0c9cb
PA
48282017-07-20 Pedro Alves <palves@redhat.com>
4829
4830 * ada-lang.c (ada_to_fixed_type_1): Adjust.
4831 (get_var_value): Constify parameters.
4832 (get_int_var_value): Change prototype.
4833 (to_fixed_range_type): Adjust.
4834 * ada-lang.h (get_int_var_value): Change prototype.
4835
a778f165
PA
48362017-07-20 Pedro Alves <palves@redhat.com>
4837
4838 * dwarf2read.c (dw2_lookup_symbol): Use
4839 SYMBOL_MATCHES_SEARCH_NAME.
4840 * psymtab.c (psym_lookup_symbol): Use SYMBOL_MATCHES_SEARCH_NAME.
4841
42edd901
PA
48422017-07-20 Pedro Alves <palves@redhat.com>
4843
4844 * block.c (block_iter_name_step, block_iter_name_first)
4845 (block_iter_name_next): Delete.
4846 (block_lookup_symbol_primary): Adjust to use
4847 dict_iter_match_first/dict_iter_match_next.
4848 * block.h (block_iter_name_first, block_iter_name_next): Delete
4849 declarations.
4850 (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use
4851 dict_iter_match_first/dict_iter_match_next.
4852
cf325299
PA
48532017-07-20 Pedro Alves <palves@redhat.com>
4854
4855 * cp-support.c (cp_find_first_component_aux): Add missing case for
4856 end of string.
4857
c5ed0576
DB
48582017-07-18 David Blaikie <dblaikie@gmail.com>
4859
4860 * dwarf2read.c (create_cus_hash_table): Re-add lost initialization
4861 of dwo_cu's dwo_file.
4862
27841e76
YQ
48632017-07-18 Yao Qi <yao.qi@linaro.org>
4864
4865 * remote.c (store_registers_using_G): Remove one line comment.
4866
cfb7e58b
YQ
48672017-07-18 Yao Qi <yao.qi@linaro.org>
4868
4869 * regcache.c (regcache_cpy): Simplify it.
4870 (regcache::cpy_no_passthrough): Remove it.
4871 * regcache.h (cpy_no_passthrough): Remove it.
4872 (regcache_dup, regcache_cpy): Update comments.
4873
386535dd
PA
48742017-07-18 Pedro Alves <palves@redhat.com>
4875
4876 * remote-sim.c (sim_command_completer): Adjust to work with a
4877 completion_tracker instead of a VEC.
4878
c45ec17c
PA
48792017-07-17 Pedro Alves <palves@redhat.com>
4880
4881 * completer.c (complete_source_filenames): New function.
4882 (complete_address_and_linespec_locations): New function.
4883 (location_completer): Use complete_address_and_linespec_locations.
4884 (completion_tracker::build_completion_result): Honor the tracker's
4885 request to suppress append.
4886 * completer.h (completion_tracker::suppress_append_ws)
4887 (completion_tracker::set_suppress_append_ws): New methods.
4888 (completion_tracker::m_suppress_append_ws): New field.
4889 (complete_source_filenames): New declaration.
4890 * linespec.c (linespec_complete_what): New.
4891 (struct ls_parser) <complete_what, completion_word,
4892 completion_quote_char, completion_quote_end, completion_tracker>:
4893 New fields.
4894 (string_find_incomplete_keyword_at_end): New.
4895 (linespec_lexer_lex_string): Record quote char. If in completion
4896 mode, don't throw.
4897 (linespec_lexer_consume_token): Advance the completion word point.
4898 (linespec_lexer_peek_token): Save/restore completion info.
4899 (save_stream_and_consume_token): New.
4900 (set_completion_after_number): New.
4901 (linespec_parse_basic): Set what to complete next depending on
4902 token. Handle function and label completions specially.
4903 (parse_linespec): Disable objc shortcut in completion mode. Set
4904 what to complete next depending on token type. Skip keyword if in
4905 completion mode.
4906 (complete_linespec_component, linespec_complete): New.
4907 * linespec.h (linespec_complete): Declare.
4908
be966d42
PA
49092017-07-17 Pedro Alves <palves@redhat.com>
4910
4911 * linespec.c (linespec_lexer_lex_string, find_toplevel_char):
4912 Handle 'operator<' / 'operator<<'.
4913
a2459270
PA
49142017-07-17 Pedro Alves <palves@redhat.com>
4915
4916 * completer.c (collect_explicit_location_matches): Handle
4917 MATCH_LABEL.
4918 (convert_explicit_location_to_linespec): New, factored out from
4919 ...
4920 (convert_explicit_location_to_sals): ... this.
4921 (complete_label): New.
4922 (linespec_complete_label, find_label_symbols_in_block): New.
4923 (find_label_symbols): Add completion_mode parameter and adjust to
4924 call find_label_symbols_in_block.
4925 * linespec.h (linespec_complete_label): Declare.
4926
c6756f62
PA
49272017-07-17 Pedro Alves <palves@redhat.com>
4928
4929 * ada-lang.c (ada_collect_symbol_completion_matches): Add
4930 complete_symbol_mode parameter.
4931 * cli/cli-cmds.c (complete_command): Get the completion result out
4932 of the handle_brkchars tracker if used a custom word point.
4933 * completer.c: Include "linespec.h".
4934 (enum explicit_location_match_type) <MATCH_LINE>: New enumerator.
4935 (advance_to_expression_complete_word_point): New.
4936 (completion_tracker::completes_to_completion_word): New.
4937 (complete_files_symbols): Pass down
4938 complete_symbol_mode::EXPRESSION.
4939 (explicit_options, probe_options): New.
4940 (collect_explicit_location_matches): Complete on the
4941 explictit_loc->foo instead of word. Use
4942 linespec_complete_function. Handle MATCH_LINE. Handle offering
4943 keyword and options completions.
4944 (backup_text_ptr): Delete.
4945 (skip_keyword): New.
4946 (complete_explicit_location): Remove 'word' parameter. Add
4947 language, quoted_arg_start and quoted_arg_end parameters.
4948 Rewrite, parsing left to right.
4949 (location_completer): Rewrite.
4950 (location_completer_handle_brkchars): New function.
4951 (symbol_completer): Pass down complete_symbol_mode::EXPRESSION.
4952 (enum complete_line_internal_reason): Adjust comments.
4953 (completion_tracker::discard_completions): New.
4954 (completer_handle_brkchars_func_for_completer): Handle
4955 location_completer.
4956 (gdb_custom_word_point_brkchars)
4957 (gdb_org_rl_basic_quote_characters): New.
4958 (gdb_completion_word_break_characters_throw)
4959 (completion_find_completion_word): Handle trackers that use a
4960 custom word point.
4961 (completion_tracker::advance_custom_word_point_by): New.
4962 (completion_tracker::build_completion_result): Don't rely on
4963 readline appending the quote char.
4964 (gdb_rl_attempted_completion_function_throw): Handle trackers that
4965 use a custom word point.
4966 (gdb_rl_attempted_completion_function): Restore
4967 rl_basic_quote_characters.
4968 * completer.h (class completion_tracker): Extend intro comment.
4969 (completion_tracker::set_quote_char)
4970 (completion_tracker::quote_char)
4971 (completion_tracker::set_use_custom_word_point)
4972 (completion_tracker::use_custom_word_point)
4973 (completion_tracker::custom_word_point)
4974 (completion_tracker::set_custom_word_point)
4975 (completion_tracker::advance_custom_word_point_by)
4976 (completion_tracker::completes_to_completion_word)
4977 (completion_tracker::discard_completions): New methods.
4978 (completion_tracker::m_quote_char)
4979 (completion_tracker::m_use_custom_word_point)
4980 (completion_tracker::m_custom_word_point): New fields.
4981 (advance_to_expression_complete_word_point): Declare.
4982 * f-lang.c (f_collect_symbol_completion_matches): Add
4983 complete_symbol_mode parameter.
4984 * language.h (struct language_defn)
4985 <la_collect_symbol_completion_matches>: Add complete_symbol_mode
4986 parameter.
4987 * linespec.c (linespec_keywords): Add NULL terminator. Make extern.
4988 (linespec_complete_function): New function.
4989 (linespec_lexer_lex_keyword): Adjust.
4990 * linespec.h (linespec_keywords, linespec_complete_function): New
4991 declarations.
4992 * location.c (find_end_quote): New function.
4993 (explicit_location_lex_one): Add explicit_completion_info
4994 parameter. Save quoting info. Don't throw if being called for
4995 completion. Don't handle Ada operators here.
4996 (is_cp_operator, skip_op_false_positives, first_of)
4997 (explicit_location_lex_one_function): New function.
4998 (string_to_explicit_location): Replace 'dont_throw' parameter with
4999 an explicit_completion_info pointer parameter. Handle it. Don't
5000 use explicit_location_lex_one to lex function names. Use
5001 explicit_location_lex_one_function instead.
5002 * location.h (struct explicit_completion_info): New.
5003 (string_to_explicit_location): Replace 'dont_throw' parameter with
5004 an explicit_completion_info pointer parameter.
5005 * symtab.c (default_collect_symbol_completion_matches_break_on):
5006 Add complete_symbol_mode parameter. Handle LINESPEC mode.
5007 (default_collect_symbol_completion_matches)
5008 (collect_symbol_completion_matches): Add complete_symbol_mode
5009 parameter.
5010 (collect_symbol_completion_matches_type): Pass down
5011 complete_symbol_mode::EXPRESSION.
5012 (collect_file_symbol_completion_matches): Add complete_symbol_mode
5013 parameter. Handle LINESPEC mode.
5014 * symtab.h (complete_symbol_mode): New.
5015 (default_collect_symbol_completion_matches_break_on)
5016 (default_collect_symbol_completion_matches)
5017 (collect_symbol_completion_matches)
5018 (collect_file_symbol_completion_matches): Add complete_symbol_mode
5019 parameter.
5020
1d550c82
PA
50212017-07-17 Pedro Alves <palves@redhat.com>
5022
5023 * utils.c (enum class strncmp_iw_mode): New.
5024 (strcmp_iw): Rename to ...
5025 (strncmp_iw_with_mode): ... this. Add string2_len and mode
5026 parameters. Handle them.
5027 (strncmp_iw): New.
5028 (strcmp_iw): Reimplement as wrapper around strncmp_iw_with_mode.
5029 * utils.h (strncmp_iw): Declare.
5030 (strcmp_iw): Move describing comments here.
5031
8090b426
PA
50322017-07-17 Pedro Alves <palves@redhat.com>
5033
5034 * c-exp.y (operator_stoken): Use CP_OPERATOR_LEN and
5035 CP_OPERATOR_STR.
5036 * c-typeprint.c (is_type_conversion_operator): Use
5037 CP_OPERATOR_STR.
5038 * cp-support.c (LENGTH_OF_OPERATOR): Delete.
5039 (cp_find_first_component_aux): Use CP_OPERATOR_STR and
5040 CP_OPERATOR_LEN.
5041 * cp-support.h (CP_OPERATOR_STR, CP_OPERATOR_LEN): New.
5042 * gnu-v2-abi.c (gnuv2_is_operator_name): Use CP_OPERATOR_STR.
5043 * gnu-v3-abi.c (gnuv3_is_operator_name): Use CP_OPERATOR_STR.
5044 * linespec.c (linespec_lexer_lex_string): Use CP_OPERATOR_LEN and
5045 CP_OPERATOR_STR.
5046 * location.c: Include "cp-support.h".
5047 (explicit_location_lex_one): Use CP_OPERATOR_LEN and
5048 CP_OPERATOR_STR.
5049 * symtab.c (operator_chars): Use CP_OPERATOR_STR and
5050 CP_OPERATOR_LEN.
5051
6a2c1b87
PA
50522017-07-17 Pedro Alves <palves@redhat.com>
5053
5054 * cli/cli-cmds.c (complete_command): Use a completion tracker
5055 along with completion_find_completion_word for handle_brkchars
5056 phase.
5057 * completer.c (RL_QF_SINGLE_QUOTE, RL_QF_DOUBLE_QUOTE)
5058 (RL_QF_BACKSLASH, RL_QF_OTHER_QUOTE): New.
5059 (struct gdb_rl_completion_word_info): New.
5060 (gdb_rl_find_completion_word): New.
5061 (completion_find_completion_word): New.
5062 * completer.h (completion_find_completion_word): Declare.
5063
eb3ff9a5
PA
50642017-07-17 Pedro Alves <palves@redhat.com>
5065
5066 * ada-lang.c (symbol_completion_match): Adjust comments.
5067 (symbol_completion_add): Replace vector parameter with
5068 completion_tracker parameter. Use it.
5069 (ada_make_symbol_completion_list): Rename to...
5070 (ada_collect_symbol_completion_matches): ... this. Add
5071 completion_tracker parameter and use it.
5072 (ada_language_defn): Adjust.
5073 * break-catch-syscall.c (catch_syscall_completer): Adjust
5074 prototype and work with completion_tracker instead of VEC.
5075 * breakpoint.c (condition_completer): Adjust prototype and work
5076 with completion_tracker instead of VEC.
5077 * c-lang.c (c_language_defn, cplus_language_defn)
5078 (asm_language_defn, minimal_language_defn): Adjust to renames.
5079 * cli/cli-cmds.c (complete_command): Rework using
5080 completion_tracker. Catch exceptions when completing.
5081 * cli/cli-decode.c (integer_unlimited_completer)
5082 (complete_on_cmdlist, complete_on_enum): Adjust prototype and work
5083 with completion_tracker instead of VEC.
5084 * command.h (struct completion_tracker): Forward declare.
5085 (completer_ftype, completer_handle_brkchars_ftype): Change
5086 types.
5087 (complete_on_cmdlist, complete_on_enum): Adjust.
5088 * completer.c: Include <algorithm>.
5089 (struct gdb_completer_state): New.
5090 (current_completion): New global.
5091 (readline_line_completion_function): Delete.
5092 (noop_completer, filename_completer)
5093 (filename_completer_handle_brkchars, complete_files_symbols)
5094 (linespec_location_completer): Adjust to work with a
5095 completion_tracker instead of a VEC.
5096 (string_or_empty): New.
5097 (collect_explicit_location_matches): Adjust to work with a
5098 completion_tracker instead of a VEC.
5099 (explicit_location_completer): Rename to ...
5100 (complete_explicit_location): ... this and adjust to work with a
5101 completion_tracker instead of a VEC.
5102 (location_completer): Adjust to work with a completion_tracker
5103 instead of a VEC.
5104 (add_struct_fields): Adjust to work with a completion_list instead
5105 of VEC.
5106 (expression_completer): Rename to ...
5107 (complete_expression): ... this and adjust to work with a
5108 completion_tracker instead of a VEC. Use complete_files_symbols.
5109 (expression_completer): Reimplement on top of complete_expression.
5110 (symbol_completer): Adjust to work with a completion_tracker
5111 instead of a VEC.
5112 (enum complete_line_internal_reason): Add describing comments.
5113 (complete_line_internal_normal_command): Adjust to work with a
5114 completion_tracker instead of a VEC.
5115 (complete_line_internal): Rename to ...
5116 (complete_line_internal_1): ... this and adjust to work with a
5117 completion_tracker instead of a VEC. Assert TEXT is NULL in the
5118 handle_brkchars phase.
5119 (new_completion_tracker): Delete.
5120 (complete_line_internal): Reimplement as TRY/CATCH wrapper around
5121 complete_line_internal_1.
5122 (free_completion_tracker): Delete.
5123 (INITIAL_COMPLETION_HTAB_SIZE): New.
5124 (completion_tracker::completion_tracker)
5125 (completion_tracker::~completion_tracker): New.
5126 (maybe_add_completion): Delete.
5127 (completion_tracker::maybe_add_completion)
5128 (completion_tracker::add_completion)
5129 (completion_tracker::add_completions): New.
5130 (throw_max_completions_reached_error): Delete.
5131 (complete_line): Adjust to work with a completion_tracker instead
5132 of a VEC. Don't create a completion_tracker_t or check for max
5133 completions here.
5134 (command_completer, command_completer_handle_brkchars)
5135 (signal_completer, reg_or_group_completer_1)
5136 (reg_or_group_completer, default_completer_handle_brkchars):
5137 Adjust to work with a completion_tracker.
5138 (gdb_completion_word_break_characters_throw): New.
5139 (gdb_completion_word_break_characters): Reimplement.
5140 (line_completion_function): Delete.
5141 (completion_tracker::recompute_lowest_common_denominator)
5142 (expand_preserving_ws)
5143 (completion_tracker::build_completion_result)
5144 (completion_result::completion_result)
5145 (completion_result::completion_result)
5146 (completion_result::~completion_result)
5147 (completion_result::completion_result)
5148 (completion_result::release_match_list, compare_cstrings)
5149 (completion_result::sort_match_list)
5150 (completion_result::reset_match_list)
5151 (gdb_rl_attempted_completion_function_throw)
5152 (gdb_rl_attempted_completion_function): New.
5153 * completer.h (completion_list, struct completion_result)
5154 (class completion_tracker): New.
5155 (complete_line): Add completion_tracker parameter.
5156 (readline_line_completion_function): Delete.
5157 (gdb_rl_attempted_completion_function): New.
5158 (noop_completer, filename_completer, expression_completer)
5159 (location_completer, symbol_completer, command_completer)
5160 (signal_completer, reg_or_group_completer): Update prototypes.
5161 (completion_tracker_t, new_completion_tracker)
5162 (make_cleanup_free_completion_tracker): Delete.
5163 (enum maybe_add_completion_enum): Delete.
5164 (maybe_add_completion): Delete.
5165 (throw_max_completions_reached_error): Delete.
5166 * corefile.c (complete_set_gnutarget): Adjust to work with a
5167 completion_tracker instead of a VEC.
5168 * cp-abi.c (cp_abi_completer): Adjust to work with a
5169 completion_tracker instead of a VEC.
5170 * d-lang.c (d_language_defn): Adjust.
5171 * disasm.c (disassembler_options_completer): Adjust to work with a
5172 completion_tracker instead of a VEC.
5173 * f-lang.c (f_make_symbol_completion_list): Rename to ...
5174 (f_collect_symbol_completion_matches): ... this. Adjust to work
5175 with a completion_tracker instead of a VEC.
5176 (f_language_defn): Adjust.
5177 * go-lang.c (go_language_defn): Adjust.
5178 * guile/scm-cmd.c (cmdscm_add_completion, cmdscm_completer):
5179 Adjust to work with a completion_tracker instead of a VEC.
5180 * infrun.c (handle_completer): Likewise.
5181 * interps.c (interpreter_completer): Likewise.
5182 * interps.h (interpreter_completer): Likewise.
5183 * language.c (unknown_language_defn, auto_language_defn)
5184 (local_language_defn): Adjust.
5185 * language.h (language_defn::la_make_symbol_completion_list):
5186 Rename to ...
5187 (language_defn::la_collect_symbol_completion_matches): ... this
5188 and adjust to work with a completion_tracker instead of a VEC.
5189 * m2-lang.c (m2_language_defn): Adjust.
5190 * objc-lang.c (objc_language_defn): Adjust.
5191 * opencl-lang.c (opencl_language_defn): Adjust.
5192 * p-lang.c (pascal_language_defn): Adjust.
5193 * python/py-cmd.c (cmdpy_completer_helper): Handle NULL word.
5194 (cmdpy_completer_handle_brkchars, cmdpy_completer): Adjust to work
5195 with a completion_tracker.
5196 * rust-lang.c (rust_language_defn): Adjust.
5197 * symtab.c (free_completion_list, do_free_completion_list)
5198 (return_val, completion_tracker): Delete.
5199 (completion_list_add_name, completion_list_add_symbol)
5200 (completion_list_add_msymbol, completion_list_objc_symbol)
5201 (completion_list_add_fields, add_symtab_completions): Add
5202 completion_tracker parameter and use it.
5203 (default_make_symbol_completion_list_break_on_1): Rename to...
5204 (default_collect_symbol_completion_matches_break_on): ... this.
5205 Add completion_tracker parameter and use it instead of allocating
5206 a completion tracker here.
5207 (default_make_symbol_completion_list_break_on): Delete old
5208 implementation.
5209 (default_make_symbol_completion_list): Delete.
5210 (default_collect_symbol_completion_matches): New.
5211 (make_symbol_completion_list): Delete.
5212 (collect_symbol_completion_matches): New.
5213 (make_symbol_completion_type): Rename to ...
5214 (collect_symbol_completion_matches_type): ... this. Add
5215 completion_tracker parameter and use it instead of VEC.
5216 (make_file_symbol_completion_list_1): Rename to...
5217 (collect_file_symbol_completion_matches): ... this. Add
5218 completion_tracker parameter and use it instead of VEC.
5219 (make_file_symbol_completion_list): Delete.
5220 (add_filename_to_list): Use completion_list instead of a VEC.
5221 (add_partial_filename_data::list): Now a completion_list.
5222 (make_source_files_completion_list): Work with a completion_list
5223 instead of a VEC.
5224 * symtab.h: Include "completer.h".
5225 (default_make_symbol_completion_list_break_on)
5226 (default_make_symbol_completion_list, make_symbol_completion_list)
5227 (make_symbol_completion_type, make_file_symbol_completion_list)
5228 (make_source_files_completion_list): Delete.
5229 (default_collect_symbol_completion_matches_break_on)
5230 (default_collect_symbol_completion_matches)
5231 (collect_symbol_completion_matches)
5232 (collect_symbol_completion_matches_type)
5233 (collect_file_symbol_completion_matches)
5234 (make_source_files_completion_list): New.
5235 * top.c (init_main): Don't install a rl_completion_entry_function
5236 hook. Install a rl_attempted_completion_function hook instead.
5237 * tui/tui-layout.c (layout_completer): Adjust to work with a
5238 completion_tracker.
5239 * tui/tui-regs.c (tui_reggroup_completer):
5240 * tui/tui-win.c (window_name_completer, focus_completer)
5241 (winheight_completer): Adjust to work with a completion_tracker.
5242 * value.c: Include "completer.h".
5243 (complete_internalvar): Adjust to work with a completion_tracker.
5244 * value.h (complete_internalvar): Likewise.
5245
6e1dbf8c
PA
52462017-07-17 Pedro Alves <palves@redhat.com>
5247
5248 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): Adjust to
5249 renames.
5250 * cli/cli-decode.h (struct cmd_list_element) <completer>: Move
5251 comments to completer_ftype's declaration.
5252 <completer_handle_brkchars>: Change type to
5253 completer_handle_brkchars_ftype.
5254 * command.h (completer_ftype): Add describing comment and give
5255 names to parameters.
5256 (completer_ftype_void): Rename to ...
5257 (completer_handle_brkchars_ftype) ... this. Add describing comment.
5258 (set_cmd_completer_handle_brkchars): Adjust.
5259 * completer.c (filename_completer_handle_brkchars): New function.
5260 (complete_line_internal_normal_command): New function, factored
5261 out from ...
5262 (complete_line_internal): ... here.
5263 (command_completer_handle_brkchars)
5264 (default_completer_handle_brkchars)
5265 (completer_handle_brkchars_func_for_completer): New functions.
5266 * completer.h (set_gdb_completion_word_break_characters): Delete
5267 declaration.
5268 (completer_handle_brkchars_func_for_completer): New declaration.
5269 * python/py-cmd.c (cmdpy_completer_handle_brkchars): Adjust to use
5270 completer_handle_brkchars_func_for_completer.
5271
78b13106
PA
52722017-07-17 Pedro Alves <palves@redhat.com>
5273
5274 * completer.c (symbol_completer): New function, based on
5275 make_symbol_completion_list_fn.
5276 * completer.h (symbol_completer): New declaration.
5277 * guile/scm-cmd.c (cmdscm_completers): Adjust.
5278 * python/py-cmd.c (completers): Adjust.
5279 * symtab.c (make_symbol_completion_list_fn): Delete.
5280 * symtab.h (make_symbol_completion_list_fn): Delete.
5281 * cli/cli-decode.c (add_cmd): Adjust.
5282
bbf2f4df
PA
52832017-07-17 Pedro Alves <palves@redhat.com>
5284
5285 * Makefile.in (COMMON_OBS): Add filename-seen-cache.o.
5286 * dwarf2read.c: Include "filename-seen-cache.h".
5287 * dwarf2read.c (dwarf2_per_objfile) <filenames_cache>: New field.
5288 (dw2_map_symbol_filenames): Build and use a filenames_seen_cache.
5289 * filename-seen-cache.c: New file.
5290 * filename-seen-cache.h: New file.
5291 * symtab.c: Include "filename-seen-cache.h".
5292 (struct filename_seen_cache, INITIAL_FILENAME_SEEN_CACHE_SIZE)
5293 (create_filename_seen_cache, clear_filename_seen_cache)
5294 (delete_filename_seen_cache, filename_seen): Delete, parts moved
5295 to filename-seen-cache.h/filename-seen-cache.c.
5296 (output_source_filename, sources_info)
5297 (maybe_add_partial_symtab_filename)
5298 (make_source_files_completion_list): Adjust to use
5299 filename_seen_cache.
5300
330cdd98
PA
53012017-07-17 Pedro Alves <palves@redhat.com>
5302
5303 * dwarf2read.c (dwarf2_per_objfile): In-class initialize all
5304 fields.
5305 (dwarf2_per_objfile::dwarf2_per_objfile(objfile*, const
5306 dwarf2_debug_sections*)): New.
5307 (dwarf2_per_objfile::dwarf2_per_objfile(const
5308 dwarf2_per_objfile&)): Declare as deleted.
5309 (dwarf2_per_objfile::operator=): Declare as deleted.
5310 (dwarf2_per_objfile::dwarf2_per_objfile)
5311 (dwarf2_per_objfile::~dwarf2_per_objfile)
5312 (dwarf2_per_objfile::free_cached_comp_units): New.
5313 (dwarf2_has_info): dwarf2_per_objfile initialization code moved to
5314 ctor. Call dwarf2_per_objfile's ctor manually.
5315 (dwarf2_locate_sections): Deleted/refactored as ...
5316 (dwarf2_per_objfile::locate_sections): ... this new method.
5317 (free_cached_comp_units): Defer to
5318 dwarf2_per_objfile::free_cached_comp_units.
5319 (dwarf2_free_objfile): Call dwarf2_per_objfile's dtor manually.
5320
8880f2a9
TT
53212017-07-14 Tom Tromey <tom@tromey.com>
5322
5323 PR rust/21764:
5324 * rust-exp.y (convert_ast_to_expression): Add "want_type"
5325 parameter.
5326 <UNOP_SIZEOF>: Split into separate case.
5327 <UNOP_VAR_VALUE>: Handle want_type. Add error case.
5328
65547233
TT
53292017-07-14 Tom Tromey <tom@tromey.com>
5330
5331 PR rust/21763:
5332 * symtab.c (symbol_matches_domain): Add language_rust to special
5333 case.
5334 * rust-exp.y (convert_ast_to_expression) <OP_VAR_VALUE>: Don't
5335 treat LOC_TYPEDEF symbols as variables.
5336
8f14146e
PA
53372017-07-14 Pedro Alves <palves@redhat.com>
5338
5339 * symtab.c (make_file_symbol_completion_list_1): Iterate over
5340 symtabs matching all symtabs with SRCFILE as file name instead of
5341 only considering the first hit, with lookup_symtab.
5342
2347965c
SM
53432017-07-14 Simon Marchi <simon.marchi@ericsson.com>
5344
5345 * ax-gdb.c (gen_aggregate_elt_ref): Remove operand_name and
5346 operator_name parameters.
5347 (gen_expr): Update function call.
5348
40f4af28
SM
53492017-07-14 Simon Marchi <simon.marchi@ericsson.com>
5350
5351 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Remove gdbarch
5352 parameter.
5353 * symtab.h (struct symbol_computed_ops::tracepoint_var_ref):
5354 Likewise.
5355 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove gdbarch
5356 parameter, use agent_expr::gdbarch instead, update function
5357 calls.
5358 (locexpr_tracepoint_var_ref): Likewise.
5359 (loclist_tracepoint_var_ref): Likewise.
5360 * ax-gdb.c (gen_trace_static_fields): Likewise.
5361 (gen_traced_pop): Likewise.
5362 (gen_frame_args_address): Likewise.
5363 (gen_frame_locals_address): Likewise.
5364 (gen_var_ref): Likewise.
5365 (gen_struct_ref_recursive): Likewise.
5366 (gen_static_field): Likewise.
5367 (gen_maybe_namespace_elt): Likewise.
5368 (gen_expr): Likewise.
5369 (gen_trace_for_var): Likewise.
5370 (gen_trace_for_expr): Likewise.
5371 (gen_trace_for_return_address): Likewise.
5372
053f8057
SM
53732017-07-14 Simon Marchi <simon.marchi@ericsson.com>
5374
5375 * ax-gdb.c (gen_deref, gen_address_of): Remove unused ax
5376 parameter.
5377 (gen_struct_ref, gen_expr, gen_expr_binop_rest): Update call.
5378
6661ad48
SM
53792017-07-14 Simon Marchi <simon.marchi@ericsson.com>
5380
5381 * ax-gdb.c (gen_usual_unary): Remove exp parameter, get gdbarch
5382 from ax, update calls.
5383 (gen_usual_arithmetic): Likewise.
5384 (gen_integral_promotions): Likewise.
5385 (gen_bitfield_ref): Likewise.
5386 (gen_primitive_field): Likewise.
5387 (gen_struct_ref_recursive): Likewise.
5388 (gen_struct_ref): Likewise.
5389 (gen_maybe_namespace_elt): Likewise.
5390 (gen_struct_elt_for_reference): Likewise.
5391 (gen_namespace_elt): Likewise.
5392 (gen_aggregate_elt_ref): Likewise.
5393 (gen_expr): Get gdbarch from ax, update calls.
5394 (gen_expr_binop_rest): Likewise.
5395
c55a47e7
PA
53962017-07-13 Pedro Alves <palves@redhat.com>
5397
5398 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Pass tdesc_amd64
5399 as default tdesc.
5400 * amd64-dicos-tdep.c (amd64_dicos_init_abi):
5401 * amd64-fbsd-tdep.c (amd64fbsd_init_abi):
5402 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass
5403 tdesc_amd64_linux as default tdesc. Get final tdesc from the
5404 tdep.
5405 (amd64_x32_linux_init_abi): Pass tdesc_x32_linux as default tdesc.
5406 Get final tdesc from the tdep.
5407 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Pass tdesc_amd64 as
5408 default tdesc.
5409 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
5410 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
5411 * amd64-tdep.c (amd64_init_abi): Add 'default_tdesc' parameter.
5412 Use it as default tdesc.
5413 (amd64_x32_init_abi): Add 'default_tdesc' parameter, and pass it
5414 down to amd_init_abi. No longer handle fallback tdesc here.
5415 * amd64-tdep.h (tdesc_x32): Declare.
5416 (amd64_init_abi, amd64_x32_init_abi): Add 'default_tdesc'
5417 parameter.
5418 * amd64-windows-tdep.c (amd64_windows_init_abi): Pass tdesc_amd64
5419 as default tdesc.
5420
55efceab
AA
54212017-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5422
5423 * s390-linux-tdep.c (s390_process_record): Add support for
5424 instructions new in arch12.
5425
0aa37b65
JB
54262017-07-11 John Baldwin <jhb@FreeBSD.org>
5427
5428 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
5429 PT_GETFSBASE and PT_GETGSBASE.
5430 (amd64bsd_store_inferior_registers): Use PT_SETFSBASE and
5431 PT_SETGSBASE.
5432
48aeef91
JB
54332017-07-11 John Baldwin <jhb@FreeBSD.org>
5434
5435 * features/Makefile (amd64.dat, amd64-avx.dat, amd64-mpx.dat)
5436 (amd64-avx-mpx.dat, amd64-avx-avx512.dat)
5437 (amd64-avx-mpx-avx512-pku.dat): Add i386/64bit-segments.xml in
5438 those rules.
5439 * features/i386/amd64-avx-avx512.xml: Add 64bit-segments.xml.
5440 * features/i386/amd64-avx-mpx-avx512-pku.xml: Add 64bit-segments.xml.
5441 * features/i386/amd64-avx-mpx.xml: Add 64bit-segments.xml.
5442 * features/i386/amd64-avx.xml: Add 64bit-segments.xml.
5443 * features/i386/amd64-mpx.xml: Add 64bit-segments.xml.
5444 * features/i386/amd64.xml: Add 64bit-segments.xml.
5445 * features/i386/amd64-avx-avx512.c: Regenerated.
5446 * features/i386/amd64-avx-mpx-avx512-pku.c: Regenerated.
5447 * features/i386/amd64-avx-mpx.c: Regenerated.
5448 * features/i386/amd64-avx.c: Regenerated.
5449 * features/i386/amd64-mpx.c: Regenerated.
5450 * features/i386/amd64.c: Regenerated.
5451 * regformats/i386/amd64-avx-avx512.dat: Regenerated.
5452 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
5453 * regformats/i386/amd64-avx-mpx.dat: Regenerated.
5454 * regformats/i386/amd64-avx.dat: Regenerated.
5455 * regformats/i386/amd64-mpx.dat: Regenerated.
5456 * regformats/i386/amd64.dat: Regenerated.
5457
77c501bc
YQ
54582017-07-10 Yao Qi <yao.qi@linaro.org>
5459
5460 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
5461 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
5462
6dc8d757
AK
54632017-07-10 Anton Kolesov <Anton.Kolesov@synopsys.com>
5464
5465 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add setenv and
5466 unsetenv.
5467 * gnulib/aclocal.m4: Regenerate.
5468 * gnulib/config.in: Regenerate.
5469 * gnulib/configure: Regenerate.
5470 * gnulib/import/Makefile.am: Regenerate.
5471 * gnulib/import/Makefile.in: Regenerate.
5472 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
5473 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
5474 * gnulib/import/m4/environ.m4: New file.
5475 * gnulib/import/m4/setenv.m4: New file.
5476 * gnulib/import/setenv.c: New file.
5477 * gnulib/import/unsetenv.c: New file.
5478
266934d1
SM
54792017-07-09 Simon Marchi <simon.marchi@ericsson.com>
5480
5481 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Read
5482 address when op is DW_OP_addr.
5483
03278692
TT
54842017-07-09 Tom Tromey <tom@tromey.com>
5485
5486 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Reverse size
5487 check and apply to outer type.
5488
4b654465
JB
54892017-07-07 John Baldwin <jhb@FreeBSD.org>
5490
5491 * fbsd-tdep.c (LWPINFO_OFFSET, LWPINFO_PL_FLAGS)
5492 (LWPINFO64_PL_SIGINFO, LWPINFO32_PL_SIGINFO, PL_FLAG_SI)
5493 (SIZE64_SIGINFO_T, SIZE32_SIGINFO_T, fbsd_core_xfer_siginfo): New.
5494 (fbsd_init_abi): Install gdbarch "core_xfer_siginfo" method.
5495
2af9fc44
JB
54962017-07-07 John Baldwin <jhb@FreeBSD.org>
5497
5498 * fbsd-tdep.c (fbsd_core_thread_name): Use thread_section_name.
5499
382b69bb
JB
55002017-07-07 John Baldwin <jhb@FreeBSD.org>
5501
5502 * corelow.c (get_core_siginfo): Remove.
5503 (core_xfer_partial): Use the gdbarch "core_xfer_siginfo" method
5504 instead of get_core_siginfo.
5505 * gdbarch.sh (core_xfer_siginfo): New gdbarch callback.
5506 * gdbarch.h: Re-generate.
5507 * gdbarch.c: Re-generate.
5508 * linux-tdep.c (linux_core_xfer_siginfo): New.
5509 (linux_init_abi): Install gdbarch "core_xfer_siginfo" method.
5510
6e5eab33
JB
55112017-07-07 John Baldwin <jhb@FreeBSD.org>
5512
5513 * corelow.c (thread_section_name): Move to ...
5514 * gdbcore.h (thread_section_name): ... here.
5515
929edea9
JB
55162017-07-07 John Baldwin <jhb@FreeBSD.org>
5517
5518 * fbsd-nat.c [PT_LWPINFO && __LP64__] (union sigval32)
5519 (struct siginfo32): New.
5520 [PT_LWPINFO] (fbsd_siginfo_size, fbsd_convert_siginfo): New.
5521 (fbsd_xfer_partial) [PT_LWPINFO]: Handle TARGET_OBJECT_SIGNAL_INFO
5522 via ptrace(PT_LWPINFO).
5523
762c974a
JB
55242017-07-07 John Baldwin <jhb@FreeBSD.org>
5525
5526 * fbsd-tdep.c (fbsd_gdbarch_data_handle, struct fbsd_gdbarch_data)
5527 (init_fbsd_gdbarch_data, get_fbsd_gdbarch_data)
5528 (fbsd_get_siginfo_type): New.
5529 (fbsd_init_abi): Install gdbarch "get_siginfo_type" method.
5530 (_initialize_fbsd_tdep): New.
5531
33c5cd75
DB
55322017-07-06 David Blaikie <dblaikie@gmail.com>
5533
5534 * dwarf2read.c (struct dwo_file): Use a htab of dwo_unit* (rather than
5535 a singular dwo_unit*) to support multiple CUs in the same way that
5536 multiple TUs are supported.
5537 (create_cus_hash_table): Replace create_dwo_cu with a function for
5538 parsing multiple CUs from a DWO file.
5539 (open_and_init_dwo_file): Use create_cus_hash_table rather than
5540 create_dwo_cu.
5541 (lookup_dwo_cutu): Lookup CU in the hash table in the dwo_file with
5542 htab_find, rather than comparing the signature to a singleton CU in
5543 the dwo_file.
5544
8455d262
PA
55452017-07-06 Pedro Alves <palves@redhat.com>
5546
5547 * python/py-unwind.c (pyuw_dealloc_cache): Fix for loop condition.
5548
4da3eb35
PA
55492017-07-04 Pedro Alves <palves@redhat.com>
5550
5551 * gdbtypes.c (recursive_dump_type): Don't reference TYPE_STATIC.
5552 * gdbtypes.h (TYPE_STATIC): Delete.
5553 (struct fn_field) <is_public, is_abstract, is_static, is_final,
5554 is_synchronized, is_native>: Delete.
5555 <dummy>: Bump.
5556 (TYPE_FN_FIELD_PUBLIC, TYPE_FN_FIELD_STATIC, TYPE_FN_FIELD_FINAL)
5557 (TYPE_FN_FIELD_SYNCHRONIZED, TYPE_FN_FIELD_NATIVE)
5558 (TYPE_FN_FIELD_ABSTRACT): Delete.
5559
5bfd255c
SM
55602017-07-03 Simon Marchi <simon.marchi@ericsson.com>
5561
5562 * buffer.h (buffer_finish): Fix spelling mistakes.
5563
25c54127
EZ
55642017-07-01 Eli Zaretskii <eliz@gnu.org>
5565
5566 * .dir-locals.el: Automatically switch to C-style comments in
5567 versions of Emacs that support the feature.
5568
dc4bde35
SDJ
55692017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
5570 Pedro Alves <palves@redhat.com>
5571
5572 PR cli/21688
5573 * cli/cli-script.c (command_name_equals_not_inline): Remove function.
5574 (process_next_line): New variable 'inline_cmd'.
5575 Adjust 'if' clauses for "python", "compile" and "guile" to use
5576 'command_name_equals' and check for '!inline_cmd'.
5577
51ed89aa
SDJ
55782017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
5579
5580 PR cli/21688
5581 * cli/cli-script.c (command_name_equals_not_inline): New function.
5582 (process_next_line): Adjust 'if' clauses for "python", "compile"
5583 and "guile" to use command_name_equals_not_inline.
5584
eb17d413
PA
55852017-06-29 Pedro Alves <palves@redhat.com>
5586
5587 * completer.c (expression_completer): Call
5588 linespec_location_completer instead of location_completer.
5589
195bcdd5
PA
55902017-06-29 Pedro Alves <palves@redhat.com>
5591
5592 * completer.c (expression_completer): Remove code that recomputes
5593 'text' from 'word'.
5594
adc764e7
YQ
55952017-06-29 Yao Qi <yao.qi@linaro.org>
5596
5597 * regformats/regdat.sh: Generate code with
5598 "ifndef IN_PROCESS_AGENT".
5599
6e75794e
PA
56002017-06-28 Pedro Alves <palves@redhat.com>
5601
5602 * command.h: Include "common/scoped_restore.h".
5603
bc491f2e
YQ
56042017-06-28 Yao Qi <yao.qi@linaro.org>
5605
5606 * mi/mi-cmd-break.c (mi_argv_to_format): Use obstack_grow_str
5607 instead of obstack_grow.
5608
41664b45
DG
56092017-06-28 Doug Gilmore <Doug.Gilmore@imgtec.com>
5610
5611 PR gdb/21337
5612 * symfile.c (reread_symbols): Call objfiles_changed just before
5613 read_symbols.
5614
6da67eb1
PA
56152017-06-27 Pedro Alves <palves@redhat.com>
5616
5617 * symtab.c (COMPLETION_LIST_ADD_SYMBOL)
5618 (MCOMPLETION_LIST_ADD_SYMBOL): Delete macros, replace with ...
5619 (completion_list_add_symbol, completion_list_add_msymbol):
5620 ... these new functions.
5621 (add_symtab_completions)
5622 (default_make_symbol_completion_list_break_on_1): Adjust.
5623
23732b1e
PA
56242017-06-27 Pedro Alves <palves@redhat.com>
5625
5626 * objfiles.c (get_objfile_bfd_data): Call bfd_alloc instead of
5627 bfd_zalloc. Call objfile_per_bfd_storage's ctor.
5628 (free_objfile_per_bfd_storage): Call objfile_per_bfd_storage's
5629 dtor.
5630 * objfiles.h (objfile_per_bfd_storage): Add ctor. Make
5631 'storage_obstack' field an auto_obstack. In-class initialize all
5632 non-bitfield fields. Make minsyms_read bool.
5633 * symfile.c (read_symbols): Adjust.
5634
a4d1e79a
AH
56352017-06-27 Alan Hayward <alan.hayward@arm.com>
5636
5637 * remote-sim.c (gdbsim_fetch_register): Use byte_vector.
5638 (gdbsim_store_register): Likewise.
5639
8268c778
PA
56402017-06-27 Pedro Alves <palves@redhat.com>
5641
5642 * c-exp.y (name_obstack): Now an auto_obstack.
5643 (yylex): Use auto_obstack::clear.
5644 (c_parse): Use auto_obstack::clear instead of reinitializing and
5645 freeing the obstack.
5646 * c-lang.c (evaluate_subexp_c): Use auto_obstack.
5647 * d-exp.y (name_obstack): Now an auto_obstack.
5648 (yylex): Use auto_obstack::clear.
5649 (d_parse): Use auto_obstack::clear instead of reinitializing and
5650 freeing the obstack.
5651 * dwarf2loc.c (fetch_const_value_from_synthetic_pointer): Use
5652 auto_obstack.
5653 * dwarf2read.c (create_addrmap_from_index)
5654 (dwarf2_build_psymtabs_hard)
5655 (update_enumeration_type_from_children): Likewise.
5656 * gdb_obstack.h (auto_obstack): New type.
5657 * go-exp.y (name_obstack): Now an auto_obstack.
5658 (build_packaged_name): Use auto_obstack::clear.
5659 (go_parse): Use auto_obstack::clear instead of reinitializing and
5660 freeing the obstack.
5661 * linux-tdep.c (linux_make_mappings_corefile_notes): Use
5662 auto_obstack.
5663 * printcmd.c (printf_wide_c_string, ui_printf): Use auto_obstack.
5664 * rust-exp.y (work_obstack): Now an auto_obstack.
5665 (rust_parse, rust_lex_tests): Use auto_obstack::clear instead of
5666 reinitializing and freeing the obstack.
5667 * utils.c (do_obstack_free, make_cleanup_obstack_free): Delete.
5668 (host_char_to_target): Use auto_obstack.
5669 * utils.h (make_cleanup_obstack_free): Delete declaration.
5670 * valprint.c (generic_emit_char, generic_printstr): Use
5671 auto_obstack.
5672
db665f42
SM
56732017-06-27 Simon Marchi <simon.marchi@ericsson.com>
5674
5675 * darwin-nat.c (darwin_check_new_threads): Don't handle dummy
5676 thread.
5677 (darwin_init_thread_list): Don't update dummy thread.
5678 (darwin_create_inferior, darwin_attach): Don't add a dummy thread.
5679
873c0814
SM
56802017-06-26 Simon Marchi <simon.marchi@ericsson.com>
5681
5682 * record-full.c (netorder16): Remove.
5683
8b5a7a6e
SM
56842017-06-26 Simon Marchi <simon.marchi@ericsson.com>
5685
5686 * common/diagnostics.h: Define macros for GCC.
5687 (DIAGNOSTIC_IGNORE_UNUSED_FUNCTION): New macro.
5688 * common/vec.h: Include diagnostics.h.
5689 (DIAGNOSTIC_IGNORE_UNUSED_VEC_FUNCTION): New macro.
5690 (DEF_VEC_I, DEF_VEC_P, DEF_VEC_O): Ignore -Wunused-function
5691 warning.
5692
d1435379
SM
56932017-06-26 Simon Marchi <simon.marchi@ericsson.com>
5694
5695 * common/diagnostics.h (DIAGNOSTIC_IGNORE_DEPRECATED_REGISTER):
5696 New macro.
5697 * ada-lex.l: Ignore deprecated register warnings.
5698
cc75e0fd
SM
56992017-06-25 Simon Marchi <simon.marchi@ericsson.com>
5700
5701 * main.c (get_init_files): Replace "SYSTEM_GDBINIT +
5702 datadir_len" with "&SYSTEM_GDBINIT[datadir_len]".
5703
07809eaf
SM
57042017-06-25 Simon Marchi <simon.marchi@ericsson.com>
5705
5706 * dtrace-probe.c (dtrace_process_dof_probe): Put semi-colon on
5707 its own line.
5708
f076f034
SM
57092017-06-25 Simon Marchi <simon.marchi@ericsson.com>
5710
5711 * nat/x86-dregs.c (x86_show_dr): Print registers one per line.
5712
0dd5cbc5
AH
57132017-06-23 Alan Hayward <alan.hayward@arm.com>
5714
5715 * xtensa-tdep.c (XTENSA_MAX_REGISTER_SIZE): Add.
5716 (xtensa_register_write_masked): Use XTENSA_MAX_REGISTER_SIZE.
5717 (xtensa_register_read_masked): Likewise.
5718
d4c6ce5b
SDJ
57192017-06-22 Sergio Durigan Junior <sergiodj@redhat.com>
5720
5721 * common/environ.c (gdb_environ::unset): Update comment.
5722
16892a03
AH
57232017-06-22 Alan Hayward <alan.hayward@arm.com>
5724
5725 * python/py-unwind.c (pyuw_sniffer): Allocate space for
5726 registers.
5727
d7dcbefc
AH
57282017-06-22 Alan Hayward <alan.hayward@arm.com>
5729
5730 * record-full.c (record_full_exec_insn): Use byte_vector.
5731
b30ff123
YQ
57322017-06-22 Yao Qi <yao.qi@linaro.org>
5733
5734 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Regenerated.
5735 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
5736
4fa847d7
AH
57372017-06-22 Alan Hayward <alan.hayward@arm.com>
5738
5739 * remote.c (cached_reg): Move from here...
5740 * regcache.h (cached_reg): ...to here.
5741 * python/py-unwind.c (struct reg_info): Remove.
5742 (cached_frame_info): Use cached_reg_t.
5743 (pyuw_prev_register): Likewise.
5744 (pyuw_sniffer): Use cached_reg_t and allocate registers.
5745 (pyuw_dealloc_cache): Free all registers.
5746
f4906a9a
PA
57472017-06-22 Pedro Alves <palves@redhat.com>
5748 Simon Marchi <simon.marchi@ericsson.com>
5749
5750 * unittests/environ-selftests.c (run_tests): Ignore -Wself-move
5751 warning.
5752 * common/diagnostics.h: New file.
5753
b45a1208
PA
57542017-06-22 Pedro Alves <palves@redhat.com>
5755
5756 * common/agent.h: Add include guards.
5757
e4da2c61
SM
57582017-06-21 Simon Marchi <simon.marchi@ericsson.com>
5759
5760 * target.h (struct target_ops) <to_xfer_partial>: Update doc to
5761 talk about addressable units instead of bytes.
5762
96160d60
SDJ
57632017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
5764
5765 * common/environ.c (gdb_environ::unset): Use '::iterator' instead
5766 of '::const_iterator'.
5767
9a6c7d9c
SDJ
57682017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
5769
5770 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
5771 'unittests/environ-selftests.c'.
5772 (SUBDIR_UNITTESTS_OBS): Add 'environ-selftests.o'.
5773 * charset.c (find_charset_names): Declare object 'iconv_env'.
5774 Update code to use 'iconv_env' object. Remove call to
5775 'free_environ'.
5776 * common/environ.c: Include <utility>.
5777 (make_environ): Delete function.
5778 (free_environ): Delete function.
5779 (gdb_environ::clear): New function.
5780 (gdb_environ::operator=): New function.
5781 (gdb_environ::get): Likewise.
5782 (environ_vector): Delete function.
5783 (set_in_environ): Delete function.
5784 (gdb_environ::set): New function.
5785 (unset_in_environ): Delete function.
5786 (gdb_environ::unset): New function.
5787 (gdb_environ::envp): Likewise.
5788 * common/environ.h: Include <vector>.
5789 (struct gdb_environ): Delete; transform into...
5790 (class gdb_environ): ... this class.
5791 (free_environ): Delete prototype.
5792 (init_environ, get_in_environ, set_in_environ, unset_in_environ,
5793 environ_vector): Likewise.
5794 * infcmd.c (run_command_1): Update code to call
5795 'envp' from 'gdb_environ' class.
5796 (environment_info): Update code to call methods from 'gdb_environ'
5797 class.
5798 (unset_environment_command): Likewise.
5799 (path_info): Likewise.
5800 (path_command): Likewise.
5801 * inferior.c (inferior::~inferior): Delete call to 'free_environ'.
5802 (inferior::inferior): Initialize 'environment' using the host's
5803 information.
5804 * inferior.h: Remove forward declaration of 'struct gdb_environ'.
5805 Include "environ.h".
5806 (class inferior) <environment>: Change type from 'struct
5807 gdb_environ' to 'gdb_environ'.
5808 * mi/mi-cmd-env.c (mi_cmd_env_path): Update code to call
5809 methods from 'gdb_environ' class.
5810 * solib.c (solib_find_1): Likewise
5811 * unittests/environ-selftests.c: New file.
5812
75c554cf
YQ
58132017-06-20 Yao Qi <yao.qi@linaro.org>
5814
5815 * features/i386/i386-linux.xml: Exchange the order of including
5816 32bit-linux.xml and 32bit-sse.xml.
5817 * features/i386/i386-linux.c: Regenerated.
5818
72ddacb7
YQ
58192017-06-20 Yao Qi <yao.qi@linaro.org>
5820
5821 * target-descriptions.c (tdesc_reg): Add ctor, dtor.
5822 Delete copy ctor and assignment operator.
5823 (tdesc_type): Likewise.
5824 (tdesc_feature): Likewise.
5825 (tdesc_free_reg): Remove.
5826 (tdesc_create_reg): Use new.
5827 (tdesc_free_type): Remove.
5828 (tdesc_create_vector): Use new.
5829 (tdesc_create_union): Likewise.
5830 (tdesc_create_flags): Likewise.
5831 (tdesc_create_enum): Likewise.
5832 (tdesc_free_feature): Delete.
5833 (free_target_description): Use delete.
5834
325c9fd4
JB
58352017-06-19 John Baldwin <jhb@FreeBSD.org>
5836
5837 * mips-tdep.c (print_gp_register_row): Don't error for unavailable
5838 registers.
5839
16b7a719
PA
58402017-06-19 Pedro Alves <palves@redhat.com>
5841
5842 * dwarf2read.c (write_psymtabs_to_index): Construct file_closer
5843 after gdb::unlinker.
5844
1c8e01c9
SDJ
58452017-06-19 Sergio Durigan Junior <sergiodj@redhat.com>
5846
5847 * mi/mi-cm-env.c (_initialize_mi_cmd_env): Use getenv instead of
5848 gdb_environ to access an environment variable.
5849
ffce45d2
TP
58502017-06-18 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
5851
5852 * nat/linux-ptrace.c (linux_fork_to_function): Add cast to
5853 gdb_byte*.
5854
1d4fbac9
SM
58552017-06-17 Simon Marchi <simon.marchi@ericsson.com>
5856
5857 * nat/fork-inferior.h (trace_start_error): Add ATTRIBUTE_PRINTF.
5858
8465943a
SM
58592017-06-17 Simon Marchi <simon.marchi@ericsson.com>
5860
5861 * configure: Re-generate.
5862 * warning.m4 (build_warnings): Add -Wno-mismatched-tags.
5863
3e019bdc
SM
58642017-06-17 Simon Marchi <simon.marchi@ericsson.com>
5865
5866 * configure: Re-generate.
5867 * warning.m4: Pass -Werror to compiler when checking for
5868 supported warning flags.
5869
cf0dd6f0
SM
58702017-06-17 Simon Marchi <simon.marchi@ericsson.com>
5871
5872 * Makefile.in (COMPILE.pre): Add "-x c++".
5873
6f98355c
YQ
58742017-06-16 Alan Hayward <alan.hayward@arm.com>
5875 Pedro Alves <palves@redhat.com>
5876 Yao Qi <yao.qi@linaro.org>
5877
5878 * defs.h (RequireLongest): New.
5879 (extract_integer): Declare function template.
5880 (extract_signed_integer): Remove the declaration, but define it
5881 static inline.
5882 (extract_unsigned_integer): Likewise.
5883 (store_integer): Declare function template.
5884 (store_signed_integer): Remove the declaration, but define it
5885 static inline.
5886 (store_unsigned_integer): Likewise.
5887 * findvar.c (extract_integer): New function template.
5888 (extract_signed_integer): Remove.
5889 (extract_unsigned_integer): Remove.
5890 (extract_integer<LONGEST>, extract_integer<ULONGEST>): Explicit
5891 instantiations.
5892 (store_integer): New function template.
5893 (store_signed_integer): Remove.
5894 (store_unsigned_integer): Remove.
5895 (store_integer): Explicit instantiations.
5896 * regcache.c (regcache_raw_read_signed): Update.
5897 (regcache::raw_read): New function.
5898 (regcache::raw_read_signed): Remove.
5899 (regcache::raw_read_unsigned): Remove.
5900 (regcache_raw_read_unsigned): Update.
5901 (regcache_raw_write_unsigned): Update.
5902 (regcache::raw_write_signed): Remove.
5903 (regcache::raw_write): New function.
5904 (regcache_cooked_read_signed): Update.
5905 (regcache::raw_write_unsigned): Remove.
5906 (regcache::cooked_read_signed): Remove.
5907 (regcache_cooked_read_unsigned): Update.
5908 (regcache::cooked_read_unsigned): Remove.
5909 (regcache_cooked_write_signed): Update.
5910 (regcache_cooked_write_unsigned): Update.
5911 * regcache.h (regcache) <raw_read_signed>: Remove.
5912 <raw_write_signed, raw_read_unsigned, raw_write_unsigned>: Remove.
5913 <raw_read, raw_write>: New.
5914 <cooked_read_signed, cooked_write_signed>: Remove.
5915 <cooked_write_unsigned, cooked_read_unsigned>: Remove.
5916 <cooked_read, cooked_write>: New.
5917 * sh64-tdep.c (sh64_pseudo_register_read): Update.
5918 (sh64_pseudo_register_write): Update.
5919
a87dc45a
AK
59202017-06-16 Anton Kolesov <anton.kolesov@synopsys.com>
5921
5922 * arc-tdep.c (arc_disassembler_options): New variable.
5923 (arc_gdbarch_init): Set and use it. Use arc_delayed_print_insn instead
5924 of default_print_insn.
5925 (arc_delayed_print_insn): Set info->section when needed,
5926 use default_print_insn to retrieve a disassembler.
5927
45159d6a
SDJ
59282017-06-14 Sergio Durigan Junior <sergiodj@redhat.com>
5929
5930 PR gdb/21574
5931 * infcmd.c (_initialize_infcmd): Expand "help run" documentation
5932 to mention $SHELL and startup-with-shell.
5933
b46c4cf0
MF
59342017-06-14 Max Filippov <jcmvbkbc@gmail.com>
5935
5936 * MAINTAINERS: Move Maxim Grigoriev to the Past Maintainers.
5937
6394c606
YQ
59382017-06-14 Yao Qi <yao.qi@linaro.org>
5939
5940 * aarch64-tdep.c (aarch64_gdb_print_insn): Call
5941 default_print_insn instead of print_insn_aarch64.
5942 * arm-tdep.c (gdb_print_insn_arm): Call
5943 default_print_insn instead of print_insn_big_arm
5944 and print_insn_little_arm.
5945 * i386-tdep.c (i386_print_insn): Call default_print_insn
5946 instead of print_insn_i386.
5947 * ia64-tdep.c (ia64_print_insn): Call
5948 default_print_insn instead of print_insn_ia64.
5949 * mips-tdep.c (gdb_print_insn_mips): Call
5950 default_print_insn instead of print_insn_big_mips
5951 and print_insn_little_mips.
5952 * spu-tdep.c (gdb_print_insn_spu): Call default_print_insn
5953 instead of print_insn_spu.
5954
d5722aa2
PA
59552017-06-14 Pedro Alves <palves@redhat.com>
5956
5957 * ada-lang.c: Include "common/byte-vector.h".
5958 (ada_value_primitive_packed_val): Use gdb::byte_vector.
5959 * charset.c (wchar_iterator::iterate): Resize the vector instead
5960 of reserving it.
5961 * common/byte-vector.h: Include "common/def-vector.h".
5962 (wchar_iterator::m_out): Now a gdb::def_vector<gdb_wchar_t>.
5963 * cli/cli-dump.c: Include "common/byte-vector.h".
5964 (dump_memory_to_file, restore_binary_file): Use gdb::byte_vector.
5965 * common/byte-vector.h: New file.
5966 * common/def-vector.h: New file.
5967 * common/default-init-alloc.h: New file.
5968 * dwarf2loc.c: Include "common/byte-vector.h".
5969 (rw_pieced_value): Use gdb::byte_vector, and resize the vector
5970 instead of reserving it.
5971 * dwarf2read.c: Include "common/byte-vector.h".
5972 (data_buf::m_vec): Now a gdb::byte_vector.
5973 * gdb_regex.c: Include "common/def-vector.h".
5974 (compiled_regex::compiled_regex): Use gdb::def_vector<char>.
5975 * mi/mi-main.c: Include "common/byte-vector.h".
5976 (mi_cmd_data_read_memory): Use gdb::byte_vector.
5977 * printcmd.c: Include "common/byte-vector.h".
5978 (print_scalar_formatted): Use gdb::byte_vector.
5979 * valprint.c: Include "common/byte-vector.h".
5980 (maybe_negate_by_bytes, print_decimal_chars): Use
5981 gdb::byte_vector.
5982
01ec7a27
SM
59832017-06-13 Simon Marchi <simon.marchi@ericsson.com>
5984
5985 * darwin-nat.c: Include "nat/fork-inferior.h".
5986
848d9074
SM
59872017-06-13 Simon Marchi <simon.marchi@ericsson.com>
5988
5989 * configure.nat: Factor out Darwin bits that are not
5990 architecture-specific. Add fork-inferior.o.
5991
3b912944
SM
59922017-06-13 Simon Marchi <simon.marchi@ericsson.com>
5993
5994 * configure.nat: Factor out AIX bits that are not
5995 architecture-specific. Add fork-inferior.o.
5996
55acdf22
AA
59972017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5998
5999 * dwarf2loc.c (rw_pieced_value): New. Merge logic from...
6000 (read_pieced_value, write_pieced_value): ...here. Reduce to
6001 wrappers that just call rw_pieced_value.
6002
f65e2044
AA
60032017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6004
6005 * dwarf2loc.c (write_pieced_value): When writing the data for a
6006 memory piece, use write_memory_with_notification instead of
6007 write_memory.
6008
23f945bf
AA
60092017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6010
6011 * valops.c (read_value_memory): Change embedded_offset to
6012 represent a bit offset instead of a byte offset.
6013 * value.h (read_value_memory): Adjust comment.
6014
f236533e
AA
60152017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6016
6017 * dwarf2loc.c (read_pieced_value): Remove unnecessary variables
6018 dest_offset_bits and source_offset_bits.
6019 (write_pieced_value): Likewise.
6020
65d84b76
AA
60212017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6022
6023 * dwarf2loc.c (read_pieced_value): Respect the piece offset, as
6024 given by DW_OP_bit_piece.
6025 (write_pieced_value): Likewise.
6026
242d31ab
AA
60272017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6028
6029 * dwarf2loc.c (read_pieced_value): Move the buffer allocation and
6030 some other preparations to the places where sufficient information
6031 is available.
6032 (write_pieced_value): Likewise.
6033
03c8af18
AA
60342017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6035
6036 * dwarf2loc.c (bits_to_bytes): New function.
6037 (read_pieced_value): Fix offset calculations for register pieces
6038 on big-endian targets.
6039 (write_pieced_value): Likewise.
6040
840989c1
AA
60412017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6042
6043 * dwarf2loc.c (read_pieced_value): Remove buffer_size variable.
6044 (write_pieced_value): Likewise.
6045
359b19bb
AA
60462017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6047
6048 * dwarf2loc.c (write_pieced_value): When writing to a bit-field,
6049 transfer the source value's least significant bits, instead of its
6050 lowest-addressed ones. Rename type_len to max_offset.
6051 (read_pieced_value): Mirror above changes to write_pieced_value as
6052 applicable.
6053
07c9ca3b
AA
60542017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6055
6056 * dwarf2loc.c (write_pieced_value): In DWARF_VALUE_MEMORY,
6057 truncate full bytes from dest_offset_bits before using it as an
6058 offset into the buffer.
6059
f1cc9874
AA
60602017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6061
6062 * dwarf2loc.c (write_pieced_value): Include transfer size in
6063 byte-wise check.
6064
cdaac320
AA
60652017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6066
6067 * dwarf2loc.c (write_pieced_value): Fix copy/paste error in the
6068 calculation of this_size.
6069
af547a96
AA
60702017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6071
6072 * dwarf2loc.c (read_pieced_value): Respect parent value's offset
6073 when targeting a bit-field.
6074 (write_pieced_value): Likewise.
6075
ddd7882a
AA
60762017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6077
6078 * dwarf2loc.c (struct piece_closure) <addr_size>: Remove field.
6079 (allocate_piece_closure): Drop addr_size parameter.
6080 (dwarf2_evaluate_loc_desc_full): Adjust call to
6081 allocate_piece_closure.
6082
e9352324
AA
60832017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6084
6085 PR gdb/21226
6086 * dwarf2loc.c (read_pieced_value): Anchor stack value pieces at
6087 the LSB end, independent of endianness.
6088
d5d1163e
AA
60892017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6090
6091 * dwarf2loc.c (write_pieced_value): Fix order of calculations for
6092 size capping.
6093
032bb6ea
YQ
60942017-06-13 Yao Qi <yao.qi@linaro.org>
6095
6096 * mips-linux-nat.c: Move include features/mips*-linux.c to
6097 mips-linux-tdep.c.
6098 (_initialize_mips_linux_nat): Move initialize_tdesc_mips* calls
6099 to mips-linux-tdep.c.
6100 * mips-linux-tdep.c: Include features/mips*-linux.c
6101 (_initialize_mips_linux_tdep): Call initialize_tdesc_mips*
6102 functions.
6103 * mips-linux-tdep.h (tdesc_mips_linux): Declare.
6104 (tdesc_mips_dsp_linux, tdesc_mips64_linux): Declare.
6105 (tdesc_mips64_dsp_linux): Declare.
6106
f12f6bad
TT
61072017-06-12 Tom Tromey <tom@tromey.com>
6108
6109 * valprint.h (val_print_type_code_int): Remove.
6110 * valprint.c (generic_val_print_int): Always call
6111 val_print_scalar_formatted.
6112 (val_print_type_code_int): Remove.
6113 * printcmd.c (print_scalar_formatted): Handle options->format==0.
6114 * f-valprint.c (f_val_print): Use val_print_scalar_formatted.
6115 * c-valprint.c (c_val_print_int): Use val_print_scalar_formatted.
6116 * ada-valprint.c (ada_val_print_num): Use
6117 val_print_scalar_formatted.
6118
d9109c80
TT
61192017-06-12 Tom Tromey <tom@tromey.com>
6120
6121 * printcmd.c (print_scalar_formatted): Unify the two switches.
6122 Don't convert scalars to LONGEST.
6123
4ac0cb1c
TT
61242017-06-12 Tom Tromey <tom@tromey.com>
6125
6126 PR exp/16225:
6127 * valprint.h (print_decimal_chars): Update.
6128 * valprint.c (maybe_negate_by_bytes): New function.
6129 (print_decimal_chars): Add "is_signed" argument.
6130 * printcmd.c (print_scalar_formatted): Update.
6131
30a25466
TT
61322017-06-12 Tom Tromey <tom@tromey.com>
6133
6134 PR exp/16225:
6135 * valprint.h (print_binary_chars, print_hex_chars): Update.
6136 * valprint.c (val_print_type_code_int): Update.
6137 (print_binary_chars): Add "zero_pad" argument.
6138 (emit_octal_digit): New function.
6139 (print_octal_chars): Don't zero-pad.
6140 (print_decimal_chars): Likewise.
6141 (print_hex_chars): Add "zero_pad" argument.
6142 * sh64-tdep.c (sh64_do_fp_register): Update.
6143 * regcache.c (regcache::dump): Update.
6144 * printcmd.c (print_scalar_formatted): Update.
6145 * infcmd.c (default_print_one_register_info): Update.
6146
b3464d03
PA
61472017-06-12 Pedro Alves <palves@redhat.com>
6148 Alan Hayward <alan.hayward@arm.com>
6149
6150 * mips-tdep.c (MAX_MIPS_ABI_REGSIZE): New.
6151 (mips_eabi_push_dummy_call): Rename local 'regsize' to
6152 'abi_regsize'. Rename local array 'valbuf' to 'ref_valbuf', and
6153 use MAX_MIPS_ABI_REGSIZE instead of MAX_REGISTER_SIZE to size it.
6154 Assert that abi_regsize bytes fit in 'ref_valbuf'.
6155
4b76cda9
PA
61562017-06-12 Pedro Alves <palves@redhat.com>
6157
6158 * dwarf2read.c (mapped_symtab::data): Now a vector of
6159 symtab_index_entry instead of vector of
6160 std::unique_ptr<symtab_index_entry>. All users adjusted to check
6161 whether an element's name is NULL instead of checking whether the
6162 element itself is NULL.
6163 (find_slot): Change return type. Adjust.
6164 (hash_expand, , add_index_entry, uniquify_cu_indices)
6165 (write_hash_table): Adjust.
6166
e8f8bcb3
PA
61672017-06-12 Pedro Alves <palves@redhat.com>
6168
6169 * dwarf2read.c (recursively_count_psymbols): New function.
6170 (write_psymtabs_to_index): Call it to compute number of psyms and
6171 pass estimate size of psyms_seen to unordered_set's ctor.
6172
70a1152b
PA
61732017-06-12 Pedro Alves <palves@redhat.com>
6174
6175 * dwarf2read.c (write_hash_table): Check if key already exists
6176 before emplacing.
6177
c2f134ac
PA
61782017-06-12 Pedro Alves <palves@redhat.com>
6179
6180 * dwarf2read.c (data_buf::append_space): Rename to...
6181 (data_buf::grow): ... this, and make private. Adjust all callers.
6182 (data_buf::append_uint): New method.
6183 (add_address_entry, write_one_signatured_type)
6184 (write_psymtabs_to_index): Use it.
6185
a81e6d4d
PA
61862017-06-12 Pedro Alves <palves@redhat.com>
6187
6188 * dwarf2read.c (file_write(FILE *, const void *, size_t)): Delete.
6189 (file_write (FILE *, const std::vector<Elem>&)): Delete.
6190 (data_buf::file_write): Call ::fwrite directly.
6191
6fd931f2
PA
61922017-06-12 Pedro Alves <palves@redhat.com>
6193
6194 * dwarf2read.c (uniquify_cu_indices): Use std::unique and
6195 std::vector::erase.
6196
bc8f2430
JK
61972017-06-12 Jan Kratochvil <jan.kratochvil@redhat.com>
6198
6199 Code cleanup: C++ify .gdb_index producer.
6200 * dwarf2read.c: Include <unordered_set> and <unordered_map>.
6201 (MAYBE_SWAP) [WORDS_BIGENDIAN]: Cast to offset_type.
6202 (struct strtab_entry, hash_strtab_entry, eq_strtab_entry)
6203 (create_strtab, add_string): Remove.
6204 (file_write, data_buf): New.
6205 (struct symtab_index_entry): Use std::vector for cu_indices.
6206 (struct mapped_symtab): Use std::vector for data.
6207 (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry)
6208 (create_symbol_hash_table, create_mapped_symtab, cleanup_mapped_symtab):
6209 Remove.
6210 (find_slot): Change return type. Update it to the new data structures.
6211 (hash_expand, add_index_entry): Update it to the new data structures.
6212 (offset_type_compare): Remove.
6213 (uniquify_cu_indices): Update it to the new data structures.
6214 (c_str_view, c_str_view_hasher, vector_hasher): New.
6215 (add_indices_to_cpool): Remove.
6216 (write_hash_table): Update it to the new data structures.
6217 (struct psymtab_cu_index_map, hash_psymtab_cu_index)
6218 (eq_psymtab_cu_index): Remove.
6219 (psym_index_map): New typedef.
6220 (struct addrmap_index_data): Change addr_obstack pointer to data_buf
6221 reference and std::unordered_map for cu_index_htab.
6222 (add_address_entry, add_address_entry_worker, write_address_map)
6223 (write_psymbols): Update it to the new data structures.
6224 (write_obstack): Remove.
6225 (struct signatured_type_index_data): Change types_list to a data_buf
6226 reference and psyms_seen to a std::unordered_set reference.
6227 (write_one_signatured_type, recursively_write_psymbols)
6228 (write_psymtabs_to_index): Update it to the new data structures.
6229
c4dcb155
SM
62302017-06-11 Simon Marchi <simon.marchi@ericsson.com>
6231
6232 * NEWS (Changes since GDB 8.0): Announce {set,show} debug
6233 separate-debug-file commands.
6234 * symfile.h (separate_debug_file_debug): New global.
6235 * symfile.c (separate_debug_file_debug): New global.
6236 (separate_debug_file_exists, find_separate_debug_file): Add
6237 debug output.
6238 (_initialize_symfile): Add "set debug separate-debug-file"
6239 command.
6240 * build-id.c (build_id_to_debug_bfd,
6241 find_separate_debug_file_by_buildid): Add debug output.
6242
6d45d4b4
SM
62432017-06-10 Simon Marchi <simon.marchi@polymtl.ca>
6244
6245 * gdbarch.sh (displaced_step_free_closure): Remove.
6246 * gdbarch.h, gdbarch.c: Re-generate.
6247 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't set
6248 displaced_step_free_closure.
6249 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
6250 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
6251 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
6252 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
6253 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
6254 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
6255 * arch-utils.h (simple_displaced_step_free_closure): Remove.
6256 * arch-utils.c (simple_displaced_step_free_closure): Remove.
6257 * infrun.c (displaced_step_clear): Call xfree instead of
6258 gdbarch_displaced_step_free_closure.
6259
2f91880f
SDJ
62602017-06-08 Sergio Durigan Junior <sergiodj@redhat.com>
6261
6262 * common/common-utils.c (stringify_argv): Check for "arg[0] !=
6263 NULL".
6264
b8b6e72f
AH
62652017-06-08 Alan Hayward <alan.hayward@arm.com>
6266
6267 * mn10300-tdep.c (MN10300_MAX_REGISTER_SIZE): Add.
6268 (mn10300_extract_return_value): Use MN10300_MAX_REGISTER_SIZE.
6269 (mn10300_push_dummy_call): Likewise.
6270
5369082e
AH
62712017-06-08 Alan Hayward <alan.hayward@arm.com>
6272
6273 * mi/mi-main.c (register_changed_p): Use value_contents_eq.
6274
ff4ca5ac
AH
62752017-06-08 Alan Hayward <alan.hayward@arm.com>
6276
6277 * mi/mi-main.c (register_changed_p): Use cooked_read_value.
6278
aefd8b33
SDJ
62792017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6280
6281 * NEWS (Changes since GDB 8.0): Announce that GDBserver is now
6282 able to start inferiors using a shell.
6283 (New remote packets): Announce new packet "QStartupWithShell".
6284 * remote.c: Add PACKET_QStartupWithShell.
6285 (extended_remote_create_inferior): Handle new
6286 PACKET_QStartupWithShell.
6287 (remote_protocol_features) <QStartupWithShell>: New entry for
6288 PACKET_QStartupWithShell.
6289 (_initialize_remote): Call "add_packet_config_cmd" for
6290 QStartupShell.
6291
2090129c
SDJ
62922017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6293 Pedro Alves <palves@redhat.com>
6294
6295 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-inferior.h"
6296 and "nat/fork-inferior.h".
6297 * common/common-inferior.h: New file, with contents from
6298 "gdb/inferior.h".
6299 * commom/common-utils.c: Include "common-utils.h".
6300 (stringify_argv): New function.
6301 * common/common-utils.h (stringify_argv): New prototype.
6302 * configure.nat: Add "fork-inferior.o" as a dependency for
6303 "*linux*", "fbsd*" and "nbsd*" hosts.
6304 * corefile.c (get_exec_file): Update comment.
6305 * darwin-nat.c (darwin_ptrace_him): Call "gdb_startup_inferior"
6306 instead of "startup_inferior".
6307 (darwin_create_inferior): Call "add_thread_silent" after
6308 "fork_inferior".
6309 * fork-child.c: Cleanup unnecessary includes.
6310 (SHELL_FILE): Move to "common/common-fork-child.c".
6311 (environ): Likewise.
6312 (exec_wrapper): Initialize.
6313 (get_exec_wrapper): New function.
6314 (breakup_args): Move to "common/common-fork-child.c"; rename to
6315 "breakup_args_for_exec".
6316 (escape_bang_in_quoted_argument): Move to
6317 "common/common-fork-child.c".
6318 (saved_ui): New variable.
6319 (prefork_hook): New function.
6320 (postfork_hook): Likewise.
6321 (postfork_child_hook): Likewise.
6322 (gdb_startup_inferior): Likewise.
6323 (fork_inferior): Move to "common/common-fork-child.c". Update
6324 function to support gdbserver.
6325 (startup_inferior): Likewise.
6326 * gdbcore.h (get_exec_file): Remove declaration.
6327 * gnu-nat.c (gnu_create_inferior): Call "gdb_startup_inferior"
6328 instead of "startup_inferior". Call "add_thread_silent" after
6329 "fork_inferior".
6330 * inf-ptrace.c: Include "nat/fork-inferior.h" and "utils.h".
6331 (inf_ptrace_create_inferior): Call "gdb_startup_inferior"
6332 instead of "startup_inferior". Call "add_thread_silent" after
6333 "fork_inferior".
6334 * inferior.h: Include "common-inferior.h".
6335 (trace_start_error): Move to "common/common-utils.h".
6336 (trace_start_error_with_name): Likewise.
6337 (fork_inferior): Move prototype to "nat/fork-inferior.h".
6338 (startup_inferior): Likewise.
6339 (gdb_startup_inferior): New prototype.
6340 * nat/fork-inferior.c: New file, with contents from "fork-child.c".
6341 * nat/fork-inferior.h: New file.
6342 * procfs.c (procfs_init_inferior): Call "gdb_startup_inferior"
6343 instead of "startup_inferior". Call "add_thread_silent" after
6344 "fork_inferior".
6345 * target.h (target_terminal_init): Move prototype to
6346 "target/target.h".
6347 (target_terminal_inferior): Likewise.
6348 (target_terminal_ours): Likewise.
6349 * target/target.h (target_terminal_init): New prototype, moved
6350 from "target.h".
6351 (target_terminal_inferior): Likewise.
6352 (target_terminal_ours): Likewise.
6353 * utils.c (gdb_flush_out_err): New function.
6354
043a4934
SDJ
63552017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6356
6357 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-gdbthread.h".
6358 * common/common-gdbthread.h: New file, with parts from
6359 "gdb/gdbthread.h".
6360 * gdbthread.h: Include "common-gdbthread.h".
6361 (switch_to_thread): Moved to "common/common-gdbthread.h".
6362
15652511
SDJ
63632017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6364
6365 * Makefile.in (SFILES): Add "common/job-control.c".
6366 (HFILES_NO_SRCDIR): Add "common/job-control.h".
6367 (COMMON_OBS): Add "job-control.o".
6368 * common/job-control.c: New file, with contents from
6369 "gdb/inflow.c".
6370 * common/job-control.h: New file, with contents from "terminal.h".
6371 * fork-child.c: Include "job-control.h".
6372 * inflow.c: Include "job-control.h".
6373 (gdb_setpgid): Move to "common/common-inflow.c".
6374 (_initialize_inflow): Move setting of "job_control" to
6375 "handle_job_control".
6376 * terminal.h (job_control): Moved to "common/common-terminal.h".
6377 (gdb_setpgid): Likewise.
6378 * top.c: Include "job_control.h".
6379 * utils.c: Likewise.
6380 (job_control): Moved to "job-control.c".
6381
2d7cc5c7
PA
63822017-06-07 Pedro Alves <palves@redhat.com>
6383
6384 * Makefile.in (SFILES): Add gdb_regex.c.
6385 (COMMON_OBS): Add gdb_regex.o.
6386 * ada-lang.c (ada_add_standard_exceptions)
6387 (ada_add_exceptions_from_frame, name_matches_regex)
6388 (ada_add_global_exceptions, ada_exceptions_list_1): Change regex
6389 parameter type to compiled_regex. Adjust.
6390 (ada_exceptions_list): Use compiled_regex.
6391 * break-catch-throw.c (exception_catchpoint::pattern): Now a
6392 std::unique_ptr<compiled_regex>.
6393 (exception_catchpoint::~exception_catchpoint): Remove regfree
6394 call.
6395 (check_status_exception_catchpoint): Adjust to use compiled_regex.
6396 (handle_gnu_v3_exceptions): Adjust to use compiled_regex.
6397 * breakpoint.c (solib_catchpoint::compiled): Now a
6398 std::unique_ptr<compiled_regex>.
6399 (solib_catchpoint::~solib_catchpoint): Remove regfree call.
6400 (check_status_catch_solib): Adjust to use compiled_regex.
6401 (add_solib_catchpoint): Adjust to use compiled_regex.
6402 * cli/cli-cmds.c (apropos_command): Use compiled_regex.
6403 * cli/cli-decode.c (apropos_cmd): Change regex parameter to
6404 compiled_regex reference. Adjust to use it.
6405 * cli/cli-decode.h: Remove struct re_pattern_buffer forward
6406 declaration. Include "gdb_regex.h".
6407 (apropos_cmd): Change regex parameter to compiled_regex reference.
6408 * gdb_regex.c: New file.
6409 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Delete
6410 declarations.
6411 (class compiled_regex): New.
6412 * linux-tdep.c: Include "common/gdb_optional.h".
6413 (struct mapping_regexes): New, factored out from
6414 mapping_is_anonymous_p, and adjusted to use compiled_regex.
6415 (mapping_is_anonymous_p): Use mapping_regexes wrapped in a
6416 gdb::optional and remove cleanups. Adjust to compiled_regex.
6417 * probe.c: Include "common/gdb_optional.h".
6418 (collect_probes): Use compiled_regex and gdb::optional and remove
6419 cleanups.
6420 * skip.c: Include "common/gdb_optional.h".
6421 (skiplist_entry::compiled_function_regexp): Now a
6422 gdb::optional<compiled_regex>.
6423 (skiplist_entry::compiled_function_regexp_is_valid): Delete field.
6424 (free_skiplist_entry): Remove regfree call.
6425 (compile_skip_regexp, skip_rfunction_p): Adjust to use
6426 compiled_regex and gdb::optional.
6427 * symtab.c: Include "common/gdb_optional.h".
6428 (search_symbols): Use compiled_regex and gdb::optional.
6429 * utils.c (do_regfree_cleanup, make_regfree_cleanup)
6430 (get_regcomp_error, compile_rx_or_error): Delete. Some bits moved
6431 to gdb_regex.c.
6432
50d6adef
AH
64332017-06-07 Alan Hayward <alan.hayward@arm.com>
6434
6435 * regcache.c (regcache::save): Avoid buffer use.
6436 (regcache::dump): Likewise.
6437
4a8a33c8
AH
64382017-06-07 Alan Hayward <alan.hayward@arm.com>
6439
6440 * sh-tdep.c (sh_pseudo_register_read): Remove
6441 MAX_REGISTER_SIZE.
6442 (sh_pseudo_register_write): Likewise.
6443 * sh64-tdep.c (sh64_pseudo_register_read): Likewise.
6444 (sh64_pseudo_register_write): Likewise
6445
d1be909e
AH
64462017-06-07 Alan Hayward <alan.hayward@arm.com>
6447
6448 * aarch64-tdep.c (aarch64_store_return_value): Use
6449 V_REGISTER_SIZE.
6450 (aarch64_pseudo_read_value): Likewise.
6451 (aarch64_pseudo_write): Likewise.
6452
f4a65042
YQ
64532017-06-06 Yao Qi <yao.qi@linaro.org>
6454
6455 * regformats/regdef.h (set_register_cache): Remove the
6456 declaration.
6457
9f7fb0aa
AH
64582017-06-06 Alan Hayward <alan.hayward@arm.com>
6459
6460 * frame.c (frame_unwind_register_signed): Use
6461 frame_unwind_register_value.
6462
e1e01040
PA
64632017-06-06 Pedro Alves <palves@redhat.com>
6464
6465 PR breakpoints/21553
6466 * breakpoint.c (create_breakpoints_sal_default)
6467 (init_breakpoint_sal, create_breakpoint_sal): Use
6468 gdb::unique_xmalloc_ptr for string parameters.
6469 (create_breakpoint): Constify 'extra_string' and 'cond_string'
6470 parameters. Replace cleanups with gdb::unique_xmalloc_ptr.
6471 (base_breakpoint_create_breakpoints_sal)
6472 (bkpt_create_breakpoints_sal, tracepoint_create_breakpoints_sal)
6473 (strace_marker_create_breakpoints_sal)
6474 (create_breakpoints_sal_default): Use gdb::unique_xmalloc_ptr for
6475 string parameters.
6476 * breakpoint.h (breakpoint_ops::create_breakpoints_sal): Use
6477 gdb::unique_xmalloc_ptr for string parameters.
6478 (create_breakpoint): Constify 'extra_string' and 'cond_string'
6479 parameters.
6480
fbe654c8
AH
64812017-06-06 Alan Hayward <alan.hayward@arm.com>
6482
6483 * alpha-tdep.c (alpha_register_to_value): Use
6484 get_frame_register_value.
6485 (alpha_value_to_register): Use ALPHA_REGISTER_SIZE.
6486
ae0d01d6
AH
64872017-06-06 Alan Hayward <alan.hayward@arm.com>
6488
6489 * ia64-tdep.c (IA64_MAX_FP_REGISTER_SIZE) Add.
6490 (ia64_register_to_value): Use IA64_MAX_FP_REGISTER_SIZE.
6491 (ia64_value_to_register): Likewise.
6492 (ia64_extract_return_value): Likewise.
6493 (ia64_store_return_value): Likewise.
6494 (ia64_push_dummy_call): Likewise.
6495
49cf576c
JB
64962017-06-04 Joel Brobecker <brobecker@adacore.com>
6497
6498 GDB 8.0 released.
6499
26b6a6ab
SM
65002017-06-03 Simon Marchi <simon.marchi@ericsson.com>
6501
6502 * x86-linux-nat.c (struct arch_lwp_info): Remove.
6503
22827c51
SM
65042017-06-03 Simon Marchi <simon.marchi@polymtl.ca>
6505
6506 * linux-nat.c (linux_nat_post_attach_wait): Remove FIRST
6507 parameter.
6508 (linux_nat_attach): Adjust call to linux_nat_post_attach_wait.
6509
0e05cf3a
SM
65102017-06-02 Simon Marchi <simon.marchi@ericsson.com>
6511
6512 * event-loop.c (poll_timers): Unallocate timer using delete
6513 instead of xfree.
6514
c1fc2657
SM
65152017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
6516
6517 * breakpoint.h (struct breakpoint_ops) <dtor>: Remove.
6518 (struct breakpoint) <~breakpoint>: New.
6519 (struct watchpoint): Inherit from breakpoint.
6520 <~watchpoint>: New.
6521 <base>: Remove.
6522 (struct tracepoint): Inherit from breakpoint.
6523 <base>: Remove.
6524 * breakpoint.c (longjmp_breakpoint_ops): Remove.
6525 (struct longjmp_breakpoint): Inherit from breakpoint.
6526 <~longjmp_breakpoint>: New.
6527 <base>: Remove.
6528 (new_breakpoint_from_type): Remove casts.
6529 (watchpoint_in_thread_scope): Remove reference to base field.
6530 (watchpoint_del_at_next_stop): Likewise.
6531 (update_watchpoint): Likewise.
6532 (watchpoint_check): Likewise.
6533 (bpstat_check_watchpoint): Likewise.
6534 (set_longjmp_breakpoint): Likewise.
6535 (struct fork_catchpoint): Inherit from breakpoint.
6536 <base>: Remove.
6537 (struct solib_catchpoint): Inherit from breakpoint.
6538 <~solib_catchpoint>: New.
6539 <base>: Remove.
6540 (dtor_catch_solib): Change to ...
6541 (solib_catchpoint::~solib_catchpoint): ... this.
6542 (breakpoint_hit_catch_solib): Remove reference to base field.
6543 (add_solib_catchpoint): Likewise.
6544 (create_fork_vfork_event_catchpoint): Likewise.
6545 (struct exec_catchpoint): Inherit from breakpoint.
6546 <~exec_catchpoint>: New.
6547 <base>: Remove.
6548 (dtor_catch_exec): Change to ...
6549 (exec_catchpoint::~exec_catchpoint): ... this.
6550 (dtor_watchpoint): Change to ...
6551 (watchpoint::~watchpoint): ... this.
6552 (watch_command_1): Remove reference to base field.
6553 (catch_exec_command_1): Likewise.
6554 (base_breakpoint_dtor): Change to ...
6555 (breakpoint::~breakpoint): ... this.
6556 (base_breakpoint_ops): Remove dtor field value.
6557 (longjmp_bkpt_dtor): Change to ...
6558 (longjmp_breakpoint::~longjmp_breakpoint): ... this.
6559 (strace_marker_create_breakpoints_sal): Remove reference to base
6560 field.
6561 (delete_breakpoint): Don't manually call breakpoint destructor.
6562 (create_tracepoint_from_upload): Remove reference to base field.
6563 (trace_pass_set_count): Likewise.
6564 (initialize_breakpoint_ops): Don't initialize
6565 momentary_breakpoint_ops, don't set dtors.
6566 * ada-lang.c (struct ada_catchpoint): Inherit from breakpoint.
6567 <~ada_catchpoint>: New.
6568 <base>: Remove.
6569 (create_excep_cond_exprs): Remove reference to base field.
6570 (dtor_exception): Change to ...
6571 (ada_catchpoint::~ada_catchpoint): ... this.
6572 (dtor_catch_exception): Remove.
6573 (dtor_catch_exception_unhandled): Remove.
6574 (dtor_catch_assert): Remove.
6575 (create_ada_exception_catchpoint): Remove reference to base
6576 field.
6577 (initialize_ada_catchpoint_ops): Don't set dtors.
6578 * break-catch-sig.c (struct signal_catchpoint): Inherit from
6579 breakpoint.
6580 <~signal_catchpoint>: New.
6581 <base>: Remove.
6582 (signal_catchpoint_dtor): Change to ...
6583 (signal_catchpoint::~signal_catchpoint): ... this.
6584 (create_signal_catchpoint): Remove reference to base field.
6585 (initialize_signal_catchpoint_ops): Don't set dtor.
6586 * break-catch-syscall.c (struct syscall_catchpoint): Inherit
6587 from breakpoint.
6588 <~syscall_catchpoint>: New.
6589 <base>: Remove.
6590 (dtor_catch_syscall): Change to ...
6591 (syscall_catchpoint::~syscall_catchpoint): ... this.
6592 (create_syscall_event_catchpoint): Remove reference to base
6593 field.
6594 (initialize_syscall_catchpoint_ops): Don't set dtor.
6595 * break-catch-throw.c (struct exception_catchpoint): Inherit
6596 from breakpoint.
6597 <~exception_catchpoint>: New.
6598 <base>: Remove.
6599 (dtor_exception_catchpoint): Change to ...
6600 (exception_catchpoint::~exception_catchpoint): ... this.
6601 (handle_gnu_v3_exceptions): Remove reference to base field.
6602 (initialize_throw_catchpoint_ops): Don't set dtor.
6603 * ctf.c (ctf_get_traceframe_address): Remove reference to base
6604 field.
6605 * remote.c (remote_get_tracepoint_status): Likewise.
6606 * tracefile-tfile.c (tfile_get_traceframe_address): Likewise.
6607 * tracefile.c (tracefile_fetch_registers): Likewise.
6608 * tracepoint.c (actions_command): Likewise.
6609 (validate_actionline): Likewise.
6610 (tfind_1): Likewise.
6611 (get_traceframe_location): Likewise.
6612 (find_matching_tracepoint_location): Likewise.
6613 (parse_tracepoint_status): Likewise.
6614 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
6615
3b0871f4
SM
66162017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
6617
6618 * breakpoint.c (struct longjmp_breakpoint): New struct.
6619 (is_tracepoint_type): Change return type to bool.
6620 (is_longjmp_type): New function.
6621 (new_breakpoint_from_type): Handle longjmp kinds of breakpoints.
6622 (set_raw_breakpoint_without_location): Use
6623 new_breakpoint_from_type.
6624 (set_raw_breakpoint): Likewise.
6625
a5e364af
SM
66262017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
6627
6628 * breakpoint.c (new_breakpoint_from_type): New function.
6629 (create_breakpoint_sal): Use new_breakpoint_from_type and
6630 unique_ptr.
6631 (create_breakpoint): Likewise.
6632
ae3b3f34
SM
66332017-05-31 Simon Marchi <simon.marchi@ericsson.com>
6634
6635 * memattr.c (mem_info_command): Rename to ...
6636 (info_mem_command): ... this.
6637 (mem_enable_command): Rename to ...
6638 (enable_mem_command): ... this.
6639 (mem_disable_command): Rename to ...
6640 (disable_mem_command): ... this.
6641 (mem_delete_command): Rename to ...
6642 (delete_mem_command): ... this.
6643 (_initialize_mem): Adjust function names.
6644
13ace077
MM
66452017-05-31 Markus Metzger <markus.t.metzger@intel.com>
6646
6647 * btrace.c (handle_pt_insn_events): New.
6648 (ftrace_add_pt): Call handle_pt_insn_events. Rename ERRCODE into
6649 STATUS. Split into this and ...
6650 (handle_pt_insn_event_flags): ... this.
6651
c56ccc05
MM
66522017-05-31 Markus Metzger <markus.t.metzger@intel.com>
6653
6654 * configure.ac: Check for pt_insn_event, struct pt_insn.enabled,
6655 and struct pt_insn.resynced.
6656 * configure: Regenerated.
6657 * config.in: Regenerated.
6658
08c3f6d2
TW
66592017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6660
6661 * btrace.c (ftrace_find_call_by_number): New function.
6662 (ftrace_new_function): Store objects, not pointers.
6663 (ftrace_find_call_by_number, ftrace_new_return, ftrace_new_switch,
6664 ftrace_new_gap, ftrace_update_function,
6665 ftrace_compute_global_level_offset, btrace_stich_bts, btrace_clear,
6666 btrace_insn_get, btrace_insn_get_error, btrace_insn_end,
6667 btrace_insn_next, btrace_insn_prev, ptrace_find_insn_by_number,
6668 btrace_ends_with_single_insn, btrace_call_get): Account for
6669 btrace_thread_info::functions now storing objects.
6670 * btrace.h (struct btrace_thread_info): Add constructor.
6671 (struct btrace_thread_info) <functions>: Make std::vector.
6672 (struct btrace_thread_info) <prev, next, up, insn, errcode, flags):
6673 Initialize with default values.
6674 * record-btrace.c (record_btrace_frame_sniffer): Account for
6675 btrace_thread_info::functions now storing objects.
6676
8ffd39f2
TW
66772017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6678
6679 * btrace.c: Remove typedef bfun_s.
6680 (ftrace_new_gap): Directly add gaps to the list of gaps.
6681 (btrace_bridge_gaps, btrace_compute_ftrace_bts, pt_btrace_insn_flags,
6682 ftrace_add_pt, btrace_compute_ftrace_pt, btrace_compute_ftrace_1,
6683 btrace_finalize_ftrace, btrace_compute_ftrace): Use std::vector
6684 instead of gdb VEC.
6685
4aeb0dfc
TW
66862017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6687
6688 * btrace.c (ftrace_fixup_caller, ftrace_new_return, ftrace_connect_bfun,
6689 ftrace_bridge_gap): Replace references to btrace_thread_info::segment
6690 with btrace_thread_info::next_segment and
6691 btrace_thread_info::prev_segment.
6692 * btrace.h: Remove struct btrace_func_link.
6693 (struct btrace_function): Replace pair of function segment pointers
6694 with pair of indices.
6695 * python/py-record-btrace.c (btpy_call_prev_sibling,
6696 btpy_call_next_sibling): Replace references to
6697 btrace_thread_info::segment with btrace_thread_info::next_segment and
6698 btrace_thread_info::prev_segment.
6699 * record-btrace.c (record_btrace_frame_this_id): Use
6700 btrace_find_call_by_number.
6701
eb8f2b9c
TW
67022017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6703
6704 * btrace.c (ftrace_new_function, ftrace_fixup_level,
6705 ftrace_connect_bfun, ftrace_bridge_gap, btrace_bridge_gaps,
6706 btrace_insn_next, btrace_insn_prev): Remove references to
6707 btrace_thread_info::flow.
6708 * btrace.h (struct btrace_function): Remove FLOW.
6709
42bfe59e
TW
67102017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6711
6712 * btrace.c (ftrace_find_call_by_number): New function.
6713 (ftrace_update_caller, ftrace_new_call, ftrace_new_tailcall,
6714 ftrace_get_caller, ftrace_find_call, ftrace_new_return,
6715 ftrace_match_backtrace, ftrace_connect_bfun, ftrace_connect_backtrace,
6716 ftrace_bridge_gap, btrace_bridge_gaps): Use btrace_function::up as an
6717 index.
6718 * btrace.h (struct btrace_function): Turn UP into an index.
6719 * python/py-record-btrace.c (btpy_call_up): Use btrace_function::up
6720 as an index.
6721 * record-btrace.c (record_btrace_frame_unwind_stop_reason,
6722 record_btrace_frame_prev_register, record_btrace_frame_sniffer,
6723 record_btrace_tailcall_frame_sniffe): Use btrace_find_call_by_number.
6724
b54b03bd
TW
67252017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6726
6727 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
6728 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
6729 ftrace_update_function, ftrace_compute_global_level_offset,
6730 btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt,
6731 btrace_stitch_bts, btrace_fetch, btrace_clear, btrace_insn_number,
6732 btrace_insn_end, btrace_is_empty): Remove references to
6733 btrace_thread_info::begin and btrace_thread_info::end.
6734 * btrace.h (struct btrace_thread_info): Remove BEGIN and END.
6735 (struct btrace_thread_info) <functions>: Adjust comment.
6736 * record-btrace.c (record_btrace_start_replaying): Remove reference to
6737 btrace_thread_info::begin.
6738
8286623c
TW
67392017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6740
6741 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
6742 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
6743 ftrace_update_function): Remove arguments that implicitly were always
6744 BTINFO->END.
6745 (btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt):
6746 Don't pass BTINFO->END.
6747
a0f1b963
TW
67482017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6749
6750 * btrace.c: (btrace_insn_get, btrace_insn_get_error, btrace_insn_number,
6751 btrace_insn_begin, btrace_insn_end, btrace_insn_next, btrace_insn_prev,
6752 btrace_find_insn_by_number): Replace function segment pointer with
6753 index.
6754 (btrace_insn_cmp): Simplify.
6755 * btrace.h: (struct btrace_insn_iterator) Rename index to
6756 insn_index. Replace function segment pointer with index into function
6757 segment vector.
6758 * record-btrace.c (record_btrace_call_history): Replace function
6759 segment pointer use with index.
6760 (record_btrace_frame_sniffer): Retrieve function call segment through
6761 vector.
6762 (record_btrace_set_replay): Remove defunc't safety check.
6763
f158f208
TW
67642017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6765
6766 * btrace.c (btrace_ends_with_single_insn): New function.
6767 (btrace_call_get, btrace_call_number, btrace_call_begin,
6768 btrace_call_end, btrace_call_next, btrace_call_prev,
6769 btrace_find_call_by_number): Use index into call segment vector
6770 instead of pointer.
6771 (btrace_call_cmp): Simplify.
6772 * btrace.h (struct btrace_call_iterator): Replace function call segment
6773 pointer with index into vector.
6774 * record-btrace.c (record_btrace_call_history): Use index instead of
6775 pointer.
6776
521103fd
TW
67772017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6778
6779 * btrace.c (btrace_insn_begin, btrace_insn_end,
6780 btrace_find_insn_by_number): Add btinfo to iterator.
6781 * btrace.h (struct btrace_insn_iterator): Add btinfo.
6782
17b89b34
TW
67832017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6784
6785 * btrace.c (ftrace_new_function): Add btrace_thread_info to arguments
6786 and save pointers directly.
6787 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return,
6788 ftrace_new_switch, ftrace_new_gap, ftrace_update_function,
6789 ftrace_add_pt): Add btrace_thread_info to arguments. Adjust for
6790 changed signature of functions.
6791 (btrace_compute_ftrace_pt): Adjust for changed signature of functions.
6792 (btrace_fetch): Remove code that adds btrace_function pointers to
6793 vector of btrace_functions.
6794 (btrace_clear): Simplify freeing vector of btrace_functions.
6795
2b51eddc
TW
67962017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6797
6798 * btrace.c (btrace_fetch, btrace_clear, btrace_find_insn_by_number):
6799 Replace VEC_* with std::vector functions.
6800 * btrace.h: Add include: vector. Remove typedef for DEF_VEC_P.
6801 (struct btrace_thread_info)<functions>: Change type to std::vector.
6802
db6be0d5
SM
68032017-05-30 Simon Marchi <simon.marchi@ericsson.com>
6804
6805 * NEWS (Changes in GDB 8.0): Remove extra empty line. Move
6806 "Removed targets and native configurations" up. Merge duplicate
6807 "New commands" sub-sections. Add "New options" sub-sections.
6808
b057297a
AH
68092017-05-26 Alan Hayward <alan.hayward@arm.com>
6810
6811 * defs.h (copy_integer_to_size): New declaration.
6812 * findvar.c (copy_integer_to_size): New function.
6813 (do_cint_test): New selftest function.
6814 (copy_integer_to_size_test): Likewise.
6815 (_initialize_findvar): Likewise.
6816 * mips-fbsd-tdep.c (mips_fbsd_supply_reg): Use raw_supply_integer.
6817 (mips_fbsd_collect_reg): Use raw_collect_integer.
6818 * mips-linux-tdep.c (supply_32bit_reg): Use raw_supply_integer.
6819 (mips64_fill_gregset): Use raw_collect_integer
6820 (mips64_fill_fpregset): Use raw_supply_integer.
6821 * regcache.c (regcache::raw_supply_integer): New function.
6822 (regcache::raw_collect_integer): Likewise.
6823 * regcache.h: (regcache::raw_supply_integer): New declaration.
6824 (regcache::raw_collect_integer): Likewise.
6825
b77b02a5
YQ
68262017-05-24 Yao Qi <yao.qi@linaro.org>
6827
6828 * Makefile.in (SFILES): Add gdbarch-selftests.c.
6829 (COMMON_OBS): Add gdbarch-selftests.o.
6830 * frame.c [GDB_SELF_TESTS] (create_new_frame): New function.
6831 * frame.h [GDB_SELF_TESTS] (create_new_frame): Declare.
6832 * gdbarch-selftests.c: New file.
6833 * regcache.h (regcache) <~regcache>: Mark it virtual if
6834 GDB_SELF_TEST.
6835 <raw_write>: Likewise.
6836
e521e87e
YQ
68372017-05-24 Yao Qi <yao.qi@linaro.org>
6838
6839 * regcache.c (current_regcache): Change it to
6840 regcache::current_regcache.
6841 (regcache_observer_target_changed): Update.
6842 (regcache_thread_ptid_changed): Make it a regcache static
6843 method.
6844 (regcache_thread_ptid_changed): Update.
6845 (class regcache_access): New.
6846 (current_regcache_test): Update.
6847 (_initialize_regcache): Update.
6848 * regcache.h: Include forward_list.
6849 (regcache): Declare regcache_thread_ptid_changed and declare
6850 registers_changed_ptid as friend.
6851
d8e07dda
YQ
68522017-05-24 Yao Qi <yao.qi@linaro.org>
6853
6854 * i387-tdep.c (i387_register_to_value): Use register_size
6855 instead of TYPE_LENGTH.
6856 * m68k-tdep.c (m68k_register_to_value): Likewise.
6857
8c8f9122
YQ
68582017-05-24 Yao Qi <yao.qi@linaro.org>
6859
6860 * i387-tdep.c (i387_convert_register_p): Return false if type
6861 code isn't TYPE_CODE_FLT.
6862
68fce50f
YQ
68632017-05-24 Yao Qi <yao.qi@linaro.org>
6864
6865 * alpha-tdep.c (alpha_convert_register_p): Return true if type
6866 length is 4.
6867 (alpha_register_to_value): Remove type length check.
6868 (alpha_value_to_register): Likewise.
6869
88954b49
YQ
68702017-05-24 Yao Qi <yao.qi@linaro.org>
6871
6872 * ia64-tdep.c (ia64_convert_register_p): Check type's code is
6873 TYPE_CODE_FLT.
6874
e3ec9b69
YQ
68752017-05-24 Yao Qi <yao.qi@linaro.org>
6876
6877 * m68k-tdep.c (m68k_convert_register_p): Check type's code is
6878 TYPE_CODE_FLT or not.
6879
cdd238da
YQ
68802017-05-24 Yao Qi <yao.qi@linaro.org>
6881
6882 * alpha-tdep.c (alpha_gdbarch_init): Use XCNEW instead of XNEW.
6883 * avr-tdep.c (avr_gdbarch_init): Likewise.
6884 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
6885 * cris-tdep.c (cris_gdbarch_init): Likewise.
6886 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
6887 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
6888 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
6889 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
6890 * mep-tdep.c (mep_gdbarch_init): Likewise.
6891 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
6892 * mips-tdep.c (mips_gdbarch_init): Likewise.
6893 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
6894 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
6895 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
6896 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
6897 * v850-tdep.c (v850_gdbarch_init): Likewise.
6898
7a3929c4
YQ
68992017-05-24 Yao Qi <yao.qi@linaro.org>
6900
6901 * selftest-arch.c (tests_with_arch): Call registers_changed
6902 and reinit_frame_cache.
6903 * selftest.c (run_self_tests): Likewise.
6904
f4985dba
YQ
69052017-05-24 Yao Qi <yao.qi@linaro.org>
6906
6907 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove.
6908 (rs6000_gdbarch_init): Don't call set_gdbarch_print_insn.
6909
ab20fa4a
YQ
69102017-05-24 Yao Qi <yao.qi@linaro.org>
6911
6912 * rl78-tdep.c (rl78_gdbarch_init): Don't call
6913 set_gdbarch_print_insn.
6914
f532ab94
YQ
69152017-05-24 Yao Qi <yao.qi@linaro.org>
6916
6917 * h8300-tdep.c (h8300_gdbarch_init): Don't call
6918 set_gdbarch_print_insn.
6919
39503f82
YQ
69202017-05-24 Yao Qi <yao.qi@linaro.org>
6921
6922 * alpha-tdep.c (alpha_gdbarch_init): Don't call
6923 set_gdbarch_print_insn.
6924 * arc-tdep.c (arc_gdbarch_init): Likewise.
6925 * arch-utils.c: include dis-asm.h.
6926 (default_print_insn): New function.
6927 * arch-utils.h (default_print_insn): Declare.
6928 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_print_insn.
6929 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
6930 * cris-tdep.c (cris_delayed_get_disassembler): Remove.
6931 (cris_gdbarch_init): Don't call set_gdbarch_print_insn.
6932 * frv-tdep.c (frv_gdbarch_init): Likewise.
6933 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
6934 * gdbarch.sh (print_insn): Use default_print_insn.
6935 * gdbarch.c: Regenerated.
6936 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
6937 * iq2000-tdep.c (iq2000_gdbarch_init): Likewise.
6938 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
6939 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
6940 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
6941 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Remove.
6942 (m68hc11_gdbarch_init): Don't call set_gdbarch_print_insn.
6943 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
6944 * m88k-tdep.c (m88k_gdbarch_init): Likewise.
6945 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
6946 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
6947 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
6948 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
6949 * mt-tdep.c (mt_gdbarch_init): Likewise.
6950 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
6951 * nios2-tdep.c (nios2_print_insn): Remove.
6952 (nios2_gdbarch_init): Don't call set_gdbarch_print_insn.
6953 * rx-tdep.c (rx_gdbarch_init): Likewise.
6954 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
6955 * score-tdep.c (score_print_insn): Remove.
6956 (score_gdbarch_init): Don't call set_gdbarch_print_insn.
6957 * sh-tdep.c (sh_gdbarch_init): Likewise.
6958 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
6959 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
6960 * tic6x-tdep.c (tic6x_print_insn): Remove.
6961 (tic6x_gdbarch_init): Don't call set_gdbarch_print_insn.
6962 * tilegx-tdep.c (tilegx_gdbarch_init): Likewise.
6963 * v850-tdep.c (v850_gdbarch_init): Likewise.
6964 * vax-tdep.c (vax_gdbarch_init): Likewise.
6965 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
6966 * xtensa-tdep.c (xtensa_gdbarch_init): Likewise.
6967
f7241d4f
JB
69682017-05-23 John Baldwin <jhb@FreeBSD.org>
6969
6970 * mips-fbsd-tdep.c (MIPS_PC_REGNUM): Remove.
6971 (MIPS_FP0_REGNUM): Remove.
6972 (MIPS_FSR_REGNUM): Remove.
6973 (mips_fbsd_supply_fpregs): Use mips_regnum.
6974 (mips_fbsd_supply_gregs): Likewise.
6975 (mips_fbsd_collect_fpregs): Likewise.
6976 (mips_fbsd_collect_gregs): Likewise.
6977
d489d81d
JB
69782017-05-23 John Baldwin <jhb@FreeBSD.org>
6979
6980 * mips-fbsd-nat.c (getregs_supplies): Fix upper bound comparison.
6981 (getpfpregs_supplies): New function.
6982 (mips_fbsd_fetch_inferior_registers): Remove early exit and use
6983 getfpregs_supplies.
6984 (mips_fbsd_store_inferior_registers): Likewise.
6985
e11b3cdc
PA
69862017-05-22 Pedro Alves <palves@redhat.com>
6987
6988 * MAINTAINERS (Host/Native): Add John Baldwin as FreeBSD
6989 maintainer.
6990
0f068fb5
AH
69912017-05-22 Alan Hayward <alan.hayward@arm.com>
6992
6993 * ppc-linux-nat.c (fetch_register): Use PPC_MAX_REGISTER_SIZE.
6994 (store_register): Likewise.
6995 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Likewise.
6996 (get_decimal_float_return_value): Likewise.
6997 (do_ppc_sysv_return_value): Likewise.
6998 (ppc64_sysv_abi_push_integer): Likewise.
6999 (ppc64_sysv_abi_push_freg): Likewise.
7000 (ppc64_sysv_abi_return_value_base): Likewise.
7001 (ppc64_sysv_abi_return_value): Likewise.
7002 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
7003 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
7004 * rs6000-nat.c: Likewise.
7005 * rs6000-tdep.c (rs6000_register_to_value): Likewise.
7006 (rs6000_value_to_register): Likewise.
7007 * ppc-tdep.h (PPC_MAX_REGISTER_SIZE): Add.
7008
e6cf65f2
TT
70092017-05-21 Tom Tromey <tom@tromey.com>
7010
7011 PR rust/21466:
7012 * rust-lang.c (rust_print_type) <TYPE_CODE_ARRAY>: Print unsized
7013 arrays as "[T]", not "[T; ]".
7014
43cc5389
TT
70152017-05-19 Tom Tromey <tom@tromey.com>
7016
7017 PR rust/21484:
7018 * rust-lang.c (exp_descriptor_rust): New function.
7019 (rust_language_defn): Use it.
7020 * p-lang.c (pascal_language_defn): Update.
7021 * opencl-lang.c (opencl_language_defn): Update.
7022 * objc-lang.c (objc_language_defn): Update.
7023 * m2-lang.c (m2_language_defn): Update.
7024 * language.h (struct language_defn)
7025 <la_watch_location_expression>: New member.
7026 * language.c (unknown_language_defn, auto_language_defn)
7027 (local_language_defn): Update.
7028 * go-lang.c (go_language_defn): Update.
7029 * f-lang.c (f_language_defn): Update.
7030 * d-lang.c (d_language_defn): Update.
7031 * c-lang.h (c_watch_location_expression): Declare.
7032 * c-lang.c (c_watch_location_expression): New function.
7033 (c_language_defn, cplus_language_defn, asm_language_defn)
7034 (minimal_language_defn): Use it.
7035 * breakpoint.c (watch_command_1): Call
7036 la_watch_location_expression.
7037 * ada-lang.c (ada_language_defn): Update.
7038
7a6e7fcc
RO
70392017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7040
6e7e1744
RO
7041 PR tui/21482
7042 * gdb_curses.h (NOMACROS): Define.
7043 (NCURSES_NOMACROS): Define.
7044
70452017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7046
7047 PR tui/21482
7a6e7fcc
RO
7048 * tui/tui-windata.c (tui_erase_data_content): Cast last mvwaddstr
7049 arg to char *.
7050 * tui/tui-wingeneral.c (box_win): Likewise.
7051 * tui/tui-winsource.c (tui_erase_source_content): Likewise.
7052 (tui_show_source_line): Likewise.
7053 (tui_show_exec_info_content): Likewise.
7054
1933fd8e
VM
70552017-05-19 Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
7056
7057 * sparc-tdep.c (sparc_structure_return_p)
7058 (sparc_arg_on_registers_p): New functions.
7059 (sparc32_store_arguments): Use them.
7060 * sparc64-tdep.c (sparc64_16_byte_align_p)
7061 (sparc64_store_floating_fields, sparc64_extract_floating_fields):
7062 Handle TYPE_CODE_ARRAY.
7063
21873064
YQ
70642017-05-17 Yao Qi <yao.qi@linaro.org>
7065
7066 * cli/cli-decode.c (add_alias_cmd): New function.
7067 * command.h (add_alias_cmd): Declare.
7068 * infcmd.c (_initialize_infcmd): Don't call add_com_alias,
7069 instead call add_alias_cmd.
7070
2b351b19
PA
70712017-05-17 Pedro Alves <palves@redhat.com>
7072
7073 * Makefile.in (nat_extra_makefile_frag): Rename to ...
7074 (nat_makefile_frag): ... this. All references updated.
7075 * configure.ac: Likewise.
7076 * configure.nat: Likewise. Enhance comments.
7077 * configure: Regenerate.
7078
5f2ad7a3
RO
70792017-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7080
7081 * procfs.c (procfs_create_inferior): Change prototype to match
7082 definition.
7083
adf3dde5
EZ
70842017-05-13 Eli Zaretskii <eliz@gnu.org>
7085
7086 * tui/tui.c (tui_enable): Cast "unknown" to 'char *' to avoid a
7087 C++ compiler warning.
7088
6830f270
TT
70892017-05-12 Tom Tromey <tom@tromey.com>
7090
7091 PR rust/21483:
7092 * rust-lang.c (rust_evaluate_subexp) <STRUCTOP_STRUCT>: Don't
7093 recurse, just call value_struct_elt directly.
7094
68f2f2e3
TT
70952017-05-12 Tom Tromey <tom@tromey.com>
7096
7097 * rust-lang.c (rust_dump_subexp_body) <STRUCTOP_ANONYMOUS,
7098 OP_RUST_ARRAY>: Fix.
7099
256afbc2
TT
71002017-05-12 Tom Tromey <tom@tromey.com>
7101
7102 * rust-lang.c (rust_print_subexp): Replace "return" with "break".
7103
94bb8dfe
YQ
71042017-05-09 Yao Qi <yao.qi@linaro.org>
7105
7106 * regcache.c: Include <forward_list>.
7107 (struct regcache_list): Remove.
7108 (current_regcache): Update.
7109 (get_thread_arch_aspace_regcache): Update for std::forward_list.
7110 (regcache_thread_ptid_changed): Likewise.
7111 (registers_changed_ptid): Likewise.
7112 (current_regcache_size): Likewise.
7113
8248946c
YQ
71142017-05-09 Yao Qi <yao.qi@linaro.org>
7115
7116 * regcache.c [GDB_SELF_TEST]: Include selftest.h.
7117 (current_regcache_size): New function.
7118 (current_regcache_test): New function.
7119 (_initialize_regcache) [GDB_SELF_TEST]: Register the unit test.
7120
313c5961
AH
71212017-05-08 Alan Hayward <alan.hayward@arm.com>
7122
7123 * mips-tdep.c (mips_o32_return_value): Remove unused buffer.
7124 (print_gp_register_row): Use get_frame_register_value.
7125
27bfc1d1
AH
71262017-05-08 Alan Hayward <alan.hayward@arm.com>
7127
7128 * mips-linux-tdep.c (mips_supply_gregset): Use raw_supply_zeroed.
7129 (mips_supply_fpregset): Likewise.
7130 (mips64_supply_gregset): Likewise.
7131
146e6c5c
AH
71322017-05-08 Alan Hayward <alan.hayward@arm.com>
7133
7134 * mn10300-linux-tdep.c (am33_supply_gregset_method): Use
7135 regcache->raw_supply_zeroed.
7136
e50f25ec
SDJ
71372017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
7138
7139 * configure.nat: Rearrange 'case' statements to match
7140 host before cpu.
7141
21ea5acd
SDJ
71422017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
7143
7144 * Makefile.in: Remove "@host_makefile_frag@". Add variables
7145 NAT_FILE, NATDEPFILES, NAT_CDEPS, LOADLIBES, MH_CFLAGS, XM_CLIBS,
7146 NAT_GENERATED_FILES, HAVE_NATIVE_GCORE_HOST. Add
7147 "@nat_extra_makefile_frag@".
7148 (Makefile): Remove dependency on "@frags@".
7149 ($(GNULIB_BUILDDIR)/Makefile): Likewise.
7150 (data-directory/Makefile): Likewise.
7151 * config/aarch64/linux.mh: Deleted; moved contents to
7152 "gdb/configure.nat".
7153 * config/alpha/alpha-linux.mh: Likewise.
7154 * config/alpha/nbsd.mh: Likewise.
7155 * config/arm/linux.mh: Likewise.
7156 * config/arm/nbsdelf.mh: Likewise.
7157 * config/i386/cygwin.mh: Likewise.
7158 * config/i386/cygwin64.mh: Likewise.
7159 * config/i386/darwin.mh: Likewise.
7160 * config/i386/fbsd.mh: Likewise.
7161 * config/i386/fbsd64.mh: Likewise.
7162 * config/i386/go32.mh: Likewise.
7163 * config/i386/i386gnu.mh: Likewise.
7164 * config/i386/i386sol2.mh: Likewise.
7165 * config/i386/linux.mh: Likewise.
7166 * config/i386/linux64.mh: Likewise.
7167 * config/i386/mingw.mh: Likewise.
7168 * config/i386/mingw64.mh: Likewise.
7169 * config/i386/nbsd64.mh: Likewise.
7170 * config/i386/nbsdelf.mh: Likewise.
7171 * config/i386/nto.mh: Likewise.
7172 * config/i386/obsd.mh: Likewise.
7173 * config/i386/obsd64.mh: Likewise.
7174 * config/i386/sol2-64.mh: Likewise.
7175 * config/ia64/linux.mh: Likewise.
7176 * config/m32r/linux.mh: Likewise.
7177 * config/m68k/linux.mh: Likewise.
7178 * config/m68k/nbsdelf.mh: Likewise.
7179 * config/m68k/obsd.mh: Likewise.
7180 * config/m88k/obsd.mh: Likewise.
7181 * config/mips/fbsd.mh: Likewise.
7182 * config/mips/linux.mh: Likewise.
7183 * config/mips/nbsd.mh: Likewise.
7184 * config/mips/obsd64.mh: Likewise.
7185 * config/pa/linux.mh: Likewise.
7186 * config/pa/nbsd.mh: Likewise.
7187 * config/pa/obsd.mh: Likewise.
7188 * config/powerpc/aix.mh: Likewise.
7189 * config/powerpc/fbsd.mh: Likewise.
7190 * config/powerpc/linux.mh: Likewise.
7191 * config/powerpc/nbsd.mh: Likewise.
7192 * config/powerpc/obsd.mh: Likewise.
7193 * config/powerpc/ppc64-linux.mh: Likewise.
7194 * config/powerpc/spu-linux.mh: Likewise.
7195 * config/s390/linux.mh: Likewise.
7196 * config/sh/nbsd.mh: Likewise.
7197 * config/sparc/fbsd.mh: Likewise.
7198 * config/sparc/linux.mh: Likewise.
7199 * config/sparc/linux64.mh: Likewise.
7200 * config/sparc/nbsd64.mh: Likewise.
7201 * config/sparc/nbsdelf.mh: Likewise.
7202 * config/sparc/obsd64.mh: Likewise.
7203 * config/sparc/sol2.mh: Likewise.
7204 * config/tilegx/linux.mh: Likewise.
7205 * config/vax/nbsdelf.mh: Likewise.
7206 * config/vax/obsd.mh: Likewise.
7207 * config/xtensa/linux.mh: Likewise.
7208 * config/i386/i386gnu.mn: New file, with excerpts from
7209 "config/i386/i386gnu.mh".
7210 * configure: Regenerate.
7211 * configure.ac: Rewrite code to use "gdb/configure.nat" instead of
7212 *.mh files under "gdb/config".
7213 * configure.nat: New file, with contents from the
7214 "gdb/config/*/*.mh" files.
7215
7ed1acaf
TW
72162017-05-05 Tim Wiederhake <tim.wiederhake@intel.com>
7217
7218 * btrace.c (btrace_clear): Free insn vector.
7219
e13cb306
PA
72202017-05-05 Pedro Alves <palves@redhat.com>
7221
7222 * warning.m4 (build_warnings): Add -Wno-error=maybe-uninitialized.
7223 * configure: Regenerate.
7224
5ed8105e
PA
72252017-05-04 Pedro Alves <palves@redhat.com>
7226
7227 * Makefile.in (SFILES): Add progspace-and-thread.c.
7228 (HFILES_NO_SRCDIR): Add progspace-and-thread.h.
7229 (COMMON_OBS): Add progspace-and-thread.o.
7230 * breakpoint.c: Include "progspace-and-thread.h".
7231 (update_inserted_breakpoint_locations)
7232 (insert_breakpoint_locations, create_longjmp_master_breakpoint):
7233 Use scoped_restore_current_pspace_and_thread.
7234 (create_std_terminate_master_breakpoint): Use
7235 scoped_restore_current_program_space.
7236 (remove_breakpoint): Use scoped_restore_current_pspace_and_thread.
7237 (print_breakpoint_location): Use
7238 scoped_restore_current_program_space.
7239 (bp_loc_is_permanent): Use
7240 scoped_restore_current_pspace_and_thread.
7241 (resolve_sal_pc): Use scoped_restore_current_pspace_and_thread.
7242 (download_tracepoint_locations): Use
7243 scoped_restore_current_pspace_and_thread.
7244 (breakpoint_re_set): Use scoped_restore_current_pspace_and_thread.
7245 * exec.c (exec_close_1): Use scoped_restore_current_program_space.
7246 (enum step_over_calls_kind): Moved from inferior.h.
7247 (class scoped_restore_current_thread): New class.
7248 * gdbthread.h (make_cleanup_restore_current_thread): Delete
7249 declaration.
7250 (scoped_restore_current_thread): New class.
7251 * infcmd.c: Include "common/gdb_optional.h".
7252 (continue_1, proceed_after_attach): Use
7253 scoped_restore_current_thread.
7254 (notice_new_inferior): Use scoped_restore_current_thread.
7255 * inferior.c: Include "progspace-and-thread.h".
7256 (restore_inferior, save_current_inferior): Delete.
7257 (add_inferior_command, clone_inferior_command): Use
7258 scoped_restore_current_pspace_and_thread.
7259 * inferior.h (scoped_restore_current_inferior): New class.
7260 * infrun.c: Include "progspace-and-thread.h" and
7261 "common/gdb_optional.h".
7262 (follow_fork_inferior): Use
7263 scoped_restore_current_pspace_and_thread.
7264 (scoped_restore_exited_inferior): New class.
7265 (handle_vfork_child_exec_or_exit): Use
7266 scoped_restore_exited_inferior,
7267 scoped_restore_current_pspace_and_thread,
7268 scoped_restore_current_thread and scoped_restore.
7269 (fetch_inferior_event): Use scoped_restore_current_thread.
7270 * linespec.c (decode_line_full, decode_line_1): Use
7271 scoped_restore_current_program_space.
7272 * mi/mi-main.c: Include "progspace-and-thread.h".
7273 (exec_continue): Use scoped_restore_current_thread.
7274 (mi_cmd_exec_run): Use scoped_restore_current_pspace_and_thread.
7275 (mi_cmd_trace_frame_collected): Use scoped_restore_current_thread.
7276 * proc-service.c (ps_pglobal_lookup): Use
7277 scoped_restore_current_program_space.
7278 * progspace-and-thread.c: New file.
7279 * progspace-and-thread.h: New file.
7280 * progspace.c (release_program_space, clone_program_space): Use
7281 scoped_restore_current_program_space.
7282 (restore_program_space, save_current_program_space)
7283 (save_current_space_and_thread): Delete.
7284 (switch_to_program_space_and_thread): Moved to
7285 progspace-and-thread.c.
7286 * progspace.h (save_current_program_space)
7287 (save_current_space_and_thread): Delete declarations.
7288 (scoped_restore_current_program_space): New class.
7289 * remote.c (remote_btrace_maybe_reopen): Use
7290 scoped_restore_current_thread.
7291 * symtab.c: Include "progspace-and-thread.h".
7292 (skip_prologue_sal): Use scoped_restore_current_pspace_and_thread.
7293 * thread.c (print_thread_info_1): Use
7294 scoped_restore_current_thread.
7295 (struct current_thread_cleanup): Delete.
7296 (do_restore_current_thread_cleanup)
7297 (restore_current_thread_cleanup_dtor): Rename/convert both to ...
7298 (scoped_restore_current_thread::~scoped_restore_current_thread):
7299 ... this new dtor.
7300 (make_cleanup_restore_current_thread): Rename/convert to ...
7301 (scoped_restore_current_thread::scoped_restore_current_thread):
7302 ... this new ctor.
7303 (thread_apply_all_command): Use scoped_restore_current_thread.
7304 (thread_apply_command): Use scoped_restore_current_thread.
7305 * tracepoint.c (tdump_command): Use scoped_restore_current_thread.
7306 * varobj.c (value_of_root_1): Use scoped_restore_current_thread.
7307
f6223dbb
PA
73082017-05-04 Pedro Alves <palves@redhat.com>
7309
7310 * thread.c (make_cleanup_restore_current_thread): Move
7311 find_thread_ptid call before the is_stopped call. Assert that the
7312 thread is found. Replace is_stopped call by checking the thread's
7313 state directly. Remove unnecessary NULL-thread check.
7314
3c3ae77e
PA
73152017-05-04 Pedro Alves <palves@redhat.com>
7316
7317 * corelow.c (thread_section_name): New class.
7318 (get_core_register_section, get_core_siginfo): Use it.
7319
45eba0ab
AA
73202017-05-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
7321
7322 * corelow.c (sniff_core_bfd): Remove extra semicolon.
7323 (get_core_register_section): Remove xfree of NULL pointer.
7324
f81fdd35
AH
73252017-05-03 Alan Hayward <alan.hayward@arm.com>
7326
7327 * frv-linux-tdep.c (frv_linux_supply_gregset): Use raw_supply_zeroed.
7328 * regcache.c (regcache::raw_supply_zeroed): New function.
7329 * regcache.h (regcache::raw_supply_zeroed): New declaration.
7330
35837774
SM
73312017-05-03 Simon Marchi <simon.marchi@ericsson.com>
7332
7333 * gdbarch.sh: Remove commented out definition of
7334 TARGET_CHAR_BIT.
7335 * gdbarch.h: Re-generate.
7336
c94fee56
SDJ
73372017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
7338
7339 * configure: Regenerate.
7340
d17f7b36
SM
73412017-05-02 Simon Marchi <simon.marchi@ericsson.com>
7342
7343 * solib-target.c (solib_target_relocate_section_addresses):
7344 Remove num_section_bases, num_bases, segment_bases variables.
7345
b560ebd6
SM
73462017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7347
7348 * common/gdb_vecs.h (DEF_VEC_I (CORE_ADDR)): Remove.
7349
f2f46dfc
SM
73502017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7351
7352 * solib-target.c: Include <vector>
7353 (struct lm_info_target) <~lm_info_target>: Remove.
7354 <segment_bases, section_bases>: Change type to
7355 std::vector<CORE_ADDR>.
7356 (library_list_start_segment, library_list_start_section,
7357 library_list_end_library,
7358 solib_target_relocate_section_addresses): Adjust.
7359
a0ff9e1a
SM
73602017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7361
7362 * gdbarch.sh (software_single_step): Change return type to
7363 std::vector<CORE_ADDR>.
7364 * gdbarch.c, gdbarch.h: Re-generate.
7365 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw):
7366 Adjust.
7367 (arm_deal_with_atomic_sequence_raw): Adjust.
7368 (thumb_get_next_pcs_raw): Adjust.
7369 (arm_get_next_pcs_raw): Adjust.
7370 (arm_get_next_pcs): Adjust.
7371 * arch/arm-get-next-pcs.h (arm_get_next_pcs): Adjust.
7372 * aarch64-tdep.c (aarch64_software_single_step): Adjust.
7373 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Adjust.
7374 (alpha_software_single_step): Adjust.
7375 * alpha-tdep.h (alpha_software_single_step): Adjust.
7376 * arm-linux-tdep.c (arm_linux_software_single_step): Adjust.
7377 * arm-tdep.c (arm_software_single_step): Adjust.
7378 (arm_breakpoint_kind_from_current_state): Adjust.
7379 * arm-tdep.h (arm_software_single_step): Adjust.
7380 * breakpoint.c (insert_single_step_breakpoint): Adjust.
7381 * cris-tdep.c (cris_software_single_step): Adjust.
7382 * mips-tdep.c (mips_deal_with_atomic_sequence): Adjust.
7383 (micromips_deal_with_atomic_sequence): Adjust.
7384 (deal_with_atomic_sequence): Adjust.
7385 (mips_software_single_step): Adjust.
7386 * mips-tdep.h (mips_software_single_step): Adjust.
7387 * moxie-tdep.c (moxie_software_single_step): Adjust.
7388 * nios2-tdep.c (nios2_software_single_step): Adjust.
7389 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Adjust.
7390 * rs6000-aix-tdep.c (rs6000_software_single_step): Adjust.
7391 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Adjust.
7392 * s390-linux-tdep.c (s390_software_single_step): Adjust.
7393 * sparc-tdep.c (sparc_software_single_step): Adjust.
7394 * spu-tdep.c (spu_software_single_step): Adjust.
7395 * tic6x-tdep.c (tic6x_software_single_step): Adjust.
7396
ea480a30
SM
73972017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7398
7399 * gdbarch.sh: Use semi-colon as field separator instead of colon.
7400 * gdbarch.h: Re-generate.
7401
d050f7d7
TW
74022017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
7403
7404 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-instruction.o.
7405 (SUBDIR_PYTHON_SRCS): Add py-instruction.c.
7406 * python/py-instruction.c, python/py-instruction.h: New file.
7407 * python/py-record.c: Add py-instruction.h include.
7408 (gdbpy_initialize_record): Make gdb.Instruction a super class of
7409 gdb.RecordInstruction.
7410 * python/python-internal.h: Add gdbpy_initialize_instruction
7411 declaration.
7412 * python/python.c (do_start_initialization): Add
7413 gdbpy_initialize_instruction.
7414
14f819c8
TW
74152017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
7416
7417 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_CALL, btpy_call_type):
7418 Remove.
7419 (btrace_func_from_recpy_func): New function.
7420 (btpy_call_new, btpy_number, btpy_hash, btpy_richcompare): Remove.
7421 (btpy_call_level, btpy_call_symbol, btpy_call_instructions,
7422 btpy_call_up, btpy_call_prev_sibling, btpy_call_next_sibling): Rename to ...
7423 (recpy_bt_func_level, recpy_bt_func_symbol, recpy_bt_func_instructions,
7424 recpy_bt_func_up, recpy_bt_func_prev, recpy_bt_func_next): This.
7425 Also, use new helper functions.
7426 (btpy_list_item): Use new helper functions.
7427 (recpy_bt_function_call_history): Use new type name.
7428 (btpy_call_getset): Remove.
7429 (gdbpy_initialize_btrace): Remove code to initialize
7430 gdb.BtraceFunctionCall.
7431 * python/py-record-btrace.h (recpy_bt_func_number, recpy_btb_func_level,
7432 recpy_btb_func_symbol, recpy_bt_func_instructions, recpy_bt_func_up,
7433 recpy_bt_func_prev, recpy_bt_func_next): New export.
7434 * python/py-record.c (recpy_func_type): New static object.
7435 (recpy_func_new, recpy_func_level, recpy_func_symbol,
7436 recpy_func_instructions, recpy_func_up, recpy_func_prev,
7437 recpy_func_next): New function.
7438 (recpy_element_hash, recpy_element_richcompare): Updated comment.
7439 (recpy_func_getset): New static object.
7440 (gdbpy_initialize_record): Add code to initialize gdb.RecordInstruction.
7441 * python/py-record.h (recpy_func_type, recpy_func_new): New export.
7442
0ed5da75
TW
74432017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
7444
7445 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN): Remove.
7446 (btpy_object, btpy_insn_type, btpy_new): Remove.
7447 (btpy_list_object): Use gdb.RecordInstruction type instead of
7448 gdb.BtraceInstruction type.
7449 (btrace_insn_from_recpy_insn): New function.
7450 (btpy_insn_or_gap_new): Adjust comment. Use recpy_insn_new instead of
7451 btpy_new.
7452 (btpy_call_new, btpy_list_item): Do not use btpy_new anymore.
7453 (btpy_number, btpy_hash, btpy_call_level, btpy_call_symbol,
7454 btpy_call_instructions, btpy_call_up, btpy_call_prev_sibling,
7455 btpy_call_next_sibling, btpy_richcompare): Use recpy_element_object
7456 instead of btpy_object.
7457 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
7458 btpy_insn_data, btpy_insn_decode): Rename to ...
7459 (recpy_bt_insn_sal, recpy_bt_insn_pc, recpy_bt_insn_size,
7460 recpy_bt_insn_is_speculative, recpy_bt_insn_data,
7461 recpy_bt_insn_decode): This. Also, use new helper functions.
7462 (btpy_list_position, recpy_bt_goto): Use recpy_element_object and
7463 recpy_insn_type.
7464 (btpy_insn_getset): Remove.
7465 (gdbpy_initialize_btrace): Remove code to initialize
7466 gdb.BtraceInstruction. Use recpy_element_object.
7467 * python/py-record-btrace.h (recpy_bt_insn_number, recpy_bt_insn_sal,
7468 recpy_bt_insn_pc, recpy_bt_insn_data, recpy_bt_insn_decoded,
7469 recpy_bt_insn_size, recpy_bt_insn_is_speculative): New export.
7470 * python/py-record.c (recpy_insn_type): New static object.
7471 (recpy_insn_new, recpy_insn_sal, recpy_insn_pc, recpy_insn_data,
7472 recpy_insn_decoded, recpy_insn_size, recpy_insn_is_speculative,
7473 recpy_element_number, recpy_element_hash, recpy_element_richcompare):
7474 New function.
7475 (recpy_insn_getset): New static object.
7476 (gdbpy_initialize_record): Initialize gdb.RecordInstruction.
7477 * python/py-record.h (recpy_element_object): New typedef.
7478 (recpy_insn_type, recpy_insn_new): New export.
7479
913aeadd
TW
74802017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
7481
7482 * py-record-btrace.c (btpy_insn_new): Removed.
7483 (btpy_insn_or_gap_new): New function.
7484 (btpy_insn_error): Removed.
7485 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
7486 btpy_insn_data, btpy_insn_decode): Remove code path for gaps.
7487 (recpy_bt_replay_position, recpy_bt_begin, recpy_bt_end): Call
7488 btpy_insn_or_gap_new instead of btpy_insn_new.
7489 (btpy_insn_getset): Remove btpy_insn_error.
7490 * py-record.c (recpy_gap_type): New static object.
7491 (recpy_gap_object): New typedef.
7492 (recpy_gap_new, recpy_gap_number, recpy_gap_reason_code,
7493 recpy_gap_reason_string): New function.
7494 (recpy_gap_getset): New static object.
7495 (gdbpy_initialize_record): Initialize gdb.RecordGap type.
7496 * py-record.h (recpy_gap_new): New export.
7497
a3be24ad
TW
74982017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
7499
7500 * python/py-record.c (recpy_ptid): Remove.
7501 (recpy_record_getset): Remove recpy_ptid.
7502
ae20e79a
TW
75032017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
7504
7505 * btrace.c (btrace_fetch): Set inferior_ptid.
7506 * python/py-record-btrace.c: Add "py-record.h" include.
7507 (recpy_bt_format, recpy_bt_replay_position, recpy_bt_begin,
7508 recpy_bt_end, recpy_bt_instruction_history,
7509 recpy_bt_function_call_history, recpy_bt_goto): Use ptid stored
7510 in gdb.Record object instead of current ptid.
7511 * python/py-record.c: Include new "py-record.h" file.
7512 (recpy_record_object): Moved to py-record.h.
7513 * python/py-record.h: New file.
7514
8d0050ea
TW
75152017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
7516
7517 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN,
7518 BTPY_REQUIRE_VALID_CALL, recpy_bt_function_call_history): Fix
7519 indentation.
7520
3f380b50
JB
75212017-05-01 Joel Brobecker <brobecker@adacore.com>
7522
7523 * MAINTAINERS: Move Daniel Jacobowitz and Mark Kettenis to
7524 the past maintainers section.
7525
07495424
YQ
75262017-04-28 Yao Qi <yao.qi@linaro.org>
7527
7528 * infcmd.c (get_return_value): Use regcache ctor, and remove
7529 cleanup.
7530
deb1fa3e
YQ
75312017-04-28 Yao Qi <yao.qi@linaro.org>
7532 Pedro Alves <palves@redhat.com>
7533
7534 * regcache.c (regcache::regcache): New tag dispatch ctor.
7535 (do_cooked_read): Moved above.
7536 (regcache_dup): Use the tag dispatch ctor..
7537 * regcache.h (regcache): Declare ctor, delete copy ctor and
7538 assignment operator, remove friend regcache_dup.
7539
b421c83c
YQ
75402017-04-28 Yao Qi <yao.qi@linaro.org>
7541
7542 * regcache.c (regcache_dup): Assert !src->m_readonly_p and
7543 call method save instead of regcache_cpy.
7544 * regcache.h (struct regcache): Make regcache_dup a friend.
7545
ef79d9a3
YQ
75462017-04-28 Yao Qi <yao.qi@linaro.org>
7547
7548 * regcache.c (struct regcache): Move to regcache.h
7549 (regcache::arch): New method.
7550 (regcache_get_ptid): Update.
7551 (get_regcache_arch): Call arch method.
7552 (get_regcache_aspace): Call method aspace.
7553 (register_buffer): Change it to method.
7554 (regcache_save): Change it to regcache::save.
7555 (regcache_restore): Likewise.
7556 (regcache_cpy_no_passthrough): Remove the declaration.
7557 (regcache_cpy): Call methods restore and cpy_no_passthrough.
7558 (regcache_cpy_no_passthrough): Change it to method
7559 cpy_no_passthrough.
7560 (regcache_register_status): Change it to method
7561 get_register_status.
7562 (regcache_invalidate): Change it to method invalidate.
7563 (regcache_thread_ptid_changed): Use methods ptid and set_ptid.
7564 (regcache_raw_update): Change it to method raw_update.
7565 (regcache_raw_read): Likewise.
7566 (regcache_raw_read_signed): Likewise.
7567 (regcache_raw_read_unsigned): Likewise.
7568 (regcache_raw_write_signed): Likewise.
7569 (regcache_raw_write_unsigned): Likewise.
7570 (regcache_cooked_read): Likewise.
7571 (regcache_cooked_read_value): Likewise.
7572 (regcache_cooked_read_signed): Likewise.
7573 (regcache_cooked_read_unsigned): Likewise.
7574 (regcache_cooked_write_signed): Likewise.
7575 (regcache_cooked_write_unsigned): Likewise.
7576 (regcache_raw_set_cached_value): Likewise.
7577 (regcache_raw_write): Likewise.
7578 (regcache_cooked_write): Likewise.
7579 (regcache_xfer_part): Likewise.
7580 (regcache_raw_read_part): Likewise.
7581 (regcache_raw_write_part): Likewise.
7582 (regcache_cooked_read_part): Likewise.
7583 (regcache_cooked_write_part): Likewise.
7584 (regcache_raw_supply): Likewise.
7585 (regcache_raw_collect): Likewise.
7586 (regcache_transfer_regset): Likewise.
7587 (regcache_supply_regset): Likewise.
7588 (regcache_collect_regset): Likewise.
7589 (regcache_debug_print_register): Likewise.
7590 (enum regcache_dump_what): Move it to regcache.h.
7591 (regcache_dump): Change it to method dump.
7592 * regcache.h (enum regcache_dump_what): New.
7593 (class regcache): New.
7594 * target.c (target_fetch_registers): Call method
7595 debug_print_register.
7596 (target_store_registers): Likewise.
7597
f8fdb78e
SM
75982017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7599
7600 * windows-nat.c (struct lm_info_windows): Initialize field.
7601 (windows_make_so): Allocate lm_info_windows with new.
7602 (windows_free_so): Free lm_info_windows with delete.
7603
9ccbfd7b
SM
76042017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7605
7606 * solib-darwin.c (struct lm_info_darwin): Initialize field.
7607 (darwin_current_sos): Allocate lm_info_darwin with new, remove
7608 cleanup.
7609 (darwin_free_so): Free lm_info_darwin with delete.
7610
76e75227
SM
76112017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7612
7613 * solib-svr4.h (struct lm_info_svr4): Initialize fields.
7614 <l_addr_p>: Change type to bool.
7615 * solib-svr4.c (lm_info_read): Allocate lm_info_svr4 with new.
7616 (svr4_free_so): Free lm_info_svr4 with delete.
7617 (svr4_copy_library_list): Replace memcpy with call to copy
7618 constructor.
7619 (library_list_start_library, svr4_default_sos): Allocate
7620 lm_info_svr4 with new.
7621
51046d9e
SM
76222017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7623
7624 * solib-target.c (struct lm_info_target): Add destructor,
7625 initialize fields.
7626 <name>: Change type to std::string.
7627 (library_list_start_library): Allocate lm_info_target with new.
7628 (solib_target_free_library_list): Free lm_info_target with
7629 delete.
7630 (solib_target_current_sos): Adapt to std::string.
7631 (solib_target_free_so): Free lm_info_target with delete.
7632
4023ae76
SM
76332017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7634
7635 * solib-frv.c (struct lm_info_frv): Add destructor, initialize
7636 fields.
7637 (frv_current_sos): Allocate lm_info_frv with new.
7638 (frv_relocate_main_executable): Free lm_info_frv with delete,
7639 allocate with new.
7640 (frv_clear_solib, frv_free_so): Free lm_info_frv with delete.
7641
af43057b
SM
76422017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7643
7644 * solib-frv.c (struct lm_info_frv): Fix indentation.
7645
b0911207
SM
76462017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7647
7648 * solib-dsbt.c (struct lm_info_dsbt): Add destructor, initialize
7649 map field.
7650 (dsbt_current_sos): Allocate lm_info_dsbt with new.
7651 (dsbt_relocate_main_executable): Free lm_info_dsbt with delete
7652 and allocate with new.
7653 (dsbt_clear_solib, dsbt_free_so): Free lm_info_dsbt with delete.
7654
6c401f72
SM
76552017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7656
7657 * solib-aix.c (struct lm_info_aix): Initialize fields in-class.
7658 <filename, member_name>: Change type to std::string.
7659 (solib_aix_new_lm_info, solib_aix_xfree_lm_info): Remove.
7660 (library_list_start_library): Allocate lm_info_aix with new.
7661 (solib_aix_free_library_list, solib_aix_free_so): Free with delete.
7662 (solib_aix_current_sos): Adapt to std::string, copy lm_info_aix
7663 with copy constructor.
7664
d0e449a1
SM
76652017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7666
7667 * solist.h (struct lm_info): Remove.
7668 (struct lm_info_base): New class.
7669 (struct so_list) <lm_info>: Change type to lm_info_base *.
7670 * nto-tdep.c (struct lm_info): Remove.
7671 (lm_addr): Adjust.
7672 * solib-aix.c (struct lm_info): Rename to ...
7673 (struct lm_info_aix): ... this. Extend lm_info_base.
7674 (lm_info_p): Rename to ...
7675 (lm_info_aix_p): ... this, and adjust.
7676 (solib_aix_new_lm_info, solib_aix_xfree_lm_info,
7677 solib_aix_parse_libraries, library_list_start_library,
7678 solib_aix_free_library_list, solib_aix_parse_libraries,
7679 solib_aix_get_library_list,
7680 solib_aix_relocate_section_addresses, solib_aix_free_so,
7681 solib_aix_get_section_offsets,
7682 solib_aix_solib_create_inferior_hook, solib_aix_current_sos):
7683 Adjust.
7684 (struct solib_aix_inferior_data) <library_list>: Adjust.
7685 * solib-darwin.c (struct lm_info): Rename to ...
7686 (struct lm_info_darwin): ... this. Extend lm_info_base.
7687 (darwin_current_sos, darwin_relocate_section_addresses): Adjust.
7688 * solib-dsbt.c (struct lm_info): Rename to ...
7689 (struct lm_info_dsbt): ... this. Extend lm_info_base.
7690 (struct dsbt_info) <main_executable_lm_info): Adjust.
7691 (dsbt_current_sos, dsbt_relocate_main_executable, dsbt_free_so,
7692 dsbt_relocate_section_addresses): Adjust.
7693 * solib-frv.c (struct lm_info): Rename to ...
7694 (struct lm_info_frv): ... this. Extend lm_info_base.
7695 (main_executable_lm_info): Adjust.
7696 (frv_current_sos, frv_relocate_main_executable, frv_free_so,
7697 frv_relocate_section_addresses, frv_fdpic_find_global_pointer,
7698 find_canonical_descriptor_in_load_object,
7699 frv_fdpic_find_canonical_descriptor): Adjust.
7700 * solib-svr4.c (struct lm_info): Move to solib-svr4.h, renamed
7701 to lm_info_svr4.
7702 (lm_info_read, lm_addr_check, svr4_keep_data_in_core,
7703 svr4_clear_so, svr4_copy_library_list,
7704 library_list_start_library, svr4_default_sos, svr4_read_so_list,
7705 svr4_current_sos, svr4_fetch_objfile_link_map,
7706 solist_update_incremental): Adjust.
7707 * solib-svr4.h (struct lm_info_svr4): Move here from
7708 solib-svr4.c.
7709 * solib-target.c (struct lm_info): Rename to ...
7710 (struct lm_info_target): ... this. Extend lm_info_base.
7711 (lm_info_p): Rename to ...
7712 (lm_info_target_p): ... this.
7713 (solib_target_parse_libraries, library_list_start_segment,
7714 library_list_start_section, library_list_start_library,
7715 library_list_end_library, solib_target_free_library_list,
7716 solib_target_current_sos, solib_target_free_so,
7717 solib_target_relocate_section_addresses): Adjust.
7718 * windows-nat.c (struct lm_info): Rename to ...
7719 (struct lm_info_windows): ... this. Extend lm_info_base.
7720 (windows_make_so, handle_load_dll, handle_unload_dll,
7721 windows_xfer_shared_libraries): Adjust.
7722
434a4023
SM
77232017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7724
7725 * solib-darwin.c (struct darwin_so_list): Remove.
7726 (darwin_current_sos): Allocate an so_list object instead of a
7727 darwin_so_list, separately allocate an lm_info object.
7728 (darwin_free_so): Free lm_info.
7729
428544e8
JB
77302017-04-28 John Baldwin <jhb@FreeBSD.org>
7731
7732 * mips-tdep.c (print_gp_register_row): Replace printf_filtered
7733 with fprintf_filtered.
7734
4621115f
YQ
77352017-04-28 Yao Qi <yao.qi@linaro.org>
7736
7737 * regcache.c (regcache::regcache): New function.
7738 (regcache::~regcache): New function.
7739 (regcache_xmalloc_1): Remove.
7740 (regcache_xmalloc): Call new regcache.
7741 (regcache_xfree): Call delete regcache.
7742 (get_thread_arch_aspace_regcache): Call new regcache.
7743
339053c2
YQ
77442017-04-28 Yao Qi <yao.qi@linaro.org>
7745
7746 * mips-linux-nat.c (mips_linux_new_thread): Use ptid method
7747 lwp instead of ptid_get_lwp.
7748
7974a605
YQ
77492017-04-28 Yao Qi <yao.qi@linaro.org>
7750
7751 * mips-linux-nat.c (mips_linux_new_thread): Get lwpid from
7752 lwp_info instead of getting from inferior_ptid.
7753
e15c3eb4
KS
77542017-04-27 Keith Seitz <keiths@redhat.com>
7755
7756 * gdbtypes.c (LVALUE_REFERENCE_TO_RVALUE_BINDING_BADNESS)
7757 DIFFERENT_REFERENCE_TYPE_BADNESS): Remove.
7758 (CV_CONVERSION_BADNESS): Define.
7759 (rank_one_type): Remove overly restrictive rvalue reference
7760 rank checks.
7761 Add cv-qualifier checks and subranks for type equality.
7762 * gdbtypes.h (REFERENCE_CONVERSION_RVALUE,
7763 REFERENCE_CONVERSION_CONST_LVALUE, CV_CONVERSION_BADNESS,
7764 CV_CONVERSION_CONST, CV_CONVERSION_VOLATILE): Declare.
7765
72bc1d24
SM
77662017-04-27 Simon Marchi <simon.marchi@ericsson.com>
7767
7768 * python/py-inferior.c (inferior_to_inferior_object): Increment reference
7769 count when creating the object.
7770
55bcecda
UW
77712017-04-27 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
7772 Ulrich Weigand <uweigand@de.ibm.com>
7773
7774 * xcoffread.c (read_xcoff_symtab): Read correct function auxiliary
7775 entry if xlc -qfuncsect or gcc -ffunction-sections compiler option
7776 is used in AIX.
7777 (read_xcoff_symtab): Handle C_WEAKEXT storage class.
7778 (process_xcoff_symbol): Likewise.
7779 (scan_xcoff_symtab): Likewise.
7780
5c99fcf8
AH
77812017-04-26 Alan Hayward <alan.hayward@arm.com>
7782
7783 * ia64-tdep.c (examine_prologue): Use get_frame_register_unsigned.
7784 (ia64_sigtramp_frame_prev_register): Use read_memory_unsigned_integer.
7785 (ia64_access_reg): Use get_frame_register_unsigned.
7786 (ia64_access_rse_reg): Likewise.
7787 (ia64_libunwind_frame_prev_register): Likewise.
7788
b41c5a85
JW
77892017-04-26 Jiong Wang <jiong.wang@arm.com>
7790
7791 * gdbarch.sh: New gdbarch method execute_dwarf_cfa_vendor_op.
7792 * gdbarch.c: Regenerated.
7793 * gdbarch.h: Regenerated.
7794 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Made the
7795 visibility external.
7796 (execute_cfa_program): Call execute_dwarf_cfa_vendor_op for CFI
7797 between DW_CFA_lo_user and DW_CFA_high_user inclusive.
7798 (enum cfa_how_kind): Move to ...
7799 (struct dwarf2_frame_state_reg_info): Likewise.
7800 (struct dwarf2_frame_state): Likewise.
7801 * dwarf2-frame.h: ... here.
7802 (dwarf2_frame_state_alloc_regs): New declaration.
7803 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): New function.
7804 (sparc32_gdbarch_init): Register execute_dwarf_cfa_vendor_op hook.
7805
c185f580
AH
78062017-04-26 Alan Hayward <alan.hayward@arm.com>
7807
7808 * xtensa-tdep.c (xtensa_pseudo_register_read): Use
7809 regcache_raw_read_unsigned.
7810 (xtensa_pseudo_register_write): Likewise.
7811
19c45594
AH
78122017-04-26 Alan Hayward <alan.hayward@arm.com>
7813
7814 * nds32-tdep.c (nds32_pseudo_register_read): Abort on errors.
7815 (nds32_pseudo_register_write): Likewise.
7816
4658f12e
YQ
78172017-04-25 Yao Qi <yao.qi@linaro.org>
7818
7819 * regcache.c (struct regcache) <readonly_p>: Change its type
7820 to bool.
7821 (regcache_xmalloc_1): Update parameter type and callers update.
7822
d581dda8
YQ
78232017-04-25 Yao Qi <yao.qi@linaro.org>
7824
7825 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
7826 set_gdbarch_wchar_bit.
7827 * arm-tdep.c (arm_gdbarch_init): Likewise.
7828
debed3db
PA
78292017-04-25 Pedro Alves <palves@redhat.com>
7830
7831 * common/poison.h [!HAVE_IS_TRIVIALLY_COPYABLE] (IsRelocatable)
7832 (BothAreRelocatable, memcopy, memmove): Don't define.
7833 * common/traits.h (__has_feature, HAVE_IS_TRIVIALLY_COPYABLE): New
7834 macros.
7835
b0b92aeb
PA
78362017-04-25 Pedro Alves <palves@redhat.com>
7837
7838 * common/common-defs.h: Include "common/poison.h".
7839 * common/function-view.h: (Not, Or, Requires): Move to traits.h
7840 and adjust.
7841 * common/poison.h: New file.
7842 * common/traits.h: Include <type_traits>.
7843 (Not, Or, Requires): New, moved from common/function-view.h.
7844
16c4d54a
PA
78452017-04-25 Pedro Alves <palves@redhat.com>
7846
7847 * breakpoint.h (struct breakpoint): In-class initialize all
7848 fields. Make boolean fields "bool".
7849 * breakpoint.c (init_raw_breakpoint_without_location): Remove
7850 memset call and initializations no longer necessary.
7851
b5c36682
PA
78522017-04-25 Pedro Alves <palves@redhat.com>
7853
7854 * btrace.c (pt_btrace_insn_flags): Change parameter type to
7855 reference.
7856 (pt_btrace_insn): New function.
7857 (ftrace_add_pt): Remove memset call and use pt_btrace_insn.
7858
5625a286
PA
78592017-04-25 Pedro Alves <palves@redhat.com>
7860
7861 * ada-lang.c (ada_catchpoint_location): Now a "class". Remove
7862 "base" field and inherit from "bp_location" instead. Add
7863 non-default ctor.
7864 (allocate_location_exception): Use new non-default ctor.
7865 * breakpoint.c (get_first_locp_gte_addr): Remove memset call.
7866 (init_bp_location): Convert to ...
7867 (bp_location::bp_location): ... this new ctor, and remove memset
7868 call.
7869 (base_breakpoint_allocate_location): Use the new non-default ctor.
7870 * breakpoint.h (bp_location): Now a class. Declare default and
7871 non-default ctors. In-class initialize all members.
7872 (init_bp_location): Remove declaration.
7873
23bcc18f
PA
78742017-04-25 Pedro Alves <palves@redhat.com>
7875
7876 * common/enum-flags.h (enum_flags): Don't implement copy ctor and
7877 assignment operator.
7878
e1ba3053
YQ
78792017-04-24 Yao Qi <yao.qi@linaro.org>
7880
7881 * doublest.c (convert_doublest_to_floatformat): Call
7882 floatformat_totalsize_bytes.
7883
10f489e5
TT
78842017-04-22 Tom Tromey <tom@tromey.com>
7885
7886 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
7887 ui_out_emit_list.
7888 * stack.c (print_frame): Use ui_out_emit_list.
7889 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
7890 ui_out_emit_list.
7891 * mi/mi-main.c (print_one_inferior)
7892 (mi_cmd_data_list_register_names)
7893 (mi_cmd_data_list_register_values, mi_cmd_list_features)
7894 (mi_cmd_list_target_features, mi_cmd_trace_frame_collected): Use
7895 ui_out_emit_list.
7896 * mi/mi-interp.c (mi_on_normal_stop_1): Use ui_out_emit_list.
7897 (mi_output_solib_attribs): Use ui_out_emit_list,
7898 ui_out_emit_tuple.
7899 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_list.
7900 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
7901 (mi_cmd_stack_list_args, list_args_or_locals): Use
7902 ui_out_emit_list.
7903 * disasm.c (do_assembly_only): Use ui_out_emit_list.
7904 * breakpoint.c (print_solib_event, output_thread_groups): Use
7905 ui_out_emit_list.
7906
0092b74d
TT
79072017-04-22 Tom Tromey <tom@tromey.com>
7908
7909 * mi/mi-main.c (print_variable_or_computed): Use ui_out_emit_tuple.
7910 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_tuple.
7911 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_out_emit_tuple.
7912
a14a62dd
TT
79132017-04-22 Tom Tromey <tom@tromey.com>
7914
7915 * tracepoint.c (tvariables_info_1)
7916 (print_one_static_tracepoint_marker): Use ui_out_emit_tuple.
7917
46b9c129
TT
79182017-04-22 Tom Tromey <tom@tromey.com>
7919
7920 * stack.c (print_frame_arg): Use ui_out_emit_tuple,
7921 annotate_arg_emitter.
7922 * breakpoint.c (print_mention_watchpoint)
7923 (print_mention_masked_watchpoint): Use ui_out_emit_tuple.
7924 * annotate.h (struct annotate_arg_emitter): New.
7925
2e783024
TT
79262017-04-22 Tom Tromey <tom@tromey.com>
7927
7928 * record-btrace.c (record_btrace_insn_history)
7929 (record_btrace_insn_history_range, record_btrace_call_history)
7930 (record_btrace_call_history_range): Use ui_out_emit_tuple.
7931 * thread.c (do_captured_list_thread_ids, print_thread_info_1): Use
7932 ui_out_emit_tuple.
7933 * stack.c (print_frame_info): Use ui_out_emit_tuple.
7934 * solib.c (info_sharedlibrary_command): Use ui_out_emit_tuple.
7935 * skip.c (skip_info): Use ui_out_emit_tuple.
7936 * remote.c (show_remote_cmd): Use ui_out_emit_tuple.
7937 * progspace.c (print_program_space): Use ui_out_emit_tuple.
7938 * probe.c (info_probes_for_ops): Use ui_out_emit_tuple.
7939 * osdata.c (info_osdata): Use ui_out_emit_tuple.
7940 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
7941 ui_out_emit_tuple.
7942 * mi/mi-main.c (print_one_inferior, list_available_thread_groups)
7943 (output_register, mi_cmd_data_read_memory)
7944 (mi_cmd_data_read_memory_bytes, mi_load_progress)
7945 (mi_cmd_trace_frame_collected): Use ui_out_emit_tuple.
7946 * mi/mi-cmd-var.c (mi_cmd_var_list_children, varobj_update_one):
7947 Use ui_out_emit_tuple.
7948 * mi/mi-cmd-stack.c (mi_cmd_stack_list_args): Use
7949 ui_out_emit_tuple.
7950 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
7951 (mi_cmd_info_gdb_mi_command): Use ui_out_emit_tuple.
7952 * linux-thread-db.c (info_auto_load_libthread_db): Use
7953 ui_out_emit_tuple.
7954 * inferior.c (print_inferior): Use ui_out_emit_tuple.
7955 * gdb_bfd.c (print_one_bfd): Use ui_out_emit_tuple.
7956 * disasm.c (do_mixed_source_and_assembly_deprecated)
7957 (do_mixed_source_and_assembly): Use ui_out_emit_tuple.
7958 * cp-abi.c (list_cp_abis): Use ui_out_emit_tuple.
7959 * cli/cli-setshow.c (cmd_show_list): Use ui_out_emit_tuple.
7960 * breakpoint.c (print_one_breakpoint_location)
7961 (print_one_breakpoint): Use ui_out_emit_tuple.
7962 * auto-load.c (print_script, info_auto_load_cmd): Use
7963 ui_out_emit_tuple.
7964 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_tuple.
7965
9be21bb4
SM
79662017-04-21 Simon Marchi <simon.marchi@ericsson.com>
7967
7968 * thread.c (print_thread_info_1): Remove dead code.
7969
0d4c07af
JK
79702017-04-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7971
7972 * aarch64-tdep.c (selftests::aarch64_process_record_test): Make it #if
7973 GDB_SELF_TEST.
7974 * arm-tdep.c (selftests::arm_record_test): Likewise.
7975
4daf993d
YQ
79762017-04-21 Yao Qi <yao.qi@linaro.org>
7977
7978 * regcache.c (regcache_restore): Remove argument 2. Replace
7979 argument 3 with regcache. Get register status from
7980 src->register_status and get register contents from
7981 register_buffer (src, regnum).
7982 (regcache_cpy): Update.
7983
a6c21d4a
PA
79842017-04-19 Pedro Alves <palves@redhat.com>
7985
7986 * gdbthread.h (thread): Add missing closing parenthesis in
7987 comment.
7988
3a3fd0fd
PA
79892017-04-19 Pedro Alves <palves@redhat.com>
7990
7991 * common/refcounted-object.h: New file.
7992 * gdbthread.h: Include "common/refcounted-object.h".
7993 (thread_info): Inherit from refcounted_object and add comments.
7994 (thread_info::incref, thread_info::decref)
7995 (thread_info::m_refcount): Delete.
7996 (thread_info::deletable): Use the refcounted_object::refcount()
7997 method.
7998 * inferior.c (current_inferior_): Add comment.
7999 (set_current_inferior): Increment/decrement refcounts.
8000 (prune_inferiors, remove_inferior_command): Skip inferiors marked
8001 not-deletable instead of comparing with the current inferior.
8002 (initialize_inferiors): Increment the initial inferior's refcount.
8003 * inferior.h (struct inferior): Forward declare.
8004 Include "common/refcounted-object.h".
8005 (current_inferior, set_current_inferior): Move declaration to
8006 before struct inferior's definition, and fix comment.
8007 (inferior): Inherit from refcounted_object. Add comments.
8008 * thread.c (switch_to_thread_no_regs): Reference the thread's
8009 inferior pointer directly instead of doing a ptid lookup.
8010 (switch_to_no_thread): New function.
8011 (switch_to_thread(thread_info *)): New function, factored out
8012 from ...
8013 (switch_to_thread(ptid_t)): ... this.
8014 (restore_current_thread): Delete.
8015 (current_thread_cleanup): Remove 'inf_id' and 'was_removable'
8016 fields, and add 'inf' field.
8017 (do_restore_current_thread_cleanup): Check whether old->inf is
8018 alive instead of looking up an inferior by ptid. Use
8019 switch_to_thread and switch_to_no_thread.
8020 (restore_current_thread_cleanup_dtor): Use old->inf directly
8021 instead of lookup up an inferior by id. Decref the inferior.
8022 Don't restore 'removable'.
8023 (make_cleanup_restore_current_thread): Same the inferior pointer
8024 in old, instead of the inferior number. Incref the inferior.
8025 Don't save/clear 'removable'.
8026
9bcb1f16
PA
80272017-04-19 Pedro Alves <palves@redhat.com>
8028
8029 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
8030 unittests/scoped_restore-selftests.c.
8031 (SUBDIR_UNITTESTS_OBS): Add scoped_restore-selftests.o.
8032 * common/scoped_restore.h (scoped_restore_base): Make "class".
8033 (scoped_restore_base::release): New public method.
8034 (scoped_restore_base::scoped_restore_base): New protected ctor.
8035 (scoped_restore_base::m_saved_var): New protected field.
8036 (scoped_restore_tmpl::scoped_restore_tmpl(T*)): Initialize the
8037 scoped_restore_base base class instead of m_saved_var directly.
8038 (scoped_restore_tmpl::scoped_restore_tmpl(T*, T2)): Likewise.
8039 (scoped_restore_tmpl::scoped_restore_tmpl(const
8040 scoped_restore_tmpl<T>&)): Likewise.
8041 (scoped_restore_tmpl::~scoped_restore_tmpl): Use the saved_var
8042 method.
8043 (scoped_restore_tmpl::saved_var): New method.
8044 (scoped_restore_tmpl::m_saved_var): Delete.
8045 * inferior.h (inferior::detaching): Now a bool.
8046 * infrun.c (prepare_for_detach): Use a scoped_restore instead of a
8047 cleanup.
8048 * unittests/scoped_restore-selftests.c: New file.
8049
26fcd539
PA
80502017-04-19 Pedro Alves <palves@redhat.com>
8051
8052 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS):
8053 Re-sort in alphabetic order.
8054
fdd243b0
PA
80552017-04-18 Pedro Alves <palves@redhat.com>
8056
8057 * xml-support.c (obstack_xml_printf): Delete.
8058 * xml-support.h (obstack_xml_printf): Delete.
8059
4895cde2
PA
80602017-04-18 Pedro Alves <palves@redhat.com>
8061
8062 * xml-support.c (gdb_xml_parser) <use_dtd, dtd_name, parse,
8063 vdebug, verror, body_text, start_element, end_element, name,
8064 user_data, set_is_xinclude, set_error, expat_parser>: New methods.
8065 <name, user_data, expat_parser, scopes, error, last_line, dtd_name,
8066 is_xinclude>: Make private and add m_ prefix.
8067 (gdb_xml_parser::body_text): New method, based on ...
8068 (gdb_xml_body_text): ... this. Adjust.
8069 (gdb_xml_parser::vdebug): New method, based on ...
8070 (gdb_xml_debug): ... this. Adjust.
8071 (gdb_xml_parser::verror): New method, based on ...
8072 (gdb_xml_error): ... this. Adjust.
8073 (gdb_xml_parser::start_element): New method, based on ...
8074 (gdb_xml_start_element): ... this. Adjust.
8075 (gdb_xml_start_element_wrapper): Defer to
8076 gdb_xml_parser::start_element and gdb_xml_parser::set_error.
8077 (gdb_xml_parser::end_element): New method, based on ...
8078 (gdb_xml_end_element_wrapper): ... this. Adjust.
8079 (gdb_xml_parser::~gdb_xml_parser): Adjust.
8080 (gdb_xml_parser::gdb_xml_parser): Adjust to field renames.
8081 (gdb_xml_parser::use_dtd): New method, based on ...
8082 (gdb_xml_use_dtd): ... this. Adjust.
8083 (gdb_xml_parser::parse): New method, based on ...
8084 (gdb_xml_parse): ... this. Adjust.
8085 (gdb_xml_parse_quick): Adjust to call the parser's parse method.
8086 (xinclude_start_include): Adjust to call the parser's name method.
8087 (xml_xinclude_default, xml_xinclude_start_doctype)
8088 (xml_xinclude_end_doctype): Adjust to call the parser's user_data
8089 method.
8090 (xml_process_xincludes): Adjust to call parser methods.
8091 * xml-support.h (gdb_xml_use_dtd, gdb_xml_parse): Delete
8092 declarations.
8093
bd8a901f
PA
80942017-04-18 Pedro Alves <palves@redhat.com>
8095
8096 * tracefile-tfile.c (tfile_write_tdesc): Adjust to use
8097 gdb::optional<std::string>.
8098 * xml-support.c: Include <string>.
8099 (scope_level::scope_level(scope_level &&))
8100 (scope_level::~scope_level): Delete.
8101 (scope_level::body): Now a std::string.
8102 (gdb_xml_body_text, gdb_xml_end_element): Adjust.
8103 (xinclude_parsing_data::xinclude_parsing_data): Add 'output'
8104 parameter.
8105 (xinclude_parsing_data::~xinclude_parsing_data): Delete.
8106 (xinclude_parsing_data::output): Now a std::string reference.
8107 (xinclude_start_include): Adjust.
8108 (xml_xinclude_default): Adjust.
8109 (xml_process_xincludes): Add 'output' parameter, and return bool.
8110 * xml-support.h (xml_process_xincludes): Add 'output' parameter,
8111 and return bool.
8112 * xml-tdesc.c: Include <unordered_map> and <string>.
8113 (tdesc_xml_cache): Delete.
8114 (tdesc_xml_cache_s): Delete.
8115 (xml_cache): Now an std::unordered_map.
8116 (tdesc_parse_xml): Adjust to use std::string and unordered_map.
8117 (target_fetch_description_xml): Change return type to
8118 gdb::optional<std::string>, and adjust.
8119 * xml-tdesc.h: Include "common/gdb_optional.h" and <string>.
8120 (target_fetch_description_xml): Change return type to
8121 gdb::optional<std::string>.
8122
d35d1958
PA
81232017-04-18 Pedro Alves <palves@redhat.com>
8124
8125 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
8126 unittests/optional-selftests.c.
8127 (SUBDIR_UNITTESTS_OBS): Add optional-selftests.o.
8128 * unittests/optional-selftests.c: New file.
8129 * unittests/optional/assignment/1.cc: New file.
8130 * unittests/optional/assignment/2.cc: New file.
8131 * unittests/optional/assignment/3.cc: New file.
8132 * unittests/optional/assignment/4.cc: New file.
8133 * unittests/optional/assignment/5.cc: New file.
8134 * unittests/optional/assignment/6.cc: New file.
8135 * unittests/optional/assignment/7.cc: New file.
8136 * unittests/optional/cons/copy.cc: New file.
8137 * unittests/optional/cons/default.cc: New file.
8138 * unittests/optional/cons/move.cc: New file.
8139 * unittests/optional/cons/value.cc: New file.
8140 * unittests/optional/in_place.cc: New file.
8141 * unittests/optional/observers/1.cc: New file.
8142 * unittests/optional/observers/2.cc: New file.
8143
22796e97
PA
81442017-04-18 Pedro Alves <palves@redhat.com>
8145
8146 * common/gdb_optional.h: Include common/traits.h.
8147 (in_place_t): New type.
8148 (in_place): New constexpr variable.
8149 (optional::optional): Remove member initialization of
8150 m_instantiated.
8151 (optional::optional(in_place_t...)): New constructor.
8152 (optional::~optional): Use reset.
8153 (optional::optional(const optional&)): New.
8154 (optional::optional(const optional&&)): New.
8155 (optional::optional(T &)): New.
8156 (optional::optional(T &&)): New.
8157 (operator::operator=(const optional &)): New.
8158 (operator::operator=(optional &&)): New.
8159 (operator::operator= (const T &))
8160 (operator::operator= (T &&))
8161 (operator::emplace (Args &&... args)): Return a T&. Use reset.
8162 (operator::reset): New.
8163 (operator::m_instantiated):: Add in-class initializer.
8164 * common/traits.h: Include <type_traits>.
8165 (struct And): New types.
8166
a7fc9b61
PA
81672017-04-18 Pedro Alves <palves@redhat.com>
8168
8169 * xml-support.c: Include <vector>.
8170 (scope_level::scope_level(const gdb_xml_element *))
8171 (scope_level::scope_level(scope_level&&)): New.
8172 (scope_level::~scope_level): New.
8173 (scope_level_s): Delete.
8174 (gdb_xml_parser::scopes): Now a std::vector.
8175 (gdb_xml_body_text, gdb_xml_start_element, gdb_xml_end_element):
8176 Use std::vector.
8177 (gdb_xml_parser::~gdb_xml_parser): Remove now unnecessary
8178 scope cleanup code.
8179 (gdb_xml_parser::gdb_xml_parser): Remove explicit initialization
8180 of the scopes member. Use std::vector::emplace_back.
8181
010151c9
PA
81822017-04-18 Pedro Alves <palves@redhat.com>
8183
8184 * xml-support.c (gdb_xml_parser): Add ctor/dtor. Make is_xinclude
8185 a bool.
8186 (gdb_xml_end_element): Change type of first parameter.
8187 (gdb_xml_cleanup): Rename to ...
8188 (gdb_xml_parser::~gdb_xml_parser): ... this.
8189 (gdb_xml_create_parser_and_cleanup): Delete with ...
8190 (gdb_xml_parser::gdb_xml_parser): ... creation parts factored out
8191 to this new ctor.
8192 (gdb_xml_parse_quick): Create a local gdb_xml_parser instead of
8193 using gdb_xml_create_parser_and_cleanup.
8194 (xinclude_parsing_data): Add ctor/dtor.
8195 (xml_xinclude_cleanup): Delete.
8196 (xml_process_xincludes): Create a local xinclude_parsing_data
8197 instead of heap-allocating one. Create a local gdb_xml_parser
8198 instead of heap-allocating one with
8199 gdb_xml_create_parser_and_cleanup.
8200
d56060f0
JB
82012017-04-18 John Baldwin <jhb@FreeBSD.org>
8202
8203 PR threads/20743
8204 * fbsd-nat.c (resume_one_thread_cb): Remove.
8205 (resume_all_threads_cb): Remove.
8206 (fbsd_resume): Use ALL_NON_EXITED_THREADS instead of
8207 iterate_over_threads.
8208
305d16a9
JB
82092017-04-17 Joel Brobecker <brobecker@adacore.com>
8210
8211 * NEWS: Create a new section for the next release branch.
8212 Rename the section of the current branch, now that it has
8213 been cut.
8214
8bb57231
JB
82152017-04-17 Joel Brobecker <brobecker@adacore.com>
8216
8217 GDB 8.0 branch created (725bf5cf125783c2a7ca4ab63d3768e220bab2db):
8218 * version.in: Bump version to 8.0.50.DATE-git.
8219
096c92dd
SDJ
82202017-04-13 Sergio Durigan Junior <sergiodj@redhat.com>
8221
8222 PR gdb/21385
8223 * windows-nat.c (windows_create_inferior): Declare 'allargs'
8224 independently of the host, and fix build breakage on Cygwin.
8225
0550c955
PA
82262017-04-13 Pedro Alves <palves@redhat.com>
8227
8228 * inferior.c (free_inferior): Convert to ...
8229 (inferior::~inferior): ... this dtor.
8230 (inferior::inferior): New ctor, factored out from ...
8231 (add_inferior_silent): ... here. Allocate the inferior with a new
8232 expression.
8233 (delete_inferior): Call delete instead of free_inferior.
8234 * inferior.h (gdb_environ, continuation): Forward declare.
8235 (inferior): Now a class. Add in-class initialization to all
8236 members. Make boolean fields bool, except 'detaching'.
8237 (inferior::inferior): New explicit ctor.
8238 (inferior::~inferior): New.
8239
e3d60dfc
PA
82402017-04-13 Pedro Alves <palves@redhat.com>
8241
8242 * inferior.c (init_inferior_list): Delete.
8243 * inferior.h (init_inferior_list): Delete.
8244
5fd69d0a
PA
82452017-04-13 Pedro Alves <palves@redhat.com>
8246
8247 PR threads/13217
8248 * gdb.threads/threadapply.exp (thr_apply_detach): New procedure.
8249 (top level): Call it twice, with different thread sets.
8250
c6609450
PA
82512017-04-13 Pedro Alves <palves@redhat.com>
8252
8253 * thread.c: Include <algorithm>.
8254 (thread_array_cleanup): Delete.
8255 (scoped_inc_dec_ref): New class.
8256 (live_threads_count): New function.
8257 (set_thread_refcount): Delete.
8258 (tp_array_compar_ascending): Now a bool.
8259 (tp_array_compar): Convert to a std::sort comparison function.
8260 (thread_apply_all_command): Use std::vector and scoped_inc_dec_ref
8261 and live_threads_count.
8262
2a00d7ce
PA
82632017-04-13 Pedro Alves <palves@redhat.com>
8264
8265 * infrun.c (follow_fork_inferior): Also switch the current
8266 inferior.
8267
441d7c93
PA
82682017-04-13 Pedro Alves <palves@redhat.com>
8269
8270 * breakpoint.c (watch_command_1): Save watchpoint-frame info
8271 before calling create_internal_breakpoint.
8272
808480f6
PA
82732017-04-13 Pedro Alves <palves@redhat.com>
8274
8275 * fork-child.c (execv_argv): New class.
8276 (breakup_args): Refactored as ...
8277 (execv_argv::init_for_no_shell): .. this method of execv_argv.
8278 Copy arguments to storage and replace separators with NULL
8279 terminators in place.
8280 (escape_bang_in_quoted_argument): Adjust to return bool.
8281 (execv_argv::execv_argv): New ctor.
8282 (execv_argv::init_for_shell): New method, factored out from
8283 fork_inferior. Don't strdup strings into the vector.
8284 (fork_inferior): Eliminate "shell" local and use execv_argv. Use
8285 Remove free_vector_argv call.
8286
ad3d022a
YQ
82872017-04-13 Yao Qi <yao.qi@linaro.org>
8288
8289 * rx-tdep.c (rx_fpsw_type): Check tdep->rx_fpsw_type instead of
8290 tdep->rx_psw_type.
8291
e6ddc3bf
YQ
82922017-04-13 Yao Qi <yao.qi@linaro.org>
8293
8294 * rl78-tdep.c (rl78_gdbarch_init): Use XCNEW instead of XNEW.
8295 * rx-tdep.c (rx_gdbarch_init): Likewise.
8296
bfb8cf90
PA
82972017-04-13 Pedro Alves <palves@redhat.com>
8298
8299 * breakpoint.h (struct breakpoint): Reindent.
8300
f5336ca5
PA
83012017-04-13 Pedro Alves <palves@redhat.com>
8302
8303 * breakpoint.c (bp_location): Rename to ...
8304 (bp_locations): ... this. All references updated.
8305 (bp_location_count): Rename to ...
8306 (bp_locations_count): ... this. All references updated.
8307 (bp_location_placed_address_before_address_max): Rename to ...
8308 (bp_locations_placed_address_before_address_max): ... this. All
8309 references updated.
8310 (bp_location_shadow_len_after_address_max): Rename to ...
8311 (bp_locations_shadow_len_after_address_max): ... this. All
8312 references updated.
8313 (bp_location_compare_addrs): Rename to ...
8314 (bp_locations_compare_addrs): ... this. All references updated.
8315 (bp_location_compare):Rename to ...
8316 (bp_locations_compare): ... this. All references updated.
8317 (bp_location_target_extensions_update): Rename to ...
8318 (bp_locations_target_extensions_update): ... this. All references
8319 updated.
8320
be628ab8
SDJ
83212017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
8322
8323 * Makefile.in (HFILES_NO_SRCDIR): Add "common/gdb_termios.h".
8324 * common/common.m4: Check headers 'termios.h', 'termio.h' and
8325 'sgtty.h'.
8326 * common/gdb_termios.h: New file, with parts of "terminal.h".
8327 * inflow.c: Include "gdb_termios.h".
8328 * ser-unix.c: Include "gdb_termios.h".
8329 * terminal.h: Move terminal-related defines to
8330 "common/gdb_termios.h".
8331
8e9e35b1
TT
83322017-04-12 Tom Tromey <tom@tromey.com>
8333
8334 * probe.c (parse_probes): Update.
8335 * location.h (delete_event_location): Don't declare.
8336 (event_location_deleter::operator()): Update.
8337 * location.c (event_location_deleter::operator()): Rename from
8338 delete_event_location.
8339 * linespec.h (linespec_result) <location>: Change type to
8340 event_location_up.
8341 * linespec.c (canonicalize_linespec, event_location_to_sals)
8342 (decode_objc): Update.
8343 (linespec_result): Don't call delete_event_location.
8344 * breakpoint.c (create_breakpoints_sal)
8345 (bkpt_probe_create_sals_from_location)
8346 (strace_marker_create_sals_from_location): Update.
8347
16e802b9
TT
83482017-04-12 Tom Tromey <tom@tromey.com>
8349
8350 * linespec.h (struct linespec_result): Add constructor and
8351 destructor.
8352 (init_linespec_result, destroy_linespec_result)
8353 (make_cleanup_destroy_linespec_result): Don't declare.
8354 * linespec.c (init_linespec_result): Remove.
8355 (linespec_result::~linespec_result): Rename from
8356 destroy_linespec_result. Update.
8357 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
8358 Remove.
8359 * breakpoint.c (create_breakpoint, break_range_command)
8360 (decode_location_default): Update.
8361 * ax-gdb.c (agent_command_1): Update.
8362
d28cd78a
TT
83632017-04-12 Tom Tromey <tom@tromey.com>
8364
8365 * remote.c (remote_download_tracepoint): Update.
8366 * python/py-breakpoint.c (bppy_get_location): Update.
8367 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob)
8368 (gdbscm_breakpoint_location): Update.
8369 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Update.
8370 * breakpoint.h (struct breakpoint) <location, location_range_end>:
8371 Change type to event_location_up.
8372 * breakpoint.c (create_overlay_event_breakpoint)
8373 (create_longjmp_master_breakpoint)
8374 (create_std_terminate_master_breakpoint)
8375 (create_exception_master_breakpoint)
8376 (breakpoint_event_location_empty_p, print_breakpoint_location)
8377 (print_one_breakpoint_location, create_thread_event_breakpoint)
8378 (init_breakpoint_sal, create_breakpoint)
8379 (print_recreate_ranged_breakpoint, break_range_command)
8380 (init_ada_exception_breakpoint, say_where): Update.
8381 (base_breakpoint_dtor): Don't call delete_event_location.
8382 (bkpt_print_recreate, tracepoint_print_recreate)
8383 (dprintf_print_recreate, update_static_tracepoint)
8384 (breakpoint_re_set_default): Update.
8385
711799d5
TT
83862017-04-12 Tom Tromey <tom@tromey.com>
8387
8388 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
8389 type of "to_do". Update.
8390 (compute_stack_depth): Use std::vector.
8391
52d214d3
TT
83922017-04-12 Tom Tromey <tom@tromey.com>
8393
8394 * printcmd.c (find_instruction_backward): Use std::vector.
8395
4c404b8b
TT
83962017-04-12 Tom Tromey <tom@tromey.com>
8397
8398 * symfile.c (objfilep): Remove typedef.
8399 (reread_symbols): Use a std::vector.
8400
156d9eab
TT
84012017-04-12 Tom Tromey <tom@tromey.com>
8402
8403 * mi/mi-main.c (exec_direction_forward): Remove.
8404 (exec_reverse_continue, mi_execute_command): Use scoped_restore.
8405 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
8406 scoped_restore.
8407 * guile/guile.c (guile_repl_command, guile_command)
8408 (gdbscm_execute_gdb_command): Use scoped_restore.
8409 * go-exp.y (go_parse): Use scoped_restore.
8410 * d-exp.y (d_parse): Use scoped_restore.
8411 * cli/cli-decode.c (cmd_func): Use scoped_restore.
8412 * c-exp.y (c_parse): Use scoped_restore.
8413
4d89769a
TT
84142017-04-12 Tom Tromey <tom@tromey.com>
8415
8416 * mi/mi-parse.h (struct mi_parse): Add constructor, destructor.
8417 (mi_parse): Update return type.
8418 (mi_parse_free): Remove.
8419 * mi/mi-parse.c (mi_parse::mi_parse): New constructor.
8420 (mi_parse::~mi_parse): Rename from mi_parse_free.
8421 (mi_parse_cleanup): Remove.
8422 (mi_parse): Return a unique_ptr. Use new.
8423 * mi/mi-main.c (mi_execute_command): Update.
8424
4b217cc7
TT
84252017-04-12 Tom Tromey <tom@tromey.com>
8426
8427 * location.c (explicit_location_lex_one): Return a
8428 unique_xmalloc_ptr.
8429 (string_to_explicit_location): Update. Remove cleanups.
8430
59d3651b
TT
84312017-04-12 Tom Tromey <tom@tromey.com>
8432
8433 * gnu-v3-abi.c (value_and_voffset_p): Remove typedef.
8434 (compare_value_and_voffset): Change type. Update.
8435 (compute_vtable_size): Change type of "offset_vec".
8436 (gnuv3_print_vtable): Use std::vector. Remove cleanups.
8437 (gnuv3_get_typeid): Remove extraneous declaration.
8438
b24b0d6c
TT
84392017-04-12 Tom Tromey <tom@tromey.com>
8440
8441 * charset.h (wchar_iterator): Fix comment.
8442
80a3b8c5
TT
84432017-04-12 Tom Tromey <tom@tromey.com>
8444
8445 * charset.c (iconv_wrapper): New class.
8446 (cleanup_iconv): Remove.
8447 (convert_between_encodings): Use it.
8448
c83dd867
TT
84492017-04-12 Tom Tromey <tom@tromey.com>
8450
8451 * symfile.h (increment_reading_symtab): Update type.
8452 * symfile.c (decrement_reading_symtab): Remove.
8453 (increment_reading_symtab): Return a scoped_restore_tmpl<int>.
8454 * psymtab.c (psymtab_to_symtab): Update.
8455 * dwarf2read.c (dw2_instantiate_symtab): Update.
8456
0e8621a0
TT
84572017-04-12 Tom Tromey <tom@tromey.com>
8458
8459 * jit.c (struct jit_reader): Declare separately. Add constructor
8460 and destructor. Change type of "handle".
8461 (loaded_jit_reader): Define separately.
8462 (jit_reader_load): Update. New "new".
8463 (jit_reader_unload_command): Use "delete".
8464 * gdb-dlfcn.h (struct dlclose_deleter): New.
8465 (gdb_dlhandle_up): New typedef.
8466 (gdb_dlopen, gdb_dlsym): Update types.
8467 (gdb_dlclose): Remove.
8468 * gdb-dlfcn.c (gdb_dlopen): Return a gdb_dlhandle_up.
8469 (gdb_dlsym): Change type of "handle".
8470 (make_cleanup_dlclose): Remove.
8471 (dlclose_deleter::operator()): Rename from gdb_dlclose.
8472 * compile/compile-c-support.c (load_libcc): Update.
8473
67d89901
TT
84742017-04-12 Tom Tromey <tom@tromey.com>
8475
8476 * symtab.h (find_pcs_for_symtab_line): Change return type.
8477 * symtab.c (find_pcs_for_symtab_line): Change return type.
8478 * python/py-linetable.c (build_line_table_tuple_from_pcs): Change
8479 type of "vec". Update.
8480 (ltpy_get_pcs_for_line): Update.
8481 * linespec.c (decode_digits_ordinary): Update.
8482
93921405
TT
84832017-04-12 Tom Tromey <tom@tromey.com>
8484
8485 * tracepoint.c (actions_command): Update.
8486 * python/python.c (python_command, python_interactive_command):
8487 Update.
8488 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
8489 * guile/guile.c (guile_command): Update.
8490 * defs.h (read_command_lines, read_command_lines_1): Return
8491 command_line_up.
8492 (command_lines_deleter): New struct.
8493 (command_line_up): New typedef.
8494 * compile/compile.c (compile_code_command)
8495 (compile_print_command): Update.
8496 * cli/cli-script.h (get_command_line, copy_command_lines): Return
8497 command_line_up.
8498 (make_cleanup_free_command_lines): Remove.
8499 * cli/cli-script.c (get_command_line, read_command_lines_1)
8500 (copy_command_lines): Return command_line_up.
8501 (while_command, if_command, read_command_lines, define_command)
8502 (document_command): Update.
8503 (do_free_command_lines_cleanup, make_cleanup_free_command_lines):
8504 Remove.
8505 * breakpoint.h (breakpoint_set_commands): Change type of
8506 "commands".
8507 * breakpoint.c (breakpoint_set_commands): Change type of
8508 "commands". Update.
8509 (do_map_commands_command, update_dprintf_command_list)
8510 (create_tracepoint_from_upload): Update.
8511
ffc2605c
TT
85122017-04-12 Tom Tromey <tom@tromey.com>
8513
8514 * tracepoint.c (scope_info): Update.
8515 * spu-tdep.c (spu_catch_start): Update.
8516 * python/python.c (gdbpy_decode_line): Update.
8517 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
8518 * python/py-breakpoint.c (bppy_init): Update.
8519 * probe.c (parse_probes): Update.
8520 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
8521 * location.h (event_location_deleter): New struct.
8522 (event_location_up): New typedef.
8523 (new_linespec_location, new_address_location, new_probe_location)
8524 (new_explicit_location, copy_event_location)
8525 (string_to_event_location, string_to_event_location_basic)
8526 (string_to_explicit_location): Update return type.
8527 (make_cleanup_delete_event_location): Remove.
8528 * location.c (new_linespec_location, new_address_location)
8529 (new_probe_location, new_explicit_location, copy_event_location):
8530 Return event_location_up.
8531 (delete_event_location_cleanup)
8532 (make_cleanup_delete_event_location): Remove.
8533 (string_to_explicit_location, string_to_event_location_basic)
8534 (string_to_event_location): Return event_location_up.
8535 * linespec.c (canonicalize_linespec, event_location_to_sals)
8536 (decode_line_with_current_source)
8537 (decode_line_with_last_displayed, decode_objc): Update.
8538 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
8539 * completer.c (location_completer): Update.
8540 * cli/cli-cmds.c (edit_command, list_command): Update.
8541 * breakpoint.c (create_overlay_event_breakpoint)
8542 (create_longjmp_master_breakpoint)
8543 (create_std_terminate_master_breakpoint)
8544 (create_exception_master_breakpoint)
8545 (create_thread_event_breakpoint): Update.
8546 (init_breakpoint_sal): Update. Remove some dead code.
8547 (create_breakpoint_sal): Change type of "location". Update.
8548 (create_breakpoints_sal, create_breakpoint, break_command_1)
8549 (dprintf_command, break_range_command, until_break_command)
8550 (init_ada_exception_breakpoint)
8551 (strace_marker_create_sals_from_location)
8552 (update_static_tracepoint, trace_command, ftrace_command)
8553 (strace_command, create_tracepoint_from_upload): Update.
8554 * break-catch-throw.c (re_set_exception_catchpoint): Update.
8555 * ax-gdb.c (agent_command_1): Update.
8556
8f10c932
PA
85572017-04-12 Pedro Alves <palves@redhat.com>
8558
8559 * Makefile.in (ALL_TARGET_OBS): Add i386-go32-tdep.o.
8560 * configure.tgt: Handle i[34567]86-*-go32* and
8561 i[34567]86-*-msdosdjgpp*.
8562 * i386-tdep.c (i386_svr4_reg_to_regnum):
8563 Make extern.
8564 (i386_go32_init_abi, i386_coff_osabi_sniffer): Moved to
8565 i386-go32-tdep.c.
8566 (_initialize_i386_tdep): DJGPP bits moved to i386-go32-tdep.c.
8567 * i386-go32-tdep.c: New file.
8568 * i386-tdep.h (tdesc_i386_mmx, i386_svr4_reg_to_regnum): New
8569 declarations.
8570
0a31ccfb
SM
85712017-04-12 Simon Marchi <simon.marchi@ericsson.com>
8572
8573 * aix-thread.c (pd_status2str): Change return type to const char *.
8574
e9bb3fbb
PA
85752017-04-12 Pedro Alves <palves@redhat.com>
8576
8577 * i386-tdep.c (i386_elf_init_abi, i386_go32_init_abi): Remove
8578 calls to set_gdbarch_gnu_triplet_regexp.
8579
53375380
PA
85802017-04-12 Pedro Alves <palves@redhat.com>
8581
8582 PR gdb/21323
8583 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_wchar_t>:
8584 New enum value.
8585 (cplus_language_arch_info): Register cplus_primitive_type_wchar_t.
8586 * gdbtypes.h (struct builtin_type) <builtin_wchar>: New field.
8587 * gdbtypes.c (gdbtypes_post_init): Create the "wchar_t" type.
8588 * gdbarch.sh (wchar_bit, wchar_signed): New per-arch values.
8589 * gdbarch.h, gdbarch.c: Regenerate.
8590 * aarch64-tdep.c (aarch64_gdbarch_init): Override
8591 gdbarch_wchar_bit and gdbarch_wchar_signed.
8592 * alpha-tdep.c (alpha_gdbarch_init): Likewise.
8593 * arm-tdep.c (arm_gdbarch_init): Likewise.
8594 * avr-tdep.c (avr_gdbarch_init): Likewise.
8595 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
8596 * i386-nto-tdep.c (i386nto_init_abi): Likewise.
8597 * i386-tdep.c (i386_go32_init_abi): Likewise.
8598 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
8599 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
8600 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
8601 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
8602 * sh-tdep.c (sh_gdbarch_init): Likewise.
8603 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
8604 * sparc64-tdep.c (sparc64_init_abi): Likewise.
8605 * windows-tdep.c (windows_init_abi): Likewise.
8606 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
8607
53e710ac
PA
86082017-04-12 Pedro Alves <palves@redhat.com>
8609
8610 PR c++/21323
8611 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_char16_t,
8612 cplus_primitive_type_char32_t>: New enum values.
8613 (cplus_language_arch_info): Register cplus_primitive_type_char16_t
8614 and cplus_primitive_type_char32_t.
8615 * dwarf2read.c (read_base_type) <DW_ATE_UTF>: If bit size is 16 or
8616 32, use the archtecture's built-in type for char16_t and char32_t,
8617 respectively. Otherwise, fallback to init_integer_type as before,
8618 but make the type unsigned, and issue a complaint.
8619 * gdbtypes.c (gdbtypes_post_init): Make char16_t and char32_t unsigned.
8620
ab0538b8
AH
86212017-04-12 Alan Hayward <alan.hayward@arm.com>
8622
5e0e0422 8623 * m32r-tdep.c (M32R_ARG_REGISTER_SIZE): Added.
ab0538b8
AH
8624 (m32r_push_dummy_call): Use M32R_ARG_REGISTER_SIZE.
8625
5430098f
SDJ
86262017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
8627
8628 * windows-nat.c (windows_create_inferior): Declare 'toexec' as
8629 'const char *'.
8630
7c5ded6a
SDJ
86312017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
8632
8633 * common/common-utils.c (free_vector_argv): New function.
8634 * common/common-utils.h: Include <vector>.
8635 (free_vector_argv): New prototype.
8636 * darwin-nat.c (darwin_create_inferior): Rewrite function
8637 prototype in order to constify "exec_file" and accept a
8638 "std::string" for "allargs".
8639 * fork-child.c: Include <vector>.
8640 (breakup_args): Rewrite function, using C++.
8641 (fork_inferior): Rewrite function header, constify "exec_file_arg"
8642 and accept "std::string" for "allargs". Update the code to
8643 calculate "argv" based on "allargs". Update calls to "exec_fun"
8644 and "execvp".
8645 * gnu-nat.c (gnu_create_inferior): Rewrite function prototype in
8646 order to constify "exec_file" and accept a "std::string" for
8647 "allargs".
8648 * go32-nat.c (go32_create_inferior): Likewise.
8649 * inf-ptrace.c (inf_ptrace_create_inferior): Likewise.
8650 * infcmd.c (run_command_1): Constify "exec_file". Use
8651 "std::string" for inferior arguments.
8652 * inferior.h (fork_inferior): Update prototype.
8653 * linux-nat.c (linux_nat_create_inferior): Rewrite function
8654 prototype in order to constify "exec_file" and accept a
8655 "std::string" for "allargs".
8656 * nto-procfs.c (procfs_create_inferior): Likewise.
8657 * procfs.c (procfs_create_inferior): Likewise.
8658 * remote-sim.c (gdbsim_create_inferior): Likewise.
8659 * remote.c (extended_remote_run): Update code to accept
8660 "std::string" as argument.
8661 (extended_remote_create_inferior): Rewrite function prototype in
8662 order to constify "exec_file" and accept a "std::string" for
8663 "allargs".
8664 * rs6000-nat.c (super_create_inferior): Likewise.
8665 (rs6000_create_inferior): Likewise.
8666 * target.h (struct target_ops) <to_create_inferior>: Likewise.
8667 * windows-nat.c (windows_create_inferior): Likewise.
8668
ae0eee42
PA
86692017-04-11 Pedro Alves <palves@redhat.com>
8670
8671 * thread.c: Fix whitespace throughout.
8672
a6acac06
PR
86732017-04-11 Philipp Rudo <prudo@linux.vnet.ibm.com>
8674
8675 * linux-nat.c (linux_nat_detach): Remove delete_lwp call.
8676
64403bd1
AH
86772017-04-11 Alan Hayward <alan.hayward@arm.com>
8678
8679 * arm-tdep.c (arm_store_return_value): Use FP_REGISTER_SIZE
8680
a5bef50f
SDJ
86812017-04-10 Sergio Durigan Junior <sergiodj@redhat.com>
8682
8683 PR gdb/21364
8684 * osdata.c (info_osdata): Check if 'type' is an empty string
8685 instead of NULL.
8686
9295a5a9
PA
86872017-04-10 Pedro Alves <palves@redhat.com>
8688
8689 * thread.c (add_thread_silent, delete_thread_1, find_thread_ptid)
8690 (ptid_to_global_thread_id, in_thread_list)
8691 (do_captured_list_thread_ids, set_resumed, set_running)
8692 (set_executing, set_stop_requested, finish_thread_state)
8693 (validate_registers_access, can_access_registers_ptid)
8694 (print_thread_info_1, switch_to_thread)
8695 (do_restore_current_thread_cleanup)
8696 (make_cleanup_restore_current_thread, thread_command)
8697 (thread_name_command): Use operator== instead of ptid_equal.
8698
996812e3
PA
86992017-04-10 Pedro Alves <palves@redhat.com>
8700
8701 * thread.c (struct current_thread_cleanup) <next>: Delete field.
8702 (current_thread_cleanup_chain): Delete.
8703 (restore_current_thread_cleanup_dtor)
8704 (make_cleanup_restore_current_thread): Remove references to
8705 current_thread_cleanup_chain.
8706
845b344f
AH
87072017-04-10 Alan Hayward <alan.hayward@arm.com>
8708
8709 * msp430-tdep.c (msp430_pseudo_register_read): Never return
8710 REG_UNKNOWN.
8711
803bdfe4
YQ
87122017-04-10 Yao Qi <yao.qi@linaro.org>
8713
8714 PR gdb/19942
8715 * gdbthread.h (thread_info::deletable): New method.
8716 (thread_info::incref): New method.
8717 (thread_info::decref): New method.
8718 (thread_info::refcount): Move it to private.
8719 * infrun.c (save_stop_context): Call inc_refcount.
8720 (release_stop_context_cleanup): Likewise.
8721 * thread.c (set_thread_exited): New function.
8722 (init_thread_list): Delete "tp" only it is deletable, otherwise
8723 call set_thread_exited.
8724 (delete_thread_1): Call set_thread_exited.
8725 (current_thread_cleanup) <inferior_pid>: Remove.
8726 <thread>: New field.
8727 (restore_current_thread_ptid_changed): Removed.
8728 (do_restore_current_thread_cleanup): Adjust.
8729 (restore_current_thread_cleanup_dtor): Don't call
8730 find_thread_ptid.
8731 (set_thread_refcount): Use dec_refcount.
8732 (make_cleanup_restore_current_thread): Adjust.
8733 (thread_apply_all_command): Call inc_refcount.
8734 (_initialize_thread): Don't call
8735 observer_attach_thread_ptid_changed.
8736
8c25b497
YQ
87372017-04-10 Yao Qi <yao.qi@linaro.org>
8738
8739 * thread.c (delete_thread_1): Hoist code on marking thread as
8740 exited.
8741
8473b447
SM
87422017-04-09 Simon Marchi <simon.marchi@polymtl.ca>
8743
8744 * windows-nat.c (windows_detach): Initialize ptid with
8745 minus_one_ptid.
8746
6670ec13
SM
87472017-04-07 Simon Marchi <simon.marchi@ericsson.com>
8748
8749 * unittests/ptid-selftests.c: Fix erroneous assert messages.
8750
ba2f91bb
AH
87512017-04-07 Alan Hayward <alan.hayward@arm.com>
8752
8753 * bfin-tdep.c (BFIN_MAX_REGISTER_SIZE): Add.
8754 (bfin_pseudo_register_read): Use BFIN_MAX_REGISTER_SIZE.
8755 (bfin_pseudo_register_write): Likewise
8756
436252de
SM
87572017-04-06 Simon Marchi <simon.marchi@ericsson.com>
8758
8759 * common/ptid.h (struct ptid): Change to...
8760 (class ptid_t): ... this.
8761 <ptid_t>: New constructors.
8762 <pid, lwp_p, lwp, tid_p, tid, is_pid, operator==, operator!=,
8763 matches>: New methods.
8764 <make_null, make_minus_one>: New static methods.
8765 <pid>: Rename to...
8766 <m_pid>: ...this.
8767 <lwp>: Rename to...
8768 <m_lwp>: ...this.
8769 <tid>: Rename to...
8770 <m_tid>: ...this.
8771 (ptid_build, ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
8772 ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match): Take ptid arguments
8773 as references, move comment to class ptid_t.
8774 * common/ptid.c (null_ptid, minus_one_ptid): Initialize with
8775 ptid_t static methods.
8776 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_tid,
8777 ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match):
8778 Take ptid arguments as references, implement using ptid_t methods.
8779 * unittests/ptid-selftests.c: New file.
8780 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
8781 unittests/ptid-selftests.c.
8782 (SUBDIR_UNITTESTS_OBS): Add unittests/ptid-selftests.o.
8783
0dedf377
TP
87842017-04-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
8785
8786 * python/python.c (python_run_simple_file): Cast mode literal to
8787 non-const char pointer as expected by PyFile_FromString.
8788
4e9868d4
SM
87892017-04-05 Simon Marchi <simon.marchi@ericsson.com>
8790
8791 * common/ptid.c (ptid_lwp_p, ptid_tid_p): Remove comparison with
8792 minus_one_ptid and null_ptid.
8793
9bf2a700
PA
87942017-04-05 Pedro Alves <palves@redhat.com>
8795
8796 * warning.m4 (build_warnings): Remove -Wno-write-strings.
8797 * configure: Regenerate.
8798
a121b7c1
PA
87992017-04-05 Pedro Alves <palves@redhat.com>
8800
8801 * ada-exp.y (yyerror): Constify.
8802 * ada-lang.c (bound_name, get_selections)
8803 (ada_variant_discrim_type)
8804 (ada_variant_discrim_name, ada_value_struct_elt)
8805 (ada_lookup_struct_elt_type, is_unchecked_variant)
8806 (ada_which_variant_applies, standard_exc, ada_get_next_arg)
8807 (catch_ada_exception_command_split)
8808 (catch_ada_assert_command_split, catch_assert_command)
8809 (ada_op_name): Constify.
8810 * ada-lang.h (ada_yyerror, get_selections)
8811 (ada_variant_discrim_name, ada_value_struct_elt): Constify.
8812 * arc-tdep.c (arc_print_frame_cache): Constify.
8813 * arm-tdep.c (arm_skip_stub): Constify.
8814 * ax-gdb.c (gen_binop, gen_struct_ref_recursive, gen_struct_ref)
8815 (gen_aggregate_elt_ref): Constify.
8816 * bcache.c (print_bcache_statistics): Constify.
8817 * bcache.h (print_bcache_statistics): Constify.
8818 * break-catch-throw.c (catch_exception_command_1):
8819 * breakpoint.c (struct ep_type_description::description):
8820 Constify.
8821 (add_solib_catchpoint): Constify.
8822 (catch_fork_command_1): Add cast.
8823 (add_catch_command): Constify.
8824 * breakpoint.h (add_catch_command, add_solib_catchpoint):
8825 Constify.
8826 * bsd-uthread.c (bsd_uthread_state): Constify.
8827 * buildsym.c (patch_subfile_names): Constify.
8828 * buildsym.h (next_symbol_text_func, patch_subfile_names):
8829 Constify.
8830 * c-exp.y (yyerror): Constify.
8831 (token::oper): Constify.
8832 * c-lang.h (c_yyerror, cp_print_class_member): Constify.
8833 * c-varobj.c (cplus_describe_child): Constify.
8834 * charset.c (find_charset_names): Add cast.
8835 (find_charset_names): Constify array and add const_cast.
8836 * cli/cli-cmds.c (complete_command, cd_command): Constify.
8837 (edit_command): Constify.
8838 * cli/cli-decode.c (lookup_cmd): Constify.
8839 * cli/cli-dump.c (dump_memory_command, dump_value_command):
8840 Constify.
8841 (struct dump_context): Constify.
8842 (add_dump_command, restore_command): Constify.
8843 * cli/cli-script.c (get_command_line): Constify.
8844 * cli/cli-script.h (get_command_line): Constify.
8845 * cli/cli-utils.c (check_for_argument): Constify.
8846 * cli/cli-utils.h (check_for_argument): Constify.
8847 * coff-pe-read.c (struct read_pe_section_data): Constify.
8848 * command.h (lookup_cmd): Constify.
8849 * common/print-utils.c (decimal2str): Constify.
8850 * completer.c (gdb_print_filename): Constify.
8851 * corefile.c (set_gnutarget): Constify.
8852 * cp-name-parser.y (yyerror): Constify.
8853 * cp-valprint.c (cp_print_class_member): Constify.
8854 * cris-tdep.c (cris_register_name, crisv32_register_name):
8855 Constify.
8856 * d-exp.y (yyerror): Constify.
8857 (struct token::oper): Constify.
8858 * d-lang.h (d_yyerror): Constify.
8859 * dbxread.c (struct header_file_location::name): Constify.
8860 (add_old_header_file, add_new_header_file, last_function_name)
8861 (dbx_next_symbol_text, add_bincl_to_list)
8862 (find_corresponding_bincl_psymtab, set_namestring)
8863 (find_stab_function_addr, read_dbx_symtab, start_psymtab)
8864 (dbx_end_psymtab, read_ofile_symtab, process_one_symbol):
8865 * defs.h (command_line_input, print_address_symbolic)
8866 (deprecated_readline_begin_hook): Constify.
8867 * dwarf2read.c (anonymous_struct_prefix, dwarf_bool_name):
8868 Constify.
8869 * event-top.c (handle_line_of_input): Constify and add cast.
8870 * exceptions.c (catch_errors): Constify.
8871 * exceptions.h (catch_errors): Constify.
8872 * expprint.c (print_subexp_standard, op_string, op_name)
8873 (op_name_standard, dump_raw_expression, dump_raw_expression):
8874 * expression.h (op_name, op_string, dump_raw_expression):
8875 Constify.
8876 * f-exp.y (yyerror): Constify.
8877 (struct token::oper): Constify.
8878 (struct f77_boolean_val::name): Constify.
8879 * f-lang.c (f_word_break_characters): Constify.
8880 * f-lang.h (f_yyerror): Constify.
8881 * fork-child.c (fork_inferior): Add cast.
8882 * frv-tdep.c (struct gdbarch_tdep::register_names): Constify.
8883 (new_variant): Constify.
8884 * gdbarch.sh (pstring_ptr, pstring_list): Constify.
8885 * gdbarch.c: Regenerate.
8886 * gdbcore.h (set_gnutarget): Constify.
8887 * go-exp.y (yyerror): Constify.
8888 (token::oper): Constify.
8889 * go-lang.h (go_yyerror): Constify.
8890 * go32-nat.c (go32_sysinfo): Constify.
8891 * guile/scm-breakpoint.c (gdbscm_breakpoint_expression): Constify.
8892 * guile/scm-cmd.c (cmdscm_function): Constify.
8893 * guile/scm-param.c (pascm_param_value): Constify.
8894 * h8300-tdep.c (h8300_register_name, h8300s_register_name)
8895 (h8300sx_register_name): Constify.
8896 * hppa-tdep.c (hppa32_register_name, hppa64_register_name):
8897 Constify.
8898 * ia64-tdep.c (ia64_register_names): Constify.
8899 * infcmd.c (construct_inferior_arguments): Constify.
8900 (path_command, attach_post_wait): Constify.
8901 * language.c (show_range_command, show_case_command)
8902 (unk_lang_error): Constify.
8903 * language.h (language_defn::la_error)
8904 (language_defn::la_name_of_this): Constify.
8905 * linespec.c (decode_line_2): Constify.
8906 * linux-thread-db.c (thread_db_err_str): Constify.
8907 * lm32-tdep.c (lm32_register_name): Constify.
8908 * m2-exp.y (yyerror): Constify.
8909 * m2-lang.h (m2_yyerror): Constify.
8910 * m32r-tdep.c (m32r_register_names): Constify and make static.
8911 * m68hc11-tdep.c (m68hc11_register_names): Constify.
8912 * m88k-tdep.c (m88k_register_name): Constify.
8913 * macroexp.c (appendmem): Constify.
8914 * mdebugread.c (fdr_name, add_data_symbol, parse_type)
8915 (upgrade_type, parse_external, parse_partial_symbols)
8916 (mdebug_next_symbol_text, cross_ref, mylookup_symbol, new_psymtab)
8917 (new_symbol): Constify.
8918 * memattr.c (mem_info_command): Constify.
8919 * mep-tdep.c (register_name_from_keyword): Constify.
8920 * mi/mi-cmd-env.c (mi_cmd_env_path, _initialize_mi_cmd_env):
8921 Constify.
8922 * mi/mi-cmd-stack.c (list_args_or_locals): Constify.
8923 * mi/mi-cmd-var.c (mi_cmd_var_show_attributes): Constify.
8924 * mi/mi-main.c (captured_mi_execute_command): Constify and add
8925 cast.
8926 (mi_execute_async_cli_command): Constify.
8927 * mips-tdep.c (mips_register_name): Constify.
8928 * mn10300-tdep.c (register_name, mn10300_generic_register_name)
8929 (am33_register_name, am33_2_register_name)
8930 * moxie-tdep.c (moxie_register_names): Constify.
8931 * nat/linux-osdata.c (osdata_type): Constify fields.
8932 * nto-tdep.c (nto_parse_redirection): Constify.
8933 * objc-lang.c (lookup_struct_typedef, lookup_objc_class)
8934 (lookup_child_selector): Constify.
8935 (objc_methcall::name): Constify.
8936 * objc-lang.h (lookup_objc_class, lookup_child_selector)
8937 (lookup_struct_typedef): Constify.
8938 * objfiles.c (pc_in_section): Constify.
8939 * objfiles.h (pc_in_section): Constify.
8940 * p-exp.y (struct token::oper): Constify.
8941 (yyerror): Constify.
8942 * p-lang.h (pascal_yyerror): Constify.
8943 * parser-defs.h (op_name_standard): Constify.
8944 (op_print::string): Constify.
8945 (exp_descriptor::op_name): Constify.
8946 * printcmd.c (print_address_symbolic): Constify.
8947 * psymtab.c (print_partial_symbols): Constify.
8948 * python/py-breakpoint.c (stop_func): Constify.
8949 (bppy_get_expression): Constify.
8950 * python/py-cmd.c (cmdpy_completer::name): Constify.
8951 (cmdpy_function): Constify.
8952 * python/py-event.c (evpy_add_attribute)
8953 (gdbpy_initialize_event_generic): Constify.
8954 * python/py-event.h (evpy_add_attribute)
8955 (gdbpy_initialize_event_generic): Constify.
8956 * python/py-evts.c (add_new_registry): Constify.
8957 * python/py-finishbreakpoint.c (outofscope_func): Constify.
8958 * python/py-framefilter.c (get_py_iter_from_func): Constify.
8959 * python/py-inferior.c (get_buffer): Add cast.
8960 * python/py-param.c (parm_constant::name): Constify.
8961 * python/py-unwind.c (fprint_frame_id): Constify.
8962 * python/python.c (gdbpy_parameter_value): Constify.
8963 * remote-fileio.c (remote_fio_func_map): Make 'name' const.
8964 * remote.c (memory_packet_config::name): Constify.
8965 (show_packet_config_cmd, remote_write_bytes)
8966 (remote_buffer_add_string):
8967 * reverse.c (exec_reverse_once): Constify.
8968 * rs6000-tdep.c (variant::name, variant::description): Constify.
8969 * rust-exp.y (rustyyerror): Constify.
8970 * rust-lang.c (rust_op_name): Constify.
8971 * rust-lang.h (rustyyerror): Constify.
8972 * serial.h (serial_ops::name): Constify.
8973 * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name)
8974 (sh_sh3e_register_name, sh_sh2e_register_name)
8975 (sh_sh2a_register_name, sh_sh2a_nofpu_register_name)
8976 (sh_sh_dsp_register_name, sh_sh3_dsp_register_name)
8977 (sh_sh4_register_name, sh_sh4_nofpu_register_name)
8978 (sh_sh4al_dsp_register_name): Constify.
8979 * sh64-tdep.c (sh64_register_name): Constify.
8980 * solib-darwin.c (lookup_symbol_from_bfd): Constify.
8981 * spu-tdep.c (spu_register_name, info_spu_dma_cmdlist): Constify.
8982 * stabsread.c (patch_block_stabs, read_type_number)
8983 (ref_map::stabs, ref_add, process_reference)
8984 (symbol_reference_defined, define_symbol, define_symbol)
8985 (error_type, read_type, read_member_functions, read_cpp_abbrev)
8986 (read_one_struct_field, read_struct_fields, read_baseclasses)
8987 (read_tilde_fields, read_struct_type, read_array_type)
8988 (read_enum_type, read_sun_builtin_type, read_sun_floating_type)
8989 (read_huge_number, read_range_type, read_args, common_block_start)
8990 (find_name_end): Constify.
8991 * stabsread.h (common_block_start, define_symbol)
8992 (process_one_symbol, symbol_reference_defined, ref_add):
8993 * symfile.c (get_section_index, add_symbol_file_command):
8994 * symfile.h (get_section_index): Constify.
8995 * target-descriptions.c (tdesc_type::name): Constify.
8996 (tdesc_free_type): Add cast.
8997 * target.c (find_default_run_target):
8998 (add_deprecated_target_alias, find_default_run_target)
8999 (target_announce_detach): Constify.
9000 (do_option): Constify.
9001 * target.h (add_deprecated_target_alias): Constify.
9002 * thread.c (print_thread_info_1): Constify.
9003 * top.c (deprecated_readline_begin_hook, command_line_input):
9004 Constify.
9005 (init_main): Add casts.
9006 * top.h (handle_line_of_input): Constify.
9007 * tracefile-tfile.c (tfile_write_uploaded_tsv): Constify.
9008 * tracepoint.c (tvariables_info_1, trace_status_mi): Constify.
9009 (tfind_command): Rename to ...
9010 (tfind_command_1): ... this and constify.
9011 (tfind_command): New function.
9012 (tfind_end_command, tfind_start_command): Adjust.
9013 (encode_source_string): Constify.
9014 * tracepoint.h (encode_source_string): Constify.
9015 * tui/tui-data.c (tui_partial_win_by_name): Constify.
9016 * tui/tui-data.h (tui_partial_win_by_name): Constify.
9017 * tui/tui-source.c (tui_set_source_content_nil): Constify.
9018 * tui/tui-source.h (tui_set_source_content_nil): Constify.
9019 * tui/tui-win.c (parse_scrolling_args): Constify.
9020 * tui/tui-windata.c (tui_erase_data_content): Constify.
9021 * tui/tui-windata.h (tui_erase_data_content): Constify.
9022 * tui/tui-winsource.c (tui_erase_source_content): Constify.
9023 * tui/tui.c (tui_enable): Add cast.
9024 * utils.c (defaulted_query): Constify.
9025 (init_page_info): Add cast.
9026 (puts_debug, subset_compare): Constify.
9027 * utils.h (subset_compare): Constify.
9028 * varobj.c (varobj_format_string): Constify.
9029 * varobj.h (varobj_format_string): Constify.
9030 * vax-tdep.c (vax_register_name): Constify.
9031 * windows-nat.c (windows_detach): Constify.
9032 * xcoffread.c (process_linenos, xcoff_next_symbol_text): Constify.
9033 * xml-support.c (gdb_xml_end_element): Constify.
9034 * xml-tdesc.c (tdesc_start_reg): Constify.
9035 * xstormy16-tdep.c (xstormy16_register_name): Constify.
9036 * xtensa-tdep.c (xtensa_find_register_by_name): Constify.
9037 * xtensa-tdep.h (xtensa_register_t::name): Constify.
9038
995816ba
PA
90392017-04-05 Pedro Alves <palves@redhat.com>
9040
9041 * proc-api.c (struct trans): Constify.
9042 (procfs_note): Constify.
9043 * proc-events.c (struct trans, syscall_table):
9044 * proc-flags.c (struct trans): Constify.
9045 * proc-utils.h (procfs_note): Constify.
9046 * proc-why.c (struct trans): Constify.
9047 * procfs.c (dead_procinfo, find_syscall, proc_warn, proc_error)
9048 (procfs_detach): Constify.
9049 * sol-thread.c (struct string_map): Constify.
9050 (td_err_string, td_state_string): Constify.
9051
3e83a920
PA
90522017-04-05 Pedro Alves <palves@redhat.com>
9053
9054 * proc-api.c (procfs_filename): Don't initialize
9055 procfs_filename.
9056 (prepare_to_trace): Assume procfs_filename is non-NULL.
9057 (_initialize_proc_api): Give procfs_filename a default value here.
9058
63160a43
PA
90592017-04-05 Pedro Alves <palves@redhat.com>
9060
9061 * break-catch-throw.c (handle_gnu_v3_exceptions): Constify
9062 'cond_string' parameter.
9063 (extract_exception_regexp): Constify 'string' parameter.
9064 (catch_exception_command_1): Constify.
9065 * breakpoint.c (init_catchpoint)
9066 (create_fork_vfork_event_catchpoint): Constify 'cond_string'
9067 parameter.
9068 (ep_parse_optional_if_clause, catch_fork_command_1)
9069 (catch_exec_command_1): Constify.
9070 * breakpoint.h (init_catchpoint): Constify 'cond_string'
9071 parameter.
9072 (ep_parse_optional_if_clause): Constify.
9073 * cli/cli-utils.c (remove_trailing_whitespace)
9074 (check_for_argument): Constify.
9075 * cli/cli-utils.h (remove_trailing_whitespace): Constify and add
9076 non-const overload.
9077 (check_for_argument): Likewise.
9078
9b2eba3d
PA
90792017-04-05 Pedro Alves <palves@redhat.com>
9080
9081 * event-top.c (command_line_handler): Add cast to execute_command
9082 call.
9083 * record-btrace.c (cmd_record_btrace_bts_start)
9084 (cmd_record_btrace_pt_start, cmd_record_btrace_start)
9085 (cmd_record_btrace_start): Add cast to execute_command call.
9086 * record-full.c (record_full_goto_insn):
9087 * record.c (record_start, record_stop): Add cast to
9088 execute_command_to_string calls.
9089 (cmd_record_start): Add cast to execute_command calls.
9090
2adadf51
PA
90912017-04-05 Pedro Alves <palves@redhat.com>
9092
9093 * python/python-internal.h (gdb_PyArg_ParseTupleAndKeywords): New
9094 static inline function.
9095 * python/py-arch.c (archpy_disassemble): Constify 'keywords'
9096 array and use gdb_PyArg_ParseTupleAndKeywords.
9097 * python/py-cmd.c (cmdpy_init): Likewise.
9098 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
9099 * python/py-inferior.c (infpy_read_memory, infpy_write_memory)
9100 (infpy_search_memory): Likewise.
9101 * python/py-objfile.c (objfpy_add_separate_debug_file)
9102 (gdbpy_lookup_objfile): Likewise.
9103 * python/py-symbol.c (gdbpy_lookup_symbol)
9104 (gdbpy_lookup_global_symbol): Likewise.
9105 * python/py-type.c (gdbpy_lookup_type): Likewise.
9106 * python/py-value.c (valpy_lazy_string, valpy_string): Likewise.
9107 * python/python.c (execute_gdb_command, gdbpy_write, gdbpy_flush):
9108 Likewise.
9109
0d1f4ceb
PA
91102017-04-05 Pedro Alves <palves@redhat.com>
9111
9112 * python/python-internal.h (gdb_PyGetSetDef): New type.
9113 * python/py-block.c (block_object_getset)
9114 (breakpoint_object_getset): Now a gdb_PyGetSetDef array.
9115 * python/py-event.c (event_object_getset)
9116 (finish_breakpoint_object_getset): Likewise.
9117 * python/py-inferior.c (inferior_object_getset): Likewise.
9118 * python/py-infthread.c (thread_object_getset): Likewise.
9119 * python/py-lazy-string.c (lazy_string_object_getset): Likewise.
9120 * python/py-linetable.c (linetable_entry_object_getset): Likewise.
9121 * python/py-objfile.c (objfile_getset): Likewise.
9122 * python/py-progspace.c (pspace_getset): Likewise.
9123 * python/py-record-btrace.c (btpy_insn_getset, btpy_call_getset):
9124 Likewise.
9125 * python/py-record.c (recpy_record_getset): Likewise.
9126 * python/py-symbol.c (symbol_object_getset): Likewise.
9127 * python/py-symtab.c (symtab_object_getset, sal_object_getset):
9128 Likewise.
9129 * python/py-type.c (type_object_getset, field_object_getset):
9130 Likewise.
9131 * python/py-value.c (value_object_getset): Likewise.
9132
4d759979
PA
91332017-04-05 Pedro Alves <palves@redhat.com>
9134
9135 * python/python-internal.h (gdb_PyObject_CallMethod)
9136 (gdb_PyErr_NewException, gdb_PySys_GetObject, gdb_PySys_SetPath):
9137 New functions.
9138 (GDB_PYSYS_SETPATH_CHAR, PyObject_CallMethod, PyErr_NewException)
9139 (PySys_GetObject, PySys_SetPath): New macros.
9140
fdf9e36f
PA
91412017-04-05 Pedro Alves <palves@redhat.com>
9142
9143 * mi/mi-cmd-info.c (mi_cmd_info_os): Call info_osdata instead of
9144 info_osdata_command.
9145 * osdata.c (info_osdata_command): Rename to ...
9146 (info_osdata): ... this. Constify 'type' parameter, and remove
9147 the 'from_tty' parameter. Accept NULL TYPE.
9148 (info_osdata_command): New function.
9149 * osdata.h (info_osdata_command): Remove declaration.
9150 (info_osdata): New declaration.
9151
9f33b8b7
PA
91522017-04-05 Pedro Alves <palves@redhat.com>
9153
9154 * mi/mi-cmd-break.c (mi_cmd_break_insert_1, mi_cmd_break_insert)
9155 (mi_cmd_dprintf_insert, mi_cmd_break_passcount)
9156 (mi_cmd_break_watch, mi_cmd_break_commands): Constify 'command'
9157 parameter.
9158 * mi/mi-cmd-catch.c (mi_cmd_catch_assert, mi_cmd_catch_exception)
9159 (mi_cmd_catch_load, mi_cmd_catch_unload): Constify cmd' parameter.
9160 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Constify 'command'
9161 parameter.
9162 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_cd, mi_cmd_env_path)
9163 (mi_cmd_env_dir, mi_cmd_inferior_tty_set, _cmd_inferior_tty_show)
9164 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
9165 (mi_cmd_file_list_exec_source_files)
9166 (mi_cmd_file_list_shared_libraries): Constify 'command' parameter.
9167 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
9168 (mi_cmd_info_gdb_mi_command, mi_cmd_info_os): Constify 'command'
9169 parameter.
9170 * mi/mi-cmd-stack.c (mi_cmd_enable_frame_filters)
9171 (mi_cmd_stack_list_frames, mi_cmd_stack_info_depth)
9172 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
9173 (mi_cmd_stack_list_variables, mi_cmd_stack_select_frame)
9174 (mi_cmd_stack_info_frame): Constify 'command' parameter.
9175 * mi/mi-cmd-target.c (mi_cmd_target_file_get)
9176 (mi_cmd_target_file_put, mi_cmd_target_file_delete): Constify
9177 'command' parameter.
9178 * mi/mi-cmd-var.c (mi_cmd_var_create, mi_cmd_var_delete)
9179 (mi_cmd_var_set_format, mi_cmd_var_set_visualizer)
9180 (mi_cmd_var_set_frozen, mi_cmd_var_show_format)
9181 (mi_cmd_var_info_num_children, mi_cmd_var_list_children)
9182 (mi_cmd_var_info_type, mi_cmd_var_info_path_expression)
9183 (mi_cmd_var_info_expression, mi_cmd_var_show_attributes)
9184 (mi_cmd_var_evaluate_expression, mi_cmd_var_assign)
9185 (mi_cmd_var_update, mi_cmd_enable_pretty_printing)
9186 (mi_cmd_var_set_update_range): Constify 'command' parameter.
9187 * mi/mi-cmds.h (mi_cmd_argv_ftype): Constify 'command' parameter.
9188 * mi/mi-interp.c (mi_cmd_interpreter_exec): Constify 'command'
9189 parameter.
9190 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_exec_next)
9191 (mi_cmd_exec_next_instruction, mi_cmd_exec_step)
9192 (mi_cmd_exec_step_instruction, mi_cmd_exec_finish)
9193 (mi_cmd_exec_return ,mi_cmd_exec_jump, mi_cmd_exec_continue)
9194 (mi_cmd_exec_interrupt, mi_cmd_exec_run, mi_cmd_target_detach)
9195 (mi_cmd_target_flash_erase, mi_cmd_thread_select)
9196 (mi_cmd_thread_list_ids, mi_cmd_thread_info)
9197 (mi_cmd_list_thread_groups, mi_cmd_data_list_register_names)
9198 (mi_cmd_data_list_changed_registers)
9199 (mi_cmd_data_write_register_values)
9200 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
9201 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory)
9202 (mi_cmd_data_write_memory_bytes, mi_cmd_enable_timings)
9203 (mi_cmd_list_features, mi_cmd_list_target_features)
9204 (mi_cmd_add_inferior, mi_cmd_remove_inferior)
9205 (mi_cmd_trace_define_variable, mi_cmd_trace_list_variables)
9206 (mi_cmd_trace_find, mi_cmd_trace_save, mi_cmd_trace_start)
9207 (mi_cmd_trace_status, mi_cmd_trace_stop, mi_cmd_ada_task_info)
9208 (mi_cmd_trace_frame_collected): Constify 'command'
9209 parameter.
9210 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Constify
9211 'command' parameter.
9212
67cb5b2d
PA
92132017-04-05 Pedro Alves <palves@redhat.com>
9214
9215 * ada-lang.c (ada_completer_word_break_characters): Now a const
9216 array.
9217 (ada_get_gdb_completer_word_break_characters): Constify.
9218 * completer.c (gdb_completer_command_word_break_characters)
9219 (gdb_completer_file_name_break_characters)
9220 (gdb_completer_quote_characters): Now const arrays.
9221 (get_gdb_completer_quote_characters): Constify.
9222 (set_rl_completer_word_break_characters): New function.
9223 (set_gdb_completion_word_break_characters)
9224 (complete_line_internal): Use it.
9225 * completer.h (get_gdb_completer_quote_characters): Constify.
9226 (set_rl_completer_word_break_characters): Declare.
9227 * f-lang.c (f_word_break_characters): Constify.
9228 * language.c (default_word_break_characters): Constify.
9229 * language.h (language_defn::la_word_break_characters): Constify.
9230 (default_word_break_characters): Constify.
9231 * top.c (init_main): Use set_rl_completer_word_break_characters.
9232
7a114964
PA
92332017-04-05 Pedro Alves <palves@redhat.com>
9234
9235 * aix-thread.c (aix_thread_pid_to_str)
9236 (aix_thread_extra_thread_info): Constify.
9237 * bsd-kvm.c (bsd_kvm_pid_to_str): Constify.
9238 * bsd-uthread.c (bsd_uthread_extra_thread_info)
9239 (bsd_uthread_pid_to_str): Constify.
9240 * corelow.c (core_pid_to_str): Constify.
9241 * darwin-nat.c (darwin_pid_to_str): Constify.
9242 * fbsd-nat.c (fbsd_pid_to_str): Constify.
9243 * fbsd-tdep.c (fbsd_core_pid_to_str, gdbarch_core_pid_to_str):
9244 Constify.
9245 * gnu-nat.c (gnu_pid_to_str): Constify.
9246 * go32-nat.c (go32_pid_to_str): Constify.
9247 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Constify.
9248 * inf-ptrace.c (inf_ptrace_pid_to_str): Constify.
9249 * inferior.c (inferior_pid_to_str): Constify.
9250 * linux-nat.c (linux_nat_pid_to_str): Constify.
9251 * linux-tdep.c (linux_core_pid_to_str): Constify.
9252 * linux-thread-db.c (thread_db_pid_to_str)
9253 (thread_db_extra_thread_info): Constify.
9254 * nto-tdep.c (nto_extra_thread_info): Constify.
9255 * nto-tdep.h (nto_extra_thread_info): Constify.
9256 * obsd-nat.c (obsd_pid_to_str): Constify.
9257 * procfs.c (procfs_pid_to_str): Constify.
9258 * ravenscar-thread.c (ravenscar_extra_thread_info)
9259 (ravenscar_pid_to_str): Constify.
9260 * remote-sim.c (gdbsim_pid_to_str): Constify.
9261 * remote.c (remote_threads_extra_info, remote_pid_to_str):
9262 Constify.
9263 * sol-thread.c (solaris_pid_to_str): Constify.
9264 * sol2-tdep.c (sol2_core_pid_to_str): Constify.
9265 * sol2-tdep.h (sol2_core_pid_to_str): Constify.
9266 * target.c (default_pid_to_str, target_pid_to_str)
9267 (normal_pid_to_str, default_pid_to_str): Constify.
9268 * target.h (target_ops::to_pid_to_str)
9269 (target_ops::to_extra_thread_info): Constify.
9270 (target_pid_to_str, normal_pid_to_str): Constify.
9271 * windows-nat.c (windows_pid_to_str): Constify.
9272 * gdbarch.sh (core_pid_to_str): Constify.
9273 * target-delegates.c: Regenerate.
9274 * gdbarch.h, gdbarch.c: Regenerate.
9275
69bbf465
PA
92762017-04-05 Pedro Alves <palves@redhat.com>
9277
9278 * main.c (captured_main_1): Use gdb::unique_xmalloc_ptr to manage
9279 the memory of the temporary warning_pre_print override.
9280 * utils.c (warning_pre_print): Constify.
9281 * utils.h (warning_pre_print): Constify.
9282
be47f9e8
PA
92832017-04-05 Pedro Alves <palves@redhat.com>
9284
9285 * cli/cli-cmds.c (shell_escape): Constify 'arg' parameter.
9286 (shell_command): New function.
9287 (make_command): Use std::string.
9288 (init_cli_cmds): Register shell_command instead of shell_escape.
9289
bde6261a
PA
92902017-04-05 Pedro Alves <palves@redhat.com>
9291
9292 * breakpoint.c (dprintf_function, dprintf_channel): Don't initialize.
9293 * tracepoint.c (default_collect): Don't initialize.
9294
b38ef47f
PA
92952017-04-05 Pedro Alves <palves@redhat.com>
9296
9297 * macroexp.c (macro_buffer::shared): Now a bool.
9298 (init_buffer): Update.
9299 (init_shared_buffer): Constify 'addr' parameter.
9300 (substitute_args, expand, macro_expand, macro_expand_next): Remove
9301 casts.
9302
f995bbe8
PA
93032017-04-05 Pedro Alves <palves@redhat.com>
9304
9305 * arm-tdep.c (show_disassembly_style_sfunc): Constify local.
9306 * disasm.c (set_disassembler_options): Constify local.
9307 * i386-tdep.c (i386_print_insn): Remove cast and FIXME comment.
9308
4a596fe2
SDJ
93092017-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
9310
9311 PR gdb/21352
9312 * tracefile.c (tsave_command): Fix argument parsing for '-r'
9313 option.
9314
2cad08ea
YQ
93152017-04-05 Yao Qi <yao.qi@linaro.org>
9316
9317 * frame.c (frame_unwind_register_unsigned): Call
9318 frame_unwind_register_value.
9319
55a98976
YQ
93202017-04-05 Yao Qi <yao.qi@linaro.org>
9321
9322 * gdb.threads/thread-specific-bp.exp (check_thread_specific_breakpoint):
9323 Use gdb_test_multiple, and don't match anchor.
9324
4ac40124
PA
93252017-04-05 Pedro Alves <palves@redhat.com>
9326
9327 * MAINTAINERS (Global Maintainers): Add Simon Marchi.
9328 (Write After Approval): Remove Simon Marchi.
9329
c053b654
PA
93302017-04-05 Pedro Alves <palves@redhat.com>
9331
9332 * common/gdb_optional.h (optional::optional): Make constexpr and
9333 initialize m_dummy.
9334
4c7bf4f9
JB
93352017-04-04 John Baldwin <jhb@FreeBSD.org>
9336
9337 * amd64-fbsd-tdep.c: Remove "bsd-uthread.h" include.
9338 (amd64fbsd_jmp_buf_reg_offset): Remove.
9339 (amd64fbsd_supply_uthread): Remove function.
9340 (amd64fbsd_collect_uthread): Remove function.
9341 (amd64fbsd_init_abi): Don't set bsd-uthread callbacks.
9342 * configure.tgt (i[34567]86-*-freebsd*): Remove bsd-uthread.o.
9343 (x86_64-*-freebsd*): Remove bsd-uthread.o.
9344 (fbsd-nat.c): Update comment.
9345 * i386-fbsd-tdep.c: Remove "bsd-uthread.h" include.
9346 (i386fbsd_jmp_buf_reg_offset): Remove.
9347 (i386fbsd_supply_uthread): Remove function.
9348 (i386fbsd_collect_uthread): Remove function.
9349 (i386fbsd_init_abi): Don't set bsd-uthread callbacks.
9350
1e1a8bef
JB
93512017-04-04 John Baldwin <jhb@FreeBSD.org>
9352
9353 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-fbsd-tdep.o.
9354 (ALLDEPFILES): Remove alpha-fbsd-tdep.c
9355 * NEWS: Mention that support for FreeBSD/alpha was removed.
9356 * alpha-fbsd-tdep.c: Delete file.
9357 * config/alpha/fbsd.mh: Delete file.
9358 * configure.host: Delete alpha*-*-freebsd* and
9359 alpha*-*-kfreebsd*-gnu.
9360 * configure.tgt: Delete alpha*-*-freebsd* and
9361 alpha*-*-kfreebsd*-gnu.
9362
49907934
JB
93632017-04-04 John Baldwin <jhb@FreeBSD.org>
9364
9365 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers,
9366 amd64bsd_store_inferior_registers): Use ptid from regcache.
9367
6f77053d
PA
93682017-04-04 Pedro Alves <palves@redhat.com>
9369
9370 * dwarf2read.c (lnp_state_machine): Now a class. Initialize all
9371 data fields, make them private and add "m_" prefixes.
9372 (lnp_state_machine::lnp_state_machine): New ctor.
9373 (record_line, check_line_address, handle_set_discriminator)
9374 (handle_set_address, handle_advance_pc, handle_special_opcode)
9375 (handle_advance_line, handle_set_file, handle_negate_stmt)
9376 (handle_const_add_pc, handle_fixed_advance_pc, handle_copy)
9377 (end_sequence, advance_line): New methods.
9378 (m_gdbarch, m_record_lines_p): New fields.
9379 (lnp_reader_state): Delete.
9380 (dwarf_record_line): Rename to ...
9381 (lnp_state_machine::record_line): ... adjust.
9382 (init_lnp_state_machine): Delete.
9383 (lnp_state_machine::lnp_state_machine): New.
9384 (check_line_address): Rename to ...
9385 (lnp_state_machine::check_line_address): This.
9386 (dwarf_decode_lines_1): Remove reference to "reader_state".
9387 Adjust lnp_state_machine having a non-default ctor. Use bool.
9388 State machine internal state manipulation moved to
9389 lnp_state_machine methods.
9390
9c541725
PA
93912017-04-04 Pedro Alves <palves@redhat.com>
9392
9393 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9394 unittests/offset-type-selftests.c.
9395 (SUBDIR_UNITTESTS_OBS): Add offset-type-selftests.o.
9396 * common/offset-type.h: New file.
9397 * common/preprocessor.h: New file.
9398 * common/traits.h: New file.
9399 * common/valid-expr.h: New file.
9400 * dwarf2expr.c: Include "common/underlying.h". Adjust to use
9401 sect_offset and cu_offset strong typedefs throughout.
9402 * dwarf2expr.h: Adjust to use sect_offset and cu_offset strong
9403 typedefs throughout.
9404 * dwarf2loc.c: Include "common/underlying.h". Adjust to use
9405 sect_offset and cu_offset strong typedefs throughout.
9406 * dwarf2read.c: Adjust to use sect_offset and cu_offset strong
9407 typedefs throughout.
9408 * gdbtypes.h: Include "common/offset-type.h".
9409 (cu_offset): Now an offset type (strong typedef) instead of a
9410 struct.
9411 (sect_offset): Likewise.
9412 (union call_site_parameter_u): Rename "param_offset" field to
9413 "param_cu_off".
9414 * unittests/offset-type-selftests.c: New file.
9415
ecfb656c
PA
94162017-04-04 Pedro Alves <palves@redhat.com>
9417
9418 * common/underlying.h: New file.
9419 * dwarf2read.c: Include "common/gdb_optional.h" and
9420 "common/underlying.h".
9421 (dir_index, file_name_index): New types.
9422 (file_entry): Use them.
9423 (file_entry::include): Use to_underlying.
9424 (line_header::add_file_name): Use dir_index.
9425 (read_formatted_entries): Use gdb::optional. Read form before
9426 writting to file_entry.
9427 (dwarf_decode_line_header): Use dir_index.
9428 (lnp_state_machine::current_file): Use to_underlying.
9429 (lnp_state_machine::file): Change type to file_name_index.
9430 (dwarf_record_line): Use to_underlying.
9431 (init_lnp_state_machine): Use file_name_index.
9432 (dwarf_decode_lines_1): Use dir_index and file_name_index.
9433
d194f1fe
PA
94342017-04-04 Pedro Alves <palves@redhat.com>
9435
9436 * common/gdb_optional.h (gdb::optiona): Add operator->, operator*,
9437 operator bool, has_value and get methods.
9438
fff8551c
PA
94392017-04-04 Pedro Alves <palves@redhat.com>
9440
9441 * dwarf2read.c (struct file_entry): Add ctors, and initialize all
9442 fields.
9443 (line_header): Initialize all data fields. Change type of
9444 standard_opcode_lengths to std::unique_ptr<unsigned char[]>.
9445 Change type of include_dirs to std::vector<const char *>. Remove
9446 num_include_dirs, include_dirs_size. Change type of file_names to
9447 std::vector<file_entry>. Remove num_file_names, file_names_size.
9448 (line_header::line_header): New.
9449 (line_header::add_include_dir, line_header::add_file_name): New
9450 methods.
9451 (line_header::include_dir_at): Remove NULL check.
9452 (line_header::file_name_at): Add const overload.
9453 (line_header_up): New unique_ptr typedef.
9454 (dw2_get_file_names_reader): Use line_header_up. Adjust to use
9455 std::vector. Remove free_line_header call.
9456 (dwarf2_build_include_psymtabs): Use line_header_up. Remove
9457 free_line_header call.
9458 (free_cu_line_header): Delete.
9459 (handle_DW_AT_stmt_list, handle_DW_AT_stmt_list)
9460 (setup_type_unit_groups): Use line_header_up instead of cleanups.
9461 Adjust to use std::vector.
9462 (free_line_header): Delete.
9463 (free_line_header_voidp): Use delete.
9464 (add_include_dir): Replace with ...
9465 (line_header::add_include_dir): ... this method. Use std::vector.
9466 (add_file_name): Replace with ...
9467 (line_header::add_file_name): ... this method. Use std::vector.
9468 (add_include_dir_stub): Delete.
9469 (read_formatted_entries): Remove memset.
9470 (dwarf_decode_line_header): Return a line_header_up instead of a
9471 raw pointer. Remove cleanup handling. Pass lambdas to
9472 read_formatted_entries. Adjust to use line_header methods.
9473 (dwarf_decode_lines_1): Adjust to use line_header methods.
9474 (dwarf_decode_lines, file_file_name, file_full_name): Adjust to
9475 use std::vector.
9476
d62a8ae2
SM
94772017-04-04 Simon Marchi <simon.marchi@polymtl.ca>
9478
9479 * remote.c (set_general_thread, set_continue_thread): Use ptid_t
9480 instead of struct ptid.
9481
db3a1dc7
AH
94822017-05-04 Alan Hayward <alan.hayward@arm.com>
9483
9484 * frame.c (get_frame_register_bytes): Unwind using value.
9485 (put_frame_register_bytes): Likewise.
9486
b1b45502
IB
94872017-03-30 Iain Buclaw <ibuclaw@gdcproject.org>
9488
9489 * d-exp.y (type_aggregate_p): Treat TYPE_CODE_MODULE as being
9490 aggregate-like.
9491
ec13808e
JK
94922017-03-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9493
9494 * auto-load.c (auto_load_section_scripts): Check SEC_HAS_CONTENTS.
9495
12316564
YQ
94962017-03-29 Yao Qi <yao.qi@linaro.org>
9497
9498 * gdbthread.h (struct thread_info): Declare constructor and
9499 destructor. Add some in-class member initializers.
9500 * thread.c (free_thread): Remove.
9501 (init_thread_list): Call delete instead of free_thread.
9502 (new_thread): Call thread_info constructor.
9503 (thread_info::thread_info): New function.
9504 (thread_info::~thread_info): New function.
9505 (delete_thread_1): Call delete instead of free_thread.
9506 (make_cleanup_restore_current_thread): Move tp and frame to
9507 inner block.
9508
fe5f7374
AK
95092017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
9510
9511 * arc-tdep.c (arc_frame_cache): Add support for prologue analysis.
9512 (arc_skip_prologue): Likewise.
9513 (arc_make_frame_cache): Likewise.
9514 (arc_pv_get_operand): New function.
9515 (arc_is_in_prologue): Likewise.
9516 (arc_analyze_prologue): Likewise.
9517 (arc_print_frame_cache): Likewise.
9518 (MAX_PROLOGUE_LENGTH): New constant.
9519
eea78757
AK
95202017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
9521
9522 * configure.tgt: Add arc-insn.o.
9523 * arc-tdep.c (arc_delayed_print_insn): Make non-static.
9524 (dump_arc_instruction_command): New function.
9525 (arc_fprintf_disasm): Likewise.
9526 (arc_disassemble_info): Likewise.
9527 (arc_insn_get_operand_value): Likewise.
9528 (arc_insn_get_operand_value_signed): Likewise.
9529 (arc_insn_get_memory_base_reg): Likewise.
9530 (arc_insn_get_memory_offset): Likewise.
9531 (arc_insn_get_branch_target): Likewise.
9532 (arc_insn_dump): Likewise.
9533 (arc_insn_get_linear_next_pc): Likewise.
9534 * arc-tdep.h (arc_delayed_print_insn): Add function declaration.
9535 (arc_disassemble_info): Likewise.
9536 (arc_insn_get_branch_target): Likewise.
9537 (arc_insn_get_linear_next_pc): Likewise.
9538 * NEWS: Mention new "maint print arc arc-instruction".
9539
3be78afd
AK
95402017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
9541
9542 * arc-tdep (maintenance_print_arc_list): New variable.
9543 (maintenance_print_arc_command): New function.
9544
296ec4fa
AK
95452017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
9546
9547 * arc-tdep.c (core_v2_register_names, core_arcompact_register_names)
9548 Add "limm" and "reserved".
9549 (arc_cannot_fetch_register, arc_cannot_store_register): Add
9550 ARC_RESERVED_REGNUM and ARC_LIMM_REGNUM.
9551 * arc-tdep.h (arc_regnum): Likewise.
9552
f74f865e
MF
95532017-03-27 Max Filippov <jcmvbkbc@gmail.com>
9554
9555 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
9556 for THREADPTR register.
9557 (supply_gregset_reg): Call regcache_raw_supply for THREADPTR
9558 register.
9559 * xtensa-tdep.c (XTENSA_DBREGN_UREG): New definition.
9560 (xtensa_derive_tdep): Initialize tdep->threadptr_regnum.
9561 * xtensa-tdep.h (gdbarch_tdep::threadptr_regnum): New field.
9562
0d0bf81a
MF
95632017-03-27 Max Filippov <jcmvbkbc@gmail.com>
9564
9565 * xtensa-tdep.c (xtensa_pseudo_register_read): Treat all
9566 registers above gdbarch_num_regs (gdbarch) as privileged in
9567 call0 ABI.
9568
0ce4291e
MF
95692017-03-27 Max Filippov <jcmvbkbc@gmail.com>
9570
9571 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
9572 for a single specified register or for all registers in
9573 a0_base..a0_base + C0_NREGS range.
9574 (supply_gregset_reg): Call regcache_raw_supply for a single
9575 specified register or for all registers in a0_base..a0_base +
9576 C0_NREGS range.
9577
c56054f9
MF
95782017-03-27 Max Filippov <jcmvbkbc@gmail.com>
9579
9580 * arch/xtensa.h (C0_NREGS): Add definition.
9581 * xtensa-tdep.c (C0_NREGS): Remove definition.
9582
a4398628
MF
95832017-03-27 Max Filippov <jcmvbkbc@gmail.com>
9584
9585 * xtensa-tdep.c (xtensa_scan_prologue, call0_analyze_prologue):
9586 Drop xtensa_default_isa initialization.
9587 (xtensa_gdbarch_init): Initialize xtensa_default_isa.
9588
8c43009f
PA
95892017-03-27 Pedro Alves <palves@redhat.com>
9590
9591 * dwarf2read.c (file_entry) <dir_index>: Add comment.
9592 (file_entry::include_dir): New method.
9593 (line_header::include_dir_at, line_header::file_name_at): New
9594 methods.
9595 (setup_type_unit_groups, setup_type_unit_groups)
9596 (psymtab_include_file_name): Simplify using the new methods.
9597 (lnp_state_machine) <the_line_header>: New field.
9598 <file>: Add comment.
9599 (lnp_state_machine::current_file): New method.
9600 (dwarf_record_line): Simplify using the new methods.
9601 (init_lnp_state_machine): Initialize the "the_line_header" field.
9602 (dwarf_decode_lines_1, dwarf_decode_lines, file_file_name):
9603 Simplify using the new methods.
9604
a7e80b9e
PA
96052017-03-27 Pedro Alves <palves@redhat.com>
9606
9607 * cp-name-parser.y (make_empty): Delete.
9608 (demangler_special, nested_name, ptr_operator, array_indicator)
9609 (direct_declarator, declarator_1): Use fill_comp instead of
9610 make_empty.
9611
21047726
PA
96122017-03-27 Pedro Alves <palves@redhat.com>
9613
9614 * xml-support.h (gdb_xml_debug): Pass a "first-to-check" argument
9615 to ATTRIBUTE_PRINTF.
9616 * solib-target.c (library_list_start_list): Print "string" not
9617 "version".
9618 * xml-tdesc.c (tdesc_start_field): Pass "field_name" to
9619 gdb_xml_error call.
9620
d721ba37
PA
96212017-03-27 Pedro Alves <palves@redhat.com>
9622
9623 * dwarf2read.c (struct file_and_directory): New.
9624 (dwarf2_get_dwz_file): Adjust to use std::string.
9625 (dw2_get_file_names_reader): Adjust to use file_and_directory.
9626 (find_file_and_directory): Adjust to return a file_and_directory
9627 object.
9628 (read_file_scope): Adjust to use file_and_directory. Remove
9629 make_cleanup/do_cleanups calls.
9630 (open_and_init_dwp_file): Adjust to use std::string. Remove
9631 make_cleanup/do_cleanups calls.
9632 * python/python.c (do_start_initialization): Adjust to ldirname
9633 returning a std::string.
9634 * utils.c (ldirname): Now returns a std::string.
9635 * utils.h (ldirname): Change return type to std::string.
9636 * xml-syscall.c (xml_init_syscalls_info): Adjust to ldirname
9637 returning a std::string.
9638 * xml-tdesc.c (file_read_description_xml): Likewise.
9639
ed771251
AH
96402017-03-24 Alan Hayward <alan.hayward@arm.com>
9641
9642 * regcache.c (regcache_debug_print_register): New function.
9643 * regcache.h (regcache_debug_print_register): New declaration.
9644 * target.c (debug_print_register): Remove.
9645 (target_fetch_registers): Call regcache_debug_print_register.
9646 (target_store_registers): Likewise.
9647
568c1b9f
PB
96482017-03-24 Pádraig Brady <pbrady@fb.com>
9649
9650 * dwarf2read.c (setup_type_unit_groups): Ensure dir_index doesn't
9651 reference beyond the 'lh->include_dirs' array before accessing to
9652 it.
9653 (psymtab_include_file_name): Likewise.
9654 (dwarf_decode_lines_1): Likewise.
9655 (dwarf_decode_lines): Likewise.
9656 (file_file_name): Likewise.
9657
3e00d44f
SM
96582017-03-23 Simon Marchi <simon.marchi@ericsson.com>
9659
9660 * fbsd-tdep.c (fbsd_corefile_thread): Don't set/restore
9661 inferior_ptid.
9662 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
9663 ps_lsetfpregs): Likewise.
9664 * regcache.c (regcache_raw_update, regcache_raw_write): Likewise.
9665 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
9666 ps_lsetfpregs): Likewise.
9667 * target.c (target_fetch_registers, target_store_registers):
9668 Remove asserts.
9669
077ae656
AH
96702017-03-23 Alan Hayward <alan.hayward@arm.com>
9671
9672 * sol-thread.c (sol_thread_store_registers): Remove regcache calls.
9673
1e2b521d
YQ
96742017-03-23 Yao Qi <yao.qi@linaro.org>
9675
9676 * aarch64-tdep.c (aarch64_process_record_test): Declare.
9677 (_initialize_aarch64_tdep): Register it.
9678 (aarch64_record_load_store): Handle PRFM instruction.
9679 (aarch64_process_record_test): New function.
9680
33877125
YQ
96812017-03-23 Yao Qi <yao.qi@linaro.org>
9682
9683 * aarch64-tdep.c (aarch64_record_load_store): Fix code
9684 indentation.
9685
a0eef940
YQ
96862017-03-23 Yao Qi <yao.qi@linaro.org>
9687
9688 * aarch64-tdep.c: Remove AARCH64_RECORD_FAILURE.
9689
3f2a3564
PR
96902017-03-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
9691
9692 python/python.c (do_start_initialization): Fix memory leak.
9693
b67aeab0
SM
96942017-03-22 Simon Marchi <simon.marchi@polymtl.ca>
9695
9696 * inf-ptrace.c (inf_ptrace_xfer_partial): Get pid from ptid
9697 using get_ptrace_pid.
9698 * linux-nat.c (linux_nat_xfer_partial): Don't set/restore
9699 inferior_ptid.
9700 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use lwp of
9701 inferior_ptid instead of pid.
9702
ffdbe864
YQ
97032017-03-22 Yao Qi <yao.qi@linaro.org>
9704
9705 * aarch64-tdep.c: Wrap locally used classes in anonymous
9706 namespace.
9707 * arm-tdep.c: Likewise.
9708 * linespec.c: Likewise.
9709 * ui-out.c: Likewise.
9710
9d736fbf
JG
97112017-03-22 Jonah Graham <jonah@kichwacoders.com>
9712
9713 PR gdb/19637
9714 * python/lib/gdb/printer/bound_registers.py: Import sys.
9715
3de88e9a
SM
97162017-03-21 Simon Marchi <simon.marchi@ericsson.com>
9717
9718 * windows-nat.c (do_windows_fetch_inferior_registers): Add
9719 windows_thread_info parameter and use it instead of
9720 current_thread.
9721 (windows_fetch_inferior_registers): Don't set current_thread,
9722 pass the thread to do_windows_fetch_inferior_registers. Use
9723 ptid from regcache instead of inferior_ptid.
9724 (do_windows_store_inferior_registers): Add windows_thread_info
9725 parameter and use it instead of current_thread.
9726 (windows_store_inferior_registers): Don't set current_thread,
9727 pass the thread to do_windows_store_inferior_registers. Use
9728 ptid from regcache instead of inferior_ptid.
9729
0e7b8f61
SM
97302017-03-21 Simon Marchi <simon.marchi@ericsson.com>
9731
9732 * ser-mingw.c (ser_windows_raw): Remove reference to
9733 struct serial::current_timeout.
9734
5badf10a
IR
97352017-03-21 Ivo Raisr <ivo.raisr@oracle.com>
9736
9737 PR tdep/20928
9738 * gdb/sparc-tdep.h (gdbarch_tdep) <sparc64_ccr_type>: New field.
9739 * gdb/sparc64-tdep.c (sparc64_ccr_type): New function.
9740 (sparc64_fsr_type): Fix %fsr decoding.
9741
cee59b3f
TW
97422017-03-21 Tim Wiederhake <tim.wiederhake@intel.com>
9743
9744 * python/py-record-btrace.c (btpy_insn_data): Change return type
9745 for Python 2.
9746
639a9038
SM
97472017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
9748
9749 * spu-linux-nat.c (spu_fetch_inferior_registers,
9750 spu_store_inferior_registers): Use ptid from regcache, set and
9751 restore inferior_ptid.
9752 * spu-multiarch.c (spu_fetch_registers, spu_store_registers):
9753 Likewise.
9754
bcc0c096
SM
97552017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
9756
9757 * i386-linux-nat.c (fetch_register, store_register,
9758 i386_linux_fetch_inferior_registers,
9759 i386_linux_store_inferior_registers): Use ptid from regcache.
9760 * ia64-linux-nat.c (ia64_linux_fetch_register,
9761 ia64_linux_store_register): Likewise.
9762 * inf-ptrace.c (inf_ptrace_fetch_register,
9763 inf_ptrace_store_register): Likewise.
9764 * m32r-linux-nat.c (m32r_linux_fetch_inferior_registers,
9765 m32r_linux_store_inferior_registers): Likewise.
9766 * m68k-bsd-nat.c (m68kbsd_fetch_inferior_registers,
9767 m68kbsd_store_inferior_registers): Likewise.
9768 * m68k-linux-nat.c (fetch_register, store_register,
9769 m68k_linux_fetch_inferior_registers,
9770 m68k_linux_store_inferior_registers): Likewise.
9771 * m88k-bsd-nat.c (m88kbsd_fetch_inferior_registers,
9772 m88kbsd_store_inferior_registers): Likewise.
9773 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers,
9774 mips_fbsd_store_inferior_registers): Likewise.
9775 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers,
9776 mips64_linux_regsets_store_registers): Likewise.
9777 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers,
9778 mipsnbsd_store_inferior_registers): Likewise.
9779 * mips-obsd-nat.c (mips64obsd_fetch_inferior_registers,
9780 mips64obsd_store_inferior_registers): Likewise.
9781 * nto-procfs.c (procfs_fetch_registers, procfs_store_registers):
9782 Likewise.
9783 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers,
9784 ppcfbsd_store_inferior_registers): Likewise.
9785 * ppc-linux-nat.c (ppc_linux_fetch_inferior_registers,
9786 ppc_linux_store_inferior_registers): Likewise.
9787 * ppc-nbsd-nat.c (ppcnbsd_fetch_inferior_registers,
9788 ppcnbsd_store_inferior_registers): Likewise.
9789 * ppc-obsd-nat.c (ppcobsd_fetch_registers,
9790 ppcobsd_store_registers): Likewise.
9791 * procfs.c (procfs_fetch_registers, procfs_store_registers):
9792 Likewise.
9793 * ravenscar-thread.c (ravenscar_fetch_registers,
9794 ravenscar_store_registers, ravenscar_prepare_to_store):
9795 Likewise.
9796 * record-btrace.c (record_btrace_fetch_registers,
9797 record_btrace_store_registers, record_btrace_prepare_to_store):
9798 Likewise.
9799 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register):
9800 Lookup inferior using ptid from regcache, instead of
9801 current_inferior.
9802 * remote.c (remote_fetch_registers, remote_store_registers): Use
9803 ptid from regcache.
9804 * rs6000-nat.c (fetch_register, store_register): Likewise.
9805 * s390-linux-nat.c (s390_linux_fetch_inferior_registers,
9806 s390_linux_store_inferior_registers): Likewise.
9807 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers,
9808 shnbsd_store_inferior_registers): Likewise.
9809 * sol-thread.c (sol_thread_fetch_registers,
9810 sol_thread_store_registers): Likewise.
9811 * sparc-nat.c (sparc_fetch_inferior_registers,
9812 sparc_store_inferior_registers): Likewise.
9813 * tilegx-linux-nat.c (fetch_inferior_registers,
9814 store_inferior_registers): Likewise.
9815 * vax-bsd-nat.c (vaxbsd_fetch_inferior_registers,
9816 vaxbsd_store_inferior_registers): Likewise.
9817 * xtensa-linux-nat.c (fetch_gregs, store_gregs, fetch_xtregs,
9818 store_xtregs): Likewise.
9819
c0f55cc6
AV
98202017-03-20 Artemiy Volkov <artemiyv@acm.org>
9821
9822 PR gdb/14441
9823 * NEWS: Mention support for rvalue references in GDB and python.
9824 * doc/gdb.texinfo (C Plus Plus Expressions): Mention that GDB
9825 supports both lvalue and rvalue references.
9826
15c0a2a9
AV
98272017-03-20 Artemiy Volkov <artemiyv@acm.org>
9828
9829 PR gdb/14441
9830 * gdbtypes.c (rank_one_type): Implement overloading
9831 resolution rules regarding rvalue references.
9832
aa006118
AV
98332017-03-20 Artemiy Volkov <artemiyv@acm.org>
9834
9835 PR gdb/14441
9836 * aarch64-tdep.c (aarch64_type_align)
9837 (aarch64_extract_return_value, aarch64_store_return_value): Change
9838 lvalue reference type checks to general reference type checks.
9839 * amd64-tdep.c (amd64_classify): Likewise.
9840 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
9841 Likewise.
9842 * arm-tdep.c (arm_type_align, arm_extract_return_value)
9843 (arm_store_return_value): Likewise.
9844 * ax-gdb.c (gen_fetch, gen_cast): Likewise.
9845 * c-typeprint.c (c_print_type): Likewise.
9846 * c-varobj.c (adjust_value_for_child_access, c_value_of_variable)
9847 (cplus_number_of_children, cplus_describe_child): Likewise.
9848 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
9849 * completer.c (expression_completer): Likewise.
9850 * cp-support.c (make_symbol_overload_list_adl_namespace):
9851 Likewise.
9852 * darwin-nat-info.c (info_mach_region_command): Likewise.
9853 * dwarf2loc.c (entry_data_value_coerce_ref)
9854 (value_of_dwarf_reg_entry): Likewise.
9855 * eval.c (ptrmath_type_p, evaluate_subexp_standard)
9856 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof):
9857 Likewise.
9858 * findvar.c (extract_typed_address, store_typed_address):
9859 Likewise.
9860 * gdbtypes.c (rank_one_type): Likewise.
9861 * hppa-tdep.c (hppa64_integral_or_pointer_p): Likewise.
9862 * infcall.c (value_arg_coerce): Likewise.
9863 * language.c (pointer_type): Likewise.
9864 * m32c-tdep.c (m32c_reg_arg_type, m32c_m16c_address_to_pointer):
9865 Likewise.
9866 * m88k-tdep.c (m88k_integral_or_pointer_p): Likewise.
9867 * mn10300-tdep.c (mn10300_type_align): Likewise.
9868 * msp430-tdep.c (msp430_push_dummy_call): Likewise.
9869 * ppc-sysv-tdep.c (do_ppc_sysv_return_value)
9870 (ppc64_sysv_abi_push_param, ppc64_sysv_abi_return_value):
9871 Likewise.
9872 * printcmd.c (print_formatted, x_command): Likewise.
9873 * python/py-type.c (typy_get_composite, typy_template_argument):
9874 Likewise.
9875 * python/py-value.c (valpy_referenced_value)
9876 (valpy_get_dynamic_type, value_has_field): Likewise.
9877 * s390-linux-tdep.c (s390_function_arg_integer): Likewise.
9878 * sparc-tdep.c (sparc_integral_or_pointer_p): Likewise.
9879 * sparc64-tdep.c (sparc64_integral_or_pointer_p): Likewise.
9880 * spu-tdep.c (spu_scalar_value_p): Likewise.
9881 * symtab.c (lookup_symbol_aux): Likewise.
9882 * typeprint.c (whatis_exp, print_type_scalar): Likewise.
9883 * valarith.c (binop_types_user_defined_p, unop_user_defined_p):
9884 Likewise.
9885 * valops.c (value_cast_pointers, value_cast)
9886 (value_reinterpret_cast, value_dynamic_cast, value_addr, typecmp)
9887 (value_struct_elt, value_struct_elt_bitpos)
9888 (value_find_oload_method_list, find_overload_match)
9889 (value_rtti_indirect_type): Likewise.
9890 * valprint.c (val_print_scalar_type_p, generic_val_print):
9891 Likewise.
9892 * value.c (value_actual_type, value_as_address, unpack_long)
9893 (pack_long, pack_unsigned_long, coerce_ref_if_computed)
9894 (coerce_ref): Likewise.
9895 * varobj.c (varobj_get_value_type): Likewise.
9896
3fcf899d
AV
98972017-03-20 Artemiy Volkov <artemiyv@acm.org>
9898
9899 PR gdb/14441
9900 * doc/python.texi (Types in Python): Add TYPE_CODE_RVALUE_REF to
9901 table of constants.
9902 * python/lib/gdb/command/explore.py: Support exploring values
9903 of rvalue reference types.
9904 * python/lib/gdb/types.py: Implement get_basic_type() for
9905 rvalue reference types.
9906 * python/py-type.c (pyty_codes) <TYPE_CODE_RVALUE_REF>: New
9907 constant.
9908 * python/py-value.c (valpy_getitem): Add an rvalue reference
9909 check.
9910 (valpy_reference_value): Add new parameter "refcode".
9911 (valpy_lvalue_reference_value, valpy_rvalue_reference_value):
9912 New wrappers for valpy_reference_value().
9913 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
9914 (gdbpy_invoke_xmethod): Likewise.
9915
4297a3f0
AV
99162017-03-20 Artemiy Volkov <artemiyv@acm.org>
9917
9918 PR gdb/14441
9919 * dwarf2read.c (process_die, read_type_die_1): Handle the
9920 DW_TAG_rvalue_reference_type DIE.
9921 (read_tag_reference_type): Add new parameter "refcode".
9922
e1cb3213
AV
99232017-03-20 Artemiy Volkov <artemiyv@acm.org>
9924
9925 PR gdb/14441
9926 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix)
9927 (c_type_print_modifier, c_type_print_varspec_suffix)
9928 (c_type_print_base): Support printing rvalue reference types.
9929 * c-valprint.c (c_val_print, c_value_print): Support printing
9930 rvalue reference values.
9931
e4347c89
AV
99322017-03-20 Artemiy Volkov <artemiyv@acm.org>
9933
9934 PR gdb/14441
9935 * cp-name-parser.y (ptr_operator): Handle the '&&' token in
9936 typename.
9937 * cp-support.c (replace_typedefs): Handle
9938 DEMANGLE_COMPONENT_RVALUE_REFERENCE.
9939 * python/py-type.c (typy_lookup_type): Likewise.
9940
53cc15f5
AV
99412017-03-20 Artemiy Volkov <artemiyv@acm.org>
9942
9943 PR gdb/14441
9944 * c-exp.y (ptr_operator): Handle the '&&' token in the typename.
9945 * parse.c (insert_type): Change assert statement.
9946 (follow_types): Handle rvalue reference types.
9947 * parser-defs.h (enum type_pieces) <tp_rvalue_reference>: New
9948 constant.
9949
a65cfae5
AV
99502017-03-20 Artemiy Volkov <artemiyv@acm.org>
9951
9952 PR gdb/14441
9953 * ada-lang.c (ada_evaluate_subexp): Adhere to the new
9954 value_ref() interface.
9955 * c-valprint.c (c_value_print): Likewise.
9956 * infcall.c (value_arg_coerce): Likewise.
9957 * python/py-value.c (valpy_reference_value): Likewise.
9958 * valops.c (value_cast, value_reinterpret_cast)
9959 (value_dynamic_cast, typecmp): Likewise.
9960 (value_ref): Parameterize by kind of return value reference type.
9961 * value.h (value_ref): Add new parameter "refcode".
9962
3b224330
AV
99632017-03-20 Artemiy Volkov <artemiyv@acm.org>
9964
9965 PR gdb/14441
9966 * dwarf2read.c (read_tag_reference_type): Use
9967 lookup_lvalue_reference_type() instead of lookup_reference_type().
9968 * eval.c (evaluate_subexp_standard): Likewise.
9969 * f-exp.y: Likewise.
9970 * gdbtypes.c (make_reference_type, lookup_reference_type):
9971 Generalize with rvalue reference types.
9972 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): New
9973 convenience wrappers for lookup_reference_type().
9974 * gdbtypes.h (make_reference_type, lookup_reference_type): Add a
9975 reference kind parameter.
9976 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): Add
9977 wrappers for lookup_reference_type().
9978 * guile/scm-type.c (gdbscm_type_reference): Use
9979 lookup_lvalue_reference_type() instead of lookup_reference_type().
9980 * guile/scm-value.c (gdbscm_value_dynamic_type): Likewise.
9981 * parse.c (follow_types): Likewise.
9982 * python/py-type.c (typy_reference, typy_lookup_type): Likewise.
9983 * python/py-value.c (valpy_get_dynamic_type, valpy_getitem):
9984 Likewise.
9985 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
9986 (gdbpy_invoke_xmethod): Likewise.
9987 * stabsread.c: Provide extra argument to make_reference_type()
9988 call.
9989 * valops.c (value_ref, value_rtti_indirect_type): Use
9990 lookup_lvalue_reference_type() instead of lookup_reference_type().
9991
f9aeb8d4
AV
99922017-03-20 Artemiy Volkov <artemiyv@acm.org>
9993
9994 PR gdb/14441
9995 * gdbtypes.h (enum type_code) <TYPE_CODE_RVALUE_REF>: New constant.
9996 (TYPE_IS_REFERENCE): New macro.
9997 (struct type): Add rvalue_reference_type field.
9998 (TYPE_RVALUE_REFERENCE_TYPE): New macro.
9999
51457a05
MAL
100002017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
10001
10002 * NEWS: Add an entry about new '-file-list-shared-libraries' command.
10003 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries):
10004 New function definition.
10005 * mi/mi-cmds.c (mi_cmds): Add -file-list-shared-libraries command.
10006 * mi/mi-cmds.h (mi_cmd_file_list_shared_libraries):
10007 New function declaration.
10008 * mi/mi-interp.c (mi_output_solib_attribs): New Function.
10009 * mi/mi-interp.h: New file.
10010 * solib.c (info_sharedlibrary_command): Replace for loop with
10011 ALL_SO_LIBS macro
10012 * solib.h (update_solib_list): New function declaration.
10013 (so_list_head): Move macro.
10014 * solist.h (ALL_SO_LIBS): New macro.
10015
e696b3ad
MAL
100162017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
10017
10018 * infcmd.c (post_create_inferior): Remove unused argument in
10019 call to solib_add.
10020 * remote.c (remote_start_remote): Likewise.
10021 * solib-frv.c (frv_fetch_objfile_link_map): Likewise.
10022 * solib-svr4.c: (svr4_fetch_objfile_link_map): Likewise.
10023 (enable_break): Likewise.
10024 * solib.c (update_solib_list): Remove unused target argument
10025 and its documentation.
10026 (solib_add): Remove unused target argument. Remove unused
10027 argument in call to update_solib_list.
10028 (info_sharedlibrary_command): Remove unused argument in call
10029 to update_solib_list.
10030 (sharedlibrary_command): Remove unused argument in call to
10031 solib_add.
10032 (handle_solib_event): Likewise.
10033 (reload_shared_libraries): Likewise.
10034 * solib.h (solib_add): Remove unused target argument.
10035
dcb84eda
AA
100362017-03-20 Andreas Arnez <arnez@linux.vnet.ibm.com>
10037
10038 * s390-linux-tdep.c (is_rsi, is_rie): Remove functions.
10039 (s390_displaced_step_fixup): Cover relative branches with the
10040 default fixup handling. This fixes lack of support for some
10041 relative branch instructions.
10042
d9cb6cdc
SM
100432017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
10044
10045 * i386-gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Use
10046 ptid from regcache.
10047
1afaf9f4
SM
100482017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
10049
10050 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers,
10051 i386_darwin_store_inferior_registers): Use ptid from regcache.
10052
aac12e24
SM
100532017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
10054
10055 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers,
10056 i386bsd_store_inferior_registers): Use ptid from regcache.
10057
bbe1eef1
SM
100582017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
10059
10060 * hppa-obsd-nat.c (hppaobsd_fetch_registers,
10061 hppaobsd_store_registers): Use ptid from regcache.
10062
10799020
SM
100632017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
10064
10065 * hppa-nbsd-nat.c (hppanbsd_fetch_registers,
10066 hppanbsd_store_registers): Use ptid from regcache.
10067
00204cf7
SM
100682017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
10069
10070 * hppa-linux-nat.c (fetch_register, store_register): Use ptid
10071 from regcache. Use get_ptrace_pid.
10072
11a33714
SM
100732017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
10074
10075 * corelow.c (get_core_register_section): Use ptid from regcache,
10076 update doc.
10077
317cd492
SM
100782017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
10079
10080 * bsd-uthread.c (bsd_uthread_fetch_registers,
10081 bsd_uthread_store_registers): Use ptid from regcache, set and
10082 restore inferior_ptid.
10083
9ac8a7c2
SM
100842017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
10085
10086 * arm-nbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
10087 fetch_fp_regs, store_register, store_regs, store_fp_register,
10088 store_fp_regs): Use ptid from regcache.
10089
4ac4bb6a
SM
100902017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
10091
10092 * arm-linux-nat.c (fetch_fpregs, store_fpregs, fetch_regs,
10093 store_regs, fetch_wmmx_regs, store_wmmx_regs, fetch_vfp_regs,
10094 store_vfp_regs): Use ptid from regcache.
10095
9bcbdca8
PA
100962017-03-17 Pedro Alves <palves@redhat.com>
10097
10098 PR remote/21188
10099 * ser-base.c (ser_base_wait_for): Add comment.
10100 (do_ser_base_readchar): Improve comment based on the ser-unix.c's
10101 version.
10102 * ser-unix.c (hardwire_raw): Remove reference to
10103 scb->current_timeout.
10104 (wait_for, do_hardwire_readchar, hardwire_readchar): Delete.
10105 (hardwire_ops): Install ser_base_readchar instead of
10106 hardwire_readchar.
10107 * serial.h (struct serial) <current_timeout, timeout_remaining>:
10108 Remove fields.
10109
7503099f
JG
101102017-03-17 Jonah Graham <jonah@kichwacoders.com>
10111
10112 PR gdb/19637
10113 * python/lib/gdb/printer/bound_registers.py: Add support for
10114 Python 3.
10115
7942e96e
AA
101162017-03-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
10117
10118 * dwarf2loc.c (indirect_synthetic_pointer): Get data type of
10119 pointed-to DIE and pass it to dwarf2_evaluate_loc_desc_full.
10120 (dwarf2_evaluate_loc_desc_full): New parameter subobj_type; rename
10121 byte_offset to subobj_byte_offset. Fix the handling of
10122 DWARF_VALUE_STACK on big-endian targets when coming via an
10123 implicit pointer.
10124 (dwarf2_evaluate_loc_desc): Adjust call to
10125 dwarf2_evaluate_loc_desc_full.
10126 * dwarf2loc.h (dwarf2_fetch_die_type_sect_off): New declaration.
10127 * dwarf2read.c (dwarf2_fetch_die_type_sect_off): New function.
10128
ba14f379
YQ
101292017-03-16 Yao Qi <yao.qi@linaro.org>
10130
10131 * arm-tdep.c (thumb_record_misc): Decode CBNZ, CBZ, REV16,
10132 and REVSH instructions.
10133
b121eeb9
YQ
101342017-03-16 Yao Qi <yao.qi@linaro.org>
10135
10136 * arm-tdep.c [GDB_SELF_TEST]: include "selftests.h".
10137 (arm_record_test): Declare.
10138 (_initialize_arm_tdep) [GDB_SELF_TEST]: call register_self_test.
10139 (thumb_record_ld_st_reg_offset): Rewrite the opcode matching to
10140 align with the manual.
10141 (thumb_record_misc): Adjust the code order to align with the
10142 manual.
10143 (thumb2_record_decode_insn_handler): Fix instruction matching.
10144 (instruction_reader_thumb): New class.
10145 (arm_record_test): New function.
10146
728a7913
YQ
101472017-03-16 Yao Qi <yao.qi@linaro.org>
10148
10149 * arm-tdep.c (abstract_memory_reader): New class.
10150 (instruction_reader): New class.
10151 (extract_arm_insn): Add argument 'reader'. Callers updated.
10152 (decode_insn): Likewise.
10153
34b43320
DE
101542017-03-16 Doug Evans <dje@google.com>
10155
a7c0469f
DE
10156 * guile/scm-lazy-string.c (lazy_string_smob): Clarify use of LENGTH
10157 member. Change type of TYPE member to SCM. All uses updated.
10158 (lsscm_make_lazy_string_smob): Add assert.
10159 (lsscm_make_lazy_string): Flag bad length values.
10160 (lsscm_elt_type): New function.
10161 (gdbscm_lazy_string_to_value): Rewrite to use
10162 lsscm_safe_lazy_string_to_value.
10163 (lsscm_safe_lazy_string_to_value): Fix handling of TYPE_CODE_PTR.
10164 * guile/scm-value.c (gdbscm_value_to_lazy_string): Flag bad length
10165 values. Fix TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle typedefs
10166 in incoming type.
10167 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
10168 * guile/scm-type.c (tyscm_scm_to_type): New function.
10169
101702017-03-15 Doug Evans <dje@google.com>
10171
34b43320
DE
10172 PR python/17728, python/18439, python/18779
10173 * python/py-lazy-string.c (lazy_string_object): Clarify use of LENGTH
10174 member. Change type of TYPE member to PyObject *. All uses updated.
10175 (stpy_convert_to_value): Fix handling of TYPE_CODE_PTR.
10176 (gdbpy_create_lazy_string_object): Flag bad length values.
10177 Handle TYPE_CODE_ARRAY with possibly different user-provided length.
10178 Handle typedefs in incoming type.
10179 (stpy_lazy_string_elt_type): New function.
10180 (gdbpy_extract_lazy_string): Call it.
10181 * python/py-value.c (valpy_lazy_string): Flag bad length values.
10182 Fix handling of TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle
10183 typedefs in incoming type.
10184
a3a5fecc
DE
101852017-03-16 Doug Evans <dje@google.com>
10186
10187 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
10188 * guile/scm-type.c (tyscm_scm_to_type): New function.
10189
28f1c605
JW
101902017-03-16 Jiong Wang <jiong.wang@arm.com>
10191
10192 * inf-ptrace.c (inf_ptrace_peek_poke): Change the type to
10193 "ULONGEST" for "skip".
10194
87c336f6
AA
101952017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
10196
10197 PR gdb/21220
10198 * inf-ptrace.c (inf_ptrace_xfer_partial): In "case
10199 TARGET_OBJECT_MEMORY", extract the logic for ptrace peek/poke...
10200 (inf_ptrace_peek_poke): ...here. New function. Now also loop
10201 over ptrace peek/poke until end of buffer or error.
10202
cf81cf60
SM
102032017-03-14 Simon Marchi <simon.marchi@ericsson.com>
10204
10205 * parse.c (length_of_subexp): Make static.
10206 * parser-defs.h (length_of_subexp): Remove.
10207
a379284a
AA
102082017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
10209
10210 * linux-nat.c (linux_proc_xfer_partial): Handle write operations
10211 as well.
10212
8a6200ba
PA
102132017-03-14 Pedro Alves <palves@redhat.com>
10214
10215 * cp-name-parser.y (cp_demangled_name_to_comp): Update comment.
10216 (main): Use std::unique_ptr. Remove calls to
10217 cp_demangled_name_parse_free.
10218
f79ec206
SM
102192017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
10220
10221 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers,
10222 alphabsd_store_inferior_registers): Use regcache->ptid instead
10223 of inferior_ptid.
10224
edb5fb00
SM
102252017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
10226
10227 * aix-thread.c (aix_thread_fetch_registers,
10228 aix_thread_store_registers): Use regcache->ptid instead of
10229 inferior_ptid.
10230
55119686
SM
102312017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
10232
10233 * aarch64-linux-nat.c (fetch_gregs_from_thread,
10234 store_gregs_to_thread, fetch_fpregs_from_thread,
10235 store_fpregs_to_thread): Use regcache->ptid instead of
10236 inferior_ptid.
10237
6a06fbb7
SM
102382017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
10239
10240 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers,
10241 amd64_linux_fetch_inferior_registers): Use regcache->ptid
10242 instead of inferior_ptid.
10243
c6386875
SM
102442017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
10245
10246 * target.c (target_fetch_registers, target_store_registers): Add
10247 assert.
10248
ddaaf0fb
SM
102492017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
10250
10251 * regcache.h (regcache_get_ptid): New function.
10252 * regcache.c (regcache_get_ptid): New function.
10253
b9da89d1 102542017-03-13 Mark Wielaard <mark@klomp.org>
10255
10256 * cp-name-parser.y (make_empty): Initialize d_printing to zero.
10257
5f4d1085
KS
102582017-03-10 Keith Seitz <keiths@redhat.com>
10259
10260 PR c++/8218
10261 * c-typeprint.c (cp_type_print_method_args): Skip artificial arguments.
10262
c65d6b55
PA
102632017-03-08 Pedro Alves <palves@redhat.com>
10264
10265 PR gdb/18360
10266 * infrun.c (start_step_over, do_target_resume, resume)
10267 (restart_threads): Assert we're not resuming a thread that is
10268 meant to be stopped.
10269 (infrun_thread_stop_requested_callback): Delete.
10270 (infrun_thread_stop_requested): If the thread is internally
10271 stopped, queue a pending stop event and clear the thread's
10272 inline-frame state.
10273 (handle_stop_requested): New function.
10274 (handle_syscall_event, handle_inferior_event_1): Use
10275 handle_stop_requested.
10276 (handle_stop_requested): New function.
10277 (handle_signal_stop): Set the thread's stop_signal here instead of
10278 at caller.
10279 (finish_step_over): Clear step over info unconditionally.
10280 (handle_signal_stop): If the user had interrupted the event
10281 thread, consider the stop a random signal.
10282 (handle_signal_stop) <signal arrived while stepping over
10283 breakpoint>: Don't restart threads here.
10284 (stop_waiting): Don't clear step-over info here.
10285
15c22686
PA
102862017-03-08 Pedro Alves <palves@redhat.com>
10287
10288 PR 21206
10289 * common/gdb_unlinker.h (unlinker::unlinker): Attribute nonnull
10290 goes to argument 2, not 1.
10291
6e5d74e7
PA
102922017-03-08 Pedro Alves <palves@redhat.com>
10293
10294 PR cli/21218
10295 * top.c (gdb_readline_wrapper): Avoid passing NULL to
10296 display_gdb_prompt.
10297 (command_line_input): Add comment.
10298
9753a2f6
PA
102992017-03-08 Pedro Alves <palves@redhat.com>
10300
10301 PR tui/21216
10302 * tui/tui-file.c (tui_file::write): New.
10303 * tui/tui-file.h (tui_file): Override "write".
10304 * tui/tui-io.c (do_tui_putc, update_start_line): New functions,
10305 factored out from ...
10306 (tui_puts): ... here.
10307 (tui_putc): Use them.
10308 (tui_write): New function.
10309 * tui/tui-io.h (tui_write): Declare.
10310
1672e0d9
SDJ
103112017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
10312
10313 * Makefile.in (SFILES): Replace "environ.c" with
10314 "common/environ.c".
10315 (HFILES_NO_SRCDIR): Likewise, for "environ.h".
10316 * environ.c: Include "common-defs.h" instead of "defs.h. Moved
10317 to...
10318 * common/environ.c: ... here.
10319 * environ.h: Moved to...
10320 * common/environ.h: ... here.
10321
f7bb4e3a
PB
103222017-03-07 Peter Bergner <bergner@vnet.ibm.com>
10323
10324 * gdbarch.sh (pstring_ptr): New static function.
10325 (gdbarch_disassembler_options): Use it.
10326 (gdbarch_verify_disassembler_options): Print valid_disassembler_options,
10327 not valid_disassembler_option->name.
10328 * gdbarch.c: Regenerate.
10329
e45ced6c
PB
103302017-03-07 Peter Bergner <bergner@vnet.ibm.com>
10331
10332 * config/powerpc/ppc64-linux.mh (MH_CFLAGS): Delete.
10333
5f6fd321
PA
103342017-03-07 Pedro Alves <palves@redhat.com>
10335
10336 * tui/tui-regs.c (tui_restore_gdbout): Don't delete gdb_stdout.
10337
6dbb839a 103382017-03-07 Walfred Tedeschi <walfred.tedeschi@intel.com>
4a612d6f
WT
10339
10340 * i387-tdep.h (i387_reset_bnd_regs): Add function definition.
10341 * i387-tdep.c (i387_reset_bnd_regs): Add function implementation.
10342 * i386-tdep.c (i386_push_dummy_call): Call i387_reset_bnd_regs.
6dbb839a 10343 * amd64-tdep.c (amd64_push_dummy_call): Call i387_reset_bnd_regs.
4a612d6f 10344
d274ecf4
SM
103452017-03-06 Simon Marchi <simon.marchi@ericsson.com>
10346
10347 * xtensa-linux-nat.c (fetch_gregs): Remove const.
10348
df97be55
SM
103492017-03-03 Simon Marchi <simon.marchi@ericsson.com>
10350
10351 * remote.c (remote_add_target_side_commands): Use range-based
10352 for loop.
10353
7d45f3df
YQ
103542017-03-03 Yao Qi <yao.qi@linaro.org>
10355
10356 PR gdb/21165
10357 * ada-valprint.c (ada_val_print_ref): Call value_fetch_lazy if
10358 value is lazy.
10359 * valprint.c (common_val_print): Likewise.
10360
65b48a81
PB
103612017-02-28 Peter Bergner <bergner@vnet.ibm.com>
10362
10363 * NEWS: Mention new set/show disassembler-options commands.
10364 * doc/gdb.texinfo: Document new set/show disassembler-options commands.
10365 * disasm.c: Include "arch-utils.h", "gdbcmd.h" and "safe-ctype.h".
10366 (prospective_options): New static variable.
10367 (gdb_disassembler::gdb_disassembler): Initialize
10368 m_di.disassembler_options.
10369 (gdb_buffered_insn_length_init_dis): Initilize di->disassembler_options.
10370 (get_disassembler_options): New function.
10371 (set_disassembler_options): Likewise.
10372 (set_disassembler_options_sfunc): Likewise.
10373 (show_disassembler_options_sfunc): Likewise.
10374 (disassembler_options_completer): Likewise.
10375 (_initialize_disasm): Likewise.
10376 * disasm.h (get_disassembler_options): New prototype.
10377 (set_disassembler_options): Likewise.
10378 * gdbarch.sh (gdbarch_disassembler_options): New variable.
10379 (gdbarch_verify_disassembler_options): Likewise.
10380 * gdbarch.c: Regenerate.
10381 * gdbarch.h: Likewise.
10382 * arm-tdep.c (num_disassembly_options): Delete.
10383 (set_disassembly_style): Likewise.
10384 (arm_disassembler_options): New static variable.
10385 (set_disassembly_style_sfunc): Convert short style name into long
10386 option name. Call set_disassembler_options.
10387 (show_disassembly_style_sfunc): New function.
10388 (arm_gdbarch_init): Call set_gdbarch_disassembler_options and
10389 set_gdbarch_verify_disassembler_options.
10390 (_initialize_arm_tdep): Delete regnames variable and update callers.
10391 (arm_disassembler_options): Initialize.
10392 (disasm_options): New variable.
10393 (num_disassembly_options): Rename from this...
10394 (num_disassembly_styles): ...to this. Compute by scanning through
10395 disasm_options.
10396 (valid_disassembly_styles): Initialize using disasm_options.
10397 Remove calls to parse_arm_disassembler_option, get_arm_regnames and
10398 set_arm_regname_option.
10399 Pass show_disassembly_style_sfunc to the "disassembler" setshow command.
10400 * rs6000-tdep.c (powerpc_disassembler_options): New static variable.
10401 (rs6000_gdbarch_init): Call set_gdbarch_disassembler_options and
10402 set_gdbarch_verify_disassembler_options.
10403 * s390-tdep.c (s390_disassembler_options): New static variable.
10404 (s390_gdbarch_init):all set_gdbarch_disassembler_options and
10405 set_gdbarch_verify_disassembler_options.
10406
d538e36d
SM
104072017-02-27 Simon Marchi <simon.marchi@ericsson.com>
10408
10409 * remote.c (remote_add_target_side_condition): Remove "struct"
10410 keyword from range-based for loop.
10411
83621223
SM
104122017-02-27 Simon Marchi <simon.marchi@ericsson.com>
10413
10414 * remote.c (remote_add_target_side_condition): Use range-based
10415 for loop. Update comment.
10416
2123df0e
YQ
104172017-02-27 Yao Qi <yao.qi@linaro.org>
10418
10419 * f-typeprint.c (f_print_type): Check "varstring" is empty first.
10420
8e368124
AH
104212017-02-26 Alan Hayward <alan.hayward@arm.com>
10422
10423 * regcache.c (regcache_raw_update): New function.
10424 (regcache_raw_read): Move code to regcache_raw_update.
10425 * regcache.h (regcache_raw_update): New declaration.
10426 * remote.c (remote_prepare_to_store): Call regcache_raw_update.
10427
a49dd8dd
JK
104282017-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10429
10430 * dwarf2read.c (create_debug_type_hash_table): Initialize
10431 header.signature and header.type_offset_in_tu.
10432
34e4bae9
PA
104332017-02-24 Pedro Alves <palves@redhat.com>
10434
10435 * symtab.c (make_file_symbol_completion_list_1): Use
10436 add_symtab_completions.
10437
b0e4b369
AH
104382017-02-24 Alan Hayward <alan.hayward@arm.com>
10439
10440 * stack.c (frame_info): Use frame_unwind_register_value to avoid buf.
10441
975c21ab
AH
104422017-02-24 Alan Hayward <alan.hayward@arm.com>
10443
10444 * i386-tdep.c (i386_pseudo_register_read_into_value): Use
10445 I386_MAX_REGISTER_SIZE.
10446 (i386_pseudo_register_write): Likewise.
10447 (i386_process_record): Likewise.
10448 * i387-tdep.c (i387_supply_xsave): Likewise.
10449 * m68k-linux-nat.c (fetch_register): Use M68K_MAX_REGISTER_SIZE.
10450 (store_register): Likewise.
10451
14bc53a8
PA
104522017-02-23 Pedro Alves <palves@redhat.com>
10453
10454 * ada-lang.c: Include "common/function-view.h".
10455 (ada_iterate_over_symbols): Adjust to use function_view as
10456 callback type.
10457 (struct add_partial_datum, ada_complete_symbol_matcher): Delete.
10458 (ada_make_symbol_completion_list): Use a lambda.
10459 (ada_exc_search_name_matches): Delete.
10460 (name_matches_regex): New.
10461 (ada_add_global_exceptions): Use a lambda and name_matches_regex.
10462 * compile/compile-c-support.c: Include "common/function-view.h".
10463 (print_one_macro): Change prototype to accept a ui_file pointer.
10464 (write_macro_definitions): Use a lambda.
10465 * dwarf2read.c: Include "common/function-view.h".
10466 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
10467 (dw2_expand_symtabs_matching): Adjust to use function_view as
10468 callback type.
10469 * language.h: Include "common/function-view.h".
10470 (struct language_defn) <la_iterate_over_symbols>: Adjust to use
10471 function_view as callback type.
10472 (LA_ITERATE_OVER_SYMBOLS): Remove DATA parameter.
10473 * linespec.c: Include "common/function-view.h".
10474 (collect_info::add_symbol): New method.
10475 (struct symbol_and_data_callback, iterate_inline_only, struct
10476 symbol_matcher_data, iterate_name_matcher): Delete.
10477 (iterate_over_all_matching_symtabs): Adjust to use function_view
10478 as callback type and lambdas.
10479 (iterate_over_file_blocks): Adjust to use function_view as
10480 callback type.
10481 (decode_compound_collector): Now a class with private fields.
10482 (decode_compound_collector::release_symbols): New method.
10483 (collect_one_symbol): Rename to...
10484 (decode_compound_collector::operator()): ... this and adjust.
10485 (lookup_prefix_sym): decode_compound_collector construction bits
10486 move to decode_compound_collector ctor. Pass the
10487 decode_compound_collector object directly as callback. Remove
10488 cleanups and use decode_compound_collector::release_symbols
10489 instead.
10490 (symtab_collector): Now a class with private fields.
10491 (symtab_collector::release_symtabs): New method.
10492 (add_symtabs_to_list): Rename to...
10493 (symtab_collector::operator()): ... this and adjust.
10494 (collect_symtabs_from_filename): symtab_collector construction
10495 bits move to symtab_collector ctor. Pass the symtab_collector
10496 object directly as callback. Remove cleanups and use
10497 symtab_collector::release_symtabs instead.
10498 (collect_symbols): Delete.
10499 (add_matching_symbols_to_info): Use lambdas.
10500 * macrocmd.c (print_macro_callback): Delete.
10501 (info_macro_command): Use a lambda.
10502 (info_macros_command): Pass print_macro_definition as callable
10503 directly.
10504 (print_one_macro): Remove 'ignore' parameter.
10505 (macro_list_command): Adjust.
10506 * macrotab.c (macro_for_each_data::fn): Now a function_view.
10507 (macro_for_each_data::user_data): Delete field.
10508 (foreach_macro): Adjust to call the function_view.
10509 (macro_for_each): Adjust to use function_view as callback type.
10510 (foreach_macro_in_scope): Adjust to call the function_view.
10511 (macro_for_each_in_scope): Adjust to use function_view as callback
10512 type.
10513 * macrotab.h: Include "common/function-view.h".
10514 (macro_callback_fn): Declare a prototype instead of a pointer.
10515 Remove "user_data" parameter.
10516 (macro_for_each, macro_for_each_in_scope): Adjust to use
10517 function_view as callback type.
10518 * psymtab.c (partial_map_expand_apply)
10519 (psym_map_symtabs_matching_filename, recursively_search_psymtabs):
10520 Adjust to use function_view as callback type and to return bool.
10521 (psym_expand_symtabs_matching): Adjust to use function_view as
10522 callback types.
10523 * symfile-debug.c (debug_qf_map_symtabs_matching_filename): Adjust
10524 to use function_view as callback type and to return bool.
10525 (debug_qf_expand_symtabs_matching): Adjust to use function_view as
10526 callback types.
10527 * symfile.c (expand_symtabs_matching): Adjust to use function_view
10528 as callback types.
10529 * symfile.h: Include "common/function-view.h".
10530 (expand_symtabs_file_matcher_ftype)
10531 (expand_symtabs_symbol_matcher_ftype)
10532 (expand_symtabs_exp_notify_ftype): Remove "data" parameter and
10533 return bool.
10534 (quick_symbol_functions::map_symtabs_matching_filename)
10535 (quick_symbol_functions::expand_symtabs_matching): Adjust to use
10536 function_view as callback type and return bool.
10537 (expand_symtabs_matching): Adjust to use function_view as callback
10538 type.
10539 (maintenance_expand_name_matcher)
10540 (maintenance_expand_file_matcher): Delete.
10541 (maintenance_expand_symtabs): Use lambdas.
10542 * symtab.c (iterate_over_some_symtabs): Adjust to use
10543 function_view as callback types and return bool.
10544 (iterate_over_symtabs): Likewise. Use unique_xmalloc_ptr instead
10545 of a cleanup.
10546 (lookup_symtab_callback): Delete.
10547 (lookup_symtab): Use a lambda.
10548 (iterate_over_symbols): Adjust to use function_view as callback
10549 type.
10550 (struct search_symbols_data, search_symbols_file_matches)
10551 (search_symbols_name_matches): Delete.
10552 (search_symbols): Use a pair of lambdas.
10553 (struct add_name_data, add_macro_name, symbol_completion_matcher)
10554 (symtab_expansion_callback): Delete.
10555 (default_make_symbol_completion_list_break_on_1): Use lambdas.
10556 * symtab.h: Include "common/function-view.h".
10557 (iterate_over_some_symtabs): Adjust to use function_view as
10558 callback type and return bool.
10559 (iterate_over_symtabs): Adjust to use function_view as callback
10560 type.
10561 (symbol_found_callback_ftype): Remove 'data' parameter and return
10562 bool.
10563 (iterate_over_symbols): Adjust to use function_view as callback
10564 type.
10565
07e253aa
PA
105662017-02-23 Pedro Alves <palves@redhat.com>
10567
10568 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS): New.
10569 (%.o) <unittests/%.c>: New pattern.
10570 * configure.ac ($development): Add $(SUBDIR_UNITTESTS_OBS) to
10571 CONFIG_OBS, and $(SUBDIR_UNITTESTS_SRCS) to CONFIG_SRCS.
10572 * common/function-view.h: New file.
10573 * unittests/function-view-selftests.c: New file.
10574 * configure: Regenerate.
10575
8eaf5320
SM
105762017-02-23 Simon Marchi <simon.marchi@ericsson.com>
10577
10578 * bsd-uthread.c (bsd_uthread_thread_alive): Use ptid instead of
10579 inferior_ptid.
10580 * go32-nat.c (go32_thread_alive): Likewise.
10581
38768751
YQ
105822017-02-23 Yao Qi <yao.qi@linaro.org>
10583
10584 * varobj-iter.h (varobj_iter_delete): Call xfree instead of
10585 delete.
10586
0a8beaba
YQ
105872017-02-23 Yao Qi <yao.qi@linaro.org>
10588
10589 * varobj.c (varobj_clear_saved_item): Use delete instead of
10590 xfree.
10591 (update_dynamic_varobj_children): Likewise.
10592
58fdfd2c
JK
105932017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10594
10595 * dwarf2read.c (dwarf2_record_block_ranges): Add forgotten BASEADDR.
10596
1b90b139
SM
105972017-02-21 Simon Marchi <simon.marchi@ericsson.com>
10598
10599 * common/enum-flags.h (enum_flags::enum_flags): Initialize
10600 m_enum_value to 0 in default constructor.
10601
2039d74e
EBM
106022017-02-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
10603
10604 * rs6000-tdep.c (LOAD_AND_RESERVE_MASK): Rename from LWARX_MASK.
10605 (STORE_CONDITIONAL_MASK): Rename from STWCX_MASK.
10606 (LBARX_INSTRUCTION, LHARX_INSTRUCTION, LQARX_INSTRUCTION,
10607 STBCX_INSTRUCTION, STHCX_INSTRUCTION, STQCX_INSTRUCTION): New defines.
10608 (IS_LOAD_AND_RESERVE_INSN, IS_STORE_CONDITIONAL_INSN): New macros.
10609 (ppc_displaced_step_copy_insn): Use IS_LOAD_AND_RESERVE_INSN.
10610 (ppc_deal_with_atomic_sequence): Use IS_LOAD_AND_RESERVE_INSN and
10611 IS_STORE_CONDITIONAL_INSN.
10612
7814882a
JK
106132017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10614
10615 * dwarf2_rnglists_process: Initialize range_beginning and range_end.
10616
0ae60b63
JK
106172017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10618
10619 * NEWS (Changes since GDB 7.12): Add DWARF-5.
10620
0224619f
JK
106212017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10622
10623 * dwarf2read.c (skip_one_die, read_attribute_value)
10624 (dwarf2_const_value_attr, dump_die_shallow)
10625 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
10626 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_data16.
10627
0af92d60
JK
106282017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10629
10630 * dwarf2read.c (read_file_scope): Rename DW_MACRO_GNU_*.
10631 (dwarf_parse_macro_header): Accept DWARF version 5.
10632 (dwarf_decode_macro_bytes, dwarf_decode_macros): Rename DW_MACRO_GNU_*.
10633
216f72a1
JK
106342017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10635
10636 * block.c (call_site_for_pc): Rename DW_OP_GNU_*, DW_TAG_GNU_* and
10637 DW_AT_GNU_*.
10638 * common/common-exceptions.h (enum errors): Likewise.
10639 * dwarf2-frame.c (class dwarf_expr_executor): Likewise.
10640 * dwarf2expr.c (dwarf_block_to_dwarf_reg)
10641 (dwarf_expr_context::execute_stack_op): Likewise.
10642 * dwarf2expr.h (struct dwarf_expr_context, struct dwarf_expr_piece):
10643 Likewise.
10644 * dwarf2loc.c (dwarf_evaluate_loc_desc::get_base_type)
10645 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
10646 (show_entry_values_debug, call_site_to_target_addr)
10647 (func_addr_to_tail_call_list, func_verify_no_selftailcall)
10648 (dwarf_expr_reg_to_entry_parameter, dwarf_entry_parameter_to_value)
10649 (entry_data_value_free_closure, value_of_dwarf_reg_entry)
10650 (value_of_dwarf_block_entry, indirect_pieced_value)
10651 (symbol_needs_eval_context::push_dwarf_reg_entry_value):
10652 (disassemble_dwarf_expression): Likewise.
10653 * dwarf2read.c (process_die, inherit_abstract_dies)
10654 (read_call_site_scope): Likewise.
10655 * gdbtypes.h (struct func_type, struct call_site_parameter)
10656 (struct call_site): Likewise.
10657 * stack.c (read_frame_arg): Likewise.
10658 * std-operator.def (OP_VAR_ENTRY_VALUE): Likewise.
10659
43988095
JK
106602017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10661
10662 * defs.h (read_unsigned_leb128): New declaration.
10663 * dwarf2loc.c (decode_debug_loclists_addresses): New function.
10664 (decode_debug_loc_dwo_addresses): Update DEBUG_LOC_* to DW_LLE_*.
10665 (dwarf2_find_location_expression): Call also
10666 decode_debug_loclists_addresses. Handle DWARF-5 ULEB128 length.
10667 * dwarf2loc.h (dwarf2_version): New declaration.
10668 * dwarf2read.c (struct dwarf2_per_objfile): Add loclists, line_str,
10669 rnglists.
10670 (dwarf2_elf_names): Add .debug_loclists, .debug_line_str,
10671 .debug_rnglists.
10672 (struct dwop_section_names): Add loclists_dwo.
10673 (dwop_section_names): Add .debug_loclists.dwo.
10674 (struct comp_unit_head): Add unit_type, signature, type_offset_in_tu.
10675 (struct dwarf2_per_cu_data): Add dwarf_version.
10676 (struct dwo_sections): Add loclists.
10677 (struct attr_abbrev): Add implicit_const.
10678 (read_indirect_line_string): New declaration.
10679 (read_unsigned_leb128): Delete declaration.
10680 (rcuh_kind): New definition.
10681 (read_and_check_comp_unit_head): Change parameter
10682 is_debug_types_section to section_kind.
10683 (dwarf2_locate_sections): Handle loclists, line_str and rnglists.
10684 (read_comp_unit_head): Change parameter abfd to section, add parameter
10685 section_kind. Handle DWARF-5.
10686 (error_check_comp_unit_head): Accept also DWARF version 5.
10687 (read_and_check_comp_unit_head): Change parameter
10688 is_debug_types_section to section_kind.
10689 (read_and_check_type_unit_head): Delete function.
10690 (read_abbrev_offset): Handle DWARF-5.
10691 (create_debug_type_hash_table): Add parameter section_kind. Process
10692 only DW_UT_type. Use signature and type_offset_in_tu from struct
10693 comp_unit_head.
10694 (create_debug_types_hash_table): Update create_debug_type_hash_table
10695 caller.
10696 (create_all_type_units): Call create_debug_type_hash_table.
10697 (read_cutu_die_from_dwo, init_cutu_and_read_dies): Change
10698 read_and_check_type_unit_head caller to read_and_check_comp_unit_head
10699 caller.
10700 (skip_one_die): Handle DW_FORM_implicit_const.
10701 (dwarf2_rnglists_process): New function.
10702 (dwarf2_ranges_process): Call dwarf2_rnglists_process for DWARF-5.
10703 (abbrev_table_read_table): Handle DW_FORM_implicit_const.
10704 (read_attribute_value): Handle DW_FORM_implicit_const,
10705 DW_FORM_line_strp.
10706 (read_attribute): Handle DW_FORM_implicit_const.
10707 (read_indirect_string_at_offset_from): New function from
10708 read_indirect_string_at_offset.
10709 (read_indirect_string_at_offset): Call
10710 read_indirect_string_at_offset_from.
10711 (read_indirect_line_string_at_offset): New function.
10712 (read_indirect_string): New function comment.
10713 (read_indirect_line_string): New function.
10714 (read_unsigned_leb128): Make it global.
10715 (dwarf2_string_attr): Handle DWARF-5.
10716 (add_include_dir_stub, read_formatted_entries): New functions.
10717 (dwarf_decode_line_header, dump_die_shallow, cu_debug_loc_section):
10718 Handle DWARF-5.
10719 (per_cu_header_read_in): Update read_comp_unit_head caller.
10720 (dwarf2_version): New function.
10721 * symfile.h (struct dwarf2_debug_sections): Add loclists, line_str and
10722 rnglists.
10723 * xcoffread.c (dwarf2_xcoff_names): Update struct dwarf2_debug_sections
10724 fields.
10725
22d2f3ab
JK
107262017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10727
10728 * dwarf2read.c (abbrev_table_read_table): Read the data only once.
10729
5f46c5a5
JK
107302017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10731
10732 * dwarf2read.c (dwarf2_ranges_process): New function from
10733 dwarf2_ranges_read.
10734 (dwarf2_ranges_read, dwarf2_record_block_ranges): Use
10735 dwarf2_ranges_process.
10736
78d4d2c5
JK
107372017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10738
10739 * dwarf2read.c (create_debug_type_hash_table): New function from
10740 create_debug_types_hash_table.
10741 (create_debug_types_hash_table): Call create_debug_type_hash_table.
10742 (create_all_type_units, open_and_init_dwo_file): Update
10743 create_debug_types_hash_table callers.
10744
1b076f25
SDJ
107452017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10746
10747 PR gdb/16188
10748 * fork-child.c (trace_start_error): Fix thinko. va_end should
10749 refer to 'ap', not 'args'.
10750
0db8980c
SDJ
107512017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10752 Pedro Alves <palves@redhat.com>
10753
10754 PR gdb/16188
10755 * darwin-nat.c (darwin_ptrace_me): Check if calls to system
10756 calls succeeded.
10757 * fork-child.c (trace_start_error): New function.
10758 (trace_start_error_with_name): Likewise.
10759 * gnu-nat.c (gnu_ptrace_me): Check if call to PTRACE succeeded.
10760 * inf-ptrace.c (inf_ptrace_me): Likewise.
10761 * inferior.h (trace_start_error): New prototype.
10762 (trace_start_error_with_name): Likewise.
10763
99e8a4f9
SDJ
107642017-02-15 Sergio Durigan Junior <sergiodj@redhat.com>
10765
10766 PR gdb/21164
10767 * psymtab.c (maintenance_print_psymbols): Verify if 'argv' is not
10768 NULL before using it.
10769 * symmisc.c (maintenance_print_symbols): Likewise.
10770 (maintenance_print_msymbols): Likewise.
10771
4e746bb6
TW
107722017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10773
10774 * NEWS: Add record Python bindings entry.
10775
107762017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10777
10778 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-record-btrace.o,
10779 py-record-full.o.
10780 (SUBDIR_PYTHON_SRCS): Add py-record-btrace.c, py-record-full.c.
10781 * python/py-record-btrace.c, python/py-record-btrace.h,
10782 python/py-record-full.c, python/py-record-full.h: New file.
10783 * python/py-record.c: Add include for py-record-btrace.h and
10784 py-record-full.h.
10785 (recpy_method, recpy_format, recpy_goto, recpy_replay_position,
10786 recpy_instruction_history, recpy_function_call_history, recpy_begin,
10787 recpy_end): Use functions from py-record-btrace.c and py-record-full.c.
10788 * python/python-internal.h (PyInt_FromSsize_t, PyInt_AsSsize_t):
10789 New definition.
10790 (gdbpy_initialize_btrace): New export.
10791 * python/python.c (_initialize_python): Add gdbpy_initialize_btrace.
10792
107932017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10794
10795 * Makefile.in (SUBDIR_PYTHON_OBS): Add python/py-record.o.
10796 (SUBDIR_PYTHON_SRCS): Add python/py-record.c.
10797 * python/py-record.c: New file.
10798 * python/python-internal.h (gdbpy_start_recording,
10799 gdbpy_current_recording, gdpy_stop_recording,
10800 gdbpy_initialize_record): New export.
10801 * python/python.c (_initialize_python): Add gdbpy_initialize_record.
10802 (python_GdbMethods): Add gdbpy_start_recording,
10803 gdbpy_current_recording and gdbpy_stop_recording.
10804
108052017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10806
10807 * record-btrace.c (record_btrace_record_method): New function.
10808 (init_record_btrace_ops): Initialize to_record_method.
10809 * record-full.c (record_full_record_method): New function.
10810 (init_record_full_ops, init_record_full_core_ops): Add
10811 record_full_record_method.
10812 * record.h (enum record_method): New enum.
10813 * target-debug.h (target_debug_print_enum_record_method: New define.
10814 * target-delegates.c: Regenerate.
10815 * target.c (target_record_method): New function.
10816 * target.h: Include record.h.
10817 (struct target_ops) <to_record_method>: New field.
10818 (target_record_method): New export.
10819
108202017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10821
10822 * record.h (record_start, record_stop): New export.
10823 * record.c (record_start, record_stop): New function.
10824
108252017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10826
10827 * btrace.c (btrace_fetch): Copy function call segments pointer
10828 into a vector.
10829 (btrace_clear): Clear the vector.
10830 (btrace_find_insn_by_number): Use binary search to find the correct
10831 function call segment.
10832 * btrace.h (brace_fun_p): New typedef.
10833 (struct btrace_thread_info) <functions>: New field.
10834
108352017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10836
10837 * record-btrace.c (btrace_ui_out_decode_error): Move most of it ...
10838 * btrace.c (btrace_decode_error): ... here. New function.
10839 * btrace.h (btrace_decode_error): New export.
10840
108412017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10842
10843 * btrace.c (ftrace_call_num_insn, btrace_insn_get_error): New function.
10844 (ftrace_new_function, btrace_insn_number, btrace_insn_cmp,
10845 btrace_find_insn_by_number): Remove special case for gaps.
10846 * btrace.h (btrace_insn_get_error): New export.
10847 (btrace_insn_number, btrace_find_insn_by_number): Adjust comment.
10848 * record-btrace.c (btrace_insn_history): Print number for gaps.
10849 (record_btrace_info, record_btrace_goto): Handle gaps.
10850
3f77c769
TT
108512017-02-14 Tom Tromey <tom@tromey.com>
10852
10853 PR python/13598:
10854 * python/python.c (gdbpy_before_prompt_hook): Emit before_prompt
10855 event.
10856 * python/py-evts.c (gdbpy_initialize_py_events): Add
10857 before_prompt registry.
10858 * python/py-events.h (events_object) <before_prompt>: New field.
10859
4c2c7ac6
MM
108602017-02-14 Markus Metzger <markus.t.metzger@intel.com>
10861
10862 * btrace.c (ftrace_new_switch): Preserve up link and flags.
10863
5cf30ebf
LM
108642017-02-13 Luis Machado <lgustavo@codesourcery.com>
10865
10866 * symfile (_initialize_symfile): Add usage text to the load command's
10867 help text.
10868
26a06916
SM
108692017-02-10 Simon Marchi <simon.marchi@ericsson.com>
10870
10871 * utils.c (defaulted_query): Don't query on secondary UIs.
10872
0b145e37
TT
108732017-02-10 Tom Tromey <tom@tromey.com>
10874
10875 * rust-lang.c (rust_get_disr_info): Remove unused variable.
10876
2d8365c4
TT
108772017-02-10 Tom Tromey <tom@tromey.com>
10878
10879 * python/py-value.c (valpy_richcompare_throw): Remove unnecessary
10880 "cleanup" local.
10881 * python/py-type.c (typy_legacy_template_argument): Remove
10882 unnecessary "cleanup" local.
10883
2bb8f231
TT
108842017-02-10 Tom Tromey <tom@tromey.com>
10885
10886 * python/python.c (do_start_initialization): New function, from
10887 _initialize_python.
10888 (_initialize_python): Call do_start_initialization.
10889 * python/py-linetable.c (ltpy_iternext): Use explicit returns, not
10890 goto.
10891
1bdfaf42
TT
108922017-02-10 Tom Tromey <tom@tromey.com>
10893
10894 * python/py-prettyprint.c (pretty_print_one_value): Use
10895 gdbpy_ref.
10896
88b6faea
TT
108972017-02-10 Tom Tromey <tom@tromey.com>
10898
10899 * python/py-cmd.c (cmdpy_destroyer): Use gdbpy_ref.
10900 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Use
10901 gdbpy_ref.
10902 * python/py-type.c (field_new): Use gdbpy_ref.
10903 * python/py-symtab.c (symtab_and_line_to_sal_object): Use
10904 gdbpy_ref.
10905 * python/py-progspace.c (pspy_new): Use gdbpy_ref.
10906 (py_free_pspace): Likewise.
10907 (pspace_to_pspace_object): Likewise.
10908 * python/py-objfile.c (objfpy_new): Use gdbpy_ref.
10909 (py_free_objfile): Likewise.
10910 (objfile_to_objfile_object): Likewise.
10911 * python/py-inferior.c (delete_thread_object): Use
10912 gdbpy_ref.
10913 (infpy_read_memory): Likewise.
10914 (py_free_inferior): Likewise.
10915 * python/py-evtregistry.c (create_eventregistry_object): Use
10916 gdbpy_ref.
10917 * python/py-event.c (create_event_object): Use gdbpy_ref.
10918
7780f186
TT
109192017-02-10 Tom Tromey <tom@tromey.com>
10920
10921 * python/py-ref.h (gdbpy_ref_policy): Now a template.
10922 (gdbpy_ref): Now a template; allow subclasses of PyObject to be
10923 used.
10924 * python/py-arch.c, python/py-bpevent.c, python/py-breakpoint.c,
10925 python/py-cmd.c, python/py-continueevent.c, python/py-event.c,
10926 python/py-exitedevent.c, python/py-finishbreakpoint.c,
10927 python/py-framefilter.c, python/py-function.c,
10928 python/py-inferior.c, python/py-infevents.c,
10929 python/py-linetable.c, python/py-newobjfileevent.c,
10930 python/py-param.c, python/py-prettyprint.c, python/py-ref.h,
10931 python/py-signalevent.c, python/py-stopevent.c,
10932 python/py-symbol.c, python/py-threadevent.c, python/py-type.c,
10933 python/py-unwind.c, python/py-utils.c, python/py-value.c,
10934 python/py-varobj.c, python/py-xmethods.c, python/python.c,
10935 varobj.c: Change gdbpy_ref to gdbpy_ref<>.
10936
d4b0bb18
TT
109372017-02-10 Tom Tromey <tom@tromey.com>
10938
10939 * ui-out.h (ui_out_emit_type): New class.
10940 (ui_out_emit_tuple, ui_out_emit_list): New typedefs.
10941 * python/py-framefilter.c (py_print_single_arg): Use gdb::optional
10942 and ui_out_emit_tuple.
10943 (enumerate_locals): Likewise.
10944 (py_mi_print_variables, py_print_locals, py_print_args): Use
10945 ui_out_emit_list.
10946 (py_print_frame): Use gdb::optional, ui_out_emit_tuple,
10947 ui_out_emit_list.
10948 * common/gdb_optional.h: New file.
10949
f67f945c
MG
109502017-02-10 Martin Galvan <martingalvan@sourceware.org>
10951
10952 * MAINTAINERS (Write After Approval): Update my e-mail address.
10953
18da0c51
MG
109542017-02-10 Martin Galvan <martingalvan@sourceware.org>
10955
10956 PR gdb/21122
10957 * breakpoint.c (_initialize_breakpoint): Update the help description
10958 of the 'commands' command to indicate that it takes a list argument.
10959
62c14536
SM
109602017-02-09 Simon Marchi <simon.marchi@ericsson.com>
10961
10962 * interps.c (current_interp_set_logging): Remove "return".
10963
ff6fa247
GB
109642017-02-09 Gary Benson <gbenson@redhat.com>
10965
10966 * symtab.c (add_symtab_completions): Prevent NULL pointer
10967 dereference.
10968
a474bd8e
PA
109692017-02-08 Pedro Alves <palves@redhat.com>
10970
10971 * interps.c (interp::interp): Remove reference to quiet_p.
10972 (interp_set): Make static. Remove dead "Switching to" output
10973 code.
10974 (interp_quiet_p, interp_set_quiet): Delete.
10975 (interpreter_exec_cmd): Don't set the interpreter quiet.
10976 * interps.h (interp_quiet_p): Make static.
10977 (class interp) <quiet_p>: Remove field
10978
3d7b173c
JG
109792017-02-08 Jerome Guitton <guitton@adacore.com>
10980
604c4576
JG
10981 * cli/cli-decode.c (find_command_name_length): Make it extern.
10982 * cli/cli-decode.h (find_command_name_length): Declare.
10983 * cli/cli-script.c (command_name_equals, line_first_arg):
10984 New functions.
10985 (process_next_line): Use cli-decode to parse command names.
10986 (build_command_line): Make args a constant pointer.
10987
109882017-02-08 Jerome Guitton <guitton@adacore.com>
6dbb839a 10989
3d7b173c
JG
10990 * cli-decode.c (lookup_cmd_1, lookup_cmd_composition):
10991 Remove case-insensitive search.
10992
1291063d
JM
109932017-02-07 Jose E. Marchesi <jose.marchesi@oracle.com>
10994
10995 * sparc-tdep.c (sparc32_gdbarch_init): Do not place a + operator
10996 at the end of the line. Avoids an ARI warning.
10997
20b477a7
LM
109982017-02-06 Luis Machado <lgustavo@codesourcery.com>
10999
11000 * NEWS: Mention support for record/replay of Intel 64 rdrand and
11001 rdseed instructions.
11002 i386-tdep.c (i386_process_record): Handle Intel 64 rdrand and rseed.
11003
3f7b46f2
IR
110042017-02-06 Ivo Raisr <ivo.raisr@oracle.com>
11005
11006 PR tdep/20936
11007 Provide and use sparc32 and sparc64 target description XML files.
11008 * features/sparc/sparc32-cp0.xml, features/sparc/sparc32-cpu.xml,
11009 features/sparc/sparc32-fpu.xml: New files for sparc 32-bit.
11010 * features/sparc/sparc64-cp0.xml, features/sparc/sparc64-cpu.xml,
11011 features/sparc/sparc64-fpu.xml: New files for sparc 64-bit.
11012 * features/sparc/sparc32-solaris.xml: New file.
11013 * features/sparc/sparc64-solaris.xml: New file.
11014 * features/sparc/sparc32-solaris.c: Generated.
11015 * features/sparc/sparc64-solaris.c: Generated.
11016 * sparc-tdep.h: Account for differences in target descriptions.
11017 * sparc-tdep.c (sparc32_register_name): Use target provided registers.
11018 (sparc32_register_type): Use target provided registers.
11019 (validate_tdesc_registers): New function.
11020 (sparc32_gdbarch_init): Use tdesc_has_registers.
11021 Set pseudoregister functions.
11022 * sparc64-tdep.c (sparc64_register_name): Use target provided registers.
11023 (sparc64_register_type): Use target provided registers.
11024 (sparc64_init_abi): Set pseudoregister functions.
11025
f0fd41c1
TT
110262017-02-03 Tom Tromey <tom@tromey.com>
11027
11028 PR rust/21097:
11029 * rust-lang.c (rust_print_type) <TYPE_CODE_UNION>: Handle enums
11030 with a single member.
11031
d6f9b0fb
PA
110322017-02-03 Pedro Alves <palves@redhat.com>
11033
11034 * cli/cli-interp.c (cli_interp_base::cli_interp_base)
11035 (cli_interp_base::~cli_interp_base): New.
11036 (cli_interp): New struct.
11037 (as_cli_interp): Cast the interp itself to cli_interp.
11038 (cli_interpreter_pre_command_loop): Rename to ...
11039 (cli_interp_base::pre_command_loop): ... this. Remove 'self'
11040 parameter.
11041 (cli_interpreter_init): Rename to ...
11042 (cli_interp::init): ... this. Remove 'self' parameter. Use
11043 boolean. Make extern.
11044 (cli_interpreter_resume): Rename to ...
11045 (cli_interp::resume): ... this. Remove 'data' parameter. Make
11046 extern.
11047 (cli_interpreter_suspend): Rename to ...
11048 (cli_interp::suspend): ... this. Remove 'data' parameter. Make
11049 extern.
11050 (cli_interpreter_exec): Rename to ...
11051 (cli_interp::exec): ... this. Remove 'data' parameter. Make
11052 extern.
11053 (cli_interpreter_supports_command_editing): Rename to ...
11054 (cli_interp_base::supports_command_editing): ... this. Remove
11055 'interp' parameter. Make extern.
11056 (cli_ui_out): Rename to ...
11057 (cli_interp::interp_ui_out): ... this. Remove 'interp' parameter.
11058 Make extern.
11059 (cli_set_logging): Rename to ...
11060 (cli_interp_base::set_logging): ... this. Remove 'interp'
11061 parameter. Make extern.
11062 (cli_interp_procs): Delete.
11063 (cli_interp_factory): Adjust to use "new".
11064 * cli/cli-interp.h: Include "interps.h".
11065 (struct cli_interp_base): New struct.
11066 * interps.c (struct interp): Delete. Fields moved to interps.h.
11067 (interp_new): Delete.
11068 (interp::interp, interp::~interp): New.
11069 (interp_set): Use bool, and return void. Assume the interpreter
11070 has suspend, init and resume methods, and that the all return
11071 void.
11072 (set_top_level_interpreter): interp_set returns void.
11073 (interp_ui_out): Adapt.
11074 (current_interp_set_logging): Adapt.
11075 (interp_data): Delete.
11076 (interp_pre_command_loop, interp_supports_command_editing): Adapt.
11077 (interp_exec): Adapt.
11078 (top_level_interpreter_data): Delete.
11079 * interps.h (interp_init_ftype, interp_resume_ftype)
11080 (interp_suspend_ftype, interp_exec_ftype)
11081 (interp_pre_command_loop_ftype, interp_ui_out_ftype): Delete.
11082 (class interp): New.
11083 (interp_new): Delete.
11084 (interp_set): Now returns void. Use bool.
11085 (interp_data, top_level_interpreter_data): Delete.
11086 * mi/mi-common.h: Include interps.h.
11087 (class mi_interp): Inherit from interp. Define a ctor. Declare
11088 init, resume, suspect, exec, interp_ui_out, set_logging and
11089 pre_command_loop methods.
11090 * mi/mi-interp.c (as_mi_interp): Cast the interp itself.
11091 (mi_interpreter_init): Rename to ...
11092 (mi_interp::init): ... this. Remove the 'interp' parameter, use
11093 bool, return void and make extern. Adjust.
11094 (mi_interpreter_resume): ... Rename to ...
11095 (mi_interp::resume): ... this. Remove the 'data' parameter,
11096 return void and make extern. Adjust.
11097 (mi_interpreter_suspend): ... Rename to ...
11098 (mi_interp::suspend): ... this. Remove the 'data' parameter,
11099 return void and make extern. Adjust.
11100 (mi_interpreter_exec): ... Rename to ...
11101 (mi_interp::exec): ... this. Remove the 'data' parameter and make
11102 extern. Adjust.
11103 (mi_interpreter_pre_command_loop): ... Rename to ...
11104 (mi_interp::pre_command_loop): ... this. Remove the 'self'
11105 parameter and make extern.
11106 (mi_on_normal_stop_1): Adjust.
11107 (mi_ui_out): Rename to ...
11108 (mi_interp::interp_ui_out): ... this. Remove the 'interp'
11109 parameter and make extern. Adjust.
11110 (mi_set_logging): Rename to ...
11111 (mi_interp::set_logging): ... this. Remove the 'interp'
11112 parameter and make extern. Adjust.
11113 (mi_interp_procs): Delete.
11114 (mi_interp_factory): Adjust to use 'new'.
11115 * mi/mi-main.c (mi_cmd_gdb_exit, captured_mi_execute_command)
11116 (mi_print_exception, mi_execute_command, mi_load_progress):
11117 Adjust.
11118 * tui/tui-interp.c (tui_interp): New class.
11119 (as_tui_interp): Return a tui_interp pointer.
11120 (tui_on_normal_stop, tui_on_signal_received)
11121 (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited)
11122 (tui_on_no_history, tui_on_user_selected_context_changed): Adjust
11123 to use interp::interp_ui_out.
11124 (tui_init): Rename to ...
11125 (tui_interp::init): ... this. Remove the 'self' parameter, use
11126 bool, return void and make extern. Adjust.
11127 (tui_resume): Rename to ...
11128 (tui_interp::resume): ... this. Remove the 'data' parameter,
11129 return void and make extern. Adjust.
11130 (tui_suspend): Rename to ...
11131 (tui_interp::suspend): ... this. Remove the 'data' parameter,
11132 return void and make extern. Adjust.
11133 (tui_ui_out): Rename to ...
11134 (tui_interp::interp_ui_out): ... this. Remove the 'self'
11135 parameter, and make extern. Adjust.
11136 (tui_exec): Rename to ...
11137 (tui_interp::exec): ... this. Remove the 'data' parameter and
11138 make extern.
11139 (tui_interp_procs): Delete.
11140 (tui_interp_factory): Use "new".
11141
65c40c95
TT
111422017-02-02 Tom Tromey <tom@tromey.com>
11143
11144 * rust-exp.y (ends_raw_string, space_then_number)
11145 (rust_identifier_start_p): Return bool.
11146 * rust-lang.c (rust_tuple_type_p, rust_underscore_fields)
11147 (rust_tuple_struct_type_p, rust_tuple_variant_type_p)
11148 (rust_slice_type_p, rust_range_type_p, rust_u8_type_p)
11149 (rust_chartype_p): Return bool.
11150 (val_print_struct, rust_print_struct_def, rust_print_type):
11151 Update.
11152 * rust-lang.h (rust_tuple_type_p, rust_tuple_struct_type_p):
11153 Return bool.
11154
b50f188d
TT
111552017-02-02 Tom Tromey <tom@tromey.com>
11156
11157 * rust-lang.c: Reindent.
11158
03c85b11
TT
111592017-02-02 Tom Tromey <tom@tromey.com>
11160
11161 * rust-lang.h (rust_crate_for_block): Update.
11162 * rust-lang.c (rust_crate_for_block): Return std::string.
11163 (rust_get_disr_info): Use std:;string, not
11164 gdb::unique_xmalloc_ptr.
11165 * rust-exp.y (crate_name): Update.
11166
9b6da501
PA
111672017-02-02 Pedro Alves <palves@redhat.com>
11168
11169 * disasm-selftests.c (print_one_insn_test): Move the "verbose"
11170 field out of gdb_disassembler_test and make it static.
11171
ec4cb20b
PA
111722017-02-02 Pedro Alves <palves@redhat.com>
11173
11174 * mi/mi-common.h (struct mi_interp): Delete the mi2_interp,
11175 mi1_interp and mi_interp fields.
11176
5be5dbf0
PA
111772017-02-02 Pedro Alves <palves@redhat.com>
11178
616268b6
PA
11179 * cli/cli-interp.c (struct saved_output_files, saved_output):
11180 Moved from cli/cli-logging.c.
11181 (cli_set_logging): New function.
11182 (cli_interp_procs): Install cli_set_logging.
11183 * cli/cli-interp.h (make_logging_output, cli_set_logging):
11184 Declare.
11185 * cli/cli-logging.c (struct saved_output_files, saved_output):
11186 Moved to cli/cli-interp.c.
11187 (pop_output_files): Don't save outputs here.
11188 (make_logging_output): New function.
11189 (handle_redirections): Don't build tee nor save previous outputs
11190 here.
11191 * interps.c (current_interp_set_logging): Change prototype.
11192 Assume there's always a set_logging_proc method installed.
11193 * interps.h (interp_set_logging_ftype): Change prototype.
11194 (current_interp_set_logging): Change prototype and adjust comment.
11195 * mi/mi-interp.c (mi_set_logging): Change protototype. Adjust to
11196 use make_logging_output.
11197 * tui/tui-interp.c (tui_interp_procs): Install cli_set_logging.
111982017-02-02 Pedro Alves <palves@redhat.com>
11199
5be5dbf0
PA
11200 * cli/cli-logging.c (maybe_warn_already_logging): New factored out
11201 from ...
11202 (set_logging_overwrite): ... here.
11203 (logging_no_redirect_file): Delete.
11204 (set_logging_redirect): Don't handle redirection on the fly.
11205 Instead warn that "logging off" / "logging on" is necessary.
11206 (pop_output_files): Delete references to logging_no_redirect_file.
11207 (show_logging_command): Always speak in terms of what will happen
11208 once logging is reenabled.
11209
c99cc448
PA
112102017-02-02 Pedro Alves <palves@redhat.com>
11211
11212 * disasm.h (gdb_pretty_print_disassembler): Tweak intro comment.
11213
8b172ce7
PA
112142017-02-02 Pedro Alves <palves@redhat.com>
11215
11216 * disasm.c (gdb_pretty_print_insn): Rename to ...
11217 (gdb_pretty_print_disassembler::pretty_print_insn): ... this.
11218 Remove gdbarch parameter. Adapt to clear the object's buffers
11219 instead of allocating new buffers, and to print using the object's
11220 gdb_disassembler instead of calling gdb_print_insn.
11221 (dump_insns): Use gdb_pretty_print_disassembler.
11222 * disasm.h (gdb_pretty_print_insn): Delete declaration.
11223 (gdb_pretty_print_disassembler): New class.
11224 * record-btrace.c (btrace_insn_history): Use
11225 gdb_pretty_print_disassembler.
11226
d7e74731
PA
112272017-02-02 Pedro Alves <palves@redhat.com>
11228
11229 * ada-lang.c (type_as_string): Use string_file.
11230 * ada-valprint.c (ada_print_floating): Use string_file.
11231 * ada-varobj.c (ada_varobj_scalar_image)
11232 (ada_varobj_get_value_image): Use string_file.
11233 * aix-thread.c (aix_thread_extra_thread_info): Use string_file.
11234 * arm-tdep.c (_initialize_arm_tdep): Use string_printf.
11235 * breakpoint.c (update_inserted_breakpoint_locations)
11236 (insert_breakpoint_locations, reattach_breakpoints)
11237 (print_breakpoint_location, print_one_detail_ranged_breakpoint)
11238 (print_it_watchpoint): Use string_file.
11239 (save_breakpoints): Use stdio_file.
11240 * c-exp.y (oper): Use string_file.
11241 * cli/cli-logging.c (set_logging_redirect): Use ui_file_up and
11242 tee_file.
11243 (pop_output_files): Use delete.
11244 (handle_redirections): Use stdio_file and tee_file.
11245 * cli/cli-setshow.c (do_show_command): Use string_file.
11246 * compile/compile-c-support.c (c_compute_program): Use
11247 string_file.
11248 * compile/compile-c-symbols.c (generate_vla_size): Take a
11249 'string_file &' instead of a 'ui_file *'.
11250 (generate_c_for_for_one_variable): Take a 'string_file &' instead
11251 of a 'ui_file *'. Use string_file.
11252 (generate_c_for_variable_locations): Take a 'string_file &'
11253 instead of a 'ui_file *'.
11254 * compile/compile-internal.h (generate_c_for_for_one_variable):
11255 Take a 'string_file &' instead of a 'ui_file *'.
11256 * compile/compile-loc2c.c (push, pushf, unary, binary)
11257 (print_label, pushf_register_address, pushf_register)
11258 (do_compile_dwarf_expr_to_c): Take a 'string_file &' instead of a
11259 'ui_file *'. Adjust.
11260 * compile/compile.c (compile_to_object): Use string_file.
11261 * compile/compile.h (compile_dwarf_expr_to_c)
11262 (compile_dwarf_bounds_to_c): Take a 'string_file &' instead of a
11263 'ui_file *'.
11264 * cp-support.c (inspect_type): Use string_file and obstack_copy0.
11265 (replace_typedefs_qualified_name): Use string_file and
11266 obstack_copy0.
11267 * disasm.c (gdb_pretty_print_insn): Use string_file.
11268 (gdb_disassembly): Adjust reference the null_stream global.
11269 (do_ui_file_delete): Delete.
11270 (gdb_insn_length): Use null_stream.
11271 * dummy-frame.c (maintenance_print_dummy_frames): Use stdio_file.
11272 * dwarf2loc.c (dwarf2_compile_property_to_c)
11273 (locexpr_generate_c_location, loclist_generate_c_location): Take a
11274 'string_file &' instead of a 'ui_file *'.
11275 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise.
11276 * dwarf2read.c (do_ui_file_peek_last): Delete.
11277 (dwarf2_compute_name): Use string_file.
11278 * event-top.c (gdb_setup_readline): Use stdio_file.
11279 * gdbarch.sh (verify_gdbarch): Use string_file.
11280 * gdbtypes.c (safe_parse_type): Use null_stream.
11281 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Use
11282 string_file.
11283 * guile/scm-disasm.c (gdbscm_print_insn_from_port): Take a
11284 'string_file *' instead of a 'ui_file *'.
11285 (gdbscm_arch_disassemble): Use string_file.
11286 * guile/scm-frame.c (frscm_print_frame_smob): Use string_file.
11287 * guile/scm-ports.c (class ioscm_file_port): Now a class that
11288 inherits from ui_file.
11289 (ioscm_file_port_delete, ioscm_file_port_rewind)
11290 (ioscm_file_port_put): Delete.
11291 (ioscm_file_port_write): Rename to ...
11292 (ioscm_file_port::write): ... this. Remove file_port_magic
11293 checks.
11294 (ioscm_file_port_new): Delete.
11295 (ioscm_with_output_to_port_worker): Use ioscm_file_port and
11296 ui_file_up.
11297 * guile/scm-type.c (tyscm_type_name): Use string_file.
11298 * guile/scm-value.c (vlscm_print_value_smob, gdbscm_value_print):
11299 Use string_file.
11300 * infcmd.c (print_return_value_1): Use string_file.
11301 * infrun.c (print_target_wait_results): Use string_file.
11302 * language.c (add_language): Use string_file.
11303 * location.c (explicit_to_string_internal): Use string_file.
11304 * main.c (captured_main_1): Use null_file.
11305 * maint.c (maintenance_print_architecture): Use stdio_file.
11306 * mi/mi-cmd-stack.c (list_arg_or_local): Use string_file.
11307 * mi/mi-common.h (struct mi_interp) <out, err, log, targ,
11308 event_channel>: Change type to mi_console_file pointer.
11309 * mi/mi-console.c (mi_console_file_fputs, mi_console_file_flush)
11310 (mi_console_file_delete): Delete.
11311 (struct mi_console_file): Delete.
11312 (mi_console_file_magic): Delete.
11313 (mi_console_file_new): Delete.
11314 (mi_console_file::mi_console_file): New.
11315 (mi_console_file_delete): Delete.
11316 (mi_console_file_fputs): Delete.
11317 (mi_console_file::write): New.
11318 (mi_console_raw_packet): Delete.
11319 (mi_console_file::flush): New.
11320 (mi_console_file_flush): Delete.
11321 (mi_console_set_raw): Rename to ...
11322 (mi_console_file::set_raw): ... this.
11323 * mi/mi-console.h (class mi_console_file): New class.
11324 (mi_console_file_new, mi_console_set_raw): Delete.
11325 * mi/mi-interp.c (mi_interpreter_init): Use mi_console_file.
11326 (mi_set_logging): Use delete and tee_file. Adjust.
11327 * mi/mi-main.c (output_register): Use string_file.
11328 (mi_cmd_data_evaluate_expression): Use string_file.
11329 (mi_cmd_data_read_memory): Use string_file.
11330 (mi_cmd_execute, print_variable_or_computed): Use string_file.
11331 * mi/mi-out.c (mi_ui_out::main_stream): New.
11332 (mi_ui_out::rewind): Use main_stream and
11333 string_file.
11334 (mi_ui_out::put): Use main_stream and string_file.
11335 (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
11336 Allocate a 'string_file' instead.
11337 (mi_out_new): Don't allocate a mem_fileopen stream here.
11338 * mi/mi-out.h (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
11339 (mi_ui_out::main_stream): Declare method.
11340 * printcmd.c (eval_command): Use string_file.
11341 * psymtab.c (maintenance_print_psymbols): Use stdio_file.
11342 * python/py-arch.c (archpy_disassemble): Use string_file.
11343 * python/py-breakpoint.c (bppy_get_commands): Use string_file.
11344 * python/py-frame.c (frapy_str): Use string_file.
11345 * python/py-framefilter.c (py_print_type, py_print_single_arg):
11346 Use string_file.
11347 * python/py-type.c (typy_str): Use string_file.
11348 * python/py-unwind.c (unwind_infopy_str): Use string_file.
11349 * python/py-value.c (valpy_str): Use string_file.
11350 * record-btrace.c (btrace_insn_history): Use string_file.
11351 * regcache.c (regcache_print): Use stdio_file.
11352 * reggroups.c (maintenance_print_reggroups): Use stdio_file.
11353 * remote.c (escape_buffer): Use string_file.
11354 * rust-lang.c (rust_get_disr_info): Use string_file.
11355 * serial.c (serial_open_ops_1): Use stdio_file.
11356 (do_serial_close): Use delete.
11357 * stack.c (print_frame_arg): Use string_file.
11358 (print_frame_args): Remove local mem_fileopen stream, not used.
11359 (print_frame): Use string_file.
11360 * symmisc.c (maintenance_print_symbols): Use stdio_file.
11361 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
11362 Take a 'string_file *' instead of a 'ui_file *'.
11363 * top.c (new_ui): Use stdio_file and stderr_file.
11364 (free_ui): Use delete.
11365 (execute_command_to_string): Use string_file.
11366 (quit_confirm): Use string_file.
11367 * tracepoint.c (collection_list::append_exp): Use string_file.
11368 * tui/tui-disasm.c (tui_disassemble): Use string_file.
11369 * tui/tui-file.c: Don't include "ui-file.h".
11370 (enum streamtype, struct tui_stream): Delete.
11371 (tui_file_new, tui_file_delete, tui_fileopen, tui_sfileopen)
11372 (tui_file_isatty, tui_file_rewind, tui_file_put): Delete.
11373 (tui_file::tui_file): New method.
11374 (tui_file_fputs): Delete.
11375 (tui_file_get_strbuf): Delete.
11376 (tui_file::puts): New method.
11377 (tui_file_adjust_strbuf): Delete.
11378 (tui_file_flush): Delete.
11379 (tui_file::flush): New method.
11380 * tui/tui-file.h: Tweak intro comment.
11381 Include ui-file.h.
11382 (tui_fileopen, tui_sfileopen, tui_file_get_strbuf)
11383 (tui_file_adjust_strbuf): Delete declarations.
11384 (class tui_file): New class.
11385 * tui/tui-io.c (tui_initialize_io): Use tui_file.
11386 * tui/tui-regs.c (tui_restore_gdbout): Use delete.
11387 (tui_register_format): Use string_stream.
11388 * tui/tui-stack.c (tui_make_status_line): Use string_file.
11389 (tui_get_function_from_frame): Use string_file.
11390 * typeprint.c (type_to_string): Use string_file.
11391 * ui-file.c (struct ui_file, ui_file_magic, ui_file_new): Delete.
11392 (null_stream): New global.
11393 (ui_file_delete): Delete.
11394 (ui_file::ui_file): New.
11395 (null_file_isatty): Delete.
11396 (ui_file::~ui_file): New.
11397 (null_file_rewind): Delete.
11398 (ui_file::printf): New.
11399 (null_file_put): Delete.
11400 (null_file_flush): Delete.
11401 (ui_file::putstr): New.
11402 (null_file_write): Delete.
11403 (ui_file::putstrn): New.
11404 (null_file_read): Delete.
11405 (ui_file::putc): New.
11406 (null_file_fputs): Delete.
11407 (null_file_write_async_safe): Delete.
11408 (ui_file::vprintf): New.
11409 (null_file_delete): Delete.
11410 (null_file::write): New.
11411 (null_file_fseek): Delete.
11412 (null_file::puts): New.
11413 (ui_file_data): Delete.
11414 (null_file::write_async_safe): New.
11415 (gdb_flush, ui_file_isatty): Adjust.
11416 (ui_file_put, ui_file_rewind): Delete.
11417 (ui_file_write): Adjust.
11418 (ui_file_write_for_put): Delete.
11419 (ui_file_write_async_safe, ui_file_read): Adjust.
11420 (ui_file_fseek): Delete.
11421 (fputs_unfiltered): Adjust.
11422 (set_ui_file_flush, set_ui_file_isatty, set_ui_file_rewind)
11423 (set_ui_file_put, set_ui_file_write, set_ui_file_write_async_safe)
11424 (set_ui_file_read, set_ui_file_fputs, set_ui_file_fseek)
11425 (set_ui_file_data): Delete.
11426 (string_file::~string_file, string_file::write)
11427 (struct accumulated_ui_file, do_ui_file_xstrdup, ui_file_xstrdup)
11428 (do_ui_file_as_string, ui_file_as_string): Delete.
11429 (do_ui_file_obsavestring, ui_file_obsavestring): Delete.
11430 (struct mem_file): Delete.
11431 (mem_file_new): Delete.
11432 (stdio_file::stdio_file): New.
11433 (mem_file_delete): Delete.
11434 (stdio_file::stdio_file): New.
11435 (mem_fileopen): Delete.
11436 (stdio_file::~stdio_file): New.
11437 (mem_file_rewind): Delete.
11438 (stdio_file::set_stream): New.
11439 (mem_file_put): Delete.
11440 (stdio_file::open): New.
11441 (mem_file_write): Delete.
11442 (stdio_file_magic, struct stdio_file): Delete.
11443 (stdio_file_new, stdio_file_delete, stdio_file_flush): Delete.
11444 (stdio_file::flush): New.
11445 (stdio_file_read): Rename to ...
11446 (stdio_file::read): ... this. Adjust.
11447 (stdio_file_write): Rename to ...
11448 (stdio_file::write): ... this. Adjust.
11449 (stdio_file_write_async_safe): Rename to ...
11450 (stdio_file::write_async_safe) ... this. Adjust.
11451 (stdio_file_fputs): Rename to ...
11452 (stdio_file::puts) ... this. Adjust.
11453 (stdio_file_isatty): Delete.
11454 (stdio_file_fseek): Delete.
11455 (stdio_file::isatty): New.
11456 (stderr_file_write): Rename to ...
11457 (stderr_file::write) ... this. Adjust.
11458 (stderr_file_fputs): Rename to ...
11459 (stderr_file::puts) ... this. Adjust.
11460 (stderr_fileopen, stdio_fileopen, gdb_fopen): Delete.
11461 (stderr_file::stderr_file): New.
11462 (tee_file_magic): Delete.
11463 (struct tee_file): Delete.
11464 (tee_file::tee_file): New.
11465 (tee_file_new): Delete.
11466 (tee_file::~tee_file): New.
11467 (tee_file_delete): Delete.
11468 (tee_file_flush): Rename to ...
11469 (tee_file::flush): ... this. Adjust.
11470 (tee_file_write): Rename to ...
11471 (tee_file::write): ... this. Adjust.
11472 (tee_file::write_async_safe): New.
11473 (tee_file_fputs): Rename to ...
11474 (tee_file::puts): ... this. Adjust.
11475 (tee_file_isatty): Rename to ...
11476 (tee_file::isatty): ... this. Adjust.
11477 * ui-file.h (struct obstack, struct ui_file): Don't
11478 forward-declare.
11479 (ui_file_new, ui_file_flush_ftype, set_ui_file_flush)
11480 (ui_file_write_ftype)
11481 (set_ui_file_write, ui_file_fputs_ftype, set_ui_file_fputs)
11482 (ui_file_write_async_safe_ftype, set_ui_file_write_async_safe)
11483 (ui_file_read_ftype, set_ui_file_read, ui_file_isatty_ftype)
11484 (set_ui_file_isatty, ui_file_rewind_ftype, set_ui_file_rewind)
11485 (ui_file_put_method_ftype, ui_file_put_ftype, set_ui_file_put)
11486 (ui_file_delete_ftype, set_ui_file_data, ui_file_fseek_ftype)
11487 (set_ui_file_fseek): Delete.
11488 (ui_file_data, ui_file_delete, ui_file_rewind)
11489 (struct ui_file): New.
11490 (ui_file_up): New.
11491 (class null_file): New.
11492 (null_stream): Declare.
11493 (ui_file_write_for_put, ui_file_put): Delete.
11494 (ui_file_xstrdup, ui_file_as_string, ui_file_obsavestring):
11495 Delete.
11496 (ui_file_fseek, mem_fileopen, stdio_fileopen, stderr_fileopen)
11497 (gdb_fopen, tee_file_new): Delete.
11498 (struct string_file): New.
11499 (struct stdio_file): New.
11500 (stdio_file_up): New.
11501 (struct stderr_file): New.
11502 (class tee_file): New.
11503 * ui-out.c (ui_out::field_stream): Take a 'string_file &' instead
11504 of a 'ui_file *'. Adjust.
11505 * ui-out.h (class ui_out) <field_stream>: Likewise.
11506 * utils.c (do_ui_file_delete, make_cleanup_ui_file_delete)
11507 (null_stream): Delete.
11508 (error_stream): Take a 'string_file &' instead of a 'ui_file *'.
11509 Adjust.
11510 * utils.h (struct ui_file): Delete forward declaration..
11511 (make_cleanup_ui_file_delete, null_stream): Delete declarations.
11512 (error_stream): Take a 'string_file &' instead of a
11513 'ui_file *'.
11514 * varobj.c (varobj_value_get_print_value): Use string_file.
11515 * xtensa-tdep.c (xtensa_verify_config): Use string_file.
11516 * gdbarch.c: Regenerate.
11517
187808b0
PA
115182017-02-02 Pedro Alves <palves@redhat.com>
11519
11520 * disasm.c (gdb_disassembler::pretty_print_insn): Rename to...
11521 (gdb_pretty_print_insn): ... this. Now a free function. Add back
11522 a 'gdbarch' parameter. Allocate a mem_fileopen stream here.
11523 Adjust to call gdb_print_insn instead of
11524 gdb_disassembler::print_insn.
11525 (dump_insns, do_mixed_source_and_assembly_deprecated)
11526 (do_mixed_source_and_assembly, do_assembly_only): Add back a
11527 'gdbarch' parameter. Remove gdb_disassembler parameter.
11528 (gdb_disassembly): Don't allocate a gdb_disassembler here.
11529 * disasm.h (gdb_disassembler::pretty_print_insn): Delete
11530 declaration.
11531 (gdb_pretty_print_insn): Re-add declaration.
11532 * record-btrace.c (btrace_insn_history): Don't allocate a
11533 gdb_disassembler here. Adjust to call gdb_pretty_print_insn.
11534
7a8eb317
SM
115352017-02-01 Simon Marchi <simon.marchi@polymtl.ca>
11536
11537 * disasm.h (gdb_disassembly): Remove file_string parameter.
11538 * disasm.c (gdb_disassembly): Likewise.
11539 * cli/cli-cmds.c (print_disassembly): Adapt.
11540 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
11541 * stack.c (do_gdb_disassembly): Likewise.
11542
7346ef59
AA
115432017-02-01 Andreas Arnez <arnez@linux.vnet.ibm.com>
11544
11545 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): For
11546 DWARF_VALUE_LITERAL, no longer ignore the offset on big-endian
11547 targets. And if the implicit value is longer than needed, extract
11548 the first bytes instead of the "least significant" ones.
11549
cd4007e4
MM
115502017-02-01 Markus Metzger <markus.t.metzger@intel.com>
11551
11552 * btrace.c (btrace_enable): Do not call btrace_add_pc for
11553 BTRACE_FORMAT_PT or if can_access_registers_ptid returns false.
11554 (btrace_fetch): Assert can_access_registers_ptid.
11555 * record-btrace.c (require_btrace_thread, record_btrace_info): Call
11556 validate_registers_access.
11557
cf77c34e
MM
115582017-02-01 Markus Metzger <markus.t.metzger@intel.com>
11559
11560 * gdbthread.h (can_access_registers_ptid): New.
11561 * thread.c (can_access_registers_ptid): New.
11562
be85ce7d
PA
115632017-02-01 Pedro Alves <palves@redhat.com>
11564
11565 * i386-tdep.c (i386_fast_tracepoint_valid_at): Use gdb_insn_length.
11566
29b0b251
PA
115672017-01-31 Pedro Alves <palves@redhat.com>
11568
11569 * mi/mi-interp.c (mi_breakpoint_created, mi_breakpoint_modified):
11570 Fix typos.
11571
289b5b24
PA
115722017-01-31 Pedro Alves <palves@redhat.com>
11573
11574 * stack.c (print_frame_args): Remove local mem_fileopen stream,
11575 not used.
11576
b47413b4
PA
115772017-01-31 Pedro Alves <palves@redhat.com>
11578
11579 * varobj.c (varobj_value_get_print_value): Remove xstrdup call.
11580
60adb36c
PA
115812017-01-31 Pedro Alves <palves@redhat.com>
11582
11583 * common/scoped_restore.h
11584 (scoped_restore_tmpl::scoped_restore_tmpl): Template on T2, and
11585 change the value's parameter type to T2.
11586 (make_scoped_restore): Likewise.
11587
2735833d
WT
115882017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
11589 Richard Henderson <rth@redhat.com>
11590
11591 * amd64-linux-nat.c (PTRACE_ARCH_PRCTL): New define.
11592 (amd64_linux_fetch_inferior_registers): Add case to fetch FS_BASE
11593 GS_BASE for older kernels.
11594 (amd64_linux_store_inferior_registers): Add case to store FS_BASE
11595 GS_BASE for older kernels.
11596 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Add FS_BASE
11597 and GS_BASE to the offset table.
11598 (amd64_linux_register_reggroup_p): Add FS_BASE and GS_BASE to the
11599 system register group.
11600 * amd64-nat.c (amd64_native_gregset_reg_offset): Implements case
11601 for older kernels.
11602 * amd64-tdep.c (amd64_init_abi): Add segment registers for the
11603 amd64 ABI.
11604 * amd64-tdep.h (amd64_regnum): Add AMD64_FSBASE_REGNUM and
11605 AMD64_GSBASE_REGNUM.
11606 (AMD64_NUM_REGS): Set to AMD64_GSBASE_REGNUM + 1.
11607 * features/Makefile (amd64-linux.dat, amd64-avx-linux.dat)
11608 (amd64-mpx-linux.dat, amd64-avx512-linux.dat, x32-linux.dat)
11609 (x32-avx-linux.dat, x32-avx512-linux.dat): Add
11610 i386/64bit-segments.xml in those rules.
11611 * features/i386/64bit-segments.xml: New file.
11612 * features/i386/amd64-avx-mpx-linux.xml: Add 64bit-segments.xml.
11613 * features/i386/amd64-avx-linux.xml: Add 64bit-segments.xml.
11614 * features/i386/amd64-avx512-linux.xml: Add 64bit-segments.xml.
11615 * features/i386/amd64-mpx-linux.xml: Add 64bit-segments.xml.
11616 * features/i386/x32-avx512-linux.xml: Add 64bit-segments.xml.
11617 * features/i386/x32-avx-linux.xml: Add 64bit-segments.xml.
11618 * features/i386/amd64-linux.xml: Add 64bit-segments.xml.
11619 * features/i386/amd64-avx-linux.c: Regenerated.
11620 * features/i386/amd64-avx-mpx-linux.c: Regenerated.
11621 * features/i386/amd64-avx-mpx.c: Regenerated.
11622 * features/i386/amd64-avx512-linux.c: Regenerated.
11623 * features/i386/amd64-linux.c: Regenerated.
11624 * features/i386/amd64-mpx-linux.c: Regenerated.
11625 * features/i386/i386-avx-mpx-linux.c: Regenerated.
11626 * features/i386/i386-avx-mpx.c: Regenerated.
11627 * features/i386/x32-avx-linux.c: Regenerated.
11628 * features/i386/x32-avx512-linux.c: Regenerated.
11629 * regformats/i386/amd64-avx-linux.dat: Regenerated.
11630 * regformats/i386/amd64-avx-mpx-linux.dat: Regenerated.
11631 * regformats/i386/amd64-avx512-linux.dat: Regenerated.
11632 * regformats/i386/amd64-linux.dat: Regenerated.
11633 * regformats/i386/amd64-mpx-linux.dat: Regenerated.
11634 * regformats/i386/x32-avx-linux.dat: Regenerated.
11635 * regformats/i386/x32-avx512-linux.dat: Regenerated.
11636 * regformats/i386/x32-linux.dat: Regenerated.
11637
8884e97e
WT
116382017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
11639
11640 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM):
11641 Set to AMD64_NUM_REGS.
11642
7005d26a
WT
116432017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
11644
11645 * amd64-nat.c (amd64_native_gregset_reg_offset): Simplify logic
11646 that checks validity of a register number.
11647
4bd2e1b2
KC
116482017-01-27 Kees Cook <keescook@google.com>
11649
11650 * gdb/arm-linux-nat.c (arm_linux_fetch_inferior_registers): Call
11651 fetch_fpregs if target has fpa registers.
11652 (arm_linux_store_inferior_registers): Call store_fpregs if target
11653 has fpa registers.
11654
7cf1de6c
AA
116552017-01-26 Andreas Arnez <arnez@linux.vnet.ibm.com>
11656
11657 * cris-tdep.c (cris_gdbarch_init): Remove check for
11658 info.byte_order and force it to BFD_ENDIAN_LITTLE.
11659
874a1c8c
AT
116602017-01-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
11661
11662 * corelow.c (get_core_register_section): Check for regset
11663 existence before checking for REGSET_VARIABLE_SIZE.
11664
d8b49cf0
YQ
116652017-01-26 Yao Qi <yao.qi@linaro.org>
11666 Pedro Alves <palves@redhat.com>
11667
11668 PR gdb/20939
11669 * disasm.c (gdb_disassembler::dis_asm_memory_error): Don't
11670 call memory_error, save memaddr instead.
11671 (gdb_disassembler::print_insn): If gdbarch_print_insn returns
11672 negative, cal memory_error.
11673 * disasm.h (gdb_disassembler) <m_err_memaddr>: New field.
11674
658ca58c
YQ
116752017-01-26 Yao Qi <yao.qi@linaro.org>
11676
11677 * disasm-selftests.c (memory_error_test): New function.
11678 (_initialize_disasm_selftests): Register memory_error_test.
11679
79843d45
YQ
116802017-01-26 Yao Qi <yao.qi@linaro.org>
11681
11682 * Makefile.in (SFILES): Add disasm-selftests.c and
11683 selftest-arch.c.
11684 (COMMON_OBS): Add disasm-selftests.o and selftest-arch.o.
11685 * disasm-selftests.c: New file.
11686 * selftest-arch.c: New file.
11687 * selftest-arch.h: New file.
11688
8cafda32
YQ
116892017-01-26 Yao Qi <yao.qi@linaro.org>
11690
11691 * mep-tdep.c (mep_gdb_print_insn): Set info->arch
11692 to bfd_arch_mep. Don't return 0 if section is not
11693 found. Call print_insn_mep.
11694
e47ad6c0
YQ
116952017-01-26 Pedro Alves <palves@redhat.com>
11696 Yao Qi <yao.qi@linaro.org>
11697
11698 * arm-tdep.c: Include "disasm.h".
11699 (gdb_print_insn_arm): Update code to get gdbarch.
11700 * disasm.c (dis_asm_read_memory): Change it to
11701 gdb_disassembler::dis_asm_read_memory.
11702 (dis_asm_memory_error): Likewise.
11703 (dis_asm_print_address): Likewise.
11704 (gdb_pretty_print_insn): Change it to
11705 gdb_disassembler::pretty_print_insn.
11706 (dump_insns): Add one argument gdb_disassemlber. All
11707 callers updated.
11708 (do_mixed_source_and_assembly_deprecated): Likewise.
11709 (do_mixed_source_and_assembly): Likewise.
11710 (do_assembly_only): Likewise.
11711 (gdb_disassembler::gdb_disassembler): New.
11712 (gdb_disassembler::print_insn): New.
11713 * disasm.h (class gdb_disassembler): New.
11714 (gdb_pretty_print_insn): Remove declaration.
11715 (gdb_disassemble_info): Likewise.
11716 * guile/scm-disasm.c (class gdbscm_disassembler): New.
11717 (gdbscm_disasm_read_memory_worker): Update.
11718 (gdbscm_disasm_read_memory): Update.
11719 (gdbscm_disasm_memory_error): Remove.
11720 (gdbscm_disasm_print_address): Remove.
11721 (gdbscm_disassembler::gdbscm_disassembler): New.
11722 (gdbscm_print_insn_from_port): Update.
11723 * mips-tdep.c: Include disasm.h.
11724 (gdb_print_insn_mips): Update code to get gdbarch.
11725 * record-btrace.c (btrace_insn_history): Update.
11726 * spu-tdep.c: Include disasm.h.
11727 (struct spu_dis_asm_data): Remove.
11728 (struct spu_dis_asm_info): New.
11729 (spu_dis_asm_print_address): Use spu_dis_asm_info to get
11730 SPU id.
11731 (gdb_print_insn_spu): Cast disassemble_info to
11732 spu_dis_asm_info.
11733
80d75874
YQ
117342017-01-26 Yao Qi <yao.qi@linaro.org>
11735
11736 * disasm.c (do_ui_file_delete): Delete.
11737 (gdb_insn_length): Move code creating stream to ...
11738 * utils.c (null_stream): ... here. New function.
11739 * utils.h (null_stream): Declare.
11740
60685cd0
SM
117412017-01-23 Simon Marchi <simon.marchi@polymtl.ca>
11742
11743 * python/py-inferior.c (find_thread_object): Return directly
11744 from the loop. Remove "found" variable.
11745
eb1cdb62
JB
117462017-01-21 Joel Brobecker <brobecker@adacore.com>
11747
11748 GDB 7.12.1 released.
11749
b1ce6568
SM
117502017-01-20 Simon Marchi <simon.marchi@ericsson.com>
11751
11752 * python/py-function.c (fnpy_call): Reorder declarations to have
11753 the gdbpy_enter object declared first.
11754 * python/py-xmethods.c (gdbpy_get_xmethod_arg_types): Likewise.
11755
6f8b0407
SM
117562017-01-20 Simon Marchi <simon.marchi@ericsson.com>
11757
fec93fb1 11758 PR python/21068
6f8b0407
SM
11759 * python/python-internal.h (PyMem_RawMalloc): Define for
11760 Python < 3.4.
11761 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use
11762 PyMem_RawMalloc instead of PyMem_Malloc.
11763
78cbbba8
LM
117642017-01-20 Mike Wrighton <mike_wrighton@codesourcery.com>
11765 Luis Machado <lgustavo@codesourcery.com>
11766
11767 * NEWS (New commands): Mention flash-erase.
11768 (New MI commands): Mention target-flash-erase.
11769 * mi/mi-cmds.c (mi_cmd_target_flash_erase): Add target-flash-erase MI
11770 command.
11771 * mi/mi-cmds.h (mi_cmd_target_flash_erase): New declaration.
11772 * mi/mi-main.c (mi_cmd_target_flash_erase): New function.
11773 * target.c (flash_erase_command): New function.
11774 (initialize_targets): Add new flash-erase command.
11775 * target.h (flash_erase_command): New declaration.
11776
2132fe85
JB
117772017-01-20 Joel Brobecker <brobecker@adacore.com>
11778
11779 * nat/linux-ptrace.c: Only include <sys/procfs.h> if
11780 HAVE_SYS_PROCFS_H is defined.
11781
d1dff226
AH
117822017-01-18 Alan Hayward <alan.hayward@arm.com>
11783
11784 * remote.c (struct cached_reg): Change data into a pointer.
11785 * (stop_reply_dtr): Free data pointers before deleting vector.
11786 (process_stop_reply): Likewise.
11787 (remote_parse_stop_reply): Allocate space for data
11788
9890e433
AH
117892017-01-18 Alan Hayward <alan.hayward@arm.com>
11790
11791 * amd64-tdep.c (amd64_pseudo_register_read_value): remove
11792 MAX_REGISTER_SIZE.
11793 (amd64_pseudo_register_read_value): Likewise.
11794 * remote.c (fetch_register_using_p): Remove MAX_REGISTER_SIZE.
11795 (store_register_using_P): Likewise.
11796 * regcache.c (regcache_xfer_part): Likewise.
11797
7a36499a
IR
117982017-01-16 Ivo Raisr <ivo.raisr@oracle.com>
11799
11800 Split real and pseudo registers.
11801 * sparc-tdep.h (SPARC_CORE_REGISTERS): New macro.
11802 (sparc32_pseudo_regnum): New enum.
11803 * sparc64-tdep.h (sparc64_pseudo_regnum): New enum.
11804 * sparc-tdep.c (SPARC32_FPU_REGISTERS): New macro.
11805 (SPARC32_CP0_REGISTERS): New macro.
11806 (sparc32_pseudo_register_name): New function.
11807 (sparc32_register_name): Use sparc32_pseudo_register_name.
11808 (sparc32_pseudo_register_type): New function.
11809 (sparc32_register_type): Use sparc32_pseudo_register_type.
11810 (sparc32_pseudo_register_read, sparc32_pseudo_register_write): Handle
11811 pseudo register numbers.
11812 * sparc64-tdep.c SPARC64_FPU_REGISTERS): New macro.
11813 (SPARC64_CP0_REGISTERS): New macro.
11814 (sparc64_pseudo_register_name): New function.
11815 (sparc64_register_name): Use sparc64_pseudo_register_name.
11816 (sparc64_pseudo_register_type): New function.
11817 (sparc64_register_type): Use sparc64_pseudo_register_type.
11818 (sparc64_pseudo_register_read, sparc64_pseudo_register_write): Handle
11819 pseudo register numbers.
11820 (sparc64_store_floating_fields, sparc64_extract_floating_fields,
11821 sparc64_store_arguments): Handle pseudo register numbers.
11822
6f8976bf
YQ
118232017-01-13 Yao Qi <yao.qi@linaro.org>
11824
11825 * remote.c (REMOTE_DEBUG_MAX_CHAR): New macro.
11826 (putpkt_binary): Print only REMOTE_DEBUG_MAX_CHAR chars in debug
11827 output.
11828 (getpkt_or_notif_sane_1): Likewise.
11829
e4241ace
YQ
118302017-01-13 Yao Qi <yao.qi@linaro.org>
11831
11832 * Makefile.in (checker-headers): Use CXX and CXX_DIALET instead
11833 of CC. Pass "-x c++-header" instead of "-x c".
11834
3015c064
SM
118352017-01-12 Simon Marchi <simon.marchi@ericsson.com>
11836
11837 * remote.c (remote_can_async_p): Update comment.
11838
fde1b17d
SM
118392017-01-12 Simon Marchi <simon.marchi@ericsson.com>
11840
11841 * linux-nat.c (linux_nat_can_async_p): Update comment.
11842
ca1ca08b
SM
118432017-01-12 Simon Marchi <simon.marchi@ericsson.com>
11844
11845 * serial.c (serial_open): Forget about "pc" and "lpt" serial interface.
11846
4ad2da73
SM
118472017-01-11 Simon Marchi <simon.marchi@ericsson.com>
11848
11849 * cli/cli-decode.c (lookup_cmd_1): Fix typo in comment.
11850
c8b23b3f
TT
118512017-01-10 Tom Tromey <tom@tromey.com>
11852
11853 * python/py-type.c (typy_legacy_template_argument): Update.
11854 * cp-support.h (struct demangle_parse_info) (demangle_parse_info,
11855 ~demangle_parse_info): Declare new members.
11856 (cp_demangled_name_to_comp): Return unique_ptr.
11857 (cp_demangled_name_parse_free)
11858 (make_cleanup_cp_demangled_name_parse_free)
11859 (cp_new_demangle_parse_info): Remove.
11860 * cp-support.c (do_demangled_name_parse_free_cleanup)
11861 (make_cleanup_cp_demangled_name_parse_free): Remove.
11862 (inspect_type, cp_canonicalize_string_full)
11863 (cp_canonicalize_string): Update.
11864 (mangled_name_to_comp): Change return type.
11865 (cp_class_name_from_physname, method_name_from_physname)
11866 (cp_func_name, cp_remove_params): Update.
11867 * cp-name-parser.y (demangle_parse_info): New constructor, from
11868 cp_new_demangle_parse_info.
11869 (~demangle_parse_info): New destructor, from
11870 cp_demangled_name_parse_free.
11871 (cp_merge_demangle_parse_infos): Update.
11872 (cp_demangled_name_to_comp): Change return type.
11873
1ac32117
TT
118742017-01-10 Tom Tromey <tom@tromey.com>
11875
11876 * top.c (prevent_dont_repeat): Change return type.
11877 * python/python.c (execute_gdb_command): Use std::string.
11878 Update.
11879 * guile/guile.c (gdbscm_execute_gdb_command): Update.
11880 * command.h (prevent_dont_repeat): Change return type.
11881 * breakpoint.c (bpstat_do_actions_1): Update.
11882
0cf08227
TT
118832017-01-10 Tom Tromey <tom@tromey.com>
11884
11885 * value.h (scoped_value_mark::~scoped_value_mark): Call
11886 free_to_mark.
11887 (scoped_value_mark::free_to_mark): New method.
11888 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
11889 scoped_value_mark.
11890
eb115069
TT
118912017-01-10 Tom Tromey <tom@tromey.com>
11892
11893 * python/py-value.c (valpy_dereference, valpy_referenced_value)
11894 (valpy_reference_value, valpy_const_value, valpy_get_address)
11895 (valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
11896 (valpy_getitem, valpy_call, valpy_binop_throw, valpy_negative)
11897 (valpy_absolute, valpy_richcompare_throw): Use scoped_value_mark.
11898 * dwarf2loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
11899 scoped_value_mark.
11900 * dwarf2-frame.c (execute_stack_op): Use scoped_value_mark.
11901 * value.h (scoped_value_mark): New class.
11902
906768f9
TT
119032017-01-10 Tom Tromey <tom@tromey.com>
11904
11905 * dwarf2read.c (dwarf2_build_psymtabs): Use psymtab_discarder.
11906 * psympriv.h (make_cleanup_discard_psymtabs): Don't declare.
11907 * psymtab.c (discard_psymtabs_upto): Remove.
11908 (make_cleanup_discard_psymtabs): Remove.
11909 (struct psymtab_state): Remove.
11910
bef155c3
TT
119112017-01-10 Tom Tromey <tom@tromey.com>
11912
11913 * record-full.c (record_full_save_cleanups): Remove.
11914 (record_full_save): Use gdb::unlinker.
11915 * gcore.c (do_bfd_delete_cleanup): Remove.
11916 (gcore_command): Use gdb::unlinker, unique_xmalloc_ptr. Remove
11917 cleanups.
11918 * dwarf2read.c (unlink_if_set): Remove.
11919 (write_psymtabs_to_index): Use gdb::unlinker.
11920 * common/gdb_unlinker.h: New file.
11921
192b62ce
TT
119222017-01-10 Tom Tromey <tom@tromey.com>
11923
11924 * windows-tdep.c (windows_xfer_shared_library): Update.
11925 * windows-nat.c (windows_make_so): Update.
11926 * utils.h (make_cleanup_bfd_unref): Remove.
11927 * utils.c (do_bfd_close_cleanup, make_cleanup_bfd_unref): Remove.
11928 * symfile.h (symfile_bfd_open)
11929 (find_separate_debug_file_in_section): Return gdb_bfd_ref_ptr.
11930 * symfile.c (read_symbols, symbol_file_add)
11931 (separate_debug_file_exists): Update.
11932 (symfile_bfd_open): Return gdb_bfd_ref_ptr.
11933 (generic_load, reread_symbols): Update.
11934 * symfile-mem.c (symbol_file_add_from_memory): Update.
11935 * spu-linux-nat.c (spu_bfd_open): Return gdb_bfd_ref_ptr.
11936 (spu_symbol_file_add_from_memory): Update.
11937 * solist.h (struct target_so_ops) <bfd_open>: Return
11938 gdb_bfd_ref_ptr.
11939 (solib_bfd_fopen, solib_bfd_open): Return gdb_bfd_ref_ptr.
11940 * solib.c (solib_bfd_fopen, solib_bfd_open): Return
11941 gdb_bfd_ref_ptr.
11942 (solib_map_sections, reload_shared_libraries_1): Update.
11943 * solib-svr4.c (enable_break): Update.
11944 * solib-spu.c (spu_bfd_fopen): Return gdb_bfd_ref_ptr.
11945 * solib-frv.c (enable_break2): Update.
11946 * solib-dsbt.c (enable_break): Update.
11947 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): Return
11948 gdb_bfd_ref_ptr.
11949 (darwin_solib_get_all_image_info_addr_at_init): Update.
11950 (darwin_bfd_open): Return gdb_bfd_ref_ptr.
11951 * solib-aix.c (solib_aix_bfd_open): Return gdb_bfd_ref_ptr.
11952 * record-full.c (record_full_save): Update.
11953 * python/py-objfile.c (objfpy_add_separate_debug_file): Update.
11954 * procfs.c (insert_dbx_link_bpt_in_file): Update.
11955 * minidebug.c (find_separate_debug_file_in_section): Return
11956 gdb_bfd_ref_ptr.
11957 * machoread.c (macho_add_oso_symfile): Change abfd to
11958 gdb_bfd_ref_ptr.
11959 (macho_symfile_read_all_oso): Update.
11960 (macho_check_dsym): Return gdb_bfd_ref_ptr.
11961 (macho_symfile_read): Update.
11962 * jit.c (bfd_open_from_target_memory): Return gdb_bfd_ref_ptr.
11963 (jit_bfd_try_read_symtab): Update.
11964 * gdb_bfd.h (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
11965 (gdb_bfd_openw, gdb_bfd_openr_iovec)
11966 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
11967 gdb_bfd_ref_ptr.
11968 (gdb_bfd_ref_policy): New struct.
11969 (gdb_bfd_ref_ptr): New typedef.
11970 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
11971 (gdb_bfd_openw, gdb_bfd_openr_iovec)
11972 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
11973 gdb_bfd_ref_ptr.
11974 * gcore.h (create_gcore_bfd): Return gdb_bfd_ref_ptr.
11975 * gcore.c (create_gcore_bfd): Return gdb_bfd_ref_ptr.
11976 (gcore_command): Update.
11977 * exec.c (exec_file_attach): Update.
11978 * elfread.c (elf_symfile_read): Update.
11979 * dwarf2read.c (dwarf2_get_dwz_file): Update.
11980 (try_open_dwop_file, open_dwo_file): Return gdb_bfd_ref_ptr.
11981 (open_and_init_dwo_file): Update.
11982 (open_dwp_file): Return gdb_bfd_ref_ptr.
11983 (open_and_init_dwp_file): Update.
11984 * corelow.c (core_open): Update.
11985 * compile/compile-object-load.c (compile_object_load): Update.
11986 * common/gdb_ref_ptr.h (ref_ptr::operator->): New operator.
11987 * coffread.c (coff_symfile_read): Update.
11988 * cli/cli-dump.c (bfd_openr_or_error, bfd_openw_or_error): Return
11989 gdb_bfd_ref_ptr. Rename.
11990 (dump_bfd_file, restore_command): Update.
11991 * build-id.h (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
11992 * build-id.c (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
11993 (find_separate_debug_file_by_buildid): Update.
11994
50315b21
TT
119952017-01-10 Tom Tromey <tom@tromey.com>
11996
11997 * common/gdb_ref_ptr.h: New file.
11998 * python/py-ref.h (struct gdbpy_ref_policy): New.
11999 (gdbpy_ref): Now a typedef.
12000
fc4007c9
TT
120012017-01-10 Tom Tromey <tom@tromey.com>
12002
12003 * utils.h (make_cleanup_htab_delete): Don't declare.
12004 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete):
12005 Remove.
12006 * linespec.c (decode_compound_collector): Add constructor,
12007 destructor.
12008 (lookup_prefix_sym): Remove cleanup.
12009 (symtab_collector): Add constructor, destructor.
12010 (collect_symtabs_from_filename): Remove cleanup.
12011 * disasm.c (do_mixed_source_and_assembly): Use htab_up.
12012 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
12013 Use htab_up.
12014 * gnu-v3-abi.c (gnuv3_print_vtable): Use htab_up.
12015 * dwarf2read.c (dw2_expand_symtabs_matching)
12016 (dw2_map_symbol_filenames, dwarf_decode_macros)
12017 (write_psymtabs_to_index): Use htab_up.
12018 * dwarf2loc.c (func_verify_no_selftailcall)
12019 (call_site_find_chain_1, func_verify_no_selftailcall)
12020 (chain_candidate, call_site_find_chain_1): Use std::unordered_set,
12021 std::vector, gdb::unique_xmalloc_ptr.
12022 (call_sitep): Remove typedef.
12023 (dwarf2_locexpr_baton_eval): Remove unused variable.
12024
8dbcee67
TT
120252017-01-10 Tom Tromey <tom@tromey.com>
12026
12027 * python/python-internal.h (make_cleanup_py_decref)
12028 (make_cleanup_py_xdecref): Don't declare.
12029 * python/py-utils.c (py_decref, make_cleanup_py_decref)
12030 (py_xdecref, make_cleanup_py_xdecref): Remove.
12031
13df46cc
TT
120322017-01-10 Tom Tromey <tom@tromey.com>
12033
12034 * python/py-framefilter.c (py_mi_print_variables): Use gdbpy_ref.
12035 (py_print_locals, enumerate_locals, py_print_args): Use gdbpy_ref.
12036
06fc9bf7
TT
120372017-01-10 Tom Tromey <tom@tromey.com>
12038
12039 * python/py-framefilter.c (enumerate_args): Use gdbpy_ref.
12040
830a4934
TT
120412017-01-10 Tom Tromey <tom@tromey.com>
12042
12043 * python/py-utils.c (unicode_to_encoded_string)
12044 (python_string_to_target_string)
12045 (python_string_to_target_python_string)
12046 (python_string_to_host_string, gdbpy_obj_to_string)
12047 (get_addr_from_python): Use gdbpy_ref.
12048
4586d543
TT
120492017-01-10 Tom Tromey <tom@tromey.com>
12050
12051 * python/py-unwind.c (pyuw_object_attribute_to_pointer): Use
12052 gdbpy_ref.
12053
59876f8f
TT
120542017-01-10 Tom Tromey <tom@tromey.com>
12055
12056 * python/python.c (eval_python_command, gdbpy_decode_line)
12057 (gdbpy_run_events, gdbpy_start_type_printers)
12058 (gdbpy_apply_type_printers): Use gdbpy_ref.
12059
97d83487
TT
120602017-01-10 Tom Tromey <tom@tromey.com>
12061
12062 * python/py-param.c (get_doc_string, compute_enum_values): Use
12063 gdbpy_ref.
12064
9205649a
TT
120652017-01-10 Tom Tromey <tom@tromey.com>
12066
12067 * python/py-inferior.c (find_thread_object, build_inferior_list):
12068 Use gdbpy_ref.
12069
74c49d45
TT
120702017-01-10 Tom Tromey <tom@tromey.com>
12071
12072 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
12073
16361ffb
TT
120742017-01-10 Tom Tromey <tom@tromey.com>
12075
12076 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope): Use
12077 gdbpy_ref.
12078
905f2cca
TT
120792017-01-10 Tom Tromey <tom@tromey.com>
12080
12081 * python/py-cmd.c (cmdpy_completer_helper): Use gdbpy_ref. Remove
12082 extra incref.
12083 (cmdpy_completer_handle_brkchars, cmdpy_completer, cmdpy_init):
12084 Use gdbpy_ref.
12085
64081434
TT
120862017-01-10 Tom Tromey <tom@tromey.com>
12087
12088 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
12089 gdbpy_ref.
12090
59e9e831
TT
120912017-01-10 Tom Tromey <tom@tromey.com>
12092
12093 * python/py-arch.c (archpy_disassemble): Use gdbpy_ref. Don't
12094 decref results of PyArg_ParseTupleAndKeywords.
12095
9de10f6d
TT
120962017-01-10 Tom Tromey <tom@tromey.com>
12097
12098 * python/python.c (python_run_simple_file): Use
12099 unique_xmalloc_ptr, gdbpy_ref.
12100
2bd5759d
TT
121012017-01-10 Tom Tromey <tom@tromey.com>
12102
12103 * python/py-prettyprint.c (print_stack_unless_memory_error)
12104 (print_string_repr, print_children): Use gdbpy_ref.
12105 (dummy_python_frame): New class.
12106 (dummy_python_frame::dummy_python_frame): Rename from
12107 push_dummy_python_frame.
12108 (py_restore_tstate): Remove.
12109
3b4e0e01
TT
121102017-01-10 Tom Tromey <tom@tromey.com>
12111
12112 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
12113
17a22718
TT
121142017-01-10 Tom Tromey <tom@tromey.com>
12115
12116 * python/python.c (ensure_python_env, restore_python_env):
12117 Remove.
12118 * python/python-internal.h (ensure_python_env): Don't declare.
12119 * varobj.h (varobj_ensure_python_env): Don't declare.
12120 * varobj.c (varobj_ensure_python_env): Remove.
12121
68cdc557
TT
121222017-01-10 Tom Tromey <tom@tromey.com>
12123
12124 * varobj.c (varobj_value_get_print_value): Use
12125 gdbpy_enter_varobj.
12126
1eba6383
TT
121272017-01-10 Tom Tromey <tom@tromey.com>
12128
12129 * python/py-prettyprint.c (print_string_repr, print_children):
12130 Update.
12131 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Change type
12132 of "encoding".
12133 * varobj.c (varobj_value_get_print_value): Update.
12134 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
12135
bde7b3e3
TT
121362017-01-10 Tom Tromey <tom@tromey.com>
12137
12138 * varobj.c (varobj_get_display_hint)
12139 (dynamic_varobj_has_child_method, install_new_value_visualizer)
12140 (varobj_set_visualizer, free_variable): Use
12141 gdbpy_enter_varobj.
12142
a7785f8c
TT
121432017-01-10 Tom Tromey <tom@tromey.com>
12144
12145 * python/python.c (python_command): Use gdbpy_enter, gdbpy_ref.
12146 (do_finish_initialization): New function. Use gdbpy_ref.
12147 (gdbpy_finish_initialization): Use gdbpy_enter. Call
12148 do_finish_initialization.
12149
2865bfce
TT
121502017-01-10 Tom Tromey <tom@tromey.com>
12151
12152 * python/py-param.c (get_set_value, get_show_value): Use
12153 gdbpy_enter, gdbpy_ref.
12154
0e9dcc75
TT
121552017-01-10 Tom Tromey <tom@tromey.com>
12156
12157 * python/py-function.c (fnpy_call): Use gdbpy_enter, gdbpy_ref.
12158
12a5cedd
TT
121592017-01-10 Tom Tromey <tom@tromey.com>
12160
12161 * python/py-cmd.c (cmdpy_function): Use gdbpy_enter, gdbpy_ref.
12162
788f2586
TT
121632017-01-10 Tom Tromey <tom@tromey.com>
12164
12165 * python/py-varobj.c (py_varobj_iter_dtor, py_varobj_iter_next):
12166 Use gdbpy_enter_varobj.
12167
6cd67bea
TT
121682017-01-10 Tom Tromey <tom@tromey.com>
12169
12170 * varobj.c (gdbpy_enter_varobj): New constructor.
12171 * python/python-internal.h (gdbpy_enter_varobj): New class.
12172 * python/py-varobj.c (py_varobj_get_iterator): Use
12173 gdbpy_enter_varobj.
12174
14b122bf
TT
121752017-01-10 Tom Tromey <tom@tromey.com>
12176
12177 * python/py-xmethods.c (gdbpy_get_xmethod_result_type): Use
12178 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
12179 (gdbpy_invoke_xmethod): Use gdbpy_ref, gdbpy_enter.
12180 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref,
12181 unique_xmalloc_ptr.
12182 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref, gdbpy_enter.
12183
bf1ca3b9
TT
121842017-01-10 Tom Tromey <tom@tromey.com>
12185
12186 * python/py-xmethods.c (invoke_match_method): Use
12187 gdbpy_ref.
12188
572a5524
TT
121892017-01-10 Tom Tromey <tom@tromey.com>
12190
12191 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): use
12192 gdbpy_enter, gdbpy_ref.
12193
396a78b6
TT
121942017-01-10 Tom Tromey <tom@tromey.com>
12195
12196 * python/python.c (python_interactive_command): Use gdbpy_enter.
12197
a88b13c7
TT
121982017-01-10 Tom Tromey <tom@tromey.com>
12199
12200 * python/python.c (gdbpy_before_prompt_hook): Use gdbpy_enter,
12201 gdbpy_ref.
12202
e9f0c363
TT
122032017-01-10 Tom Tromey <tom@tromey.com>
12204
12205 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Use
12206 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
12207
6349f452
TT
122082017-01-10 Tom Tromey <tom@tromey.com>
12209
12210 * utils.h (htab_deleter): New struct.
12211 (htab_up): New typedef.
12212 * python/py-framefilter.c (gdbpy_apply_frame_filter): Use
12213 gdbpy_enter, gdbpy_ref, htab_up.
12214
c0171de6
TT
122152017-01-10 Tom Tromey <tom@tromey.com>
12216
12217 * python/py-unwind.c (pending_frame_invalidate): Remove.
12218 (pyuw_sniffer): Use gdbpy_enter and gdbpy_ref.
12219
f18e226f
TT
122202017-01-10 Tom Tromey <tom@tromey.com>
12221
12222 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data)
12223 (gdbpy_clone_xmethod_worker_data): Use gdbpy_enter.
12224
c57af3f1
TT
122252017-01-10 Tom Tromey <tom@tromey.com>
12226
12227 * python/py-type.c (save_objfile_types): Use gdbpy_enter.
12228
60e600ec
TT
122292017-01-10 Tom Tromey <tom@tromey.com>
12230
12231 * python/python.c (gdbpy_eval_from_control_command)
12232 (gdbpy_source_script, gdbpy_run_events)
12233 (gdbpy_source_objfile_script, gdbpy_execute_objfile_script)
12234 (gdbpy_free_type_printers, gdbpy_finish_initialization): Use
12235 gdbpy_enter.
12236
bf7da5b0
TT
122372017-01-10 Tom Tromey <tom@tromey.com>
12238
12239 * python/py-progspace.c (py_free_pspace): Use gdbpy_enter.
12240
2d38bced
TT
122412017-01-10 Tom Tromey <tom@tromey.com>
12242
12243 * python/py-objfile.c (py_free_objfile): Use gdbpy_enter.
12244
07bc7329
TT
122452017-01-10 Tom Tromey <tom@tromey.com>
12246
12247 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
12248 (python_on_inferior_call_pre, python_on_inferior_call_post)
12249 (python_on_memory_change, python_on_register_change)
12250 (python_inferior_exit, python_new_objfile, add_thread_object)
12251 (delete_thread_object, py_free_inferior): Use gdbpy_enter.
12252
6e7c365e
TT
122532017-01-10 Tom Tromey <tom@tromey.com>
12254
12255 * python/py-finishbreakpoint.c (bpfinishpy_handle_stop)
12256 (bpfinishpy_handle_exit): Use gdbpy_enter.
12257
6ba0cd40
TT
122582017-01-10 Tom Tromey <tom@tromey.com>
12259
12260 * python/py-cmd.c (cmdpy_destroyer)
12261 (cmdpy_completer_handle_brkchars, cmdpy_completer): Use
12262 gdbpy_enter.
12263
de2dc875
TT
122642017-01-10 Tom Tromey <tom@tromey.com>
12265
12266 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
12267 gdbpy_enter.
12268 (gdbpy_breakpoint_has_cond): Likewise.
12269
4ecee2c4
TT
122702017-01-10 Tom Tromey <tom@tromey.com>
12271
12272 * python/python.c (gdbpy_enter): New constructor.
12273 (~gdbpy_enter): New destructor.
12274 (restore_python_env, ensure_python_env): Rewrite.
12275 * python/python-internal.h (gdbpy_enter): New class.
12276
37fce74f
TT
122772017-01-10 Tom Tromey <tom@tromey.com>
12278
12279 * python/py-symbol.c (gdbpy_lookup_symbol): Use gdbpy_ref.
12280
53a0cca3
TT
122812017-01-10 Tom Tromey <tom@tromey.com>
12282
12283 * python/py-value.c (value_has_field, get_field_flag)
12284 (get_field_type, valpy_getitem, convert_value_from_python): Use
12285 gdbpy_ref.
12286
ff3724f5
TT
122872017-01-10 Tom Tromey <tom@tromey.com>
12288
12289 * python/python.c (gdbpy_progspaces, gdbpy_objfiles): Use
12290 gdbpy_ref.
12291
0700aea5
TT
122922017-01-10 Tom Tromey <tom@tromey.com>
12293
12294 * python/py-prettyprint.c (search_pp_list)
12295 (find_pretty_printer_from_objfiles)
12296 (find_pretty_printer_from_progspace)
12297 (find_pretty_printer_from_gdb, find_pretty_printer)
12298 (gdbpy_get_display_hint, gdbpy_get_varobj_pretty_printer): Use
12299 gdbpy_ref.
12300
1bb44c9f
TT
123012017-01-10 Tom Tromey <tom@tromey.com>
12302
12303 * python/py-param.c (call_doc_function): Use gdbpy_ref.
12304
87ce03fd
TT
123052017-01-10 Tom Tromey <tom@tromey.com>
12306
12307 * python/py-linetable.c (build_line_table_tuple_from_pcs)
12308 (ltpy_get_all_source_lines): Use gdbpy_ref.
12309
ee0a3fb8
TT
123102017-01-10 Tom Tromey <tom@tromey.com>
12311
12312 * python/py-framefilter.c (extract_sym, extract_value)
12313 (get_py_iter_from_func, bootstrap_python_frame_filters): Use
12314 gdbpy_ref.
12315
bf2a52fa
TT
123162017-01-10 Tom Tromey <tom@tromey.com>
12317
12318 * python/py-breakpoint.c (gdbpy_breakpoints): Use gdbpy_ref.
12319
f59fe7f8
TT
123202017-01-10 Tom Tromey <tom@tromey.com>
12321
12322 * python/py-inferior.c (gdbpy_inferiors): Use gdbpy_ref.
12323
80bd970a
TT
123242017-01-10 Tom Tromey <tom@tromey.com>
12325
12326 * python/py-function.c (convert_values_to_python, fnpy_init): Use
12327 gdbpy_ref.
12328
d1b3de2e
TT
123292017-01-10 Tom Tromey <tom@tromey.com>
12330
12331 * python/py-cmd.c (gdbpy_string_to_argv): Use gdbpy_ref.
12332
3bb43384
TT
123332017-01-10 Tom Tromey <tom@tromey.com>
12334
12335 * python/py-type.c (convert_field, make_fielditem, typy_fields)
12336 (typy_range): Use gdbpy_ref.
12337
abf5651e
TT
123382017-01-10 Tom Tromey <tom@tromey.com>
12339
12340 * python/py-threadevent.c (create_thread_event_object): Use
12341 gdbpy_ref.
12342 * python/py-stopevent.c (create_stop_event_object): Simplify.
12343 (emit_stop_event): Use gdbpy_ref.
12344 * python/py-signalevent.c (create_signal_event_object): Use
12345 gdbpy_ref.
12346 * python/py-newobjfileevent.c (create_new_objfile_event_object)
12347 (emit_new_objfile_event, create_clear_objfiles_event_object)
12348 (emit_clear_objfiles_event): Use gdbpy_ref.
12349 * python/py-infevents.c (create_inferior_call_event_object)
12350 (create_register_changed_event_object)
12351 (create_memory_changed_event_object, emit_inferior_call_event)
12352 (emit_memory_changed_event, emit_register_changed_event): Use
12353 gdbpy_ref.
12354 * python/py-exitedevent.c (create_exited_event_object)
12355 (emit_exited_event): Use gdbpy_ref.
12356 * python/py-event.h (evpy_emit_event): Remove
12357 CPYCHECKER_STEALS_REFERENCE_TO_ARG annotation.
12358 * python/py-event.c (evpy_emit_event): Use gdbpy_ref.
12359 * python/py-continueevent.c (emit_continue_event): Use
12360 gdbpy_ref.
12361 * python/py-breakpoint.c (gdbpy_breakpoint_created)
12362 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
12363 gdbpy_ref.
12364 * python/py-bpevent.c (create_breakpoint_event_object): Use
12365 gdbpy_ref.
12366
a68ff33e
TT
123672017-01-10 Tom Tromey <tom@tromey.com>
12368
12369 * python/py-ref.h: New file.
12370
7becfd03
SM
123712017-01-10 Simon Marchi <simon.marchi@ericsson.com>
12372
12373 * cli-out.c (cli_ui_out::do_redirect): Change return type to
12374 void.
12375 * cli-out.h (cli_ui_out::do_redirect): Likewise.
12376 * mi/mi-out.c (mi_ui_out::do_redirect): Likewise.
12377 * mi/mi-out.h (mi_ui_out::do_redirect): Likewise.
12378 * ui-out.c (ui_out::redirect): Likewise.
12379 * ui-out.h (ui_out::redirect, ui_out::do_redirect): Likewise.
12380 * cli/cli-logging.c (set_logging_redirect): Update call site of
12381 ui_out::redirect.
12382 (handle_redirections): Likewise.
12383 * scm-ports.c (ioscm_with_output_to_port_worker): Likewise.
12384 * top.c (execute_command_to_string): Likewise.
12385 * utils.c (do_ui_out_redirect_pop): Likewise.
12386
df294654
SM
123872017-01-10 Simon Marchi <simon.marchi@ericsson.com>
12388
12389 * stack.c (_initialize_stack): Update "frame" command help message.
12390
f5e6296e
IB
123912017-01-08 Iain Buclaw <ibuclaw@gdcproject.org>
12392
12393 * d-exp.y (CastExpression): Emit UNOP_CAST_TYPE.
12394
0e2d6fa6
YQ
123952017-01-06 Yao Qi <yao.qi@linaro.org>
12396
12397 * x86-linux-nat.h: Include gdb_proc_service.h.
12398
44d6d3f9
YQ
123992017-01-06 Yao Qi <yao.qi@linaro.org>
12400
12401 * ser-base.h: Include serial.h.
12402
656731fe
YQ
124032017-01-06 Yao Qi <yao.qi@linaro.org>
12404
12405 * ppc-linux-tdep.h: Include ppc-tdep.h.
12406
1ca8f924
YQ
124072017-01-06 Yao Qi <yao.qi@linaro.org>
12408
12409 * nat/amd64-linux-siginfo.h: Include signal.h.
12410
bc3008c4
YQ
124112017-01-06 Yao Qi <yao.qi@linaro.org>
12412
12413 * nat/aarch64-linux-hw-point.h: Include break-common.h.
12414
66c80d03
YQ
124152017-01-06 Yao Qi <yao.qi@linaro.org>
12416
12417 * mi/mi-parse.h: Include mi-cmds.h.
12418
051d2dda
YQ
124192017-01-06 Yao Qi <yao.qi@linaro.org>
12420
12421 * inf-loop.c: Don't include "target.h".
12422 * inf-loop.h: Include it here.
12423
8018d34f
YQ
124242017-01-06 Yao Qi <yao.qi@linaro.org>
12425
12426 * dfp.h: Include "dboulest.h" and "expression.h".
12427
c0b8369c
YQ
124282017-01-06 Yao Qi <yao.qi@linaro.org>
12429
12430 * ax-gdb.h: Include "ax.h".
12431
ad5cba2a
YQ
124322017-01-06 Yao Qi <yao.qi@linaro.org>
12433
12434 * Makefile.in (HFILES_NO_SRCDIR): Replace gdb_ptrace.h
12435 with nat/gdb_ptrace.h.
12436
1c33cd7f
YQ
124372017-01-05 Yao Qi <yao.qi@linaro.org>
12438
12439 * mips-fbsd-tdep.c (mips_fbsd_sigframe_init): Move && to
12440 new line.
12441 (mips64_fbsd_sigframe_init): Likewise.
12442
c988ac1d
JB
124432017-01-04 John Baldwin <jhb@FreeBSD.org>
12444
12445 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Use
12446 GDB_OSABI_FREEBSD instead of GDB_OSABI_FREEBSD_ELF.
12447
b268007c
JB
124482017-01-04 John Baldwin <jhb@FreeBSD.org>
12449
12450 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
12451 * NEWS: Mention new FreeBSD/mips native configuration.
12452 * config/mips/fbsd.mh: New file.
12453 * configure.host: Add mips*-*-freebsd*.
12454 * mips-fbsd-nat.c: New file.
12455
387360da
JB
124562017-01-04 John Baldwin <jhb@FreeBSD.org>
12457
12458 * Makefile.in (ALL_TARGET_OBS): Add mips-fbsd-tdep.o.
12459 (ALLDEPFILES): Add mips-fbsd-tdep.c.
12460 * NEWS: Mention new FreeBSD/mips target.
12461 * configure.tgt: Add mips*-*-freebsd*.
12462 * mips-fbsd-tdep.c: New file.
12463 * mips-fbsd-tdep.h: New file.
12464
2aaaf250
YQ
124652017-01-04 Yao Qi <yao.qi@linaro.org>
12466
12467 * dwarf2loc.c (write_pieced_value): Don't use VALUE_FRAME_ID (to),
12468 use c->frame_id when the piece location is DWARF_VALUE_REGISTER.
12469
61baf725
JB
124702017-01-01 Joel Brobecker <brobecker@adacore.com>
12471
6dbb839a 12472 Update copyright year range in all GDB files.
61baf725 12473
c113e7ff 124742017-01-01 Joel Brobecker <brobecker@adacore.com>
ce0db137 12475
c113e7ff 12476 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2016.
ce0db137 12477
c113e7ff 12478For older changes see ChangeLog-2016.
c906108c
SS
12479\f
12480Local Variables:
12481mode: change-log
12482left-margin: 8
12483fill-column: 74
12484version-control: never
57da7796 12485coding: utf-8
c906108c 12486End:
This page took 4.345253 seconds and 4 git commands to generate.