Eliminate STOP_SIGNAL, use SIGTSTP directly
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
6aa899ce
PA
12017-11-06 Pedro Alves <palves@redhat.com>
2
3 * event-top.c: Check SIGTSTP instead of STOP_SIGNAL thoughout.
4 (async_init_signals): Adjust.
5 (handle_stop_sig): Rename to ...
6 (handle_sigtstp): ... this.
7 (async_stop_sig): Rename to ...
8 (async_sigtstp_handler): ... this, and delete STOP_SIGNAL !=
9 SIGTSTP path.
10 * event-top.h: Move signal.h include to the top. Check SIGTSTP
11 instead of STOP_SIGNAL thoughout.
12 (handle_stop_sig): Rename to ...
13 (handle_sigtstp): ... this.
14 * top.c (command_line_input): Replace STOP_SIGNAL -> SIGTSTP.
15
a94799ac
PA
162017-11-06 Pedro Alves <palves@redhat.com>
17
18 * inflow.c (child_terminal_inferior, child_terminal_ours_1): No
19 longer set flags twice in row.
20
726e1356
PA
212017-11-06 Pedro Alves <palves@redhat.com>
22
23 * Makefile.in (SER_HARDWIRE): Update comment.
24 (HFILES_NO_SRCDIR): Remove gdb_termios.h.
25 * common/gdb_termios.h: Delete file.
26 * common/job-control.c: Include termios.h and unistd.h instead of
27 gdb_termios.h.
28 (gdb_setpgid): Remove HAVE_TERMIOS || TIOCGPGRP preprocessor
29 check.
30 (have_job_control): Check HAVE_TERMIOS_H instead of HAVE_TERMIOS.
31 Remove sgtty code.
32 * configure.ac: No longer check for termio.h and sgtty.h.
33 * configure: Regenerate.
34 * inflow.c: Include termios.h instead of gdb_termios.h. Replace
35 PROCESS_GROUP_TYPE checks with HAVE_TERMIOS_H checks throughout.
36 Replace PROCESS_GROUP_TYPE references with pid_t references
37 throughout.
38 (gdb_getpgrp): Delete.
39 (set_initial_gdb_ttystate): Use tcgetpgrp instead of gdb_getpgrp.
40 (child_terminal_inferior): Remove comment. Remove sgtty code.
41 (child_terminal_ours_1): Use tcgetpgrp directly instead of
42 gdb_getpgrp. Use serial_set_tty_state instead aof
43 serial_noflush_set_tty_state. Remove sgtty code.
44 * inflow.h: Include unistd.h instead of gdb_termios.h. Replace
45 PROCESS_GROUP_TYPE check with HAVE_TERMIOS_H check.
46 (inferior_process_group): Now returns pid_t.
47 * ser-base.c (ser_base_noflush_set_tty_state): Delete.
48 * ser-base.h (ser_base_noflush_set_tty_state): Delete.
49 * ser-event.c (serial_event_ops): Update.
50 * ser-go32.c (dos_noflush_set_tty_state): Delete.
51 (dos_ops): Update.
52 * ser-mingw.c (hardwire_ops, tty_ops, pipe_ops, tcp_ops): Update.
53 * ser-pipe.c (pipe_ops): Update.
54 * ser-tcp.c (tcp_ops): Update.
55 * ser-unix.c: Include termios.h instead of gdb_termios.h. Remove
56 HAVE_TERMIOS checks.
57 [HAVE_TERMIO] (struct hardwire_ttystate): Delete.
58 [HAVE_SGTTY] (struct hardwire_ttystate): Delete.
59 (get_tty_state, set_tty_state): Drop termio and sgtty code, and
60 assume termios.
61 (hardwire_noflush_set_tty_state): Delete.
62 (hardwire_print_tty_state, hardwire_drain_output)
63 (hardwire_flush_output, hardwire_flush_input)
64 (hardwire_send_break, hardwire_raw, hardwire_setbaudrate)
65 (hardwire_setstopbits, hardwire_setparity): Drop termio and sgtty
66 code, and assume termios.
67 (hardwire_ops): Update.
68 (_initialize_ser_hardwire): Remove HAVE_TERMIOS check.
69 * serial.c (serial_noflush_set_tty_state): Delete.
70 * serial.h (serial_noflush_set_tty_state): Delete.
71 (serial_ops::noflush_set_tty_state): Delete.
72
1cfb73db
UW
732017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
74
75 * Makefile.in (SFILES): Remove doublest.c and dfp.c.
76 (HFILES_NO_SRCDIR): Remove doublest.h and dfp.h.
77 (COMMON_OBS): Remove doublest.o and dfp.o.
78 Do not build target-float.c (instead of doublest.c)
79 with -Wformat-nonliteral.
80
81 * doublest.c: Remove file.
82 * doublest.h: Remove file.
83 * dfp.c: Remove file.
84 * dfp.h: Remove file.
85
86 * target-float.c: Do not include "doublest.h" and "dfp.h".
87 (DOUBLEST): Move here from doublest.h.
88 (enum float_kind): Likewise.
89 (FLOATFORMAT_CHAR_BIT): Likewise.
90 (FLOATFORMAT_LARGEST_BYTES): Likewise.
91 (floatformat_totalsize_bytes): Move here from doublest.c. Make static.
92 (floatformat_precision): Likewise.
93 (floatformat_normalize_byteorder, get_field, put_field): Likewise.
94 (floatformat_is_negative, floatformat_classify, floatformat_mantissa):
95 Likewise.
96 (host_float_format, host_double_format, host_long_double_format):
97 Likewise.
98 (floatformat_to_string, floatformat_from_string): Likewise.
99 (floatformat_to_doublest): Likewise. Also, inline the original
100 convert_floatformat_to_doublest.
101 (floatformat_from_doublest): Likewise. Also, inline the original
102 convert_floatformat_from_doublest.
103
104 Include "dpd/decimal128.h", "dpd/decimal64.h", and "dpd/decimal32.h".
105 (MAX_DECIMAL_STRING): Move here from dfp.c.
106 (match_endianness): Likewise.
107 (set_decnumber_context, decimal_check_errors): Likewise.
108 (decimal_from_number, decimal_to_number): Likewise.
109 (decimal_to_string, decimal_from_string): Likewise. Make static.
110 (decimal_from_longest, decimal_from_ulongest): Likewise.
111 (decimal_to_longest): Likewise.
112 (decimal_binop, decimal_is_zero, decimal_compare): Likewise.
113 (decimal_convert): Likewise.
114
b07e9c46
UW
1152017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
116
117 * doublest.c: Do not include "gdbtypes.h".
118 (extract_typed_floating): Remove.
119 (store_typed_floating): Remove.
120 (convert_typed_floating): Remove.
121 * doublest.h (struct type): Remove.
122 (DOUBLEST_PRINT_FORMAT): Remove.
123 (DOUBLEST_SCAN_FORMAT): Remove.
124 (extract_typed_floating): Remove.
125 (store_typed_floating): Remove.
126 (convert_typed_floating): Remove.
127
128 * dfp.c (decimal_from_doublest): Remove.
129 (decimal_to_doublest): Remove.
130 * dfp.h: Do not include "doublest.h".
131 (decimal_from_doublest): Remove.
132 (decimal_to_doublest): Remove.
133
134 * value.c: Do not include "doublest.h" and "dfp.h".
135 (value_as_double): Remove.
136 (unpack_double): Remove.
137 (value_from_double): Remove.
138 (value_from_decfloat): Remove.
139 * value.h: Do not include "doublest.h".
140 (value_as_double): Remove.
141 (unpack_double): Remove.
142 (value_from_double): Remove.
143 (value_from_decfloat): Remove.
144
3b2ca824
UW
1452017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
146
147 * i386-tdep.c: Include "target-float.h". Do not include "doublest.h".
148 (i386_extract_return_value): Use target_float_convert.
149 (i386_store_return_value): Likewise.
150 * i387-tdep.c (i387_register_to_value): Use target_float_convert.
151 (i387_value_to_register): Likewise.
152 * ia64-tdep.c: Include "target-float.h". Do not include "doublest.h".
153 (ia64_register_to_value): Use target_float_convert.
154 (ia64_value_to_register): Likewise.
155 (ia64_extract_return_value): Likewise.
156 (ia64_store_return_value): Likewise.
157 (ia64_push_dummy_call): Likewise.
158 * m68k-tdep.c: Include "target-float.h".
159 (m68k_register_to_value): Use target_float_convert.
160 (m68k_value_to_register): Likewise.
161 (m68k_svr4_extract_return_value): Likewise.
162 (m68k_svr4_store_return_value): Likewise.
163 * ppc-sysv-tdep.c: Include "target-float.h".
164 (ppc_sysv_abi_push_dummy_call): Use target_float_convert.
165 (do_ppc_sysv_return_value): Likewise.
166 (ppc64_sysv_abi_push_freg): Likewise.
167 (ppc64_sysv_abi_return_value_base): Likewise.
168 * rs6000-aix-tdep.c: Include "target-float.h".
169 (rs6000_push_dummy_call): Use target_float_convert.
170 (rs6000_return_value): Likewise.
171 * rs6000-lynx178-tdep.c: Include "target-float.h".
172 (rs6000_lynx178_push_dummy_call): Use target_float_convert.
173 (rs6000_lynx178_return_value): Likewise.
174 * rs6000-tdep.c: Include "target-float.h". Do not include "doublest.h".
175 (rs6000_register_to_value): Use target_float_convert.
176 (rs6000_value_to_register): Likewise.
177 * arm-tdep.c: Include "target-float.h". Do not include "doublest.h".
178 (arm_extract_return_value): Use target_float_convert.
179 (arm_store_return_value): Likewise.
180 * sh-tdep.c: Include "target-float.h". Do not include "doublest.h".
181 (sh_register_convert_to_virtual): Use target_float_convert.
182 (sh_register_convert_to_raw): Likewise.
183 * sh64-tdep.c: Include "target-float.h".
184 (sh64_extract_return_value): Use target_float_convert.
185 (sh64_register_convert_to_virtual): Likewise.
186 (sh64_register_convert_to_raw): Likewise. Fix argument types.
187
14ad9311
UW
1882017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
189
190 * target-float.c (floatformat_to_host_double): New function.
191 (floatformat_from_host_double): Likewise.
192 (target_float_to_host_double): Likewise.
193 (target_float_from_host_double): Likewise.
194 * target-float.h (target_float_to_host_double): Add prototype.
195 (target_float_from_host_double): Likewise.
196
197 * guile/scm-value.c: Include "target-float.h".
198 (gdbscm_value_to_real): Use target_float_to_host_double.
199 Handle integer source values via value_as_long.
200 * guile/scm-math.c: Include "target-float.h". Do not include
201 "doublest.h", "dfp.h", and "expression.h".
202 (vlscm_convert_typed_number): Use target_float_from_host_double.
203 (vlscm_convert_number): Likewise.
204
205 * python/py-value.c (valpy_float): Use target_float_to_host_double.
206 (convert_value_from_python): Use target_float_from_host_double.
207
50eff16b
UW
2082017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
209
210 * ada-lang.c (cast_to_fixed): Reimplement in target arithmetic.
211 (cast_from_fixed): Likewise.
212 (ada_scaling_type): New function.
213 (ada_delta): Return value instead of DOUBLEST. Perform target
214 arithmetic instead of host arithmetic.
215 (scaling_factor): Rename to ...
216 (ada_scaling_factor) ... this. Make non-static. Return value instead
217 of DOUBLEST. Perform target arithmetic instead of host arithmetic.
218 (ada_fixed_to_float): Remove.
219 (ada_float_to_fixed): Remove.
220 * ada-lang.h (ada_fixed_to_float): Remove.
221 (ada_float_to_fixed): Remove.
222 (ada_delta): Return value instead of DOUBLEST.
223 (ada_scaling_factor): Add prototype.
224
225 * ada-typeprint.c: Include "target-float.h".
226 (print_fixed_point_type): Perform target arithmetic instead of
227 host arithmetic.
228 * ada-valprint.c: Include "target-float.h".
229 (ada_val_print_num): Perform target arithmetic instead of
230 host arithmetic for fixed-point types.
231
66c02b9e
UW
2322017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
233
234 * target-float.c: Include <math.h>.
235 (floatformat_binop): New function.
236 (floatformat_compare): Likewise.
237 (target_float_binop): Likewise.
238 (target_float_compare): Likewise.
239 * target-float.h: Include "expression.h".
240 (target_float_binop): Add prototype.
241 (target_float_compare): Likewise.
242
243 * valarith.c: Do not include "doublest.h" and "dfp.h".
244 Include "common/byte-vector.h".
245 (value_args_as_decimal): Remove, replace by ...
246 (value_args_as_target_float): ... this function. Handle both
247 binary and decimal target floating-point formats.
248 (scalar_binop): Handle both binary and decimal FP using
249 value_args_as_target_float and target_float_binop.
250 (value_equal): Handle both binary and decimal FP using
251 value_args_as_target_float and target_float_compare.
252 (value_less): Likewise.
253 (value_pos): Handle all scalar types as simple copy.
254 (value_neg): Handle all scalar types via BINOP_SUB from 0.
255 * dfp.c (decimal_binop): Throw error instead of internal_error
256 when called with an unsupported operation code.
257
f69fdf9b
UW
2582017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
259
260 * target-float.c (target_float_to_string): New function.
261 (target_float_from_string): New function.
262 * target-float.h (target_float_to_string): Add prototype.
263 (target_float_from_string): Add prototype.
264
265 * valprint.c: Include "target-float.h". Do not include
266 "doublest.h" and "dfp.h".
267 (print_floating): Use target_float_to_string.
268 * printcmd.c: Include "target-float.h". Do not include "dfp.h".
269 (printf_floating): Use target_float_to_string.
270 * i387-tdep.c: Include "target-float.h". Do not include "doublest.h".
271 (print_i387_value): Use target_float_to_string.
272 * mips-tdep.c: Include "target-float.h".
273 (mips_print_fp_register): Use target_float_to_string.
274 * sh64-tdep.c: Include "target-float.h".
275 (sh64_do_fp_register): Use target_float_to_string.
276
277 * parse.c: Include "target-float.h". Do not include
278 "doublest.h" and "dfp.h".
279 (parse_float): Use target_float_from_string.
280 * stabsread.c: Include "target-float.h". Do not include "doublest.h".
281 (define_symbol): Use target_float_from_string.
282 * gdbarch-selftests.c: Include "target-float.h".
283 (register_to_value_test): Use target_float_from_string.
284
70100014
UW
2852017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
286
287 * Makefile.c (SFILES): Add target-float.c.
288 (HFILES_NO_SRCDIR): Add target-float.h.
289 (COMMON_OBS): Add target-float.o.
290 * target-float.h: New file.
291 * target-float.c: New file.
292
293 * doublest.c (floatformat_classify): Fix detection of float_zero.
294
295 * gdbtypes.c (is_floating_type): New function.
296 * gdbtypes.h (is_floating_type): Add prototype.
297
298 * value.c: Do not include "floatformat.h".
299 (unpack_double): Use target_float_is_valid.
300 (is_floating_value): New function.
301 * value.h (is_floating_value): Add prototype-
302
303 * valarith.c: Include "target-float.h".
304 (value_logical_not): Use target_float_is_zero.
305
306 * python/py-value.c: Include "target-float.h".
307 (valpy_nonzero): Use target_float_is_zero.
308
ab4b1c46
TT
3092017-11-04 Tom Tromey <tom@tromey.com>
310
311 * h8300-tdep.c (h8300_push_dummy_call): Use std::vector.
312
454dafbd
TT
3132017-11-04 Tom Tromey <tom@tromey.com>
314
315 * breakpoint.c (set_momentary_breakpoint): Return
316 breakpoint_up.
317 (until_break_command): Update.
318 (new_until_break_fsm): Change argument types to
319 breakpoint_up.
320 (set_momentary_breakpoint_at_pc): Return breakpoint_up.
321 (do_delete_breakpoint_cleanup, make_cleanup_delete_breakpoint):
322 Remove.
323 * infcmd.c (finish_forward): Update.
324 * breakpoint.h (set_momentary_breakpoint)
325 (set_momentary_breakpoint_at_pc): Return breakpoint_up.
326 (make_cleanup_delete_breakpoint): Remove.
327 (struct breakpoint_deleter): New.
328 (breakpoint_up): New typedef.
329 * infrun.c (insert_step_resume_breakpoint_at_sal_1): Update.
330 (insert_exception_resume_breakpoint): Update.
331 (insert_exception_resume_from_probe): Update.
332 (insert_longjmp_resume_breakpoint): Update.
333 * arm-linux-tdep.c (arm_linux_copy_svc): Update.
334 * elfread.c (elf_gnu_ifunc_resolver_stop): Update.
335 * infcall.c (call_function_by_hand_dummy): Update
336
331b71e5
TT
3372017-11-04 Tom Tromey <tom@tromey.com>
338
339 * c-typeprint.c (c_type_print_base): Use gdb::unique_xmalloc_ptr.
340
9f584b37
TT
3412017-11-04 Tom Tromey <tom@tromey.com>
342
343 * linux-tdep.c (linux_core_info_proc_mappings): Use
344 gdb::def_vector.
345 (linux_get_siginfo_data): Return gdb::byte_vector. Remove
346 "size" argument.
347 (linux_corefile_thread): Update.
348 (linux_make_corefile_notes): Remove unused variable.
349
779bc38e
TT
3502017-11-04 Tom Tromey <tom@tromey.com>
351
352 * ppc-linux-tdep.c (ppc_linux_get_syscall_number): Use
353 gdb::byte_vector.
354
ed2b3126
TT
3552017-11-04 Tom Tromey <tom@tromey.com>
356
357 * objfiles.c (do_free_objfile_cleanup): Remove.
358 * compile/compile-object-load.c (compile_object_load): Update.
359 * objfiles.h (make_cleanup_free_objfile): Remove.
360
7f6743fd
TT
3612017-11-04 Tom Tromey <tom@tromey.com>
362
363 * sparc64-tdep.c (do_examine): Use gdb::def_vector.
364 (adi_read_versions): Change "tags" to "gdb_byte *".
365 (adi_print_versions): Likewise.
366
c80049d3
TT
3672017-11-04 Tom Tromey <tom@tromey.com>
368
369 * breakpoint.c
370 (scoped_rbreak_breakpoints::scoped_rbreak_breakpoints): Rename
371 from start_rbreak_breakpoints.
372 (scoped_rbreak_breakpoints): Rename from end_rbreak_breakpoints.
373 * breakpoint.h (class scoped_rbreak_breakpoints): New.
374 (start_rbreak_breakpoints, end_rbreak_breakpoints): Remove.
375 * symtab.c (do_end_rbreak_breakpoints): Remove.
376 (rbreak_command): Use scoped_rbreak_breakpoints, std::string.
377
167b0be1
TT
3782017-11-04 Tom Tromey <tom@tromey.com>
379
380 * cp-namespace.c (reset_directive_searched): Remove.
381 (cp_lookup_symbol_via_imports): Use scoped_restore.
382 * cp-support.c (reset_directive_searched): Remove.
383 (make_symbol_overload_list_using): Use scoped_restore.
384 * d-namespace.c (d_lookup_symbol_imports): Use scoped_restore.
385 (reset_directive_searched): Remove.
386
5eae7aea
TT
3872017-11-04 Tom Tromey <tom@tromey.com>
388
389 * symfile.c (find_separate_debug_file_by_debuglink): Use
390 unique_xmalloc_ptr.
391
c6bcad5f
TT
3922017-11-04 Tom Tromey <tom@tromey.com>
393
394 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
395 type of "info".
396 (compute_stack_depth): Likewise.
397 (do_compile_dwarf_expr_to_c): Use std::vector.
398
20dcd8ca
TT
3992017-11-04 Tom Tromey <tom@tromey.com>
400
401 * compile/compile-object-load.c (link_callbacks_einfo): Use
402 std::string.
403
33c7c59d
TT
4042017-11-04 Tom Tromey <tom@tromey.com>
405
406 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
407 Use scoped_free_pendings.
408 * dbxread.c (dbx_symfile_read, dbx_psymtab_to_symtab_1): Use
409 scoped_free_pendings.
410 * xcoffread.c (xcoff_psymtab_to_symtab_1): Use scoped_free_pendings.
411 (xcoff_initial_scan): Likewise.
412 * buildsym.c (reset_symtab_globals): Update comment.
413 (scoped_free_pendings): Rename from really_free_pendings.
414 (prepare_for_building): Update comment.
415 (buildsym_init): Likewise.
416 * buildsym.h (class scoped_free_pendings): New class.
417 (really_free_pendings): Don't declare.
418
67fa57cf
UW
4192017-11-03 Ulrich Weigand <uweigand@de.ibm.com>
420
421 * doublest.c (convert_doublest_to_floatformat): Fix uninitialized
422 output when converting a zero value to a special byteorder format.
423
f26ae15b
YQ
4242017-11-02 Yao Qi <yao.qi@linaro.org>
425
426 * frame.c (do_frame_register_read): Remove aspace.
427 * jit.c (jit_frame_sniffer): Likwise.
428 * ppc-linux-tdep.c (ppu2spu_sniffer): Likewise.
429 * regcache.c (regcache::regcache): Pass nullptr.
430 (regcache_print): Caller updated.
431 * regcache.h (regcache::regcache): Remove one constructor
432 parameter aspace.
433
6c6e9412
YQ
4342017-11-02 Yao Qi <yao.qi@linaro.org>
435
436 * regcache.h (regcache) <m_readonly_p>: Change it to const bool.
437
8b86c959
YQ
4382017-11-02 Yao Qi <yao.qi@linaro.org>
439
440 * breakpoint.c (insert_single_step_breakpoints): Update.
441 * frame.c (struct frame_info) <aspace>: Add const.
442 (frame_save_as_regcache): Add const.
443 (get_frame_address_space): Return const address_space *.
444 * frame.h (get_frame_address_space): Update declaration.
445 * infrun.c (struct step_over_info) <aspace>: Add const.
446 (set_step_over_info): Make aspace const.
447 (displaced_step_prepare_throw): Change variable const.
448 (resume): Likewise.
449 (proceed): Likewise.
450 (adjust_pc_after_break): Likewise.
451 (save_waitstatus): Likewise.
452 (handle_signal_stop): Likewise.
453 (keep_going_pass_signal): Likewise.
454 * jit.c (jit_frame_sniffer): Add const.
455 * mips-tdep.c (mips_single_step_through_delay): Likewise.
456 * ppc-linux-tdep.c (ppu2spu_sniffer): Likewise.
457 * record-full.c (record_full_wait_1): Likewise.
458 * regcache.c (regcache::regcache): Change parameter to const.
459 * regcache.h (regcache::regcache): Likewise.
460 (regcache::aspace): Return const address_space *.
461 (regcache) <m_aspace>: Add const.
462
a01bda52
YQ
4632017-11-02 Yao Qi <yao.qi@linaro.org>
464
465 * darwin-nat.c (cancel_breakpoint): Use regcache->aspace ().
466 * frame.c (create_sentinel_frame): Likewise.
467 * infrun.c (displaced_step_prepare_throw): Likewise.
468 (resume): Likewise.
469 (thread_still_needs_step_over_bp): Likewise.
470 (proceed): Likewise.
471 (do_target_wait): Likewise.
472 (adjust_pc_after_break): Likewise.
473 (handle_syscall_event): Likewise.
474 (save_waitstatus): Likewise.
475 (handle_inferior_event_1): Likewise.
476 (handle_signal_stop): Likewise.
477 (keep_going_pass_signal): Likewise.
478 * linux-nat.c (status_callback): Likewise.
479 (save_stop_reason): Likewise.
480 (resume_stopped_resumed_lwps): Likewise.
481 * record-full.c (record_full_exec_insn): Likewise.
482 (record_full_wait_1): Likewise.
483 * regcache.c (get_regcache_aspace): Remove.
484 * regcache.h (get_regcache_aspace): Remove.
485
d999647b
YQ
4862017-11-02 Yao Qi <yao.qi@linaro.org>
487
488 * regcache.c (struct regcache_descr) <nr_raw_registers>: Remove.
489 (init_regcache_descr): Use gdbarch_num_regs.
490 (regcache::regcache): Likewise.
491 (regcache::get_register_status): Likewise.
492 (regcache::assert_raw_regnum): Likewise.
493 (regcache::cooked_read): Likewise.
494 (regcache::cooked_read_value): Likewise.
495 (regcache::cooked_write): Likewise.
496 (regcache::dump): Likewise.
497 (regcache::num_raw_registers): New method.
498 * regcache.h (class regcache) <num_raw_registers>: New.
499
4e888c28
YQ
5002017-11-02 Yao Qi <yao.qi@linaro.org>
501
502 * regcache.c (regcache::assert_regnum): New method.
503 (regcache::invalidate): Call assert_regnum.
504 (regcache::raw_update): Likewise.
505 (regcache::raw_write): Likewise.
506 (regcache::raw_read_part): Likewise.
507 (regcache::raw_write_part): Likewise.
508 (regcache::raw_supply): Likewise.
509 (regcache::raw_supply_integer): Likewise.
510 (regcache::raw_supply_zeroed): Likewise.
511 (regcache::raw_collect): Likewise.
512 (regcache::raw_collect_integer): Likewise.
513 * regcache.h (regcache::assert_regnum): Declare.
514
2e1b49b3
YQ
5152017-11-02 Yao Qi <yao.qi@linaro.org>
516
517 * regcache.c (regcache::dump): Remove code.
518
6c5218df
YQ
5192017-11-02 Yao Qi <yao.qi@linaro.org>
520
521 * regcache.c (struct regcache_descr) <sizeof_raw_register_status>:
522 Remove.
523 <sizeof_cooked_register_status>: Remove.
524 (init_regcache_descr): Update.
525 (regcache::regcache): Use nr_cooked_registers and nr_raw_registers.
526 (regcache::save): Likewise.
527 (regcache::dump): Likewise.
528
dcc31d28
JB
5292017-11-01 James Bowman <james.bowman@ftdichip.com>
530
531 * ft32-tdep.c (ft32_fetch_instruction): New function.
532 (ft32_analyze_prologue): Use ft32_fetch_instruction().
533
3a87ae65
SM
5342017-10-31 Simon Marchi <simon.marchi@polymtl.ca>
535
536 * cli/cli-script.c (execute_control_command): Rename to ...
537 (execute_control_command_1): ... this.
538 (execute_control_command): New function.
539
09b847f3
SM
5402017-10-31 Simon Marchi <simon.marchi@ericsson.com>
541
542 * tracepoint.c (tfind_command): Remove const_cast.
543
f871c485
MG
5442017-10-30 Mike Gulick <mgulick@mathworks.com>
545
546 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to gdb.h.
547
b020ff80
SM
5482017-10-30 Simon Marchi <simon.marchi@ericsson.com>
549
550 * common/common-utils.h (in_inclusive_range): New function.
551 * arm-tdep.c (arm_record_extension_space): Use
552 in_inclusive_range.
553 (thumb_record_ld_st_reg_offset): Use in_inclusive_range.
554 * cris-tdep.c (cris_spec_reg_applicable): Use
555 in_inclusive_range.
556
1b81856f
PA
5572017-10-30 Pedro Alves <palves@redhat.com>
558 Simon Marchi <simon.marchi@ericsson.com>
559
560 * remote.c (remote_set_syscall_catchpoint): Build a std::string
561 instead of a gdb::unique_xmalloc_ptr, using string_appendf.
562
31b833b3
PA
5632017-10-30 Pedro Alves <palves@redhat.com>
564
565 * common/common-utils.c (string_appendf, string_vappendf): New
566 functions.
567 * common/common-utils.h (string_appendf, string_vappendf): New
568 declarations.
569 * unittests/common-utils-selftests.c (string_appendf_func)
570 (test_appendf_func, string_vappendf_wrapper, string_appendf_tests)
571 (string_vappendf_tests): New functions.
572 (_initialize_common_utils_selftests): Register "string_appendf" and
573 "string_vappendf tests".
574
4a250334
PA
5752017-10-30 Pedro Alves <palves@redhat.com>
576
577 * unittests/common-utils-selftests.c (format_func): New typedef.
578 (string_printf_tests, string_vprintf_tests): Tests factored out
579 and merged to ...
580 (test_format_func): ... this new function.
581 (string_printf_tests, string_vprintf_tests): Reimplement on top of
582 test_format_func.
583
16c5c17e
SM
5842017-10-29 Simon Marchi <simon.marchi@ericsson.com>
585
586 * darwin-nat.c: Remove include of gdb.h.
587
7ca51576
SM
5882017-10-29 Simon Marchi <simon.marchi@ericsson.com>
589
590 * xtensa-xtregs.c: Fix formatting issues.
591
c1342859
SM
5922017-10-29 Simon Marchi <simon.marchi@ericsson.com>
593
594 * xtensa-xtregs.c (xtensa_regtable_t) <name>: Constify.
595
484d8d36
MD
5962017-10-28 Maksim Dzabraev <dzabraew@gmail.com>
597
598 PR python/21213
599 * python/py-infthread.c (thpy_get_inferior): Increment reference
600 of inferior before returning it.
601
b5540b5f
SM
6022017-10-27 Simon Marchi <simon.marchi@ericsson.com>
603
604 * unittests/common-utils-selftests.c (format): Add
605 ATTRIBUTE_PRINTF.
606
5a9dcda1
SM
6072017-10-27 Simon Marchi <simon.marchi@polymtl.ca>
608
609 * xml-syscall.c (struct syscall_desc): Add constructor.
610 <name>: Change type to std::string.
611 (syscall_desc_up): New typedef.
612 (syscall_desc_p): Remove typeder.
613 (DEF_VEC_P(syscall_desc_p)): Remove.
614 (struct syscall_group_desc): Add constructor.
615 <name>: Change type to std::string.
616 <syscalls>: Change type to std::vector.
617 (syscall_group_desc_up): New typedef.
618 (syscall_group_desc_p): Remove typedef.
619 (DEF_VEC_P(syscall_group_desc_p)): Remove.
620 (struct syscalls_info) <syscalls>: Change type to std::vector of
621 unique_ptr.
622 <groups>: Likewise.
623 <my_gdb_datadir>: Change type to std::string.
624 (syscalls_info_up): New typedef.
625 (allocate_syscalls_info): Remove.
626 (syscalls_info_free_syscalls_desc): Remove.
627 (syscalls_info_free_syscall_group_desc): Remove.
628 (free_syscalls_info): Remove.
629 (make_cleanup_free_syscalls_info): Remove.
630 (syscall_group_create_syscall_group_desc): Adjust.
631 (syscall_group_add_syscall): Adjust.
632 (syscall_create_syscall_desc): Adjust.
633 (syscall_parse_xml): Adjust, use unique_ptr instead of cleanup.
634 (init_syscalls_info): Adjust.
635 (syscall_group_get_group_by_name): Adjust.
636 (xml_get_syscall_number): Adjust.
637 (xml_get_syscall_name): Adjust.
638 (xml_list_of_syscalls): Adjust.
639 (xml_list_syscalls_by_group): Adjust.
640 (xml_list_of_groups): Adjust.
641
45461e0d
SM
6422017-10-27 Simon Marchi <simon.marchi@ericsson.com>
643
644 * probe.h: Don't include gdb_vecs.h.
645 (DEF_VEC_P (probe_p)): Remove.
646 (find_probes_in_objfile): Return an std::vector.
647 * probe.c (find_probes_in_objfile): Likewise.
648 * breakpoint.c (breakpoint_objfile_data)
649 <longjmp_probes>: Change type to std::vector.
650 <exception_probes>: Likewise.
651 (free_breakpoint_probes): Don't manually free vectors.
652 (create_longjmp_master_breakpoint): Adjust.
653 (create_exception_master_breakpoint): Adjust.
654 * solib-svr4.c (svr4_create_probe_breakpoints): Change
655 parameter type, adjust.
656 (svr4_create_solib_event_breakpoints): Adjust.
657
43dce439
SM
6582017-10-27 Simon Marchi <simon.marchi@ericsson.com>
659
660 * breakpoint.c (breakpoint_objfile_data): Initialize fields.
661 (get_breakpoint_objfile_data): Allocate breakpoint_objfile_data
662 with new.
663 (free_breakpoint_probes): Rename to ...
664 (free_breakpoint_objfile_data): ... this, and call delete on
665 bp_objfile_data..
666
6a1b9516
SM
6672017-10-27 Simon Marchi <simon.marchi@polymtl.ca>
668
669 * auto-load.c: Don't include gdb_vecs.h, include algorithm.
670 (loaded_script_ptr): Remove typedef.
671 (DEF_VEC_P (loaded_script_ptr)): Remove.
672 (struct collect_matching_scripts_data): Add constructor.
673 <scripts_p>: Change type to (pointer to) std::vector.
674 (collect_matching_scripts_data): Adjust.
675 (sort_scripts_by_name): Make suitable for std::sort.
676 (print_scripts): Don't sort vector, adjust to std::vector.
677 (auto_load_info_scripts): Sort vectors, adjust to std::vector.
678
593e3209
SM
6792017-10-27 Simon Marchi <simon.marchi@ericsson.com>
680
681 * symfile.c (filename_language): Make struct, not typedef. Add
682 constructor.
683 <ext>: Change type to std::string.
684 (DEF_VEC_O (filename_language)): Remove.
685 (filename_language_table): Change type to std::vector.
686 (add_filename_language): Adjust.
687 (set_ext_lang_command): Adjust.
688 (info_ext_lang_command): Adjust.
689 (deduce_language_from_filename): Adjust.
690 (class scoped_restore_filename_language_table): Remove.
691 (test_filename_language): Use scoped_restore.
692 (test_set_ext_lang_command): Use scoped_restore, adjust to
693 std::vector change.
694
32fa66eb
SM
6952017-10-27 Simon Marchi <simon.marchi@ericsson.com>
696
697 * symfile.c: Include selftest.h.
698 (class scoped_restore_filename_language_table): New.
699 (test_filename_language): New test.
700 (test_set_ext_lang_command): New test.
701 (_initialize_symfile): Register tests.
702
4a27f119
KS
7032017-10-27 Keith Seitz <keiths@redhat.com>
704
705 * breakpoint.c (print_breakpoint_location): Use the symbol saved
706 in the bp_location, falling back to find_pc_sect_function when
707 needed.
708 (add_location_to_breakpoint): Save sal->symbol.
709 * breakpoint.h (struct bp_location) <symbol>: New field.
710 * symtab.c (find_function_start_sal): Save the symbol into the SaL.
711 * symtab.h (struct symtab_and_line) <symbol>: New field.
712
a43f3893
PF
7132017-10-26 Patrick Frants <osscontribute@gmail.com>
714
7453e6b2 715 PR gdb/13669
a43f3893
PF
716 * cp-valprint.c (cp_print_value_fields): Use obstack_blank_fast
717 to rewind obstack.
718
23cc4e1b
PA
7192017-10-26 Pedro Alves <palves@redhat.com>
720
721 * remote.c (remote_async_terminal_ours_p): Delete.
722 (remote_open_1, remote_terminal_inferior, remote_terminal_ours):
723 Remove references to 'remote_async_terminal_ours_p'.
724
6abc18bb
YQ
7252017-10-26 Yao Qi <yao.qi@linaro.org>
726
727 * breakpoint.h (regular_breakpoint_inserted_here_p): Remove.
728
bd522513
YQ
7292017-10-26 Yao Qi <yao.qi@linaro.org>
730
731 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Make
732 aspace const.
733 * break-catch-syscall.c (breakpoint_hit_catch_syscall):
734 Likewise.
735 * breakpoint.c (bpstat_check_location): Remove cast.
736 (breakpoint_hit_catch_fork): Make aspce const.
737 (breakpoint_hit_catch_solib): Likewise.
738 (breakpoint_hit_catch_exec): Likewise.
739 (breakpoint_hit_ranged_breakpoint): Likewise.
740 (breakpoint_hit_watchpoint): Likewise.
741 (base_breakpoint_breakpoint_hit): Likewise.
742 (bkpt_breakpoint_hit): Likewise.
743 (dprintf_breakpoint_hit): Likewise.
744 (tracepoint_breakpoint_hit): Likewise.
745 * breakpoint.h (breakpoint_ops) <breakpoint_hit>: Likewise.
746
accd0bcd
YQ
7472017-10-26 Yao Qi <yao.qi@linaro.org>
748
749 * breakpoint.c (breakpoint_location_address_match): Change
750 "struct address_space *" to "const address_space".
751 (breakpoint_location_address_range_overlap): Likewise.
752 (breakpoint_here_p): Likewise.
753 (breakpoint_in_range_p): Likewise.
754 (moribund_breakpoint_here_p): Likewise.
755 (bp_location_inserted_here_p): Likewise.
756 (software_breakpoint_inserted_here_p): Likewise.
757 (hardware_breakpoint_inserted_here_p): Likewise.
758 (hardware_watchpoint_inserted_in_range): Likewise.
759 (bpstat_check_location): Likewise.
760 (bpstat_stop_status): Likewise.
761 (breakpoint_address_match): Likewise.
762 (breakpoint_address_match_range): Likewise.
763 (breakpoint_location_address_match): Likewise.
764 (breakpoint_location_address_range_overlap): Likewise.
765 (insert_single_step_breakpoint): Likewise.
766 (breakpoint_has_location_inserted_here): Likewise.
767 (single_step_breakpoint_inserted_here_p): Likewise.
768 (pc_at_non_inline_function): Likewise.
769 * breakpoint.h (bpstat_stop_status): Update declaration.
770 (breakpoint_here_p): Likewise.
771 (breakpoint_in_range_p): Likewise.
772 (moribund_breakpoint_here_p): Likewise.
773 (breakpoint_inserted_here_p): Likewise.
774 (software_breakpoint_inserted_here_p): Likewise.
775 (hardware_breakpoint_inserted_here_p): Likewise.
776 (breakpoint_has_location_inserted_here): Likewise.
777 (single_step_breakpoint_inserted_here_p): Likewise.
778 (hardware_watchpoint_inserted_in_range): Likewise.
779 (breakpoint_address_match): Likewise.
780 (insert_single_step_breakpoint): Likewise.
781 (pc_at_non_inline_function): Likewise.
782 * gdbthread.h (thread_has_single_step_breakpoint_here): Likewise.
783 * record.c (record_check_stopped_by_breakpoint): Likewise.
784 * record.h (record_check_stopped_by_breakpoint): Likewise.
785 * thread.c (thread_has_single_step_breakpoint_here): Likewise.
786
ac7936df
YQ
7872017-10-25 Yao Qi <yao.qi@linaro.org>
788
789 * aarch32-linux-nat.c (aarch32_gp_regcache_supply): Use
790 regcache->arch () instead get_regcache_arch.
791 * aarch64-fbsd-nat.c (aarch64_fbsd_fetch_inferior_registers):
792 Likewise.
793 (aarch64_fbsd_store_inferior_registers): Likewise.
794 * aarch64-linux-nat.c (fetch_gregs_from_thread): Likewise.
795 (store_gregs_to_thread): Likewise.
796 (fetch_fpregs_from_thread): Likewise.
797 (store_fpregs_to_thread): Likewise.
798 * aarch64-tdep.c (aarch64_extract_return_value): Likewise.
799 (aarch64_store_return_value): Likewise.
800 (aarch64_software_single_step): Likewise.
801 * aix-thread.c (aix_thread_wait): Likewise.
802 (supply_reg32): Likewise.
803 (supply_sprs64): Likewise.
804 (supply_sprs32): Likewise.
805 (fill_gprs64): Likewise.
806 (fill_gprs32): Likewise.
807 (fill_sprs64): Likewise.
808 (fill_sprs32): Likewise.
809 (store_regs_user_thread): Likewise.
810 (store_regs_kernel_thread): Likewise.
811 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers): Likewise.
812 (alphabsd_store_inferior_registers): Likewise.
813 * alpha-tdep.c (alpha_extract_return_value): Likewise.
814 (alpha_store_return_value): Likewise.
815 (alpha_deal_with_atomic_sequence): Likewise.
816 (alpha_next_pc): Likewise.
817 (alpha_software_single_step): Likewise.
818 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise.
819 (amd64bsd_store_inferior_registers): Likewise.
820 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
821 Likewise.
822 (amd64_linux_store_inferior_registers): Likewise.
823 * amd64-nat.c (amd64_supply_native_gregset): Likewise.
824 (amd64_collect_native_gregset): Likewise.
825 * amd64-obsd-tdep.c (amd64obsd_supply_uthread): Likewise.
826 (amd64obsd_collect_uthread): Likewise.
827 * amd64-tdep.c (amd64_supply_fpregset): Likewise.
828 (amd64_collect_fpregset): Likewise.
829 (amd64_supply_fxsave): Likewise.
830 (amd64_supply_xsave): Likewise.
831 (amd64_collect_fxsave): Likewise.
832 (amd64_collect_xsave): Likewise.
833 * arc-tdep.c (arc_write_pc): Likewise.
834 * arch-utils.c (default_skip_permanent_breakpoint): Likewise.
835 * arm-fbsd-nat.c (arm_fbsd_fetch_inferior_registers): Likewise.
836 (arm_fbsd_store_inferior_registers): Likewise.
837 * arm-linux-nat.c (fetch_vfp_regs): Likewise.
838 (store_vfp_regs): Likewise.
839 (arm_linux_fetch_inferior_registers): Likewise.
840 (arm_linux_store_inferior_registers): Likewise.
841 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
842 (arm_linux_sigreturn_next_pc): Likewise.
843 (arm_linux_get_next_pcs_syscall_next_pc): Likewise.
844 * arm-nbsd-nat.c (arm_supply_gregset): Likewise.
845 (fetch_register): Likewise.
846 (store_register): Likewise.
847 * arm-tdep.c (arm_is_thumb): Likewise.
848 (displaced_in_arm_mode): Likewise.
849 (bx_write_pc): Likewise.
850 (arm_get_next_pcs_addr_bits_remove): Likewise.
851 (arm_software_single_step): Likewise.
852 (arm_extract_return_value): Likewise.
853 (arm_store_return_value): Likewise.
854 (arm_write_pc): Likewise.
855 * bfin-tdep.c (bfin_extract_return_value): Likewise.
856 * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise.
857 (bsd_uthread_store_registers): Likewise.
858 * core-regset.c (fetch_core_registers): Likewise.
859 * corelow.c (get_core_registers): Likewise.
860 * cris-tdep.c (cris_store_return_value): Likewise.
861 (cris_extract_return_value): Likewise.
862 (find_step_target): Likewise.
863 (find_step_target): Likewise.
864 (cris_software_single_step): Likewise.
865 * ctf.c (ctf_fetch_registers): Likewise.
866 * darwin-nat.c (cancel_breakpoint): Likewise.
867 * fbsd-tdep.c (fbsd_collect_thread_registers): Likewise.
868 * frv-tdep.c (frv_extract_return_value): Likewise.
869 * ft32-tdep.c (ft32_store_return_value): Likewise.
870 (ft32_extract_return_value): Likewise.
871 * go32-nat.c (fetch_register): Likewise.
872 (go32_fetch_registers): Likewise.
873 (go32_store_registers): Likewise.
874 (store_register): Likewise.
875 * h8300-tdep.c (h8300_extract_return_value): Likewise.
876 (h8300_store_return_value): Likewise.
877 * hppa-linux-nat.c (fetch_register): Likewise.
878 (store_register): Likewise.
879 (hppa_linux_fetch_inferior_registers): Likewise.
880 (hppa_linux_store_inferior_registers): Likewise.
881 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Likewise.
882 (i386_darwin_store_inferior_registers): Likewise.
883 * i386-gnu-nat.c (gnu_fetch_registers): Likewise.
884 (gnu_store_registers): Likewise.
885 * i386-linux-nat.c (fetch_register): Likewise.
886 (store_register): Likewise.
887 (supply_gregset): Likewise.
888 (fill_gregset): Likewise.
889 (i386_linux_fetch_inferior_registers): Likewise.
890 (i386_linux_store_inferior_registers): Likewise.
891 (i386_linux_resume): Likewise.
892 * i386-linux-tdep.c (i386_linux_get_syscall_number_from_regcache):
893 Likewise.
894 * i386-nto-tdep.c (i386nto_supply_gregset): Likewise.
895 * i386-obsd-nat.c (i386obsd_supply_pcb): Likewise.
896 * i386-obsd-tdep.c (i386obsd_supply_uthread): Likewise.
897 (i386obsd_collect_uthread): Likewise.
898 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
899 (i386_supply_gregset): Likewise.
900 (i386_collect_gregset): Likewise.
901 (i386_supply_fpregset): Likewise.
902 (i386_collect_fpregset): Likewise.
903 (i386_mpx_bd_base): Likewise.
904 * i386-v4-nat.c (supply_fpregset): Likewise.
905 (fill_fpregset): Likewise.
906 * i387-tdep.c (i387_supply_fsave): Likewise.
907 (i387_collect_fsave): Likewise.
908 (i387_supply_fxsave): Likewise.
909 (i387_collect_fxsave): Likewise.
910 (i387_supply_xsave): Likewise.
911 (i387_collect_xsave): Likewise.
912 * ia64-linux-nat.c (ia64_linux_fetch_registers): Likewise.
913 (ia64_linux_store_registers): Likewise.
914 * ia64-tdep.c (ia64_access_rse_reg): Likewise.
915 (ia64_extract_return_value): Likewise.
916 (ia64_store_return_value): Likewise.
917 (find_func_descr): Likewise.
918 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
919 * inf-ptrace.c (inf_ptrace_fetch_registers): Likewise.
920 (inf_ptrace_store_registers): Likewise.
921 * infrun.c (use_displaced_stepping): Likewise.
922 (displaced_step_prepare_throw): Likewise.
923 (resume): Likewise.
924 (proceed): Likewise.
925 (do_target_wait): Likewise.
926 (adjust_pc_after_break): Likewise.
927 (handle_inferior_event_1): Likewise.
928 (handle_signal_stop): Likewise.
929 (save_infcall_suspend_state): Likewise.
930 (restore_infcall_suspend_state): Likewise.
931 * iq2000-tdep.c (iq2000_extract_return_value): Likewise.
932 * jit.c (jit_frame_prev_register): Likewise.
933 * linux-nat.c (save_stop_reason): Likewise.
934 (linux_nat_wait_1): Likewise.
935 (resume_stopped_resumed_lwps): Likewise.
936 * linux-record.c (record_linux_sockaddr): Likewise.
937 (record_linux_msghdr): Likewise.
938 (record_linux_system_call): Likewise.
939 * linux-tdep.c (linux_collect_thread_registers): Likewise.
940 * lm32-tdep.c (lm32_extract_return_value): Likewise.
941 (lm32_store_return_value): Likewise.
942 * m32c-tdep.c (m32c_read_flg): Likewise.
943 (m32c_pseudo_register_read): Likewise.
944 (m32c_pseudo_register_write): Likewise.
945 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Likewise.
946 (m32r_linux_collect_gregset): Likewise.
947 * m32r-tdep.c (m32r_store_return_value): Likewise.
948 (m32r_extract_return_value): Likewise.
949 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
950 (m68kbsd_collect_fpregset): Likewise.
951 * m68k-bsd-tdep.c (m68kbsd_supply_fpregset): Likewise.
952 * m68k-linux-nat.c (fetch_register): Likewise.
953 (old_fetch_inferior_registers): Likewise.
954 (old_store_inferior_registers): Likewise.
955 (store_regs): Likewise.
956 * m68k-tdep.c (m68k_svr4_extract_return_value): Likewise.
957 (m68k_svr4_store_return_value): Likewise.
958 * m88k-tdep.c (m88k_store_arguments): Likewise.
959 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Likewise.
960 (mi_cmd_data_write_register_values): Likewise.
961 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers): Likewise.
962 (mips_fbsd_store_inferior_registers): Likewise.
963 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Likewise.
964 (mips_fbsd_supply_gregs): Likewise.
965 (mips_fbsd_collect_fpregs): Likewise.
966 (mips_fbsd_collect_gregs): Likewise.
967 (mips_fbsd_supply_fpregset): Likewise.
968 (mips_fbsd_collect_fpregset): Likewise.
969 (mips_fbsd_supply_gregset): Likewise.
970 (mips_fbsd_collect_gregset): Likewise.
971 * mips-linux-nat.c (supply_gregset): Likewise.
972 (fill_gregset): Likewise.
973 (supply_fpregset): Likewise.
974 (fill_fpregset): Likewise.
975 * mips-linux-tdep.c (mips_supply_gregset): Likewise.
976 (mips_fill_gregset): Likewise.
977 (mips_supply_fpregset): Likewise.
978 (mips_fill_fpregset): Likewise.
979 (mips64_supply_gregset): Likewise.
980 (micromips_linux_sigframe_validate): Likewise.
981 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise.
982 (mipsnbsd_fetch_inferior_registers): Likewise.
983 (mipsnbsd_store_inferior_registers): Likewise.
984 * mips-nbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise.
985 (mipsnbsd_supply_gregset): Likewise.
986 (mipsnbsd_iterate_over_regset_sections): Likewise.
987 (mipsnbsd_supply_reg): Likewise.
988 (mipsnbsd_supply_fpreg): Likewise.
989 * mips-tdep.c (mips_in_frame_stub): Likewise.
990 (mips_dummy_id): Likewise.
991 (is_octeon_bbit_op): Likewise.
992 (micromips_bc1_pc): Likewise.
993 (extended_mips16_next_pc): Likewise.
994 (mips16_next_pc): Likewise.
995 (deal_with_atomic_sequence): Likewise.
996 * moxie-tdep.c (moxie_process_readu): Likewise.
997 * nios2-tdep.c (nios2_get_next_pc): Likewise.
998 * nto-procfs.c (procfs_store_registers): Likewise.
999 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers): Likewise.
1000 (ppcfbsd_store_inferior_registers): Likewise.
1001 * ppc-linux-nat.c (fetch_vsx_register): Likewise.
1002 (fetch_altivec_register): Likewise.
1003 (get_spe_registers): Likewise.
1004 (fetch_spe_register): Likewise.
1005 (fetch_altivec_registers): Likewise.
1006 (fetch_all_gp_regs): Likewise.
1007 (fetch_all_fp_regs): Likewise.
1008 (store_vsx_register): Likewise.
1009 (store_altivec_register): Likewise.
1010 (set_spe_registers): Likewise.
1011 (store_spe_register): Likewise.
1012 (store_altivec_registers): Likewise.
1013 (store_all_gp_regs): Likewise.
1014 (store_all_fp_regs): Likewise.
1015 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise.
1016 (ppc_linux_collect_gregset): Likewise.
1017 (ppc_canonicalize_syscall): Likewise.
1018 (ppc_linux_record_signal): Likewise.
1019 (ppu2spu_prev_register): Likewise.
1020 * ppc-nbsd-nat.c (ppcnbsd_supply_pcb): Likewise.
1021 * ppc-obsd-nat.c (ppcobsd_fetch_registers): Likewise.
1022 (ppcobsd_store_registers): Likewise.
1023 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_fetch_registers):
1024 Likewise.
1025 (ppc_ravenscar_generic_store_registers): Likewise.
1026 * procfs.c (procfs_fetch_registers): Likewise.
1027 (procfs_store_registers): Likewise.
1028 * ravenscar-thread.c (ravenscar_fetch_registers): Likewise.
1029 (ravenscar_store_registers): Likewise.
1030 (ravenscar_prepare_to_store): Likewise.
1031 * record-btrace.c (record_btrace_fetch_registers): Likewise.
1032 * record-full.c (record_full_wait_1): Likewise.
1033 (record_full_registers_change): Likewise.
1034 (record_full_store_registers): Likewise.
1035 (record_full_core_fetch_registers): Likewise.
1036 (record_full_save): Likewise.
1037 (record_full_goto_insn): Likewise.
1038 * regcache.c (regcache_register_size): Likewise.
1039 (get_regcache_arch): Remove.
1040 (regcache_read_pc): Likewise.
1041 * regcache.h (get_regcache_arch): Remove.
1042 * remote-sim.c (gdbsim_fetch_register): Likewise.
1043 (gdbsim_store_register): Likewise.
1044 * remote.c (fetch_register_using_p): Likewise.
1045 (send_g_packet): Likewise.
1046 (remote_prepare_to_store): Likewise.
1047 (store_registers_using_G): Likewise.
1048 * reverse.c (save_bookmark_command): Likewise.
1049 (goto_bookmark_command): Likewise.
1050 * rs6000-aix-tdep.c (branch_dest): Likewise.
1051 * rs6000-nat.c (rs6000_ptrace64): Likewise.
1052 (fetch_register): Likewise.
1053 * rs6000-tdep.c (ppc_supply_reg): Likewise.
1054 (ppc_collect_reg): Likewise.
1055 (ppc_collect_gregset): Likewise.
1056 (ppc_collect_fpregset): Likewise.
1057 (ppc_collect_vsxregset): Likewise.
1058 (ppc_collect_vrregset): Likewise.
1059 (ppc_displaced_step_hw_singlestep): Likewise.
1060 (rs6000_pseudo_register_read): Likewise.
1061 (rs6000_pseudo_register_write): Likewise.
1062 * s390-linux-nat.c (supply_gregset): Likewise.
1063 (fill_gregset): Likewise.
1064 (s390_linux_fetch_inferior_registers): Likewise.
1065 * s390-linux-tdep.c (s390_write_pc): Likewise.
1066 (s390_software_single_step): Likewise.
1067 (s390_all_but_pc_registers_record): Likewise.
1068 (s390_linux_syscall_record): Likewise.
1069 * sentinel-frame.c (sentinel_frame_prev_arch): Likewise.
1070 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise.
1071 (shnbsd_store_inferior_registers): Likewise.
1072 * sh-tdep.c (sh_extract_return_value_nofpu): Likewise.
1073 (sh_extract_return_value_fpu): Likewise.
1074 (sh_store_return_value_nofpu): Likewise.
1075 (sh_corefile_supply_regset): Likewise.
1076 (sh_corefile_collect_regset): Likewise.
1077 * sh64-tdep.c (sh64_extract_return_value): Likewise.
1078 (sh64_store_return_value): Likewise.
1079 * sparc-linux-tdep.c (sparc32_linux_collect_core_fpregset): Likewise.
1080 * sparc-nat.c (sparc_fetch_inferior_registers): Likewise.
1081 (sparc_store_inferior_registers): Likewise.
1082 * sparc-ravenscar-thread.c (register_in_thread_descriptor_p): Likewise.
1083 (sparc_ravenscar_prepare_to_store): Likewise.
1084 * sparc-tdep.c (sparc32_store_arguments): Likewise.
1085 (sparc_analyze_control_transfer): Likewise.
1086 (sparc_step_trap): Likewise.
1087 (sparc_software_single_step): Likewise.
1088 (sparc32_gdbarch_init): Likewise.
1089 (sparc_supply_rwindow): Likewise.
1090 (sparc_collect_rwindow): Likewise.
1091 * sparc64-linux-tdep.c (sparc64_linux_collect_core_fpregset): Likewise.
1092 * sparc64-nbsd-nat.c (sparc64nbsd_supply_gregset): Likewise.
1093 (sparc64nbsd_collect_gregset): Likewise.
1094 (sparc64nbsd_supply_fpregset): Likewise.
1095 (sparc64nbsd_collect_fpregset): Likewise.
1096 * sparc64-tdep.c (sparc64_store_arguments): Likewise.
1097 (sparc64_supply_gregset): Likewise.
1098 (sparc64_collect_gregset): Likewise.
1099 (sparc64_supply_fpregset): Likewise.
1100 (sparc64_collect_fpregset): Likewise.
1101 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
1102 * spu-tdep.c (spu_unwind_sp): Likewise.
1103 (spu2ppu_prev_register): Likewise.
1104 (spu_memory_remove_breakpoint): Likewise.
1105 * stack.c (return_command): Likewise.
1106 * tic6x-tdep.c (tic6x_extract_signed_field): Likewise.
1107 * tracefile-tfile.c (tfile_fetch_registers): Likewise.
1108 * tracefile.c (trace_save_ctf): Likewise.
1109 * windows-nat.c (do_windows_fetch_inferior_registers): Likewise.
1110 (do_windows_store_inferior_registers): Likewise.
1111 (windows_resume): Likewise.
1112 * xtensa-linux-nat.c (fill_gregset): Likewise.
1113 (supply_gregset_reg): Likewise.
1114 * xtensa-tdep.c (xtensa_register_write_masked): Likewise.
1115 (xtensa_register_read_masked): Likewise.
1116 (xtensa_supply_gregset): Likewise.
1117 (xtensa_extract_return_value): Likewise.
1118 (xtensa_store_return_value): Likewise.
1119
edd079d9
UW
11202017-10-25 Ulrich Weigand <uweigand@de.ibm.com>
1121
1122 * doublest.c (floatformat_from_string): New function.
1123 * doublest.h (floatformat_from_string): Add prototype.
1124
1125 * std-operator.def (OP_DOUBLE, OP_DECFLOAT): Remove, replace by ...
1126 (OP_FLOAT): ... this.
1127 * expression.h: Do not include "doublest.h".
1128 (union exp_element): Replace doubleconst and decfloatconst by
1129 new element floatconst.
1130 * ada-lang.c (resolve_subexp): Handle OP_FLOAT instead of OP_DOUBLE.
1131 (ada_evaluate_subexp): Likewise.
1132 * eval.c (evaluate_subexp_standard): Handle OP_FLOAT instead of
1133 OP_DOUBLE and OP_DECFLOAT.
1134 * expprint.c (print_subexp_standard): Likewise.
1135 (dump_subexp_body_standard): Likewise.
1136 * breakpoint.c (watchpoint_exp_is_const): Likewise.
1137
1138 * parse.c: Include "dfp.h".
1139 (write_exp_elt_dblcst, write_exp_elt_decfloatcst): Remove.
1140 (write_exp_elt_floatcst): New function.
1141 (operator_length_standard): Handle OP_FLOAT instead of OP_DOUBLE
1142 and OP_DECFLOAT.
1143 (operator_check_standard): Likewise.
1144 (parse_float): Do not accept suffix. Take type as input. Return bool.
1145 Return target format buffer instead of host DOUBLEST.
1146 Use floatformat_from_string and decimal_from_string to parse
1147 either binary or decimal floating-point types.
1148 (parse_c_float): Remove.
1149 * parser-defs.h: Do not include "doublest.h".
1150 (write_exp_elt_dblcst, write_exp_elt_decfloatcst): Remove.
1151 (write_exp_elt_floatcst): Add prototype.
1152 (parse_float): Update prototype.
1153 (parse_c_float): Remove.
1154
1155 * c-exp.y: Do not include "dfp.h".
1156 (typed_val_float): Use byte buffer instead of DOUBLEST.
1157 (typed_val_decfloat): Remove.
1158 (DECFLOAT): Remove.
1159 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
1160 (parse_number): Update to new parse_float interface.
1161 Parse suffixes and determine type before calling parse_float.
1162 Handle decimal and binary FP types the same way.
1163
1164 * d-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
1165 (FLOAT_LITERAL): Use OP_FLOAT and write_exp_elt_floatcst.
1166 (parse_number): Update to new parse_float interface.
1167 Parse suffixes and determine type before calling parse_float.
1168
1169 * f-exp.y: Replace dval by typed_val_float.
1170 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
1171 (parse_number): Use parse_float instead of atof.
1172
1173 * go-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
1174 (parse_go_float): Remove.
1175 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
1176 (parse_number): Call parse_float instead of parse_go_float.
1177 Parse suffixes and determine type before calling parse_float.
1178
1179 * p-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
1180 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
1181 (parse_number): Update to new parse_float interface.
1182 Parse suffixes and determine type before calling parse_float.
1183
1184 * m2-exp.y: Replace dval by byte buffer val.
1185 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
1186 (parse_number): Call parse_float instead of atof.
1187
1188 * rust-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
1189 (lex_number): Call parse_float instead of strtod.
1190 (ast_dliteral): Use OP_FLOAT instead of OP_DOUBLE.
1191 (convert_ast_to_expression): Handle OP_FLOAT instead of OP_DOUBLE.
1192 Use write_exp_elt_floatcst.
1193 (unit_testing): Remove static variable.
1194 (rust_type): Do not check unit_testing.
1195 (rust_lex_tests): Do not set uint_testing. Set up dummy rust_parser.
1196
1197 * ada-exp.y (type_float, type_double): Remove.
1198 (typed_val_float): Use byte buffer instead of DOUBLEST.
1199 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
1200 * ada-lex.l (processReal): Use parse_float instead of sscanf.
1201
cc628f3d
AH
12022017-10-25 Alan Hayward <alan.hayward@arm.com>
1203
1204 * aarch64-tdep.h (enum aarch64_regnum): Remove.
1205 * arch/aarch64.h: New file.
1206
09a7c6aa
UW
12072017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1208
1209 * dfp.h (decimal_from_string): Use const reference for argument.
1210 * dfp.c (decimal_from_string): Likewise.
1211
8ba0dd51
UW
12122017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1213
1214 * i387-tdep.c (print_i387_value): Use floatformat_to_string.
1215 * sh64-tdep.c (sh64_do_fp_register): Likewise.
1216 * mips-tdep.c (mips_print_fp_register): Likewise.
1217
16e812b2
UW
12182017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1219
1220 * common/format.h (enum argclass): Replace decfloat_arg by
1221 dec32float_arg, dec64float_arg, and dec128float_arg.
1222 * common/format.c (parse_format_string): Update to return
1223 new decimal float argument classes.
1224
1225 * printcmd.c (printf_decfloat): Rename to ...
1226 (printf_floating): ... this. Add argclass argument, and use it
1227 instead of parsing the format string again. Add support for
1228 binary floating-point values, using floatformat_to_string.
1229 Convert value to the target format if it doesn't already match.
1230 (ui_printf): Call printf_floating instead of printf_decfloat,
1231 also for double_arg / long_double_arg. Pass argclass.
1232
1233 * dfp.c (decimal_to_string): Add format string argument.
1234 * dfp.h (decimal_to_string): Likewise.
1235
1236 * doublest.c (floatformat_to_string): Add format string argument.
1237 * doublest.h (floatformat_to_string): Likewise.
1238
fdf0cbc2
UW
12392017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1240
1241 * doublest.c (floatformat_precision): New routine.
1242 (floatformat_to_string): Likewise.
1243 * doublest.c (floatformat_to_string): Add prototype.
1244
1245 * printcmd.c (print_scalar_formatted): Only call print_floating
1246 on floating-point types.
1247 * valprint.c: Do not include "floatformat.h".
1248 (generic_val_print_decfloat): Remove.
1249 (generic_val_print): Call generic_val_print_float for both
1250 TYPE_CODE_FLT and TYPE_CODE_DECFLOAT.
1251 (print_floating): Use floatformat_to_string. Handle decimal float.
1252 (print_decimal_floating): Remove, merge into floatformat_to_string.
1253 * value.h (print_decimal_floating): Remove.
1254
1255 * Makefile.in: Do not build doublest.c with -Wformat-nonliteral.
1256
5033013f
UW
12572017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1258
1259 * buildsym.c (end_symtab_get_static_block): Use std::stable_sort.
1260
a664f67e
SM
12612017-10-21 Simon Marchi <simon.marchi@ericsson.com>
1262
1263 * memattr.h: Don't include vec.h.
1264 (struct mem_attrib): Initialize fields.
1265 <unknown>: New static method.
1266 (struct mem_region): Add constructors, operator<, initialize
1267 fields.
1268 * memattr.c: Include algorithm.
1269 (default_mem_attrib, unknown_mem_attrib): Remove.
1270 (user_mem_region_list): New global.
1271 (target_mem_region_list, mem_region_list): Change type to
1272 std::vector<mem_region>.
1273 (mem_use_target): Now a function.
1274 (target_mem_regions_valid): Change type to bool.
1275 (mem_region_lessthan, mem_region_cmp, mem_region_init): Remove.
1276 (require_user_regions): Adjust.
1277 (require_target_regions): Adjust.
1278 (create_mem_region): Adjust.
1279 (lookup_mem_region): Adjust.
1280 (invalidate_target_mem_regions): Adjust.
1281 (mem_clear): Rename to...
1282 (user_mem_clear): ... this, and adjust.
1283 (mem_command): Adjust.
1284 (info_mem_command): Adjust.
1285 (mem_enable, enable_mem_command, mem_disable,
1286 disable_mem_command): Adjust.
1287 (mem_delete): Adjust.
1288 (delete_mem_command): Adjust.
1289 * memory-map.h (parse_memory_map): Return an std::vector.
1290 * memory-map.c (parse_memory_map): Likewise.
1291 (struct memory_map_parsing_data): Add constructor.
1292 <memory_map>: Point to std::vector.
1293 (memory_map_start_memory): Adjust.
1294 (memory_map_end_memory): Adjust.
1295 (memory_map_end_property): Adjust.
1296 (clear_result): Remove.
1297 * remote.c (remote_memory_map): Return an std::vector.
1298 * target-debug.h (target_debug_print_VEC_mem_region_s__p):
1299 Remove.
1300 (target_debug_print_mem_region_vector): New.
1301 * target-delegates.c: Regenerate.
1302 * target.h (mem_region_vector): New typedef.
1303 (to_memory_map): Return mem_region_vector.
1304 (target_memory_map): Return an std::vector.
1305 * target.c (target_memory_map): Return an std::vector.
1306 (flash_erase_command): Adjust.
1307
6e17c565
SM
13082017-10-21 Simon Marchi <simon.marchi@ericsson.com>
1309
1310 * memory-map.c (struct memory_map_parsing_data) <property_name>:
1311 Change type to std::string.
1312 (memory_map_start_property): Adjust.
1313 (memory_map_end_property): Adjust.
1314
cfba9872
SM
13152017-10-21 Simon Marchi <simon.marchi@polymtl.ca>
1316
1317 * infrun.h: Include common/byte-vector.h.
1318 (struct displaced_step_closure): New struct.
1319 (struct buf_displaced_step_closure): New struct.
1320 * infrun.c (displaced_step_closure::~displaced_step_closure):
1321 Provide default implementation.
1322 (displaced_step_clear): Deallocate step closure with delete.
1323 * aarch64-tdep.c (displaced_step_closure): Rename to ...
1324 (aarch64_displaced_step_closure): ... this, extend
1325 displaced_step_closure.
1326 (aarch64_displaced_step_data) <dsc>: Change type to
1327 aarch64_displaced_step_closure.
1328 (aarch64_displaced_step_copy_insn): Adjust to type change, use
1329 unique_ptr.
1330 (aarch64_displaced_step_fixup): Add cast for displaced step
1331 closure.
1332 * amd64-tdep.c (displaced_step_closure): Rename to ...
1333 (amd64_displaced_step_closure): ... this, extend
1334 displaced_step_closure.
1335 <insn_buf>: Change type to std::vector<gdb_byte>.
1336 <max_len>: Remove.
1337 (fixup_riprel): Change type of DSC parameter, adjust to type
1338 change of insn_buf.
1339 (fixup_displaced_copy): Change type of DSC parameter.
1340 (amd64_displaced_step_copy_insn): Instantiate
1341 amd64_displaced_step_closure.
1342 (amd64_displaced_step_fixup): Add cast for closure type, adjust
1343 to type change of insn_buf.
1344 * arm-linux-tdep.c (arm_linux_cleanup_svc): Change type of
1345 parameter DSC.
1346 (arm_linux_copy_svc): Likewise.
1347 (cleanup_kernel_helper_return): Likewise.
1348 (arm_catch_kernel_helper_return): Likewise.
1349 (arm_linux_displaced_step_copy_insn): Instantiate
1350 arm_displaced_step_closure.
1351 * arm-tdep.c (arm_pc_is_thumb): Add cast for closure.
1352 (displaced_read_reg): Change type of parameter DSC.
1353 (branch_write_pc): Likewise.
1354 (load_write_pc): Likewise.
1355 (alu_write_pc): Likewise.
1356 (displaced_write_reg): Likewise.
1357 (arm_copy_unmodified): Likewise.
1358 (thumb_copy_unmodified_32bit): Likewise.
1359 (thumb_copy_unmodified_16bit): Likewise.
1360 (cleanup_preload): Likewise.
1361 (install_preload): Likewise.
1362 (arm_copy_preload): Likewise.
1363 (thumb2_copy_preload): Likewise.
1364 (install_preload_reg): Likewise.
1365 (arm_copy_preload_reg): Likewise.
1366 (cleanup_copro_load_store): Likewise.
1367 (install_copro_load_store): Likewise.
1368 (arm_copy_copro_load_store) Likewise.
1369 (thumb2_copy_copro_load_store): Likewise.
1370 (cleanup_branch): Likewise.
1371 (install_b_bl_blx): Likewise.
1372 (arm_copy_b_bl_blx): Likewise.
1373 (thumb2_copy_b_bl_blx): Likewise.
1374 (thumb_copy_b): Likewise.
1375 (install_bx_blx_reg): Likewise.
1376 (arm_copy_bx_blx_reg): Likewise.
1377 (thumb_copy_bx_blx_reg): Likewise.
1378 (cleanup_alu_imm): Likewise.
1379 (arm_copy_alu_imm): Likewise.
1380 (thumb2_copy_alu_imm): Likewise.
1381 (cleanup_alu_reg): Likewise.
1382 (install_alu_reg): Likewise.
1383 (arm_copy_alu_reg): Likewise.
1384 (thumb_copy_alu_reg): Likewise.
1385 (cleanup_alu_shifted_reg): Likewise.
1386 (install_alu_shifted_reg): Likewise.
1387 (arm_copy_alu_shifted_reg): Likewise.
1388 (cleanup_load): Likewise.
1389 (cleanup_store): Likewise.
1390 (arm_copy_extra_ld_st): Likewise.
1391 (install_load_store): Likewise.
1392 (thumb2_copy_load_literal): Likewise.
1393 (thumb2_copy_load_reg_imm): Likewise.
1394 (arm_copy_ldr_str_ldrb_strb): Likewise.
1395 (cleanup_block_load_all): Likewise.
1396 (cleanup_block_store_pc): Likewise.
1397 (cleanup_block_load_pc): Likewise.
1398 (arm_copy_block_xfer): Likewise.
1399 (thumb2_copy_block_xfer): Likewise.
1400 (cleanup_svc): Likewise.
1401 (install_svc): Likewise.
1402 (arm_copy_svc): Likewise.
1403 (thumb_copy_svc): Likewise.
1404 (arm_copy_undef): Likewise.
1405 (thumb_32bit_copy_undef): Likewise.
1406 (arm_copy_unpred): Likewise.
1407 (arm_decode_misc_memhint_neon): Likewise.
1408 (arm_decode_unconditional): Likewise.
1409 (arm_decode_miscellaneous): Likewise.
1410 (arm_decode_dp_misc): Likewise.
1411 (arm_decode_ld_st_word_ubyte): Likewise.
1412 (arm_decode_media): Likewise.
1413 (arm_decode_b_bl_ldmstm): Likewise.
1414 (arm_decode_ext_reg_ld_st): Likewise.
1415 (thumb2_decode_dp_shift_reg): Likewise.
1416 (thumb2_decode_ext_reg_ld_st): Likewise.
1417 (arm_decode_svc_copro): Likewise.
1418 (thumb2_decode_svc_copro): Likewise.
1419 (install_pc_relative): Likewise.
1420 (thumb_copy_pc_relative_16bit): Likewise.
1421 (thumb_decode_pc_relative_16bit): Likewise.
1422 (thumb_copy_pc_relative_32bit): Likewise.
1423 (thumb_copy_16bit_ldr_literal): Likewise.
1424 (thumb_copy_cbnz_cbz): Likewise.
1425 (thumb2_copy_table_branch): Likewise.
1426 (cleanup_pop_pc_16bit_all): Likewise.
1427 (thumb_copy_pop_pc_16bit): Likewise.
1428 (thumb_process_displaced_16bit_insn): Likewise.
1429 (decode_thumb_32bit_ld_mem_hints): Likewise.
1430 (thumb_process_displaced_32bit_insn): Likewise.
1431 (thumb_process_displaced_insn): Likewise.
1432 (arm_process_displaced_insn): Likewise.
1433 (arm_displaced_init_closure): Likewise.
1434 (arm_displaced_step_fixup): Add cast for closure.
1435 * arm-tdep.h: Include infrun.h.
1436 (displaced_step_closure): Rename to ...
1437 (arm_displaced_step_closure): ... this, extend
1438 displaced_step_closure.
1439 <u::svc::copy_svc_os>: Change type of parameter DSC.
1440 <cleanup>: Likewise.
1441 (arm_process_displaced_insn): Likewise.
1442 (arm_displaced_init_closure): Likewise.
1443 (displaced_read_reg): Likewise.
1444 (displaced_write_reg): Likewise.
1445 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn):
1446 Adjust.
1447 * i386-tdep.h: Include infrun.h.
1448 (i386_displaced_step_closure): New typedef.
1449 * i386-tdep.c (i386_displaced_step_copy_insn): Use
1450 i386_displaced_step_closure.
1451 (i386_displaced_step_fixup): Adjust.
1452 * rs6000-tdep.c (ppc_displaced_step_closure): New typedef.
1453 (ppc_displaced_step_copy_insn): Use ppc_displaced_step_closure
1454 and unique_ptr.
1455 (ppc_displaced_step_fixup): Adjust.
1456 * s390-linux-tdep.c (s390_displaced_step_closure): New typedef.
1457 (s390_displaced_step_copy_insn): Use s390_displaced_step_closure
1458 and unique_ptr.
1459 (s390_displaced_step_fixup): Adjust.
1460
b392b304
SM
14612017-10-21 Simon Marchi <simon.marchi@polymtl.ca>
1462
1463 * interps.h (interp_resume, interp_suspend, interp_set_temp):
1464 Remove declarations.
1465
d5833c62
TT
14662017-10-20 Tom Tromey <tom@tromey.com>
1467
1468 * gdb_bfd.c (struct gdb_bfd_data) <included_bfds>: Now a
1469 std::vector.
1470 (gdb_bfd_record_inclusion): Update.
1471 (bfdp): Remove typedef.
1472
06d5bbc8
TT
14732017-10-20 Tom Tromey <tom@tromey.com>
1474
1475 * gdb_bfd.c (gdb_bfd_ref): Use new.
1476 (struct gdb_bfd_data): Add constructor, destructor, and member
1477 initializers.
1478 (gdb_bfd_unref): Use delete.
1479
2712ce2e
TT
14802017-10-20 Tom Tromey <tom@tromey.com>
1481
1482 * exec.c (exec_file_attach): Use new_bfd_ref.
1483 * symfile-mem.c (symbol_file_add_from_memory): Use new_bfd_ref.
1484 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
1485 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_fdopenr): Use
1486 new_bfd_ref.
1487 * gdb_bfd.h (new_bfd_ref): New function.
1488
fcc8fb2f
PA
14892017-10-20 Pedro Alves <palves@redhat.com>
1490
1491 * main.c (captured_command_loop): Add attribute noinline.
1492
4c2287b0
SM
14932017-10-19 Simon Marchi <simon.marchi@ericsson.com>
1494
1495 * interps.c (struct interp_factory): Add constructor.
1496 (interp_factory_p): Remove typedef.
1497 (DEF_VEC_P(interp_factory_p)): Remove.
1498 (interpreter_factories): Change type to std::vector.
1499 (interp_factory_register): Adjust.
1500 (interp_lookup): Adjust.
1501 (interpreter_completer): Adjust.
1502
3d415c26
TT
15032017-10-19 Tom Tromey <tom@tromey.com>
1504
1505 * break-catch-syscall.c (catch_syscall_completer): Use
1506 std::string, gdb::unique_xmalloc_ptr.
1507
395423c4
TT
15082017-10-19 Tom Tromey <tom@tromey.com>
1509
1510 * infcall.c (call_function_by_hand_dummy): Use std::string.
1511
54f70bc1
TT
15122017-10-19 Tom Tromey <tom@tromey.com>
1513
1514 * mi/mi-main.c (mi_cmd_execute): Update.
1515 * top.h (prepare_execute_command): Return scoped_value_mark.
1516 * value.h (class scoped_value_mark): Use DISABLE_COPY_AND_ASSIGN.
1517 Add move constructor.
1518 * top.c (prepare_execute_command): Return scoped_value_mark.
1519 (execute_command): Update.
1520
63929e84
PA
15212017-10-19 Pedro Alves <palves@redhat.com>
1522
1523 * xml-support.c (xml_fetch_content_from_file): Check fread's
1524 return.
1525
a75868f5
PA
15262017-10-19 Pedro Alves <palves@redhat.com>
1527
1528 * ser-base.c (ser_base_read_error_fd): Delete the file handler if
1529 async.
1530 (handle_error_fd): New function.
1531 (ser_base_async): Add/delete an event loop file handler for
1532 error_fd.
1533
2edf834e
PA
15342017-10-19 Pedro Alves <palves@redhat.com>
1535
1536 * xml-support.c (xml_fetch_content_from_file): Don't read in
1537 chunks. Instead use fseek to determine the file's size, and read
1538 it in one go.
1539
c8ba13ad
KS
15402017-11-18 Keith Seitz <keiths@redhat.com>
1541
1542 * c-exp.y (oper): Canonicalize conversion operators of user-defined
1543 types.
1544 Add whitespace to front of type name.
1545
37534686
KS
15462017-10-18 Keith Seitz <keiths@redhat.com>
1547
1548 * dwarf2read.c (dwarf2_add_typedef): Issue a complaint on unhandled
1549 DW_AT_accessibility.
1550
28c7c158
YQ
15512017-10-18 Yao Qi <yao.qi@linaro.org>
1552
1553 * features/tic6x-c62x-linux.c: Remove.
1554
30f0b101
TT
15552017-10-17 Tom Tromey <tom@tromey.com>
1556
1557 * disasm.c (do_mixed_source_and_assembly_deprecated): Use
1558 gdb::optional, ui_out_emit_list, ui_out_emit_tuple.
1559 (do_mixed_source_and_assembly): Likewise.
1560
57e12da9
TT
15612017-10-17 Tom Tromey <tom@tromey.com>
1562
1563 * regcache.c (regcache::xfer_part): Remove assertion.
1564
7b700999
PA
15652017-10-17 Pedro Alves <palves@redhat.com>
1566
1567 * xml-support.c (xml_fetch_content_from_file): Call
1568 unique_ptr::release() instead unique_ptr::get() when passing
1569 through xrealloc.
1570
d3037ba6
YQ
15712017-10-17 Yao Qi <yao.qi@linaro.org>
1572
1573 * regcache.c (regcache::xfer_part): Remove parameters read and
1574 write, add parameter is_raw. All callers are updated.
1575
83d5a34d
KS
15762017-10-16 Keith Seitz <keiths@redhat.com>
1577
1578 * c-typeprint.c (enum access_specifier): Moved here from
1579 c_type_print_base.
1580 (output_access_specifier): New function.
1581 (c_type_print_base): Consider typedefs when assessing
1582 whether access labels are needed.
1583 Use output_access_specifier as needed.
1584 Output access specifier for typedefs, if needed.
1585 * dwarf2read.c (dwarf2_add_typedef): Record DW_AT_accessibility.
1586 * gdbtypes.h (struct typedef_field) <is_protected, is_private>: New
1587 fields.
1588 (TYPE_TYPEDEF_FIELD_PROTECTED, TYPE_TYPEDEF_FIELD_PRIVATE): New
1589 accessor macros.
1590
87028b87
TT
15912017-10-16 Tom Tromey <tom@tromey.com>
1592
1593 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full)
1594 (linux_fill_prpsinfo, linux_vsyscall_range_raw): Update.
1595 * target.c (target_fileio_read_stralloc): Update.
1596 * sparc64-tdep.c (adi_is_addr_mapped): Update.
1597 * target.h (target_fileio_read_stralloc): Return
1598 unique_xmalloc_ptr.
1599
b7b030ad
TT
16002017-10-16 Tom Tromey <tom@tromey.com>
1601
1602 * xml-syscall.c (xml_init_syscalls_info): Update.
1603 * xml-support.c (xinclude_start_include): Update.
1604 (xml_fetch_content_from_file): Return unique_xmalloc_ptr.
1605 * xml-support.h (xml_fetch_another): Return unique_xmalloc_ptr.
1606 (xml_fetch_content_from_file): Likewise.
1607 * osdata.c (get_osdata): Update.
1608 * target.h (target_read_stralloc, target_get_osdata): Return
1609 unique_xmalloc_ptr.
1610 * solib-aix.c (solib_aix_get_library_list): Update.
1611 * solib-target.c (solib_target_current_sos): Update.
1612 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Update.
1613 * xml-tdesc.c (fetch_available_features_from_target): Update.
1614 (target_fetch_description_xml): Update.
1615 (file_read_description_xml): Update.
1616 * remote.c (remote_get_threads_with_qxfer, remote_memory_map)
1617 (remote_traceframe_info, btrace_read_config, remote_read_btrace)
1618 (remote_pid_to_exec_file): Update.
1619 * target.c (target_read_stralloc): Return unique_xmalloc_ptr.
1620 (target_get_osdata): Likewise.
1621
b80406ac
TT
16222017-10-16 Tom Tromey <tom@tromey.com>
1623
1624 * remote.c (remote_register_number_and_offset): Use std::vector.
1625 (remote_set_syscall_catchpoint): Use gdb::unique_xmalloc_ptr.
1626 (putpkt_binary): Use gdb::def_vector.
1627 (compare_sections_command): Use gdb::byte_vector.
1628
a90ecff8
TT
16292017-10-16 Tom Tromey <tom@tromey.com>
1630
1631 * ppc-linux-nat.c (hwdebug_insert_point): Use
1632 gdb::unique_xmalloc_ptr, XDUP.
1633
2dc0e219
TT
16342017-10-16 Tom Tromey <tom@tromey.com>
1635
1636 * probe.c (parse_probes): Use std::string.
1637 (info_probes_for_ops, enable_probes_command)
1638 (disable_probes_command): Remove cleanups.
1639
b05628f0
TT
16402017-10-16 Tom Tromey <tom@tromey.com>
1641
1642 * buildsym.c (block_compar): Remove.
1643 (end_symtab_get_static_block): Use std::vector.
1644
a79b1bc6
SM
16452017-10-16 Simon Marchi <simon.marchi@ericsson.com>
1646
1647 * memrange.h (struct mem_range): Define operator< and operator==.
1648 (mem_range_s): Remove.
1649 (DEF_VEC_O (mem_range_s)): Remove.
1650 (normalize_mem_ranges): Change parameter type to std::vector.
1651 * memrange.c (compare_mem_ranges): Remove.
1652 (normalize_mem_ranges): Change parameter type to std::vector,
1653 adjust to vector change.
1654 * exec.c (section_table_available_memory): Return vector, remove
1655 parameter.
1656 (section_table_read_available_memory): Adjust to std::vector
1657 change.
1658 * remote.c (remote_read_bytes): Adjust to std::vector
1659 change.
1660 * tracepoint.h (traceframe_available_memory): Change parameter
1661 type to std::vector.
1662 * tracepoint.c (traceframe_available_memory): Change parameter
1663 type to std::vector, adjust.
1664 * gdb/mi/mi-main.c (mi_cmd_trace_frame_collected): Adjust to
1665 std::vector change.
1666 * gdb/Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1667 unittests/memrange-selftests.c.
1668 (SUBDIR_UNITTESTS_OBS): Add memrange-selftests.o.
1669 * gdb/unittests/memrange-selftests.c: New file.
1670
63f0e930
PA
16712017-10-16 Pedro Alves <palves@redhat.com>
1672
1673 * elfread.c (probe_key_free): Rename range-for variable.
1674 * probe.c (parse_probes_in_pspace, find_probes_in_objfile)
1675 (find_probe_by_pc, collect_probes): Rename range-for variable.
1676
c40c7bfc
YQ
16772017-10-16 Yao Qi <yao.qi@linaro.org>
1678
1679 * features/Makefile (XMLTOC): Remove tic6x-*.xml.
1680 * features/tic6x-c62x.c: Remove.
1681 * features/tic6x-c64x-linux.c: Remove.
1682 * features/tic6x-c64x.c: Remove.
1683 * features/tic6x-c64xp-linux.c: Remove.
1684 * features/tic6x-c64xp.c: Remove.
1685 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Don't call
1686 initialize_tdesc_tic6x_*_linux functions.
1687 * tic6x-tdep.c (_initialize_tic6x_tdep): Don't call
1688 initialize_tdesc_tic6x_* functions.
1689
df27ae6a
YQ
16902017-10-16 Yao Qi <yao.qi@linaro.org>
1691
1692 * features/Makefile (WHICH): Remove tic6x-c64xp, tic6x-c64x
1693 tic6x-c62x.
1694 * regformats/tic6x-c62x.dat: Remove.
1695 * regformats/tic6x-c64x.dat: Remove.
1696 * regformats/tic6x-c64xp.dat: Remove.
1697
86766165
SM
16982017-10-15 Simon Marchi <simon.marchi@ericsson.com>
1699
1700 * tracepoint.c (parse_traceframe_info): Return a unique_ptr
1701 (the !HAVE_LIBEXPAT version).
1702
824dfcc3
SM
17032017-10-14 Simon Marchi <simon.marchi@ericsson.com>
1704
1705 * nat/linux-osdata.c (struct pid_pgid_entry) <operator<>: Make
1706 const.
1707
2098b393
SM
17082017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1709
1710 * target.h: Include tracepoint.h.
1711 (enum trace_find_type): Move to tracepoint.h.
1712 (struct target_ops) <to_traceframe_info>: Return a unique ptr.
1713 * tracepoint.h: Don't include target.h
1714 (enum trace_find_type): Move from target.h.
1715 (parse_traceframe_info): Return a unique ptr.
1716 * tracepoint.c (current_traceframe_info): Change type to unique
1717 ptr.
1718 (free_traceframe_info): Remove.
1719 (clear_traceframe_info): Don't manually free
1720 current_traceframe_info.
1721 (free_result): Remove.
1722 (parse_traceframe_info): Return a unique ptr.
1723 (get_traceframe_info): Adjust to unique ptr.
1724 * ctf.c (ctf_traceframe_info): Return a unique ptr.
1725 * remote.c (remote_traceframe_info): Return a unique ptr.
1726 * tracefile-tfile.c (tfile_traceframe_info): Return a unique
1727 ptr.
1728 * target-debug.h (target_debug_print_traceframe_info_up): New
1729 macro.
1730 * target-delegates.c: Regenerate.
1731
4cdd21a8
SM
17322017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1733
1734 * memrange.h (struct mem_range): Add constructors.
1735 * tracepoint.h (struct traceframe_info) <memory>: Change type to
1736 std::vector<mem_range>.
1737 * tracepoint.c (free_traceframe_info): Don't manually free
1738 vector.
1739 (traceframe_info_start_memory): Adjust to vector change.
1740 (traceframe_available_memory): Likewise.
1741 * tracefile-tfile.c (build_traceframe_info): Likewise.
1742 * ctf.c (ctf_traceframe_info): Likewise.
1743
d0d292a2
SM
17442017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1745
1746 * tracepoint.h (struct traceframe_info) <tvars>: Change type to
1747 std::vector<int>.
1748 * tracepoint.c (free_traceframe_info): Deallocate with delete.
1749 (traceframe_info_start_tvar): Adjust to vector change.
1750 (parse_traceframe_info): Allocate with new.
1751 * ctf.c (ctf_traceframe_info): Allocate with new, adjust to
1752 vector change.
1753 * tracefile-tfile.c (build_traceframe_info): Adjust to vector
1754 change.
1755 tfile_traceframe_info): Allocate with new.
1756 * mi/mi-main.c (mi_cmd_trace_frame_collected): Adjust to vector
1757 change.
1758
8d3c73ef
SM
17592017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1760
1761 * tracepoint.c (traceframe_info): Rename to...
1762 (current_traceframe_info): ...this.
1763 (clear_traceframe_info): Adjust.
1764 (get_traceframe_info): Adjust.
1765
b129dcac
SM
17662017-10-14 Simon Marchi <simon.marchi@ericsson.com>
1767
1768 * nat/linux-osdata.c: Include algorithm.
1769 (compare_processes): Remove.
1770 (struct pid_pgid_entry): New struct.
1771 (linux_xfer_osdata_processgroups): Use std::vector instead of
1772 XNEWVEC.
1773
af5bf4ad
SM
17742017-10-14 Simon Marchi <simon.marchi@ericsson.com>
1775
1776 * objfiles.h: Don't include symfile.h.
1777 (struct partial_symbol): Remove forward-declaration.
1778 (struct objfile) <global_psymbols, static_psymbols>: Change type
1779 to std::vector<partial_symbol *>.
1780 * objfiles.c (objfile::objfile): Don't memset those fields.
1781 (objfile::~objfile): Don't free those fields.
1782 * psympriv.h (struct psymbol_allocation_list): Remove
1783 forward-declaration.
1784 (add_psymbol_to_list): Change psymbol_allocation_list parameter
1785 to std::vector.
1786 (start_psymtab_common): Change parameters to std::vector.
1787 * psymtab.c: Include algorithm.
1788 (require_partial_symbols): Call shrink_to_fit.
1789 (find_pc_sect_psymbol): Adjust to vector change.
1790 (match_partial_symbol): Likewise.
1791 (lookup_partial_symbol): Likewise.
1792 (psym_relocate): Likewise.
1793 (dump_psymtab): Likewise.
1794 (recursively_search_psymtabs): Likewise.
1795 (compare_psymbols): Remove.
1796 (sort_pst_symbols): Adjust to vector change.
1797 (start_psymtab_common): Likewise.
1798 (end_psymtab_common): Likewise.
1799 (psymbol_bcache_full): De-constify return value.
1800 (add_psymbol_to_bcache): Likewise.
1801 (extend_psymbol_list): Remove.
1802 (append_psymbol_to_list): Adjust to vector change.
1803 (add_psymbol_to_list): Likewise.
1804 (init_psymbol_list): Likewise.
1805 (maintenance_info_psymtabs): Likewise.
1806 (maintenance_check_psymtabs): Likewise.
1807 * symfile.h (struct psymbol_allocation_list): Remove.
1808 * symfile.c (reread_symbols): Adjust to vector change.
1809 * dbxread.c (start_psymtab): Change type of parameters.
1810 (dbx_symfile_read): Adjust to vector change.
1811 (read_dbx_symtab): Likewise.
1812 (start_psymtab): Change type of parameters.
1813 * dwarf2read.c (dwarf2_build_psymtabs): Adjust to vector change.
1814 (create_partial_symtab): Likewise.
1815 (add_partial_symbol): Likewise.
1816 (write_one_signatured_type): Likewise.
1817 (recursively_write_psymbols): Likewise.
1818 * mdebugread.c (parse_partial_symbols): Likewise.
1819 * xcoffread.c (xcoff_start_psymtab): Change type of parameters.
1820 (scan_xcoff_symtab): Adjust to vector change.
1821 (xcoff_initial_scan): Likewise.
1822
3ec5942f
SM
18232017-10-13 Simon Marchi <simon.marchi@ericsson.com>
1824
1825 * ada-typeprint.c (print_dynamic_range_bound): Use std::string.
1826
2399fe6a
YQ
18272017-10-13 Yao Qi <yao.qi@linaro.org>
1828
1829 * features/Makefile: Remove tic6x-*-expedite, add tic6x-expedite.
1830 Remove s390x-*-expedite, add s390x-expedite.
1831
4bf3f4a8
YQ
18322017-10-13 Yao Qi <yao.qi@linaro.org>
1833
1834 * features/s390-gs-linux64.c: Regenerated.
1835 * features/s390x-gs-linux64.c: Regenerated.
1836
9e86da07
TT
18372017-10-13 Tom Tromey <tom@tromey.com>
1838
1839 * compile/compile-object-run.c (do_module_cleanup): Use delete.
1840 * solib.c (update_solib_list, reload_shared_libraries_1): Use
1841 delete.
1842 * symfile.c (symbol_file_add_with_addrs): Use new.
1843 (symbol_file_add_separate): Update comment.
1844 (syms_from_objfile_1, remove_symbol_file_command): Use delete.
1845 * jit.c (jit_object_close_impl): Use new.
1846 (jit_unregister_code): Use delete.
1847 * objfiles.c (objfile::objfile): Rename from allocate_objfile.
1848 (~objfile): Rename from free_objfile.
1849 (free_objfile_separate_debug, do_free_objfile_cleanup)
1850 (free_all_objfiles, objfile_purge_solibs): Use delete.
1851 * objfiles.h (struct objfile): Add constructor and destructor.
1852 Use DISABLE_COPY_AND_ASSIGN. Add initializers to data members.
1853 (allocate_objfile, free_objfile): Don't declare.
1854 (struct objstats): Add initializers.
1855
c2508e90
SM
18562017-10-12 Simon Marchi <simon.marchi@ericsson.com>
1857
1858 * arch-utils.h (simple_displaced_step_copy_insn): Remove.
1859 * arch-utils.c (simple_displaced_step_copy_insn): Remove.
1860 * gdbarch.sh (displaced_step_copy_insn): Adjust comment.
1861 * gdbarch.h: Regenerate.
1862 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn):
1863 Adjust comment.
1864 * i386-tdep.c (i386_displaced_step_copy_insn): Adjust comment.
1865 (i386_displaced_step_fixup): Adjust comment.
1866 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Adjust comment.
1867
a900ff72
TT
18682017-10-12 Tom Tromey <tom@tromey.com>
1869
1870 * prologue-value.h (pv_area::store_would_trash): Return bool.
1871 (pv_area::find_reg): Likewise.
1872 * prologue-value.c (pv_area::store_would_trash): Return bool.
1873 (pv_area::find_reg): Likewise.
1874
f7b7ed97
TT
18752017-10-12 Tom Tromey <tom@tromey.com>
1876
1877 * s390-linux-tdep.c (s390_store, s390_load)
1878 (s390_check_for_saved, s390_analyze_prologue): Update.
1879 * rx-tdep.c (check_for_saved, rx_analyze_prologue): Update.
1880 * rl78-tdep.c (rl78_analyze_prologue, check_for_saved): Update.
1881 * prologue-value.h (class pv_area): Move from prologue-value.c.
1882 Change names of members. Add constructor, destructor, member
1883 functions.
1884 (make_pv_area, free_pv_area, make_cleanup_free_pv_area)
1885 (pv_area_store, pv_area_fetch, pv_area_store_would_trash)
1886 (pv_area_fetch, pv_area_scan): Don't declare.
1887 * prologue-value.c (struct pv_area::area_entry): Now member of
1888 pv_area.
1889 (struct pv_area): Move to prologue-value.h.
1890 (pv_area::pv_area): Rename from make_pv_area.
1891 (pv_area::~pv_area): Rename from free_pv_area.
1892 (do_free_pv_area_cleanup, make_cleanup_free_pv_area): Remove.
1893 (clear_entries, find_entry, overlaps, store_would_trash, store)
1894 (fetch, find_reg, scan): Now member of pv_area.
1895 Remove "area" argument. Update.
1896 * msp430-tdep.c (check_for_saved, msp430_analyze_prologue):
1897 Update.
1898 * mn10300-tdep.c (push_reg, check_for_saved)
1899 (mn10300_analyze_prologue): Update.
1900 * mep-tdep.c (is_arg_spill, check_for_saved)
1901 (mep_analyze_prologue): Update.
1902 * m32c-tdep.c (m32c_pv_push, m32c_srcdest_fetch)
1903 (m32c_srcdest_store, m32c_pv_enter, m32c_is_arg_spill)
1904 (m32c_is_struct_return, m32c_analyze_prologue): Update.
1905 * arm-tdep.c (thumb_analyze_prologue, arm_analyze_prologue):
1906 Update.
1907 * arc-tdep.c (arc_is_in_prologue, arc_analyze_prologue): Update.
1908 * aarch64-tdep.c (aarch64_analyze_prologue): Update.
1909
466eecee
SM
19102017-10-12 Simon Marchi <simon.marchi@ericsson.com>
1911
1912 * linux-nat.h (linux_nat_set_delete_thread): New declaration.
1913 * linux-nat.c (linux_nat_delete_thread): New variable.
1914 (lwp_free): Invoke linux_nat_delete_thread if set.
1915 (linux_nat_set_delete_thread): New function.
1916 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Assign
1917 thread delete callback.
1918 * arm-linux-nat.c (arm_linux_delete_thread): New function.
1919 (_initialize_arm_linux_nat): Assign thread delete callback.
1920 * s390-linux-nat.c (s390_delete_thread): New function.
1921 (_initialize_s390_nat): Assign thread delete callback.
1922 * x86-linux-nat.c (x86_linux_add_target): Likewise.
1923 * nat/aarch64-linux.c (aarch64_linux_delete_thread): New
1924 function.
1925 * nat/aarch64-linux.h (aarch64_linux_delete_thread): New
1926 declaration.
1927 * nat/x86-linux.c (x86_linux_delete_thread): New function.
1928 * nat/x86-linux.h (x86_linux_delete_thread): New declaration.
1929
f71c8822
TT
19302017-10-09 Tom Tromey <tom@tromey.com>
1931
1932 * tui/tui-win.c (tui_set_win_height, parse_scrolling_args): Use
1933 std::string.
1934 * tui/tui-layout.c (enum tui_status): Use std::string.
1935
981a3fb3
TT
19362017-10-11 Tom Tromey <tom@tromey.com>
1937
1938 * gdbthread.h (thread_command): Constify.
1939 * inferior.h (detach_command): Constify.
1940 * top.h (set_history, show_history): Constify.
1941 * arm-tdep.c (set_arm_command, show_arm_command): Constify.
1942 * serial.c (serial_set_cmd, serial_show_cmd): Constify.
1943 * bsd-kvm.c (bsd_kvm_cmd): Constify.
1944 * printcmd.c (set_command): Constify.
1945 (non_const_set_command): New function.
1946 * dcache.c (set_dcache_command, show_dcache_command): Constify.
1947 * breakpoint.c (enable_command, disable_command, delete_command)
1948 (catch_command, tcatch_command, set_breakpoint_cmd)
1949 (show_breakpoint_cmd): Constify.
1950 * macrocmd.c (macro_command): Constify.
1951 * infcmd.c (unset_command, kill_command, detach_command)
1952 (info_proc_cmd): Constify.
1953 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Constify.
1954 * auto-load.c (show_auto_load_cmd, set_auto_load_cmd)
1955 (info_auto_load_cmd): Constify.
1956 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
1957 (unset_tdesc_cmd): Constify.
1958 * ada-lang.c (set_ada_command, show_ada_command)
1959 (maint_set_ada_cmd, maint_show_ada_cmd): Constify.
1960 * guile/guile.c (set_guile_command, show_guile_command)
1961 (info_guile_command): Constify.
1962 * tui/tui-win.c (tui_command, set_tui_cmd, show_tui_cmd):
1963 Constify.
1964 * skip.c (skip_command): Constify.
1965 * compile/compile.c (_initialize_compile): Constify.
1966 * dwarf2read.c (set_dwarf_cmd, show_dwarf_cmd): Constify.
1967 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
1968 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
1969 (maint_btrace_pt_show_cmd): Constify.
1970 * remote.c (set_remote_cmd, show_remote_cmd, remote_command):
1971 Constify.
1972 * python/python.c (user_show_python, user_set_python): Constify.
1973 * mips-tdep.c (set_mips_command, show_mips_command)
1974 (set_mipsfpu_command): Constify.
1975 * record-btrace.c (cmd_record_btrace_start)
1976 (cmd_set_record_btrace, cmd_show_record_btrace)
1977 (cmd_set_record_btrace_bts, cmd_show_record_btrace_bts)
1978 (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): Constify.
1979 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command):
1980 Constify.
1981 * symfile.c (overlay_command): Constify.
1982 * spu-tdep.c (set_spu_command, show_spu_command): Constify.
1983 * cli/cli-logging.c (set_logging_command, show_logging_command):
1984 Constify.
1985 * cli/cli-dump.c (dump_command, append_command)
1986 (srec_dump_command, ihex_dump_command, verilog_dump_command)
1987 (tekhex_dump_command, binary_dump_command)
1988 (binary_append_command): Constify.
1989 * cli/cli-decode.c (struct cmd_list_element): Change type of
1990 "fun".
1991 * cli/cli-cmds.c (info_command, show_command, set_debug)
1992 (show_debug): Constify.
1993 (show_command): Add non-const overload.
1994 * top.c (set_history, show_history): Constify.
1995 * sh-tdep.c (set_sh_command, show_sh_command): Constify.
1996 * command.h (add_prefix_cmd): Accept a cmd_const_cfunc_ftype.
1997 * target.c (target_command): Constify.
1998 * sparc64-tdep.c (info_adi_command): Constify.
1999 * record-full.c (cmd_record_full_start): Constify.
2000 (set_record_full_command): Constify. Fix typo.
2001 (show_record_full_command): Constify.
2002 * thread.c (thread_command, thread_apply_command): Constify.
2003 * memattr.c (dummy_cmd): Constify.
2004 * value.c (function_command): Constify.
2005 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Constify.
2006 * probe.c (info_probes_command): Constify.
2007 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Constify.
2008 * gnu-nat.c (set_task_cmd, show_task_cmd, set_thread_cmd)
2009 (show_thread_cmd, set_thread_default_cmd)
2010 (show_thread_default_cmd): Constify.
2011 (check_empty): Constify.
2012 * tracepoint.c (tfind_command): Constify.
2013 * cp-support.c (maint_cplus_command): Constify.
2014 * windows-tdep.c (info_w32_command): Constify.
2015 * record.c (cmd_record_start, set_record_command)
2016 (show_record_command, info_record_command, cmd_record_goto):
2017 Constify.
2018 * ravenscar-thread.c (set_ravenscar_command)
2019 (show_ravenscar_command): Constify.
2020 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
2021 Constify.
2022 (add_internal_problem_command): Remove casts.
2023 * arc-tdep.c (maintenance_print_arc_command): Constify.
2024 * valprint.c (set_print, show_print, set_print_raw)
2025 (show_print_raw): Constify.
2026 * maint.c (maintenance_command, maintenance_info_command)
2027 (maintenance_print_command, maintenance_set_cmd)
2028 (maintenance_show_cmd, set_per_command_cmd)
2029 (show_per_command_cmd, maintenance_check_command): Constify.
2030 * language.c (set_check, show_check): Constify.
2031 * typeprint.c (show_print_type, set_print_type): Constify.
2032 * go32-nat.c (go32_info_dos_command): Constify.
2033
fdf44873
TT
20342017-10-11 Tom Tromey <tom@tromey.com>
2035
2036 * breakpoint.c (prepare_re_set_context): Remove.
2037 (breakpoint_re_set_one): Update. Don't use cleanups.
2038 (breakpoint_re_set): Use scoped_restore, std::string, and
2039 scoped_restore_current_language.
2040
81b1e71c
TT
20412017-10-11 Tom Tromey <tom@tromey.com>
2042
2043 * breakpoint.c (commands_command_1): Use std::string.
2044 (cleanup_executing_breakpoints): Remove.
2045 (bpstat_do_actions_1): Use scoped_restore.
2046 (bpstat_check_watchpoint): Use std::string.
2047 (decode_static_tracepoint_spec): Likewise.
2048 (break_range_command): Likewise.
2049 (watch_command_1): Likewise.
2050 (compare_breakpoints): Change argument types.
2051 (clear_command): Use std::vector.
2052 (cleanup_executing_breakpoints): Remove.
2053 (update_global_location_list): Use unique_xmalloc_ptr.
2054 (strace_command): Remove unused declaration.
2055
4f9d9906
JB
20562017-10-11 John Baldwin <jhb@FreeBSD.org>
2057
2058 * Makefile.in (ALLDEPFILES): Add arm-fbsd-nat.c.
2059 * NEWS: Mention new FreeBSD/arm native configuration.
2060 * configure.host: Add arm*-*-freebsd*.
2061 * configure.nat: Likewise.
2062 * arm-fbsd-nat.c: New file.
2063
7176dfd2
JB
20642017-10-11 John Baldwin <jhb@FreeBSD.org>
2065
2066 * Makefile.in (ALL_TARGET_OBS): Add arm-fbsd-tdep.o.
2067 (ALLDEPFILES): Add arm-fbsd-tdep.c.
2068 * NEWS: Mention new FreeBSD/arm target.
2069 * configure.tgt: Add arm*-*-freebsd*.
2070 * arm-fbsd-tdep.c: New file.
2071 * arm-fbsd-tdep.h: New file.
2072
fe220226
MR
20732017-10-11 Maciej W. Rozycki <macro@imgtec.com>
2074
2075 * linux-tdep.c (linux_make_corefile_notes): Remove call to
2076 `gdbarch_elfcore_write_linux_prpsinfo'.
2077 * gdbarch.sh (elfcore_write_linux_prpsinfo): Remove architecture
2078 method.
2079 (elf_internal_linux_prpsinfo): Remove declaration.
2080 * gdbarch.h: Regenerate.
2081 * gdbarch.c: Regenerate.
2082
a2f63b2e
MR
20832017-10-11 Maciej W. Rozycki <macro@imgtec.com>
2084
2085 * ppc-linux-tdep.c (ppc_linux_init_abi): Remove call to
2086 `set_gdbarch_elfcore_write_linux_prpsinfo'.
2087
458ca1d0
PA
20882017-10-11 Pedro Alves <palves@redhat.com>
2089
2090 * breakpoint.c (reattach_breakpoints): Delete.
2091 * breakpoint.h (reattach_breakpoints): Delete.
2092
905014d7
SM
20932017-10-11 Simon Marchi <simon.marchi@ericsson.com>
2094
2095 * symfile.c (registered_sym_fns): Make struct, not typedef.
2096 (DEF_VEC_O (registered_sym_fns)): Remove.
2097 (symtab_fns): Change type to std::vector.
2098 (add_symtab_fns): Adjust.
2099 (find_sym_fns): Adjust.
2100
56d704da
AK
21012017-10-11 Anton Kolesov <Anton.Kolesov@synopsys.com>
2102
2103 * arc-tdep.c (arc_gdbarch_init): Pass proper cpu value to disassembler.
2104 * arc-tdep.h (arc_arch_is_em): New function.
2105 (arc_arch_is_hs): Likewise.
2106
7fa29be9
EB
21072017-10-11 Egeyar Bagcioglu <egeyar.bagcioglu@oracle.com>
2108
2109 * macrotab.h (macro_lookup_inclusion): Remove unnecessary
2110 parentheses in the declaration.
2111 (macro_lookup_inclusion): Likewise.
2112 (macro_lookup_definition): Likewise.
2113 * p-lang.h (pascal_builtin_types): Likewise.
2114 * tui/tui-data.c (tui_win_list): Likewise.
2115 * tui/tui-data.h (tui_win_list): Likewise.
2116 * utils.h (make_cleanup_free_section_addr_info): Likewise.
2117
d9b477e3
KB
21182017-10-11 Mark Rages <markrages@gmail.com>
2119
2120 * target-memory.c (block_boundaries): Fix for block address not
2121 aligned on block size.
2122
65630365
PA
21232017-10-10 Pedro Alves <palves@redhat.com>
2124 Tom Tromey <tom@tromey.com>
2125
2126 * breakpoint.c (struct captured_breakpoint_query_args)
2127 (do_captured_breakpoint_query, gdb_breakpoint_query): Delete.
2128 (print_breakpoint): New.
2129 * breakpoint.h (print_breakpoint): Declare.
2130 * common/common-exceptions.h (enum return_reason): Remove
2131 references to catch_exceptions.
2132 * exceptions.c (catch_exceptions, catch_exceptions_with_msg):
2133 Delete.
2134 * exceptions.h (catch_exceptions_ftype, catch_exceptions)
2135 (catch_exception_ftype, catch_exceptions_with_msg): Delete.
2136 * gdb.h: Delete.
2137 * gdbthread.h (thread_select): Declare.
2138 * mi/mi-cmd-break.c: Don't include gdb.h.
2139 (breakpoint_notify): Use print_breakpoint.
2140 * mi/mi-cmd-catch.c: Don't include gdb.h.
2141 * mi/mi-interp.c: Don't include gdb.h.
2142 (mi_print_breakpoint_for_event): New.
2143 (mi_breakpoint_created, mi_breakpoint_modified): Use
2144 mi_print_breakpoint_for_event.
2145 * mi/mi-main.c: Don't include gdb.h.
2146 (mi_cmd_thread_select): Parse the global thread ID here. Use
2147 thread_select instead of gdb_thread_select.
2148 (mi_cmd_thread_list_ids): Output "thread-ids" tuple here instead
2149 of using gdb_list_thread_ids.
2150 * remote-fileio.c (do_remote_fileio_request): Change type. Reply
2151 FILEIO_ENOSYS here.
2152 (remote_fileio_request): Use TRY/CATCH instead of
2153 catch_exceptions.
2154 * symfile-mem.c (struct symbol_file_add_from_memory_args)
2155 (symbol_file_add_from_memory_wrapper): Delete.
2156 (add_vsyscall_page): Use TRY/CATCH instead of catch_exceptions.
2157 * thread.c: Don't include gdb.h.
2158 (do_captured_list_thread_ids, gdb_list_thread_ids): Delete.
2159 (thread_alive): Use thread_select.
2160 (do_captured_thread_select): Delete, parts salvaged as ...
2161 (thread_select): ... this new function.
2162 (gdb_thread_select): Delete.
2163
bf469271
PA
21642017-10-10 Pedro Alves <palves@redhat.com>
2165 Tom Tromey <tom@tromey.com>
2166
2167 * breakpoint.c (breakpoint_cond_eval): Change return type to bool
2168 and reverse logic.
2169 (WP_DELETED, WP_VALUE_CHANGED, WP_VALUE_NOT_CHANGED, WP_IGNORE):
2170 No longer macros. Instead ...
2171 (enum wp_check_result): They're now values of this new
2172 enumeration.
2173 (watchpoint_check): Change return type to wp_check_result and
2174 parameter type to bpstat.
2175 (bpstat_check_watchpoint): Use TRY/CATCH instead of catch_errors.
2176 (bpstat_check_breakpoint_conditions): Use TRY/CATCH instead of
2177 catch_errors. Reverse logic of watchpoint_check call.
2178 (breakpoint_re_set_one): Now returns void and takes a breakpoint
2179 pointer as parameter.
2180 (breakpoint_re_set): Use TRY/CATCH instead of catch_errors.
2181 * common/common-exceptions.c (throw_exception_sjlj): Update
2182 comments to avoid mentioning catch_errors.
2183 * exceptions.c (catch_errors): Delete.
2184 * exceptions.h: Update comments to avoid mentioning catch_errors.
2185 (catch_errors_ftype, catch_errors): Delete.
2186 * infrun.c (normal_stop): Use TRY/CATCH instead of catch_errors.
2187 (hook_stop_stub): Delete.
2188 (restore_selected_frame): Change return type to void, and
2189 parameter type to const frame_id &.
2190 (restore_infcall_control_state): Use TRY/CATCH instead of
2191 catch_errors.
2192 * main.c (captured_command_loop): Return void and remove
2193 parameter. Remove references to catch_errors.
2194 (captured_main): Use TRY/CATCH instead of catch_errors.
2195 * objc-lang.c (objc_submethod_helper_data)
2196 (find_objc_msgcall_submethod_helper): Delete.
2197 (find_objc_msgcall_submethod): Use TRY/CATCH instead of
2198 catch_errors.
2199 * record-full.c (record_full_message): Return void.
2200 (record_full_message_args, record_full_message_wrapper): Delete.
2201 (record_full_message_wrapper_safe): Return bool and use TRY/CATCH
2202 instead of catch_errors.
2203 * solib-aix.c (solib_aix_open_symbol_file_object): Change
2204 parameter type to int.
2205 * solib-darwin.c (open_symbol_file_object): Ditto.
2206 * solib-dsbt.c (open_symbol_file_object): Ditto.
2207 * solib-frv.c (open_symbol_file_object): Ditto.
2208 * solib-svr4.c (open_symbol_file_object): Ditto.
2209 * solib-target.c (solib_target_open_symbol_file_object): Ditto.
2210 * solib.c (update_solib_list): Use TRY/CATCH instead of
2211 catch_errors.
2212 * solist.h (struct target_so_ops) <open_symbol_file_object>:
2213 Change type.
2214 * symmisc.c (struct print_symbol_args): Remove.
2215 (dump_symtab_1): Use TRY/CATCH instead of catch_errors.
2216 (print_symbol): Change type.
2217 * windows-nat.c (handle_load_dll, handle_unload_dll): Return void
2218 and remove parameters.
2219 (catch_errors): New.
2220 (get_windows_debug_event): Adjust.
2221
1a56bfa5
TT
22222017-10-09 Tom Tromey <tom@tromey.com>
2223
2224 * mi/mi-main.c (free_splay_tree): Remove.
2225 (list_available_thread_groups): Use splay_tree_up.
2226 * common/gdb_splay_tree.h: New file.
2227
0c478e2d
TT
22282017-10-09 Tom Tromey <tom@tromey.com>
2229
2230 * mi/mi-main.c (do_nothing): Remove.
2231 (list_available_thread_groups): Update.
2232
cbd2b4e3
PA
22332017-10-09 Pedro Alves <palves@redhat.com>
2234
2235 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>: Skip
2236 reading registers when switching context.
2237
a181c0bf
JB
22382017-10-09 John Baldwin <jhb@FreeBSD.org>
2239
2240 * fbsd-nat.c (fbsd_siginfo_size): Use gdbarch_long_bit.
2241 (fbsd_convert_siginfo): Likewise.
2242 * fbsd-tdep.c (fbsd_core_xfer_siginfo): Likewise.
2243
6e66f753
SM
22442017-10-09 Simon Marchi <simon.marchi@polymtl.ca>
2245
2246 * configure.ac (try_guile_versions): Remove guile-2.2.
2247 * configure: Regenerate.
2248
890e9790
TT
22492017-10-09 Tom Tromey <tom@tromey.com>
2250
2251 * Makefile.in (COMPILE.post, POSTCOMPILE): Restore $(basename).
2252 (COMPILE.pre): Use $(CXX).
2253
109483d9
PA
22542017-10-09 Pedro Alves <palves@redhat.com>
2255
2256 * cp-support.c (cp_remove_params): Return a gdb::unique_xmalloc_ptr.
2257 Use bool.
2258 (overload_list_add_symbol): Adjust to use gdb::unique_xmalloc_ptr.
2259 * cp-support.h (cp_remove_params): Now returns a
2260 gdb::unique_xmalloc_ptr.
2261 * dwarf2read.c (find_slot_in_mapped_hash): Now returns bool.
2262 Adjust to cp_remove_params returning a gdb::unique_xmalloc_ptr.
2263 * psymtab.c (psymtab_search_name): Adjust to cp_remove_params
2264 returning a gdb::unique_xmalloc_ptr.
2265 (lookup_partial_symbol): Adjust to use gdb::unique_xmalloc_ptr.
2266 * stack.c (find_frame_funname): Adjust to cp_remove_params
2267 returning a gdb::unique_xmalloc_ptr.
2268
791afaa2
TT
22692017-10-08 Tom Tromey <tom@tromey.com>
2270
2271 * dwarf2read.c (dwarf2_get_dwz_file): Use
2272 gdb::unique_xmalloc_ptr.
2273 (find_slot_in_mapped_hash): Likewise.
2274 (dwarf2_physname): Likewise.
2275 (create_dwo_unit_in_dwp_v1): Use std::string.
2276 (create_dwo_unit_in_dwp_v2): Likewise.
2277 (lookup_dwo_cutu): Likewise.
2278 (inherit_abstract_dies): Use std::vector.
2279 (read_array_type): Likewise.
2280 (dwarf_decode_macros): Remove unused declaration.
2281 (unsigned_int_compar): Remove.
2282 (dwarf2_build_psymtabs_hard): Use scoped_restore.
2283 (psymtabs_addrmap_cleanup): Remove.
2284
30a9c02f
TT
22852017-10-08 Tom Tromey <tom@tromey.com>
2286
2287 * frame-unwind.c (frame_unwind_try_unwinder): Update.
2288 * frame.h (frame_cleanup_after_sniffer): Declare.
2289 (frame_prepare_for_sniffer): Return void.
2290 * frame.c (frame_cleanup_after_sniffer): No longer static. Change
2291 type of argument.
2292 (frame_prepare_for_sniffer): Return void.
2293
757325a3
TT
22942017-10-08 Tom Tromey <tom@tromey.com>
2295
2296 * utils.h (make_cleanup_value_free): Remove.
2297 * utils.c (do_value_free, struct cleanup): Remove.
2298 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>:
2299 Use gdb_value_up.
2300 * value.h (struct value_deleter): New.
2301 (gdb_value_up): New typedef.
2302
b9c04fb2
TT
23032017-10-08 Tom Tromey <tom@tromey.com>
2304
2305 * symtab.c (free_search_symbols, do_free_search_symbols_cleanup)
2306 (make_cleanup_free_search_symbols): Remove.
2307 (search_symbols): Return std::vector.
2308 (symbol_search::compare_search_syms): Now member of
2309 symbol_search. Change arguments.
2310 (sort_search_symbols_remove_dups): Change arguments. Rewrite.
2311 (symtab_symbol_info, rbreak_command): Update.
2312 * symtab.h (struct symbol_search) <next>: Remove.
2313 Add constructors.
2314 (symbol_search::operator<): New function.
2315 (symbol_search::operator==): New function.
2316 (search_symbols): Remove std::vector.
2317 (free_search_symbols, make_cleanup_free_search_symbols): Remove.
2318 (symbol_search::compare_search_syms): Declare.
2319
0d28b0a5
YQ
23202017-10-06 Yao Qi <yao.qi@linaro.org>
2321
2322 * Makefile.in (ALL_64_TARGET_OBS): Replace aarch64-insn.o with
2323 arch/aarch64-insn.o.
2324 Remove one rule.
2325 * configure.tgt: Replace aarch64-insn.o with arch/aarch64-insn.o.
2326
71917808
YQ
23272017-10-06 Yao Qi <yao.qi@linaro.org>
2328
2329 * Makefile.in (ALL_TARGET_OBS): Replace arm.o, arm-get-next-pcs.o,
2330 and arm-linux.o with arch/arm.o, arch/arm-get-next-pcs.o and
2331 arch/arm-linux.o respectively.
2332 * configure.tgt: Likewise.
2333
2081b2b2
YQ
23342017-10-06 Yao Qi <yao.qi@linaro.org>
2335
2336 * Makefile.in (ALL_TARGET_OBS): Rename i386.o to arch/i386.o.
2337 * configure.tgt (i386_tobjs): Replace i386.o with arch/i386.o.
2338
a1b85d28
PA
23392017-10-06 Pedro Alves <palves@redhat.com>
2340
2341 * windows-nat.c: Include <algorithm>.
2342
d97987e2
YQ
23432017-10-06 Yao Qi <yao.qi@linaro.org>
2344
2345 * configure.tgt (i386_tobjs): New variable.
2346 (amd64_tobjs): New variable.
2347 Set $cpu_obs and $os_obs.
2348
f38307f5
YQ
23492017-10-06 Yao Qi <yao.qi@linaro.org>
2350
2351 * Makefile.in (CONFIG_SRC_SUBDIR): New.
2352 (ALL_64_TARGET_OBS): Replace amd64.o with arch/amd64.o.
2353 (clean): Remove object files and dependency files.
2354 (distclean): Remove the directory.
2355 * configure.ac: Invoke AC_CONFIG_COMMANDS.
2356 * configure: Re-generated.
2357 * configure.tgt: Replace amd64.o with arch/amd64.o.
2358
2f924de6
JM
23592017-10-05 Jose E. Marchesi <jose.marchesi@oracle.com>
2360
2361 PR build/22188
2362 * arm-tdep.c (arm_decode_misc_memhint_neon): Fix decoding of CPS
2363 and SETEND.
2364
2fd9d7ca
PA
23652017-10-05 Pedro Alves <palves@redhat.com>
2366
2367 * linux-nat.c (linux_child_follow_fork): When following the parent
2368 and detaching the child, consult the parent thread's architecture
2369 instead of the child's.
2370
d13b8493
UW
23712017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
2372
2373 * ax.h: Do not include "doublest.h".
2374 (union agent_val): Remove.
2375
3b4b2f16
UW
23762017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
2377
2378 * dfp.h (MAX_DECIMAL_STRING): Move to dfp.c.
2379 (decimal_to_string): Return std::string object.
2380 (decimal_from_string): Accept std::string object. Return bool.
2381 (decimal_from_integral, decimal_from_doublest): Remove.
2382 (decimal_from_longest): Add prototype.
2383 (decimal_from_ulongest): Likewise.
2384 (decimal_to_longest): Likewise.
2385 (decimal_from_doublest): Likewise.
2386 * dfp.c: Do not include "gdbtypes.h" or "value.h".
2387 (MAX_DECIMAL_STRING): Move here.
2388 (decimal_to_string): Return std::string object.
2389 (decimal_from_string): Accept std::string object. Return bool.
2390 (decimal_from_integral): Remove, replace by ...
2391 (decimal_from_longest, decimal_from_ulongest): ... these new functions.
2392 (decimal_to_longest): New function.
2393 (decimal_from_floating): Remove, replace by ...
2394 (decimal_from_doublest): ... this new function.
2395 (decimal_to_doublest): Update to new decimal_to_string interface.
2396
2397 * value.c (unpack_long): Use decimal_to_longest.
2398 * valops.c (value_cast): Use decimal_from_doublest instead of
2399 decimal_from_floating. Use decimal_from_[u]longest isntead of
2400 decimal_from_integral.
2401 * valarith.c (value_args_as_decimal): Likewise.
2402 * valprint.c (print_decimal_floating): Update to new
2403 decimal_to_string interface.
2404 * printcmd.c (printf_decfloat): Likewise.
2405 * c-exp.y (parse_number): Update to new decimal_from_string interface.
2406
1841ee5d
UW
24072017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
2408
2409 * doublest.h: Do not include "floatformat.h". Remove stale comments.
2410 * gdbtypes.c: Include "floatformat.h".
2411 * value.c: Likewise.
2412 * m68k-tdep.c: Likewise.
2413
2414 * findvar.c: Do not include "floatformat.h".
2415 * amd64-darwin-tdep.c: Likewise.
2416 * arm-linux-tdep.c: Likewise.
2417 * i386-darwin-tdep.c: Likewise.
2418 * i387-tdep.c: Likewise.
2419 * m68k-linux-tdep.c: Likewise.
2420 * mep-tdep.c: Likewise.
2421 * mips-tdep.c: Likewise.
2422 * nios2-tdep.c: Likewise.
2423 * s390-linux-tdep.c: Likewise.
2424 * sparc-obsd-tdep.c: Likewise.
2425 * sparc-tdep.c: Likewise.
2426 * sparc64-tdep.c: Likewise.
2427 * spu-tdep.c: Likewise.
2428 * tic6x-tdep.c: Likewise.
2429 * tilegx-tdep.c: Likewise.
2430 * vax-tdep.c: Likewise.
2431 * xstormy16-tdep.c: Likewise.
2432 * xtensa-tdep.c: Likewise.
2433
2434 * top.c: Do not include "doublest.h".
2435 * aarch64-tdep.c: Likewise.
2436 * alpha-tdep.c: Likewise.
2437 * arm-linux-tdep.c: Likewise.
2438 * m68k-linux-tdep.c: Likewise.
2439 * tilegx-tdep.c: Likewise.
2440 * xstormy16-tdep.c: Likewise.
2441
a80a6471
JB
24422017-10-05 John Baldwin <jhb@FreeBSD.org>
2443
2444 * mips-fbsd-tdep.c (MIPS_INST_ADDIU_A0_SP_N32): Define.
2445 (mipsn32_fbsd_sigframe): Define.
2446 (mips_fbsd_init_abi): Install mipsn32_fbsd_sigframe unwinder
2447 for FreeBSD/mipsn32.
2448
12c4bd7f
JB
24492017-10-05 John Baldwin <jhb@FreeBSD.org>
2450
2451 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_EHDRFLAGS and
2452 AT_HWCAP.
2453
c91933e9
TG
24542017-10-05 Tristan Gingold <tgingold@free.fr>
2455
2456 * MAINTAINERS (Misc): Update my email address.
2457
5cd63fda
PA
24582017-10-04 Pedro Alves <palves@redhat.com>
2459
2460 * remote.c (get_remote_arch_state): New 'gdbarch' parameter. Use
2461 it instead of target_gdbarch.
2462 (get_remote_state, get_remote_packet_size): Adjust
2463 get_remote_arch_state calls, passing down target_gdbarch
2464 explicitly.
2465 (packet_reg_from_regnum, packet_reg_from_pnum): New parameter
2466 'gdbarch' and use it instead of target_gdbarch.
2467 (get_memory_packet_size): Adjust get_remote_arch_state calls,
2468 passing down target_gdbarch explicitly.
2469 (struct stop_reply) <arch>: New field.
2470 (remote_parse_stop_reply): Use the stopped thread's architecture,
2471 not the current inferior's. Save the architecture in the
2472 stop_reply.
2473 (process_stop_reply): Use the stop reply's architecture.
2474 (process_g_packet, remote_fetch_registers)
2475 (remote_prepare_to_store, store_registers_using_G)
2476 (remote_store_registers): Adjust get_remote_arch_state calls,
2477 using the regcache's architecture.
2478 (remote_get_trace_status): Adjust get_remote_arch_state calls,
2479 passing down target_gdbarch explicitly.
2480 * spu-multiarch.c (spu_thread_architecture): Defer to the target
2481 beneath instead of calling target_gdbarch.
2482 * target.c (default_thread_architecture): Use the specified
2483 inferior's architecture, instead of the current inferior's
2484 architecture (via target_gdbarch).
2485
ed4227b7
PA
24862017-10-04 Pedro Alves <palves@redhat.com>
2487
2488 * regcache.c (get_thread_arch_regcache): Remove null_ptid special
2489 case.
2490 (regcache_print): Handle !target_has_registers here instead.
2491
55b11ddf
PA
24922017-10-04 Pedro Alves <palves@redhat.com>
2493
2494 * frame.c (create_test_frame): Delete.
2495 * frame.h (create_test_frame): Delete.
2496 * gdbarch-selftests.c: Include gdbthread.h and target.h.
2497 (class regcache_test): Delete.
2498 (test_target_has_registers, test_target_has_stack)
2499 (test_target_has_memory, test_target_prepare_to_store)
2500 (test_target_store_registers): New functions.
2501 (test_target_ops): New class.
2502 (register_to_value_test): Error out if there's already a
2503 process_stratum (or higher) target pushed. Create a fuller mock
2504 environment, with mock target_ops, inferior, address space, thread
2505 and inferior_ptid.
2506 * progspace.c (struct address_space): Move to ...
2507 * progspace.h (struct address_space): ... here.
2508 * regcache.h (regcache::~regcache, regcache::raw_write)
2509 [GDB_SELF_TEST]: No longer virtual.
2510
4c71c105
SM
25112017-10-04 Simon Marchi <simon.marchi@ericsson.com>
2512
2513 * mi/mi-main.c (list_available_thread_groups): Reverse filter logic.
2514
73dcd72d
PA
25152017-10-04 Pedro Alves <palves@redhat.com>
2516
2517 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Move code
2518 out of 'between TRY and CATCH'.
2519
44704526
PA
25202017-10-04 Pedro Alves <palves@redhat.com>
2521
2522 * cli/cli-cmds.c (complete_command): Add missing END_CATCH.
2523 * common/common-exceptions.h (TRY): Open an outermost scope.
2524 Expand intro comment.
2525 (CATCH): Reindent.
2526 (END_CATCH): Close the outermost scope.
2527 * completer.c (complete_line_internal): Add missing END_CATCH.
2528
bc3b087d
SDJ
25292017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
2530
2531 * NEWS (Changes since GDB 8.0): Add entry about new
2532 'set-cwd-on-gdbserver' feature.
2533 (New remote packets): Add entry for QSetWorkingDir.
2534 * common/common-inferior.h (set_inferior_cwd): New prototype.
2535 * infcmd.c (set_inferior_cwd): Remove "static".
2536 (show_cwd_command): Expand text to include remote debugging.
2537 * remote.c: Add PACKET_QSetWorkingDir.
2538 (remote_protocol_features) <QSetWorkingDir>: New entry for
2539 PACKET_QSetWorkingDir.
2540 (extended_remote_set_inferior_cwd): New function.
2541 (extended_remote_create_inferior): Call
2542 "extended_remote_set_inferior_cwd".
2543 (_initialize_remote): Call "add_packet_config_cmd" for
2544 QSetWorkingDir.
2545
d092c5a2
SDJ
25462017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
2547
2548 * NEWS (New commands): Mention "set/show cwd".
2549 * cli/cli-cmds.c (_initialize_cli_cmds): Mention "set cwd" on
2550 "cd" command's help text.
2551 * common/common-inferior.h (get_inferior_cwd): New prototype.
2552 * infcmd.c (inferior_cwd_scratch): New global variable.
2553 (set_inferior_cwd): New function.
2554 (get_inferior_cwd): Likewise.
2555 (set_cwd_command): Likewise.
2556 (show_cwd_command): Likewise.
2557 (_initialize_infcmd): Add "set/show cwd" commands.
2558 * inferior.h (class inferior) <cwd>: New field.
2559 * nat/fork-inferior.c: Include "gdb_tilde_expand.h".
2560 (fork_inferior): Change inferior's cwd before its execution.
2561 * windows-nat.c (windows_create_inferior): Pass inferior's cwd
2562 to CreateProcess.
2563
7da0a886
SDJ
25642017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
2565
2566 * Makefile.in (SFILES): Add gdb_tilde_expand.c.
2567 (HFILES_NO_SRCDIR): Add gdb_tilde_expand.h.
2568 (COMMON_OBS): Add gdb_tilde_expand.o.
2569 * common/gdb_tilde_expand.c: New file.
2570 * common/gdb_tilde_expand.h: Likewise.
2571
db8dd160
MR
25722017-10-03 Maciej W. Rozycki <macro@imgtec.com>
2573
2574 * gdbarch.sh (objfile): Remove duplicate declaration.
2575 * gdbarch.h: Regenerate.
2576
f8bfbf22
TT
25772017-10-03 Tom Tromey <tom@tromey.com>
2578
2579 * utils.c (internal_vproblem): Use string_vprintf.
2580
5178ed48
TT
25812017-10-03 Tom Tromey <tom@tromey.com>
2582
2583 * printcmd.c (info_symbol_command): Use std::string.
2584
8cff8730
TT
25852017-10-03 Tom Tromey <tom@tromey.com>
2586
2587 * top.c (gdb_safe_append_history): Use std::string.
2588
895b8f30
TT
25892017-10-03 Tom Tromey <tom@tromey.com>
2590
2591 * event-top.c (stdin_event_handler): Update.
2592 * main.c (captured_main_1): Update.
2593 * top.h (make_delete_ui_cleanup): Remove.
2594 (struct ui): Add constructor and destructor.
2595 (new_ui, delete_ui): Remove.
2596 * top.c (make_delete_ui_cleanup): Remove.
2597 (new_ui_command): Use std::unique_ptr.
2598 (delete_ui_cleanup): Remove.
2599 (ui::ui): Rename from new_ui. Update.
2600 (free_ui): Remove.
2601 (ui::~ui): Rename from delete_ui. Update.
2602
0efef640
TT
26032017-10-03 Tom Tromey <tom@tromey.com>
2604
2605 * symfile.c (load_progress): Use gdb::byte_vector.
2606
245ad7d3
TT
26072017-10-03 Tom Tromey <tom@tromey.com>
2608
2609 * mi/mi-main.c (mi_cmd_trace_frame_collected): Remove unused
2610 declaration.
2611 * printcmd.c (x_command): Remove unused declaration.
2612 * symfile.c (symbol_file_command): Remove unused declaration.
2613
e05550d7
TT
26142017-10-03 Tom Tromey <tom@tromey.com>
2615
2616 * utils.c (internal_vproblem): Use std::string.
2617 (defaulted_query): Likewise.
2618
b95de2b7
TT
26192017-10-03 Tom Tromey <tom@tromey.com>
2620
2621 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Update.
2622 * top.c (execute_command_to_string): Update.
2623 * utils.c (make_cleanup_restore_page_info): Remove.
2624 (do_restore_page_info_cleanup): Remove.
2625 (set_batch_flag_and_restore_page_info):
2626 New.
2627 (make_cleanup_restore_page_info): Remove.
2628 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
2629 (~set_batch_flag_and_restore_page_info): New
2630 (make_cleanup_restore_uinteger): Remove.
2631 (make_cleanup_restore_integer): Remove.
2632 (struct restore_integer_closure): Remove.
2633 (restore_integer): Remove.
2634 * utils.h (struct set_batch_flag_and_restore_page_info): New
2635 class.
2636 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
2637 (make_cleanup_restore_page_info): Remove.
2638 (make_cleanup_restore_uinteger) Remove.
2639 (make_cleanup_restore_integer) Remove.
2640
07036511
TT
26412017-10-03 Tom Tromey <tom@tromey.com>
2642
2643 * record-full.h (record_full_gdb_operation_disable_set): Return
2644 scoped_restore_tmpl<int>.
2645 * infrun.c (adjust_pc_after_break): Update.
2646 (handle_signal_stop): Update.
2647 * record-full.c (record_full_gdb_operation_disable_set): Return
2648 scoped_restore_tmpl<int>.
2649 (record_full_wait_1, record_full_insert_breakpoint)
2650 (record_full_remove_breakpoint, record_full_save)
2651 (record_full_goto_insn): Update.
2652
45320ffa
TT
26532017-10-02 Tom Tromey <tom@tromey.com>
2654
2655 PR rust/22236:
2656 * rust-lang.c (rust_val_print_str): New function.
2657 (val_print_struct): Call it.
2658 (rust_subscript): Preserve name of slice type.
2659
b3e3859b
TT
26602017-10-02 Tom Tromey <tom@tromey.com>
2661
2662 * rust-lang.c (rust_subscript): Handle slices in
2663 EVAL_AVOID_SIDE_EFFECTS case.
2664
01af5e0d
TT
26652017-10-02 Tom Tromey <tom@tromey.com>
2666
2667 * rust-lang.c (rust_slice_type_p): Recognize &str as a slice type.
2668
888e3ddb
TT
26692017-10-02 Tom Tromey <tom@tromey.com>
2670
2671 * rust-lang.h (rust_slice_type): Add "extern".
2672
cc536b21
PA
26732017-10-02 Tom Tromey <tom@tromey.com>
2674 Pedro Alves <palves@redhat.com>
2675
2676 * ada-lang.h (ada_exc_info::operator<): Make const.
2677 (ada_exc_info::operator==): Make const.
2678 * ada-lang.c (ada_exc_info::operator<, ada_exc_info::operator==):
2679 Make const.
2680
386c8614
TT
26812017-09-29 Tom Tromey <tom@tromey.com>
2682
2683 * target.c (read_whatever_is_readable): Change type of "result".
2684 Update.
2685 (free_memory_read_result_vector): Remove.
2686 (read_memory_robust): Change return type. Update.
2687 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Update. Use
2688 bin2hex, std::string.
2689 * target.h (memory_read_result_s): Remove typedef.
2690 (free_memory_read_result_vector): Remove.
2691 (read_memory_robust): Return std::vector.
2692
789c4b5e
TT
26932017-09-29 Tom Tromey <tom@tromey.com>
2694
2695 * mi/mi-main.c (captured_mi_execute_command): Use scope_restore.
2696
ab816a27
TT
26972017-09-29 Tom Tromey <tom@tromey.com>
2698
2699 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Update.
2700 * ada-lang.h (struct ada_exc_info): Remove typedef. Declare
2701 operator< and operator==.
2702 (ada_exceptions_list): Return a std::vector.
2703 * ada-lang.c (ada_exc_info::operator<): Rename from
2704 compare_ada_exception_info.
2705 (ada_exc_info::operator==): New.
2706 (sort_remove_dups_ada_exceptions_list): Change type of
2707 "exceptions".
2708 (ada_add_standard_exceptions, ada_add_exceptions_from_frame)
2709 (ada_add_global_exceptions): Likewise.
2710 (ada_exceptions_list_1): Return a std::vector.
2711 (ada_exceptions_list): Likewise.
2712
52f9abe4
TT
27132017-09-29 Tom Tromey <tom@tromey.com>
2714
2715 * mi/mi-main.c (struct print_one_inferior_data) <inferiors>: Now a
2716 'std::set *'.
2717 (print_one_inferior): Update.
2718 (free_vector_of_ints): Remove.
2719 (list_available_thread_groups): Change "ids" to std::set.
2720 (mi_cmd_list_thread_groups): Update.
2721 (struct collect_cores_data) <core>: Now a std::set.
2722 (collect_cores): Update.
2723 (unique): Remove.
2724 (print_one_inferior): Update.
2725
dcd5ddcc
TT
27262017-09-29 Tom Tromey <tom@tromey.com>
2727
2728 * mi/mi-main.c (mi_execute_cli_command): Use std::string.
2729 (mi_execute_async_cli_command): Likewise.
2730 (mi_cmd_trace_frame_collected): Use field_fmt.
2731
45d288cc
TT
27322017-09-29 Tom Tromey <tom@tromey.com>
2733
2734 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Use
2735 gdb::byte_vector.
2736
6afe2f4a
TT
27372017-09-29 Tom Tromey <tom@tromey.com>
2738
2739 * mi/mi-parse.c (mi_parse): Remove unused declaration.
2740
9813429a
TT
27412017-09-29 Tom Tromey <tom@tromey.com>
2742
2743 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Don't copy "oarg".
2744
2d6960b4
TT
27452017-09-29 Tom Tromey <tom@tromey.com>
2746
2747 * varobj.h (varobj_gen_name): Return std::string.
2748 * varobj.c (varobj_gen_name): Return std::string.
2749 * mi/mi-cmd-var.c (mi_cmd_var_create): Use std::string.
2750 (mi_cmd_var_delete): Don't copy "name".
2751
784c453a
TT
27522017-09-29 Tom Tromey <tom@tromey.com>
2753
2754 * mi/mi-cmd-break.c (mi_argv_to_format): Return std::string.
2755 (mi_cmd_break_insert_1): Update.
2756
a9bc57b9
TT
27572017-09-29 Tom Tromey <tom@tromey.com>
2758
2759 * target.h (make_scoped_defer_target_commit_resume): Update.
2760 * target.c (make_scoped_defer_target_commit_resume): Rename from
2761 make_cleanup_defer_target_commit_resume. Return a
2762 scoped_restore.
2763 * infrun.c (proceed): Use make_scoped_defer_target_commit_resume.
2764
9754d8c4
TT
27652017-09-29 Tom Tromey <tom@tromey.com>
2766
2767 * main.c (captured_main_1): Remove unused declaration.
2768 * spu-multiarch.c (parse_spufs_run): Remove unused declaration.
2769
99ef965c
TT
27702017-09-29 Tom Tromey <tom@tromey.com>
2771
2772 * symtab.c (search_symbols): Remove unused outer cleanup.
2773 (make_source_files_completion_list): Remove unused declaration.
2774
42518ba7
TT
27752017-09-29 Tom Tromey <tom@tromey.com>
2776
2777 * mt-tdep.c (mt_push_dummy_call): Use gdb::byte_vector.
2778
726b2169
TT
27792017-09-29 Tom Tromey <tom@tromey.com>
2780
2781 * xstormy16-tdep.c (xstormy16_push_dummy_call): Use
2782 gdb::byte_vector.
2783
55b06432
TT
27842017-09-29 Tom Tromey <tom@tromey.com>
2785
2786 * complaints.c (vcomplaint): Use std::string.
2787
8abcee91
TT
27882017-09-29 Tom Tromey <tom@tromey.com>
2789
2790 * tracepoint.c (trace_variable_command): Use std::string.
2791 (encode_actions_1): Remove unused declarations.
2792 (create_tsv_from_upload): Use std::string.
2793
6ad94bc7
TT
27942017-09-29 Tom Tromey <tom@tromey.com>
2795
2796 * cp-support.c (gdb_demangle): Use std::string.
2797
2003f3d8
TT
27982017-09-29 Tom Tromey <tom@tromey.com>
2799
2800 * stack.c (parse_frame_specification): Use std::string
2801 (info_frame_command): Use gdb::unique_xmalloc_ptr.
2802
8f8accb5
TT
28032017-09-29 Tom Tromey <tom@tromey.com>
2804
2805 * tilegx-tdep.c (tilegx_push_dummy_call): Use gdb::byte_vector.
2806
200aa7b1
TT
28072017-09-29 Tom Tromey <tom@tromey.com>
2808
2809 * utils.c (vfprintf_maybe_filtered): Use std::string.
2810 (vfprintf_unfiltered): Likewise.
2811
606aae8a
TT
28122017-09-29 Tom Tromey <tom@tromey.com>
2813
2814 * event-top.c (top_level_prompt): Return std::string.
2815 (display_gdb_prompt): Update.
2816
bd413795
TT
28172017-09-29 Tom Tromey <tom@tromey.com>
2818
2819 * unittests/common-utils-selftests.c (format): New function.
2820 (string_vprintf_tests): New function.
2821 (_initialize_common_utils_selftests): Register new tests.
2822 * common/common-utils.c (string_vprintf): New function.
2823 * common/common-utils.h (string_vprintf): Declare.
2824
256642e8
PA
28252017-09-29 Pedro Alves <palves@redhat.com>
2826
2827 * common/rsp-low.c (unpack_varlen_hex): Constify.
2828 * common/rsp-low.h (unpack_varlen_hex): Constify.
2829 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
2830 Constify.
2831 * remote.c (remote_set_permissions, read_ptid)
2832 (remote_current_thread, remote_get_threads_with_qthreadinfo)
2833 (remote_static_tracepoint_marker_at)
2834 (remote_static_tracepoint_markers_by_strid)
2835 (stop_reply_extract_thread, remote_parse_stop_reply): Constify.
2836 * tracepoint.c (parse_trace_status, parse_tracepoint_status)
2837 (parse_tracepoint_definition, parse_tsv_definition)
2838 (parse_static_tracepoint_marker_definition): Constify.
2839 * tracepoint.h (parse_static_tracepoint_marker_definition)
2840 (parse_trace_status, parse_tracepoint_status)
2841 (parse_tracepoint_definition, parse_tsv_definition): Constify.
2842
b6bb3468
PA
28432017-09-29 Pedro Alves <palves@redhat.com>
2844
2845 * remote.c (target_buf, target_buf_size): Delete.
2846 (remote_get_noisy_reply): Remove buf_p and sizeof_buf parameters.
2847 Use the connection's packet buffer instead.
2848 All callers adjusted.
2849 (_initialize_remote): Remove references to target_buf and
2850 target_buf_size.
2851
b2f8eb7a
PA
28522017-09-28 Pedro Alves <palves@redhat.com>
2853
2854 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
2855 unittests/common-utils-selftests.c.
2856 (SUBDIR_UNITTESTS_OBS): Add common-utils-selftests.o.
2857 (COMMON_OBS): Remove utils-selftests.o.
2858 * utils-selftests.c: Move to ...
2859 * unittests/common-utils-selftests.c: ... here and rename self
2860 test to "string_printf".
2861
08302ed2
DE
28622017-09-28 Alexander Shaposhnikov <alexander.v.shaposhnikov@gmail.com> (tiny patch)
2863
2864 * dwarf2read.c (open_and_init_dwp_file): Protect against dwp_file
2865 having NULL cus or tus.
2866
96a5a1d3
UW
28672017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
2868
2869 * arm-tdep.c: (convert_from_extended): Remove.
2870 (convert_to_extended): Likewise.
2871 (arm_extract_return_value): Use convert_typed_floating.
2872 (arm_store_return_value): Likewise.
2873
2874 * sh-tdep.h (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
2875 * sh-tdep.c: Do not include "floatformat.h".
2876 (sh_littlebyte_bigword_type): New function.
2877 (sh_register_convert_to_virtual): Use convert_typed_floating.
2878 (sh_register_convert_to_raw): Likewise.
2879 * sh64-tdep.c: (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
2880 (sh64_littlebyte_bigword_type): New function.
2881 (sh64_extract_return_value): Use convert_typed_floating.
2882 (sh64_register_convert_to_virtual): Likewise.
2883 (sh64_register_convert_to_raw): Likewise.
2884
0db7851f
UW
28852017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
2886
2887 * doublest.h (floatformat_from_type): Move to gdbtypes.h.
2888 * doublest.c (floatformat_from_type): Move to gdbtypes.c.
2889
2890 * gdbtypes.h (union type_specific): Make field floatformat hold
2891 just a single struct floatformat, not an array.
2892 (floatformat_from_type): Move here.
2893 * gdbtypes.c (floatformat_from_type): Move here. Update to
2894 changed TYPE_FLOATFORMAT definition.
2895 (verify_floatformat): Update to changed TYPE_FLOATFORMAT.
2896 (recursive_dump_type): Likewise.
2897 (init_float_type): Install correct floatformat for byte order.
2898 (arch_float_type): Likewise.
2899
77b7c781
UW
29002017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
2901
2902 * gdbtypes.c (init_type): Change incoming argument from
2903 length-in-bytes to length-in-bits. Assert length is a
2904 multiple of TARGET_CHAR_BITS.
2905 (arch_type, arch_flags_type): Likewise.
2906 (init_integer_type): Update call to init_type.
2907 (init_character_type): Likewise.
2908 (init_boolean_type): Likewise.
2909 (init_float_type): Likewise.
2910 (init_decfloat_type): Likewise.
2911 (init_complex_type): Likewise.
2912 (init_pointer_type): Likewise.
2913 (objfile_type): Likewise.
2914 (arch_integer_type): Update call to arch_type.
2915 (arch_character_type): Likewise.
2916 (arch_boolean_type): Likewise.
2917 (arch_float_type): Likewise.
2918 (arch_decfloat_type): Likewise.
2919 (arch_complex_type): Likewise.
2920 (arch_pointer_type): Likewise.
2921 (gdbtypes_post_init): Likewise.
2922
2923 * dwarf2read.c (dwarf2_init_float_type): Update call to init_type.
2924 (read_base_type): Likewise.
2925 * mdebugread.c (basic_type): Likewise.
2926 * stabsread.c (dbx_init_float_type): Likewise.
2927 (rs6000_builtin_type): Likewise.
2928 (read_range_type): Likewise. Also, fix call to init_integer_type
2929 with erroneous length argument.
2930
2931 * ada-lang.c (ada_language_arch_info): Update call to arch_type.
2932 * d-lang.c (build_d_types): Likewise.
2933 * f-lang.c (build_fortran_types): Likewise.
2934 * go-lang.c (build_go_types): Likewise.
2935 * opencl-lang.c (build_opencl_types): Likewise.
2936 * jit.c (finalize_symtab): Likewise.
2937 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
2938 (build_std_type_info_type): Likewise.
2939 * target-descriptions.c (tdesc_gdb_type): Likewise. Also,
2940 update call to arch_flags_type.
2941
2942 * linux-tdep.c (linux_get_siginfo_type_with_fields): Update call to
2943 arch_type.
2944 * fbsd-tdep.c (fbsd_get_siginfo_type): Likewise.
2945 * windows-tdep.c (windows_get_tlb_type): Likewise.
2946
2947 * avr-tdep.c (avr_gdbarch_init): Update call to arch_type.
2948 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
2949 * m32c-tdep.c (make_types): Likewise.
2950 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
2951 (rl78_psw_type): Update call to arch_flags_type.
2952 * m68k-tdep.c (m68k_ps_type): Update call to arch_flags_type.
2953 * rx-tdep.c (rx_psw_type): Likewise.
2954 (rx_fpsw_type): Likewise.
2955 * sparc-tdep.c (sparc_psr_type): Likewise.
2956 (sparc_fsr_type): Likewise.
2957 * sparc64-tdep.c (sparc64_pstate_type): Likewise.
2958 (sparc64_ccr_type): Likewise.
2959 (sparc64_fsr_type): Likewise.
2960 (sparc64_fprs_type): Likewise.
2961
f21b4d5c
TT
29622017-09-27 Tom Tromey <tom@tromey.com>
2963
2964 * findcmd.c (find_command): Constify.
2965
643c2ffa
TT
29662017-09-27 Tom Tromey <tom@tromey.com>
2967
2968 * ada-tasks.c (task_command_1, task_command): Constify.
2969
510e5e56
TT
29702017-09-27 Tom Tromey <tom@tromey.com>
2971
2972 * symtab.c (maintenance_print_symbol_cache)
2973 (maintenance_flush_symbol_cache)
2974 (maintenance_print_symbol_cache_statistics): Constify.
2975
e503b191
TT
29762017-09-27 Tom Tromey <tom@tromey.com>
2977
2978 * inferior.c (detach_inferior_command, kill_inferior_command)
2979 (inferior_command): Constify.
2980
4e001312
TT
29812017-09-27 Tom Tromey <tom@tromey.com>
2982
2983 * regcache.c (regcache_print, maintenance_print_registers)
2984 (maintenance_print_raw_registers)
2985 (maintenance_print_cooked_registers)
2986 (maintenance_print_register_groups)
2987 (maintenance_print_remote_registers): Constify.
2988
77763700
TT
29892017-09-27 Tom Tromey <tom@tromey.com>
2990
2991 * printcmd.c (map_display_numbers, undisplay_command)
2992 (enable_disable_display_command, enable_display_command)
2993 (disable_display_command): Constify.
2994
4495129a
TT
29952017-09-27 Tom Tromey <tom@tromey.com>
2996
2997 * breakpoint.h (delete_command): Don't declare.
2998 * breakpoint.c (delete_command, enable_once_command)
2999 (enable_count_command, enable_delete_command, breakpoint_1)
3000 (maintenance_info_breakpoints, stopin_command, stopat_command)
3001 (delete_command, delete_trace_command, save_breakpoints)
3002 (save_breakpoints_command, save_tracepoints_command): Constify.
3003
3088cf40
TT
30042017-09-27 Tom Tromey <tom@tromey.com>
3005
3006 * macrocmd.c (macro_expand_command, macro_expand_once_command)
3007 (skip_ws, extract_identifier, macro_define_command)
3008 (macro_undef_command, macro_list_command): Constify.
3009
69f476a3
TT
30102017-09-27 Tom Tromey <tom@tromey.com>
3011
3012 * infcmd.c (environment_info, set_environment_command)
3013 (unset_environment_command, path_info, info_proc_cmd_1)
3014 (info_proc_cmd_mappings, info_proc_cmd_stat)
3015 (info_proc_cmd_status, info_proc_cmd_cwd, info_proc_cmd_cmdline)
3016 (info_proc_cmd_exe, info_proc_cmd_all): Constify.
3017
c4a3e68e
TT
30182017-09-27 Tom Tromey <tom@tromey.com>
3019
3020 * i386-tdep.c (i386_mpx_info_bounds, i386_mpx_set_bounds):
3021 Constify.
3022
c9d31bd6
TT
30232017-09-27 Tom Tromey <tom@tromey.com>
3024
3025 * symfile-mem.c (add_symbol_file_from_memory_command): Constify.
3026
1f3f85eb
TT
30272017-09-27 Tom Tromey <tom@tromey.com>
3028
3029 * demangle.c (demangle_command): Constify.
3030
9c504b5d
TT
30312017-09-27 Tom Tromey <tom@tromey.com>
3032
3033 * progspace.c (maintenance_info_program_spaces_command):
3034 Constify.
3035
6663cf91
TT
30362017-09-27 Tom Tromey <tom@tromey.com>
3037
3038 * compile/compile.c (check_raw_argument, compile_file_command)
3039 (compile_code_command, compile_print_command): Constify.
3040
34e5fa26
TT
30412017-09-27 Tom Tromey <tom@tromey.com>
3042
3043 * reggroups.c (maintenance_print_reggroups): Constify.
3044
8384c356
TT
30452017-09-27 Tom Tromey <tom@tromey.com>
3046
3047 * dwarf2read.c (save_gdb_index_command): Constify.
3048
884beb0c
TT
30492017-09-27 Tom Tromey <tom@tromey.com>
3050
3051 * stap-probe.c (info_probes_stap_command): Constify.
3052
e0b2930c
TT
30532017-09-27 Tom Tromey <tom@tromey.com>
3054
3055 * fork-child.c (unset_exec_wrapper_command): Constify.
3056
f938677d
TT
30572017-09-27 Tom Tromey <tom@tromey.com>
3058
3059 * btrace.c (get_uint, get_context_size, no_chunk)
3060 (maint_btrace_packet_history_cmd)
3061 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
3062 (maint_info_btrace_cmd): Constify.
3063
8949cb87
TT
30642017-09-27 Tom Tromey <tom@tromey.com>
3065
3066 * reverse.c (delete_bookmark_command): Constify.
3067
ac88e2de
TT
30682017-09-27 Tom Tromey <tom@tromey.com>
3069
3070 * remote.c (set_memory_packet_size)
3071 (set_memory_write_packet_size, show_memory_write_packet_size)
3072 (set_memory_read_packet_size, show_memory_read_packet_size)
3073 (compare_sections_command, packet_command, remote_put_command)
3074 (remote_get_command, remote_delete_command): Constify.
3075
bd4c9dfe
TT
30762017-09-27 Tom Tromey <tom@tromey.com>
3077
3078 * mips-tdep.c (show_mipsfpu_command, set_mipsfpu_single_command)
3079 (set_mipsfpu_double_command, set_mipsfpu_none_command)
3080 (set_mipsfpu_auto_command): Constify.
3081
5e93d4c6
TT
30822017-09-27 Tom Tromey <tom@tromey.com>
3083
3084 * cli/cli-cmds.h (cd_command): Constify.
3085 * cli/cli-cmds.c (cd_command): Constify.
3086
fc41a75b
TT
30872017-09-27 Tom Tromey <tom@tromey.com>
3088
3089 * thread.c (thread_name_command, thread_find_command): Constify.
3090
67810076
TT
30912017-09-27 Tom Tromey <tom@tromey.com>
3092
3093 * probe.c (enable_probes_command, disable_probes_command):
3094 Constify.
3095
1d8b34a7
TT
30962017-09-27 Tom Tromey <tom@tromey.com>
3097
3098 * symfile.c (symbol_file_command): Constify.
3099 * gdbcore.h (deprecated_file_changed_hook): Constify.
3100 * exec.c (deprecated_file_changed_hook, exec_file_command)
3101 (file_command): Constify.
3102 * defs.h (symbol_file_command): Constify.
3103
442019e1
TT
31042017-09-27 Tom Tromey <tom@tromey.com>
3105
3106 * remote-fileio.c (set_system_call_allowed)
3107 (show_system_call_allowed): Constify.
3108
2983f7cb
TT
31092017-09-27 Tom Tromey <tom@tromey.com>
3110
3111 * tracepoint.c (delete_trace_variable_command)
3112 (tfind_end_command, tfind_start_command, tfind_pc_command)
3113 (tfind_tracepoint_command, tfind_line_command)
3114 (tfind_range_command, tfind_outside_command): Constify.
3115
4fd41b24
TT
31162017-09-27 Tom Tromey <tom@tromey.com>
3117
3118 * ax-gdb.c (maint_agent_printf_command, agent_command)
3119 (agent_eval_command): Constify.
3120
f2fc3015
TT
31212017-09-27 Tom Tromey <tom@tromey.com>
3122
3123 * tracepoint.c (info_scope_command): Constify.
3124 * python/python.c (gdbpy_decode_line): Constify.
3125 * python/py-breakpoint.c (bppy_init): Constify.
3126 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Constify.
3127 * location.h: (new_linespec_location)
3128 (string_to_event_location_basic, string_to_event_location):
3129 Constify.
3130 * location.c (new_linespec_location)
3131 (string_to_event_location_basic, string_to_event_location):
3132 Constify.
3133 * linespec.h (decode_line_with_current_source)
3134 (decode_line_with_last_displayed, linespec_lex_to_end): Constify.
3135 * linespec.c (linespec_lex_to_end)
3136 (decode_line_with_current_source)
3137 (decode_line_with_last_displayed): Constify.
3138 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x):
3139 Constify.
3140 * cli/cli-cmds.c (edit_command, list_command): Constify.
3141 * breakpoint.h (until_break_command, watch_command_wrapper)
3142 (awatch_command_wrapper, rwatch_command_wrapper)
3143 (init_ada_exception_breakpoint): Constify.
3144 * breakpoint.c (break_command_1, dprintf_command)
3145 (break_range_command, watch_command_wrapper)
3146 (rwatch_command_wrapper, awatch_command_wrapper)
3147 (until_break_command, init_ada_exception_breakpoint)
3148 (strace_marker_create_sals_from_location, trace_command)
3149 (ftrace_command, strace_command, struct tracepoint): Constify.
3150 * ax-gdb.c (agent_command_1): Constify.
3151 * ada-lang.c (ada_exception_sal): Constify.
3152
8c2f95f4
TT
31532017-09-27 Tom Tromey <tom@tromey.com>
3154
3155 * record.c (cmd_record_delete, cmd_record_stop, cmd_record_save)
3156 (cmd_record_goto_begin, cmd_record_goto_end, get_insn_number)
3157 (get_context_size, no_chunk, get_insn_history_modifiers)
3158 (cmd_record_insn_history, get_call_history_modifiers)
3159 (cmd_record_call_history): Constify.
3160
a0d65762
TT
31612017-09-27 Tom Tromey <tom@tromey.com>
3162
3163 * source.c (show_substitute_path_command)
3164 (unset_substitute_path_command, set_substitute_path_command):
3165 Constify.
3166
58971144
TT
31672017-09-27 Tom Tromey <tom@tromey.com>
3168
3169 * typeprint.c (maintenance_print_type): Constify.
3170 * maint.c (maintenance_dump_me, maintenance_demangle)
3171 (maintenance_time_display, maintenance_info_sections)
3172 (maintenance_print_statistics, maintenance_deprecate)
3173 (maintenance_undeprecate): Constify.
3174 (maintenance_do_deprecate): Constify. Use std::string.
3175 (maintenance_selftest): Constify.
3176 * gdbtypes.h (maintenance_print_type): Constify.
3177
c482f52c
TT
31782017-09-27 Tom Tromey <tom@tromey.com>
3179
3180 * hppa-tdep.c (unwind_command): Constify.
3181
e100df1a
TT
31822017-09-27 Tom Tromey <tom@tromey.com>
3183
3184 * target-descriptions.c (unset_tdesc_filename_cmd)
3185 (maint_print_c_tdesc_cmd, maintenance_check_xml_descriptions):
3186 Constify.
3187
31d56ade
TT
31882017-09-27 Tom Tromey <tom@tromey.com>
3189
3190 * dummy-frame.c (maintenance_print_dummy_frames): Constify.
3191
b961da0b
TT
31922017-09-27 Tom Tromey <tom@tromey.com>
3193
3194 * tui/tui.c (tui_enable_command, tui_disable_command): Constify.
3195
e2d8ae16
TT
31962017-09-27 Tom Tromey <tom@tromey.com>
3197
3198 * tui/tui-regs.c (tui_reg_command): Constify.
3199
863779b0
TT
32002017-09-27 Tom Tromey <tom@tromey.com>
3201
3202 * skip.c (skip_file_command, skip_function_command)
3203 (skip_enable_command, skip_disable_command, skip_delete_command):
3204 Constify.
3205
cdb34d4a
TT
32062017-09-27 Tom Tromey <tom@tromey.com>
3207
3208 * record-btrace.c (cmd_record_btrace_bts_start)
3209 (cmd_record_btrace_pt_start): Constify.
3210
e99c83e7
TT
32112017-09-27 Tom Tromey <tom@tromey.com>
3212
3213 * symmisc.c (maintenance_print_symbols)
3214 (maintenance_print_msymbols, maintenance_print_objfiles)
3215 (maintenance_info_symtabs, maintenance_check_symtabs)
3216 (maintenance_expand_symtabs, maintenance_info_line_tables):
3217 Constify.
3218
32faf971
TT
32192017-09-27 Tom Tromey <tom@tromey.com>
3220
3221 * top.c (new_ui_command): Constify.
3222
2cf311eb
TT
32232017-09-27 Tom Tromey <tom@tromey.com>
3224
3225 * symfile.c (add_symbol_file_command)
3226 (remove_symbol_file_command, list_overlays_command)
3227 (map_overlay_command, unmap_overlay_command)
3228 (overlay_auto_command, overlay_manual_command)
3229 (overlay_off_command, overlay_load_command): Constify.
3230
e6738699
TT
32312017-09-27 Tom Tromey <tom@tromey.com>
3232
3233 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
3234 (info_spu_mailbox_command, info_spu_dma_command)
3235 (info_spu_proxydma_command): Constify.
3236
aa360cd5
TT
32372017-09-27 Tom Tromey <tom@tromey.com>
3238
3239 * cli/cli-logging.c (set_logging_on, set_logging_off): Constify.
3240
898241a5
TT
32412017-09-27 Tom Tromey <tom@tromey.com>
3242
3243 * cli/cli-script.c (user_defined_command): Constify.
3244
2d0ac106
TT
32452017-09-27 Tom Tromey <tom@tromey.com>
3246
3247 * cli/cli-dump.c (dump_memory_command, dump_value_command)
3248 (dump_srec_memory, dump_srec_value, dump_ihex_memory)
3249 (dump_ihex_value, dump_verilog_memory, dump_verilog_value)
3250 (dump_tekhex_memory, dump_tekhex_value, dump_binary_memory)
3251 (dump_binary_value, append_binary_memory, append_binary_value):
3252 Constify.
3253 (struct dump_context) <func>: Constify.
3254 (add_dump_command): Update.
3255
dede02ce
TT
32562017-09-27 Tom Tromey <tom@tromey.com>
3257
3258 * cli/cli-cmds.c (show_version, show_configuration)
3259 (source_command, show_user): Constify.
3260
d3cb6b99
TT
32612017-09-27 Tom Tromey <tom@tromey.com>
3262
3263 * target.c (maintenance_print_target_stack): Constify.
3264
1970a12f
TT
32652017-09-27 Tom Tromey <tom@tromey.com>
3266
3267 * interps.c (interpreter_exec_cmd): Constify.
3268
41243651
TT
32692017-09-27 Tom Tromey <tom@tromey.com>
3270
3271 * record-full.c (cmd_record_full_restore): Constify.
3272
4465d9db
TT
32732017-09-27 Tom Tromey <tom@tromey.com>
3274
3275 * memattr.c (enable_mem_command, disable_mem_command)
3276 (delete_mem_command): Constify.
3277
ad25e423
TT
32782017-09-27 Tom Tromey <tom@tromey.com>
3279
3280 * value.c (show_convenience): Constify.
3281
d64097b1
TT
32822017-09-27 Tom Tromey <tom@tromey.com>
3283
3284 * gdbcore.h (core_file_command): Update.
3285 * corefile.c (core_file_command): Constify.
3286
4d4589ef
TT
32872017-09-27 Tom Tromey <tom@tromey.com>
3288
3289 * user-regs.c (maintenance_print_user_registers): Constify.
3290
32a7bf17
TT
32912017-09-27 Tom Tromey <tom@tromey.com>
3292
3293 * cp-namespace.c (maintenance_cplus_namespace): Constify.
3294
4a475551
TT
32952017-09-27 Tom Tromey <tom@tromey.com>
3296
3297 * cp-support.c (first_component_command): Constify.
3298
990b9f9f
TT
32992017-09-27 Tom Tromey <tom@tromey.com>
3300
3301 * psymtab.c (maintenance_print_psymbols)
3302 (maintenance_info_psymtabs, maintenance_check_psymtabs):
3303 Constify.
3304
c281872e
TT
33052017-09-27 Tom Tromey <tom@tromey.com>
3306
3307 * windows-tdep.c (display_tib): Constify.
3308
5b64bf74
TT
33092017-09-27 Tom Tromey <tom@tromey.com>
3310
3311 * linux-fork.c (delete_checkpoint_command)
3312 (detach_checkpoint_command): Constify.
3313
4ada038f
TT
33142017-09-27 Tom Tromey <tom@tromey.com>
3315
3316 * cp-abi.c (set_cp_abi_cmd, show_cp_abi_cmd): Constify.
3317
57f5a81b
TT
33182017-09-27 Tom Tromey <tom@tromey.com>
3319
3320 * arc-tdep.c (dump_arc_instruction_command): Constify.
3321
b0a8e6c4
TT
33222017-09-27 Tom Tromey <tom@tromey.com>
3323
3324 * valprint.c (set_radix, show_radix): Constify.
3325
8d97dc1c
TT
33262017-09-27 Tom Tromey <tom@tromey.com>
3327
3328 * dtrace-probe.c (info_probes_dtrace_command): Constify.
3329
eb7c454d
TT
33302017-09-27 Tom Tromey <tom@tromey.com>
3331
3332 * command.h (not_just_help_class_command): Update.
3333 * cli/cli-decode.h (not_just_help_class_command): Update.
3334 * cli/cli-decode.c (not_just_help_class_command): Constify.
3335
e4e33335
TT
33362017-09-27 Tom Tromey <tom@tromey.com>
3337
3338 * gdb_bfd.c (maintenance_info_bfds): Constify.
3339
0450cc4c
TT
33402017-09-27 Tom Tromey <tom@tromey.com>
3341
3342 * cli/cli-decode.c (add_cmd, set_cmd_cfunc): New function
3343 overloads.
3344 (do_add_cmd): Rename from add_cmd. Don't call set_cmd_cfunc.
3345 (do_const_cfunc): New function.
3346 (cmd_cfunc_eq): New overload.
3347 (cli_user_command_p): Check do_const_cfunc.
3348 * cli/cli-decode.h (struct cmd_list_element) <function>: New field
3349 const_cfunc.
3350 * command.h (add_cmd): Add const overload and no-function
3351 overload.
3352 (set_cmd_cfunc): Add const overload.
3353 (cmd_const_cfunc_ftype): Declare.
3354 (cmd_cfunc_eq): Add const overload.
3355 * breakpoint.c, cli-cmds.c, cli-dump.c, guile/scm-cmd.c,
3356 python/py-cmd.c, target.c, tracepoint.c: Use no-function add_cmd
3357 overload.
3358
a9bbfbd8
TT
33592017-09-27 Tom Tromey <tom@tromey.com>
3360
3361 * macroexp.c (get_next_token_for_substitution): New function.
3362 (substitute_args): Call it. Check for __VA_OPT__.
3363
5230b05a
WT
33642017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
3365 Pedro Alves <palves@redhat.com>
3366
3367 * dwarf2read.c (dwarf2_cu): Remove field producer_is_icc and add
3368 producer_is_icc_lt_14.
3369 (producer_is_icc_lt_14): New function.
3370 (check_producer): Add code for checking version of ICC.
3371 (producer_is_icc): Move to producer.c.
3372 (read_structure_type): Restrict ICC workaround to ICC<14.
3373 * producer.c: Include selftest.h.
3374 (producer_is_icc, producer_parsing_tests, _initialize_producer):
3375 New functions.
3376 * producer.h (producer_is_icc): New declaration.
3377
b32b108a
WT
33782017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
3379
3380 * Makefile.in (SFILES): Add producer.c.
3381 (COMMON_OBS): Add producer.o
3382 * amd64-tdep.c (producer.h): Add new include.
3383 * dwarf2read.c (producer.h): Add new include.
3384 * producer.c: New file.
3385 * producer.h: New file.
3386 * utils.c (producer_is_gcc, producer_is_gcc_ge_4): Move to
3387 producer.c.
3388 * utils.h (producer_is_gcc, producer_is_gcc_ge_4): Move to
3389 producer.h.
3390
5007d765
MK
33912017-09-26 Matthias Klose <doko@ubuntu.com>
3392
3393 * configure.ac: Search ncursesw before ncurses.
3394 Check ncursesw/ncurses.h before ncurses/ncurses.h.
3395 * gdb_curses.h: Include <ncursesw/ncurses.h>
3396 * config.in, configure: Regenerate.
3397
281c4447
RO
33982017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3399
3400 PR gdb/22185
3401 * configure.host <*-*-solaris2.[01], *-*-solaris2.[2-9]*>: Mark as
3402 obsolete.
3403 Use gdb_host sol2 for i[34567]86-*-solaris2*, x86_64-*-solaris2*.
3404 Remove i386sol2 support.
3405 * configure.nat <i386sol2>: Remove.
3406 <sol2-64>: Fold into ...
3407 <sol2>: ... this.
3408 Move common settings to default section.
3409 Add sol-thread.o.
3410 * configure.tgt <i[34567]86-*-solaris2.1[0-9]*,
3411 x86_64-*-solaris2.1[0-9]*>: Rename to ...
3412 <i[34567]86-*-solaris2*, x86_64-*-solaris2*>: ... this.
3413 <i[34567]86-*-solaris*>: Remove.
3414 <sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*>: Remove.
3415
3416 * configure.ac: Remove wctype in libw check.
3417 (_MSE_INT_H): Don't define on Solaris 7-9.
3418 <solaris*>: Remove libthread_db.so.1 check.
3419 * configure: Regenerate.
3420 * config.in: Regenerate.
3421
3422 * proc-service.c: Remove PROC_SERVICE_IS_OLD handling.
3423 (gdb_ps_prochandle_t, gdb_ps_read_buf_t, gdb_ps_write_buf_t)
3424 (gdb_ps_size_t): Remove.
3425 Use base types in users.
3426 * sol-thread.c: Likewise, also for gdb_ps_addr_t.
3427
3428 * NEWS (Changes since GDB 8.0): Document Solaris 2.0-9 removal.
3429
39b06c20
RO
34302017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3431
3432 PR build/22206
3433 * sparc64-tdep.c (adi_tag_fd): Print pid as long.
3434 (adi_is_addr_mapped): Likewise.
3435 (PSR_ICC): Don't redefine.
3436 (PSR_IMPL): Likewise.
3437
6c3e20f1
TT
34382017-09-25 Tom Tromey <tom@tromey.com>
3439
3440 * regcache.c (regcache::dump): Use string_printf.
3441
b292235f
TT
34422017-09-25 Tom Tromey <tom@tromey.com>
3443
3444 * regcache.c (class regcache_invalidator): New.
3445 (struct register_to_invalidate): Remove.
3446 (make_cleanup_regcache_invalidate): Remove.
3447 (regcache::raw_write): Use regcache_invalidator.
3448
9ac86b52
TT
34492017-09-25 Tom Tromey <tom@tromey.com>
3450
3451 * spu-tdep.c (spu2ppu_sniffer): Update.
3452 * regcache.h (make_cleanup_regcache_xfree): Don't declare.
3453 * regcache.c (do_regcache_xfree, make_cleanup_regcache_xfree):
3454 Remove.
3455 * ppc-linux-tdep.c (ppu2spu_sniffer): Update.
3456 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Update.
3457 * frame.h (frame_save_as_regcache): Return std::unique_ptr.
3458 * frame.c (frame_save_as_regcache): Return std::unique_ptr.
3459 (frame_pop): Update.
3460
c0e383c6
TT
34612017-09-25 Tom Tromey <tom@tromey.com>
3462
3463 * spu-tdep.c (spu2ppu_dealloc_cache): Use delete.
3464 * regcache.h (regcache_xfree): Don't declare.
3465 * regcache.c (regcache_xfree): Remove.
3466 (do_regcache_xfree): Use delete.
3467 * ppc-linux-tdep.c (ppu2spu_dealloc_cache): Use delete.
3468 * linux-fork.c (free_fork): Use delete.
3469 (fork_save_infrun_state): Likewise.
3470 * jit.c (jit_dealloc_cache): Use delete.
3471 * infrun.c (discard_infcall_suspend_state): Use delete.
3472
791199cc
TT
34732017-09-25 Tom Tromey <tom@tromey.com>
3474
3475 * regcache.h (regcache_xmalloc): Don't declare.
3476 (regcache_raw_set_cached_value): Update comment.
3477 * regcache.c (regcache_xmalloc): Remove.
3478 * ppc-linux-tdep.c (ppu2spu_sniffer): Use new.
3479 * jit.c (jit_frame_sniffer): Use new.
3480 * frame.c (frame_save_as_regcache): Use new.
3481
289e23aa
AA
34822017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
3483
3484 * NEWS: Advertise support for guarded-storage registers on IBM z.
3485
1b63490c
AA
34862017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
3487
3488 * s390-linux-nat.c (have_regset_gs): New static variable.
3489 (s390_linux_fetch_inferior_registers): Handle guarded-storage
3490 control block and guarded-storage broadcast control regsets.
3491 (s390_read_description): Detect whether the target has
3492 guarded-storage support, return appropriate tdesc.
3493 * s390-linux-tdep.c (features/s390-gs-linux64.c): New include.
3494 (features/s390x-gs-linux64.c): Likewise.
3495 (struct gdbarch_tdep) <have_gs>: New field.
3496 (s390_regmap_gs, s390_regmap_gsbc, s390_gs_regset)
3497 (s390_gsbc_regset): New variables.
3498 (s390_iterate_over_regset_sections): Iterate over s390_gs_regset
3499 and s390_gsbc_regset, if applicable.
3500 (s390_core_read_description): Check whether core file was from a
3501 target with guarded-storage support; include appropriate regsets.
3502 (s390_gdbarch_init): Add registers for guarded-storage support.
3503 (_initialize_s390_tdep): Initialize new target descriptions that
3504 include registers for guarded-storage support.
3505 * s390-linux-tdep.h (HWCAP_S390_GS, S390_GSD_REGNUM)
3506 (S390_GSSM_REGNUM, S390_GSEPLA_REGNUM)
3507 (S390_BC_GSD_REGNUM, S390_BC_GSSM_REGNUM): New defines.
3508 (S390_NUM_REGS): Adjust macro definition.
3509 (s390_gs_regset, s390_gsbc_regset, tdesc_s390_gs_linux64)
3510 (tdesc_s390x_gs_linux64): New declarations.
3511
96235dc1
AA
35122017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
3513
3514 * features/s390-gs-linux64.xml: New file.
3515 * features/s390-gs.xml: New file.
3516 * features/s390-gsbc.xml: New file.
3517 * features/s390x-gs-linux64.xml: New file.
3518 * features/Makefile (WHICH): Add s390-gs-linux64 and
3519 s390x-gs-linux64.
3520 (s390-gs-linux64-expedite, s390x-gs-linux64-expedite): New macros.
3521 (XMLTOC): Add s390-gs-linux64.xml and s390x-linux64.xml.
3522 * features/s390-gs-linux64.c: New generated file.
3523 * features/s390x-gs-linux64.c: New file.
3524 * regformats/s390-gs-linux64.dat: New file.
3525 * regformats/s390x-gs-linux64.dat: New file.
3526
b4a7c699
TT
35272017-09-23 Tom Tromey <tom@tromey.com>
3528
3529 * defs.h (make_cleanup_override_quit_handler): Don't declare.
3530
c2f97536
TT
35312017-09-22 Tom Tromey <tom@tromey.com>
3532
3533 * utils.c (class scoped_input_handler) <m_quit_handler>: Change
3534 type to scoped_restore_tmpl.
3535 <scoped_input_handler>: Initialize m_quit_handler directly.
3536
43573013
SDJ
35372017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
3538
3539 * cli/cli-cmds.c (pwd_command): Use "getcwd (NULL, 0)".
3540 (cd_command): Likewise. Free "current_directory" before
3541 assigning to it.
3542 * main.c (captured_main_1): Use "getcwd (NULL, 0)".
3543 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Likewise.
3544 * top.c (gdb_dirbuf): Remove global declaration.
3545 * top.h (gdb_dirbuf): Likewise.
3546
6ec2e0f5
SDJ
35472017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
3548
3549 * gnulib/aclocal.m4: Regenerate.
3550 * gnulib/config.in: Regenerate.
3551 * gnulib/configure: Regenerate.
3552 * gnulib/import/Makefile.am: Regenerate.
3553 * gnulib/import/Makefile.in: Regenerate.
3554 * gnulib/import/assure.h: New file.
3555 * gnulib/import/at-func.c: Likewise
3556 * gnulib/import/chdir-long.c: New file.
3557 * gnulib/import/chdir-long.h: New file.
3558 * gnulib/import/cloexec.c: New file.
3559 * gnulib/import/cloexec.h: New file.
3560 * gnulib/import/close.c: New file.
3561 * gnulib/import/closedir.c: New file.
3562 * gnulib/import/dirent-private.h: New file.
3563 * gnulib/import/dup-safer.c: New file.
3564 * gnulib/import/dup.c: New file.
3565 * gnulib/import/dup2.c: New file.
3566 * gnulib/import/error.c: New file.
3567 * gnulib/import/error.h: New file.
3568 * gnulib/import/exitfail.c: New file.
3569 * gnulib/import/exitfail.h: New file.
3570 * gnulib/import/fchdir.c: New file.
3571 * gnulib/import/fcntl.c: New file.
3572 * gnulib/import/fcntl.in.h: New file.
3573 * gnulib/import/fd-hook.c: New file.
3574 * gnulib/import/fd-hook.h: New file.
3575 * gnulib/import/fd-safer.c: New file.
3576 * gnulib/import/fdopendir.c: New file.
3577 * gnulib/import/filename.h: New file.
3578 * gnulib/import/filenamecat-lgpl.c: New file.
3579 * gnulib/import/filenamecat.h: New file.
3580 * gnulib/import/fstat.c: New file.
3581 * gnulib/import/fstatat.c: New file.
3582 * gnulib/import/getcwd-lgpl.c: New file.
3583 * gnulib/import/getcwd.c: New file.
3584 * gnulib/import/getdtablesize.c: New file.
3585 * gnulib/import/getlogin_r.c: New file.
3586 * gnulib/import/getprogname.c: New file.
3587 * gnulib/import/getprogname.h: New file.
3588 * gnulib/import/gettext.h: New file.
3589 * gnulib/import/glob-libc.h: New file.
3590 * gnulib/import/glob.c: New file.
3591 * gnulib/import/glob.in.h: New file.
3592 * gnulib/import/intprops.h: New file.
3593 * gnulib/import/m4/chdir-long.m4: New file.
3594 * gnulib/import/m4/close.m4: New file.
3595 * gnulib/import/m4/closedir.m4: New file.
3596 * gnulib/import/m4/d-ino.m4: New file.
3597 * gnulib/import/m4/d-type.m4: New file.
3598 * gnulib/import/m4/dup.m4: New file.
3599 * gnulib/import/m4/dup2.m4: New file.
3600 * gnulib/import/m4/error.m4: New file.
3601 * gnulib/import/m4/fchdir.m4: New file.
3602 * gnulib/import/m4/fcntl.m4: New file.
3603 * gnulib/import/m4/fcntl_h.m4: New file.
3604 * gnulib/import/m4/fdopendir.m4: New file.
3605 * gnulib/import/m4/filenamecat.m4: New file.
3606 * gnulib/import/m4/fstat.m4: New file.
3607 * gnulib/import/m4/fstatat.m4: New file.
3608 * gnulib/import/m4/getcwd-abort-bug.m4: New file.
3609 * gnulib/import/m4/getcwd-path-max.m4: New file.
3610 * gnulib/import/m4/getcwd.m4: New file.
3611 * gnulib/import/m4/getdtablesize.m4: New file.
3612 * gnulib/import/m4/getlogin_r.m4: New file.
3613 * gnulib/import/m4/getprogname.m4: New file.
3614 * gnulib/import/m4/glob.m4: New file.
3615 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
3616 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
3617 * gnulib/import/m4/mempcpy.m4: New file.
3618 * gnulib/import/m4/memrchr.m4: New file.
3619 * gnulib/import/m4/mode_t.m4: New file.
3620 * gnulib/import/m4/msvc-inval.m4: New file.
3621 * gnulib/import/m4/msvc-nothrow.m4: New file.
3622 * gnulib/import/m4/open.m4: New file.
3623 * gnulib/import/m4/openat.m4: New file.
3624 * gnulib/import/m4/opendir.m4: New file.
3625 * gnulib/import/m4/readdir.m4: New file.
3626 * gnulib/import/m4/realloc.m4: New file.
3627 * gnulib/import/m4/rewinddir.m4: New file.
3628 * gnulib/import/m4/save-cwd.m4: New file.
3629 * gnulib/import/m4/strdup.m4: New file.
3630 * gnulib/import/m4/strerror.m4: New file.
3631 * gnulib/import/m4/unistd-safer.m4: New file.
3632 * gnulib/import/mempcpy.c: New file.
3633 * gnulib/import/memrchr.c: New file.
3634 * gnulib/import/msvc-inval.c: New file.
3635 * gnulib/import/msvc-inval.h: New file.
3636 * gnulib/import/msvc-nothrow.c: New file.
3637 * gnulib/import/msvc-nothrow.h: New file.
3638 * gnulib/import/open.c: New file.
3639 * gnulib/import/openat-die.c: New file.
3640 * gnulib/import/openat-priv.h: New file.
3641 * gnulib/import/openat-proc.c: New file.
3642 * gnulib/import/openat.c: New file.
3643 * gnulib/import/openat.h: New file.
3644 * gnulib/import/opendir.c: New file.
3645 * gnulib/import/pipe-safer.c: New file.
3646 * gnulib/import/readdir.c: New file.
3647 * gnulib/import/realloc.c: New file.
3648 * gnulib/import/rewinddir.c: New file.
3649 * gnulib/import/save-cwd.c: New file.
3650 * gnulib/import/save-cwd.h: New file.
3651 * gnulib/import/strdup.c: New file.
3652 * gnulib/import/strerror-override.c: New file.
3653 * gnulib/import/strerror-override.h: New file.
3654 * gnulib/import/strerror.c: New file.
3655 * gnulib/import/unistd--.h: New file.
3656 * gnulib/import/unistd-safer.h: New file.
3657 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
3658 "getcwd" and "glob".
3659 * ser-tcp.c: Undefine "close" before redefining it.
3660
432ae719
SM
36612017-09-21 Simon Marchi <simon.marchi@ericsson.com>
3662
3663 * guile/scm-value.c (gdbscm_value_address): Initialize address,
3664 get rid of res_val.
3665
4fa7574e
RO
36662017-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3667
3668 * configure.nat <i386sol2,i386>: Add fork-inferior.o to NATDEPFILES.
3669 <sol2,sparc>: Likewise.
3670 <sol2-64,i386>: Likewise.
3671
3672 * warning.m4 (AM_GDB_WARNINGS): Disable -Wunknown-pragmas,
3673 -Wdeprecated-declarations on *-*-solaris*.
3674 * configure: Regenerate.
3675
3676 * procfs.c: Include "nat/inferior.h".
3677 (procfs_info_proc): Fix typo.
3678
f6327dcb
KB
36792017-09-21 Kevin Buettner <kevinb@redhat.com>
3680
3681 * remote.c (vector): Include.
3682 (struct private_thread_info): Add field, thread_handle.
3683 (free_private_thread_info): Deallocate storage associated with
3684 thread handle.
3685 (get_private_info_thread): Initialize `thread_handle' field.
3686 (struct thread_item): Add field, thread_handle.
3687 (clear_threads_listing_context): Deallocate storage associated
3688 with thread handle.
3689 (start_thread): Add support for "handle" attribute.
3690 (thread_attributes): Add "handle".
3691 (remote_get_threads_with_qthreadinfo): Initialize thread_handle
3692 field.
3693 (remote_update_thread_list): Update thread_handle.
3694 (remote_thread_handle_to_thread_info): New function.
3695 (init_remote_ops): Initialize to_thread_handle_to_thread_info.
3696
fbbe5337
KB
36972017-09-21 Kevin Buettner <kevinb@redhat.com>
3698
3699 * python/py-inferior.c (gdbpy_thread_from_thread_handle): New
3700 function.
3701 (inferior_object_methods): Add gdbpy_thread_from_thread_handle.
3702 * python/python-internal.h (thread_object_type): Declare.
3703
e04ee09e
KB
37042017-09-21 Kevin Buettner <kevinb@redhat.com>
3705
3706 * target.h (struct target_ops): Add to_thread_handle_to_thread_info.
3707 (target_thread_handle_to_thread_info): Declare.
3708 * target.c (target_thread_handle_to_thread_info): New function.
3709 * target-delegates.c: Regenerate.
3710 * gdbthread.h (find_thread_by_handle): Declare.
3711 * thread.c (find_thread_by_handle): New function.
3712 * linux-thread-db.c (thread_db_thread_handle_to_thread_info): New
3713 function.
3714 (init_thread_db_ops): Register thread_db_thread_handle_to_thread_info.
3715
1e5b66ed
SM
37162017-09-21 Simon Marchi <simon.marchi@ericsson.com>
3717
3718 * nat/linux-waitpid.c (linux_debug): Add ATTRIBUTE_PRINTF.
3719
ebe48ba0
SM
37202017-09-21 Simon Marchi <simon.marchi@ericsson.com>
3721
3722 * microblaze-tdep.c (microblaze_debug): Add ATTRIBUTE_PRINTF.
3723
0a0bf5dc
YQ
37242017-09-21 Yao Qi <yao.qi@linaro.org>
3725
3726 * configure.tgt (aarch64*-*-freebsd*): Add fbsd-tdep.o solib-svr4.o
3727 to gdb_target_obs.
3728
d1b0a7bf
TT
37292017-09-20 Tom Tromey <tom@tromey.com>
3730
3731 * breakpoint.c (struct counted_command_line): Remove.
3732 (breakpoint_commands): Update.
3733 (alloc_counted_command_line, incref_counted_command_line)
3734 (decref_counted_command_line, do_cleanup_counted_command_line)
3735 (make_cleanup_decref_counted_command_line): Remove.
3736 (breakpoint_set_commands, commands_command_1, ~bpstats, bpstats)
3737 (bpstat_clear_actions, bpstat_do_actions_1, watchpoint_check)
3738 (bpstat_stop_status, print_one_breakpoint_location, ~breakpoint)
3739 (save_breakpoints): Update.
3740 * breakpoint.h (counted_command_line): Now a typedef to
3741 shared_ptr.
3742 (struct breakpoint) <commands>: Now a counted_command_line.
3743 (struct bpstats) <command>: Likewise.
3744
48649e1b
TT
37452017-09-20 Tom Tromey <tom@tromey.com>
3746
3747 * breakpoint.c (struct commands_info, do_map_commands_command):
3748 Remove.
3749 (commands_command_1): Update.
3750 (iterate_over_related_breakpoints): Take a function_view.
3751 (do_delete_breakpoint, do_map_delete_breakpoint): Remove.
3752 (delete_command): Update.
3753 (map_breakpoint_numbers): Take a function_view.
3754 (do_disable_breakpoint, do_map_delete_breakpoint): Remove.
3755 (disable_command): Update.
3756 (do_enable_breakpoint, do_map_enable_breakpoint): Remove.
3757 (enable_command): Update.
3758 (struct disp_data, do_enable_breakpoint_disp)
3759 (do_map_enable_once_breakpoint, do_map_enable_count_breakpoint)
3760 (do_map_enable_delete_breakpoint): Remove.
3761 (enable_once_command, enable_count_command, enable_delete_command)
3762 (delete_trace_variable_command): Update.
3763
04afa70c
TT
37642017-09-20 Tom Tromey <tom@tromey.com>
3765
3766 * breakpoint.c (~bpstats): Rename from bpstat_free. Update.
3767 (bpstat_clear): Use delete.
3768 (bpstats): New constructors.
3769 (bpstat_copy, bpstat_stop_status): Use new.
3770 (dprintf_after_condition_true): Update.
3771 * breakpoint.h (bpstats::bpstats): Add constructors.
3772 (bpstats::~bpstats): Add destructor.
3773
c83833f4
PA
37742017-09-20 Pedro Alves <palves@redhat.com>
3775
3776 * eval.c (make_params): Delete, refactored as ...
3777 (class fake_method): ... this new type's ctor.
3778 (fake_method::~fake_method): New.
3779 (evaluate_subexp_standard): Use 'fake_method'.
3780
223ffa71
TT
37812017-09-20 Tom Tromey <tom@tromey.com>
3782
3783 * windows-nat.c (get_windows_debug_event, windows_wait)
3784 (do_initial_windows_stuff, windows_attach): Update.
3785 * utils.c (vwarning, internal_vproblem): Update.
3786 (ui_unregister_input_event_handler_cleanup)
3787 (prepare_to_handle_input): Remove.
3788 (class scoped_input_handler): New.
3789 (defaulted_query, prompt_for_continue): Update.
3790 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
3791 Update.
3792 * top.c (undo_terminal_modifications_before_exit): Update.
3793 * target/target.h (target_terminal_init, target_terminal_inferior)
3794 (target_terminal_ours): Don't declare.
3795 (class target_terminal): New.
3796 * target.h (target_terminal_is_inferior, target_terminal_is_ours)
3797 (target_terminal_ours_for_output)
3798 (make_cleanup_restore_target_terminal): Don't declare.
3799 (target_terminal_info): Remove.
3800 * target.c (enum terminal_state, terminal_state): Remove.
3801 (target_terminal::terminal_state): Define.
3802 (target_terminal::init): Rename from target_terminal_init.
3803 (target_terminal::inferior): Rename from
3804 target_terminal_inferior.
3805 (target_terminal::ours): Rename from target_terminal_ours.
3806 (target_terminal::ours_for_output): Rename from
3807 target_terminal_ours_for_output.
3808 (target_terminal::info): New method.
3809 (cleanup_restore_target_terminal)
3810 (make_cleanup_restore_target_terminal): Remove.
3811 * solib.c (handle_solib_event): Update.
3812 * remote.c (remote_serial_quit_handler): Update.
3813 (remote_terminal_inferior, remote_wait_as): Update.
3814 * record-full.c (record_full_wait_1): Update.
3815 * nto-procfs.c (procfs_create_inferior): Update.
3816 * nat/fork-inferior.c (startup_inferior): Update.
3817 * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
3818 (mi_record_changed, mi_inferior_added, mi_inferior_appeared)
3819 (mi_inferior_exit, mi_inferior_removed, mi_traceframe_changed)
3820 (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified)
3821 (mi_breakpoint_created, mi_breakpoint_deleted)
3822 (mi_breakpoint_modified, mi_on_resume, mi_solib_loaded)
3823 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
3824 (mi_user_selected_context_changed, report_initial_inferior):
3825 Update.
3826 * linux-nat.c (linux_nat_attach, linux_nat_terminal_ours)
3827 (linux_nat_terminal_inferior): Update.
3828 * infrun.c (follow_fork_inferior)
3829 (handle_vfork_child_exec_or_exit, do_target_resume)
3830 (check_curr_ui_sync_execution_done, handle_inferior_event_1)
3831 (handle_signal_stop, maybe_remove_breakpoints, normal_stop):
3832 Update.
3833 * inflow.c (child_terminal_init, info_terminal_command): Update.
3834 * infcmd.c (post_create_inferior, continue_1, prepare_one_step)
3835 (attach_command): Update.
3836 * infcall.c (call_thread_fsm_should_stop): Update.
3837 * gnu-nat.c (gnu_attach): Update.
3838 * extension.c (struct active_ext_lang_state)
3839 (restore_active_ext_lang): Update.
3840 * exceptions.c (print_flush): Update.
3841 * event-top.c (async_enable_stdin, default_quit_handler): Update.
3842 (struct quit_handler_cleanup_data, restore_quit_handler)
3843 (restore_quit_handler_dtor, make_cleanup_override_quit_handler):
3844 Remove.
3845 * cp-support.c (gdb_demangle): Update.
3846 * breakpoint.c (update_inserted_breakpoint_locations)
3847 (insert_breakpoint_locations, handle_jit_event)
3848 (disable_breakpoints_in_unloaded_shlib): Update.
3849 * annotate.c (annotate_breakpoints_invalid)
3850 (annotate_frames_invalid): Update.
3851
013af3fc
TT
38522017-09-20 Tom Tromey <tom@tromey.com>
3853
3854 * main.c (catch_command_errors): Rename from
3855 catch_command_errors_const.
3856 (captured_main_1): Update.
3857
06871ae8
PA
38582017-09-20 Pedro Alves <palves@redhat.com>
3859
3860 * cli/cli-cmds.c (list_command): Use print_sal_location.
3861 (print_sal_location): New function.
3862 (ambiguous_line_spec): Use print_sal_location.
3863 * linespec.c (symbol_to_sal): Record the symbol in the sal.
3864 * symtab.c (find_function_start_sal): Likewise.
3865 * symtab.h (symtab_and_line::symbol): New field.
3866
e5f25bc5
PA
38672017-09-20 Pedro Alves <palves@redhat.com>
3868
3869 * linespec.c (minsym_found): Handle non-text minsyms.
3870 (symbol_to_sal): Record a sal.pc for non-block, non-label symbols.
3871
1b7fa39e
WT
38722017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
3873
3874 * features/Makefile (i386-avx-mpx-avx512-pku.dat): Add missing
3875 backslash.
3876
37dd0825
WT
38772017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
3878
3879 * gdb.arch/i386-avx512.c (move_zmm_data_to_reg): Use
3880 vmovups instead vmovaps.
3881 (move_zmm_data_to_memory): Use vmovups instead vmovaps.
3882
4e5a4f58
JB
38832017-09-19 John Baldwin <jhb@FreeBSD.org>
3884
3885 * NEWS (Changes since GDB 8.0): Add starti.
3886 * infcmd.c (enum run_break): New.
3887 (run_command_1): Queue pending event for RUN_STOP_AT_FIRST_INSN
3888 case.
3889 (run_command): Use enum run_how.
3890 (start_command): Likewise.
3891 (starti_command): New function.
3892 (RUN_ARGS_HELP): New macro.
3893 (_initialize_infcmd): Use RUN_ARGS_HELP for run and start
3894 commands. Add starti command.
3895
aa70c9f1
YQ
38962017-09-19 Yao Qi <yao.qi@linaro.org>
3897
3898 * Makefile.in (monitor.o): Remove the rule.
3899
d6541620
YQ
39002017-09-19 Yao Qi <yao.qi@linaro.org>
3901
3902 * annotate.h (struct annotate_arg_emitter): Use
3903 DISABLE_COPY_AND_ASSIGN.
3904 * common/refcounted-object.h (refcounted_object): Likewise.
3905 * completer.h (struct completion_result): Likewise.
3906 * dwarf2read.c (struct dwarf2_per_objfile): Likewise.
3907 * filename-seen-cache.h (filename_seen_cache): Likewise.
3908 * gdbcore.h (thread_section_name): Likewise.
3909 * gdb_regex.h (compiled_regex): Likewise.
3910 * gdbthread.h (scoped_restore_current_thread): Likewise.
3911 * inferior.h (scoped_restore_current_inferior): Likewise.
3912 * jit.c (jit_reader): Likewise.
3913 * linespec.h (struct linespec_result): Likewise.
3914 * mi/mi-parse.h (struct mi_parse): Likewise.
3915 * nat/fork-inferior.c (execv_argv): Likewise.
3916 * progspace.h (scoped_restore_current_program_space): Likewise.
3917 * python/python-internal.h (class gdbpy_enter): Likewise.
3918 * regcache.h (regcache): Likewise.
3919 * target-descriptions.c (struct tdesc_reg): Likewise.
3920 (struct tdesc_type): Likewise.
3921 (struct tdesc_feature): Likewise.
3922 * ui-out.h (ui_out_emit_type): Likewise.
3923
0615127c
SM
39242017-09-18 Simon Marchi <simon.marchi@ericsson.com>
3925
3926 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Remove
3927 label abort_expression.
3928
5e187554
SM
39292017-09-16 Simon Marchi <simon.marchi@ericsson.com>
3930
3931 * common/buffer.c (buffer_xml_printf): Adjust.
3932 * common/xml-utils.c (xml_escape_text): Change return type to
3933 std::string, update code accordingly.
3934 * common/xml-utils.h (xml_escape_text): Change return type to
3935 std::string.
3936 * rs6000-aix-tdep.c (rs6000_aix_shared_library_to_xml): Adjust.
3937 * windows-tdep.c (windows_xfer_shared_library): Adjust.
3938 * unittests/xml-utils-selftests.c (test_xml_escape_text):
3939 Adjust.
3940
c3d7b541
SM
39412017-09-16 Simon Marchi <simon.marchi@ericsson.com>
3942
3943 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new source file.
3944 (SUBDIR_UNITTESTS_OBS): Add new object file.
3945 * unittests/xml-utils-selftests.c: New file.
3946
1526853e
SM
39472017-09-16 Simon Marchi <simon.marchi@ericsson.com>
3948
3949 * common/selftest.h (selftest): New struct/interface.
3950 (register_test): Add name parameter, add new overload.
3951 (run_tests): Add filter parameter.
3952 (for_each_selftest_ftype): New typedef.
3953 (for_each_selftest): New declaration.
3954 * common/selftest.c (tests): Change type to
3955 map<string, unique_ptr<selftest>>.
3956 (simple_selftest): New struct.
3957 (register_test): New function.
3958 (register_test): Add name parameter and use it.
3959 (run_tests): Add filter parameter and use it. Add prints.
3960 Adjust to vector -> map change.
3961 * aarch64-tdep.c (_initialize_aarch64_tdep): Add names when
3962 registering selftests.
3963 * arm-tdep.c (_initialize_arm_tdep): Likewise.
3964 * disasm-selftests.c (_initialize_disasm_selftests): Likewise.
3965 * dwarf2-frame.c (_initialize_dwarf2_frame): Likewise.
3966 * dwarf2loc.c (_initialize_dwarf2loc): Likewise.
3967 * findvar.c (_initialize_findvar): Likewise.
3968 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Likewise.
3969 * maint.c (maintenance_selftest): Update call to run_tests.
3970 (maintenance_info_selftests): New function.
3971 (_initialize_maint_cmds): Register "maintenance info selftests"
3972 command. Update "maintenance selftest" doc.
3973 * regcache.c (_initialize_regcache): Add names when registering
3974 selftests.
3975 * rust-exp.y (_initialize_rust_exp): Likewise.
3976 * selftest-arch.c (gdbarch_selftest): New struct.
3977 (gdbarch_tests): Remove.
3978 (register_test_foreach_arch): Add name parameter. Call
3979 register_test.
3980 (tests_with_arch): Remove, move most content to
3981 gdbarch_selftest::operator().
3982 (_initialize_selftests_foreach_arch): Remove.
3983 * selftest-arch.h (register_test_foreach_arch): Add name
3984 parameter.
3985 (run_tests_with_arch): New declaration.
3986 * utils-selftests.c (_initialize_utils_selftests): Add names
3987 when registering selftests.
3988 * utils.c (_initialize_utils): Likewise.
3989 * unittests/array-view-selftests.c
3990 (_initialize_array_view_selftests): Likewise.
3991 * unittests/environ-selftests.c (_initialize_environ_selftests):
3992 Likewise.
3993 * unittests/function-view-selftests.c
3994 (_initialize_function_view_selftests): Likewise.
3995 * unittests/offset-type-selftests.c
3996 (_initialize_offset_type_selftests): Likewise.
3997 * unittests/optional-selftests.c
3998 (_initialize_optional_selftests): Likewise.
3999 * unittests/scoped_restore-selftests.c
4000 (_initialize_scoped_restore_selftests): Likewise.
4001 * NEWS: Document "maintenance selftest" and "maint info
4002 selftests".
4003
5846367a
SM
40042017-09-16 Simon Marchi <simon.marchi@ericsson.com>
4005
4006 * mi/mi-main.c (mi_load_progress): Restore current_uiout using a
4007 scoped_restore.
4008
bd77e8ff
SM
40092017-09-16 Simon Marchi <simon.marchi@ericsson.com>
4010
4011 * mi/mi-main.c (mi_load_progress): Make uiout variable
4012 a unique_ptr.
4013
26a67918
PA
40142017-09-15 Pedro Alves <palves@redhat.com>
4015
4016 * compile/compile-c-types.c (convert_enum, convert_int)
4017 (convert_float): Adjust to refer to int_type_v0 and float_type_v0.
4018
3f8a7804
SM
40192017-09-15 Simon Marchi <simon.marchi@ericsson.com>
4020
4021 * dwarf2read.c (copy_string): Remove.
4022 (parse_macro_definition): Replace copy_string with savestring.
4023
8d200706
YQ
40242017-09-15 Yao Qi <yao.qi@linaro.org>
4025
4026 * configure.tgt (i[34567]86-*-darwin*): Append amd64.o to
4027 gdb_target_obs.
4028 (i[34567]86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*):
4029 Likewise.
4030 (i[34567]86-*-linux*): Likewise.
4031
d185219d
SM
40322017-09-14 Simon Marchi <simon.marchi@ericsson.com>
4033
4034 * dwarf2expr.h (dwarf_stack_value): Add constructor.
4035 (dwarf_expr_context) <~dwarf_expr_context>: Define as default.
4036 <stack>: Change type to std::vector.
4037 <stack_len, stack_allocated>: Remove.
4038 <grow_stack>: Remove.
4039 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
4040 (dwarf_expr_context::~dwarf_expr_context): Remove.
4041 (dwarf_expr_context::grow_stack): Remove.
4042 (dwarf_expr_context::push): Adjust.
4043 (dwarf_expr_context::pop): Adjust.
4044 (dwarf_expr_context::fetch): Adjust.
4045 (dwarf_expr_context::fetch_in_stack_memory): Adjust.
4046 (dwarf_expr_context::stack_empty_p): Adjust.
4047 (dwarf_expr_context::execute_stack_op): Adjust.
4048
eccd80d6
SM
40492017-09-14 Simon Marchi <simon.marchi@ericsson.com>
4050
4051 * dwarf2expr.h (dwarf_expr_context) <stack_empty_p>: Change
4052 return type to bool.
4053 * dwarf2expr.c (dwarf_expr_context::stack_empty_p): Likewise.
4054
69009882
SM
40552017-09-14 Simon Marchi <simon.marchi@ericsson.com>
4056
4057 * dwarf2expr.h (dwarf_expr_piece) <v.mem.in_stack_memory>:
4058 Change type to bool.
4059 (dwarf_stack_value) <in_stack_memory>: Likewise.
4060 (dwarf_expr_context) <push_address>: Change parameter type to
4061 bool.
4062 <fetch_in_stack_memory>: Change return type to bool.
4063 <push>: Change parameter type to bool.
4064 * dwarf2expr.c (dwarf_expr_context::push): Change parameter type
4065 to bool.
4066 (dwarf_expr_context::push_address): Likewise.
4067 (dwarf_expr_context::fetch_in_stack_memory): Change return type
4068 to bool.
4069 (dwarf_expr_context::execute_stack_op): Adjust.
4070 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Adjust.
4071
1e467161
SM
40722017-09-14 Simon Marchi <simon.marchi@ericsson.com>
4073
4074 * dwarf2expr.h (struct dwarf_expr_piece): Move up.
4075 (struct dwarf_expr_context) <n_pieces>: Remove.
4076 <pieces>: Change type to std::vector.
4077 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
4078 (dwarf_expr_context::~dwarf_expr_context): Don't manually free
4079 pieces.
4080 (dwarf_expr_context::add_piece): Adjust.
4081 * dwarf2loc.c (struct piece_closure): Initialize fields.
4082 <n_pieces>: Remove.
4083 <pieces>: Change type to std::vector.
4084 (allocate_piece_closure): Adjust, change parameter to
4085 std::vector rvalue and std::move it to piece_closure.
4086 (rw_pieced_value): Adjust.
4087 (check_pieced_synthetic_pointer): Adjust.
4088 (indirect_synthetic_pointer): Adjust.
4089 (coerce_pieced_ref): Adjust.
4090 (free_pieced_value_closure): Adjust. Use delete to free
4091 piece_closure.
4092 (dwarf2_evaluate_loc_desc_full): Adjust. std::move ctx.pieces
4093 to allocate_piece_closure.
4094 (dwarf2_loc_desc_get_symbol_read_needs): Adjust.
4095
0782db84
SM
40962017-09-12 Simon Marchi <simon.marchi@ericsson.com>
4097
4098 * probe.h (probe_ops_cp): Remove typedef.
4099 (DEF_VEC_P (probe_ops_cp)): Remove.
4100 (all_probe_ops): Change type to std::vector.
4101 * probe.c (info_probes_for_ops): Adjust to vector change.
4102 (probe_linespec_to_ops): Likewise.
4103 (all_probe_ops): Change type to std::vector.
4104 (_initialize_probe): Adjust to vector change.
4105 * dtrace-probe.c (_initialize_dtrace_probe): Likewise.
4106 * elfread.c (elf_get_probes): Likewise.
4107 * stap-probe.c (_initialize_stap_probe): Likewise.
4108
1eac6bea
SM
41092017-09-12 Simon Marchi <simon.marchi@ericsson.com>
4110
4111 * probe.h (struct bound_probe): Define constructors.
4112 * probe.c (bound_probe_s): Remove typedef.
4113 (DEF_VEC_O (bound_probe_s)): Remove VEC.
4114 (collect_probes): Change return type to std::vector, remove
4115 cleanup.
4116 (compare_probes): Return bool, change parameter type. Change
4117 semantic to "less than".
4118 (gen_ui_out_table_header_info): Change parameter to std::vector
4119 and update.
4120 (exists_probe_with_pops): Likewise.
4121 (info_probes_for_ops): Update to std::vector change.
4122 (enable_probes_command): Likewise.
4123 (disable_probes_command): Likewise.
4124
aaa63a31
SM
41252017-09-12 Simon Marchi <simon.marchi@ericsson.com>
4126
4127 * probe.h (struct probe_ops) <get_probes>: Change parameter from
4128 vec to std::vector.
4129 * probe.c (parse_probes_in_pspace): Update.
4130 (find_probes_in_objfile): Update.
4131 (find_probe_by_pc): Update.
4132 (collect_probes): Update.
4133 (probe_any_get_probes): Update.
4134 * symfile.h (struct sym_probe_fns) <sym_get_probes> Change
4135 return type to reference to std::vector.
4136 * dtrace-probe.c (dtrace_process_dof_probe): Change parameter to
4137 std::vector and update.
4138 (dtrace_process_dof): Likewise.
4139 (dtrace_get_probes): Likewise.
4140 * elfread.c (elf_get_probes): Change return type to std::vector,
4141 store an std::vector in bfd_data.
4142 (probe_key_free): Update to std::vector.
4143 * stap-probe.c (handle_stap_probe): Change parameter to
4144 std::vector and update.
4145 (stap_get_probes): Likewise.
4146 * symfile-debug.c (debug_sym_get_probes): Change return type to
4147 std::vector and update.
4148
cb85b21b
TT
41492017-09-11 Tom Tromey <tom@tromey.com>
4150
4151 * breakpoint.c (program_breakpoint_here_p): Update.
4152 * target.c (make_scoped_restore_show_memory_breakpoints): Rename
4153 from make_show_memory_breakpoints_cleanup. Return a
4154 scoped_restore_tmpl<int>.
4155 (restore_show_memory_breakpoints): Remove.
4156 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Update.
4157 * mem-break.c (memory_validate_breakpoint): Update.
4158 * ia64-tdep.c (ia64_memory_insert_breakpoint): Update.
4159 (ia64_memory_remove_breakpoint): Update.
4160 (ia64_breakpoint_from_pc): Update.
4161 * target.h (make_scoped_restore_show_memory_breakpoints): Rename
4162 from make_show_memory_breakpoints_cleanup.
4163
8fbc99ef
TT
41642017-09-11 Tom Tromey <tom@tromey.com>
4165
4166 * d-namespace.c (d_lookup_symbol): Use std::string.
4167 (find_symbol_in_baseclass): Likewise.
4168
50feb4bd
TT
41692017-09-11 Tom Tromey <tom@tromey.com>
4170
4171 * ctf.c (ctf_start): Use std::string.
4172
c6dc63a1
TT
41732017-09-11 Tom Tromey <tom@tromey.com>
4174
4175 * ada-lang.c (is_known_support_routine): Update.
4176 (ada_unhandled_exception_name_addr_from_raise): Update.
4177 * guile/scm-frame.c (gdbscm_frame_name): Update.
4178 * python/py-frame.c (frapy_name): Update.
4179 (frapy_function): Update.
4180 * stack.h (find_frame_funname): Update.
4181 * stack.c (find_frame_funname): Return unique_xmalloc_ptr.
4182 (print_frame): Update.
4183
d6b9b80f
TT
41842017-09-11 Tom Tromey <tom@tromey.com>
4185
4186 * findcmd.c (put_bits): Take a gdb::byte_vector.
4187 (parse_find_args): Return gdb::byte_vector. "args" now const.
4188 Remove "pattern_bufp" and "pattern_lenp" parameters. Remove
4189 cleanups.
4190 (find_command): Update.
4191
a9921622
TT
41922017-09-11 Tom Tromey <tom@tromey.com>
4193
4194 * cli/cli-script.c (class scoped_restore_hook_in): New.
4195 (clear_hook_in_cleanup): Remove.
4196 (execute_cmd_pre_hook, execute_cmd_post_hook): Use
4197 scoped_restore_hook_in.
4198
be0d7abb
TT
41992017-09-11 Tom Tromey <tom@tromey.com>
4200
4201 * cli/cli-script.c (restore_interp): Remove.
4202 (read_command_lines): Use scoped_restore_interp.
4203 * interps.c (scoped_restore_interp::set_temp): Rename from
4204 interp_set_temp.
4205 * interps.h (class scoped_restore_interp): New.
4206 (interp_set_temp): Remove.
4207
00f675ff
TT
42082017-09-11 Tom Tromey <tom@tromey.com>
4209
4210 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
4211 (mi_cmd_catch_exception, mi_catch_load_unload): Update.
4212 * mi/mi-cmd-break.c (setup_breakpoint_reporting): Return a
4213 scoped_restore.
4214 (mi_cmd_break_insert_1): Update.
4215 * mi/mi-cmd-break.h (setup_breakpoint_reporting): Return a
4216 scoped_restore.
4217
cb791d59
TT
42182017-09-11 Tom Tromey <tom@tromey.com>
4219
4220 * demangle.c (demangle_command): Update.
4221 * breakpoint.c (disable_command): Update.
4222 (enable_command): Update.
4223 (find_location_by_number): Make "number" const. Use
4224 get_number_trailer.
4225 * cli/cli-utils.c (extract_arg): Return std::string.
4226 * probe.c (parse_probe_linespec): Update. Change types.
4227 (collect_probes): Take string arguments.
4228 (parse_probe_linespec): Likewise.
4229 (info_probes_for_ops): Update.
4230 (enable_probes_command): Update.
4231 (disable_probes_command): Update.
4232 * break-catch-sig.c (catch_signal_split_args): Update.
4233 * mi/mi-parse.c (mi_parse): Update.
4234
2039bd9f
TT
42352017-09-11 Tom Tromey <tom@tromey.com>
4236
4237 * language.h (language_enum): Make argument const.
4238 * language.c (language_enum): Make argument const.
4239
f1735a53
TT
42402017-09-11 Tom Tromey <tom@tromey.com>
4241
4242 * common/common-utils.h (skip_to_space): Remove macro, redeclare
4243 as function.
4244 (skip_to_space): Rename from skip_to_space_const.
4245 * common/common-utils.c (skip_to_space): New function.
4246 (skip_to_space): Rename from skip_to_space_const.
4247 * cli/cli-utils.h (get_number): Rename from get_number_const.
4248 (extract_arg): Rename from extract_arg_const.
4249 * cli/cli-utils.c (get_number): Rename from get_number_const.
4250 (extract_arg): Rename from extract_arg_const.
4251 (number_or_range_parser::get_number): Use ::get_number.
4252 * aarch64-linux-tdep.c, ada-lang.c, arm-linux-tdep.c, ax-gdb.c,
4253 break-catch-throw.c, breakpoint.c, cli/cli-cmds.c, cli/cli-dump.c,
4254 cli/cli-script.c, cli/cli-setshow.c, compile/compile.c,
4255 completer.c, demangle.c, disasm.c, findcmd.c, linespec.c,
4256 linux-tdep.c, linux-thread-db.c, location.c, mi/mi-parse.c,
4257 minsyms.c, nat/linux-procfs.c, printcmd.c, probe.c,
4258 python/py-breakpoint.c, record.c, rust-exp.y, serial.c, stack.c,
4259 stap-probe.c, tid-parse.c, tracepoint.c: Update all callers.
4260
7d221d74
TT
42612017-09-11 Tom Tromey <tom@tromey.com>
4262
4263 * python/python.c (do_start_initialization): Use
4264 py-event-types.def to initialize types.
4265 Define all object type structures.
4266 * python/python-internal.h: Don't declare event initialization
4267 functions.
4268 * python/py-threadevent.c (thread_event_object_type): Don't
4269 define.
4270 * python/py-stopevent.c (stop_event_object_type): Don't define.
4271 * python/py-signalevent.c (signal_event_object_type): Don't
4272 declare or define.
4273 * python/py-newobjfileevent.c (new_objfile_event_object_type)
4274 (clear_objfiles_event_object_type): Don't declare or define.
4275 * python/py-infevents.c (inferior_call_pre_event_object_type)
4276 (inferior_call_post_event_object_type)
4277 (register_changed_event_object_type)
4278 (memory_changed_event_object_type): Don't declare or define.
4279 * python/py-inferior.c (new_thread_event_object_type)
4280 (new_inferior_event_object_type)
4281 (inferior_deleted_event_object_type): Don't declare or define.
4282 * python/py-exitedevent.c (exited_event_object_type): Don't
4283 declare or define.
4284 * python/py-evts.c (gdbpy_initialize_py_events): Use
4285 py-all-events.def.
4286 * python/py-events.h (thread_event_object_type): Don't declare.
4287 (events_object): Use py-all-events.def.
4288 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove. Use
4289 py-event-types.def.
4290 * python/py-event-types.def: New file.
4291 * python/py-continueevent.c (create_continue_event_object): Don't
4292 declare or define.
4293 * python/py-bpevent.c (breakpoint_event_object_type): Don't
4294 declare or define.
4295 * python/py-all-events.def: New file.
4296
35c61a1d
TT
42972017-09-11 Tom Tromey <tom@tromey.com>
4298
4299 * python/py-threadevent.c (create_thread_event_object): Return
4300 gdbpy_ref.
4301 * python/py-stopevent.h (create_stop_event_object)
4302 (create_breakpoint_event_object, create_signal_event_object):
4303 Update.
4304 * python/py-stopevent.c (create_stop_event_object): Return
4305 gdbpy_ref.
4306 (emit_stop_event): Update.
4307 * python/py-signalevent.c (create_signal_event_object): Return
4308 gdbpy_ref.
4309 * python/py-infevents.c (create_inferior_call_event_object):
4310 Update.
4311 * python/py-event.h (create_event_object)
4312 (create_thread_event_object): Update.
4313 * python/py-event.c (create_event_object): Return gdbpy_ref.
4314 * python/py-continueevent.c: Return gdbpy_ref.
4315 * python/py-bpevent.c (create_breakpoint_event_object): Return
4316 gdbpy_ref.
4317
7c96f8c1
TT
43182017-09-11 Tom Tromey <tom@tromey.com>
4319
4320 PR python/15622:
4321 * NEWS: Add entry.
4322 * python/python.c (do_start_initialization): Initialize new event
4323 types.
4324 * python/python-internal.h (gdbpy_initialize_new_inferior_event)
4325 (gdbpy_initialize_inferior_deleted_event)
4326 (gdbpy_initialize_new_thread_event): Declare.
4327 * python/py-threadevent.c (create_thread_event_object): Add option
4328 "thread" parameter.
4329 * python/py-inferior.c (new_thread_event_object_type)
4330 (new_inferior_event_object_type)
4331 (inferior_deleted_event_object_type): Declare.
4332 (python_new_inferior, python_inferior_deleted): New functions.
4333 (add_thread_object): Emit new_thread event.
4334 (gdbpy_initialize_inferior): Attach new functions to corresponding
4335 observers.
4336 (new_thread, new_inferior, inferior_deleted): Define new event
4337 types.
4338 * python/py-evts.c (gdbpy_initialize_py_events): Add new
4339 registries.
4340 * python/py-events.h (events_object) <new_inferior,
4341 inferior_deleted, new_thread>: New fields.
4342 * python/py-event.h (create_thread_event_breakpoint): Add optional
4343 "thread" parameter.
4344
72542b8e
AB
43452017-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
4346
4347 * utils.c (abort_with_message): Don't compare gdb_stderr to NULL,
4348 check current_ui instead.
4349 (internal_vproblem): Likewise.
4350
0d64823e
SM
43512017-09-09 Simon Marchi <simon.marchi@ericsson.com>
4352
4353 * thread.c (print_thread_info_1): Remove unnecessary calls to
4354 uiout->is_mi_like_p.
4355
eb1e02fd
TT
43562017-09-09 Tom Tromey <tom@tromey.com>
4357
4358 * namespace.h (add_using_directive): Update.
4359 * namespace.c (add_using_directive): Change type of excludes to
4360 std::vector.
4361 * dwarf2read.c (read_import_statement): Use std::vector.
4362 (read_namespace): Update.
4363 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
4364
0fc21fd8
TT
43652017-09-09 Tom Tromey <tom@tromey.com>
4366
4367 * linespec.c (create_sals_line_offset): Use gdb::def_vector.
4368
49663d05
TT
43692017-09-09 Tom Tromey <tom@tromey.com>
4370
4371 * p-valprint.c (pascal_object_print_value): Use gdb::byte_vector.
4372
0b868b60
TT
43732017-09-09 Tom Tromey <tom@tromey.com>
4374
4375 * stack.c (func_command): Use gdb::def_vector.
4376
c0470d48
TT
43772017-09-09 Tom Tromey <tom@tromey.com>
4378
4379 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Use gdb::optional,
4380 ui_out_emit_list, ui_out_emit_tuple.
4381 (mi_cmd_var_update): Likewise.
4382
ca5909c7
TT
43832017-09-09 Tom Tromey <tom@tromey.com>
4384
4385 * mi/mi-interp.c (mi_user_selected_context_changed): Use
4386 ui_out_redirect_pop.
4387 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
4388 ui_out_redirect_pop.
4389 * utils.c (do_ui_out_redirect_pop)
4390 (make_cleanup_ui_out_redirect_pop): Remove.
4391 * top.c (execute_command_to_string): Use ui_out_redirect_pop.
4392 * utils.h (make_cleanup_ui_out_redirect_pop): Remove.
4393 * ui-out.h (ui_out_redirect_pop): New class.
4394
e6a2252a
TT
43952017-09-09 Tom Tromey <tom@tromey.com>
4396
4397 * mi/mi-main.c (output_cores): Use ui_out_emit_list.
4398 (list_available_thread_groups, mi_cmd_list_thread_groups)
4399 (mi_cmd_data_list_changed_registers, mi_cmd_data_read_memory)
4400 (mi_cmd_data_read_memory_bytes, mi_cmd_trace_frame_collected):
4401 Likewise.
4402
393702cd
TT
44032017-09-09 Tom Tromey <tom@tromey.com>
4404
4405 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
4406 ui_out_emit_tuple.
4407
76f9c9cf
TT
44082017-09-09 Tom Tromey <tom@tromey.com>
4409
4410 * target.c (flash_erase_command): Use ui_out_emit_tuple.
4411 * stack.c (print_frame): Use ui_out_emit_tuple.
4412 * spu-tdep.c (info_spu_event_command): Use ui_out_emit_tuple.
4413 (info_spu_mailbox_command, info_spu_dma_command)
4414 (info_spu_proxydma_command): Likewise.
4415 * mi/mi-main.c (mi_cmd_trace_frame_collected): Use
4416 ui_out_emit_tuple, gdb::byte_vector, bin2hex.
4417 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
4418 ui_out_emit_tuple.
4419 * breakpoint.c (print_it_watchpoint): Use ui_out_emit_tuple.
4420
dc9fe180
TT
44212017-09-09 Tom Tromey <tom@tromey.com>
4422
4423 * ui-out.h (make_cleanup_ui_out_table_begin_end): Remove.
4424 (class ui_out_emit_table): Update comment.
4425 * ui-out.c (do_cleanup_table_end)
4426 (make_cleanup_ui_out_table_begin_end): Remove.
4427 * spu-tdep.c (info_spu_mailbox_list): Use ui_out_emit_table.
4428 (info_spu_dma_cmdlist): Likewise.
4429 * probe.c (info_probes_for_ops): Use ui_out_emit_table.
4430 * darwin-nat-info.c (darwin_debug_regions_recurse): Use
4431 ui_out_emit_table.
4432
f8cc3da6
TT
44332017-09-09 Tom Tromey <tom@tromey.com>
4434
4435 * thread.c (print_thread_info_1): Use ui_out_emit_table,
4436 ui_out_emit_list, gdb::optional.
4437
481695ed
JB
44382017-09-09 John Baldwin <jhb@FreeBSD.org>
4439
4440 * aarch64-linux-nat.c: Remove _initialize_aarch64_linux_nat
4441 prototype.
4442 * aarch64-linux-tdep.c: Remove _initialize_aarch64_linux_tdep
4443 prototype.
4444 * aarch64-newlib-tdep.c: Remove _initialize_aarch64_newlib_tdep
4445 prototype.
4446 * aarch64-tdep.c: Remove _initialize_aarch64_tdep prototype.
4447 * ada-exp.y: Remove _initialize_ada_exp prototype.
4448 * ada-lang.c: Remove _initialize_ada_language prototype.
4449 * ada-tasks.c: Remove _initialize_tasks prototype.
4450 * addrmap.c: Remove _initialize_addrmap prototype.
4451 * agent.c: Remove _initialize_agent prototype.
4452 * aix-thread.c: Remove _initialize_aix_thread prototype.
4453 * alpha-bsd-nat.c: Remove _initialize_alphabsd_nat prototype.
4454 * alpha-linux-nat.c: Remove _initialize_alpha_linux_nat prototype.
4455 * alpha-linux-tdep.c: Remove _initialize_alpha_linux_tdep
4456 prototype.
4457 * alpha-nbsd-tdep.c: Remove _initialize_alphanbsd_tdep prototype.
4458 * alpha-obsd-tdep.c: Remove _initialize_alphaobsd_tdep prototype.
4459 * alpha-tdep.c: Remove _initialize_alpha_tdep prototype.
4460 * amd64-darwin-tdep.c: Remove _initialize_amd64_darwin_tdep
4461 prototype.
4462 * amd64-dicos-tdep.c: Remove _initialize_amd64_dicos_tdep
4463 prototype.
4464 * amd64-fbsd-nat.c: Remove _initialize_amd64fbsd_nat prototype.
4465 * amd64-fbsd-tdep.c: Remove _initialize_amd64fbsd_tdep prototype.
4466 * amd64-linux-nat.c: Remove _initialize_amd64_linux_nat prototype.
4467 * amd64-linux-tdep.c: Remove _initialize_amd64_linux_tdep
4468 prototype.
4469 * amd64-nbsd-nat.c: Remove _initialize_amd64nbsd_nat prototype.
4470 * amd64-nbsd-tdep.c: Remove _initialize_amd64nbsd_tdep prototype.
4471 * amd64-obsd-nat.c: Remove _initialize_amd64obsd_nat prototype.
4472 * amd64-obsd-tdep.c: Remove _initialize_amd64obsd_tdep prototype.
4473 * amd64-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
4474 * amd64-tdep.c: Remove _initialize_amd64_tdep prototype.
4475 * amd64-windows-nat.c: Remove _initialize_amd64_windows_nat
4476 prototype.
4477 * amd64-windows-tdep.c: Remove _initialize_amd64_windows_tdep
4478 prototype.
4479 * annotate.c: Remove _initialize_annotate prototype.
4480 * arc-newlib-tdep.c: Remove _initialize_arc_newlib_tdep prototype.
4481 * arc-tdep.c: Remove _initialize_arc_tdep prototype.
4482 * arch-utils.c: Remove _initialize_gdbarch_utils prototype.
4483 * arm-linux-nat.c: Remove _initialize_arm_linux_nat prototype.
4484 * arm-linux-tdep.c: Remove _initialize_arm_linux_tdep prototype.
4485 * arm-nbsd-tdep.c: Remove _initialize_arm_netbsd_tdep prototype.
4486 * arm-obsd-tdep.c: Remove _initialize_armobsd_tdep prototype.
4487 * arm-symbian-tdep.c: Remove _initialize_arm_symbian_tdep
4488 prototype.
4489 * arm-tdep.c: Remove _initialize_arm_tdep prototype.
4490 * arm-wince-tdep.c: Remove _initialize_arm_wince_tdep prototype.
4491 * auto-load.c: Remove _initialize_auto_load prototype.
4492 * auxv.c: Remove _initialize_auxv prototype.
4493 * avr-tdep.c: Remove _initialize_avr_tdep prototype.
4494 * ax-gdb.c: Remove _initialize_ax_gdb prototype.
4495 * bfin-linux-tdep.c: Remove _initialize_bfin_linux_tdep prototype.
4496 * bfin-tdep.c: Remove _initialize_bfin_tdep prototype.
4497 * break-catch-sig.c: Remove _initialize_break_catch_sig prototype.
4498 * break-catch-syscall.c: Remove _initialize_break_catch_syscall
4499 prototype.
4500 * break-catch-throw.c: Remove _initialize_break_catch_throw
4501 prototype.
4502 * breakpoint.c: Remove _initialize_breakpoint prototype.
4503 * bsd-uthread.c: Remove _initialize_bsd_uthread prototype.
4504 * btrace.c: Remove _initialize_btrace prototype.
4505 * charset.c: Remove _initialize_charset prototype.
4506 * cli/cli-cmds.c: Remove _initialize_cli_cmds prototype.
4507 * cli/cli-dump.c: Remove _initialize_cli_dump prototype.
4508 * cli/cli-interp.c: Remove _initialize_cli_interp prototype.
4509 * cli/cli-logging.c: Remove _initialize_cli_logging prototype.
4510 * cli/cli-script.c: Remove _initialize_cli_script prototype.
4511 * coff-pe-read.c: Remove _initialize_coff_pe_read prototype.
4512 * coffread.c: Remove _initialize_coffread prototype.
4513 * compile/compile.c: Remove _initialize_compile prototype.
4514 * complaints.c: Remove _initialize_complaints prototype.
4515 * completer.c: Remove _initialize_completer prototype.
4516 * copying.awk: Remove _initialize_copying prototype.
4517 * copying.c: Regenerate.
4518 * core-regset.c: Remove _initialize_core_regset prototype.
4519 * corefile.c: Remove _initialize_core prototype.
4520 * corelow.c: Remove _initialize_corelow prototype.
4521 * cp-abi.c: Remove _initialize_cp_abi prototype.
4522 * cp-namespace.c: Remove _initialize_cp_namespace prototype.
4523 * cp-support.c: Remove _initialize_cp_support prototype.
4524 * cp-valprint.c: Remove _initialize_cp_valprint prototype.
4525 * cris-linux-tdep.c: Remove _initialize_cris_linux_tdep prototype.
4526 * cris-tdep.c: Remove _initialize_cris_tdep prototype.
4527 * ctf.c: Remove _initialize_ctf prototype.
4528 * d-lang.c: Remove _initialize_d_language prototype.
4529 * darwin-nat-info.c: Remove _initialize_darwin_info_commands
4530 prototype.
4531 * darwin-nat.c: Remove _initialize_darwin_inferior prototype.
4532 * dbxread.c: Remove _initialize_dbxread prototype.
4533 * dcache.c: Remove _initialize_dcache prototype.
4534 * demangle.c: Remove _initialize_demangler prototype.
4535 * disasm-selftests.c: Remove _initialize_disasm_selftests
4536 prototype.
4537 * disasm.c: Remove _initialize_disasm prototype.
4538 * dtrace-probe.c: Remove _initialize_dtrace_probe prototype.
4539 * dummy-frame.c: Remove _initialize_dummy_frame prototype.
4540 * dwarf2-frame-tailcall.c: Remove _initialize_tailcall_frame
4541 prototype.
4542 * dwarf2-frame.c: Remove _initialize_dwarf2_frame prototype.
4543 * dwarf2expr.c: Remove _initialize_dwarf2expr prototype.
4544 * dwarf2loc.c: Remove _initialize_dwarf2loc prototype.
4545 * dwarf2read.c: Remove _initialize_dwarf2_read prototype.
4546 * elfread.c: Remove _initialize_elfread prototype.
4547 * exec.c: Remove _initialize_exec prototype.
4548 * extension.c: Remove _initialize_extension prototype.
4549 * f-lang.c: Remove _initialize_f_language prototype.
4550 * f-valprint.c: Remove _initialize_f_valprint prototype.
4551 * fbsd-nat.c: Remove _initialize_fbsd_nat prototype.
4552 * fbsd-tdep.c: Remove _initialize_fbsd_tdep prototype.
4553 * filesystem.c: Remove _initialize_filesystem prototype.
4554 * findcmd.c: Remove _initialize_mem_search prototype.
4555 * fork-child.c: Remove _initialize_fork_child prototype.
4556 * frame-base.c: Remove _initialize_frame_base prototype.
4557 * frame-unwind.c: Remove _initialize_frame_unwind prototype.
4558 * frame.c: Remove _initialize_frame prototype.
4559 * frv-linux-tdep.c: Remove _initialize_frv_linux_tdep prototype.
4560 * frv-tdep.c: Remove _initialize_frv_tdep prototype.
4561 * ft32-tdep.c: Remove _initialize_ft32_tdep prototype.
4562 * gcore.c: Remove _initialize_gcore prototype.
4563 * gdb_bfd.c: Remove _initialize_gdb_bfd prototype.
4564 * gdbarch.c: Regenerate.
4565 * gdbarch.sh: Remove _initialize_gdbarch prototype.
4566 * gdbtypes.c: Remove _initialize_gdbtypes prototype.
4567 * gnu-nat.c: Remove _initialize_gnu_nat prototype.
4568 * gnu-v2-abi.c: Remove _initialize_gnu_v2_abi prototype.
4569 * gnu-v3-abi.c: Remove _initialize_gnu_v3_abi prototype.
4570 * go-lang.c: Remove _initialize_go_language prototype.
4571 * go32-nat.c: Remove _initialize_go32_nat prototype.
4572 * guile/guile.c: Remove _initialize_guile prototype.
4573 * h8300-tdep.c: Remove _initialize_h8300_tdep prototype.
4574 * hppa-linux-nat.c: Remove _initialize_hppa_linux_nat prototype.
4575 * hppa-linux-tdep.c: Remove _initialize_hppa_linux_tdep prototype.
4576 * hppa-nbsd-nat.c: Remove _initialize_hppanbsd_nat prototype.
4577 * hppa-nbsd-tdep.c: Remove _initialize_hppanbsd_tdep prototype.
4578 * hppa-obsd-nat.c: Remove _initialize_hppaobsd_nat prototype.
4579 * hppa-obsd-tdep.c: Remove _initialize_hppaobsd_tdep prototype.
4580 * hppa-tdep.c: Remove _initialize_hppa_tdep prototype.
4581 * i386-bsd-nat.c: Remove _initialize_i386bsd_nat prototype.
4582 * i386-cygwin-tdep.c: Remove _initialize_i386_cygwin_tdep
4583 prototype.
4584 * i386-darwin-tdep.c: Remove _initialize_i386_darwin_tdep
4585 prototype.
4586 * i386-dicos-tdep.c: Remove _initialize_i386_dicos_tdep prototype.
4587 * i386-fbsd-nat.c: Remove _initialize_i386fbsd_nat prototype.
4588 * i386-fbsd-tdep.c: Remove _initialize_i386fbsd_tdep prototype.
4589 * i386-gnu-nat.c: Remove _initialize_i386gnu_nat prototype.
4590 * i386-gnu-tdep.c: Remove _initialize_i386gnu_tdep prototype.
4591 * i386-linux-nat.c: Remove _initialize_i386_linux_nat prototype.
4592 * i386-linux-tdep.c: Remove _initialize_i386_linux_tdep prototype.
4593 * i386-nbsd-nat.c: Remove _initialize_i386nbsd_nat prototype.
4594 * i386-nbsd-tdep.c: Remove _initialize_i386nbsd_tdep prototype.
4595 * i386-nto-tdep.c: Remove _initialize_i386nto_tdep prototype.
4596 * i386-obsd-nat.c: Remove _initialize_i386obsd_nat prototype.
4597 * i386-obsd-tdep.c: Remove _initialize_i386obsd_tdep prototype.
4598 * i386-sol2-nat.c: Remove _initialize_amd64_sol2_nat prototype.
4599 * i386-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
4600 * i386-tdep.c: Remove _initialize_i386_tdep prototype.
4601 * i386-windows-nat.c: Remove _initialize_i386_windows_nat
4602 prototype.
4603 * ia64-libunwind-tdep.c: Remove _initialize_libunwind_frame
4604 prototype.
4605 * ia64-linux-nat.c: Remove _initialize_ia64_linux_nat prototype.
4606 * ia64-linux-tdep.c: Remove _initialize_ia64_linux_tdep prototype.
4607 * ia64-tdep.c: Remove _initialize_ia64_tdep prototype.
4608 * ia64-vms-tdep.c: Remove _initialize_ia64_vms_tdep prototype.
4609 * infcall.c: Remove _initialize_infcall prototype.
4610 * infcmd.c: Remove _initialize_infcmd prototype.
4611 * inferior.c: Remove _initialize_inferiors prototype.
4612 * inflow.c: Remove _initialize_inflow prototype.
4613 * infrun.c: Remove _initialize_infrun prototype.
4614 * interps.c: Remove _initialize_interpreter prototype.
4615 * iq2000-tdep.c: Remove _initialize_iq2000_tdep prototype.
4616 * jit.c: Remove _initialize_jit prototype.
4617 * language.c: Remove _initialize_language prototype.
4618 * linux-fork.c: Remove _initialize_linux_fork prototype.
4619 * linux-nat.c: Remove _initialize_linux_nat prototype.
4620 * linux-tdep.c: Remove _initialize_linux_tdep prototype.
4621 * linux-thread-db.c: Remove _initialize_thread_db prototype.
4622 * lm32-tdep.c: Remove _initialize_lm32_tdep prototype.
4623 * m2-lang.c: Remove _initialize_m2_language prototype.
4624 * m32c-tdep.c: Remove _initialize_m32c_tdep prototype.
4625 * m32r-linux-nat.c: Remove _initialize_m32r_linux_nat prototype.
4626 * m32r-linux-tdep.c: Remove _initialize_m32r_linux_tdep prototype.
4627 * m32r-tdep.c: Remove _initialize_m32r_tdep prototype.
4628 * m68hc11-tdep.c: Remove _initialize_m68hc11_tdep prototype.
4629 * m68k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
4630 * m68k-bsd-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
4631 * m68k-linux-nat.c: Remove _initialize_m68k_linux_tdep prototype.
4632 * m68k-linux-tdep.c: Remove _initialize_m68k_linux_tdep prototype.
4633 * m68k-tdep.c: Remove _initialize_m68k_tdep prototype.
4634 * m88k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
4635 * m88k-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
4636 * machoread.c: Remove _initialize_machoread prototype.
4637 * macrocmd.c: Remove _initialize_macrocmd prototype.
4638 * macroscope.c: Remove _initialize_macroscope prototype.
4639 * maint.c: Remove _initialize_maint_cmds prototype.
4640 * mdebugread.c: Remove _initialize_mdebugread prototype.
4641 * memattr.c: Remove _initialize_mem prototype.
4642 * mep-tdep.c: Remove _initialize_mep_tdep prototype.
4643 * mi/mi-cmd-env.c: Remove _initialize_mi_cmd_env prototype.
4644 * mi/mi-cmds.c: Remove _initialize_mi_cmds prototype.
4645 * mi/mi-interp.c: Remove _initialize_mi_interp prototype.
4646 * mi/mi-main.c: Remove _initialize_mi_main prototype.
4647 * microblaze-linux-tdep.c: Remove
4648 _initialize_microblaze_linux_tdep prototype.
4649 * microblaze-tdep.c: Remove _initialize_microblaze_tdep prototype.
4650 * mips-fbsd-nat.c: Remove _initialize_mips_fbsd_nat prototype.
4651 * mips-fbsd-tdep.c: Remove _initialize_mips_fbsd_tdep prototype.
4652 * mips-linux-nat.c: Remove _initialize_mips_linux_nat prototype.
4653 * mips-linux-tdep.c: Remove _initialize_mips_linux_tdep prototype.
4654 * mips-nbsd-nat.c: Remove _initialize_mipsnbsd_nat prototype.
4655 * mips-nbsd-tdep.c: Remove _initialize_mipsnbsd_tdep prototype.
4656 * mips-sde-tdep.c: Remove _initialize_mips_sde_tdep prototype.
4657 * mips-tdep.c: Remove _initialize_mips_tdep prototype.
4658 * mips64-obsd-nat.c: Remove _initialize_mips64obsd_nat prototype.
4659 * mips64-obsd-tdep.c: Remove _initialize_mips64obsd_tdep
4660 prototype.
4661 * mipsread.c: Remove _initialize_mipsread prototype.
4662 * mn10300-linux-tdep.c: Remove _initialize_mn10300_linux_tdep
4663 prototype.
4664 * mn10300-tdep.c: Remove _initialize_mn10300_tdep prototype.
4665 * moxie-tdep.c: Remove _initialize_moxie_tdep prototype.
4666 * msp430-tdep.c: Remove _initialize_msp430_tdep prototype.
4667 * mt-tdep.c: Remove _initialize_mt_tdep prototype.
4668 * nds32-tdep.c: Remove _initialize_nds32_tdep prototype.
4669 * nios2-linux-tdep.c: Remove _initialize_nios2_linux_tdep
4670 prototype.
4671 * nios2-tdep.c: Remove _initialize_nios2_tdep prototype.
4672 * nto-procfs.c: Remove _initialize_procfs prototype.
4673 * nto-tdep.c: Remove _initialize_nto_tdep prototype.
4674 * objc-lang.c: Remove _initialize_objc_language prototype.
4675 * objfiles.c: Remove _initialize_objfiles prototype.
4676 * observer.c: Remove observer_test_first_notification_function,
4677 observer_test_second_notification_function,
4678 observer_test_third_notification_function, and
4679 _initialize_observer prototypes.
4680 * opencl-lang.c: Remove _initialize_opencl_language prototypes.
4681 * osabi.c: Remove _initialize_gdb_osabi prototype.
4682 * osdata.c: Remove _initialize_osdata prototype.
4683 * p-valprint.c: Remove _initialize_pascal_valprint prototype.
4684 * parse.c: Remove _initialize_parse prototype.
4685 * ppc-fbsd-nat.c: Remove _initialize_ppcfbsd_nat prototype.
4686 * ppc-fbsd-tdep.c: Remove _initialize_ppcfbsd_tdep prototype.
4687 * ppc-linux-nat.c: Remove _initialize_ppc_linux_nat prototype.
4688 * ppc-linux-tdep.c: Remove _initialize_ppc_linux_tdep prototype.
4689 * ppc-nbsd-nat.c: Remove _initialize_ppcnbsd_nat prototype.
4690 * ppc-nbsd-tdep.c: Remove _initialize_ppcnbsd_tdep prototype.
4691 * ppc-obsd-nat.c: Remove _initialize_ppcobsd_nat prototype.
4692 * ppc-obsd-tdep.c: Remove _initialize_ppcobsd_tdep prototype.
4693 * printcmd.c: Remove _initialize_printcmd prototype.
4694 * probe.c: Remove _initialize_probe prototype.
4695 * proc-api.c: Remove _initialize_proc_api prototype.
4696 * proc-events.c: Remove _initialize_proc_events prototype.
4697 * proc-service.c: Remove _initialize_proc_service prototype.
4698 * procfs.c: Remove _initialize_procfs prototype.
4699 * psymtab.c: Remove _initialize_psymtab prototype.
4700 * python/python.c: Remove _initialize_python prototype.
4701 * ravenscar-thread.c: Remove _initialize_ravenscar prototype.
4702 * record-btrace.c: Remove _initialize_record_btrace prototype.
4703 * record-full.c: Remove _initialize_record_full prototype.
4704 * record.c: Remove _initialize_record prototype.
4705 * regcache.c: Remove _initialize_regcache prototype.
4706 * reggroups.c: Remove _initialize_reggroup prototype.
4707 * remote-notif.c: Remove _initialize_notif prototype.
4708 * remote-sim.c: Remove _initialize_remote_sim prototype.
4709 * remote.c: Remove _initialize_remote prototype.
4710 * reverse.c: Remove _initialize_reverse prototype.
4711 * rl78-tdep.c: Remove _initialize_rl78_tdep prototype.
4712 * rs6000-aix-tdep.c: Remove _initialize_rs6000_aix_tdep prototype.
4713 * rs6000-lynx178-tdep.c: Remove _initialize_rs6000_lynx178_tdep
4714 prototype.
4715 * rs6000-nat.c: Remove _initialize_rs6000_nat prototype.
4716 * rs6000-tdep.c: Remove _initialize_rs6000_tdep prototype.
4717 * rust-exp.y: Remove _initialize_rust_exp prototype.
4718 * rx-tdep.c: Remove _initialize_rx_tdep prototype.
4719 * s390-linux-nat.c: Remove _initialize_s390_nat prototype.
4720 * s390-linux-tdep.c: Remove _initialize_s390_tdep prototype.
4721 * score-tdep.c: Remove _initialize_score_tdep prototype.
4722 * selftest-arch.c: Remove _initialize_selftests_foreach_arch
4723 prototype.
4724 * ser-go32.c: Remove _initialize_ser_dos prototype.
4725 * ser-mingw.c: Remove _initialize_ser_windows prototype.
4726 * ser-pipe.c: Remove _initialize_ser_pipe prototype.
4727 * ser-tcp.c: Remove _initialize_ser_tcp prototype.
4728 * ser-unix.c: Remove _initialize_ser_hardwire prototype.
4729 * serial.c: Remove _initialize_serial prototype.
4730 * sh-linux-tdep.c: Remove _initialize_sh_linux_tdep prototype.
4731 * sh-nbsd-nat.c: Remove _initialize_shnbsd_nat prototype.
4732 * sh-nbsd-tdep.c: Remove _initialize_shnbsd_tdep prototype.
4733 * sh-tdep.c: Remove _initialize_sh_tdep prototype.
4734 * skip.c: Remove _initialize_step_skip prototype.
4735 * sol-thread.c: Remove _initialize_sol_thread prototype.
4736 * solib-aix.c: Remove _initialize_solib_aix prototype.
4737 * solib-darwin.c: Remove _initialize_darwin_solib prototype.
4738 * solib-dsbt.c: Remove _initialize_dsbt_solib prototype.
4739 * solib-frv.c: Remove _initialize_frv_solib prototype.
4740 * solib-spu.c: Remove _initialize_spu_solib prototype.
4741 * solib-svr4.c: Remove _initialize_svr4_solib prototype.
4742 * solib-target.c: Remove _initialize_solib_target prototype.
4743 * solib.c: Remove _initialize_solib prototype.
4744 * source.c: Remove _initialize_source prototype.
4745 * sparc-linux-nat.c: Remove _initialize_sparc_linux_nat prototype.
4746 * sparc-linux-tdep.c: Remove _initialize_sparc_linux_tdep
4747 prototype.
4748 * sparc-nat.c: Remove _initialize_sparc_nat prototype.
4749 * sparc-nbsd-nat.c: Remove _initialize_sparcnbsd_nat prototype.
4750 * sparc-nbsd-tdep.c: Remove _initialize_sparcnbsd_tdep prototype.
4751 * sparc-obsd-tdep.c: Remove _initialize_sparc32obsd_tdep
4752 prototype.
4753 * sparc-sol2-nat.c: Remove _initialize_sparc_sol2_nat prototype.
4754 * sparc-sol2-tdep.c: Remove _initialize_sparc_sol2_tdep prototype.
4755 * sparc-tdep.c: Remove _initialize_sparc_tdep prototype.
4756 * sparc64-fbsd-nat.c: Remove _initialize_sparc64fbsd_nat
4757 prototype.
4758 * sparc64-fbsd-tdep.c: Remove _initialize_sparc64fbsd_tdep
4759 prototype.
4760 * sparc64-linux-nat.c: Remove _initialize_sparc64_linux_nat
4761 prototype.
4762 * sparc64-linux-tdep.c: Remove _initialize_sparc64_linux_tdep
4763 prototype.
4764 * sparc64-nat.c: Remove _initialize_sparc64_nat prototype.
4765 * sparc64-nbsd-nat.c: Remove _initialize_sparc64nbsd_nat
4766 prototype.
4767 * sparc64-nbsd-tdep.c: Remove _initialize_sparc64nbsd_tdep
4768 prototype.
4769 * sparc64-obsd-nat.c: Remove _initialize_sparc64obsd_nat
4770 prototype.
4771 * sparc64-obsd-tdep.c: Remove _initialize_sparc64obsd_tdep
4772 prototype.
4773 * sparc64-sol2-tdep.c: Remove _initialize_sparc64_sol2_tdep
4774 prototype.
4775 * spu-linux-nat.c: Remove _initialize_spu_nat prototype.
4776 * spu-multiarch.c: Remove _initialize_spu_multiarch prototype.
4777 * spu-tdep.c: Remove _initialize_spu_tdep prototype.
4778 * stabsread.c: Remove _initialize_stabsread prototype.
4779 * stack.c: Remove _initialize_stack prototype.
4780 * stap-probe.c: Remove _initialize_stap_probe prototype.
4781 * std-regs.c: Remove _initialize_frame_reg prototype.
4782 * symfile-debug.c: Remove _initialize_symfile_debug prototype.
4783 * symfile-mem.c: Remove _initialize_symfile_mem prototype.
4784 * symfile.c: Remove _initialize_symfile prototype.
4785 * symmisc.c: Remove _initialize_symmisc prototype.
4786 * symtab.c: Remove _initialize_symtab prototype.
4787 * target-dcache.c: Remove _initialize_target_dcache prototype.
4788 * target-descriptions.c: Remove _initialize_target_descriptions
4789 prototype.
4790 * thread.c: Remove _initialize_thread prototype.
4791 * tic6x-linux-tdep.c: Remove _initialize_tic6x_linux_tdep
4792 prototype.
4793 * tic6x-tdep.c: Remove _initialize_tic6x_tdep prototype.
4794 * tilegx-linux-nat.c: Remove _initialize_tile_linux_nat prototype.
4795 * tilegx-linux-tdep.c: Remove _initialize_tilegx_linux_tdep
4796 prototype.
4797 * tilegx-tdep.c: Remove _initialize_tilegx_tdep prototype.
4798 * tracefile-tfile.c: Remove _initialize_tracefile_tfile prototype.
4799 * tracefile.c: Remove _initialize_tracefile prototype.
4800 * tracepoint.c: Remove _initialize_tracepoint prototype.
4801 * tui/tui-hooks.c: Remove _initialize_tui_hooks prototype.
4802 * tui/tui-interp.c: Remove _initialize_tui_interp prototype.
4803 * tui/tui-layout.c: Remove _initialize_tui_layout prototype.
4804 * tui/tui-regs.c: Remove _initialize_tui_regs prototype.
4805 * tui/tui-stack.c: Remove _initialize_tui_stack prototype.
4806 * tui/tui-win.c: Remove _initialize_tui_win prototype.
4807 * tui/tui.c: Remove _initialize_tui prototype.
4808 * typeprint.c: Remove _initialize_typeprint prototype.
4809 * user-regs.c: Remove _initialize_user_regs prototype.
4810 * utils.c: Remove _initialize_utils prototype.
4811 * v850-tdep.c: Remove _initialize_v850_tdep prototype.
4812 * valarith.c: Remove _initialize_valarith prototype.
4813 * valops.c: Remove _initialize_valops prototype.
4814 * valprint.c: Remove _initialize_valprint prototype.
4815 * value.c: Remove _initialize_values prototype.
4816 * varobj.c: Remove _initialize_varobj prototype.
4817 * vax-bsd-nat.c: Remove _initialize_vaxbsd_nat prototype.
4818 * vax-nbsd-tdep.c: Remove _initialize_vaxnbsd_tdep prototype.
4819 * vax-tdep.c: Remove _initialize_vax_tdep prototype.
4820 * windows-nat.c: Remove _initialize_windows_nat,
4821 _initialize_check_for_gdb_ini, and _initialize_loadable
4822 prototypes.
4823 * windows-tdep.c: Remove _initialize_windows_tdep prototype.
4824 * xcoffread.c: Remove _initialize_xcoffread prototype.
4825 * xml-support.c: Remove _initialize_xml_support prototype.
4826 * xstormy16-tdep.c: Remove _initialize_xstormy16_tdep prototype.
4827 * xtensa-linux-nat.c: Remove _initialize_xtensa_linux_nat
4828 prototype.
4829 * xtensa-linux-tdep.c: Remove _initialize_xtensa_linux_tdep
4830 prototype.
4831 * xtensa-tdep.c: Remove _initialize_xtensa_tdep prototype.
4832
a611b5cb
KS
48332017-09-08 Keith Seitz <keiths@redhat.com>
4834
4835 * dwarf2read.c (struct field_info) <fnfields>: Remove unused
4836 field.
4837
469412dd
CW
48382017-09-08 Christoph Weinmann <christoph.t.weinmann@intel.com>
4839
4840 * f-valprint.c (f_val_print): Remove check for one byte
4841 sized integers. Remove printing of character type.
4842
a5ad232b
FP
48432017-09-08 Frank Penczek <frank.penczek@intel.com>
4844 Christoph Weinmann <christoph.t.weinmann@intel.com>
4845 Bernhard Heckel <bernhard.heckel@intel.com>
4846
4847 * f-typeprint.c (f_type_print_base): Use fprintfi_filtered
4848 to maintain proper indentation when printing pointers/refs.
4849
e5014227
JB
48502017-09-07 Joel Brobecker <brobecker@adacore.com>
4851
4852 GDB 8.0.1 released.
4853
63c99141
JB
48542017-09-07 Joel Brobecker <brobecker@adacore.com>
4855
4856 * NEWS (Changes in GDB 7.11): Remove entry for QStartupWithShell.
4857
69c1e056
TT
48582017-09-05 Tom Tromey <tom@tromey.com>
4859
4860 * parse.c (funcall_chain): Now a std::vector.
4861 (start_arglist, end_arglist): Simplify.
4862 (free_funcalls): Remove.
4863 (parse_exp_in_context_1): Remove cleanup.
4864
fef704bf
TT
48652017-09-05 Tom Tromey <tom@tromey.com>
4866
4867 * go-exp.y (go_parse): Don't create a cleanup.
4868
5613c585
TT
48692017-09-05 Tom Tromey <tom@tromey.com>
4870
4871 * d-exp.y (PrimaryExpression): Use std::string.
4872 (d_parse): Don't create a cleanup.
4873
eae49211
TT
48742017-09-05 Tom Tromey <tom@tromey.com>
4875
4876 * utils.c (do_clear_parser_state): Remove.
4877 (make_cleanup_clear_parser_state): Remove.
4878 * p-exp.y (pascal_parse): Use scoped_restore.
4879 * m2-exp.y (m2_parse): Use scoped_restore.
4880 * f-exp.y (f_parse): Use scoped_restore.
4881 * d-exp.y (d_parse): Use scoped_restore.
4882 * c-exp.y (c_parse): Use scoped_restore.
4883 * ada-exp.y (ada_parse): Use scoped_restore.
4884 * utils.h (make_cleanup_clear_parser_state): Remove.
4885
73b9be8b
KS
48862017-09-06 Keith Seitz <keiths@redhat.com>
4887
4888 * dwarf2read.c (dw2_linkage_name_attr): New function.
4889 (dw2_linkage_name): New function.
4890 (dwarf2_compute_name, dwarf2_physname, read_call_site_scope)
4891 (guess_full_die_structure_name, dwarf2_name): Use dw2_linkage_name.
4892 (anonymous_struct_prefix, dwarf2_name): Use dw2_linkage_name_attr.
4893
a102602b
KR
48942017-09-06 Kamil Rytarowski <n54@gmx.com>
4895
4896 * config/djgpp/djconfig.sh: Correct shell portability issue.
4897
28ad437d
KR
48982017-09-06 Kamil Rytarowski <n54@gmx.com>
4899
4900 * configure.nat: Define HAVE_NATIVE_GCORE_HOST on NetBSD.
4901
351787dd
JB
49022017-09-06 John Baldwin <jhb@FreeBSD.org>
4903
4904 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
4905 * NEWS: Mention new FreeBSD/mips native configuration.
4906 * configure.host: Add aarch64*-*-freebsd*.
4907 * configure.nat: Likewise.
4908 * aarch64-fbsd-nat.c: New file.
4909
c0f84956
JB
49102017-09-06 John Baldwin <jhb@FreeBSD.org>
4911
4912 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-fbsd-tdep.o.
4913 (ALLDEPFILES): Add aarch64-fbsd-tdep.c.
4914 * NEWS: Mention new FreeBSD/aarch64 target.
4915 * configure.tgt: Add aarch64*-*-freebsd*.
4916 * aarch64-fbsd-tdep.c: New file.
4917 * aarch64-fbsd-tdep.h: New file.
4918
7610297a
KR
49192017-09-06 Kamil Rytarowski <n54@gmx.com>
4920
4921 * MAINTAINERS (Write After Approval): Add Kamil Rytarowski.
4922
fbd1b771
JK
49232017-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4924
4925 * parse.c (find_minsym_type_and_address): Don't relocate addresses
4926 of TLS symbols.
4927
5ca79eae
PW
49282017-09-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4929
4930 * objfiles.c (get_objfile_bfd_data): Remove useless obstack_init
4931 call.
4932
bf93d7ba
SM
49332017-09-05 Simon Marchi <simon.marchi@ericsson.com>
4934
4935 * infrun.c (follow_exec): Call add_thread after
4936 target_find_description.
4937
1bb7c059
SM
49382017-09-05 Simon Marchi <simon.marchi@ericsson.com>
4939
4940 * infrun.c (handle_inferior_event_1): When exec'ing, read
4941 stop_pc after follow_exec.
4942
fc809827
SM
49432017-09-05 Simon Marchi <simon.marchi@ericsson.com>
4944
4945 * remote.c (process_g_packet): Update error message.
4946
d2fcdd85
YQ
49472017-09-05 Yao Qi <yao.qi@linaro.org>
4948
4949 * configure.tgt (gdb_target_obs): Add i386.o for x86_64-*
4950 targets.
4951
e69570ee
PA
49522017-09-05 Pedro Alves <palves@redhat.com>
4953
4954 * eval.c (eval_call, evaluate_funcall): New functions, factored
4955 out from ...
4956 (evaluate_subexp_standard): ... this.
4957
22916b07
YQ
49582017-09-05 Yao Qi <yao.qi@linaro.org>
4959
4960 * amd64-tdep.c (amd64_target_description): Create target
4961 descriptions.
4962 (_initialize_amd64_tdep): Don't call functions
4963 initialize_tdesc_amd64_*. Add self tests.
4964 * arch/amd64.c (amd64_create_target_description): Add parameter
4965 is_linux. Call set_tdesc_osabi if is_linux is true.
4966 * arch/amd64.h (amd64_create_target_description): Update the
4967 declaration.
4968 * arch/i386.c (i386_create_target_description): Add parameter
4969 is_linux. Call set_tdesc_osabi if is_linux is true.
4970 * arch/i386.h (i386_create_target_description): Update
4971 declaration.
4972 * configure.tgt: Add i386.o to gdb_target_obs.
4973 * features/Makefile (XMLTOC): Remove i386/*.xml.
4974 * features/i386/amd64-avx-avx512.c: Remove.
4975 * features/i386/amd64-avx-mpx-avx512-pku.c: Remove.
4976 * features/i386/amd64-avx-mpx.c: Remove.
4977 * features/i386/amd64-avx.c: Remove.
4978 * features/i386/amd64-mpx.c: Remove.
4979 * features/i386/amd64.c: Remove.
4980 * features/i386/i386-avx-avx512.c: Remove.
4981 * features/i386/i386-avx-mpx-avx512-pku.c: Remove.
4982 * features/i386/i386-avx-mpx.c: Remove.
4983 * features/i386/i386-avx.c: Remove.
4984 * features/i386/i386-mmx.c: Remove.
4985 * features/i386/i386-mpx.c: Remove.
4986 * features/i386/i386.c: Remove.
4987 * i386-tdep.c: Don't include features/i386/i386*.c., include
4988 target-descriptions.h and arch/i386.h.
4989 (i386_target_description): Create target descriptions.
4990 (i386_gdbarch_init): Don't call initialize_tdesc_i386_*
4991 functions. Do self tests.
4992
0854b7b1
YQ
49932017-09-05 Yao Qi <yao.qi@linaro.org>
4994
4995 * features/Makefile (XMLTOC): Remove i386/amd64XXX-linux.xml.
4996 * features/i386/amd64-avx-avx512-linux.c: Removed.
4997 * features/i386/amd64-avx-linux.c: Removed.
4998 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Removed.
4999 * features/i386/amd64-avx-mpx-linux.c: Removed.
5000 * features/i386/amd64-linux.c: Removed.
5001 * features/i386/amd64-mpx-linux.c: Removed.
5002 * features/i386/x32-avx-avx512-linux.c: Removed.
5003 * features/i386/x32-avx-linux.c: Removed.
5004 * features/i386/x32-linux.c: Removed.
5005
b4570e4b
YQ
50062017-09-05 Yao Qi <yao.qi@linaro.org>
5007
5008 * amd64-linux-tdep.c: Include arch/amd64.h. Don't include
5009 features/i386/*.c.
5010 (amd64_linux_read_description): Call
5011 amd64_create_target_description.
5012 * arch/amd64.c: New file.
5013 * arch/amd64.h: New file.
5014 * configure.tgt (x86_64-*-linux*): Append amd64.o.
5015 * Makefile.in (ALL_64_TARGET_OBS): Append amd64.o.
5016
6c73f67f
YQ
50172017-09-05 Yao Qi <yao.qi@linaro.org>
5018
5019 * amd64-linux-tdep.c: Don't include amd64-XXX-linux and
5020 x32-XXX-linux.c. Include 64bit-XX.c and x32-XX.c.
5021 (amd64_linux_read_description): Create target descriptions.
5022 (_initialize_amd64_linux_tdep): Don't call initialize_tdesc_XXX
5023 functions. Add unit tests.
5024 * features/Makefile (FEATURE_XMLFILES): Append 64bit-XXX.xml and
5025 x32-core.xml.
5026 * features/i386/64bit-avx.c: Generated.
5027 * features/i386/64bit-avx512.c: Generated.
5028 * features/i386/64bit-core.c: Generated.
5029 * features/i386/64bit-linux.c: Generated.
5030 * features/i386/64bit-mpx.c: Generated.
5031 * features/i386/64bit-pkeys.c: Generated.
5032 * features/i386/64bit-segments.c: Generated.
5033 * features/i386/64bit-sse.c: Generated.
5034 * features/i386/x32-core.c: Generated.
5035 * target-descriptions.c (maint_print_c_tdesc_cmd): Print feature
5036 c files for amd64-linux and x32-linux.
5037
9d3d478b
YQ
50382017-09-05 Yao Qi <yao.qi@linaro.org>
5039
5040 * amd64-linux-tdep.c (amd64_linux_read_description): New
5041 function.
5042 (amd64_linux_core_read_description): Call
5043 amd64_linux_read_description.
5044 (amd64_linux_init_abi): Likewise.
5045 (amd64_x32_linux_init_abi): Likewise.
5046 * amd64-linux-tdep.h (amd64_linux_read_description): Declare.
5047 * x86-linux-nat.c (x86_linux_read_description): Call
5048 amd64_linux_read_description.
5049
b9f1d50f
YQ
50502017-09-05 Yao Qi <yao.qi@linaro.org>
5051
5052 * amd64-linux-tdep.c (amd64_linux_core_read_description): Update
5053 comments.
5054
188c9e6d
YQ
50552017-09-05 Yao Qi <yao.qi@linaro.org>
5056
5057 * features/Makefile (XMLTOC): Remove i386/i386-XX-linux.xml.
5058 * features/i386/i386-avx-avx512-linux.c: Remove.
5059 * features/i386/i386-avx-linux.c: Remove.
5060 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Remove.
5061 * features/i386/i386-avx-mpx-linux.c: Remove.
5062 * features/i386/i386-linux.c: Remove.
5063 * features/i386/i386-mmx-linux.c: Remove.
5064 * features/i386/i386-mpx-linux.c: Remove.
5065
5f035c07
YQ
50662017-09-05 Yao Qi <yao.qi@linaro.org>
5067
5068 * Makefile.in (ALL_TARGET_OBS): Add i386.o.
5069 (SFILES): Add arch/i386.c.
5070 (HFILES_NO_SRCDIR): Add arch/i386.h.
5071 * arch/i386.c: New file.
5072 * arch/i386.h: New file.
5073 * arch/tdesc.h (allocate_target_description): Declare.
5074 (set_tdesc_architecture): Declare.
5075 (set_tdesc_osabi): Declare.
5076 * configure.tgt (i[34567]86-*-linux*): Add i386.o.
5077 * i386-linux-tdep.c: Don't include ../features/i386/32bit-XXX.c.
5078 include arch/i386.h.
5079 (i386_linux_read_description): Remove code and call
5080 i386_create_target_description.
5081 (set_tdesc_architecture): New function.
5082 (set_tdesc_osabi): New function.
5083 * target-descriptions.h (allocate_target_description): Remove.
5084
0abe8a89
YQ
50852017-09-05 Yao Qi <yao.qi@linaro.org>
5086
5087 * arch/tdesc.h (tdesc_create_feature): Add an argument xml.
5088 * target-descriptions.c (tdesc_create_feature): Likewise, and
5089 adjust code.
5090 * features/i386/32bit-avx.c: Re-generated.
5091 * features/i386/32bit-avx512.c: Re-generated.
5092 * features/i386/32bit-core.c: Re-generated.
5093 * features/i386/32bit-linux.c: Re-generated.
5094 * features/i386/32bit-mpx.c: Re-generated.
5095 * features/i386/32bit-pkeys.c: Re-generated.
5096 * features/i386/32bit-sse.c: Re-generated.
5097
0a188386
YQ
50982017-09-05 Yao Qi <yao.qi@linaro.org>
5099
5100 * regformats/regdef.h (struct reg): Override operator == and !=.
5101
f49ff000
YQ
51022017-09-05 Yao Qi <yao.qi@linaro.org>
5103
5104 * arch/tdesc.h: New file.
5105 * regformats/regdat.sh: Generate code using tdesc_create_reg.
5106 * target-descriptions.c: Update comments.
5107 * target-descriptions.h: Include "arch/tdesc.h". Remove the
5108 declarations.
5109 * features/i386/32bit-avx.c: Re-generated.
5110 * features/i386/32bit-avx512.c: Re-generated.
5111 * features/i386/32bit-core.c: Re-generated.
5112 * features/i386/32bit-linux.c: Re-generated.
5113 * features/i386/32bit-mpx.c: Re-generated.
5114 * features/i386/32bit-pkeys.c: Re-generated.
5115 * features/i386/32bit-sse.c: Re-generated.
5116
f7000548
YQ
51172017-09-05 Yao Qi <yao.qi@linaro.org>
5118
5119 * regformats/regdat.sh: Update generated code.
5120
c9a5e2a5
YQ
51212017-09-05 Yao Qi <yao.qi@linaro.org>
5122
5123 * regformats/regdat.sh: Adjust code order.
5124
d6b687ac
SM
51252017-09-05 Simon Marchi <simon.marchi@ericsson.com>
5126
5127 * expprint.c (dump_subexp_body_standard): Use constant format
5128 string in fprintf_filtered call.
5129
a379bfd0
JB
51302017-09-04 John Baldwin <jhb@FreeBSD.org>
5131
5132 * configure.nat: Add "x86-nat.o x86-dregs.o" for NetBSD/amd64 and
5133 NetBSD/i386.
5134 * x86-bsd-nat.c [!DBREG_DRX && __NetBSD__]: Define DBREG_DRX.
5135
f7efc967
JB
51362017-09-04 John Baldwin <jhb@FreeBSD.org>
5137
5138 * bsd-kvm.o: Make <sys/user.h> conditional on HAVE_SYS_USER_H.
5139
c49fbc6c
JB
51402017-09-04 John Baldwin <jhb@FreeBSD.org>
5141
5142 * bsd-kvm.o: Define _KMEMUSER.
5143 * configure.ac: Define _KMEMUSER when checking for "struct lwp".
5144 * configure: Regenerate.
5145
26562e73
JB
51462017-09-04 John Baldwin <jhb@FreeBSD.org>
5147
5148 * amd64-fbsd-nat.c: Add include of "x86-xstate.h".
5149 * i386-fbsd-nat.c: Likewise.
5150
31cf1487
JB
51512017-09-04 John Baldwin <jhb@FreeBSD.org>
5152
5153 * unittests/array-view-selftests.c: Add include of <array>.
5154
5b9f8a7c
JB
51552017-09-04 John Baldwin <jhb@FreeBSD.org>
5156
5157 * spu-tdep.c (flush_ea_cache): Add missing argument to
5158 call_function_by_hand.
5159
d69cf9b2
PA
51602017-09-04 Pedro Alves <palves@redhat.com>
5161
5162 * NEWS (Safer support for debugging with no debug info): New.
5163
3693fdb3
PA
51642017-09-04 Pedro Alves <palves@redhat.com>
5165
5166 * c-exp.y (function_method, function_method_void): Add current
5167 instance flags to TYPE_INSTANCE.
5168 * dwarf2read.c (check_modifier): New.
5169 (compute_delayed_physnames): Assert that only C++ adds delayed
5170 physnames. Mark fn_fields as const/volatile depending on
5171 physname.
5172 * eval.c (make_params): New type_instance_flags parameter. Use
5173 it as the new type's instance flags.
5174 (evaluate_subexp_standard) <TYPE_INSTANCE>: Extract the instance
5175 flags element and pass it to make_params.
5176 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: Handle
5177 instance flags element.
5178 (dump_subexp_body_standard) <TYPE_INSTANCE>: Likewise.
5179 * gdbtypes.h: Include "enum-flags.h".
5180 (type_instance_flags): New enum-flags type.
5181 (TYPE_CONST, TYPE_VOLATILE, TYPE_RESTRICT, TYPE_ATOMIC)
5182 (TYPE_CODE_SPACE, TYPE_DATA_SPACE): Return boolean.
5183 * parse.c (operator_length_standard) <TYPE_INSTANCE>: Adjust.
5184 (follow_type_instance_flags): New function.
5185 (operator_check_standard) <TYPE_INSTANCE>: Adjust.
5186 * parser-defs.h (follow_type_instance_flags): Declare.
5187 * valops.c (value_struct_elt_for_reference): const/volatile must
5188 match too.
5189
e68cb8e0
PA
51902017-09-04 Pedro Alves <palves@redhat.com>
5191
5192 * cp-namespace.c (cp_search_static_and_baseclasses): Handle
5193 function/method scopes; lookup the nested name as a function local
5194 static variable.
5195
858be34c
PA
51962017-09-04 Pedro Alves <palves@redhat.com>
5197
5198 (%type <voidval>): Add function_method.
5199 * c-exp.y (exp): New production for calls with no arguments.
5200 (function_method, function_method_void_or_typelist): New
5201 productions.
5202 (exp): New production for "method()::static_var".
5203 * eval.c (evaluate_subexp_standard): Handle OP_FUNC_STATIC_VAR.
5204 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
5205 Handle OP_FUNC_STATIC_VAR.
5206 * parse.c (operator_length_standard):
5207 Handle OP_FUNC_STATIC_VAR.
5208
dd5901a6
PA
52092017-09-04 Pedro Alves <palves@redhat.com>
5210
5211 * eval.c (evaluate_subexp_standard): Remove UNOP_MEMVAL_TLS
5212 handling.
5213 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
5214 Ditto.
5215 * parse.c (operator_length_standard, operator_check_standard):
5216 Ditto.
5217 * std-operator.def (UNOP_MEMVAL_TLS): Delete.
5218
46a4882b
PA
52192017-09-04 Pedro Alves <palves@redhat.com>
5220
5221 * ax-gdb.c: Include "typeprint.h".
5222 (gen_expr_for_cast): New function.
5223 (gen_expr) <OP_CAST, OP_CAST_TYPE>: Use it.
5224 <OP_VAR_VALUE, OP_MSYM_VAR_VALUE>: Error out if the variable's
5225 type is unknown.
5226 * dwarf2read.c (new_symbol_full): Fallback to int instead of
5227 nodebug_data_symbol.
5228 * eval.c: Include "typeprint.h".
5229 (evaluate_subexp_standard) <OP_VAR_VALUE, OP_VAR_MSYM_VALUE>:
5230 Error out if symbol has unknown type.
5231 <UNOP_CAST, UNOP_CAST_TYPE>: Common bits factored out to
5232 evaluate_subexp_for_cast.
5233 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof): Handle
5234 OP_VAR_MSYM_VALUE.
5235 (evaluate_subexp_for_cast): New function.
5236 * gdbtypes.c (init_nodebug_var_type): New function.
5237 (objfile_type): Use it to initialize types of variables with no
5238 debug info.
5239 * typeprint.c (error_unknown_type): New.
5240 * typeprint.h (error_unknown_type): New declaration.
5241 * compile/compile-c-types.c (convert_type_basic): Handle
5242 TYPE_CODE_ERROR; warn and fallback to int for variables with
5243 unknown type.
5244
fe13dfec
PA
52452017-09-04 Pedro Alves <palves@redhat.com>
5246
5247 * eval.c (evaluate_var_value): New function, factored out from ...
5248 (evaluate_subexp_standard): ... here.
5249
d008ee21
PA
52502017-09-04 Pedro Alves <palves@redhat.com>
5251
5252 * eval.c (evaluate_subexp_standard) <UNOP_COMPLEMENT, UNOP_ADDR>:
5253 Remove useless assignments to 'op'.
5254
827d0c51
PA
52552017-09-04 Pedro Alves <palves@redhat.com>
5256
5257 * eval.c (eval_skip_value): New function.
5258 (evaluate_subexp_standard): Use it.
5259
2c5a2be1
PA
52602017-09-04 Pedro Alves <palves@redhat.com>
5261
5262 * eval.c (evaluate_subexp_standard): <OP_FUNCALL>: Extract
5263 function name from symbol/minsym and pass it to
5264 error_call_unknown_return_type.
5265
74ea4be4
PA
52662017-09-04 Pedro Alves <palves@redhat.com>
5267
5268 * ada-lang.c (resolve_subexp): Handle OP_VAR_MSYM_VALUE.
5269 * ax-gdb.c (gen_msym_var_ref): New function.
5270 (gen_expr): Handle OP_VAR_MSYM_VALUE.
5271 * eval.c (evaluate_var_msym_value): New function.
5272 * eval.c (evaluate_subexp_standard): Handle OP_VAR_MSYM_VALUE.
5273 <OP_FUNCALL>: Extract function name from symbol/minsym and pass it
5274 to call_function_by_hand.
5275 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
5276 Handle OP_VAR_MSYM_VALUE.
5277 (union exp_element) <msymbol>: New field.
5278 * minsyms.h (struct type): Forward declare.
5279 (find_minsym_type_and_address): Declare.
5280 * parse.c (write_exp_elt_msym): New function.
5281 (write_exp_msymbol): Delete, refactored as ...
5282 (find_minsym_type_and_address): ... this new function.
5283 (write_exp_msymbol): Reimplement using OP_VAR_MSYM_VALUE.
5284 (operator_length_standard, operator_check_standard): Handle
5285 OP_VAR_MSYM_VALUE.
5286 * std-operator.def (OP_VAR_MSYM_VALUE): New.
5287
7022349d
PA
52882017-09-04 Pedro Alves <palves@redhat.com>
5289
5290 * ada-lang.c (ada_evaluate_subexp) <TYPE_CODE_FUNC>: Don't handle
5291 TYPE_GNU_IFUNC specially here. Throw error if return type is
5292 unknown.
5293 * ada-typeprint.c (print_func_type): Handle functions with unknown
5294 return type.
5295 * c-typeprint.c (c_type_print_base): Handle functions and methods
5296 with unknown return type.
5297 * compile/compile-c-symbols.c (convert_symbol_bmsym)
5298 <mst_text_gnu_ifunc>: Use nodebug_text_gnu_ifunc_symbol.
5299 * compile/compile-c-types.c: Include "objfiles.h".
5300 (convert_func): For functions with unknown return type, warn and
5301 default to int.
5302 * compile/compile-object-run.c (compile_object_run): Adjust call
5303 to call_function_by_hand_dummy.
5304 * elfread.c (elf_gnu_ifunc_resolve_addr): Adjust call to
5305 call_function_by_hand.
5306 * eval.c (evaluate_subexp_standard): Adjust calls to
5307 call_function_by_hand. Handle functions and methods with unknown
5308 return type. Pass expect_type to call_function_by_hand.
5309 * f-typeprint.c (f_type_print_base): Handle functions with unknown
5310 return type.
5311 * gcore.c (call_target_sbrk): Adjust call to
5312 call_function_by_hand.
5313 * gdbtypes.c (objfile_type): Leave nodebug text symbol with NULL
5314 return type instead of int. Make nodebug_text_gnu_ifunc_symbol be
5315 an integer address type instead of nodebug.
5316 * guile/scm-value.c (gdbscm_value_call): Adjust call to
5317 call_function_by_hand.
5318 * infcall.c (error_call_unknown_return_type): New function.
5319 (call_function_by_hand): New "default_return_type" parameter.
5320 Pass it down.
5321 (call_function_by_hand_dummy): New "default_return_type"
5322 parameter. Use it instead of defaulting to int. If there's no
5323 default and the return type is unknown, throw an error. If
5324 there's a default return type, and the called function has no
5325 debug info, then assume the function is prototyped.
5326 * infcall.h (call_function_by_hand, call_function_by_hand_dummy):
5327 New "default_return_type" parameter.
5328 (error_call_unknown_return_type): New declaration.
5329 * linux-fork.c (call_lseek): Cast return type of lseek.
5330 (inferior_call_waitpid, checkpoint_command): Adjust calls to
5331 call_function_by_hand.
5332 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap): Adjust
5333 calls to call_function_by_hand.
5334 * m2-typeprint.c (m2_procedure): Handle functions with unknown
5335 return type.
5336 * objc-lang.c (lookup_objc_class, lookup_child_selector)
5337 (value_nsstring, print_object_command): Adjust calls to
5338 call_function_by_hand.
5339 * p-typeprint.c (pascal_type_print_varspec_prefix): Handle
5340 functions with unknown return type.
5341 (pascal_type_print_func_varspec_suffix): New function.
5342 (pascal_type_print_varspec_suffix) <TYPE_CODE_FUNC,
5343 TYPE_CODE_METHOD>: Use it.
5344 * python/py-value.c (valpy_call): Adjust call to
5345 call_function_by_hand.
5346 * rust-lang.c (rust_evaluate_funcall): Adjust call to
5347 call_function_by_hand.
5348 * valarith.c (value_x_binop, value_x_unop): Adjust calls to
5349 call_function_by_hand.
5350 * valops.c (value_allocate_space_in_inferior): Adjust call to
5351 call_function_by_hand.
5352 * typeprint.c (type_print_unknown_return_type): New function.
5353 * typeprint.h (type_print_unknown_return_type): New declaration.
5354
54990598
PA
53552017-09-04 Pedro Alves <palves@redhat.com>
5356
5357 * gdbtypes.c (lookup_function_type_with_arguments): Mark function
5358 types with more than one parameter as prototyped.
5359
9a24775b
PA
53602017-09-04 Pedro Alves <palves@redhat.com>
5361
5362 * cli/cli-cmds.c (print_disassembly, disassemble_current_function)
5363 (disassemble_command): Use gdb_disassembly_flags instead of bare
5364 int.
5365 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn)
5366 (dump_insns, do_mixed_source_and_assembly_deprecated)
5367 (do_mixed_source_and_assembly, do_assembly_only, gdb_disassembly):
5368 Use gdb_disassembly_flags instead of bare int.
5369 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED, DISASSEMBLY_RAW_INSN)
5370 (DISASSEMBLY_OMIT_FNAME, DISASSEMBLY_FILENAME)
5371 (DISASSEMBLY_OMIT_PC, DISASSEMBLY_SOURCE)
5372 (DISASSEMBLY_SPECULATIVE): No longer macros. Instead they're...
5373 (enum gdb_disassembly_flag): ... values of this new enumeration.
5374 (gdb_disassembly_flags): Define.
5375 (gdb_disassembly)
5376 (gdb_pretty_print_disassembler::pretty_print_insn): Use it.
5377 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Use
5378 gdb_disassembly_flags instead of bare int.
5379 * record-btrace.c (btrace_insn_history)
5380 (record_btrace_insn_history, record_btrace_insn_history_range)
5381 (record_btrace_insn_history_from): Use gdb_disassembly_flags
5382 instead of bare int.
5383 * record.c (get_insn_history_modifiers, cmd_record_insn_history):
5384 Use gdb_disassembly_flags instead of bare int.
5385 * target-debug.h (target_debug_print_gdb_disassembly_flags):
5386 Define.
5387 * target-delegates.c: Regenerate.
5388 * target.c (target_insn_history, target_insn_history_from)
5389 (target_insn_history_range): Use gdb_disassembly_flags instead of
5390 bare int.
5391 * target.h: Include "disasm.h".
5392 (struct target_ops) <to_insn_history, to_insn_history_from,
5393 to_insn_history_range>: Use gdb_disassembly_flags instead of bare
5394 int.
5395 (target_insn_history, target_insn_history_from)
5396 (target_insn_history_range): Use gdb_disassembly_flags instead of
5397 bare int.
5398
80a65e9b
SM
53992017-09-04 Simon Marchi <simon.marchi@ericsson.com>
5400
5401 * cli/cli-script.c (build_command_line): For if/while commands,
5402 check whether args is empty.
5403
6b66338c
SM
54042017-09-04 Simon Marchi <simon.marchi@ericsson.com>
5405
5406 * cli/cli-script.h (enum misc_command_type): Move from defs.h.
5407 (enum command_control_type): Likewise.
5408 (struct command_line): Likewise.
5409 (free_command_lines): Likewise.
5410 (struct command_lines_deleter): Likewise.
5411 (command_line_up): Likewise.
5412 (read_command_lines): Likewise.
5413 (read_command_lines_1): Likewise.
5414 * defs.h (enum misc_command_type): Move to cli/cli-script.h.
5415 (enum command_control_type): Likewise.
5416 (struct command_line): Likewise.
5417 (free_command_lines): Likewise.
5418 (struct command_lines_deleter): Likewise.
5419 (command_line_up): Likewise.
5420 (read_command_lines): Likewise.
5421 (read_command_lines_1): Likewise.
5422 * breakpoint.h: Include cli/cli-script.h.
5423 * extension-priv.h: Likewise.
5424 * gdbcmd.h: Likewise.
5425
51abb421
PA
54262017-09-04 Pedro Alves <palves@redhat.com>
5427
5428 * ada-lang.c (is_known_support_routine): Move sal declaration to
5429 where it is initialized.
5430 * breakpoint.c (create_internal_breakpoint, init_catchpoint)
5431 (parse_breakpoint_sals, decode_static_tracepoint_spec)
5432 (clear_command, update_static_tracepoint): Remove init_sal
5433 references. Move declarations closer to initializations.
5434 * cli/cli-cmds.c (list_command): Move sal declarations closer to
5435 initializations.
5436 * elfread.c (elf_gnu_ifunc_resolver_stop): Remove init_sal
5437 references. Move sal declarations closer to initializations.
5438 * frame.c (find_frame_sal): Return a symtab_and_line via function
5439 return instead of output parameter. Remove init_sal references.
5440 * frame.h (find_frame_sal): Return a symtab_and_line via function
5441 return instead of output parameter.
5442 * guile/scm-frame.c (gdbscm_frame_sal): Adjust.
5443 * guile/scm-symtab.c (stscm_make_sal_smob): Use in-place new
5444 instead of memset.
5445 (gdbscm_find_pc_line): Remove init_sal reference.
5446 * infcall.c (call_function_by_hand_dummy): Remove init_sal
5447 references. Move declarations closer to initializations.
5448 * infcmd.c (set_step_frame): Update. Move declarations closer to
5449 initializations.
5450 (finish_backward): Remove init_sal references. Move declarations
5451 closer to initializations.
5452 * infrun.c (process_event_stop_test, handle_step_into_function)
5453 (insert_hp_step_resume_breakpoint_at_frame)
5454 (insert_step_resume_breakpoint_at_caller): Likewise.
5455 * linespec.c (create_sals_line_offset, decode_digits_ordinary)
5456 (symbol_to_sal): Likewise.
5457 * probe.c (parse_probes_in_pspace): Remove init_sal reference.
5458 * python/py-frame.c (frapy_find_sal): Move sal declaration closer
5459 to its initialization.
5460 * reverse.c (save_bookmark_command): Use new/delete. Remove
5461 init_sal references. Move declarations closer to initializations.
5462 * source.c (get_current_source_symtab_and_line): Remove brace
5463 initialization.
5464 (set_current_source_symtab_and_line): Now takes the sal by const
5465 reference. Remove brace initialization.
5466 (line_info): Remove init_sal reference.
5467 * source.h (set_current_source_symtab_and_line): Now takes a
5468 symtab_and_line via const reference.
5469 * stack.c (set_current_sal_from_frame): Adjust.
5470 (print_frame_info): Adjust.
5471 (get_last_displayed_sal): Return the sal via function return
5472 instead of via output parameter. Simplify.
5473 (frame_info): Adjust.
5474 * stack.h (get_last_displayed_sal): Return the sal via function
5475 return instead of via output parameter.
5476 * symtab.c (init_sal): Delete.
5477 (find_pc_sect_line): Remove init_sal references. Move
5478 declarations closer to initializations.
5479 (find_function_start_sal): Remove init_sal references. Move
5480 declarations closer to initializations.
5481 * symtab.h (struct symtab_and_line): In-class initialize all
5482 fields.
5483 * tracepoint.c (set_traceframe_context)
5484 (print_one_static_tracepoint_marker): Remove init_sal references.
5485 Move declarations closer to initializations.
5486 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Adjust.
5487 * tui/tui-stack.c (tui_show_frame_info): Adjust. Move
5488 declarations closer to initializations.
5489 * tui/tui-winsource.c (tui_update_source_window_as_is): Remove
5490 init_sal references. Adjust.
5491
6c5b2ebe
PA
54922017-09-04 Pedro Alves <palves@redhat.com>
5493
5494 * ax-gdb.c (agent_command_1): Use range-for.
5495 * break-catch-throw.c (re_set_exception_catchpoint): Update.
5496 * breakpoint.c: Include "common/array-view.h".
5497 (init_breakpoint_sal, create_breakpoint_sal): Change sals
5498 parameter from struct symtabs_and_lines to
5499 array_view<symtab_and_line>. Adjust. Use range-for. Update.
5500 (breakpoint_sals_to_pc): Change sals parameter from struct
5501 symtabs_and_lines to std::vector reference.
5502 (check_fast_tracepoint_sals): Change sals parameter from struct
5503 symtabs_and_lines to std::array_view. Use range-for.
5504 (decode_static_tracepoint_spec): Return a std::vector instead of
5505 symtabs_and_lines. Update.
5506 (create_breakpoint): Update.
5507 (break_range_command, until_break_command, clear_command): Update.
5508 (base_breakpoint_decode_location, bkpt_decode_location)
5509 (bkpt_probe_create_sals_from_location)
5510 (bkpt_probe_decode_location, tracepoint_decode_location)
5511 (tracepoint_probe_decode_location)
5512 (strace_marker_create_sals_from_location): Return a std::vector
5513 instead of symtabs_and_lines.
5514 (strace_marker_create_breakpoints_sal): Update.
5515 (strace_marker_decode_location): Return a std::vector instead of
5516 symtabs_and_lines. Update.
5517 (update_breakpoint_locations): Change struct symtabs_and_lines
5518 parameters to gdb::array_view. Adjust.
5519 (location_to_sals): Return a std::vector instead of
5520 symtabs_and_lines. Update.
5521 (breakpoint_re_set_default): Use std::vector instead of struct
5522 symtabs_and_lines.
5523 (decode_location_default): Return a std::vector instead of
5524 symtabs_and_lines. Update.
5525 * breakpoint.h: Include "common/array-view.h".
5526 (struct breakpoint_ops) <decode_location>: Now returns a
5527 std::vector instead of returning a symtabs_and_lines via output
5528 parameter.
5529 (update_breakpoint_locations): Change sals parameters to use
5530 gdb::array_view.
5531 * cli/cli-cmds.c (edit_command, list_command): Update to use
5532 std::vector and gdb::array_view.
5533 (ambiguous_line_spec): Adjust to use gdb::array_view and
5534 range-for.
5535 (compare_symtabs): Rename to ...
5536 (cmp_symtabs): ... this. Change parameters to symtab_and_line
5537 const reference and adjust.
5538 (filter_sals): Rewrite using std::vector and standard algorithms.
5539 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Simplify.
5540 (jump_command): Update to use std::vector.
5541 * linespec.c (struct linespec_state) <canonical_names>: Update
5542 comment.
5543 (add_sal_to_sals_basic): Delete.
5544 (add_sal_to_sals, filter_results, convert_results_to_lsals)
5545 (decode_line_2, create_sals_line_offset)
5546 (convert_address_location_to_sals, convert_linespec_to_sals)
5547 (convert_explicit_location_to_sals, parse_linespec)
5548 (event_location_to_sals, decode_line_full, decode_line_1)
5549 (decode_line_with_current_source)
5550 (decode_line_with_last_displayed, decode_objc)
5551 (decode_digits_list_mode, decode_digits_ordinary, minsym_found)
5552 (linespec_result::~linespec_result): Adjust to use std::vector
5553 instead of symtabs_and_lines.
5554 * linespec.h (linespec_sals::sals): Now a std::vector.
5555 (struct linespec_result): Use std::vector, bool, and in-class
5556 initialization.
5557 (decode_line_1, decode_line_with_current_source)
5558 (decode_line_with_last_displayed): Return std::vector.
5559 * macrocmd.c (info_macros_command): Use std::vector.
5560 * mi/mi-main.c (mi_cmd_trace_find): Use std::vector.
5561 * probe.c (parse_probes_in_pspace, parse_probes): Adjust to use
5562 std::vector.
5563 * probe.h (parse_probes): Return a std::vector.
5564 * python/python.c (gdbpy_decode_line): Use std::vector and
5565 gdb::array_view.
5566 * source.c (select_source_symtab, line_info): Use std::vector.
5567 * stack.c (func_command): Use std::vector.
5568 * symtab.h (struct symtabs_and_lines): Delete.
5569 * tracepoint.c (tfind_line_command, scope_info): Use std::vector.
5570
7c44b49c
PA
55712017-09-04 Pedro Alves <palves@redhat.com>
5572
5573 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
5574 unittests/array-view-selftests.c.
5575 (SUBDIR_UNITTESTS_OBS): Add array-view-selftests.o.
5576 * common/array-view.h: New file.
5577 * unittests/array-view-selftests.c: New file.
5578
e439fa14
PA
55792017-09-04 Pedro Alves <palves@redhat.com>
5580
5581 * cli/cli-cmds.c (edit_command): Pass message to
5582 ambiguous_line_spec.
5583 (list_command): Pass message to ambiguous_line_spec. Say
5584 "first"/"last" instead of "start" and "end" to be consistent with
5585 the manual.
5586 (ambiguous_line_spec): Add 'format' and vararg parameters. Use
5587 them to print formatted message.
5588
7525b645
PA
55892017-09-04 Pedro Alves <palves@redhat.com>
5590
5591 * btrace.c (ftrace_add_pt): Pass btrace_insn to
5592 ftrace_update_insns by reference instead of pointer.
5593
badc0020
YQ
55942017-09-04 Yao Qi <yao.qi@linaro.org>
5595
5596 * i386-go32-tdep.c: Include x86-xstate.h.
5597 (i386_go32_init_abi): Call i386_target_description.
5598 * i386-tdep.c (i386_target_description): Return tdesc_i386_mmx
5599 if xcr0 is X86_XSTATE_X87_MASK.
5600 * i386-tdep.h (tdesc_i386): Remove the declaration.
5601 (tdesc_i386_mmx): Likewise.
5602
d78bdb54
YQ
56032017-09-04 Yao Qi <yao.qi@linaro.org>
5604
5605 * i386-fbsd-tdep.c (i386fbsd_core_read_xcr0): Return
5606 X86_XSTATE_SSE_MASK instead of 0.
5607
ca1fa5ee
YQ
56082017-09-04 Yao Qi <yao.qi@linaro.org>
5609
5610 * amd64-fbsd-nat.c (amd64fbsd_read_description): Call
5611 i386_target_description.
5612 * i386-fbsd-nat.c (i386fbsd_read_description): Call
5613 i386_target_description.
5614 * i386-tdep.c (i386_gdbarch_init): Likewise.
5615
2434b019
YQ
56162017-09-04 Yao Qi <yao.qi@linaro.org>
5617
5618 * amd64-darwin-tdep.c: Include "x86-xstate.h".
5619 (x86_darwin_init_abi_64): Call amd64_target_description.
5620 * amd64-dicos-tdep.c: Likewise.
5621 * amd64-fbsd-nat.c: Likewise.
5622 * amd64-fbsd-tdep.c: Likewise.
5623 * amd64-nbsd-tdep.c: Likewise.
5624 * amd64-obsd-tdep.c: Likewise.
5625 * amd64-sol2-tdep.c: Likewise.
5626 * amd64-windows-tdep.c: Likewise.
5627 * amd64-tdep.h (tdesc_amd64): Remove the declaration.
5628
0860c437
SM
56292017-09-04 Simon Marchi <simon.marchi@ericsson.com>
5630
5631 * btrace.h (btrace_insn_s, DEF_VEC_O (btrace_insn_s)): Remove.
5632 (btrace_function) <insn>: Change type to use std::vector.
5633 * btrace.c (ftrace_debug, ftrace_call_num_insn,
5634 ftrace_find_call, ftrace_new_gap, ftrace_update_function,
5635 ftrace_update_insns, ftrace_compute_global_level_offset,
5636 btrace_stitch_bts, btrace_clear, btrace_insn_get,
5637 btrace_insn_end, btrace_insn_next, btrace_insn_prev): Adjust to
5638 change to std::vector.
5639 (ftrace_update_insns): Adjust to change to std::vector, change
5640 type of INSN parameter.
5641 (btrace_compute_ftrace_bts): Adjust call to ftrace_update_insns.
5642 * record-btrace.c (btrace_call_history_insn_range,
5643 btrace_compute_src_line_range,
5644 record_btrace_frame_prev_register): Adjust to change to
5645 std::vector.
5646 * python/py-record-btrace.c (recpy_bt_func_instructions): Adjust
5647 to change to std::vector.
5648
0638b7f9
TT
56492017-09-03 Tom Tromey <tom@tromey.com>
5650
5651 * corefile.c (reopen_exec_file): Use std::string.
5652
8f84fb0e
TT
56532017-09-03 Tom Tromey <tom@tromey.com>
5654
5655 * compile/compile.c (compile_register_name_mangled): Return
5656 std::string.
5657 * compile/compile-loc2c.c (pushf_register_address): Update.
5658 (pushf_register): Update.
5659 * compile/compile-c-types.c (convert_array): Update.
5660 * compile/compile-c-symbols.c (generate_vla_size): Update.
5661 (error_symbol_once): Use a gdb::unique_xmalloc_ptr.
5662 (symbol_substitution_name): Return a gdb::unique_xmalloc_ptr.
5663 (convert_one_symbol): Update.
5664 (generate_c_for_for_one_variable): Update.
5665 * compile/compile-c-support.c (c_get_range_decl_name): Return a
5666 std::string.
5667 (generate_register_struct): Update.
5668 * compile/compile-internal.h (c_get_range_decl_name): Return a
5669 std::string.
5670 (compile_register_name_mangled): Return std::string.
5671
18e9961f
TT
56722017-09-03 Tom Tromey <tom@tromey.com>
5673
5674 * utils.c (perror_string): Return a std::string.
5675 (throw_perror_with_name, perror_warning_with_name): Update.
5676
45343786
TT
56772017-09-03 Tom Tromey <tom@tromey.com>
5678
5679 * demangle.c (demangle_command): Use std::string,
5680 unique_xmalloc_ptr.
5681
b57af503
TT
56822017-09-03 Tom Tromey <tom@tromey.com>
5683
5684 * cli/cli-setshow.c (do_set_command): Use std::string.
5685
6eecf35f
TT
56862017-09-03 Tom Tromey <tom@tromey.com>
5687
5688 * cli/cli-cmds.c (cd_command): Use gdb::unique_xmalloc_ptr.
5689
56496dd4
TT
56902017-09-03 Tom Tromey <tom@tromey.com>
5691
5692 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use std::string.
5693
e91a1fa7
TT
56942017-09-03 Tom Tromey <tom@tromey.com>
5695
5696 * mi/mi-cmd-env.c (env_execute_cli_command): Use
5697 gdb::unique_xmalloc_ptr.
5698
7ffd83d7
TT
56992017-09-03 Tom Tromey <tom@tromey.com>
5700
5701 * thread.c (print_thread_info_1): Use string_printf.
5702 (thread_apply_command, thread_apply_all_command): Use
5703 std::string.
5704
1ccbe998
TT
57052017-09-03 Tom Tromey <tom@tromey.com>
5706
5707 * valprint.c (val_print_string): Update.
5708 * gdbcore.h (memory_error_message): Return std::string.
5709 * corefile.c (memory_error_message): Return std::string.
5710 (memory_error): Update.
5711 * breakpoint.c (insert_bp_location): Update.
5712
23fdd69e
SM
57132017-09-03 Simon Marchi <simon.marchi@ericsson.com>
5714
5715 * target/waitstatus.h (target_waitstatus_to_string): Change
5716 return type to std::string.
5717 * target/waitstatus.c (target_waitstatus_to_string): Return
5718 std::string.
5719 * target.h (target_waitstatus_to_string): Remove declaration.
5720 * infrun.c (resume, clear_proceed_status_thread,
5721 print_target_wait_results, do_target_wait, save_waitstatus,
5722 stop_all_threads): Adjust.
5723 * record-btrace.c (record_btrace_wait): Adjust.
5724 * target-debug.h
5725 (target_debug_print_struct_target_waitstatus_p): Adjust.
5726
5c811d30
JK
57272017-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5728
5729 PR gdb/22046
5730 * nat/linux-procfs.c (parse_proc_status_state): Fix PROC_STATE_STOPPED
5731 detection.
5732
0a2dde4a
SDJ
57332017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
5734
5735 * NEWS (Changes since GDB 8.0): Add entry mentioning new support
5736 for setting/unsetting environment variables on the remote target.
5737 (New remote packets): Add entries for QEnvironmentHexEncoded,
5738 QEnvironmentUnset and QEnvironmentReset.
5739 * common/environ.c (gdb_environ::operator=): Extend method to
5740 handle m_user_set_env_list and m_user_unset_env_list.
5741 (gdb_environ::clear): Likewise.
5742 (match_var_in_string): Change type of first parameter from 'char
5743 *' to 'const char *'.
5744 (gdb_environ::set): Extend method to handle
5745 m_user_set_env_list and m_user_unset_env_list.
5746 (gdb_environ::unset): Likewise.
5747 (gdb_environ::clear_user_set_env): New method.
5748 (gdb_environ::user_set_envp): Likewise.
5749 (gdb_environ::user_unset_envp): Likewise.
5750 * common/environ.h (gdb_environ): Handle m_user_set_env_list and
5751 m_user_unset_env_list on move constructor/assignment.
5752 (unset): Add new default parameter 'update_unset_list = true'.
5753 (clear_user_set_env): New method.
5754 (user_set_envp): Likewise.
5755 (user_unset_envp): Likewise.
5756 (m_user_set_env_list): New std::set.
5757 (m_user_unset_env_list): Likewise.
5758 * common/rsp-low.c (hex2str): New function.
5759 (bin2hex): New overload for bin2hex function.
5760 * common/rsp-low.c (hex2str): New prototype.
5761 (str2hex): New overload prototype.
5762 * remote.c: Include "environ.h". Add QEnvironmentHexEncoded,
5763 QEnvironmentUnset and QEnvironmentReset.
5764 (remote_protocol_features): Add QEnvironmentHexEncoded,
5765 QEnvironmentUnset and QEnvironmentReset packets.
5766 (send_environment_packet): New function.
5767 (extended_remote_environment_support): Likewise.
5768 (extended_remote_create_inferior): Call
5769 extended_remote_environment_support.
5770 (_initialize_remote): Add QEnvironmentHexEncoded,
5771 QEnvironmentUnset and QEnvironmentReset packet configs.
5772 * unittests/environ-selftests.c (gdb_selftest_env_var):
5773 New variable.
5774 (test_vector_initialization): New function.
5775 (test_init_from_host_environ): Likewise.
5776 (test_reinit_from_host_environ): Likewise.
5777 (test_set_A_unset_B_unset_A_cannot_find_A_can_find_B):
5778 Likewise.
5779 (test_unset_set_empty_vector): Likewise.
5780 (test_vector_clear): Likewise.
5781 (test_std_move): Likewise.
5782 (test_move_constructor):
5783 (test_self_move): Likewise.
5784 (test_set_unset_reset): Likewise.
5785 (run_tests): Rewrite in terms of the functions above.
5786
654670a4
WP
57872017-08-31 Weimin Pan <weimin.pan@oracle.com>
5788
5789 * sparc64-tdep.c (adi_stat_t): Fix comment formatting.
5790 (adi_available): Use a temp variable of type CORE_ADDR as argument
5791 3 when calling target_auxv_search.
5792 (adi_normalize_address): Use masks and xor operators to calculate
5793 normalized address.
5794 (adi_read_versions, adi_write_versions, adi_print_versions)
5795 (do_examine, do_assign): Use paddress.
5796
7755ddb7
JB
57972017-08-29 John Baldwin <jhb@FreeBSD.org>
5798
5799 * mips-fbsd-nat.c (getfpregs_supplies): Return true for FIR.
5800 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Split supply of FSR
5801 out of loop and add supply of FIR.
5802 (mips_fbsd_collect_fpregs): Split collect of FSR out of loop and
5803 add collect of FIR.
5804
fd437cbc
SM
58052017-08-28 Simon Marchi <simon.marchi@ericsson.com>
5806
3804a343 5807 PR gdb/21827
fd437cbc
SM
5808 * cli/cli-script.c (define_command): Don't convert command name
5809 to lower case.
5810
988f6b3d
JB
58112017-08-25 Joel Brobecker <brobecker@adacore.com>
5812
5813 * ada-lang.c (ada_lookup_struct_elt_type): Remove parameter "dispp".
5814 Update all callers accordingly. Remove all code blocks handling
5815 the case where DISPP is not NULL.
5816
663c44ac
JK
58172017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5818
5819 PR symtab/22003
5820 * dwarf2read.c (dwarf2_const_value_attr, dump_die_shallow)
5821 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
5822 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_implicit_const.
5823
f1902523
JK
58242017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5825
5826 * dwarf2read.c (build_type_psymtabs_reader): New prototype.
5827 (process_psymtab_comp_unit): Accept IS_DEBUG_TYPES.
5828 (read_comp_units_from_section): New parameter abbrev_section, use
5829 read_and_check_comp_unit_head, allocate signatured_type if needed.
5830 (create_all_comp_units): Update read_comp_units_from_section caller.
5831
87215ad1
SDJ
58322017-08-23 Pedro Alves <palves@redhat.com>
5833
5834 PR remote/21852
5835 * remote.c (add_current_inferior_and_thread): Set inferior_ptid
5836 to null_ptid and switch to thread without reading the registers
5837 after adding the inferior.
5838
6e41ddec
JK
58392017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
5840
5841 * NEWS (Changes since GDB 8.0): Add set compile-gcc and show
5842 compile-gcc.
5843 * compile/compile.c (compile_gcc, show_compile_gcc): New.
5844 (compile_to_object): Implement compile_gcc.
5845 (_initialize_compile): Install "set compile-gcc". Initialize
5846 compile_gcc.
5847
e68c32d5
JK
58482017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
5849
5850 * compile/compile.c (compile_to_object): Conditionally call
5851 set_verbose. Conditionally call compile or compile_v0.
5852
58afddc6
WP
58532017-08-07 Weimin Pan <weimin.pan@oracle.com>
5854
5855 * sparc64-tdep.h: (adi_normalize_address): New export.
5856 * sparc-nat.h: (open_adi_tag_fd): New export.
5857 * sparc64-linux-nat.c: (open_adi_tag_fd): New function.
5858 * sparc64-linux-tdep.c:
5859 (SEGV_ACCADI, SEGV_ADIDERR, SEGV_ADIPERR) New defines.
5860 (sparc64_linux_handle_segmentation_fault): New function.
5861 (sparc64_linux_init_abi): Register
5862 sparc64_linux_handle_segmentation_fault
5863 * sparc64-tdep.c: Include cli-utils.h,gdbcmd.h,auxv.h.
5864 (sparc64_addr_bits_remove): New function.
5865 (sparc64_init_abi): Register sparc64_addr_bits_remove.
5866 (MAX_PROC_NAME_SIZE): New macro.
5867 (AT_ADI_BLKSZ, AT_ADI_NBITS, AT_ADI_UEONADI) New defines.
5868 (sparc64adilist): New variable.
5869 (adi_proc_list): New variable.
5870 (find_adi_info): New function.
5871 (add_adi_info): New function.
5872 (get_adi_info_proc): New function.
5873 (get_adi_info): New function.
5874 (info_adi_command): New function.
5875 (read_maps_entry): New function.
5876 (adi_available): New function.
5877 (adi_normalize_address): New function.
5878 (adi_align_address): New function.
5879 (adi_convert_byte_count): New function.
5880 (adi_tag_fd): New function.
5881 (adi_is_addr_mapped): New function.
5882 (adi_read_versions): New function.
5883 (adi_write_versions): New function.
5884 (adi_print_versions): New function.
5885 (do_examine): New function.
5886 (do_assign): New function.
5887 (adi_examine_command): New function.
5888 (adi_assign_command): New function.
5889 (_initialize_sparc64_adi_tdep): New function.
5890
11db9430
SM
58912017-08-22 Simon Marchi <simon.marchi@ericsson.com>
5892
5893 * breakpoint.c (breakpoints_info): Rename to ...
5894 (info_breakpoints_command): ... this.
5895 (watchpoints_info): Rename to ...
5896 (info_watchpoints_command): ... this.
5897 (tracepoints_info): Rename to ...
5898 (info_tracepoints_command): ... this.
5899 (_initialize_breakpoint): Adjust.
5900 * dcache.c (dcache_info): Rename to ...
5901 (info_display_command): ... this.
5902 (_initialize_dcache): Adjust.
5903 * frame.h (args_info): Rename to ...
5904 (info_args_command): ... this.
5905 (locals_info): Rename to ...
5906 (info_locals_command): ... this.
5907 * infcmd.c (nofp_registers_info): Rename to ...
5908 (info_registers_command): ... this.
5909 (float_info): Rename to ...
5910 (info_float_command): ... this.
5911 (program_info): Rename to ...
5912 (info_program_command): ... this.
5913 (all_registers_info): Rename to ...
5914 (info_all_registers_command): ... this.
5915 (vector_info): Rename to ...
5916 (info_vector_command): ... this.
5917 (float_info): Rename to ...
5918 (info_float_command): ... this.
5919 (_initialize_infcmd): Adjust.
5920 * inferior.h (term_info): Rename to ...
5921 (info_terminal_command): ... this.
5922 * inflow.c (term_info): Rename to ...
5923 (info_terminal_command): ... this.
5924 (_initialize_inflow): Adjust.
5925 * infrun.c (signals_info): Rename to ...
5926 (info_signals_command): ... this.
5927 (_initialize_infrun): Adjust.
5928 * objc-lang.c (classes_info): Rename to ...
5929 (info_classes_command): ... this.
5930 (selectors_info): Rename to ...
5931 (info_selectors_command): ... this.
5932 (_initialize_objc_language): Adjust.
5933 * printcmd.c (sym_info): Rename to ...
5934 (info_symbol_command): ... this.
5935 (address_info): Rename to ...
5936 (info_address_command): ... this.
5937 (display_info): Rename to ...
5938 (info_display_command): ... this.
5939 (_initialize_printcmd): Adjust.
5940 * reverse.c (bookmarks_info): Rename to ...
5941 (info_breakpoints_command): ... this.
5942 (_initialize_reverse): Adjust.
5943 * ser-go32.c (dos_info): Rename to ...
5944 (info_serial_command): ... this.
5945 (_initialize_ser_dos): Adjust.
5946 * skip.c (skip_info): Rename to ...
5947 (info_skip_command): ... this.
5948 (_initialize_step_skip): Adjust.
5949 * source.c (line_info): Rename to ...
5950 (info_line_command): ... this.
5951 (source_info): Rename to ...
5952 (info_source_command)
5953 * stack.c (frame_info): Rename to ...
5954 (info_frame_command): ... this.
5955 (locals_info): Rename to ...
5956 (info_locals_command): ... this.
5957 (args_info): Rename to ...
5958 (info_args_command): ... this.
5959 (_initialize_stack): Adjust.
5960 * symtab.c (sources_info): Rename to ...
5961 (info_sources_command): ... this.
5962 (variables_info): Rename to ...
5963 (info_variables_command): ... this.
5964 (functions_info): Rename to ...
5965 (info_functions_command): ... this.
5966 (types_info): Rename to ...
5967 (info_types_command): ... this.
5968 (_initialize_symtab): Adjust.
5969 * target.c (target_info): Rename to ...
5970 (info_target_command): ... this.
5971 (initialize_targets): Adjust.
5972 * tracepoint.c (tvariables_info): Rename to ...
5973 (info_tvariables_command): ... this.
5974 (scope_info): Rename to ...
5975 (info_scope_command): ... this.
5976 (trace_dump_actions): Adjust.
5977 (_initialize_tracepoint): Adjust.
5978
b270e6f9
TT
59792017-08-22 Tom Tromey <tom@tromey.com>
5980
5981 * breakpoint.h (install_breakpoint): Update.
5982 * breakpoint.c (add_solib_catchpoint): Update.
5983 (install_breakpoint): Change argument to a std::unique_ptr.
5984 (create_fork_vfork_event_catchpoint): Use std::unique_ptr.
5985 (create_breakpoint_sal, create_breakpoint): Update.
5986 (watch_command_1, catch_exec_command_1)
5987 (strace_marker_create_breakpoints_sal): Use std::unique_ptr.
5988 (add_to_breakpoint_chain): Change argument to a std::unique_ptr.
5989 Return the breakpoint.
5990 (set_raw_breakpoint_without_location, set_raw_breakpoint)
5991 (new_single_step_breakpoint): Update.
5992 * break-catch-throw.c (handle_gnu_v3_exceptions): Use
5993 std::unique_ptr.
5994 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
5995 std::unique_ptr.
5996 * break-catch-sig.c (create_signal_catchpoint): Use
5997 std::unique_ptr.
5998 * ada-lang.c (create_ada_exception_catchpoint): Use
5999 std::unique_ptr.
6000
36bd8eaa
TT
60012017-08-22 Tom Tromey <tom@tromey.com>
6002
6003 * breakpoint.c (add_solib_catchpoint): Use std::unique_ptr.
6004
56f37645
TT
60052017-08-22 Tom Tromey <tom@tromey.com>
6006
6007 * psymtab.c (psymtab_search_name): Return a unique_xmalloc_ptr.
6008 (lookup_partial_symbol): Update.
6009
0b581c69
TT
60102017-08-22 Tom Tromey <tom@tromey.com>
6011
6012 * source.h (rewrite_source_path): Return a unique_xmalloc_ptr.
6013 * source.c (rewrite_source_path): Return a unique_xmalloc_ptr.
6014 (find_and_open_source, symtab_to_fullname): Update.
6015 * psymtab.c (psymtab_to_fullname): Update.
6016
14278e1f
TT
60172017-08-22 Tom Tromey <tom@tromey.com>
6018
6019 * exec.c (exec_file_attach): Update.
6020 * linux-thread-db.c (try_thread_db_load): Update.
6021 * guile/scm-safe-call.c (gdbscm_safe_source_script): Update.
6022 * utils.c (gdb_realpath): Change return type.
6023 (gdb_realpath_keepfile): Update.
6024 (gdb_realpath_check_trailer, gdb_realpath_tests): New functions.
6025 (_initialize_utils): Register the new self test.
6026 * source.c (openp): Update.
6027 (find_and_open_source): Update.
6028 * nto-tdep.c (nto_find_and_open_solib): Update.
6029 * main.c (set_gdb_data_directory): Update.
6030 (captured_main_1): Update.
6031 * dwarf2read.c (dwarf2_get_dwz_file): Update
6032 (dw2_map_symbol_filenames): Update.
6033 * auto-load.c (auto_load_safe_path_vec_update): Update.
6034 (filename_is_in_auto_load_safe_path_vec): Change type of
6035 "filename_realp".
6036 (auto_load_objfile_script): Update.
6037 (file_is_auto_load_safe): Update. Use std::string.
6038 * utils.h (gdb_realpath): Return a gdb::unique_xmalloc_ptr.
6039
4971c9a7
TT
60402017-08-22 Tom Tromey <tom@tromey.com>
6041
6042 * utils.c (gdb_realpath_keepfile): Return a
6043 gdb::unique_xmalloc_ptr.
6044 * exec.c (exec_file_attach): Update.
6045 * utils.h (gdb_realpath_keepfile): Return a
6046 gdb::unique_xmalloc_ptr.
6047
e3e41d58
TT
60482017-08-22 Tom Tromey <tom@tromey.com>
6049
6050 * compile/compile.c (compile_file_command): Use
6051 gdb::unique_xmalloc_ptr, std::string.
6052 * utils.c (gdb_abspath): Change return type.
6053 * source.c (openp): Update.
6054 * objfiles.c (allocate_objfile): Update.
6055 * main.c (set_gdb_data_directory): Update.
6056 * utils.h (gdb_abspath): Return a gdb::unique_xmalloc_ptr.
6057
0d999a6e
ZZ
60582017-08-22 Zhouyi Zhou <zhouzhouyi@gmail.com>
6059
6060 * cli-cmds.c (list_commands): List actual code around more than
6061 one location.
6062
329d5e7e
JB
60632017-08-21 John Baldwin <jhb@FreeBSD.org>
6064
6065 * fbsd-nat.c (fbsd_add_threads): Use array type for `lwps'.
6066
bf223d3e
PA
60672017-08-21 Pedro Alves <palves@redhat.com>
6068
6069 PR gdb/19487
6070 * c-exp.y (variable production): Handle function aliases.
6071 * minsyms.c (msymbol_is_text): New function.
6072 * minsyms.h (msymbol_is_text): Declare.
6073 * symtab.c (find_function_alias_target): New function.
6074 * symtab.h (find_function_alias_target): Declare.
6075
c973d0aa
PA
60762017-08-21 Pedro Alves <palves@redhat.com>
6077
6078 * eval.c (evaluate_subexp_standard) <OP_TYPE>: Don't dig past
6079 typedefs.
6080 * typeprint.c (whatis_exp): If handling "whatis", and expression
6081 is OP_TYPE, strip one typedef level. Otherwise don't strip
6082 typedefs here.
6083 * valops.c (value_cast): Save "to" type before resolving
6084 stubs/typedefs. Use that type as resulting value's type.
6085
2989a365
TT
60862017-08-18 Tom Tromey <tom@tromey.com>
6087 Pedro Alves <palves@redhat.com>
6088
6089 * spu-multiarch.c (parse_spufs_run): Use scoped_restore.
6090 * sol-thread.c (sol_thread_resume, sol_thread_wait)
6091 (sol_thread_xfer_partial, rw_common): Use scoped_restore.
6092 * procfs.c (procfs_do_thread_registers): Use scoped_restore.
6093 * proc-service.c (ps_xfer_memory): Use scoped_restore.
6094 * linux-tdep.c (linux_corefile_thread): Remove a cleanup.
6095 (linux_get_siginfo_data): Add "thread" argument. Use
6096 scoped_restore.
6097 * linux-nat.c (linux_child_follow_fork)
6098 (check_stopped_by_watchpoint): Use scoped_restore.
6099 * infrun.c (displaced_step_prepare_throw, write_memory_ptid)
6100 (THREAD_STOPPED_BY, handle_signal_stop): Use scoped_restore.
6101 (restore_inferior_ptid, save_inferior_ptid): Remove.
6102 * btrace.c (btrace_fetch): Use scoped_restore.
6103 * bsd-uthread.c (bsd_uthread_fetch_registers)
6104 (bsd_uthread_store_registers): Use scoped_restore.
6105 * breakpoint.c (reattach_breakpoints, detach_breakpoints): Use
6106 scoped_restore.
6107 * aix-thread.c (aix_thread_resume, aix_thread_wait)
6108 (aix_thread_xfer_partial): Use scoped_restore.
6109 * inferior.h (save_inferior_ptid): Remove.
6110
e60eb288
YQ
61112017-08-18 Yao Qi <yao.qi@linaro.org>
6112
6113 PR tdep/21818
6114 * arm-tdep.c (gdb_print_insn_arm): Mark
6115 USER_SPECIFIED_MACHINE_TYPE if exec_bfd isn't NULL.
6116
6d580b63
YQ
61172017-08-18 Yao Qi <yao.qi@linaro.org>
6118
6119 * NEWS: Mention GDBserver's new option "--selftest".
6120 * Makefile.in (SFILES): Remove selftest.c, add common/selftest.c.
6121 * selftest.c: Move it to common/selftest.c.
6122 * selftest.h: Move it to common/selftest.h.
6123 * selftest-arch.c (reset): New function.
6124 (tests_with_arch): Call reset.
6125
86dcbf50
YQ
61262017-08-18 Yao Qi <yao.qi@linaro.org>
6127
6128 * selftest.c (run_tests): Don't call QUIT. Call debug_printf
6129 instead of exception_fprintf and printf_filtered.
6130
7649770c
YQ
61312017-08-18 Yao Qi <yao.qi@linaro.org>
6132
6133 * selftest.c (register_self_test): Rename it to
6134 selftests::register_test.
6135 (run_self_tests): selftest::run_tests.
6136 * selftest.h: Update declarations.
6137 * selftest-arch.c (register_self_test_foreach_arch): Rename it to
6138 selftests::register_test_foreach_arch.
6139 * selftest-arch.h: Update declaration.
6140 * aarch64-tdep.c: Update.
6141 * arm-tdep.c: Likewise.
6142 * disasm-selftests.c: Likewise.
6143 * dwarf2loc.c: Likewise.
6144 * dwarf2-frame.c: Likewise.
6145 * findvar.c: Likewise.
6146 * gdbarch-selftests.c: Likewise.
6147 * maint.c (maintenance_selftest): Likewise.
6148 * regcache.c: Likewise.
6149 * rust-exp.y: Likewise.
6150 * selftest-arch.c: Likewise.
6151 * unittests/environ-selftests.c: Likewise.
6152 * unittests/function-view-selftests.c: Likewise.
6153 * unittests/offset-type-selftests.c: Likewise.
6154 * unittests/optional-selftests.c: Likewise.
6155 * unittests/scoped_restore-selftests.c: Likewise.
6156 * utils-selftests.c: Likewise.
6157
b0cba12e
PA
61582017-08-17 Pedro Alves <palves@redhat.com>
6159
6160 * cli/cli-cmds.c (source_command): Delete 'old_source_verbose'
6161 local.
6162
4c8aa72d
PA
61632017-08-17 Pedro Alves <palves@redhat.com>
6164
6165 * dwarf2read.c (struct dwarf2_cu) <line_header_die_owner>: New
6166 field.
6167 (reset_die_in_process): Delete, replaced by ...
6168 (process_die_scope): ... this new class. Make it responsible for
6169 freeing cu->line_header too.
6170 (process_die): Use process_die_scope.
6171 (handle_DW_AT_stmt_list): Record the line header's owner CU/DIE in
6172 cu->line_header_die_owner. Don't release the line header if it's
6173 owned by the CU.
6174 (setup_type_unit_groups): Make the CU/DIE own the line header.
6175 Don't release the line header here.
6176
ba713918
AL
61772017-08-17 Alex Lindsay <alexlindsay239@gmail.com> (tiny change)
6178
6179 * elfread.c (elf_read_minimal_symbols): xfree synthsyms.
6180
44d0fb3a
RK
61812017-08-17 Ruslan Kabatsayev <b7.10110111@gmail.com>
6182
6183 * NEWS: Mention new shortcuts for nexti and stepi in TUI
6184 Single-Key mode
6185
a5afdb16
RK
61862017-08-16 Ruslan Kabatsayev <b7.10110111@gmail.com>
6187
6188 * tui/tui.c (tui_commands): Add "nexti" and "stepi" to the Single-Key
6189 mode command list.
6190
47613aeb
SH
61912017-08-15 Stafford Horne <shorne@gmail.com>
6192
6193 * MAINTAINERS (Write After Approval): Add Stafford Horne.
6194
9c3cc999
SH
61952017-08-15 Stafford Horne <shorne@gmail.com>
6196
6197 * xtensa-tdep.c (xtensa_init_reggroups): Use xstrdup for cpname.
6198
206726fb
SDJ
61992017-08-15 Sergio Durigan Junior <sergiodj@redhat.com>
6200
6201 PR gdb/21954
6202 * infcmd.c (unset_environment_command): Use the 'clear' method on
6203 the environment instead of resetting it.
6204
0335ac6d
JB
62052017-08-15 John Baldwin <jhb@FreeBSD.org>
6206
6207 * fbsd-nat.c (fbsd_convert_siginfo): Fix compile on big-endian
6208 platforms.
6209
d3abe1c8
TT
62102017-08-14 Tom Tromey <tom@tromey.com>
6211
6212 * valprint.c (print_octal_chars): Use HOST_CHAR_BIT.
6213 (print_binary_chars): Likewise.
6214 (BITS_IN_BYTES): Remove.
6215
d6382fff
TT
62162017-08-14 Tom Tromey <tom@tromey.com>
6217
6218 PR gdb/21675
6219 * valprint.c (LOW_ZERO): Change value to 034.
6220 (print_octal_chars): Add static_asserts for octal constants.
6221 * printcmd.c (print_scalar_formatted): Add 'd' case.
6222
f978cb06
TT
62232017-08-11 Tom Tromey <tom@tromey.com>
6224
6225 * symfile.c (add_symbol_file_command): Use std::vector.
6226
2f5404b3
TT
62272017-08-14 Tom Tromey <tom@tromey.com>
6228
6229 * break-catch-throw.c (handle_gnu_v3_exceptions): Use std::move.
6230 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
6231 std::move.
6232 * break-catch-sig.c (create_signal_catchpoint): Use std::move.
6233
de7985c3
PA
62342017-08-11 Pedro Alves <palves@redhat.com>
6235
6236 * infrun.c (process_event_stop_test): Adjust
6237 function_name_is_marked_for_skip call.
6238 * skip.c: Include <list>.
6239 (skiplist_entry): Make it a class with private fields, and
6240 getters/setters.
6241 (skiplist_entry_chain): Delete.
6242 (skiplist_entries): New.
6243 (skiplist_entry_count): Delete.
6244 (highest_skiplist_entry_num): New.
6245 (ALL_SKIPLIST_ENTRIES, ALL_SKIPLIST_ENTRIES_SAFE): Delete.
6246 (add_skiplist_entry): Delete.
6247 (skiplist_entry::skiplist_entry): New.
6248 (skiplist_entry::add_entry): New.
6249 (skip_file_command, skip_function): Adjust.
6250 (compile_skip_regexp): Delete.
6251 (skip_command): Don't compile regexp here. Adjust to use
6252 skiplist_entry::add_entry.
6253 (skip_info): Adjust to use range-for and getters.
6254 (skip_enable_command, skip_disable_command): Adjust to use
6255 range-for and setters.
6256 (skip_delete_command): Adjust to use std::list.
6257 (add_skiplist_entry): Delete.
6258 (skip_file_p): Delete, refactored as ...
6259 (skiplist_entry::do_skip_file_p): ... this new method.
6260 (skip_gfile_p): Delete, refactored as ...
6261 (skiplist_entry::do_gskip_file_p): ... this new method.
6262 (skip_function_p, skip_rfunction_p): Delete, refactored as ...
6263 (skiplist_entry::skip_function_p): ... this new method.
6264 (function_name_is_marked_for_skip): Now returns bool, and takes
6265 the function sal by const reference. Adjust to use range-for and
6266 skiplist_entry methods.
6267 (_initialize_step_skip): Remove references to
6268 skiplist_entry_chain, skiplist_entry_count.
6269 * skip.h (function_name_is_marked_for_skip): Now returns bool, and
6270 takes the function sal by const reference.
6271
be7d3cd5
YQ
62722017-08-11 Yao Qi <yao.qi@linaro.org>
6273
6274 * dwarf2-frame.c (clear_pointer_cleanup): Remove.
6275 (dwarf2_frame_cache): Remove reset_cache_cleanup.
6276 (dwarf2_frame_cache):
6277 * frame-unwind.c (frame_unwind_try_unwinder): Catch
6278 RETURN_MASK_ALL and set *this_case to NULL.
6279 * frame-unwind.h: Update comments.
6280
1c90d9f0
YQ
62812017-08-11 Yao Qi <yao.qi@linaro.org>
6282
6283 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Remove.
6284 (dwarf2_frame_state_copy_regs): Remove.
6285 (dwarf2_frame_state_free_regs): Remove.
6286 (dwarf2_frame_state::~dwarf2_frame_state): Remove.
6287 (dwarf2_restore_rule): Call method .alloc_regs instead of
6288 dwarf2_frame_state_alloc_regs.
6289 (execute_cfa_program): Likewise. Call dwarf2_frame_state_reg_info
6290 constructor. Call std::move.
6291 (dwarf2_fetch_cfa_info): Don't call dwarf2_frame_state_copy_regs.
6292 (dwarf2_frame_cache): Likewise.
6293
6294 [GDB_SELF_TEST]: Include selftest.h and
6295 selftest-arch.h.
6296 [GDB_SELF_TEST] (execute_cfa_program_test): New function.
6297 (_initialize_dwarf2_frame) [GDB_SELF_TEST]: Register
6298 execute_cfa_program_test.
6299
6300 * dwarf2-frame.h (dwarf2_frame_state_reg_info): Add ctor, dtor,
6301 copy ctor, assignment operator, move assignment.
6302 <alloc_regs>: New method.
6303 <swap>: New method.
6304 (struct dwarf2_frame_state): Delete dtor.
6305 (dwarf2_frame_state_alloc_regs): Remove declaration.
6306 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): Don't call
6307 dwarf2_frame_state_alloc_regs, use .alloc_regs instead.
6308
afe37d6b
YQ
63092017-08-11 Yao Qi <yao.qi@linaro.org>
6310
6311 * dwarf2-frame.c (dwarf2_frame_state_free): Remove.
6312 (dwarf2_frame_state::dwarf2_frame_state): New.
6313 (dwarf2_frame_state::~dwarf2_frame_state): New.
6314 (dwarf2_fetch_cfa_info): Update.
6315 (dwarf2_frame_cache): Remove old_chain. Change 'fs' to an object
6316 rather than a pointer. Update code.
6317 * dwarf2-frame.h (struct dwarf2_frame_state): Declare ctor and
6318 dtor.
6319 <data_align, code_align, retaddr_column>: Change them to const.
6320 <armcc_cfa_offsets_sf, armcc_cfa_offsets_reversed>: Change them
6321 to bool.
6322
b348037f
YQ
63232017-08-11 Yao Qi <yao.qi@linaro.org>
6324
6325 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <exp_len>: Remove.
6326 <loc.exp>: New field.
6327 * dwarf2-frame.c (execute_cfa_program): Update.
6328 (dwarf2_frame_prev_register): Update.
6329
e7c9de26
PA
63302017-08-10 Pedro Alves <palves@redhat.com>
6331
6332 * common/gdb_unique_ptr.h (xfree_deleter<T[]>): Define.
6333
e8c6b620
JB
63342017-08-09 John Baldwin <jhb@FreeBSD.org>
6335
6336 * fbsd-nat.c (struct fbsd_fork_info): Remove.
6337 (fbsd_pending_children): Use std::list.
6338 (fbsd_remember_child): Likewise.
6339 (fbsd_is_child_pending): Likewise.
6340 (fbsd_pending_vfork_done): Use std::forward_list.
6341 (fbsd_add_vfork_done): Likewise.
6342 (fbsd_is_vfork_done_pending): Likewise.
6343 (fbsd_next_vfork_done): Likewise.
6344
e4a26669
JB
63452017-08-09 John Baldwin <jhb@FreeBSD.org>
6346
6347 * fbsd-nat.c [HAVE_KINFO_GETVMMAP] (struct free_deleter): New.
6348 (fbsd_find_memory_regions): Use free_deleter with std::unique_ptr.
6349 [!HAVE_KINFO_GETVMMAP] (fbsd_find_memory_regions): Use std::string
6350 for `mapfilename'.
6351 (fbsd_xfer_partial): Use gdb::byte_vector.
af3881e6 6352 (fbsd_add_threads): Use gdb::unique_xmalloc_ptr.
e4a26669 6353
142311d3
JB
63542017-08-09 John Baldwin <jhb@FreeBSD.org>
6355
6356 * fbsd-nat.c: [!HAVE_KINFO_GETVMMAP]: Include <sys/user.h> and
6357 "filestuff.h".
6358 (fbsd_find_memory_regions): Fix `mapfile' initialization.
6359
42fa2e0e
TT
63602017-08-09 Tom Tromey <tom@tromey.com>
6361
6362 * skip.c (skiplist_entry): New constructor.
6363 (skiplist_entry::enabled, skiplist_entry::function_is_regexp)
6364 (skiplist_entry::file_is_glob): Now bool.
6365 (skiplist_entry::file, skiplist_entry::function): Now
6366 std::string.
6367 (make_skip_entry): Return a unique_ptr. Use new.
6368 (free_skiplist_entry, free_skiplist_entry_cleanup)
6369 (make_free_skiplist_entry_cleanup): Remove.
6370 (skip_command, skip_disable_command, add_skiplist_entry)
6371 (skip_form_bytes, compile_skip_regexp, skip_command, skip_info)
6372 (skip_file_p, skip_gfile_p, skip_function_p, skip_rfunction_p)
6373 (function_name_is_marked_for_skip): Update.
6374 (skip_delete_command): Update. Use delete.
6375
cd3af38d
JW
63762017-08-09 Jiong Wang <jiong.wang@arm.com>
6377
6378 * aarch64-linux-tdep.c: Include "auxv.h" and "elf/common.h".
6379 (aarch64_linux_core_read_description): New function.
6380 (aarch64_linux_init_abi): Register gdbarch_core_read_description.
6381
29592bde
PA
63822017-08-09 Pedro Alves <palves@redhat.com>
6383
6384 * cp-name-parser.y (cp_comp_to_string): Return a
6385 gdb::unique_xmalloc_ptr<char>.
6386 * cp-support.c (replace_typedefs_qualified_name)
6387 (replace_typedefs): Adjust to use gdb::unique_xmalloc_ptr<char>.
6388 (cp_canonicalize_string_full): Use op= instead of explicit
6389 convertion.
6390 (cp_class_name_from_physname, method_name_from_physname)
6391 (cp_func_name, cp_remove_params): Adjust to use
6392 gdb::unique_xmalloc_ptr<char>.
6393 * cp-support.h (cp_comp_to_string): Return a
6394 gdb::unique_xmalloc_ptr<char>.
6395 * python/py-type.c (typy_lookup_type): Adjust to use
6396 gdb::unique_xmalloc_ptr<char>.
6397
b3340438
L
63982017-08-09 H.J. Lu <hongjiu.lu@intel.com>
6399
6400 * dwarf2read.c (dwarf2_string_attr): Fix a typo.
6401
e88e8651
YQ
64022017-08-09 Alex Lindsay <alexlindsay239@gmail.com>
6403 Yao Qi <yao.qi@linaro.org>
6404
6405 * cp-support.c (cp_canonicalize_string_full): Use
6406 gdb::unique_xmalloc_ptr<char>.
6407 (cp_canonicalize_string): Likewise.
6408
f5a29eb0
YQ
64092017-08-09 Yao Qi <yao.qi@linaro.org>
6410
6411 * features/Makefile (WHICH): Remove i386/ non-linux stuff.
6412 * regformats/i386/amd64-avx-avx512.dat: Remove.
6413 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Remove.
6414 * regformats/i386/amd64-avx-mpx.dat:Remove.
6415 * regformats/i386/amd64-avx.dat: Remove.
6416 * regformats/i386/amd64-mpx.dat: Remove.
6417 * regformats/i386/i386-avx-avx512.dat: Remove.
6418 * regformats/i386/i386-avx-mpx-avx512-pku.dat: Remove.
6419 * regformats/i386/i386-avx-mpx.dat: Remove.
6420 * regformats/i386/i386-mmx.dat: Remove.
6421 * regformats/i386/i386-mpx.dat: Remove.
6422
57757c2f
YQ
64232017-08-09 Yao Qi <yao.qi@linaro.org>
6424
6425 * amd64-tdep.h (tdesc_x32): Remove the declaration.
6426 * amd64-tdep.c: Don't include features/i386/x32*.c.
6427 (_initialize_amd64_tdep): Don't call initialize_tdesc_x32*
6428 functions.
6429 * features/Makefile (WHICH): Remove i386/x32, i386/x32-avx,
6430 and i386/x32-avx-avx512.
6431 (XMLTOC): Remove i386/x32-avx.xml, i386/x32-avx-avx512.xml,
6432 and i386/x32.xml.
6433 * features/i386/x32-avx-avx512.c: Removed.
6434 * features/i386/x32-avx-avx512.xml: Removed.
6435 * features/i386/x32-avx.c: Removed.
6436 * features/i386/x32-avx.xml: Removed.
6437 * features/i386/x32.c: Removed.
6438 * features/i386/x32.xml: Removed.
6439 * regformats/i386/x32-avx-avx512.dat: Removed.
6440 * regformats/i386/x32-avx.dat: Removed.
6441 * regformats/i386/x32.dat: Removed.
6442
ba7b109b
MR
64432017-08-07 Maciej W. Rozycki <macro@imgtec.com>
6444
6445 PR breakpoints/21886
6446 * mem-break.c (default_memory_insert_breakpoint): Use
6447 `->placed_address' rather than `->reqstd_address' for the
6448 breakpoint location.
6449
e347efc3
MR
64502017-08-07 Maciej W. Rozycki <macro@imgtec.com>
6451
6452 * arch-utils.c (default_print_insn): Remove arch/mach/endian
6453 assertions.
6454
0dba2a6c
MR
64552017-08-07 Maciej W. Rozycki <macro@imgtec.com>
6456
6457 * gdbarch.sh (gdbarch_info): Replace the `tdep_info' member with
6458 a union of `tdep_info', `tdesc_data' and `id'.
6459 * aarch64-tdep.c (aarch64_gdbarch_init): Use `info.tdesc_data'
6460 rather than `info.tdep_info'.
6461 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
6462 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
6463 * i386-tdep.c (i386_gdbarch_init): Likewise.
6464 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
6465 * mips-tdep.c (mips_gdbarch_init): Likewise.
6466 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
6467 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
6468 * ppc-linux-tdep.c (ppu2spu_sniffer): Use `info.id' rather than
6469 `info.tdep_info'.
6470 (ppc_linux_init_abi): Use `info.tdesc_data' rather than
6471 `info.tdep_info'.
6472 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
6473 * spu-multiarch.c (spu_gdbarch): Use `info.id' rather than
6474 `info.tdep_info'.
6475 * spu-tdep.c (spu_gdbarch_init): Likewise.
6476 * gdbarch.h: Regenerate.
6477
16eb6b2d
LS
64782017-08-07 Leszek Swirski <leszeks@google.com>
6479
7b005726 6480 PR symtab/20899
16eb6b2d
LS
6481 * dwarf2read.c (dwarf2_string_attr): Allow DW_FORM_GNU_strp_alt.
6482
74cbb09e
SM
64832017-08-07 Simon Marchi <simon.marchi@ericsson.com>
6484
6485 * remote-sim.c (gdbsim_load): Remove char **argv local variable.
6486 (gdbsim_open): Rename gdb_argv args object to argv.
6487
ee0c3293
TT
64882017-08-05 Tom Tromey <tom@tromey.com>
6489
6490 * compile/compile-object-load.c (compile_object_load): Use
6491 gdb::unique_xmalloc_ptr.
6492 * cli/cli-dump.c (scan_filename): Rename from
6493 scan_filename_with_cleanup. Change return type.
6494 (scan_expression): Rename from scan_expression_with_cleanup.
6495 Change return type.
6496 (dump_memory_to_file, dump_value_to_file, restore_command):
6497 Use gdb::unique_xmalloc_ptr. Update.
6498 * cli/cli-cmds.c (find_and_open_script): Use
6499 gdb::unique_xmalloc_ptr.
6500 * tracefile-tfile.c (tfile_open): Use gdb::unique_xmalloc_ptr.
6501 * symmisc.c (maintenance_print_symbols)
6502 (maintenance_print_msymbols): Use gdb::unique_xmalloc_ptr.
6503 * symfile.c (symfile_bfd_open, generic_load)
6504 (add_symbol_file_command, remove_symbol_file_command): Use
6505 gdb::unique_xmalloc_ptr.
6506 * source.c (openp): Use gdb::unique_xmalloc_ptr.
6507 * psymtab.c (maintenance_print_psymbols): Use
6508 gdb::unique_xmalloc_ptr.
6509 * corelow.c (core_open): Use gdb::unique_xmalloc_ptr.
6510 * breakpoint.c (save_breakpoints): Use gdb::unique_xmalloc_ptr.
6511 * solib.c (solib_map_sections): Use gdb::unique_xmalloc_ptr.
6512 (reload_shared_libraries_1): Likewise.
6513
3232fabd
TT
65142017-08-05 Tom Tromey <tom@tromey.com>
6515
6516 * rust-exp.y (rust_op_ptr, set_field): Remove typedefs.
6517 (rust_op_vector, rust_set_vector): New typedefs.
6518 (current_parser): New global.
6519 (work_obstack): Change to pointer type. Update all users.
6520 (rust_ast, pstate): Remove globals.
6521 (struct rust_parser): New.
6522 (%union) <params, field_inits>: Change type.
6523 (start, tuple_expr, unit_expr, struct_expr_list, literal)
6524 (field_expr, expr_list, maybe_expr_list, type_list): Update.
6525 (ast_call_ish, ast_path, ast_function_type, ast_tuple_type)
6526 (convert_params_to_types, convert_params_to_expression): Change
6527 type of "params".
6528 (ast_string): Change type of "fields".
6529 (rust_parse): Make a rust_parser. Remove cleanups.
6530 (rust_lex_tests): Make and install an auto_obstack.
6531
f02fd774
YQ
65322017-08-04 Yao Qi <yao.qi@linaro.org>
6533
6534 * configure.srv (ipa_x32_linux_regobj): New.
6535 * linux-amd64-ipa.c (get_ipa_tdesc): Use X86_TDESC_AVX_AVX512
6536 instead of X86_TDESC_AVX512.
6537 (initialize_low_tracepoint): Call
6538 init_registers_x32_avx_avx512_linux.
6539
91975afd
YQ
65402017-08-04 Yao Qi <yao.qi@linaro.org>
6541
6542 * utils.h (gdb_argv): Add namespace std for nullptr_t.
6543
2331fa3a
RK
65442017-08-03 Ruslan Kabatsayev <b7.10110111@gmail.com>
6545
6546 * MAINTAINERS (Write After Approval): Add Ruslan Kabatsayev.
6547
744e4fe1
TT
65482017-08-03 Tom Tromey <tom@tromey.com>
6549
6550 * utils.c (make_cleanup_freeargv, do_freeargv, gdb_buildargv):
6551 Remove.
6552 * utils.h (make_cleanup_freeargv, gdb_buildargv): Remove.
6553
1c034b67
TT
65542017-08-03 Tom Tromey <tom@tromey.com>
6555
6556 * python/py-param.c (compute_enum_values): Use gdb_argv.
6557
773a1edc
TT
65582017-08-03 Tom Tromey <tom@tromey.com>
6559
6560 * utils.h (struct gdb_argv_deleter): New.
6561 (gdb_argv): New class.
6562 * utils.c (gdb_argv::reset): New method.
6563 * tracepoint.c (delete_trace_variable_command): Use gdb_argv.
6564 * tracefile.c (tsave_command): Use gdb_argv.
6565 * top.c (new_ui_command): Use gdb_argv.
6566 * symmisc.c (maintenance_print_symbols)
6567 (maintenance_print_msymbols, maintenance_expand_symtabs): Use gdb_argv.
6568 * symfile.c (symbol_file_command, generic_load)
6569 (remove_symbol_file_command): Use gdb_argv.
6570 * stack.c (backtrace_command): Use gdb_argv.
6571 * source.c (add_path, show_substitute_path_command)
6572 (unset_substitute_path_command, set_substitute_path_command):
6573 Use gdb_argv.
6574 * skip.c (skip_command): Use gdb_argv. Use gdb_buildargv.
6575 * ser-mingw.c (pipe_windows_open): Use gdb_argv.
6576 * remote.c (extended_remote_run, remote_put_command)
6577 (remote_get_command, remote_delete_command): Use gdb_argv.
6578 * remote-sim.c (gdbsim_load, gdbsim_create_inferior)
6579 (gdbsim_open): Use gdb_argv.
6580 * python/py-cmd.c (gdbpy_string_to_argv): Use gdb_argv.
6581 * psymtab.c (maintenance_print_psymbols): Use gdb_argv.
6582 * procfs.c (procfs_info_proc): Use gdb_argv.
6583 * interps.c (interpreter_exec_cmd): Use gdb_argv.
6584 * infrun.c (handle_command): Use gdb_argv.
6585 * inferior.c (add_inferior_command, clone_inferior_command):
6586 Use gdb_argv.
6587 * guile/scm-string.c (gdbscm_string_to_argv): Use gdb_argv.
6588 * exec.c (exec_file_command): Use gdb_argv.
6589 * cli/cli-cmds.c (alias_command): Use gdb_argv.
6590 * compile/compile.c (build_argc_argv): Use gdb_argv.
6591
0d50bde3
TT
65922017-08-03 Tom Tromey <tom@tromey.com>
6593
6594 * python/python.c (gdbpy_decode_line): Use unique_xmalloc_ptr.
6595
7f968c89
TT
65962017-08-03 Tom Tromey <tom@tromey.com>
6597
6598 * python/python.c (compute_python_string): Return std::string.
6599 (gdbpy_eval_from_control_command): Update.
6600 (do_start_initialization): Use std::string.
6601 * python/py-varobj.c (py_varobj_iter_next): Use string_printf, not
6602 xstrprintf.
6603 * python/py-breakpoint.c (local_setattro): Use string_printf, not
6604 xstrprintf.
6605
3c9ebddd
TT
66062017-08-03 Tom Tromey <tom@tromey.com>
6607
6608 * top.h (do_restore_instream_cleanup): Remove.
6609 * top.c (do_restore_instream_cleanup): Remove.
6610 (read_command_file): Use scoped_restore.
6611 * cli/cli-script.c (execute_user_command): Use scoped_restore.
6612
b51b225e
TT
66132017-08-03 Tom Tromey <tom@tromey.com>
6614
6615 * cli/cli-script.c (execute_user_command)
6616 (execute_control_command): Use scoped_restore.
6617
ac991630
TT
66182017-08-03 Tom Tromey <tom@tromey.com>
6619
6620 * cli/cli-script.c (do_restore_user_call_depth): Remove.
6621 (execute_user_command): Remove user_call_depth; use
6622 user_args_stack's size instead.
6623
898e0c8e
TT
66242017-08-03 Tom Tromey <tom@tromey.com>
6625
6626 * top.h (in_user_command): Remove.
6627 * top.c (in_user_command): Remove.
6628 * cli/cli-script.c (do_restore_user_call_depth)
6629 (execute_user_command): Update.
6630
26fcd5d7
TT
66312017-08-03 Tom Tromey <tom@tromey.com>
6632
6633 * valops.c (search_struct_method): Use gdb::byte_vector.
6634 * valarith.c (value_concat): Use std::vector.
6635 * target.c (memory_xfer_partial): Use gdb::byte_vector.
6636 (simple_search_memory): Likewise.
6637 * printcmd.c (find_string_backward): Use gdb::byte_vector.
6638 * mi/mi-main.c (mi_cmd_data_write_memory): Use gdb::byte_vector.
6639 * gcore.c (gcore_copy_callback): Use gdb::byte_vector.
6640 * elfread.c (elf_rel_plt_read): Use std::string.
6641 * cp-valprint.c (cp_print_value): Use gdb::byte_vector.
6642 * cli/cli-dump.c (restore_section_callback): Use
6643 gdb::byte_vector.
6644
7c218e6c
TT
66452017-08-03 Tom Tromey <tom@tromey.com>
6646
6647 * jit.c (jit_reader_load_command): Use unique_xmalloc_ptr.
6648
31b68d4a
TT
66492017-08-03 Tom Tromey <tom@tromey.com>
6650
6651 * tui/tui-regs.c (tui_restore_gdbout): Remove.
6652 (tui_register_format): Use scoped_restore.
6653
2ec845e7
TT
66542017-08-03 Tom Tromey <tom@tromey.com>
6655
6656 * reverse.c (exec_direction_default): Remove.
6657 (exec_reverse_once): Use scoped_restore.
6658 * remote.c (restore_remote_timeout): Remove.
6659 (remote_flash_erase, remote_flash_write, remote_flash_done)
6660 (readchar, remote_serial_write): Use scoped_restore.
6661 * cli/cli-script.c (struct source_cleanup_lines_args)
6662 (source_cleanup_lines): Remove.
6663 (script_from_file): Use scoped_restore.
6664 * cli/cli-cmds.c (source_verbose_cleanup): Remove.
6665 (source_command): Use scoped_restore.
6666
b3bc8453
TT
66672017-08-03 Tom Tromey <tom@tromey.com>
6668
6669 * utils.h (make_cleanup_free_so): Remove.
6670 * utils.c (do_free_so, make_cleanup_free_so): Remove.
6671 * solist.h (struct so_deleter): New.
6672 (so_list_up): New typedef.
6673 * solib-svr4.c (svr4_read_so_list): Use so_list_up.
6674
e3ad2841
TT
66752017-08-03 Tom Tromey <tom@tromey.com>
6676
6677 * utils.h (make_cleanup_restore_current_language): Remove.
6678 * utils.c (do_restore_current_language)
6679 (make_cleanup_restore_current_language): Remove.
6680 * parse.c (parse_exp_in_context_1)
6681 (parse_expression_with_language): Use
6682 scoped_restore_current_language.
6683 * mi/mi-main.c (mi_cmd_execute): Use
6684 scoped_restore_current_language.
6685 * language.h (scoped_restore_current_language): New class.
6686
b80cf838
TT
66872017-08-03 Tom Tromey <tom@tromey.com>
6688
6689 * compile/compile.c (cleanup_unlink_file): Remove.
6690 (compile_to_object): Use gdb::unlinker.
6691 (eval_compile_command): Likewise.
6692
fad0444a
TT
66932017-08-03 Tom Tromey <tom@tromey.com>
6694
6695 * utils.h (make_cleanup_fclose): Remove.
6696 * utils.c (do_fclose_cleanup, make_cleanup_fclose): Remove.
6697
6e7bc05c
TT
66982017-08-03 Tom Tromey <tom@tromey.com>
6699
6700 * top.c (open_terminal_stream): Return gdb_file_up.
6701 (new_ui_command): Update.
6702
4a45905b
TT
67032017-08-03 Tom Tromey <tom@tromey.com>
6704
6705 * source.c (print_source_lines_base, forward_search_command)
6706 (reverse_search_command): Use gdb_file_up.
6707
7cd06d6e
TT
67082017-08-03 Tom Tromey <tom@tromey.com>
6709
6710 * fbsd-nat.c (fbsd_find_memory_regions): Update.
6711
ed166945
TT
67122017-08-03 Tom Tromey <tom@tromey.com>
6713
6714 * cli/cli-cmds.c (find_and_open_script): Change return type.
6715 Remove "streamp" and "full_path" parameters.
6716 (source_script_with_search): Update.
6717 * auto-load.c (source_script_file): Update.
6718 * cli/cli-cmds.h (find_and_open_script): Change type.
6719 (open_script): New struct.
6720
d419f42d
TT
67212017-08-03 Tom Tromey <tom@tromey.com>
6722
6723 * xml-support.c (xml_fetch_content_from_file): Update.
6724 * ui-file.c (stdio_file::open): Update.
6725 * tracefile-tfile.c (tfile_start): Update.
6726 * remote.c (remote_file_put, remote_file_get): Update.
6727 * nat/linux-procfs.c (linux_proc_get_int)
6728 (linux_proc_pid_get_state, linux_proc_tid_get_name): Update.
6729 * nat/linux-osdata.c (linux_common_core_of_thread): Update.
6730 (command_from_pid, commandline_from_pid, linux_xfer_osdata_cpus)
6731 (print_sockets, linux_xfer_osdata_shm, linux_xfer_osdata_sem)
6732 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Update.
6733 * nat/linux-btrace.c (linux_determine_kernel_start): Update.
6734 * linux-nat.c (linux_proc_pending_signals): Update.
6735 * dwarf2read.c (write_psymtabs_to_index): Use gdb_file_up.
6736 (file_closer): Remove.
6737 * compile/compile.c (compile_to_object): Update.
6738 * common/filestuff.h (struct gdb_file_deleter): New.
6739 (gdb_file_up): New typedef.
6740 (gdb_fopen_cloexec): Change return type.
6741 * common/filestuff.c (gdb_fopen_cloexec): Return gdb_file_up.
6742 * cli/cli-dump.c (fopen_with_cleanup): Remove.
6743 (dump_binary_file, restore_binary_file): Update.
6744 * auto-load.c (auto_load_objfile_script_1): Update.
6745
4a2b031d
TT
67462017-08-03 Tom Tromey <tom@tromey.com>
6747
6748 * tracepoint.c (tvariables_info_1): Use ui_out_emit_table.
6749 (info_static_tracepoint_markers_command): Likewise.
6750 * solib.c (info_sharedlibrary_command): Use ui_out_emit_table.
6751 * skip.c (skip_info): Use ui_out_emit_table.
6752 * progspace.c (print_program_space): Use ui_out_emit_table.
6753 * osdata.c (info_osdata): Use ui_out_emit_table.
6754 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Use
6755 ui_out_emit_table.
6756 * linux-thread-db.c (info_auto_load_libthread_db): Use
6757 ui_out_emit_table.
6758 * inferior.c (print_inferior): Use ui_out_emit_table.
6759 * gdb_bfd.c (maintenance_info_bfds): Use ui_out_emit_table.
6760 * breakpoint.c (breakpoint_1): Use ui_out_emit_table.
6761 * auto-load.c (auto_load_info_scripts): Use ui_out_emit_table.
6762 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_table.
6763 * ui-out.h (class ui_out_emit_table): New.
6764
a4f320fd
MR
67652017-08-02 Maciej W. Rozycki <macro@imgtec.com>
6766
6767 * mips-tdep.c (mips_fpu_type_str): New function.
6768 (mips_dump_tdep): Call it.
6769
a2f1f308
MR
67702017-08-01 Maciej W. Rozycki <macro@imgtec.com>
6771
6772 * mips-tdep.c (mips_gdbarch_init): Use MIPS_FPU_TYPE to access
6773 `->mips_fpu_type'.
6774
7e5ed83b
XR
67752017-07-31 Xavier Roirand <roirand@adacore.com>
6776
6777 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
6778
4c9dc811
XR
67792017-07-27 Xavier Roirand <roirand@adacore.com>
6780
6781 * MAINTAINERS (Write After Approval): Add Xavier Roirand.
6782
27d41eac
YQ
67832017-07-26 Yao Qi <yao.qi@linaro.org>
6784
6785 * cli/cli-cmds.c (maintenancechecklist): New variable.
6786 * gdbcmd.h (maintenancechecklist): Declare it.
6787 * i386-linux-tdep.c (_initialize_i386_linux_tdep) [GDB_SELF_TEST]:
6788 Call i386_linux_read_description with different masks.
6789 * maint.c (maintenance_check_command): New function.
6790 (_initialize_maint_cmds): Call add_prefix_cmd.
6791 * target-descriptions.c (tdesc_reg): override operator != and ==.
6792 (tdesc_type): Likewise.
6793 (tdesc_feature): Likewise.
6794 (target_desc): Likewise.
6795 [GDB_SELF_TEST] (selftests::record_xml_tdesc): New function.
6796 (maintenance_check_xml_descriptions): New function.
6797 (_initialize_target_descriptions) Add command "xml-descriptions".
6798 * target-descriptions.h (selftests::record_xml_tdesc): Declare.
6799
ea03d0d3
YQ
68002017-07-26 Yao Qi <yao.qi@linaro.org>
6801
6802 * i386-linux-tdep.c: Don't include features/i386/i386-*linux.c.
6803 Include features/i386/32bit-*.c.
6804 (i386_linux_read_description): Generate target description if it
6805 doesn't exist.
6806 (_initialize_i386_linux_tdep): Don't call _initialize_tdesc_i386
6807 functions.
6808 * features/i386/32bit-linux.c: Re-generated.
6809 * features/i386/32bit-sse.c: Likewise.
6810 * target-descriptions.c (print_c_feature::visit): Print code to
6811 set register number if needed.
6812 (print_c_feature) <m_next_regnum>: New field.
6813
25aa13e5
YQ
68142017-07-26 Yao Qi <yao.qi@linaro.org>
6815
6816 * features/Makefile (CFILES): Rename with TDESC_CFILES.
6817 (FEATURE_XMLFILES): New.
6818 (FEATURE_CFILES): New.
6819 New rules.
6820 (clean-cfiles): Remove generated c files.
6821 * features/i386/32bit-avx.c: Generated.
6822 * features/i386/32bit-avx512.c: Generated.
6823 * features/i386/32bit-core.c: Generated.
6824 * features/i386/32bit-linux.c: Generated.
6825 * features/i386/32bit-mpx.c: Generated.
6826 * features/i386/32bit-pkeys.c: Generated.
6827 * features/i386/32bit-sse.c: Generated.
6828 * target-descriptions.c: Include algorithm.
6829 (tdesc_element_visitor): Add method visit_end.
6830 (print_c_tdesc): Implement visit_end.
6831 (print_c_tdesc:: m_filename_after_features): Move it to
6832 protected.
6833 (print_c_feature): New class.
6834 (maint_print_c_tdesc_cmd): Use print_c_feature if XML file
6835 name starts with "i386/32bit-".
6836
6eb1e6a8
YQ
68372017-07-26 Yao Qi <yao.qi@linaro.org>
6838
6839 * target-descriptions.c (tdesc_element_visitor): New class.
6840 (tdesc_element): New class.
6841 (tdesc_reg): Inherit from tdesc_element.
6842 (tdesc_reg::accept): New function.
6843 (tdesc_type): Inherit from tdesc_element.
6844 (tdesc_type::accept): New function.
6845 (tdesc_feature): Inherit from tdesc_element.
6846 (tdesc_feature::accept): New function.
6847 (target_desc): Inherit from tdesc_element.
6848 (target_desc::target_desc): New.
6849 (target_desc::~target_desc): New.
6850 (target_desc::accept): New.
6851 (allocate_target_description): Use new.
6852 (free_target_description): Use delete.
6853 (print_c_tdesc): New class.
6854 (maint_print_c_tdesc_cmd): Adjust.
6855
6856 * features/aarch64.c: Re-generated.
6857 * features/arc-arcompact.c: Re-generated.
6858 * features/arc-v2.c: Re-generated.
6859 * features/arm/arm-with-iwmmxt.c: Re-generated.
6860 * features/arm/arm-with-m.c: Re-generated.
6861 * features/arm/arm-with-m-fpa-layout.c: Re-generated.
6862 * features/arm/arm-with-m-vfp-d16.c: Re-generated.
6863 * features/arm/arm-with-neon.c: Re-generated.
6864 * features/arm/arm-with-vfpv2.c: Re-generated.
6865 * features/arm/arm-with-vfpv3.c: Re-generated.
6866 * features/i386/amd64-avx-avx512.c: Re-generated.
6867 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
6868 * features/i386/amd64-avx.c: Re-generated.
6869 * features/i386/amd64-avx-linux.c: Re-generated.
6870 * features/i386/amd64-avx-mpx-avx512-pku.c: Re-generated.
6871 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
6872 * features/i386/amd64-avx-mpx.c: Re-generated.
6873 * features/i386/amd64-avx-mpx-linux.c: Re-generated.
6874 * features/i386/amd64.c: Re-generated.
6875 * features/i386/amd64-linux.c: Re-generated.
6876 * features/i386/amd64-mpx.c: Re-generated.
6877 * features/i386/amd64-mpx-linux.c: Re-generated.
6878 * features/i386/i386-avx-avx512.c: Re-generated.
6879 * features/i386/i386-avx-avx512-linux.c: Re-generated.
6880 * features/i386/i386-avx.c: Re-generated.
6881 * features/i386/i386-avx-linux.c: Re-generated.
6882 * features/i386/i386-avx-mpx-avx512-pku.c: Re-generated.
6883 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Re-generated.
6884 * features/i386/i386-avx-mpx.c: Re-generated.
6885 * features/i386/i386-avx-mpx-linux.c: Re-generated.
6886 * features/i386/i386.c: Re-generated.
6887 * features/i386/i386-linux.c: Re-generated.
6888 * features/i386/i386-mmx.c: Re-generated.
6889 * features/i386/i386-mmx-linux.c: Re-generated.
6890 * features/i386/i386-mpx.c: Re-generated.
6891 * features/i386/i386-mpx-linux.c: Re-generated.
6892 * features/i386/x32-avx-avx512.c: Re-generated.
6893 * features/i386/x32-avx-avx512-linux.c: Re-generated.
6894 * features/i386/x32-avx.c: Re-generated.
6895 * features/i386/x32-avx-linux.c: Re-generated.
6896 * features/i386/x32.c: Re-generated.
6897 * features/i386/x32-linux.c: Re-generated.
6898 * features/microblaze.c: Re-generated.
6899 * features/microblaze-with-stack-protect.c: Re-generated.
6900 * features/mips64-dsp-linux.c: Re-generated.
6901 * features/mips64-linux.c: Re-generated.
6902 * features/mips-dsp-linux.c: Re-generated.
6903 * features/mips-linux.c: Re-generated.
6904 * features/nds32.c: Re-generated.
6905 * features/nios2.c: Re-generated.
6906 * features/nios2-linux.c: Re-generated.
6907 * features/rs6000/powerpc-32.c: Re-generated.
6908 * features/rs6000/powerpc-32l.c: Re-generated.
6909 * features/rs6000/powerpc-403.c: Re-generated.
6910 * features/rs6000/powerpc-403gc.c : Re-generated.
6911 * features/rs6000/powerpc-405.c: Re-generated.
6912 * features/rs6000/powerpc-505.c: Re-generated.
6913 * features/rs6000/powerpc-601.c: Re-generated.
6914 * features/rs6000/powerpc-602.c: Re-generated.
6915 * features/rs6000/powerpc-603.c: Re-generated.
6916 * features/rs6000/powerpc-604.c: Re-generated.
6917 * features/rs6000/powerpc-64.c: Re-generated.
6918 * features/rs6000/powerpc-64l.c: Re-generated.
6919 * features/rs6000/powerpc-7400.c: Re-generated.
6920 * features/rs6000/powerpc-750.c: Re-generated.
6921 * features/rs6000/powerpc-860.c: Re-generated.
6922 * features/rs6000/powerpc-altivec32.c: Re-generated.
6923 * features/rs6000/powerpc-altivec32l.c: Re-generated.
6924 * features/rs6000/powerpc-altivec64.c: Re-generated.
6925 * features/rs6000/powerpc-altivec64l.c: Re-generated.
6926 * features/rs6000/powerpc-cell32l.c: Re-generated.
6927 * features/rs6000/powerpc-cell64l.c: Re-generated.
6928 * features/rs6000/powerpc-e500.c: Re-generated.
6929 * features/rs6000/powerpc-e500l.c: Re-generated.
6930 * features/rs6000/powerpc-isa205-32l.c: Re-generated.
6931 * features/rs6000/powerpc-isa205-64l.c: Re-generated.
6932 * features/rs6000/powerpc-isa205-altivec32l.c: Re-generated.
6933 * features/rs6000/powerpc-isa205-altivec64l.c: Re-generated.
6934 * features/rs6000/powerpc-isa205-vsx32l.c: Re-generated.
6935 * features/rs6000/powerpc-isa205-vsx64l.c: Re-generated.
6936 * features/rs6000/powerpc-vsx32.c: Re-generated.
6937 * features/rs6000/powerpc-vsx32l.c: Re-generated.
6938 * features/rs6000/powerpc-vsx64.c: Re-generated.
6939 * features/rs6000/powerpc-vsx64l.c: Re-generated.
6940 * features/rs6000/rs6000.c: Re-generated.
6941 * features/s390-linux32.c: Re-generated.
6942 * features/s390-linux32v1.c: Re-generated.
6943 * features/s390-linux32v2.c: Re-generated.
6944 * features/s390-linux64.c: Re-generated.
6945 * features/s390-linux64v1.c: Re-generated.
6946 * features/s390-linux64v2.c: Re-generated.
6947 * features/s390-te-linux64.c: Re-generated.
6948 * features/s390-tevx-linux64.c: Re-generated.
6949 * features/s390-vx-linux64.c: Re-generated.
6950 * features/s390x-linux64.c: Re-generated.
6951 * features/s390x-linux64v1.c: Re-generated.
6952 * features/s390x-linux64v2.c: Re-generated.
6953 * features/s390x-te-linux64.c: Re-generated.
6954 * features/s390x-tevx-linux64.c: Re-generated.
6955 * features/s390x-vx-linux64.c: Re-generated.
6956 * features/sparc/sparc32-solaris.c: Re-generated.
6957 * features/sparc/sparc64-solaris.c: Re-generated.
6958 * features/tic6x-c62x.c: Re-generated.
6959 * features/tic6x-c62x-linux.c: Re-generated.
6960 * features/tic6x-c64x.c: Re-generated.
6961 * features/tic6x-c64x-linux.c: Re-generated.
6962 * features/tic6x-c64xp.c: Re-generated.
6963 * features/tic6x-c64xp-linux.c: Re-generated.
6964
35b4818d
YQ
69652017-07-26 Yao Qi <yao.qi@linaro.org>
6966
6967 * i386-linux-tdep.c (i386_linux_read_description): New function.
6968 (i386_linux_core_read_description): Call
6969 i386_linux_read_description.
6970 * i386-linux-tdep.h (i386_linux_read_description): Declare.
6971 (tdesc_i386_linux, tdesc_i386_mmx_linux): Remove declarations.
6972 (tdesc_i386_avx_linux, tdesc_i386_mpx_linux): Likewise
6973 (tdesc_i386_avx_mpx_linux, tdesc_i386_avx_avx512_linux): Likewise.
6974 (tdesc_i386_avx_mpx_avx512_pku_linux): Likewise.
6975 * x86-linux-nat.c (x86_linux_read_description): Call
6976 i386_linux_read_description.
6977
8e2141c6
YQ
69782017-07-26 Yao Qi <yao.qi@linaro.org>
6979
6980 * NEWS: Mention it.
6981 * features/Makefile (%.c: %.xml): Pass the xml file name to
6982 command "maint print c-tdesc".
6983 * target-descriptions.c (maint_print_c_tdesc_cmd): Get file
6984 name from 'arg'.
6985
b468ff4c
YQ
69862017-07-26 Yao Qi <yao.qi@linaro.org>
6987
6988 * target-descriptions.c (target_desc): Add ctor and dtor. Do
6989 in-class initialization.
6990 (tdesc_create_feature): Call new instead of XCNEW.
6991 (free_target_description): Ue delete.
6992
b9c0e1b4
JB
69932017-07-25 John Baldwin <jhb@FreeBSD.org>
6994
6995 * configure.nat: Add "-lkvm" for NetBSD/sparc64 and fix typo.
6996
a04b5337
YQ
69972017-07-25 Yao Qi <yao.qi@linaro.org>
6998
6999 * amd64-tdep.c (amd64_init_abi): Make argument default_tdesc
7000 constant.
7001 (amd64_x32_init_abi): Likewise.
7002 * amd64-tdep.h (amd64_init_abi): Update declaration.
7003 (amd64_x32_init_abi): Likewise.
7004
02ad7fc2
YQ
70052017-07-25 Yao Qi <yao.qi@linaro.org>
7006
7007 PR tdep/21717
7008 * arm-linux-nat.c (arm_linux_fetch_inferior_registers): Update
7009 condition for FPSCR.
7010 (arm_linux_store_inferior_registers): Likewise.
7011
b6f48cb0
TT
70122017-07-22 Tom Tromey <tom@tromey.com>
7013
7014 * break-catch-syscall.c (struct catch_syscall_inferior_data)
7015 <syscalls_counts>: Now a std::vector.
7016 (get_catch_syscall_inferior_data): Use "new".
7017 (catch_syscall_inferior_data_cleanup): Use "delete".
7018 (insert_catch_syscall, remove_catch_syscall)
7019 (clear_syscall_counts): Update.
7020
e12c9b7a
TT
70212017-07-22 Tom Tromey <tom@tromey.com>
7022
7023 * break-catch-syscall.c (syscall_catchpoint)
7024 <syscalls_to_be_caught>: Now a std::vector<int>
7025 (~syscall_catchpoint): Remove.
7026 (insert_catch_syscall, remove_catch_syscall)
7027 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
7028 (print_mention_catch_syscall, print_recreate_catch_syscall):
7029 Update.
7030 (create_syscall_event_catchpoint): Change type of "filter"
7031 parameter.
7032 (catch_syscall_split_args): Return a std::vector.
7033 (catch_syscall_command_1, catching_syscall_number_1): Update.
7034
4fa8aeac
TT
70352017-07-22 Tom Tromey <tom@tromey.com>
7036
7037 * break-catch-throw.c (struct exception_catchpoint)
7038 <exception_rx>: Now a std::string.
7039 (~exception_catchpoint): Remove.
7040 (print_one_detail_exception_catchpoint): Update.
7041 (handle_gnu_v3_exceptions): Change type of except_rx.
7042 (extract_exception_regexp): Return a std::string.
7043 (catch_exception_command_1): Update.
7044
f746a154
TT
70452017-07-22 Tom Tromey <tom@tromey.com>
7046
7047 * break-catch-sig.c (gdb_signal_type): Remove typedef.
7048 (struct signal_catchpoint) <signals_to_be_caught>: Now a
7049 std::vector.
7050 <catch_all>: Now a bool.
7051 (~signal_catchpoint): Remove.
7052 (signal_catchpoint_insert_location)
7053 (signal_catchpoint_remove_location)
7054 (signal_catchpoint_breakpoint_hit, signal_catchpoint_print_one)
7055 (signal_catchpoint_print_mention)
7056 (signal_catchpoint_print_recreate)
7057 (signal_catchpoint_explains_signal): Update.
7058 (create_signal_catchpoint): Change type of "filter" and
7059 "catch_all".
7060 (catch_signal_split_args): Return a std::vector. Change type of
7061 "catch_all".
7062 (catch_signal_command): Update.
7063
47e77640
PA
70642017-07-20 Pedro Alves <palves@redhat.com>
7065
7066 * ada-lang.c (ada_language_defn): Make extern.
7067 (_initialize_ada_language): Remove add_language call.
7068 * c-lang.c (c_language_defn, cplus_language_defn)
7069 (asm_language_defn, minimal_language_defn): Make extern.
7070 (_initialize_c_language): Delete.
7071 * completer.c (compare_cstrings): Delete, moved to utils.h.
7072 * d-lang.c (d_language_defn): Make extern.
7073 (_initialize_d_language): Remove add_language calls.
7074 * defs.h (enum language): Add comment.
7075 * f-lang.c (f_language_defn): Make extern.
7076 (_initialize_f_language): Remove add_language call.
7077 * go-lang.c (go_language_defn): Make extern.
7078 (_initialize_go_language): Remove add_language call.
7079 * language.c: Include <algorithm>.
7080 (languages): Redefine as const array.
7081 (languages_size, languages_allocsize, DEFAULT_ALLOCSIZE): Delete.
7082 (set_language_command): Handle "local". Use for-range loop.
7083 (set_language): Remove loop.
7084 (language_enum): Rewrite.
7085 (language_def, language_str): Remove loops.
7086 (add_language): Delete.
7087 (add_set_language_command): New, based on add_languages.
7088 (skip_language_trampoline): Adjust.
7089 (local_language_defn): Delete.
7090 (language_gdbarch_post_init): Adjust.
7091 (_initialize_language): Remove add_language calls. Call
7092 add_set_language_command.
7093 * language.h (add_language): Delete.
7094 (auto_language_defn)
7095 (unknown_language_defn, minimal_language_defn, ada_language_defn)
7096 (asm_language_defn, c_language_defn, cplus_language_defn)
7097 (d_language_defn, f_language_defn, go_language_defn)
7098 (m2_language_defn, objc_language_defn, opencl_language_defn)
7099 (pascal_language_defn, rust_language_defn): Declare.
7100 * m2-lang.c (m2_language_defn): Make extern.
7101 (_initialize_m2_language): Remove add_language call.
7102 * objc-lang.c (objc_language_defn): Make extern.
7103 (_initialize_objc_language): Remove add_language call.
7104 * opencl-lang.c (opencl_language_defn): Make extern.
7105 (_initialize_opencl_language): Remove add_language call.
7106 * p-lang.c (pascal_language_defn): Make extern.
7107 (_initialize_pascal_language): Delete.
7108 * rust-lang.c (rust_language_defn): Make extern.
7109 (_initialize_rust_language): Delete.
7110 * utils.h (compare_cstrings): New static inline function.
7111
edb0c9cb
PA
71122017-07-20 Pedro Alves <palves@redhat.com>
7113
7114 * ada-lang.c (ada_to_fixed_type_1): Adjust.
7115 (get_var_value): Constify parameters.
7116 (get_int_var_value): Change prototype.
7117 (to_fixed_range_type): Adjust.
7118 * ada-lang.h (get_int_var_value): Change prototype.
7119
a778f165
PA
71202017-07-20 Pedro Alves <palves@redhat.com>
7121
7122 * dwarf2read.c (dw2_lookup_symbol): Use
7123 SYMBOL_MATCHES_SEARCH_NAME.
7124 * psymtab.c (psym_lookup_symbol): Use SYMBOL_MATCHES_SEARCH_NAME.
7125
42edd901
PA
71262017-07-20 Pedro Alves <palves@redhat.com>
7127
7128 * block.c (block_iter_name_step, block_iter_name_first)
7129 (block_iter_name_next): Delete.
7130 (block_lookup_symbol_primary): Adjust to use
7131 dict_iter_match_first/dict_iter_match_next.
7132 * block.h (block_iter_name_first, block_iter_name_next): Delete
7133 declarations.
7134 (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use
7135 dict_iter_match_first/dict_iter_match_next.
7136
cf325299
PA
71372017-07-20 Pedro Alves <palves@redhat.com>
7138
7139 * cp-support.c (cp_find_first_component_aux): Add missing case for
7140 end of string.
7141
c5ed0576
DB
71422017-07-18 David Blaikie <dblaikie@gmail.com>
7143
7144 * dwarf2read.c (create_cus_hash_table): Re-add lost initialization
7145 of dwo_cu's dwo_file.
7146
27841e76
YQ
71472017-07-18 Yao Qi <yao.qi@linaro.org>
7148
7149 * remote.c (store_registers_using_G): Remove one line comment.
7150
cfb7e58b
YQ
71512017-07-18 Yao Qi <yao.qi@linaro.org>
7152
7153 * regcache.c (regcache_cpy): Simplify it.
7154 (regcache::cpy_no_passthrough): Remove it.
7155 * regcache.h (cpy_no_passthrough): Remove it.
7156 (regcache_dup, regcache_cpy): Update comments.
7157
386535dd
PA
71582017-07-18 Pedro Alves <palves@redhat.com>
7159
7160 * remote-sim.c (sim_command_completer): Adjust to work with a
7161 completion_tracker instead of a VEC.
7162
c45ec17c
PA
71632017-07-17 Pedro Alves <palves@redhat.com>
7164
7165 * completer.c (complete_source_filenames): New function.
7166 (complete_address_and_linespec_locations): New function.
7167 (location_completer): Use complete_address_and_linespec_locations.
7168 (completion_tracker::build_completion_result): Honor the tracker's
7169 request to suppress append.
7170 * completer.h (completion_tracker::suppress_append_ws)
7171 (completion_tracker::set_suppress_append_ws): New methods.
7172 (completion_tracker::m_suppress_append_ws): New field.
7173 (complete_source_filenames): New declaration.
7174 * linespec.c (linespec_complete_what): New.
7175 (struct ls_parser) <complete_what, completion_word,
7176 completion_quote_char, completion_quote_end, completion_tracker>:
7177 New fields.
7178 (string_find_incomplete_keyword_at_end): New.
7179 (linespec_lexer_lex_string): Record quote char. If in completion
7180 mode, don't throw.
7181 (linespec_lexer_consume_token): Advance the completion word point.
7182 (linespec_lexer_peek_token): Save/restore completion info.
7183 (save_stream_and_consume_token): New.
7184 (set_completion_after_number): New.
7185 (linespec_parse_basic): Set what to complete next depending on
7186 token. Handle function and label completions specially.
7187 (parse_linespec): Disable objc shortcut in completion mode. Set
7188 what to complete next depending on token type. Skip keyword if in
7189 completion mode.
7190 (complete_linespec_component, linespec_complete): New.
7191 * linespec.h (linespec_complete): Declare.
7192
be966d42
PA
71932017-07-17 Pedro Alves <palves@redhat.com>
7194
7195 * linespec.c (linespec_lexer_lex_string, find_toplevel_char):
7196 Handle 'operator<' / 'operator<<'.
7197
a2459270
PA
71982017-07-17 Pedro Alves <palves@redhat.com>
7199
7200 * completer.c (collect_explicit_location_matches): Handle
7201 MATCH_LABEL.
7202 (convert_explicit_location_to_linespec): New, factored out from
7203 ...
7204 (convert_explicit_location_to_sals): ... this.
7205 (complete_label): New.
7206 (linespec_complete_label, find_label_symbols_in_block): New.
7207 (find_label_symbols): Add completion_mode parameter and adjust to
7208 call find_label_symbols_in_block.
7209 * linespec.h (linespec_complete_label): Declare.
7210
c6756f62
PA
72112017-07-17 Pedro Alves <palves@redhat.com>
7212
7213 * ada-lang.c (ada_collect_symbol_completion_matches): Add
7214 complete_symbol_mode parameter.
7215 * cli/cli-cmds.c (complete_command): Get the completion result out
7216 of the handle_brkchars tracker if used a custom word point.
7217 * completer.c: Include "linespec.h".
7218 (enum explicit_location_match_type) <MATCH_LINE>: New enumerator.
7219 (advance_to_expression_complete_word_point): New.
7220 (completion_tracker::completes_to_completion_word): New.
7221 (complete_files_symbols): Pass down
7222 complete_symbol_mode::EXPRESSION.
7223 (explicit_options, probe_options): New.
7224 (collect_explicit_location_matches): Complete on the
7225 explictit_loc->foo instead of word. Use
7226 linespec_complete_function. Handle MATCH_LINE. Handle offering
7227 keyword and options completions.
7228 (backup_text_ptr): Delete.
7229 (skip_keyword): New.
7230 (complete_explicit_location): Remove 'word' parameter. Add
7231 language, quoted_arg_start and quoted_arg_end parameters.
7232 Rewrite, parsing left to right.
7233 (location_completer): Rewrite.
7234 (location_completer_handle_brkchars): New function.
7235 (symbol_completer): Pass down complete_symbol_mode::EXPRESSION.
7236 (enum complete_line_internal_reason): Adjust comments.
7237 (completion_tracker::discard_completions): New.
7238 (completer_handle_brkchars_func_for_completer): Handle
7239 location_completer.
7240 (gdb_custom_word_point_brkchars)
7241 (gdb_org_rl_basic_quote_characters): New.
7242 (gdb_completion_word_break_characters_throw)
7243 (completion_find_completion_word): Handle trackers that use a
7244 custom word point.
7245 (completion_tracker::advance_custom_word_point_by): New.
7246 (completion_tracker::build_completion_result): Don't rely on
7247 readline appending the quote char.
7248 (gdb_rl_attempted_completion_function_throw): Handle trackers that
7249 use a custom word point.
7250 (gdb_rl_attempted_completion_function): Restore
7251 rl_basic_quote_characters.
7252 * completer.h (class completion_tracker): Extend intro comment.
7253 (completion_tracker::set_quote_char)
7254 (completion_tracker::quote_char)
7255 (completion_tracker::set_use_custom_word_point)
7256 (completion_tracker::use_custom_word_point)
7257 (completion_tracker::custom_word_point)
7258 (completion_tracker::set_custom_word_point)
7259 (completion_tracker::advance_custom_word_point_by)
7260 (completion_tracker::completes_to_completion_word)
7261 (completion_tracker::discard_completions): New methods.
7262 (completion_tracker::m_quote_char)
7263 (completion_tracker::m_use_custom_word_point)
7264 (completion_tracker::m_custom_word_point): New fields.
7265 (advance_to_expression_complete_word_point): Declare.
7266 * f-lang.c (f_collect_symbol_completion_matches): Add
7267 complete_symbol_mode parameter.
7268 * language.h (struct language_defn)
7269 <la_collect_symbol_completion_matches>: Add complete_symbol_mode
7270 parameter.
7271 * linespec.c (linespec_keywords): Add NULL terminator. Make extern.
7272 (linespec_complete_function): New function.
7273 (linespec_lexer_lex_keyword): Adjust.
7274 * linespec.h (linespec_keywords, linespec_complete_function): New
7275 declarations.
7276 * location.c (find_end_quote): New function.
7277 (explicit_location_lex_one): Add explicit_completion_info
7278 parameter. Save quoting info. Don't throw if being called for
7279 completion. Don't handle Ada operators here.
7280 (is_cp_operator, skip_op_false_positives, first_of)
7281 (explicit_location_lex_one_function): New function.
7282 (string_to_explicit_location): Replace 'dont_throw' parameter with
7283 an explicit_completion_info pointer parameter. Handle it. Don't
7284 use explicit_location_lex_one to lex function names. Use
7285 explicit_location_lex_one_function instead.
7286 * location.h (struct explicit_completion_info): New.
7287 (string_to_explicit_location): Replace 'dont_throw' parameter with
7288 an explicit_completion_info pointer parameter.
7289 * symtab.c (default_collect_symbol_completion_matches_break_on):
7290 Add complete_symbol_mode parameter. Handle LINESPEC mode.
7291 (default_collect_symbol_completion_matches)
7292 (collect_symbol_completion_matches): Add complete_symbol_mode
7293 parameter.
7294 (collect_symbol_completion_matches_type): Pass down
7295 complete_symbol_mode::EXPRESSION.
7296 (collect_file_symbol_completion_matches): Add complete_symbol_mode
7297 parameter. Handle LINESPEC mode.
7298 * symtab.h (complete_symbol_mode): New.
7299 (default_collect_symbol_completion_matches_break_on)
7300 (default_collect_symbol_completion_matches)
7301 (collect_symbol_completion_matches)
7302 (collect_file_symbol_completion_matches): Add complete_symbol_mode
7303 parameter.
7304
1d550c82
PA
73052017-07-17 Pedro Alves <palves@redhat.com>
7306
7307 * utils.c (enum class strncmp_iw_mode): New.
7308 (strcmp_iw): Rename to ...
7309 (strncmp_iw_with_mode): ... this. Add string2_len and mode
7310 parameters. Handle them.
7311 (strncmp_iw): New.
7312 (strcmp_iw): Reimplement as wrapper around strncmp_iw_with_mode.
7313 * utils.h (strncmp_iw): Declare.
7314 (strcmp_iw): Move describing comments here.
7315
8090b426
PA
73162017-07-17 Pedro Alves <palves@redhat.com>
7317
7318 * c-exp.y (operator_stoken): Use CP_OPERATOR_LEN and
7319 CP_OPERATOR_STR.
7320 * c-typeprint.c (is_type_conversion_operator): Use
7321 CP_OPERATOR_STR.
7322 * cp-support.c (LENGTH_OF_OPERATOR): Delete.
7323 (cp_find_first_component_aux): Use CP_OPERATOR_STR and
7324 CP_OPERATOR_LEN.
7325 * cp-support.h (CP_OPERATOR_STR, CP_OPERATOR_LEN): New.
7326 * gnu-v2-abi.c (gnuv2_is_operator_name): Use CP_OPERATOR_STR.
7327 * gnu-v3-abi.c (gnuv3_is_operator_name): Use CP_OPERATOR_STR.
7328 * linespec.c (linespec_lexer_lex_string): Use CP_OPERATOR_LEN and
7329 CP_OPERATOR_STR.
7330 * location.c: Include "cp-support.h".
7331 (explicit_location_lex_one): Use CP_OPERATOR_LEN and
7332 CP_OPERATOR_STR.
7333 * symtab.c (operator_chars): Use CP_OPERATOR_STR and
7334 CP_OPERATOR_LEN.
7335
6a2c1b87
PA
73362017-07-17 Pedro Alves <palves@redhat.com>
7337
7338 * cli/cli-cmds.c (complete_command): Use a completion tracker
7339 along with completion_find_completion_word for handle_brkchars
7340 phase.
7341 * completer.c (RL_QF_SINGLE_QUOTE, RL_QF_DOUBLE_QUOTE)
7342 (RL_QF_BACKSLASH, RL_QF_OTHER_QUOTE): New.
7343 (struct gdb_rl_completion_word_info): New.
7344 (gdb_rl_find_completion_word): New.
7345 (completion_find_completion_word): New.
7346 * completer.h (completion_find_completion_word): Declare.
7347
eb3ff9a5
PA
73482017-07-17 Pedro Alves <palves@redhat.com>
7349
7350 * ada-lang.c (symbol_completion_match): Adjust comments.
7351 (symbol_completion_add): Replace vector parameter with
7352 completion_tracker parameter. Use it.
7353 (ada_make_symbol_completion_list): Rename to...
7354 (ada_collect_symbol_completion_matches): ... this. Add
7355 completion_tracker parameter and use it.
7356 (ada_language_defn): Adjust.
7357 * break-catch-syscall.c (catch_syscall_completer): Adjust
7358 prototype and work with completion_tracker instead of VEC.
7359 * breakpoint.c (condition_completer): Adjust prototype and work
7360 with completion_tracker instead of VEC.
7361 * c-lang.c (c_language_defn, cplus_language_defn)
7362 (asm_language_defn, minimal_language_defn): Adjust to renames.
7363 * cli/cli-cmds.c (complete_command): Rework using
7364 completion_tracker. Catch exceptions when completing.
7365 * cli/cli-decode.c (integer_unlimited_completer)
7366 (complete_on_cmdlist, complete_on_enum): Adjust prototype and work
7367 with completion_tracker instead of VEC.
7368 * command.h (struct completion_tracker): Forward declare.
7369 (completer_ftype, completer_handle_brkchars_ftype): Change
7370 types.
7371 (complete_on_cmdlist, complete_on_enum): Adjust.
7372 * completer.c: Include <algorithm>.
7373 (struct gdb_completer_state): New.
7374 (current_completion): New global.
7375 (readline_line_completion_function): Delete.
7376 (noop_completer, filename_completer)
7377 (filename_completer_handle_brkchars, complete_files_symbols)
7378 (linespec_location_completer): Adjust to work with a
7379 completion_tracker instead of a VEC.
7380 (string_or_empty): New.
7381 (collect_explicit_location_matches): Adjust to work with a
7382 completion_tracker instead of a VEC.
7383 (explicit_location_completer): Rename to ...
7384 (complete_explicit_location): ... this and adjust to work with a
7385 completion_tracker instead of a VEC.
7386 (location_completer): Adjust to work with a completion_tracker
7387 instead of a VEC.
7388 (add_struct_fields): Adjust to work with a completion_list instead
7389 of VEC.
7390 (expression_completer): Rename to ...
7391 (complete_expression): ... this and adjust to work with a
7392 completion_tracker instead of a VEC. Use complete_files_symbols.
7393 (expression_completer): Reimplement on top of complete_expression.
7394 (symbol_completer): Adjust to work with a completion_tracker
7395 instead of a VEC.
7396 (enum complete_line_internal_reason): Add describing comments.
7397 (complete_line_internal_normal_command): Adjust to work with a
7398 completion_tracker instead of a VEC.
7399 (complete_line_internal): Rename to ...
7400 (complete_line_internal_1): ... this and adjust to work with a
7401 completion_tracker instead of a VEC. Assert TEXT is NULL in the
7402 handle_brkchars phase.
7403 (new_completion_tracker): Delete.
7404 (complete_line_internal): Reimplement as TRY/CATCH wrapper around
7405 complete_line_internal_1.
7406 (free_completion_tracker): Delete.
7407 (INITIAL_COMPLETION_HTAB_SIZE): New.
7408 (completion_tracker::completion_tracker)
7409 (completion_tracker::~completion_tracker): New.
7410 (maybe_add_completion): Delete.
7411 (completion_tracker::maybe_add_completion)
7412 (completion_tracker::add_completion)
7413 (completion_tracker::add_completions): New.
7414 (throw_max_completions_reached_error): Delete.
7415 (complete_line): Adjust to work with a completion_tracker instead
7416 of a VEC. Don't create a completion_tracker_t or check for max
7417 completions here.
7418 (command_completer, command_completer_handle_brkchars)
7419 (signal_completer, reg_or_group_completer_1)
7420 (reg_or_group_completer, default_completer_handle_brkchars):
7421 Adjust to work with a completion_tracker.
7422 (gdb_completion_word_break_characters_throw): New.
7423 (gdb_completion_word_break_characters): Reimplement.
7424 (line_completion_function): Delete.
7425 (completion_tracker::recompute_lowest_common_denominator)
7426 (expand_preserving_ws)
7427 (completion_tracker::build_completion_result)
7428 (completion_result::completion_result)
7429 (completion_result::completion_result)
7430 (completion_result::~completion_result)
7431 (completion_result::completion_result)
7432 (completion_result::release_match_list, compare_cstrings)
7433 (completion_result::sort_match_list)
7434 (completion_result::reset_match_list)
7435 (gdb_rl_attempted_completion_function_throw)
7436 (gdb_rl_attempted_completion_function): New.
7437 * completer.h (completion_list, struct completion_result)
7438 (class completion_tracker): New.
7439 (complete_line): Add completion_tracker parameter.
7440 (readline_line_completion_function): Delete.
7441 (gdb_rl_attempted_completion_function): New.
7442 (noop_completer, filename_completer, expression_completer)
7443 (location_completer, symbol_completer, command_completer)
7444 (signal_completer, reg_or_group_completer): Update prototypes.
7445 (completion_tracker_t, new_completion_tracker)
7446 (make_cleanup_free_completion_tracker): Delete.
7447 (enum maybe_add_completion_enum): Delete.
7448 (maybe_add_completion): Delete.
7449 (throw_max_completions_reached_error): Delete.
7450 * corefile.c (complete_set_gnutarget): Adjust to work with a
7451 completion_tracker instead of a VEC.
7452 * cp-abi.c (cp_abi_completer): Adjust to work with a
7453 completion_tracker instead of a VEC.
7454 * d-lang.c (d_language_defn): Adjust.
7455 * disasm.c (disassembler_options_completer): Adjust to work with a
7456 completion_tracker instead of a VEC.
7457 * f-lang.c (f_make_symbol_completion_list): Rename to ...
7458 (f_collect_symbol_completion_matches): ... this. Adjust to work
7459 with a completion_tracker instead of a VEC.
7460 (f_language_defn): Adjust.
7461 * go-lang.c (go_language_defn): Adjust.
7462 * guile/scm-cmd.c (cmdscm_add_completion, cmdscm_completer):
7463 Adjust to work with a completion_tracker instead of a VEC.
7464 * infrun.c (handle_completer): Likewise.
7465 * interps.c (interpreter_completer): Likewise.
7466 * interps.h (interpreter_completer): Likewise.
7467 * language.c (unknown_language_defn, auto_language_defn)
7468 (local_language_defn): Adjust.
7469 * language.h (language_defn::la_make_symbol_completion_list):
7470 Rename to ...
7471 (language_defn::la_collect_symbol_completion_matches): ... this
7472 and adjust to work with a completion_tracker instead of a VEC.
7473 * m2-lang.c (m2_language_defn): Adjust.
7474 * objc-lang.c (objc_language_defn): Adjust.
7475 * opencl-lang.c (opencl_language_defn): Adjust.
7476 * p-lang.c (pascal_language_defn): Adjust.
7477 * python/py-cmd.c (cmdpy_completer_helper): Handle NULL word.
7478 (cmdpy_completer_handle_brkchars, cmdpy_completer): Adjust to work
7479 with a completion_tracker.
7480 * rust-lang.c (rust_language_defn): Adjust.
7481 * symtab.c (free_completion_list, do_free_completion_list)
7482 (return_val, completion_tracker): Delete.
7483 (completion_list_add_name, completion_list_add_symbol)
7484 (completion_list_add_msymbol, completion_list_objc_symbol)
7485 (completion_list_add_fields, add_symtab_completions): Add
7486 completion_tracker parameter and use it.
7487 (default_make_symbol_completion_list_break_on_1): Rename to...
7488 (default_collect_symbol_completion_matches_break_on): ... this.
7489 Add completion_tracker parameter and use it instead of allocating
7490 a completion tracker here.
7491 (default_make_symbol_completion_list_break_on): Delete old
7492 implementation.
7493 (default_make_symbol_completion_list): Delete.
7494 (default_collect_symbol_completion_matches): New.
7495 (make_symbol_completion_list): Delete.
7496 (collect_symbol_completion_matches): New.
7497 (make_symbol_completion_type): Rename to ...
7498 (collect_symbol_completion_matches_type): ... this. Add
7499 completion_tracker parameter and use it instead of VEC.
7500 (make_file_symbol_completion_list_1): Rename to...
7501 (collect_file_symbol_completion_matches): ... this. Add
7502 completion_tracker parameter and use it instead of VEC.
7503 (make_file_symbol_completion_list): Delete.
7504 (add_filename_to_list): Use completion_list instead of a VEC.
7505 (add_partial_filename_data::list): Now a completion_list.
7506 (make_source_files_completion_list): Work with a completion_list
7507 instead of a VEC.
7508 * symtab.h: Include "completer.h".
7509 (default_make_symbol_completion_list_break_on)
7510 (default_make_symbol_completion_list, make_symbol_completion_list)
7511 (make_symbol_completion_type, make_file_symbol_completion_list)
7512 (make_source_files_completion_list): Delete.
7513 (default_collect_symbol_completion_matches_break_on)
7514 (default_collect_symbol_completion_matches)
7515 (collect_symbol_completion_matches)
7516 (collect_symbol_completion_matches_type)
7517 (collect_file_symbol_completion_matches)
7518 (make_source_files_completion_list): New.
7519 * top.c (init_main): Don't install a rl_completion_entry_function
7520 hook. Install a rl_attempted_completion_function hook instead.
7521 * tui/tui-layout.c (layout_completer): Adjust to work with a
7522 completion_tracker.
7523 * tui/tui-regs.c (tui_reggroup_completer):
7524 * tui/tui-win.c (window_name_completer, focus_completer)
7525 (winheight_completer): Adjust to work with a completion_tracker.
7526 * value.c: Include "completer.h".
7527 (complete_internalvar): Adjust to work with a completion_tracker.
7528 * value.h (complete_internalvar): Likewise.
7529
6e1dbf8c
PA
75302017-07-17 Pedro Alves <palves@redhat.com>
7531
7532 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): Adjust to
7533 renames.
7534 * cli/cli-decode.h (struct cmd_list_element) <completer>: Move
7535 comments to completer_ftype's declaration.
7536 <completer_handle_brkchars>: Change type to
7537 completer_handle_brkchars_ftype.
7538 * command.h (completer_ftype): Add describing comment and give
7539 names to parameters.
7540 (completer_ftype_void): Rename to ...
7541 (completer_handle_brkchars_ftype) ... this. Add describing comment.
7542 (set_cmd_completer_handle_brkchars): Adjust.
7543 * completer.c (filename_completer_handle_brkchars): New function.
7544 (complete_line_internal_normal_command): New function, factored
7545 out from ...
7546 (complete_line_internal): ... here.
7547 (command_completer_handle_brkchars)
7548 (default_completer_handle_brkchars)
7549 (completer_handle_brkchars_func_for_completer): New functions.
7550 * completer.h (set_gdb_completion_word_break_characters): Delete
7551 declaration.
7552 (completer_handle_brkchars_func_for_completer): New declaration.
7553 * python/py-cmd.c (cmdpy_completer_handle_brkchars): Adjust to use
7554 completer_handle_brkchars_func_for_completer.
7555
78b13106
PA
75562017-07-17 Pedro Alves <palves@redhat.com>
7557
7558 * completer.c (symbol_completer): New function, based on
7559 make_symbol_completion_list_fn.
7560 * completer.h (symbol_completer): New declaration.
7561 * guile/scm-cmd.c (cmdscm_completers): Adjust.
7562 * python/py-cmd.c (completers): Adjust.
7563 * symtab.c (make_symbol_completion_list_fn): Delete.
7564 * symtab.h (make_symbol_completion_list_fn): Delete.
7565 * cli/cli-decode.c (add_cmd): Adjust.
7566
bbf2f4df
PA
75672017-07-17 Pedro Alves <palves@redhat.com>
7568
7569 * Makefile.in (COMMON_OBS): Add filename-seen-cache.o.
7570 * dwarf2read.c: Include "filename-seen-cache.h".
7571 * dwarf2read.c (dwarf2_per_objfile) <filenames_cache>: New field.
7572 (dw2_map_symbol_filenames): Build and use a filenames_seen_cache.
7573 * filename-seen-cache.c: New file.
7574 * filename-seen-cache.h: New file.
7575 * symtab.c: Include "filename-seen-cache.h".
7576 (struct filename_seen_cache, INITIAL_FILENAME_SEEN_CACHE_SIZE)
7577 (create_filename_seen_cache, clear_filename_seen_cache)
7578 (delete_filename_seen_cache, filename_seen): Delete, parts moved
7579 to filename-seen-cache.h/filename-seen-cache.c.
7580 (output_source_filename, sources_info)
7581 (maybe_add_partial_symtab_filename)
7582 (make_source_files_completion_list): Adjust to use
7583 filename_seen_cache.
7584
330cdd98
PA
75852017-07-17 Pedro Alves <palves@redhat.com>
7586
7587 * dwarf2read.c (dwarf2_per_objfile): In-class initialize all
7588 fields.
7589 (dwarf2_per_objfile::dwarf2_per_objfile(objfile*, const
7590 dwarf2_debug_sections*)): New.
7591 (dwarf2_per_objfile::dwarf2_per_objfile(const
7592 dwarf2_per_objfile&)): Declare as deleted.
7593 (dwarf2_per_objfile::operator=): Declare as deleted.
7594 (dwarf2_per_objfile::dwarf2_per_objfile)
7595 (dwarf2_per_objfile::~dwarf2_per_objfile)
7596 (dwarf2_per_objfile::free_cached_comp_units): New.
7597 (dwarf2_has_info): dwarf2_per_objfile initialization code moved to
7598 ctor. Call dwarf2_per_objfile's ctor manually.
7599 (dwarf2_locate_sections): Deleted/refactored as ...
7600 (dwarf2_per_objfile::locate_sections): ... this new method.
7601 (free_cached_comp_units): Defer to
7602 dwarf2_per_objfile::free_cached_comp_units.
7603 (dwarf2_free_objfile): Call dwarf2_per_objfile's dtor manually.
7604
8880f2a9
TT
76052017-07-14 Tom Tromey <tom@tromey.com>
7606
7607 PR rust/21764:
7608 * rust-exp.y (convert_ast_to_expression): Add "want_type"
7609 parameter.
7610 <UNOP_SIZEOF>: Split into separate case.
7611 <UNOP_VAR_VALUE>: Handle want_type. Add error case.
7612
65547233
TT
76132017-07-14 Tom Tromey <tom@tromey.com>
7614
7615 PR rust/21763:
7616 * symtab.c (symbol_matches_domain): Add language_rust to special
7617 case.
7618 * rust-exp.y (convert_ast_to_expression) <OP_VAR_VALUE>: Don't
7619 treat LOC_TYPEDEF symbols as variables.
7620
8f14146e
PA
76212017-07-14 Pedro Alves <palves@redhat.com>
7622
7623 * symtab.c (make_file_symbol_completion_list_1): Iterate over
7624 symtabs matching all symtabs with SRCFILE as file name instead of
7625 only considering the first hit, with lookup_symtab.
7626
2347965c
SM
76272017-07-14 Simon Marchi <simon.marchi@ericsson.com>
7628
7629 * ax-gdb.c (gen_aggregate_elt_ref): Remove operand_name and
7630 operator_name parameters.
7631 (gen_expr): Update function call.
7632
40f4af28
SM
76332017-07-14 Simon Marchi <simon.marchi@ericsson.com>
7634
7635 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Remove gdbarch
7636 parameter.
7637 * symtab.h (struct symbol_computed_ops::tracepoint_var_ref):
7638 Likewise.
7639 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove gdbarch
7640 parameter, use agent_expr::gdbarch instead, update function
7641 calls.
7642 (locexpr_tracepoint_var_ref): Likewise.
7643 (loclist_tracepoint_var_ref): Likewise.
7644 * ax-gdb.c (gen_trace_static_fields): Likewise.
7645 (gen_traced_pop): Likewise.
7646 (gen_frame_args_address): Likewise.
7647 (gen_frame_locals_address): Likewise.
7648 (gen_var_ref): Likewise.
7649 (gen_struct_ref_recursive): Likewise.
7650 (gen_static_field): Likewise.
7651 (gen_maybe_namespace_elt): Likewise.
7652 (gen_expr): Likewise.
7653 (gen_trace_for_var): Likewise.
7654 (gen_trace_for_expr): Likewise.
7655 (gen_trace_for_return_address): Likewise.
7656
053f8057
SM
76572017-07-14 Simon Marchi <simon.marchi@ericsson.com>
7658
7659 * ax-gdb.c (gen_deref, gen_address_of): Remove unused ax
7660 parameter.
7661 (gen_struct_ref, gen_expr, gen_expr_binop_rest): Update call.
7662
6661ad48
SM
76632017-07-14 Simon Marchi <simon.marchi@ericsson.com>
7664
7665 * ax-gdb.c (gen_usual_unary): Remove exp parameter, get gdbarch
7666 from ax, update calls.
7667 (gen_usual_arithmetic): Likewise.
7668 (gen_integral_promotions): Likewise.
7669 (gen_bitfield_ref): Likewise.
7670 (gen_primitive_field): Likewise.
7671 (gen_struct_ref_recursive): Likewise.
7672 (gen_struct_ref): Likewise.
7673 (gen_maybe_namespace_elt): Likewise.
7674 (gen_struct_elt_for_reference): Likewise.
7675 (gen_namespace_elt): Likewise.
7676 (gen_aggregate_elt_ref): Likewise.
7677 (gen_expr): Get gdbarch from ax, update calls.
7678 (gen_expr_binop_rest): Likewise.
7679
c55a47e7
PA
76802017-07-13 Pedro Alves <palves@redhat.com>
7681
7682 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Pass tdesc_amd64
7683 as default tdesc.
7684 * amd64-dicos-tdep.c (amd64_dicos_init_abi):
7685 * amd64-fbsd-tdep.c (amd64fbsd_init_abi):
7686 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass
7687 tdesc_amd64_linux as default tdesc. Get final tdesc from the
7688 tdep.
7689 (amd64_x32_linux_init_abi): Pass tdesc_x32_linux as default tdesc.
7690 Get final tdesc from the tdep.
7691 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Pass tdesc_amd64 as
7692 default tdesc.
7693 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
7694 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
7695 * amd64-tdep.c (amd64_init_abi): Add 'default_tdesc' parameter.
7696 Use it as default tdesc.
7697 (amd64_x32_init_abi): Add 'default_tdesc' parameter, and pass it
7698 down to amd_init_abi. No longer handle fallback tdesc here.
7699 * amd64-tdep.h (tdesc_x32): Declare.
7700 (amd64_init_abi, amd64_x32_init_abi): Add 'default_tdesc'
7701 parameter.
7702 * amd64-windows-tdep.c (amd64_windows_init_abi): Pass tdesc_amd64
7703 as default tdesc.
7704
55efceab
AA
77052017-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7706
7707 * s390-linux-tdep.c (s390_process_record): Add support for
7708 instructions new in arch12.
7709
0aa37b65
JB
77102017-07-11 John Baldwin <jhb@FreeBSD.org>
7711
7712 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
7713 PT_GETFSBASE and PT_GETGSBASE.
7714 (amd64bsd_store_inferior_registers): Use PT_SETFSBASE and
7715 PT_SETGSBASE.
7716
48aeef91
JB
77172017-07-11 John Baldwin <jhb@FreeBSD.org>
7718
7719 * features/Makefile (amd64.dat, amd64-avx.dat, amd64-mpx.dat)
7720 (amd64-avx-mpx.dat, amd64-avx-avx512.dat)
7721 (amd64-avx-mpx-avx512-pku.dat): Add i386/64bit-segments.xml in
7722 those rules.
7723 * features/i386/amd64-avx-avx512.xml: Add 64bit-segments.xml.
7724 * features/i386/amd64-avx-mpx-avx512-pku.xml: Add 64bit-segments.xml.
7725 * features/i386/amd64-avx-mpx.xml: Add 64bit-segments.xml.
7726 * features/i386/amd64-avx.xml: Add 64bit-segments.xml.
7727 * features/i386/amd64-mpx.xml: Add 64bit-segments.xml.
7728 * features/i386/amd64.xml: Add 64bit-segments.xml.
7729 * features/i386/amd64-avx-avx512.c: Regenerated.
7730 * features/i386/amd64-avx-mpx-avx512-pku.c: Regenerated.
7731 * features/i386/amd64-avx-mpx.c: Regenerated.
7732 * features/i386/amd64-avx.c: Regenerated.
7733 * features/i386/amd64-mpx.c: Regenerated.
7734 * features/i386/amd64.c: Regenerated.
7735 * regformats/i386/amd64-avx-avx512.dat: Regenerated.
7736 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
7737 * regformats/i386/amd64-avx-mpx.dat: Regenerated.
7738 * regformats/i386/amd64-avx.dat: Regenerated.
7739 * regformats/i386/amd64-mpx.dat: Regenerated.
7740 * regformats/i386/amd64.dat: Regenerated.
7741
77c501bc
YQ
77422017-07-10 Yao Qi <yao.qi@linaro.org>
7743
7744 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
7745 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
7746
6dc8d757
AK
77472017-07-10 Anton Kolesov <Anton.Kolesov@synopsys.com>
7748
7749 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add setenv and
7750 unsetenv.
7751 * gnulib/aclocal.m4: Regenerate.
7752 * gnulib/config.in: Regenerate.
7753 * gnulib/configure: Regenerate.
7754 * gnulib/import/Makefile.am: Regenerate.
7755 * gnulib/import/Makefile.in: Regenerate.
7756 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
7757 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
7758 * gnulib/import/m4/environ.m4: New file.
7759 * gnulib/import/m4/setenv.m4: New file.
7760 * gnulib/import/setenv.c: New file.
7761 * gnulib/import/unsetenv.c: New file.
7762
266934d1
SM
77632017-07-09 Simon Marchi <simon.marchi@ericsson.com>
7764
7765 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Read
7766 address when op is DW_OP_addr.
7767
03278692
TT
77682017-07-09 Tom Tromey <tom@tromey.com>
7769
7770 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Reverse size
7771 check and apply to outer type.
7772
4b654465
JB
77732017-07-07 John Baldwin <jhb@FreeBSD.org>
7774
7775 * fbsd-tdep.c (LWPINFO_OFFSET, LWPINFO_PL_FLAGS)
7776 (LWPINFO64_PL_SIGINFO, LWPINFO32_PL_SIGINFO, PL_FLAG_SI)
7777 (SIZE64_SIGINFO_T, SIZE32_SIGINFO_T, fbsd_core_xfer_siginfo): New.
7778 (fbsd_init_abi): Install gdbarch "core_xfer_siginfo" method.
7779
2af9fc44
JB
77802017-07-07 John Baldwin <jhb@FreeBSD.org>
7781
7782 * fbsd-tdep.c (fbsd_core_thread_name): Use thread_section_name.
7783
382b69bb
JB
77842017-07-07 John Baldwin <jhb@FreeBSD.org>
7785
7786 * corelow.c (get_core_siginfo): Remove.
7787 (core_xfer_partial): Use the gdbarch "core_xfer_siginfo" method
7788 instead of get_core_siginfo.
7789 * gdbarch.sh (core_xfer_siginfo): New gdbarch callback.
7790 * gdbarch.h: Re-generate.
7791 * gdbarch.c: Re-generate.
7792 * linux-tdep.c (linux_core_xfer_siginfo): New.
7793 (linux_init_abi): Install gdbarch "core_xfer_siginfo" method.
7794
6e5eab33
JB
77952017-07-07 John Baldwin <jhb@FreeBSD.org>
7796
7797 * corelow.c (thread_section_name): Move to ...
7798 * gdbcore.h (thread_section_name): ... here.
7799
929edea9
JB
78002017-07-07 John Baldwin <jhb@FreeBSD.org>
7801
7802 * fbsd-nat.c [PT_LWPINFO && __LP64__] (union sigval32)
7803 (struct siginfo32): New.
7804 [PT_LWPINFO] (fbsd_siginfo_size, fbsd_convert_siginfo): New.
7805 (fbsd_xfer_partial) [PT_LWPINFO]: Handle TARGET_OBJECT_SIGNAL_INFO
7806 via ptrace(PT_LWPINFO).
7807
762c974a
JB
78082017-07-07 John Baldwin <jhb@FreeBSD.org>
7809
7810 * fbsd-tdep.c (fbsd_gdbarch_data_handle, struct fbsd_gdbarch_data)
7811 (init_fbsd_gdbarch_data, get_fbsd_gdbarch_data)
7812 (fbsd_get_siginfo_type): New.
7813 (fbsd_init_abi): Install gdbarch "get_siginfo_type" method.
7814 (_initialize_fbsd_tdep): New.
7815
33c5cd75
DB
78162017-07-06 David Blaikie <dblaikie@gmail.com>
7817
7818 * dwarf2read.c (struct dwo_file): Use a htab of dwo_unit* (rather than
7819 a singular dwo_unit*) to support multiple CUs in the same way that
7820 multiple TUs are supported.
7821 (create_cus_hash_table): Replace create_dwo_cu with a function for
7822 parsing multiple CUs from a DWO file.
7823 (open_and_init_dwo_file): Use create_cus_hash_table rather than
7824 create_dwo_cu.
7825 (lookup_dwo_cutu): Lookup CU in the hash table in the dwo_file with
7826 htab_find, rather than comparing the signature to a singleton CU in
7827 the dwo_file.
7828
8455d262
PA
78292017-07-06 Pedro Alves <palves@redhat.com>
7830
7831 * python/py-unwind.c (pyuw_dealloc_cache): Fix for loop condition.
7832
4da3eb35
PA
78332017-07-04 Pedro Alves <palves@redhat.com>
7834
7835 * gdbtypes.c (recursive_dump_type): Don't reference TYPE_STATIC.
7836 * gdbtypes.h (TYPE_STATIC): Delete.
7837 (struct fn_field) <is_public, is_abstract, is_static, is_final,
7838 is_synchronized, is_native>: Delete.
7839 <dummy>: Bump.
7840 (TYPE_FN_FIELD_PUBLIC, TYPE_FN_FIELD_STATIC, TYPE_FN_FIELD_FINAL)
7841 (TYPE_FN_FIELD_SYNCHRONIZED, TYPE_FN_FIELD_NATIVE)
7842 (TYPE_FN_FIELD_ABSTRACT): Delete.
7843
5bfd255c
SM
78442017-07-03 Simon Marchi <simon.marchi@ericsson.com>
7845
7846 * buffer.h (buffer_finish): Fix spelling mistakes.
7847
25c54127
EZ
78482017-07-01 Eli Zaretskii <eliz@gnu.org>
7849
7850 * .dir-locals.el: Automatically switch to C-style comments in
7851 versions of Emacs that support the feature.
7852
dc4bde35
SDJ
78532017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
7854 Pedro Alves <palves@redhat.com>
7855
7856 PR cli/21688
7857 * cli/cli-script.c (command_name_equals_not_inline): Remove function.
7858 (process_next_line): New variable 'inline_cmd'.
7859 Adjust 'if' clauses for "python", "compile" and "guile" to use
7860 'command_name_equals' and check for '!inline_cmd'.
7861
51ed89aa
SDJ
78622017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
7863
7864 PR cli/21688
7865 * cli/cli-script.c (command_name_equals_not_inline): New function.
7866 (process_next_line): Adjust 'if' clauses for "python", "compile"
7867 and "guile" to use command_name_equals_not_inline.
7868
eb17d413
PA
78692017-06-29 Pedro Alves <palves@redhat.com>
7870
7871 * completer.c (expression_completer): Call
7872 linespec_location_completer instead of location_completer.
7873
195bcdd5
PA
78742017-06-29 Pedro Alves <palves@redhat.com>
7875
7876 * completer.c (expression_completer): Remove code that recomputes
7877 'text' from 'word'.
7878
adc764e7
YQ
78792017-06-29 Yao Qi <yao.qi@linaro.org>
7880
7881 * regformats/regdat.sh: Generate code with
7882 "ifndef IN_PROCESS_AGENT".
7883
6e75794e
PA
78842017-06-28 Pedro Alves <palves@redhat.com>
7885
7886 * command.h: Include "common/scoped_restore.h".
7887
bc491f2e
YQ
78882017-06-28 Yao Qi <yao.qi@linaro.org>
7889
7890 * mi/mi-cmd-break.c (mi_argv_to_format): Use obstack_grow_str
7891 instead of obstack_grow.
7892
41664b45
DG
78932017-06-28 Doug Gilmore <Doug.Gilmore@imgtec.com>
7894
7895 PR gdb/21337
7896 * symfile.c (reread_symbols): Call objfiles_changed just before
7897 read_symbols.
7898
6da67eb1
PA
78992017-06-27 Pedro Alves <palves@redhat.com>
7900
7901 * symtab.c (COMPLETION_LIST_ADD_SYMBOL)
7902 (MCOMPLETION_LIST_ADD_SYMBOL): Delete macros, replace with ...
7903 (completion_list_add_symbol, completion_list_add_msymbol):
7904 ... these new functions.
7905 (add_symtab_completions)
7906 (default_make_symbol_completion_list_break_on_1): Adjust.
7907
23732b1e
PA
79082017-06-27 Pedro Alves <palves@redhat.com>
7909
7910 * objfiles.c (get_objfile_bfd_data): Call bfd_alloc instead of
7911 bfd_zalloc. Call objfile_per_bfd_storage's ctor.
7912 (free_objfile_per_bfd_storage): Call objfile_per_bfd_storage's
7913 dtor.
7914 * objfiles.h (objfile_per_bfd_storage): Add ctor. Make
7915 'storage_obstack' field an auto_obstack. In-class initialize all
7916 non-bitfield fields. Make minsyms_read bool.
7917 * symfile.c (read_symbols): Adjust.
7918
a4d1e79a
AH
79192017-06-27 Alan Hayward <alan.hayward@arm.com>
7920
7921 * remote-sim.c (gdbsim_fetch_register): Use byte_vector.
7922 (gdbsim_store_register): Likewise.
7923
8268c778
PA
79242017-06-27 Pedro Alves <palves@redhat.com>
7925
7926 * c-exp.y (name_obstack): Now an auto_obstack.
7927 (yylex): Use auto_obstack::clear.
7928 (c_parse): Use auto_obstack::clear instead of reinitializing and
7929 freeing the obstack.
7930 * c-lang.c (evaluate_subexp_c): Use auto_obstack.
7931 * d-exp.y (name_obstack): Now an auto_obstack.
7932 (yylex): Use auto_obstack::clear.
7933 (d_parse): Use auto_obstack::clear instead of reinitializing and
7934 freeing the obstack.
7935 * dwarf2loc.c (fetch_const_value_from_synthetic_pointer): Use
7936 auto_obstack.
7937 * dwarf2read.c (create_addrmap_from_index)
7938 (dwarf2_build_psymtabs_hard)
7939 (update_enumeration_type_from_children): Likewise.
7940 * gdb_obstack.h (auto_obstack): New type.
7941 * go-exp.y (name_obstack): Now an auto_obstack.
7942 (build_packaged_name): Use auto_obstack::clear.
7943 (go_parse): Use auto_obstack::clear instead of reinitializing and
7944 freeing the obstack.
7945 * linux-tdep.c (linux_make_mappings_corefile_notes): Use
7946 auto_obstack.
7947 * printcmd.c (printf_wide_c_string, ui_printf): Use auto_obstack.
7948 * rust-exp.y (work_obstack): Now an auto_obstack.
7949 (rust_parse, rust_lex_tests): Use auto_obstack::clear instead of
7950 reinitializing and freeing the obstack.
7951 * utils.c (do_obstack_free, make_cleanup_obstack_free): Delete.
7952 (host_char_to_target): Use auto_obstack.
7953 * utils.h (make_cleanup_obstack_free): Delete declaration.
7954 * valprint.c (generic_emit_char, generic_printstr): Use
7955 auto_obstack.
7956
db665f42
SM
79572017-06-27 Simon Marchi <simon.marchi@ericsson.com>
7958
7959 * darwin-nat.c (darwin_check_new_threads): Don't handle dummy
7960 thread.
7961 (darwin_init_thread_list): Don't update dummy thread.
7962 (darwin_create_inferior, darwin_attach): Don't add a dummy thread.
7963
873c0814
SM
79642017-06-26 Simon Marchi <simon.marchi@ericsson.com>
7965
7966 * record-full.c (netorder16): Remove.
7967
8b5a7a6e
SM
79682017-06-26 Simon Marchi <simon.marchi@ericsson.com>
7969
7970 * common/diagnostics.h: Define macros for GCC.
7971 (DIAGNOSTIC_IGNORE_UNUSED_FUNCTION): New macro.
7972 * common/vec.h: Include diagnostics.h.
7973 (DIAGNOSTIC_IGNORE_UNUSED_VEC_FUNCTION): New macro.
7974 (DEF_VEC_I, DEF_VEC_P, DEF_VEC_O): Ignore -Wunused-function
7975 warning.
7976
d1435379
SM
79772017-06-26 Simon Marchi <simon.marchi@ericsson.com>
7978
7979 * common/diagnostics.h (DIAGNOSTIC_IGNORE_DEPRECATED_REGISTER):
7980 New macro.
7981 * ada-lex.l: Ignore deprecated register warnings.
7982
cc75e0fd
SM
79832017-06-25 Simon Marchi <simon.marchi@ericsson.com>
7984
7985 * main.c (get_init_files): Replace "SYSTEM_GDBINIT +
7986 datadir_len" with "&SYSTEM_GDBINIT[datadir_len]".
7987
07809eaf
SM
79882017-06-25 Simon Marchi <simon.marchi@ericsson.com>
7989
7990 * dtrace-probe.c (dtrace_process_dof_probe): Put semi-colon on
7991 its own line.
7992
f076f034
SM
79932017-06-25 Simon Marchi <simon.marchi@ericsson.com>
7994
7995 * nat/x86-dregs.c (x86_show_dr): Print registers one per line.
7996
0dd5cbc5
AH
79972017-06-23 Alan Hayward <alan.hayward@arm.com>
7998
7999 * xtensa-tdep.c (XTENSA_MAX_REGISTER_SIZE): Add.
8000 (xtensa_register_write_masked): Use XTENSA_MAX_REGISTER_SIZE.
8001 (xtensa_register_read_masked): Likewise.
8002
d4c6ce5b
SDJ
80032017-06-22 Sergio Durigan Junior <sergiodj@redhat.com>
8004
8005 * common/environ.c (gdb_environ::unset): Update comment.
8006
16892a03
AH
80072017-06-22 Alan Hayward <alan.hayward@arm.com>
8008
8009 * python/py-unwind.c (pyuw_sniffer): Allocate space for
8010 registers.
8011
d7dcbefc
AH
80122017-06-22 Alan Hayward <alan.hayward@arm.com>
8013
8014 * record-full.c (record_full_exec_insn): Use byte_vector.
8015
b30ff123
YQ
80162017-06-22 Yao Qi <yao.qi@linaro.org>
8017
8018 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Regenerated.
8019 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
8020
4fa847d7
AH
80212017-06-22 Alan Hayward <alan.hayward@arm.com>
8022
8023 * remote.c (cached_reg): Move from here...
8024 * regcache.h (cached_reg): ...to here.
8025 * python/py-unwind.c (struct reg_info): Remove.
8026 (cached_frame_info): Use cached_reg_t.
8027 (pyuw_prev_register): Likewise.
8028 (pyuw_sniffer): Use cached_reg_t and allocate registers.
8029 (pyuw_dealloc_cache): Free all registers.
8030
f4906a9a
PA
80312017-06-22 Pedro Alves <palves@redhat.com>
8032 Simon Marchi <simon.marchi@ericsson.com>
8033
8034 * unittests/environ-selftests.c (run_tests): Ignore -Wself-move
8035 warning.
8036 * common/diagnostics.h: New file.
8037
b45a1208
PA
80382017-06-22 Pedro Alves <palves@redhat.com>
8039
8040 * common/agent.h: Add include guards.
8041
e4da2c61
SM
80422017-06-21 Simon Marchi <simon.marchi@ericsson.com>
8043
8044 * target.h (struct target_ops) <to_xfer_partial>: Update doc to
8045 talk about addressable units instead of bytes.
8046
96160d60
SDJ
80472017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
8048
8049 * common/environ.c (gdb_environ::unset): Use '::iterator' instead
8050 of '::const_iterator'.
8051
9a6c7d9c
SDJ
80522017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
8053
8054 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
8055 'unittests/environ-selftests.c'.
8056 (SUBDIR_UNITTESTS_OBS): Add 'environ-selftests.o'.
8057 * charset.c (find_charset_names): Declare object 'iconv_env'.
8058 Update code to use 'iconv_env' object. Remove call to
8059 'free_environ'.
8060 * common/environ.c: Include <utility>.
8061 (make_environ): Delete function.
8062 (free_environ): Delete function.
8063 (gdb_environ::clear): New function.
8064 (gdb_environ::operator=): New function.
8065 (gdb_environ::get): Likewise.
8066 (environ_vector): Delete function.
8067 (set_in_environ): Delete function.
8068 (gdb_environ::set): New function.
8069 (unset_in_environ): Delete function.
8070 (gdb_environ::unset): New function.
8071 (gdb_environ::envp): Likewise.
8072 * common/environ.h: Include <vector>.
8073 (struct gdb_environ): Delete; transform into...
8074 (class gdb_environ): ... this class.
8075 (free_environ): Delete prototype.
8076 (init_environ, get_in_environ, set_in_environ, unset_in_environ,
8077 environ_vector): Likewise.
8078 * infcmd.c (run_command_1): Update code to call
8079 'envp' from 'gdb_environ' class.
8080 (environment_info): Update code to call methods from 'gdb_environ'
8081 class.
8082 (unset_environment_command): Likewise.
8083 (path_info): Likewise.
8084 (path_command): Likewise.
8085 * inferior.c (inferior::~inferior): Delete call to 'free_environ'.
8086 (inferior::inferior): Initialize 'environment' using the host's
8087 information.
8088 * inferior.h: Remove forward declaration of 'struct gdb_environ'.
8089 Include "environ.h".
8090 (class inferior) <environment>: Change type from 'struct
8091 gdb_environ' to 'gdb_environ'.
8092 * mi/mi-cmd-env.c (mi_cmd_env_path): Update code to call
8093 methods from 'gdb_environ' class.
8094 * solib.c (solib_find_1): Likewise
8095 * unittests/environ-selftests.c: New file.
8096
75c554cf
YQ
80972017-06-20 Yao Qi <yao.qi@linaro.org>
8098
8099 * features/i386/i386-linux.xml: Exchange the order of including
8100 32bit-linux.xml and 32bit-sse.xml.
8101 * features/i386/i386-linux.c: Regenerated.
8102
72ddacb7
YQ
81032017-06-20 Yao Qi <yao.qi@linaro.org>
8104
8105 * target-descriptions.c (tdesc_reg): Add ctor, dtor.
8106 Delete copy ctor and assignment operator.
8107 (tdesc_type): Likewise.
8108 (tdesc_feature): Likewise.
8109 (tdesc_free_reg): Remove.
8110 (tdesc_create_reg): Use new.
8111 (tdesc_free_type): Remove.
8112 (tdesc_create_vector): Use new.
8113 (tdesc_create_union): Likewise.
8114 (tdesc_create_flags): Likewise.
8115 (tdesc_create_enum): Likewise.
8116 (tdesc_free_feature): Delete.
8117 (free_target_description): Use delete.
8118
325c9fd4
JB
81192017-06-19 John Baldwin <jhb@FreeBSD.org>
8120
8121 * mips-tdep.c (print_gp_register_row): Don't error for unavailable
8122 registers.
8123
16b7a719
PA
81242017-06-19 Pedro Alves <palves@redhat.com>
8125
8126 * dwarf2read.c (write_psymtabs_to_index): Construct file_closer
8127 after gdb::unlinker.
8128
1c8e01c9
SDJ
81292017-06-19 Sergio Durigan Junior <sergiodj@redhat.com>
8130
8131 * mi/mi-cm-env.c (_initialize_mi_cmd_env): Use getenv instead of
8132 gdb_environ to access an environment variable.
8133
ffce45d2
TP
81342017-06-18 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8135
8136 * nat/linux-ptrace.c (linux_fork_to_function): Add cast to
8137 gdb_byte*.
8138
1d4fbac9
SM
81392017-06-17 Simon Marchi <simon.marchi@ericsson.com>
8140
8141 * nat/fork-inferior.h (trace_start_error): Add ATTRIBUTE_PRINTF.
8142
8465943a
SM
81432017-06-17 Simon Marchi <simon.marchi@ericsson.com>
8144
8145 * configure: Re-generate.
8146 * warning.m4 (build_warnings): Add -Wno-mismatched-tags.
8147
3e019bdc
SM
81482017-06-17 Simon Marchi <simon.marchi@ericsson.com>
8149
8150 * configure: Re-generate.
8151 * warning.m4: Pass -Werror to compiler when checking for
8152 supported warning flags.
8153
cf0dd6f0
SM
81542017-06-17 Simon Marchi <simon.marchi@ericsson.com>
8155
8156 * Makefile.in (COMPILE.pre): Add "-x c++".
8157
6f98355c
YQ
81582017-06-16 Alan Hayward <alan.hayward@arm.com>
8159 Pedro Alves <palves@redhat.com>
8160 Yao Qi <yao.qi@linaro.org>
8161
8162 * defs.h (RequireLongest): New.
8163 (extract_integer): Declare function template.
8164 (extract_signed_integer): Remove the declaration, but define it
8165 static inline.
8166 (extract_unsigned_integer): Likewise.
8167 (store_integer): Declare function template.
8168 (store_signed_integer): Remove the declaration, but define it
8169 static inline.
8170 (store_unsigned_integer): Likewise.
8171 * findvar.c (extract_integer): New function template.
8172 (extract_signed_integer): Remove.
8173 (extract_unsigned_integer): Remove.
8174 (extract_integer<LONGEST>, extract_integer<ULONGEST>): Explicit
8175 instantiations.
8176 (store_integer): New function template.
8177 (store_signed_integer): Remove.
8178 (store_unsigned_integer): Remove.
8179 (store_integer): Explicit instantiations.
8180 * regcache.c (regcache_raw_read_signed): Update.
8181 (regcache::raw_read): New function.
8182 (regcache::raw_read_signed): Remove.
8183 (regcache::raw_read_unsigned): Remove.
8184 (regcache_raw_read_unsigned): Update.
8185 (regcache_raw_write_unsigned): Update.
8186 (regcache::raw_write_signed): Remove.
8187 (regcache::raw_write): New function.
8188 (regcache_cooked_read_signed): Update.
8189 (regcache::raw_write_unsigned): Remove.
8190 (regcache::cooked_read_signed): Remove.
8191 (regcache_cooked_read_unsigned): Update.
8192 (regcache::cooked_read_unsigned): Remove.
8193 (regcache_cooked_write_signed): Update.
8194 (regcache_cooked_write_unsigned): Update.
8195 * regcache.h (regcache) <raw_read_signed>: Remove.
8196 <raw_write_signed, raw_read_unsigned, raw_write_unsigned>: Remove.
8197 <raw_read, raw_write>: New.
8198 <cooked_read_signed, cooked_write_signed>: Remove.
8199 <cooked_write_unsigned, cooked_read_unsigned>: Remove.
8200 <cooked_read, cooked_write>: New.
8201 * sh64-tdep.c (sh64_pseudo_register_read): Update.
8202 (sh64_pseudo_register_write): Update.
8203
a87dc45a
AK
82042017-06-16 Anton Kolesov <anton.kolesov@synopsys.com>
8205
8206 * arc-tdep.c (arc_disassembler_options): New variable.
8207 (arc_gdbarch_init): Set and use it. Use arc_delayed_print_insn instead
8208 of default_print_insn.
8209 (arc_delayed_print_insn): Set info->section when needed,
8210 use default_print_insn to retrieve a disassembler.
8211
45159d6a
SDJ
82122017-06-14 Sergio Durigan Junior <sergiodj@redhat.com>
8213
8214 PR gdb/21574
8215 * infcmd.c (_initialize_infcmd): Expand "help run" documentation
8216 to mention $SHELL and startup-with-shell.
8217
b46c4cf0
MF
82182017-06-14 Max Filippov <jcmvbkbc@gmail.com>
8219
8220 * MAINTAINERS: Move Maxim Grigoriev to the Past Maintainers.
8221
6394c606
YQ
82222017-06-14 Yao Qi <yao.qi@linaro.org>
8223
8224 * aarch64-tdep.c (aarch64_gdb_print_insn): Call
8225 default_print_insn instead of print_insn_aarch64.
8226 * arm-tdep.c (gdb_print_insn_arm): Call
8227 default_print_insn instead of print_insn_big_arm
8228 and print_insn_little_arm.
8229 * i386-tdep.c (i386_print_insn): Call default_print_insn
8230 instead of print_insn_i386.
8231 * ia64-tdep.c (ia64_print_insn): Call
8232 default_print_insn instead of print_insn_ia64.
8233 * mips-tdep.c (gdb_print_insn_mips): Call
8234 default_print_insn instead of print_insn_big_mips
8235 and print_insn_little_mips.
8236 * spu-tdep.c (gdb_print_insn_spu): Call default_print_insn
8237 instead of print_insn_spu.
8238
d5722aa2
PA
82392017-06-14 Pedro Alves <palves@redhat.com>
8240
8241 * ada-lang.c: Include "common/byte-vector.h".
8242 (ada_value_primitive_packed_val): Use gdb::byte_vector.
8243 * charset.c (wchar_iterator::iterate): Resize the vector instead
8244 of reserving it.
8245 * common/byte-vector.h: Include "common/def-vector.h".
8246 (wchar_iterator::m_out): Now a gdb::def_vector<gdb_wchar_t>.
8247 * cli/cli-dump.c: Include "common/byte-vector.h".
8248 (dump_memory_to_file, restore_binary_file): Use gdb::byte_vector.
8249 * common/byte-vector.h: New file.
8250 * common/def-vector.h: New file.
8251 * common/default-init-alloc.h: New file.
8252 * dwarf2loc.c: Include "common/byte-vector.h".
8253 (rw_pieced_value): Use gdb::byte_vector, and resize the vector
8254 instead of reserving it.
8255 * dwarf2read.c: Include "common/byte-vector.h".
8256 (data_buf::m_vec): Now a gdb::byte_vector.
8257 * gdb_regex.c: Include "common/def-vector.h".
8258 (compiled_regex::compiled_regex): Use gdb::def_vector<char>.
8259 * mi/mi-main.c: Include "common/byte-vector.h".
8260 (mi_cmd_data_read_memory): Use gdb::byte_vector.
8261 * printcmd.c: Include "common/byte-vector.h".
8262 (print_scalar_formatted): Use gdb::byte_vector.
8263 * valprint.c: Include "common/byte-vector.h".
8264 (maybe_negate_by_bytes, print_decimal_chars): Use
8265 gdb::byte_vector.
8266
01ec7a27
SM
82672017-06-13 Simon Marchi <simon.marchi@ericsson.com>
8268
8269 * darwin-nat.c: Include "nat/fork-inferior.h".
8270
848d9074
SM
82712017-06-13 Simon Marchi <simon.marchi@ericsson.com>
8272
8273 * configure.nat: Factor out Darwin bits that are not
8274 architecture-specific. Add fork-inferior.o.
8275
3b912944
SM
82762017-06-13 Simon Marchi <simon.marchi@ericsson.com>
8277
8278 * configure.nat: Factor out AIX bits that are not
8279 architecture-specific. Add fork-inferior.o.
8280
55acdf22
AA
82812017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8282
8283 * dwarf2loc.c (rw_pieced_value): New. Merge logic from...
8284 (read_pieced_value, write_pieced_value): ...here. Reduce to
8285 wrappers that just call rw_pieced_value.
8286
f65e2044
AA
82872017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8288
8289 * dwarf2loc.c (write_pieced_value): When writing the data for a
8290 memory piece, use write_memory_with_notification instead of
8291 write_memory.
8292
23f945bf
AA
82932017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8294
8295 * valops.c (read_value_memory): Change embedded_offset to
8296 represent a bit offset instead of a byte offset.
8297 * value.h (read_value_memory): Adjust comment.
8298
f236533e
AA
82992017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8300
8301 * dwarf2loc.c (read_pieced_value): Remove unnecessary variables
8302 dest_offset_bits and source_offset_bits.
8303 (write_pieced_value): Likewise.
8304
65d84b76
AA
83052017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8306
8307 * dwarf2loc.c (read_pieced_value): Respect the piece offset, as
8308 given by DW_OP_bit_piece.
8309 (write_pieced_value): Likewise.
8310
242d31ab
AA
83112017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8312
8313 * dwarf2loc.c (read_pieced_value): Move the buffer allocation and
8314 some other preparations to the places where sufficient information
8315 is available.
8316 (write_pieced_value): Likewise.
8317
03c8af18
AA
83182017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8319
8320 * dwarf2loc.c (bits_to_bytes): New function.
8321 (read_pieced_value): Fix offset calculations for register pieces
8322 on big-endian targets.
8323 (write_pieced_value): Likewise.
8324
840989c1
AA
83252017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8326
8327 * dwarf2loc.c (read_pieced_value): Remove buffer_size variable.
8328 (write_pieced_value): Likewise.
8329
359b19bb
AA
83302017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8331
8332 * dwarf2loc.c (write_pieced_value): When writing to a bit-field,
8333 transfer the source value's least significant bits, instead of its
8334 lowest-addressed ones. Rename type_len to max_offset.
8335 (read_pieced_value): Mirror above changes to write_pieced_value as
8336 applicable.
8337
07c9ca3b
AA
83382017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8339
8340 * dwarf2loc.c (write_pieced_value): In DWARF_VALUE_MEMORY,
8341 truncate full bytes from dest_offset_bits before using it as an
8342 offset into the buffer.
8343
f1cc9874
AA
83442017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8345
8346 * dwarf2loc.c (write_pieced_value): Include transfer size in
8347 byte-wise check.
8348
cdaac320
AA
83492017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8350
8351 * dwarf2loc.c (write_pieced_value): Fix copy/paste error in the
8352 calculation of this_size.
8353
af547a96
AA
83542017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8355
8356 * dwarf2loc.c (read_pieced_value): Respect parent value's offset
8357 when targeting a bit-field.
8358 (write_pieced_value): Likewise.
8359
ddd7882a
AA
83602017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8361
8362 * dwarf2loc.c (struct piece_closure) <addr_size>: Remove field.
8363 (allocate_piece_closure): Drop addr_size parameter.
8364 (dwarf2_evaluate_loc_desc_full): Adjust call to
8365 allocate_piece_closure.
8366
e9352324
AA
83672017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8368
8369 PR gdb/21226
8370 * dwarf2loc.c (read_pieced_value): Anchor stack value pieces at
8371 the LSB end, independent of endianness.
8372
d5d1163e
AA
83732017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8374
8375 * dwarf2loc.c (write_pieced_value): Fix order of calculations for
8376 size capping.
8377
032bb6ea
YQ
83782017-06-13 Yao Qi <yao.qi@linaro.org>
8379
8380 * mips-linux-nat.c: Move include features/mips*-linux.c to
8381 mips-linux-tdep.c.
8382 (_initialize_mips_linux_nat): Move initialize_tdesc_mips* calls
8383 to mips-linux-tdep.c.
8384 * mips-linux-tdep.c: Include features/mips*-linux.c
8385 (_initialize_mips_linux_tdep): Call initialize_tdesc_mips*
8386 functions.
8387 * mips-linux-tdep.h (tdesc_mips_linux): Declare.
8388 (tdesc_mips_dsp_linux, tdesc_mips64_linux): Declare.
8389 (tdesc_mips64_dsp_linux): Declare.
8390
f12f6bad
TT
83912017-06-12 Tom Tromey <tom@tromey.com>
8392
8393 * valprint.h (val_print_type_code_int): Remove.
8394 * valprint.c (generic_val_print_int): Always call
8395 val_print_scalar_formatted.
8396 (val_print_type_code_int): Remove.
8397 * printcmd.c (print_scalar_formatted): Handle options->format==0.
8398 * f-valprint.c (f_val_print): Use val_print_scalar_formatted.
8399 * c-valprint.c (c_val_print_int): Use val_print_scalar_formatted.
8400 * ada-valprint.c (ada_val_print_num): Use
8401 val_print_scalar_formatted.
8402
d9109c80
TT
84032017-06-12 Tom Tromey <tom@tromey.com>
8404
8405 * printcmd.c (print_scalar_formatted): Unify the two switches.
8406 Don't convert scalars to LONGEST.
8407
4ac0cb1c
TT
84082017-06-12 Tom Tromey <tom@tromey.com>
8409
8410 PR exp/16225:
8411 * valprint.h (print_decimal_chars): Update.
8412 * valprint.c (maybe_negate_by_bytes): New function.
8413 (print_decimal_chars): Add "is_signed" argument.
8414 * printcmd.c (print_scalar_formatted): Update.
8415
30a25466
TT
84162017-06-12 Tom Tromey <tom@tromey.com>
8417
8418 PR exp/16225:
8419 * valprint.h (print_binary_chars, print_hex_chars): Update.
8420 * valprint.c (val_print_type_code_int): Update.
8421 (print_binary_chars): Add "zero_pad" argument.
8422 (emit_octal_digit): New function.
8423 (print_octal_chars): Don't zero-pad.
8424 (print_decimal_chars): Likewise.
8425 (print_hex_chars): Add "zero_pad" argument.
8426 * sh64-tdep.c (sh64_do_fp_register): Update.
8427 * regcache.c (regcache::dump): Update.
8428 * printcmd.c (print_scalar_formatted): Update.
8429 * infcmd.c (default_print_one_register_info): Update.
8430
b3464d03
PA
84312017-06-12 Pedro Alves <palves@redhat.com>
8432 Alan Hayward <alan.hayward@arm.com>
8433
8434 * mips-tdep.c (MAX_MIPS_ABI_REGSIZE): New.
8435 (mips_eabi_push_dummy_call): Rename local 'regsize' to
8436 'abi_regsize'. Rename local array 'valbuf' to 'ref_valbuf', and
8437 use MAX_MIPS_ABI_REGSIZE instead of MAX_REGISTER_SIZE to size it.
8438 Assert that abi_regsize bytes fit in 'ref_valbuf'.
8439
4b76cda9
PA
84402017-06-12 Pedro Alves <palves@redhat.com>
8441
8442 * dwarf2read.c (mapped_symtab::data): Now a vector of
8443 symtab_index_entry instead of vector of
8444 std::unique_ptr<symtab_index_entry>. All users adjusted to check
8445 whether an element's name is NULL instead of checking whether the
8446 element itself is NULL.
8447 (find_slot): Change return type. Adjust.
8448 (hash_expand, , add_index_entry, uniquify_cu_indices)
8449 (write_hash_table): Adjust.
8450
e8f8bcb3
PA
84512017-06-12 Pedro Alves <palves@redhat.com>
8452
8453 * dwarf2read.c (recursively_count_psymbols): New function.
8454 (write_psymtabs_to_index): Call it to compute number of psyms and
8455 pass estimate size of psyms_seen to unordered_set's ctor.
8456
70a1152b
PA
84572017-06-12 Pedro Alves <palves@redhat.com>
8458
8459 * dwarf2read.c (write_hash_table): Check if key already exists
8460 before emplacing.
8461
c2f134ac
PA
84622017-06-12 Pedro Alves <palves@redhat.com>
8463
8464 * dwarf2read.c (data_buf::append_space): Rename to...
8465 (data_buf::grow): ... this, and make private. Adjust all callers.
8466 (data_buf::append_uint): New method.
8467 (add_address_entry, write_one_signatured_type)
8468 (write_psymtabs_to_index): Use it.
8469
a81e6d4d
PA
84702017-06-12 Pedro Alves <palves@redhat.com>
8471
8472 * dwarf2read.c (file_write(FILE *, const void *, size_t)): Delete.
8473 (file_write (FILE *, const std::vector<Elem>&)): Delete.
8474 (data_buf::file_write): Call ::fwrite directly.
8475
6fd931f2
PA
84762017-06-12 Pedro Alves <palves@redhat.com>
8477
8478 * dwarf2read.c (uniquify_cu_indices): Use std::unique and
8479 std::vector::erase.
8480
bc8f2430
JK
84812017-06-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8482
8483 Code cleanup: C++ify .gdb_index producer.
8484 * dwarf2read.c: Include <unordered_set> and <unordered_map>.
8485 (MAYBE_SWAP) [WORDS_BIGENDIAN]: Cast to offset_type.
8486 (struct strtab_entry, hash_strtab_entry, eq_strtab_entry)
8487 (create_strtab, add_string): Remove.
8488 (file_write, data_buf): New.
8489 (struct symtab_index_entry): Use std::vector for cu_indices.
8490 (struct mapped_symtab): Use std::vector for data.
8491 (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry)
8492 (create_symbol_hash_table, create_mapped_symtab, cleanup_mapped_symtab):
8493 Remove.
8494 (find_slot): Change return type. Update it to the new data structures.
8495 (hash_expand, add_index_entry): Update it to the new data structures.
8496 (offset_type_compare): Remove.
8497 (uniquify_cu_indices): Update it to the new data structures.
8498 (c_str_view, c_str_view_hasher, vector_hasher): New.
8499 (add_indices_to_cpool): Remove.
8500 (write_hash_table): Update it to the new data structures.
8501 (struct psymtab_cu_index_map, hash_psymtab_cu_index)
8502 (eq_psymtab_cu_index): Remove.
8503 (psym_index_map): New typedef.
8504 (struct addrmap_index_data): Change addr_obstack pointer to data_buf
8505 reference and std::unordered_map for cu_index_htab.
8506 (add_address_entry, add_address_entry_worker, write_address_map)
8507 (write_psymbols): Update it to the new data structures.
8508 (write_obstack): Remove.
8509 (struct signatured_type_index_data): Change types_list to a data_buf
8510 reference and psyms_seen to a std::unordered_set reference.
8511 (write_one_signatured_type, recursively_write_psymbols)
8512 (write_psymtabs_to_index): Update it to the new data structures.
8513
c4dcb155
SM
85142017-06-11 Simon Marchi <simon.marchi@ericsson.com>
8515
8516 * NEWS (Changes since GDB 8.0): Announce {set,show} debug
8517 separate-debug-file commands.
8518 * symfile.h (separate_debug_file_debug): New global.
8519 * symfile.c (separate_debug_file_debug): New global.
8520 (separate_debug_file_exists, find_separate_debug_file): Add
8521 debug output.
8522 (_initialize_symfile): Add "set debug separate-debug-file"
8523 command.
8524 * build-id.c (build_id_to_debug_bfd,
8525 find_separate_debug_file_by_buildid): Add debug output.
8526
6d45d4b4
SM
85272017-06-10 Simon Marchi <simon.marchi@polymtl.ca>
8528
8529 * gdbarch.sh (displaced_step_free_closure): Remove.
8530 * gdbarch.h, gdbarch.c: Re-generate.
8531 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't set
8532 displaced_step_free_closure.
8533 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
8534 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
8535 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
8536 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
8537 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
8538 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
8539 * arch-utils.h (simple_displaced_step_free_closure): Remove.
8540 * arch-utils.c (simple_displaced_step_free_closure): Remove.
8541 * infrun.c (displaced_step_clear): Call xfree instead of
8542 gdbarch_displaced_step_free_closure.
8543
2f91880f
SDJ
85442017-06-08 Sergio Durigan Junior <sergiodj@redhat.com>
8545
8546 * common/common-utils.c (stringify_argv): Check for "arg[0] !=
8547 NULL".
8548
b8b6e72f
AH
85492017-06-08 Alan Hayward <alan.hayward@arm.com>
8550
8551 * mn10300-tdep.c (MN10300_MAX_REGISTER_SIZE): Add.
8552 (mn10300_extract_return_value): Use MN10300_MAX_REGISTER_SIZE.
8553 (mn10300_push_dummy_call): Likewise.
8554
5369082e
AH
85552017-06-08 Alan Hayward <alan.hayward@arm.com>
8556
8557 * mi/mi-main.c (register_changed_p): Use value_contents_eq.
8558
ff4ca5ac
AH
85592017-06-08 Alan Hayward <alan.hayward@arm.com>
8560
8561 * mi/mi-main.c (register_changed_p): Use cooked_read_value.
8562
aefd8b33
SDJ
85632017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
8564
8565 * NEWS (Changes since GDB 8.0): Announce that GDBserver is now
8566 able to start inferiors using a shell.
8567 (New remote packets): Announce new packet "QStartupWithShell".
8568 * remote.c: Add PACKET_QStartupWithShell.
8569 (extended_remote_create_inferior): Handle new
8570 PACKET_QStartupWithShell.
8571 (remote_protocol_features) <QStartupWithShell>: New entry for
8572 PACKET_QStartupWithShell.
8573 (_initialize_remote): Call "add_packet_config_cmd" for
8574 QStartupShell.
8575
2090129c
SDJ
85762017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
8577 Pedro Alves <palves@redhat.com>
8578
8579 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-inferior.h"
8580 and "nat/fork-inferior.h".
8581 * common/common-inferior.h: New file, with contents from
8582 "gdb/inferior.h".
8583 * commom/common-utils.c: Include "common-utils.h".
8584 (stringify_argv): New function.
8585 * common/common-utils.h (stringify_argv): New prototype.
8586 * configure.nat: Add "fork-inferior.o" as a dependency for
8587 "*linux*", "fbsd*" and "nbsd*" hosts.
8588 * corefile.c (get_exec_file): Update comment.
8589 * darwin-nat.c (darwin_ptrace_him): Call "gdb_startup_inferior"
8590 instead of "startup_inferior".
8591 (darwin_create_inferior): Call "add_thread_silent" after
8592 "fork_inferior".
8593 * fork-child.c: Cleanup unnecessary includes.
8594 (SHELL_FILE): Move to "common/common-fork-child.c".
8595 (environ): Likewise.
8596 (exec_wrapper): Initialize.
8597 (get_exec_wrapper): New function.
8598 (breakup_args): Move to "common/common-fork-child.c"; rename to
8599 "breakup_args_for_exec".
8600 (escape_bang_in_quoted_argument): Move to
8601 "common/common-fork-child.c".
8602 (saved_ui): New variable.
8603 (prefork_hook): New function.
8604 (postfork_hook): Likewise.
8605 (postfork_child_hook): Likewise.
8606 (gdb_startup_inferior): Likewise.
8607 (fork_inferior): Move to "common/common-fork-child.c". Update
8608 function to support gdbserver.
8609 (startup_inferior): Likewise.
8610 * gdbcore.h (get_exec_file): Remove declaration.
8611 * gnu-nat.c (gnu_create_inferior): Call "gdb_startup_inferior"
8612 instead of "startup_inferior". Call "add_thread_silent" after
8613 "fork_inferior".
8614 * inf-ptrace.c: Include "nat/fork-inferior.h" and "utils.h".
8615 (inf_ptrace_create_inferior): Call "gdb_startup_inferior"
8616 instead of "startup_inferior". Call "add_thread_silent" after
8617 "fork_inferior".
8618 * inferior.h: Include "common-inferior.h".
8619 (trace_start_error): Move to "common/common-utils.h".
8620 (trace_start_error_with_name): Likewise.
8621 (fork_inferior): Move prototype to "nat/fork-inferior.h".
8622 (startup_inferior): Likewise.
8623 (gdb_startup_inferior): New prototype.
8624 * nat/fork-inferior.c: New file, with contents from "fork-child.c".
8625 * nat/fork-inferior.h: New file.
8626 * procfs.c (procfs_init_inferior): Call "gdb_startup_inferior"
8627 instead of "startup_inferior". Call "add_thread_silent" after
8628 "fork_inferior".
8629 * target.h (target_terminal_init): Move prototype to
8630 "target/target.h".
8631 (target_terminal_inferior): Likewise.
8632 (target_terminal_ours): Likewise.
8633 * target/target.h (target_terminal_init): New prototype, moved
8634 from "target.h".
8635 (target_terminal_inferior): Likewise.
8636 (target_terminal_ours): Likewise.
8637 * utils.c (gdb_flush_out_err): New function.
8638
043a4934
SDJ
86392017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
8640
8641 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-gdbthread.h".
8642 * common/common-gdbthread.h: New file, with parts from
8643 "gdb/gdbthread.h".
8644 * gdbthread.h: Include "common-gdbthread.h".
8645 (switch_to_thread): Moved to "common/common-gdbthread.h".
8646
15652511
SDJ
86472017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
8648
8649 * Makefile.in (SFILES): Add "common/job-control.c".
8650 (HFILES_NO_SRCDIR): Add "common/job-control.h".
8651 (COMMON_OBS): Add "job-control.o".
8652 * common/job-control.c: New file, with contents from
8653 "gdb/inflow.c".
8654 * common/job-control.h: New file, with contents from "terminal.h".
8655 * fork-child.c: Include "job-control.h".
8656 * inflow.c: Include "job-control.h".
8657 (gdb_setpgid): Move to "common/common-inflow.c".
8658 (_initialize_inflow): Move setting of "job_control" to
8659 "handle_job_control".
8660 * terminal.h (job_control): Moved to "common/common-terminal.h".
8661 (gdb_setpgid): Likewise.
8662 * top.c: Include "job_control.h".
8663 * utils.c: Likewise.
8664 (job_control): Moved to "job-control.c".
8665
2d7cc5c7
PA
86662017-06-07 Pedro Alves <palves@redhat.com>
8667
8668 * Makefile.in (SFILES): Add gdb_regex.c.
8669 (COMMON_OBS): Add gdb_regex.o.
8670 * ada-lang.c (ada_add_standard_exceptions)
8671 (ada_add_exceptions_from_frame, name_matches_regex)
8672 (ada_add_global_exceptions, ada_exceptions_list_1): Change regex
8673 parameter type to compiled_regex. Adjust.
8674 (ada_exceptions_list): Use compiled_regex.
8675 * break-catch-throw.c (exception_catchpoint::pattern): Now a
8676 std::unique_ptr<compiled_regex>.
8677 (exception_catchpoint::~exception_catchpoint): Remove regfree
8678 call.
8679 (check_status_exception_catchpoint): Adjust to use compiled_regex.
8680 (handle_gnu_v3_exceptions): Adjust to use compiled_regex.
8681 * breakpoint.c (solib_catchpoint::compiled): Now a
8682 std::unique_ptr<compiled_regex>.
8683 (solib_catchpoint::~solib_catchpoint): Remove regfree call.
8684 (check_status_catch_solib): Adjust to use compiled_regex.
8685 (add_solib_catchpoint): Adjust to use compiled_regex.
8686 * cli/cli-cmds.c (apropos_command): Use compiled_regex.
8687 * cli/cli-decode.c (apropos_cmd): Change regex parameter to
8688 compiled_regex reference. Adjust to use it.
8689 * cli/cli-decode.h: Remove struct re_pattern_buffer forward
8690 declaration. Include "gdb_regex.h".
8691 (apropos_cmd): Change regex parameter to compiled_regex reference.
8692 * gdb_regex.c: New file.
8693 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Delete
8694 declarations.
8695 (class compiled_regex): New.
8696 * linux-tdep.c: Include "common/gdb_optional.h".
8697 (struct mapping_regexes): New, factored out from
8698 mapping_is_anonymous_p, and adjusted to use compiled_regex.
8699 (mapping_is_anonymous_p): Use mapping_regexes wrapped in a
8700 gdb::optional and remove cleanups. Adjust to compiled_regex.
8701 * probe.c: Include "common/gdb_optional.h".
8702 (collect_probes): Use compiled_regex and gdb::optional and remove
8703 cleanups.
8704 * skip.c: Include "common/gdb_optional.h".
8705 (skiplist_entry::compiled_function_regexp): Now a
8706 gdb::optional<compiled_regex>.
8707 (skiplist_entry::compiled_function_regexp_is_valid): Delete field.
8708 (free_skiplist_entry): Remove regfree call.
8709 (compile_skip_regexp, skip_rfunction_p): Adjust to use
8710 compiled_regex and gdb::optional.
8711 * symtab.c: Include "common/gdb_optional.h".
8712 (search_symbols): Use compiled_regex and gdb::optional.
8713 * utils.c (do_regfree_cleanup, make_regfree_cleanup)
8714 (get_regcomp_error, compile_rx_or_error): Delete. Some bits moved
8715 to gdb_regex.c.
8716
50d6adef
AH
87172017-06-07 Alan Hayward <alan.hayward@arm.com>
8718
8719 * regcache.c (regcache::save): Avoid buffer use.
8720 (regcache::dump): Likewise.
8721
4a8a33c8
AH
87222017-06-07 Alan Hayward <alan.hayward@arm.com>
8723
8724 * sh-tdep.c (sh_pseudo_register_read): Remove
8725 MAX_REGISTER_SIZE.
8726 (sh_pseudo_register_write): Likewise.
8727 * sh64-tdep.c (sh64_pseudo_register_read): Likewise.
8728 (sh64_pseudo_register_write): Likewise
8729
d1be909e
AH
87302017-06-07 Alan Hayward <alan.hayward@arm.com>
8731
8732 * aarch64-tdep.c (aarch64_store_return_value): Use
8733 V_REGISTER_SIZE.
8734 (aarch64_pseudo_read_value): Likewise.
8735 (aarch64_pseudo_write): Likewise.
8736
f4a65042
YQ
87372017-06-06 Yao Qi <yao.qi@linaro.org>
8738
8739 * regformats/regdef.h (set_register_cache): Remove the
8740 declaration.
8741
9f7fb0aa
AH
87422017-06-06 Alan Hayward <alan.hayward@arm.com>
8743
8744 * frame.c (frame_unwind_register_signed): Use
8745 frame_unwind_register_value.
8746
e1e01040
PA
87472017-06-06 Pedro Alves <palves@redhat.com>
8748
8749 PR breakpoints/21553
8750 * breakpoint.c (create_breakpoints_sal_default)
8751 (init_breakpoint_sal, create_breakpoint_sal): Use
8752 gdb::unique_xmalloc_ptr for string parameters.
8753 (create_breakpoint): Constify 'extra_string' and 'cond_string'
8754 parameters. Replace cleanups with gdb::unique_xmalloc_ptr.
8755 (base_breakpoint_create_breakpoints_sal)
8756 (bkpt_create_breakpoints_sal, tracepoint_create_breakpoints_sal)
8757 (strace_marker_create_breakpoints_sal)
8758 (create_breakpoints_sal_default): Use gdb::unique_xmalloc_ptr for
8759 string parameters.
8760 * breakpoint.h (breakpoint_ops::create_breakpoints_sal): Use
8761 gdb::unique_xmalloc_ptr for string parameters.
8762 (create_breakpoint): Constify 'extra_string' and 'cond_string'
8763 parameters.
8764
fbe654c8
AH
87652017-06-06 Alan Hayward <alan.hayward@arm.com>
8766
8767 * alpha-tdep.c (alpha_register_to_value): Use
8768 get_frame_register_value.
8769 (alpha_value_to_register): Use ALPHA_REGISTER_SIZE.
8770
ae0d01d6
AH
87712017-06-06 Alan Hayward <alan.hayward@arm.com>
8772
8773 * ia64-tdep.c (IA64_MAX_FP_REGISTER_SIZE) Add.
8774 (ia64_register_to_value): Use IA64_MAX_FP_REGISTER_SIZE.
8775 (ia64_value_to_register): Likewise.
8776 (ia64_extract_return_value): Likewise.
8777 (ia64_store_return_value): Likewise.
8778 (ia64_push_dummy_call): Likewise.
8779
49cf576c
JB
87802017-06-04 Joel Brobecker <brobecker@adacore.com>
8781
8782 GDB 8.0 released.
8783
26b6a6ab
SM
87842017-06-03 Simon Marchi <simon.marchi@ericsson.com>
8785
8786 * x86-linux-nat.c (struct arch_lwp_info): Remove.
8787
22827c51
SM
87882017-06-03 Simon Marchi <simon.marchi@polymtl.ca>
8789
8790 * linux-nat.c (linux_nat_post_attach_wait): Remove FIRST
8791 parameter.
8792 (linux_nat_attach): Adjust call to linux_nat_post_attach_wait.
8793
0e05cf3a
SM
87942017-06-02 Simon Marchi <simon.marchi@ericsson.com>
8795
8796 * event-loop.c (poll_timers): Unallocate timer using delete
8797 instead of xfree.
8798
c1fc2657
SM
87992017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
8800
8801 * breakpoint.h (struct breakpoint_ops) <dtor>: Remove.
8802 (struct breakpoint) <~breakpoint>: New.
8803 (struct watchpoint): Inherit from breakpoint.
8804 <~watchpoint>: New.
8805 <base>: Remove.
8806 (struct tracepoint): Inherit from breakpoint.
8807 <base>: Remove.
8808 * breakpoint.c (longjmp_breakpoint_ops): Remove.
8809 (struct longjmp_breakpoint): Inherit from breakpoint.
8810 <~longjmp_breakpoint>: New.
8811 <base>: Remove.
8812 (new_breakpoint_from_type): Remove casts.
8813 (watchpoint_in_thread_scope): Remove reference to base field.
8814 (watchpoint_del_at_next_stop): Likewise.
8815 (update_watchpoint): Likewise.
8816 (watchpoint_check): Likewise.
8817 (bpstat_check_watchpoint): Likewise.
8818 (set_longjmp_breakpoint): Likewise.
8819 (struct fork_catchpoint): Inherit from breakpoint.
8820 <base>: Remove.
8821 (struct solib_catchpoint): Inherit from breakpoint.
8822 <~solib_catchpoint>: New.
8823 <base>: Remove.
8824 (dtor_catch_solib): Change to ...
8825 (solib_catchpoint::~solib_catchpoint): ... this.
8826 (breakpoint_hit_catch_solib): Remove reference to base field.
8827 (add_solib_catchpoint): Likewise.
8828 (create_fork_vfork_event_catchpoint): Likewise.
8829 (struct exec_catchpoint): Inherit from breakpoint.
8830 <~exec_catchpoint>: New.
8831 <base>: Remove.
8832 (dtor_catch_exec): Change to ...
8833 (exec_catchpoint::~exec_catchpoint): ... this.
8834 (dtor_watchpoint): Change to ...
8835 (watchpoint::~watchpoint): ... this.
8836 (watch_command_1): Remove reference to base field.
8837 (catch_exec_command_1): Likewise.
8838 (base_breakpoint_dtor): Change to ...
8839 (breakpoint::~breakpoint): ... this.
8840 (base_breakpoint_ops): Remove dtor field value.
8841 (longjmp_bkpt_dtor): Change to ...
8842 (longjmp_breakpoint::~longjmp_breakpoint): ... this.
8843 (strace_marker_create_breakpoints_sal): Remove reference to base
8844 field.
8845 (delete_breakpoint): Don't manually call breakpoint destructor.
8846 (create_tracepoint_from_upload): Remove reference to base field.
8847 (trace_pass_set_count): Likewise.
8848 (initialize_breakpoint_ops): Don't initialize
8849 momentary_breakpoint_ops, don't set dtors.
8850 * ada-lang.c (struct ada_catchpoint): Inherit from breakpoint.
8851 <~ada_catchpoint>: New.
8852 <base>: Remove.
8853 (create_excep_cond_exprs): Remove reference to base field.
8854 (dtor_exception): Change to ...
8855 (ada_catchpoint::~ada_catchpoint): ... this.
8856 (dtor_catch_exception): Remove.
8857 (dtor_catch_exception_unhandled): Remove.
8858 (dtor_catch_assert): Remove.
8859 (create_ada_exception_catchpoint): Remove reference to base
8860 field.
8861 (initialize_ada_catchpoint_ops): Don't set dtors.
8862 * break-catch-sig.c (struct signal_catchpoint): Inherit from
8863 breakpoint.
8864 <~signal_catchpoint>: New.
8865 <base>: Remove.
8866 (signal_catchpoint_dtor): Change to ...
8867 (signal_catchpoint::~signal_catchpoint): ... this.
8868 (create_signal_catchpoint): Remove reference to base field.
8869 (initialize_signal_catchpoint_ops): Don't set dtor.
8870 * break-catch-syscall.c (struct syscall_catchpoint): Inherit
8871 from breakpoint.
8872 <~syscall_catchpoint>: New.
8873 <base>: Remove.
8874 (dtor_catch_syscall): Change to ...
8875 (syscall_catchpoint::~syscall_catchpoint): ... this.
8876 (create_syscall_event_catchpoint): Remove reference to base
8877 field.
8878 (initialize_syscall_catchpoint_ops): Don't set dtor.
8879 * break-catch-throw.c (struct exception_catchpoint): Inherit
8880 from breakpoint.
8881 <~exception_catchpoint>: New.
8882 <base>: Remove.
8883 (dtor_exception_catchpoint): Change to ...
8884 (exception_catchpoint::~exception_catchpoint): ... this.
8885 (handle_gnu_v3_exceptions): Remove reference to base field.
8886 (initialize_throw_catchpoint_ops): Don't set dtor.
8887 * ctf.c (ctf_get_traceframe_address): Remove reference to base
8888 field.
8889 * remote.c (remote_get_tracepoint_status): Likewise.
8890 * tracefile-tfile.c (tfile_get_traceframe_address): Likewise.
8891 * tracefile.c (tracefile_fetch_registers): Likewise.
8892 * tracepoint.c (actions_command): Likewise.
8893 (validate_actionline): Likewise.
8894 (tfind_1): Likewise.
8895 (get_traceframe_location): Likewise.
8896 (find_matching_tracepoint_location): Likewise.
8897 (parse_tracepoint_status): Likewise.
8898 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
8899
3b0871f4
SM
89002017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
8901
8902 * breakpoint.c (struct longjmp_breakpoint): New struct.
8903 (is_tracepoint_type): Change return type to bool.
8904 (is_longjmp_type): New function.
8905 (new_breakpoint_from_type): Handle longjmp kinds of breakpoints.
8906 (set_raw_breakpoint_without_location): Use
8907 new_breakpoint_from_type.
8908 (set_raw_breakpoint): Likewise.
8909
a5e364af
SM
89102017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
8911
8912 * breakpoint.c (new_breakpoint_from_type): New function.
8913 (create_breakpoint_sal): Use new_breakpoint_from_type and
8914 unique_ptr.
8915 (create_breakpoint): Likewise.
8916
ae3b3f34
SM
89172017-05-31 Simon Marchi <simon.marchi@ericsson.com>
8918
8919 * memattr.c (mem_info_command): Rename to ...
8920 (info_mem_command): ... this.
8921 (mem_enable_command): Rename to ...
8922 (enable_mem_command): ... this.
8923 (mem_disable_command): Rename to ...
8924 (disable_mem_command): ... this.
8925 (mem_delete_command): Rename to ...
8926 (delete_mem_command): ... this.
8927 (_initialize_mem): Adjust function names.
8928
13ace077
MM
89292017-05-31 Markus Metzger <markus.t.metzger@intel.com>
8930
8931 * btrace.c (handle_pt_insn_events): New.
8932 (ftrace_add_pt): Call handle_pt_insn_events. Rename ERRCODE into
8933 STATUS. Split into this and ...
8934 (handle_pt_insn_event_flags): ... this.
8935
c56ccc05
MM
89362017-05-31 Markus Metzger <markus.t.metzger@intel.com>
8937
8938 * configure.ac: Check for pt_insn_event, struct pt_insn.enabled,
8939 and struct pt_insn.resynced.
8940 * configure: Regenerated.
8941 * config.in: Regenerated.
8942
08c3f6d2
TW
89432017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8944
8945 * btrace.c (ftrace_find_call_by_number): New function.
8946 (ftrace_new_function): Store objects, not pointers.
8947 (ftrace_find_call_by_number, ftrace_new_return, ftrace_new_switch,
8948 ftrace_new_gap, ftrace_update_function,
8949 ftrace_compute_global_level_offset, btrace_stich_bts, btrace_clear,
8950 btrace_insn_get, btrace_insn_get_error, btrace_insn_end,
8951 btrace_insn_next, btrace_insn_prev, ptrace_find_insn_by_number,
8952 btrace_ends_with_single_insn, btrace_call_get): Account for
8953 btrace_thread_info::functions now storing objects.
8954 * btrace.h (struct btrace_thread_info): Add constructor.
8955 (struct btrace_thread_info) <functions>: Make std::vector.
8956 (struct btrace_thread_info) <prev, next, up, insn, errcode, flags):
8957 Initialize with default values.
8958 * record-btrace.c (record_btrace_frame_sniffer): Account for
8959 btrace_thread_info::functions now storing objects.
8960
8ffd39f2
TW
89612017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8962
8963 * btrace.c: Remove typedef bfun_s.
8964 (ftrace_new_gap): Directly add gaps to the list of gaps.
8965 (btrace_bridge_gaps, btrace_compute_ftrace_bts, pt_btrace_insn_flags,
8966 ftrace_add_pt, btrace_compute_ftrace_pt, btrace_compute_ftrace_1,
8967 btrace_finalize_ftrace, btrace_compute_ftrace): Use std::vector
8968 instead of gdb VEC.
8969
4aeb0dfc
TW
89702017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8971
8972 * btrace.c (ftrace_fixup_caller, ftrace_new_return, ftrace_connect_bfun,
8973 ftrace_bridge_gap): Replace references to btrace_thread_info::segment
8974 with btrace_thread_info::next_segment and
8975 btrace_thread_info::prev_segment.
8976 * btrace.h: Remove struct btrace_func_link.
8977 (struct btrace_function): Replace pair of function segment pointers
8978 with pair of indices.
8979 * python/py-record-btrace.c (btpy_call_prev_sibling,
8980 btpy_call_next_sibling): Replace references to
8981 btrace_thread_info::segment with btrace_thread_info::next_segment and
8982 btrace_thread_info::prev_segment.
8983 * record-btrace.c (record_btrace_frame_this_id): Use
8984 btrace_find_call_by_number.
8985
eb8f2b9c
TW
89862017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8987
8988 * btrace.c (ftrace_new_function, ftrace_fixup_level,
8989 ftrace_connect_bfun, ftrace_bridge_gap, btrace_bridge_gaps,
8990 btrace_insn_next, btrace_insn_prev): Remove references to
8991 btrace_thread_info::flow.
8992 * btrace.h (struct btrace_function): Remove FLOW.
8993
42bfe59e
TW
89942017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8995
8996 * btrace.c (ftrace_find_call_by_number): New function.
8997 (ftrace_update_caller, ftrace_new_call, ftrace_new_tailcall,
8998 ftrace_get_caller, ftrace_find_call, ftrace_new_return,
8999 ftrace_match_backtrace, ftrace_connect_bfun, ftrace_connect_backtrace,
9000 ftrace_bridge_gap, btrace_bridge_gaps): Use btrace_function::up as an
9001 index.
9002 * btrace.h (struct btrace_function): Turn UP into an index.
9003 * python/py-record-btrace.c (btpy_call_up): Use btrace_function::up
9004 as an index.
9005 * record-btrace.c (record_btrace_frame_unwind_stop_reason,
9006 record_btrace_frame_prev_register, record_btrace_frame_sniffer,
9007 record_btrace_tailcall_frame_sniffe): Use btrace_find_call_by_number.
9008
b54b03bd
TW
90092017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
9010
9011 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
9012 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
9013 ftrace_update_function, ftrace_compute_global_level_offset,
9014 btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt,
9015 btrace_stitch_bts, btrace_fetch, btrace_clear, btrace_insn_number,
9016 btrace_insn_end, btrace_is_empty): Remove references to
9017 btrace_thread_info::begin and btrace_thread_info::end.
9018 * btrace.h (struct btrace_thread_info): Remove BEGIN and END.
9019 (struct btrace_thread_info) <functions>: Adjust comment.
9020 * record-btrace.c (record_btrace_start_replaying): Remove reference to
9021 btrace_thread_info::begin.
9022
8286623c
TW
90232017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
9024
9025 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
9026 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
9027 ftrace_update_function): Remove arguments that implicitly were always
9028 BTINFO->END.
9029 (btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt):
9030 Don't pass BTINFO->END.
9031
a0f1b963
TW
90322017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
9033
9034 * btrace.c: (btrace_insn_get, btrace_insn_get_error, btrace_insn_number,
9035 btrace_insn_begin, btrace_insn_end, btrace_insn_next, btrace_insn_prev,
9036 btrace_find_insn_by_number): Replace function segment pointer with
9037 index.
9038 (btrace_insn_cmp): Simplify.
9039 * btrace.h: (struct btrace_insn_iterator) Rename index to
9040 insn_index. Replace function segment pointer with index into function
9041 segment vector.
9042 * record-btrace.c (record_btrace_call_history): Replace function
9043 segment pointer use with index.
9044 (record_btrace_frame_sniffer): Retrieve function call segment through
9045 vector.
9046 (record_btrace_set_replay): Remove defunc't safety check.
9047
f158f208
TW
90482017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
9049
9050 * btrace.c (btrace_ends_with_single_insn): New function.
9051 (btrace_call_get, btrace_call_number, btrace_call_begin,
9052 btrace_call_end, btrace_call_next, btrace_call_prev,
9053 btrace_find_call_by_number): Use index into call segment vector
9054 instead of pointer.
9055 (btrace_call_cmp): Simplify.
9056 * btrace.h (struct btrace_call_iterator): Replace function call segment
9057 pointer with index into vector.
9058 * record-btrace.c (record_btrace_call_history): Use index instead of
9059 pointer.
9060
521103fd
TW
90612017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
9062
9063 * btrace.c (btrace_insn_begin, btrace_insn_end,
9064 btrace_find_insn_by_number): Add btinfo to iterator.
9065 * btrace.h (struct btrace_insn_iterator): Add btinfo.
9066
17b89b34
TW
90672017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
9068
9069 * btrace.c (ftrace_new_function): Add btrace_thread_info to arguments
9070 and save pointers directly.
9071 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return,
9072 ftrace_new_switch, ftrace_new_gap, ftrace_update_function,
9073 ftrace_add_pt): Add btrace_thread_info to arguments. Adjust for
9074 changed signature of functions.
9075 (btrace_compute_ftrace_pt): Adjust for changed signature of functions.
9076 (btrace_fetch): Remove code that adds btrace_function pointers to
9077 vector of btrace_functions.
9078 (btrace_clear): Simplify freeing vector of btrace_functions.
9079
2b51eddc
TW
90802017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
9081
9082 * btrace.c (btrace_fetch, btrace_clear, btrace_find_insn_by_number):
9083 Replace VEC_* with std::vector functions.
9084 * btrace.h: Add include: vector. Remove typedef for DEF_VEC_P.
9085 (struct btrace_thread_info)<functions>: Change type to std::vector.
9086
db6be0d5
SM
90872017-05-30 Simon Marchi <simon.marchi@ericsson.com>
9088
9089 * NEWS (Changes in GDB 8.0): Remove extra empty line. Move
9090 "Removed targets and native configurations" up. Merge duplicate
9091 "New commands" sub-sections. Add "New options" sub-sections.
9092
b057297a
AH
90932017-05-26 Alan Hayward <alan.hayward@arm.com>
9094
9095 * defs.h (copy_integer_to_size): New declaration.
9096 * findvar.c (copy_integer_to_size): New function.
9097 (do_cint_test): New selftest function.
9098 (copy_integer_to_size_test): Likewise.
9099 (_initialize_findvar): Likewise.
9100 * mips-fbsd-tdep.c (mips_fbsd_supply_reg): Use raw_supply_integer.
9101 (mips_fbsd_collect_reg): Use raw_collect_integer.
9102 * mips-linux-tdep.c (supply_32bit_reg): Use raw_supply_integer.
9103 (mips64_fill_gregset): Use raw_collect_integer
9104 (mips64_fill_fpregset): Use raw_supply_integer.
9105 * regcache.c (regcache::raw_supply_integer): New function.
9106 (regcache::raw_collect_integer): Likewise.
9107 * regcache.h: (regcache::raw_supply_integer): New declaration.
9108 (regcache::raw_collect_integer): Likewise.
9109
b77b02a5
YQ
91102017-05-24 Yao Qi <yao.qi@linaro.org>
9111
9112 * Makefile.in (SFILES): Add gdbarch-selftests.c.
9113 (COMMON_OBS): Add gdbarch-selftests.o.
9114 * frame.c [GDB_SELF_TESTS] (create_new_frame): New function.
9115 * frame.h [GDB_SELF_TESTS] (create_new_frame): Declare.
9116 * gdbarch-selftests.c: New file.
9117 * regcache.h (regcache) <~regcache>: Mark it virtual if
9118 GDB_SELF_TEST.
9119 <raw_write>: Likewise.
9120
e521e87e
YQ
91212017-05-24 Yao Qi <yao.qi@linaro.org>
9122
9123 * regcache.c (current_regcache): Change it to
9124 regcache::current_regcache.
9125 (regcache_observer_target_changed): Update.
9126 (regcache_thread_ptid_changed): Make it a regcache static
9127 method.
9128 (regcache_thread_ptid_changed): Update.
9129 (class regcache_access): New.
9130 (current_regcache_test): Update.
9131 (_initialize_regcache): Update.
9132 * regcache.h: Include forward_list.
9133 (regcache): Declare regcache_thread_ptid_changed and declare
9134 registers_changed_ptid as friend.
9135
d8e07dda
YQ
91362017-05-24 Yao Qi <yao.qi@linaro.org>
9137
9138 * i387-tdep.c (i387_register_to_value): Use register_size
9139 instead of TYPE_LENGTH.
9140 * m68k-tdep.c (m68k_register_to_value): Likewise.
9141
8c8f9122
YQ
91422017-05-24 Yao Qi <yao.qi@linaro.org>
9143
9144 * i387-tdep.c (i387_convert_register_p): Return false if type
9145 code isn't TYPE_CODE_FLT.
9146
68fce50f
YQ
91472017-05-24 Yao Qi <yao.qi@linaro.org>
9148
9149 * alpha-tdep.c (alpha_convert_register_p): Return true if type
9150 length is 4.
9151 (alpha_register_to_value): Remove type length check.
9152 (alpha_value_to_register): Likewise.
9153
88954b49
YQ
91542017-05-24 Yao Qi <yao.qi@linaro.org>
9155
9156 * ia64-tdep.c (ia64_convert_register_p): Check type's code is
9157 TYPE_CODE_FLT.
9158
e3ec9b69
YQ
91592017-05-24 Yao Qi <yao.qi@linaro.org>
9160
9161 * m68k-tdep.c (m68k_convert_register_p): Check type's code is
9162 TYPE_CODE_FLT or not.
9163
cdd238da
YQ
91642017-05-24 Yao Qi <yao.qi@linaro.org>
9165
9166 * alpha-tdep.c (alpha_gdbarch_init): Use XCNEW instead of XNEW.
9167 * avr-tdep.c (avr_gdbarch_init): Likewise.
9168 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
9169 * cris-tdep.c (cris_gdbarch_init): Likewise.
9170 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
9171 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
9172 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
9173 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
9174 * mep-tdep.c (mep_gdbarch_init): Likewise.
9175 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
9176 * mips-tdep.c (mips_gdbarch_init): Likewise.
9177 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
9178 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
9179 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
9180 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
9181 * v850-tdep.c (v850_gdbarch_init): Likewise.
9182
7a3929c4
YQ
91832017-05-24 Yao Qi <yao.qi@linaro.org>
9184
9185 * selftest-arch.c (tests_with_arch): Call registers_changed
9186 and reinit_frame_cache.
9187 * selftest.c (run_self_tests): Likewise.
9188
f4985dba
YQ
91892017-05-24 Yao Qi <yao.qi@linaro.org>
9190
9191 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove.
9192 (rs6000_gdbarch_init): Don't call set_gdbarch_print_insn.
9193
ab20fa4a
YQ
91942017-05-24 Yao Qi <yao.qi@linaro.org>
9195
9196 * rl78-tdep.c (rl78_gdbarch_init): Don't call
9197 set_gdbarch_print_insn.
9198
f532ab94
YQ
91992017-05-24 Yao Qi <yao.qi@linaro.org>
9200
9201 * h8300-tdep.c (h8300_gdbarch_init): Don't call
9202 set_gdbarch_print_insn.
9203
39503f82
YQ
92042017-05-24 Yao Qi <yao.qi@linaro.org>
9205
9206 * alpha-tdep.c (alpha_gdbarch_init): Don't call
9207 set_gdbarch_print_insn.
9208 * arc-tdep.c (arc_gdbarch_init): Likewise.
9209 * arch-utils.c: include dis-asm.h.
9210 (default_print_insn): New function.
9211 * arch-utils.h (default_print_insn): Declare.
9212 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_print_insn.
9213 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
9214 * cris-tdep.c (cris_delayed_get_disassembler): Remove.
9215 (cris_gdbarch_init): Don't call set_gdbarch_print_insn.
9216 * frv-tdep.c (frv_gdbarch_init): Likewise.
9217 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
9218 * gdbarch.sh (print_insn): Use default_print_insn.
9219 * gdbarch.c: Regenerated.
9220 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
9221 * iq2000-tdep.c (iq2000_gdbarch_init): Likewise.
9222 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
9223 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
9224 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
9225 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Remove.
9226 (m68hc11_gdbarch_init): Don't call set_gdbarch_print_insn.
9227 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
9228 * m88k-tdep.c (m88k_gdbarch_init): Likewise.
9229 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
9230 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
9231 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
9232 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
9233 * mt-tdep.c (mt_gdbarch_init): Likewise.
9234 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
9235 * nios2-tdep.c (nios2_print_insn): Remove.
9236 (nios2_gdbarch_init): Don't call set_gdbarch_print_insn.
9237 * rx-tdep.c (rx_gdbarch_init): Likewise.
9238 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
9239 * score-tdep.c (score_print_insn): Remove.
9240 (score_gdbarch_init): Don't call set_gdbarch_print_insn.
9241 * sh-tdep.c (sh_gdbarch_init): Likewise.
9242 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
9243 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
9244 * tic6x-tdep.c (tic6x_print_insn): Remove.
9245 (tic6x_gdbarch_init): Don't call set_gdbarch_print_insn.
9246 * tilegx-tdep.c (tilegx_gdbarch_init): Likewise.
9247 * v850-tdep.c (v850_gdbarch_init): Likewise.
9248 * vax-tdep.c (vax_gdbarch_init): Likewise.
9249 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
9250 * xtensa-tdep.c (xtensa_gdbarch_init): Likewise.
9251
f7241d4f
JB
92522017-05-23 John Baldwin <jhb@FreeBSD.org>
9253
9254 * mips-fbsd-tdep.c (MIPS_PC_REGNUM): Remove.
9255 (MIPS_FP0_REGNUM): Remove.
9256 (MIPS_FSR_REGNUM): Remove.
9257 (mips_fbsd_supply_fpregs): Use mips_regnum.
9258 (mips_fbsd_supply_gregs): Likewise.
9259 (mips_fbsd_collect_fpregs): Likewise.
9260 (mips_fbsd_collect_gregs): Likewise.
9261
d489d81d
JB
92622017-05-23 John Baldwin <jhb@FreeBSD.org>
9263
9264 * mips-fbsd-nat.c (getregs_supplies): Fix upper bound comparison.
9265 (getpfpregs_supplies): New function.
9266 (mips_fbsd_fetch_inferior_registers): Remove early exit and use
9267 getfpregs_supplies.
9268 (mips_fbsd_store_inferior_registers): Likewise.
9269
e11b3cdc
PA
92702017-05-22 Pedro Alves <palves@redhat.com>
9271
9272 * MAINTAINERS (Host/Native): Add John Baldwin as FreeBSD
9273 maintainer.
9274
0f068fb5
AH
92752017-05-22 Alan Hayward <alan.hayward@arm.com>
9276
9277 * ppc-linux-nat.c (fetch_register): Use PPC_MAX_REGISTER_SIZE.
9278 (store_register): Likewise.
9279 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Likewise.
9280 (get_decimal_float_return_value): Likewise.
9281 (do_ppc_sysv_return_value): Likewise.
9282 (ppc64_sysv_abi_push_integer): Likewise.
9283 (ppc64_sysv_abi_push_freg): Likewise.
9284 (ppc64_sysv_abi_return_value_base): Likewise.
9285 (ppc64_sysv_abi_return_value): Likewise.
9286 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
9287 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
9288 * rs6000-nat.c: Likewise.
9289 * rs6000-tdep.c (rs6000_register_to_value): Likewise.
9290 (rs6000_value_to_register): Likewise.
9291 * ppc-tdep.h (PPC_MAX_REGISTER_SIZE): Add.
9292
e6cf65f2
TT
92932017-05-21 Tom Tromey <tom@tromey.com>
9294
9295 PR rust/21466:
9296 * rust-lang.c (rust_print_type) <TYPE_CODE_ARRAY>: Print unsized
9297 arrays as "[T]", not "[T; ]".
9298
43cc5389
TT
92992017-05-19 Tom Tromey <tom@tromey.com>
9300
9301 PR rust/21484:
9302 * rust-lang.c (exp_descriptor_rust): New function.
9303 (rust_language_defn): Use it.
9304 * p-lang.c (pascal_language_defn): Update.
9305 * opencl-lang.c (opencl_language_defn): Update.
9306 * objc-lang.c (objc_language_defn): Update.
9307 * m2-lang.c (m2_language_defn): Update.
9308 * language.h (struct language_defn)
9309 <la_watch_location_expression>: New member.
9310 * language.c (unknown_language_defn, auto_language_defn)
9311 (local_language_defn): Update.
9312 * go-lang.c (go_language_defn): Update.
9313 * f-lang.c (f_language_defn): Update.
9314 * d-lang.c (d_language_defn): Update.
9315 * c-lang.h (c_watch_location_expression): Declare.
9316 * c-lang.c (c_watch_location_expression): New function.
9317 (c_language_defn, cplus_language_defn, asm_language_defn)
9318 (minimal_language_defn): Use it.
9319 * breakpoint.c (watch_command_1): Call
9320 la_watch_location_expression.
9321 * ada-lang.c (ada_language_defn): Update.
9322
7a6e7fcc
RO
93232017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9324
6e7e1744
RO
9325 PR tui/21482
9326 * gdb_curses.h (NOMACROS): Define.
9327 (NCURSES_NOMACROS): Define.
9328
93292017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9330
9331 PR tui/21482
7a6e7fcc
RO
9332 * tui/tui-windata.c (tui_erase_data_content): Cast last mvwaddstr
9333 arg to char *.
9334 * tui/tui-wingeneral.c (box_win): Likewise.
9335 * tui/tui-winsource.c (tui_erase_source_content): Likewise.
9336 (tui_show_source_line): Likewise.
9337 (tui_show_exec_info_content): Likewise.
9338
1933fd8e
VM
93392017-05-19 Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
9340
9341 * sparc-tdep.c (sparc_structure_return_p)
9342 (sparc_arg_on_registers_p): New functions.
9343 (sparc32_store_arguments): Use them.
9344 * sparc64-tdep.c (sparc64_16_byte_align_p)
9345 (sparc64_store_floating_fields, sparc64_extract_floating_fields):
9346 Handle TYPE_CODE_ARRAY.
9347
21873064
YQ
93482017-05-17 Yao Qi <yao.qi@linaro.org>
9349
9350 * cli/cli-decode.c (add_alias_cmd): New function.
9351 * command.h (add_alias_cmd): Declare.
9352 * infcmd.c (_initialize_infcmd): Don't call add_com_alias,
9353 instead call add_alias_cmd.
9354
2b351b19
PA
93552017-05-17 Pedro Alves <palves@redhat.com>
9356
9357 * Makefile.in (nat_extra_makefile_frag): Rename to ...
9358 (nat_makefile_frag): ... this. All references updated.
9359 * configure.ac: Likewise.
9360 * configure.nat: Likewise. Enhance comments.
9361 * configure: Regenerate.
9362
5f2ad7a3
RO
93632017-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9364
9365 * procfs.c (procfs_create_inferior): Change prototype to match
9366 definition.
9367
adf3dde5
EZ
93682017-05-13 Eli Zaretskii <eliz@gnu.org>
9369
9370 * tui/tui.c (tui_enable): Cast "unknown" to 'char *' to avoid a
9371 C++ compiler warning.
9372
6830f270
TT
93732017-05-12 Tom Tromey <tom@tromey.com>
9374
9375 PR rust/21483:
9376 * rust-lang.c (rust_evaluate_subexp) <STRUCTOP_STRUCT>: Don't
9377 recurse, just call value_struct_elt directly.
9378
68f2f2e3
TT
93792017-05-12 Tom Tromey <tom@tromey.com>
9380
9381 * rust-lang.c (rust_dump_subexp_body) <STRUCTOP_ANONYMOUS,
9382 OP_RUST_ARRAY>: Fix.
9383
256afbc2
TT
93842017-05-12 Tom Tromey <tom@tromey.com>
9385
9386 * rust-lang.c (rust_print_subexp): Replace "return" with "break".
9387
94bb8dfe
YQ
93882017-05-09 Yao Qi <yao.qi@linaro.org>
9389
9390 * regcache.c: Include <forward_list>.
9391 (struct regcache_list): Remove.
9392 (current_regcache): Update.
9393 (get_thread_arch_aspace_regcache): Update for std::forward_list.
9394 (regcache_thread_ptid_changed): Likewise.
9395 (registers_changed_ptid): Likewise.
9396 (current_regcache_size): Likewise.
9397
8248946c
YQ
93982017-05-09 Yao Qi <yao.qi@linaro.org>
9399
9400 * regcache.c [GDB_SELF_TEST]: Include selftest.h.
9401 (current_regcache_size): New function.
9402 (current_regcache_test): New function.
9403 (_initialize_regcache) [GDB_SELF_TEST]: Register the unit test.
9404
313c5961
AH
94052017-05-08 Alan Hayward <alan.hayward@arm.com>
9406
9407 * mips-tdep.c (mips_o32_return_value): Remove unused buffer.
9408 (print_gp_register_row): Use get_frame_register_value.
9409
27bfc1d1
AH
94102017-05-08 Alan Hayward <alan.hayward@arm.com>
9411
9412 * mips-linux-tdep.c (mips_supply_gregset): Use raw_supply_zeroed.
9413 (mips_supply_fpregset): Likewise.
9414 (mips64_supply_gregset): Likewise.
9415
146e6c5c
AH
94162017-05-08 Alan Hayward <alan.hayward@arm.com>
9417
9418 * mn10300-linux-tdep.c (am33_supply_gregset_method): Use
9419 regcache->raw_supply_zeroed.
9420
e50f25ec
SDJ
94212017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
9422
9423 * configure.nat: Rearrange 'case' statements to match
9424 host before cpu.
9425
21ea5acd
SDJ
94262017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
9427
9428 * Makefile.in: Remove "@host_makefile_frag@". Add variables
9429 NAT_FILE, NATDEPFILES, NAT_CDEPS, LOADLIBES, MH_CFLAGS, XM_CLIBS,
9430 NAT_GENERATED_FILES, HAVE_NATIVE_GCORE_HOST. Add
9431 "@nat_extra_makefile_frag@".
9432 (Makefile): Remove dependency on "@frags@".
9433 ($(GNULIB_BUILDDIR)/Makefile): Likewise.
9434 (data-directory/Makefile): Likewise.
9435 * config/aarch64/linux.mh: Deleted; moved contents to
9436 "gdb/configure.nat".
9437 * config/alpha/alpha-linux.mh: Likewise.
9438 * config/alpha/nbsd.mh: Likewise.
9439 * config/arm/linux.mh: Likewise.
9440 * config/arm/nbsdelf.mh: Likewise.
9441 * config/i386/cygwin.mh: Likewise.
9442 * config/i386/cygwin64.mh: Likewise.
9443 * config/i386/darwin.mh: Likewise.
9444 * config/i386/fbsd.mh: Likewise.
9445 * config/i386/fbsd64.mh: Likewise.
9446 * config/i386/go32.mh: Likewise.
9447 * config/i386/i386gnu.mh: Likewise.
9448 * config/i386/i386sol2.mh: Likewise.
9449 * config/i386/linux.mh: Likewise.
9450 * config/i386/linux64.mh: Likewise.
9451 * config/i386/mingw.mh: Likewise.
9452 * config/i386/mingw64.mh: Likewise.
9453 * config/i386/nbsd64.mh: Likewise.
9454 * config/i386/nbsdelf.mh: Likewise.
9455 * config/i386/nto.mh: Likewise.
9456 * config/i386/obsd.mh: Likewise.
9457 * config/i386/obsd64.mh: Likewise.
9458 * config/i386/sol2-64.mh: Likewise.
9459 * config/ia64/linux.mh: Likewise.
9460 * config/m32r/linux.mh: Likewise.
9461 * config/m68k/linux.mh: Likewise.
9462 * config/m68k/nbsdelf.mh: Likewise.
9463 * config/m68k/obsd.mh: Likewise.
9464 * config/m88k/obsd.mh: Likewise.
9465 * config/mips/fbsd.mh: Likewise.
9466 * config/mips/linux.mh: Likewise.
9467 * config/mips/nbsd.mh: Likewise.
9468 * config/mips/obsd64.mh: Likewise.
9469 * config/pa/linux.mh: Likewise.
9470 * config/pa/nbsd.mh: Likewise.
9471 * config/pa/obsd.mh: Likewise.
9472 * config/powerpc/aix.mh: Likewise.
9473 * config/powerpc/fbsd.mh: Likewise.
9474 * config/powerpc/linux.mh: Likewise.
9475 * config/powerpc/nbsd.mh: Likewise.
9476 * config/powerpc/obsd.mh: Likewise.
9477 * config/powerpc/ppc64-linux.mh: Likewise.
9478 * config/powerpc/spu-linux.mh: Likewise.
9479 * config/s390/linux.mh: Likewise.
9480 * config/sh/nbsd.mh: Likewise.
9481 * config/sparc/fbsd.mh: Likewise.
9482 * config/sparc/linux.mh: Likewise.
9483 * config/sparc/linux64.mh: Likewise.
9484 * config/sparc/nbsd64.mh: Likewise.
9485 * config/sparc/nbsdelf.mh: Likewise.
9486 * config/sparc/obsd64.mh: Likewise.
9487 * config/sparc/sol2.mh: Likewise.
9488 * config/tilegx/linux.mh: Likewise.
9489 * config/vax/nbsdelf.mh: Likewise.
9490 * config/vax/obsd.mh: Likewise.
9491 * config/xtensa/linux.mh: Likewise.
9492 * config/i386/i386gnu.mn: New file, with excerpts from
9493 "config/i386/i386gnu.mh".
9494 * configure: Regenerate.
9495 * configure.ac: Rewrite code to use "gdb/configure.nat" instead of
9496 *.mh files under "gdb/config".
9497 * configure.nat: New file, with contents from the
9498 "gdb/config/*/*.mh" files.
9499
7ed1acaf
TW
95002017-05-05 Tim Wiederhake <tim.wiederhake@intel.com>
9501
9502 * btrace.c (btrace_clear): Free insn vector.
9503
e13cb306
PA
95042017-05-05 Pedro Alves <palves@redhat.com>
9505
9506 * warning.m4 (build_warnings): Add -Wno-error=maybe-uninitialized.
9507 * configure: Regenerate.
9508
5ed8105e
PA
95092017-05-04 Pedro Alves <palves@redhat.com>
9510
9511 * Makefile.in (SFILES): Add progspace-and-thread.c.
9512 (HFILES_NO_SRCDIR): Add progspace-and-thread.h.
9513 (COMMON_OBS): Add progspace-and-thread.o.
9514 * breakpoint.c: Include "progspace-and-thread.h".
9515 (update_inserted_breakpoint_locations)
9516 (insert_breakpoint_locations, create_longjmp_master_breakpoint):
9517 Use scoped_restore_current_pspace_and_thread.
9518 (create_std_terminate_master_breakpoint): Use
9519 scoped_restore_current_program_space.
9520 (remove_breakpoint): Use scoped_restore_current_pspace_and_thread.
9521 (print_breakpoint_location): Use
9522 scoped_restore_current_program_space.
9523 (bp_loc_is_permanent): Use
9524 scoped_restore_current_pspace_and_thread.
9525 (resolve_sal_pc): Use scoped_restore_current_pspace_and_thread.
9526 (download_tracepoint_locations): Use
9527 scoped_restore_current_pspace_and_thread.
9528 (breakpoint_re_set): Use scoped_restore_current_pspace_and_thread.
9529 * exec.c (exec_close_1): Use scoped_restore_current_program_space.
9530 (enum step_over_calls_kind): Moved from inferior.h.
9531 (class scoped_restore_current_thread): New class.
9532 * gdbthread.h (make_cleanup_restore_current_thread): Delete
9533 declaration.
9534 (scoped_restore_current_thread): New class.
9535 * infcmd.c: Include "common/gdb_optional.h".
9536 (continue_1, proceed_after_attach): Use
9537 scoped_restore_current_thread.
9538 (notice_new_inferior): Use scoped_restore_current_thread.
9539 * inferior.c: Include "progspace-and-thread.h".
9540 (restore_inferior, save_current_inferior): Delete.
9541 (add_inferior_command, clone_inferior_command): Use
9542 scoped_restore_current_pspace_and_thread.
9543 * inferior.h (scoped_restore_current_inferior): New class.
9544 * infrun.c: Include "progspace-and-thread.h" and
9545 "common/gdb_optional.h".
9546 (follow_fork_inferior): Use
9547 scoped_restore_current_pspace_and_thread.
9548 (scoped_restore_exited_inferior): New class.
9549 (handle_vfork_child_exec_or_exit): Use
9550 scoped_restore_exited_inferior,
9551 scoped_restore_current_pspace_and_thread,
9552 scoped_restore_current_thread and scoped_restore.
9553 (fetch_inferior_event): Use scoped_restore_current_thread.
9554 * linespec.c (decode_line_full, decode_line_1): Use
9555 scoped_restore_current_program_space.
9556 * mi/mi-main.c: Include "progspace-and-thread.h".
9557 (exec_continue): Use scoped_restore_current_thread.
9558 (mi_cmd_exec_run): Use scoped_restore_current_pspace_and_thread.
9559 (mi_cmd_trace_frame_collected): Use scoped_restore_current_thread.
9560 * proc-service.c (ps_pglobal_lookup): Use
9561 scoped_restore_current_program_space.
9562 * progspace-and-thread.c: New file.
9563 * progspace-and-thread.h: New file.
9564 * progspace.c (release_program_space, clone_program_space): Use
9565 scoped_restore_current_program_space.
9566 (restore_program_space, save_current_program_space)
9567 (save_current_space_and_thread): Delete.
9568 (switch_to_program_space_and_thread): Moved to
9569 progspace-and-thread.c.
9570 * progspace.h (save_current_program_space)
9571 (save_current_space_and_thread): Delete declarations.
9572 (scoped_restore_current_program_space): New class.
9573 * remote.c (remote_btrace_maybe_reopen): Use
9574 scoped_restore_current_thread.
9575 * symtab.c: Include "progspace-and-thread.h".
9576 (skip_prologue_sal): Use scoped_restore_current_pspace_and_thread.
9577 * thread.c (print_thread_info_1): Use
9578 scoped_restore_current_thread.
9579 (struct current_thread_cleanup): Delete.
9580 (do_restore_current_thread_cleanup)
9581 (restore_current_thread_cleanup_dtor): Rename/convert both to ...
9582 (scoped_restore_current_thread::~scoped_restore_current_thread):
9583 ... this new dtor.
9584 (make_cleanup_restore_current_thread): Rename/convert to ...
9585 (scoped_restore_current_thread::scoped_restore_current_thread):
9586 ... this new ctor.
9587 (thread_apply_all_command): Use scoped_restore_current_thread.
9588 (thread_apply_command): Use scoped_restore_current_thread.
9589 * tracepoint.c (tdump_command): Use scoped_restore_current_thread.
9590 * varobj.c (value_of_root_1): Use scoped_restore_current_thread.
9591
f6223dbb
PA
95922017-05-04 Pedro Alves <palves@redhat.com>
9593
9594 * thread.c (make_cleanup_restore_current_thread): Move
9595 find_thread_ptid call before the is_stopped call. Assert that the
9596 thread is found. Replace is_stopped call by checking the thread's
9597 state directly. Remove unnecessary NULL-thread check.
9598
3c3ae77e
PA
95992017-05-04 Pedro Alves <palves@redhat.com>
9600
9601 * corelow.c (thread_section_name): New class.
9602 (get_core_register_section, get_core_siginfo): Use it.
9603
45eba0ab
AA
96042017-05-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
9605
9606 * corelow.c (sniff_core_bfd): Remove extra semicolon.
9607 (get_core_register_section): Remove xfree of NULL pointer.
9608
f81fdd35
AH
96092017-05-03 Alan Hayward <alan.hayward@arm.com>
9610
9611 * frv-linux-tdep.c (frv_linux_supply_gregset): Use raw_supply_zeroed.
9612 * regcache.c (regcache::raw_supply_zeroed): New function.
9613 * regcache.h (regcache::raw_supply_zeroed): New declaration.
9614
35837774
SM
96152017-05-03 Simon Marchi <simon.marchi@ericsson.com>
9616
9617 * gdbarch.sh: Remove commented out definition of
9618 TARGET_CHAR_BIT.
9619 * gdbarch.h: Re-generate.
9620
c94fee56
SDJ
96212017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
9622
9623 * configure: Regenerate.
9624
d17f7b36
SM
96252017-05-02 Simon Marchi <simon.marchi@ericsson.com>
9626
9627 * solib-target.c (solib_target_relocate_section_addresses):
9628 Remove num_section_bases, num_bases, segment_bases variables.
9629
b560ebd6
SM
96302017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
9631
9632 * common/gdb_vecs.h (DEF_VEC_I (CORE_ADDR)): Remove.
9633
f2f46dfc
SM
96342017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
9635
9636 * solib-target.c: Include <vector>
9637 (struct lm_info_target) <~lm_info_target>: Remove.
9638 <segment_bases, section_bases>: Change type to
9639 std::vector<CORE_ADDR>.
9640 (library_list_start_segment, library_list_start_section,
9641 library_list_end_library,
9642 solib_target_relocate_section_addresses): Adjust.
9643
a0ff9e1a
SM
96442017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
9645
9646 * gdbarch.sh (software_single_step): Change return type to
9647 std::vector<CORE_ADDR>.
9648 * gdbarch.c, gdbarch.h: Re-generate.
9649 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw):
9650 Adjust.
9651 (arm_deal_with_atomic_sequence_raw): Adjust.
9652 (thumb_get_next_pcs_raw): Adjust.
9653 (arm_get_next_pcs_raw): Adjust.
9654 (arm_get_next_pcs): Adjust.
9655 * arch/arm-get-next-pcs.h (arm_get_next_pcs): Adjust.
9656 * aarch64-tdep.c (aarch64_software_single_step): Adjust.
9657 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Adjust.
9658 (alpha_software_single_step): Adjust.
9659 * alpha-tdep.h (alpha_software_single_step): Adjust.
9660 * arm-linux-tdep.c (arm_linux_software_single_step): Adjust.
9661 * arm-tdep.c (arm_software_single_step): Adjust.
9662 (arm_breakpoint_kind_from_current_state): Adjust.
9663 * arm-tdep.h (arm_software_single_step): Adjust.
9664 * breakpoint.c (insert_single_step_breakpoint): Adjust.
9665 * cris-tdep.c (cris_software_single_step): Adjust.
9666 * mips-tdep.c (mips_deal_with_atomic_sequence): Adjust.
9667 (micromips_deal_with_atomic_sequence): Adjust.
9668 (deal_with_atomic_sequence): Adjust.
9669 (mips_software_single_step): Adjust.
9670 * mips-tdep.h (mips_software_single_step): Adjust.
9671 * moxie-tdep.c (moxie_software_single_step): Adjust.
9672 * nios2-tdep.c (nios2_software_single_step): Adjust.
9673 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Adjust.
9674 * rs6000-aix-tdep.c (rs6000_software_single_step): Adjust.
9675 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Adjust.
9676 * s390-linux-tdep.c (s390_software_single_step): Adjust.
9677 * sparc-tdep.c (sparc_software_single_step): Adjust.
9678 * spu-tdep.c (spu_software_single_step): Adjust.
9679 * tic6x-tdep.c (tic6x_software_single_step): Adjust.
9680
ea480a30
SM
96812017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
9682
9683 * gdbarch.sh: Use semi-colon as field separator instead of colon.
9684 * gdbarch.h: Re-generate.
9685
d050f7d7
TW
96862017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9687
9688 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-instruction.o.
9689 (SUBDIR_PYTHON_SRCS): Add py-instruction.c.
9690 * python/py-instruction.c, python/py-instruction.h: New file.
9691 * python/py-record.c: Add py-instruction.h include.
9692 (gdbpy_initialize_record): Make gdb.Instruction a super class of
9693 gdb.RecordInstruction.
9694 * python/python-internal.h: Add gdbpy_initialize_instruction
9695 declaration.
9696 * python/python.c (do_start_initialization): Add
9697 gdbpy_initialize_instruction.
9698
14f819c8
TW
96992017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9700
9701 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_CALL, btpy_call_type):
9702 Remove.
9703 (btrace_func_from_recpy_func): New function.
9704 (btpy_call_new, btpy_number, btpy_hash, btpy_richcompare): Remove.
9705 (btpy_call_level, btpy_call_symbol, btpy_call_instructions,
9706 btpy_call_up, btpy_call_prev_sibling, btpy_call_next_sibling): Rename to ...
9707 (recpy_bt_func_level, recpy_bt_func_symbol, recpy_bt_func_instructions,
9708 recpy_bt_func_up, recpy_bt_func_prev, recpy_bt_func_next): This.
9709 Also, use new helper functions.
9710 (btpy_list_item): Use new helper functions.
9711 (recpy_bt_function_call_history): Use new type name.
9712 (btpy_call_getset): Remove.
9713 (gdbpy_initialize_btrace): Remove code to initialize
9714 gdb.BtraceFunctionCall.
9715 * python/py-record-btrace.h (recpy_bt_func_number, recpy_btb_func_level,
9716 recpy_btb_func_symbol, recpy_bt_func_instructions, recpy_bt_func_up,
9717 recpy_bt_func_prev, recpy_bt_func_next): New export.
9718 * python/py-record.c (recpy_func_type): New static object.
9719 (recpy_func_new, recpy_func_level, recpy_func_symbol,
9720 recpy_func_instructions, recpy_func_up, recpy_func_prev,
9721 recpy_func_next): New function.
9722 (recpy_element_hash, recpy_element_richcompare): Updated comment.
9723 (recpy_func_getset): New static object.
9724 (gdbpy_initialize_record): Add code to initialize gdb.RecordInstruction.
9725 * python/py-record.h (recpy_func_type, recpy_func_new): New export.
9726
0ed5da75
TW
97272017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9728
9729 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN): Remove.
9730 (btpy_object, btpy_insn_type, btpy_new): Remove.
9731 (btpy_list_object): Use gdb.RecordInstruction type instead of
9732 gdb.BtraceInstruction type.
9733 (btrace_insn_from_recpy_insn): New function.
9734 (btpy_insn_or_gap_new): Adjust comment. Use recpy_insn_new instead of
9735 btpy_new.
9736 (btpy_call_new, btpy_list_item): Do not use btpy_new anymore.
9737 (btpy_number, btpy_hash, btpy_call_level, btpy_call_symbol,
9738 btpy_call_instructions, btpy_call_up, btpy_call_prev_sibling,
9739 btpy_call_next_sibling, btpy_richcompare): Use recpy_element_object
9740 instead of btpy_object.
9741 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
9742 btpy_insn_data, btpy_insn_decode): Rename to ...
9743 (recpy_bt_insn_sal, recpy_bt_insn_pc, recpy_bt_insn_size,
9744 recpy_bt_insn_is_speculative, recpy_bt_insn_data,
9745 recpy_bt_insn_decode): This. Also, use new helper functions.
9746 (btpy_list_position, recpy_bt_goto): Use recpy_element_object and
9747 recpy_insn_type.
9748 (btpy_insn_getset): Remove.
9749 (gdbpy_initialize_btrace): Remove code to initialize
9750 gdb.BtraceInstruction. Use recpy_element_object.
9751 * python/py-record-btrace.h (recpy_bt_insn_number, recpy_bt_insn_sal,
9752 recpy_bt_insn_pc, recpy_bt_insn_data, recpy_bt_insn_decoded,
9753 recpy_bt_insn_size, recpy_bt_insn_is_speculative): New export.
9754 * python/py-record.c (recpy_insn_type): New static object.
9755 (recpy_insn_new, recpy_insn_sal, recpy_insn_pc, recpy_insn_data,
9756 recpy_insn_decoded, recpy_insn_size, recpy_insn_is_speculative,
9757 recpy_element_number, recpy_element_hash, recpy_element_richcompare):
9758 New function.
9759 (recpy_insn_getset): New static object.
9760 (gdbpy_initialize_record): Initialize gdb.RecordInstruction.
9761 * python/py-record.h (recpy_element_object): New typedef.
9762 (recpy_insn_type, recpy_insn_new): New export.
9763
913aeadd
TW
97642017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9765
9766 * py-record-btrace.c (btpy_insn_new): Removed.
9767 (btpy_insn_or_gap_new): New function.
9768 (btpy_insn_error): Removed.
9769 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
9770 btpy_insn_data, btpy_insn_decode): Remove code path for gaps.
9771 (recpy_bt_replay_position, recpy_bt_begin, recpy_bt_end): Call
9772 btpy_insn_or_gap_new instead of btpy_insn_new.
9773 (btpy_insn_getset): Remove btpy_insn_error.
9774 * py-record.c (recpy_gap_type): New static object.
9775 (recpy_gap_object): New typedef.
9776 (recpy_gap_new, recpy_gap_number, recpy_gap_reason_code,
9777 recpy_gap_reason_string): New function.
9778 (recpy_gap_getset): New static object.
9779 (gdbpy_initialize_record): Initialize gdb.RecordGap type.
9780 * py-record.h (recpy_gap_new): New export.
9781
a3be24ad
TW
97822017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9783
9784 * python/py-record.c (recpy_ptid): Remove.
9785 (recpy_record_getset): Remove recpy_ptid.
9786
ae20e79a
TW
97872017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9788
9789 * btrace.c (btrace_fetch): Set inferior_ptid.
9790 * python/py-record-btrace.c: Add "py-record.h" include.
9791 (recpy_bt_format, recpy_bt_replay_position, recpy_bt_begin,
9792 recpy_bt_end, recpy_bt_instruction_history,
9793 recpy_bt_function_call_history, recpy_bt_goto): Use ptid stored
9794 in gdb.Record object instead of current ptid.
9795 * python/py-record.c: Include new "py-record.h" file.
9796 (recpy_record_object): Moved to py-record.h.
9797 * python/py-record.h: New file.
9798
8d0050ea
TW
97992017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9800
9801 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN,
9802 BTPY_REQUIRE_VALID_CALL, recpy_bt_function_call_history): Fix
9803 indentation.
9804
3f380b50
JB
98052017-05-01 Joel Brobecker <brobecker@adacore.com>
9806
9807 * MAINTAINERS: Move Daniel Jacobowitz and Mark Kettenis to
9808 the past maintainers section.
9809
07495424
YQ
98102017-04-28 Yao Qi <yao.qi@linaro.org>
9811
9812 * infcmd.c (get_return_value): Use regcache ctor, and remove
9813 cleanup.
9814
deb1fa3e
YQ
98152017-04-28 Yao Qi <yao.qi@linaro.org>
9816 Pedro Alves <palves@redhat.com>
9817
9818 * regcache.c (regcache::regcache): New tag dispatch ctor.
9819 (do_cooked_read): Moved above.
9820 (regcache_dup): Use the tag dispatch ctor..
9821 * regcache.h (regcache): Declare ctor, delete copy ctor and
9822 assignment operator, remove friend regcache_dup.
9823
b421c83c
YQ
98242017-04-28 Yao Qi <yao.qi@linaro.org>
9825
9826 * regcache.c (regcache_dup): Assert !src->m_readonly_p and
9827 call method save instead of regcache_cpy.
9828 * regcache.h (struct regcache): Make regcache_dup a friend.
9829
ef79d9a3
YQ
98302017-04-28 Yao Qi <yao.qi@linaro.org>
9831
9832 * regcache.c (struct regcache): Move to regcache.h
9833 (regcache::arch): New method.
9834 (regcache_get_ptid): Update.
9835 (get_regcache_arch): Call arch method.
9836 (get_regcache_aspace): Call method aspace.
9837 (register_buffer): Change it to method.
9838 (regcache_save): Change it to regcache::save.
9839 (regcache_restore): Likewise.
9840 (regcache_cpy_no_passthrough): Remove the declaration.
9841 (regcache_cpy): Call methods restore and cpy_no_passthrough.
9842 (regcache_cpy_no_passthrough): Change it to method
9843 cpy_no_passthrough.
9844 (regcache_register_status): Change it to method
9845 get_register_status.
9846 (regcache_invalidate): Change it to method invalidate.
9847 (regcache_thread_ptid_changed): Use methods ptid and set_ptid.
9848 (regcache_raw_update): Change it to method raw_update.
9849 (regcache_raw_read): Likewise.
9850 (regcache_raw_read_signed): Likewise.
9851 (regcache_raw_read_unsigned): Likewise.
9852 (regcache_raw_write_signed): Likewise.
9853 (regcache_raw_write_unsigned): Likewise.
9854 (regcache_cooked_read): Likewise.
9855 (regcache_cooked_read_value): Likewise.
9856 (regcache_cooked_read_signed): Likewise.
9857 (regcache_cooked_read_unsigned): Likewise.
9858 (regcache_cooked_write_signed): Likewise.
9859 (regcache_cooked_write_unsigned): Likewise.
9860 (regcache_raw_set_cached_value): Likewise.
9861 (regcache_raw_write): Likewise.
9862 (regcache_cooked_write): Likewise.
9863 (regcache_xfer_part): Likewise.
9864 (regcache_raw_read_part): Likewise.
9865 (regcache_raw_write_part): Likewise.
9866 (regcache_cooked_read_part): Likewise.
9867 (regcache_cooked_write_part): Likewise.
9868 (regcache_raw_supply): Likewise.
9869 (regcache_raw_collect): Likewise.
9870 (regcache_transfer_regset): Likewise.
9871 (regcache_supply_regset): Likewise.
9872 (regcache_collect_regset): Likewise.
9873 (regcache_debug_print_register): Likewise.
9874 (enum regcache_dump_what): Move it to regcache.h.
9875 (regcache_dump): Change it to method dump.
9876 * regcache.h (enum regcache_dump_what): New.
9877 (class regcache): New.
9878 * target.c (target_fetch_registers): Call method
9879 debug_print_register.
9880 (target_store_registers): Likewise.
9881
f8fdb78e
SM
98822017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9883
9884 * windows-nat.c (struct lm_info_windows): Initialize field.
9885 (windows_make_so): Allocate lm_info_windows with new.
9886 (windows_free_so): Free lm_info_windows with delete.
9887
9ccbfd7b
SM
98882017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9889
9890 * solib-darwin.c (struct lm_info_darwin): Initialize field.
9891 (darwin_current_sos): Allocate lm_info_darwin with new, remove
9892 cleanup.
9893 (darwin_free_so): Free lm_info_darwin with delete.
9894
76e75227
SM
98952017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9896
9897 * solib-svr4.h (struct lm_info_svr4): Initialize fields.
9898 <l_addr_p>: Change type to bool.
9899 * solib-svr4.c (lm_info_read): Allocate lm_info_svr4 with new.
9900 (svr4_free_so): Free lm_info_svr4 with delete.
9901 (svr4_copy_library_list): Replace memcpy with call to copy
9902 constructor.
9903 (library_list_start_library, svr4_default_sos): Allocate
9904 lm_info_svr4 with new.
9905
51046d9e
SM
99062017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9907
9908 * solib-target.c (struct lm_info_target): Add destructor,
9909 initialize fields.
9910 <name>: Change type to std::string.
9911 (library_list_start_library): Allocate lm_info_target with new.
9912 (solib_target_free_library_list): Free lm_info_target with
9913 delete.
9914 (solib_target_current_sos): Adapt to std::string.
9915 (solib_target_free_so): Free lm_info_target with delete.
9916
4023ae76
SM
99172017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9918
9919 * solib-frv.c (struct lm_info_frv): Add destructor, initialize
9920 fields.
9921 (frv_current_sos): Allocate lm_info_frv with new.
9922 (frv_relocate_main_executable): Free lm_info_frv with delete,
9923 allocate with new.
9924 (frv_clear_solib, frv_free_so): Free lm_info_frv with delete.
9925
af43057b
SM
99262017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9927
9928 * solib-frv.c (struct lm_info_frv): Fix indentation.
9929
b0911207
SM
99302017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9931
9932 * solib-dsbt.c (struct lm_info_dsbt): Add destructor, initialize
9933 map field.
9934 (dsbt_current_sos): Allocate lm_info_dsbt with new.
9935 (dsbt_relocate_main_executable): Free lm_info_dsbt with delete
9936 and allocate with new.
9937 (dsbt_clear_solib, dsbt_free_so): Free lm_info_dsbt with delete.
9938
6c401f72
SM
99392017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9940
9941 * solib-aix.c (struct lm_info_aix): Initialize fields in-class.
9942 <filename, member_name>: Change type to std::string.
9943 (solib_aix_new_lm_info, solib_aix_xfree_lm_info): Remove.
9944 (library_list_start_library): Allocate lm_info_aix with new.
9945 (solib_aix_free_library_list, solib_aix_free_so): Free with delete.
9946 (solib_aix_current_sos): Adapt to std::string, copy lm_info_aix
9947 with copy constructor.
9948
d0e449a1
SM
99492017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9950
9951 * solist.h (struct lm_info): Remove.
9952 (struct lm_info_base): New class.
9953 (struct so_list) <lm_info>: Change type to lm_info_base *.
9954 * nto-tdep.c (struct lm_info): Remove.
9955 (lm_addr): Adjust.
9956 * solib-aix.c (struct lm_info): Rename to ...
9957 (struct lm_info_aix): ... this. Extend lm_info_base.
9958 (lm_info_p): Rename to ...
9959 (lm_info_aix_p): ... this, and adjust.
9960 (solib_aix_new_lm_info, solib_aix_xfree_lm_info,
9961 solib_aix_parse_libraries, library_list_start_library,
9962 solib_aix_free_library_list, solib_aix_parse_libraries,
9963 solib_aix_get_library_list,
9964 solib_aix_relocate_section_addresses, solib_aix_free_so,
9965 solib_aix_get_section_offsets,
9966 solib_aix_solib_create_inferior_hook, solib_aix_current_sos):
9967 Adjust.
9968 (struct solib_aix_inferior_data) <library_list>: Adjust.
9969 * solib-darwin.c (struct lm_info): Rename to ...
9970 (struct lm_info_darwin): ... this. Extend lm_info_base.
9971 (darwin_current_sos, darwin_relocate_section_addresses): Adjust.
9972 * solib-dsbt.c (struct lm_info): Rename to ...
9973 (struct lm_info_dsbt): ... this. Extend lm_info_base.
9974 (struct dsbt_info) <main_executable_lm_info): Adjust.
9975 (dsbt_current_sos, dsbt_relocate_main_executable, dsbt_free_so,
9976 dsbt_relocate_section_addresses): Adjust.
9977 * solib-frv.c (struct lm_info): Rename to ...
9978 (struct lm_info_frv): ... this. Extend lm_info_base.
9979 (main_executable_lm_info): Adjust.
9980 (frv_current_sos, frv_relocate_main_executable, frv_free_so,
9981 frv_relocate_section_addresses, frv_fdpic_find_global_pointer,
9982 find_canonical_descriptor_in_load_object,
9983 frv_fdpic_find_canonical_descriptor): Adjust.
9984 * solib-svr4.c (struct lm_info): Move to solib-svr4.h, renamed
9985 to lm_info_svr4.
9986 (lm_info_read, lm_addr_check, svr4_keep_data_in_core,
9987 svr4_clear_so, svr4_copy_library_list,
9988 library_list_start_library, svr4_default_sos, svr4_read_so_list,
9989 svr4_current_sos, svr4_fetch_objfile_link_map,
9990 solist_update_incremental): Adjust.
9991 * solib-svr4.h (struct lm_info_svr4): Move here from
9992 solib-svr4.c.
9993 * solib-target.c (struct lm_info): Rename to ...
9994 (struct lm_info_target): ... this. Extend lm_info_base.
9995 (lm_info_p): Rename to ...
9996 (lm_info_target_p): ... this.
9997 (solib_target_parse_libraries, library_list_start_segment,
9998 library_list_start_section, library_list_start_library,
9999 library_list_end_library, solib_target_free_library_list,
10000 solib_target_current_sos, solib_target_free_so,
10001 solib_target_relocate_section_addresses): Adjust.
10002 * windows-nat.c (struct lm_info): Rename to ...
10003 (struct lm_info_windows): ... this. Extend lm_info_base.
10004 (windows_make_so, handle_load_dll, handle_unload_dll,
10005 windows_xfer_shared_libraries): Adjust.
10006
434a4023
SM
100072017-04-28 Simon Marchi <simon.marchi@ericsson.com>
10008
10009 * solib-darwin.c (struct darwin_so_list): Remove.
10010 (darwin_current_sos): Allocate an so_list object instead of a
10011 darwin_so_list, separately allocate an lm_info object.
10012 (darwin_free_so): Free lm_info.
10013
428544e8
JB
100142017-04-28 John Baldwin <jhb@FreeBSD.org>
10015
10016 * mips-tdep.c (print_gp_register_row): Replace printf_filtered
10017 with fprintf_filtered.
10018
4621115f
YQ
100192017-04-28 Yao Qi <yao.qi@linaro.org>
10020
10021 * regcache.c (regcache::regcache): New function.
10022 (regcache::~regcache): New function.
10023 (regcache_xmalloc_1): Remove.
10024 (regcache_xmalloc): Call new regcache.
10025 (regcache_xfree): Call delete regcache.
10026 (get_thread_arch_aspace_regcache): Call new regcache.
10027
339053c2
YQ
100282017-04-28 Yao Qi <yao.qi@linaro.org>
10029
10030 * mips-linux-nat.c (mips_linux_new_thread): Use ptid method
10031 lwp instead of ptid_get_lwp.
10032
7974a605
YQ
100332017-04-28 Yao Qi <yao.qi@linaro.org>
10034
10035 * mips-linux-nat.c (mips_linux_new_thread): Get lwpid from
10036 lwp_info instead of getting from inferior_ptid.
10037
e15c3eb4
KS
100382017-04-27 Keith Seitz <keiths@redhat.com>
10039
10040 * gdbtypes.c (LVALUE_REFERENCE_TO_RVALUE_BINDING_BADNESS)
10041 DIFFERENT_REFERENCE_TYPE_BADNESS): Remove.
10042 (CV_CONVERSION_BADNESS): Define.
10043 (rank_one_type): Remove overly restrictive rvalue reference
10044 rank checks.
10045 Add cv-qualifier checks and subranks for type equality.
10046 * gdbtypes.h (REFERENCE_CONVERSION_RVALUE,
10047 REFERENCE_CONVERSION_CONST_LVALUE, CV_CONVERSION_BADNESS,
10048 CV_CONVERSION_CONST, CV_CONVERSION_VOLATILE): Declare.
10049
72bc1d24
SM
100502017-04-27 Simon Marchi <simon.marchi@ericsson.com>
10051
10052 * python/py-inferior.c (inferior_to_inferior_object): Increment reference
10053 count when creating the object.
10054
55bcecda
UW
100552017-04-27 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
10056 Ulrich Weigand <uweigand@de.ibm.com>
10057
10058 * xcoffread.c (read_xcoff_symtab): Read correct function auxiliary
10059 entry if xlc -qfuncsect or gcc -ffunction-sections compiler option
10060 is used in AIX.
10061 (read_xcoff_symtab): Handle C_WEAKEXT storage class.
10062 (process_xcoff_symbol): Likewise.
10063 (scan_xcoff_symtab): Likewise.
10064
5c99fcf8
AH
100652017-04-26 Alan Hayward <alan.hayward@arm.com>
10066
10067 * ia64-tdep.c (examine_prologue): Use get_frame_register_unsigned.
10068 (ia64_sigtramp_frame_prev_register): Use read_memory_unsigned_integer.
10069 (ia64_access_reg): Use get_frame_register_unsigned.
10070 (ia64_access_rse_reg): Likewise.
10071 (ia64_libunwind_frame_prev_register): Likewise.
10072
b41c5a85
JW
100732017-04-26 Jiong Wang <jiong.wang@arm.com>
10074
10075 * gdbarch.sh: New gdbarch method execute_dwarf_cfa_vendor_op.
10076 * gdbarch.c: Regenerated.
10077 * gdbarch.h: Regenerated.
10078 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Made the
10079 visibility external.
10080 (execute_cfa_program): Call execute_dwarf_cfa_vendor_op for CFI
10081 between DW_CFA_lo_user and DW_CFA_high_user inclusive.
10082 (enum cfa_how_kind): Move to ...
10083 (struct dwarf2_frame_state_reg_info): Likewise.
10084 (struct dwarf2_frame_state): Likewise.
10085 * dwarf2-frame.h: ... here.
10086 (dwarf2_frame_state_alloc_regs): New declaration.
10087 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): New function.
10088 (sparc32_gdbarch_init): Register execute_dwarf_cfa_vendor_op hook.
10089
c185f580
AH
100902017-04-26 Alan Hayward <alan.hayward@arm.com>
10091
10092 * xtensa-tdep.c (xtensa_pseudo_register_read): Use
10093 regcache_raw_read_unsigned.
10094 (xtensa_pseudo_register_write): Likewise.
10095
19c45594
AH
100962017-04-26 Alan Hayward <alan.hayward@arm.com>
10097
10098 * nds32-tdep.c (nds32_pseudo_register_read): Abort on errors.
10099 (nds32_pseudo_register_write): Likewise.
10100
4658f12e
YQ
101012017-04-25 Yao Qi <yao.qi@linaro.org>
10102
10103 * regcache.c (struct regcache) <readonly_p>: Change its type
10104 to bool.
10105 (regcache_xmalloc_1): Update parameter type and callers update.
10106
d581dda8
YQ
101072017-04-25 Yao Qi <yao.qi@linaro.org>
10108
10109 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
10110 set_gdbarch_wchar_bit.
10111 * arm-tdep.c (arm_gdbarch_init): Likewise.
10112
debed3db
PA
101132017-04-25 Pedro Alves <palves@redhat.com>
10114
10115 * common/poison.h [!HAVE_IS_TRIVIALLY_COPYABLE] (IsRelocatable)
10116 (BothAreRelocatable, memcopy, memmove): Don't define.
10117 * common/traits.h (__has_feature, HAVE_IS_TRIVIALLY_COPYABLE): New
10118 macros.
10119
b0b92aeb
PA
101202017-04-25 Pedro Alves <palves@redhat.com>
10121
10122 * common/common-defs.h: Include "common/poison.h".
10123 * common/function-view.h: (Not, Or, Requires): Move to traits.h
10124 and adjust.
10125 * common/poison.h: New file.
10126 * common/traits.h: Include <type_traits>.
10127 (Not, Or, Requires): New, moved from common/function-view.h.
10128
16c4d54a
PA
101292017-04-25 Pedro Alves <palves@redhat.com>
10130
10131 * breakpoint.h (struct breakpoint): In-class initialize all
10132 fields. Make boolean fields "bool".
10133 * breakpoint.c (init_raw_breakpoint_without_location): Remove
10134 memset call and initializations no longer necessary.
10135
b5c36682
PA
101362017-04-25 Pedro Alves <palves@redhat.com>
10137
10138 * btrace.c (pt_btrace_insn_flags): Change parameter type to
10139 reference.
10140 (pt_btrace_insn): New function.
10141 (ftrace_add_pt): Remove memset call and use pt_btrace_insn.
10142
5625a286
PA
101432017-04-25 Pedro Alves <palves@redhat.com>
10144
10145 * ada-lang.c (ada_catchpoint_location): Now a "class". Remove
10146 "base" field and inherit from "bp_location" instead. Add
10147 non-default ctor.
10148 (allocate_location_exception): Use new non-default ctor.
10149 * breakpoint.c (get_first_locp_gte_addr): Remove memset call.
10150 (init_bp_location): Convert to ...
10151 (bp_location::bp_location): ... this new ctor, and remove memset
10152 call.
10153 (base_breakpoint_allocate_location): Use the new non-default ctor.
10154 * breakpoint.h (bp_location): Now a class. Declare default and
10155 non-default ctors. In-class initialize all members.
10156 (init_bp_location): Remove declaration.
10157
23bcc18f
PA
101582017-04-25 Pedro Alves <palves@redhat.com>
10159
10160 * common/enum-flags.h (enum_flags): Don't implement copy ctor and
10161 assignment operator.
10162
e1ba3053
YQ
101632017-04-24 Yao Qi <yao.qi@linaro.org>
10164
10165 * doublest.c (convert_doublest_to_floatformat): Call
10166 floatformat_totalsize_bytes.
10167
10f489e5
TT
101682017-04-22 Tom Tromey <tom@tromey.com>
10169
10170 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
10171 ui_out_emit_list.
10172 * stack.c (print_frame): Use ui_out_emit_list.
10173 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
10174 ui_out_emit_list.
10175 * mi/mi-main.c (print_one_inferior)
10176 (mi_cmd_data_list_register_names)
10177 (mi_cmd_data_list_register_values, mi_cmd_list_features)
10178 (mi_cmd_list_target_features, mi_cmd_trace_frame_collected): Use
10179 ui_out_emit_list.
10180 * mi/mi-interp.c (mi_on_normal_stop_1): Use ui_out_emit_list.
10181 (mi_output_solib_attribs): Use ui_out_emit_list,
10182 ui_out_emit_tuple.
10183 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_list.
10184 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
10185 (mi_cmd_stack_list_args, list_args_or_locals): Use
10186 ui_out_emit_list.
10187 * disasm.c (do_assembly_only): Use ui_out_emit_list.
10188 * breakpoint.c (print_solib_event, output_thread_groups): Use
10189 ui_out_emit_list.
10190
0092b74d
TT
101912017-04-22 Tom Tromey <tom@tromey.com>
10192
10193 * mi/mi-main.c (print_variable_or_computed): Use ui_out_emit_tuple.
10194 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_tuple.
10195 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_out_emit_tuple.
10196
a14a62dd
TT
101972017-04-22 Tom Tromey <tom@tromey.com>
10198
10199 * tracepoint.c (tvariables_info_1)
10200 (print_one_static_tracepoint_marker): Use ui_out_emit_tuple.
10201
46b9c129
TT
102022017-04-22 Tom Tromey <tom@tromey.com>
10203
10204 * stack.c (print_frame_arg): Use ui_out_emit_tuple,
10205 annotate_arg_emitter.
10206 * breakpoint.c (print_mention_watchpoint)
10207 (print_mention_masked_watchpoint): Use ui_out_emit_tuple.
10208 * annotate.h (struct annotate_arg_emitter): New.
10209
2e783024
TT
102102017-04-22 Tom Tromey <tom@tromey.com>
10211
10212 * record-btrace.c (record_btrace_insn_history)
10213 (record_btrace_insn_history_range, record_btrace_call_history)
10214 (record_btrace_call_history_range): Use ui_out_emit_tuple.
10215 * thread.c (do_captured_list_thread_ids, print_thread_info_1): Use
10216 ui_out_emit_tuple.
10217 * stack.c (print_frame_info): Use ui_out_emit_tuple.
10218 * solib.c (info_sharedlibrary_command): Use ui_out_emit_tuple.
10219 * skip.c (skip_info): Use ui_out_emit_tuple.
10220 * remote.c (show_remote_cmd): Use ui_out_emit_tuple.
10221 * progspace.c (print_program_space): Use ui_out_emit_tuple.
10222 * probe.c (info_probes_for_ops): Use ui_out_emit_tuple.
10223 * osdata.c (info_osdata): Use ui_out_emit_tuple.
10224 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
10225 ui_out_emit_tuple.
10226 * mi/mi-main.c (print_one_inferior, list_available_thread_groups)
10227 (output_register, mi_cmd_data_read_memory)
10228 (mi_cmd_data_read_memory_bytes, mi_load_progress)
10229 (mi_cmd_trace_frame_collected): Use ui_out_emit_tuple.
10230 * mi/mi-cmd-var.c (mi_cmd_var_list_children, varobj_update_one):
10231 Use ui_out_emit_tuple.
10232 * mi/mi-cmd-stack.c (mi_cmd_stack_list_args): Use
10233 ui_out_emit_tuple.
10234 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
10235 (mi_cmd_info_gdb_mi_command): Use ui_out_emit_tuple.
10236 * linux-thread-db.c (info_auto_load_libthread_db): Use
10237 ui_out_emit_tuple.
10238 * inferior.c (print_inferior): Use ui_out_emit_tuple.
10239 * gdb_bfd.c (print_one_bfd): Use ui_out_emit_tuple.
10240 * disasm.c (do_mixed_source_and_assembly_deprecated)
10241 (do_mixed_source_and_assembly): Use ui_out_emit_tuple.
10242 * cp-abi.c (list_cp_abis): Use ui_out_emit_tuple.
10243 * cli/cli-setshow.c (cmd_show_list): Use ui_out_emit_tuple.
10244 * breakpoint.c (print_one_breakpoint_location)
10245 (print_one_breakpoint): Use ui_out_emit_tuple.
10246 * auto-load.c (print_script, info_auto_load_cmd): Use
10247 ui_out_emit_tuple.
10248 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_tuple.
10249
9be21bb4
SM
102502017-04-21 Simon Marchi <simon.marchi@ericsson.com>
10251
10252 * thread.c (print_thread_info_1): Remove dead code.
10253
0d4c07af
JK
102542017-04-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10255
10256 * aarch64-tdep.c (selftests::aarch64_process_record_test): Make it #if
10257 GDB_SELF_TEST.
10258 * arm-tdep.c (selftests::arm_record_test): Likewise.
10259
4daf993d
YQ
102602017-04-21 Yao Qi <yao.qi@linaro.org>
10261
10262 * regcache.c (regcache_restore): Remove argument 2. Replace
10263 argument 3 with regcache. Get register status from
10264 src->register_status and get register contents from
10265 register_buffer (src, regnum).
10266 (regcache_cpy): Update.
10267
a6c21d4a
PA
102682017-04-19 Pedro Alves <palves@redhat.com>
10269
10270 * gdbthread.h (thread): Add missing closing parenthesis in
10271 comment.
10272
3a3fd0fd
PA
102732017-04-19 Pedro Alves <palves@redhat.com>
10274
10275 * common/refcounted-object.h: New file.
10276 * gdbthread.h: Include "common/refcounted-object.h".
10277 (thread_info): Inherit from refcounted_object and add comments.
10278 (thread_info::incref, thread_info::decref)
10279 (thread_info::m_refcount): Delete.
10280 (thread_info::deletable): Use the refcounted_object::refcount()
10281 method.
10282 * inferior.c (current_inferior_): Add comment.
10283 (set_current_inferior): Increment/decrement refcounts.
10284 (prune_inferiors, remove_inferior_command): Skip inferiors marked
10285 not-deletable instead of comparing with the current inferior.
10286 (initialize_inferiors): Increment the initial inferior's refcount.
10287 * inferior.h (struct inferior): Forward declare.
10288 Include "common/refcounted-object.h".
10289 (current_inferior, set_current_inferior): Move declaration to
10290 before struct inferior's definition, and fix comment.
10291 (inferior): Inherit from refcounted_object. Add comments.
10292 * thread.c (switch_to_thread_no_regs): Reference the thread's
10293 inferior pointer directly instead of doing a ptid lookup.
10294 (switch_to_no_thread): New function.
10295 (switch_to_thread(thread_info *)): New function, factored out
10296 from ...
10297 (switch_to_thread(ptid_t)): ... this.
10298 (restore_current_thread): Delete.
10299 (current_thread_cleanup): Remove 'inf_id' and 'was_removable'
10300 fields, and add 'inf' field.
10301 (do_restore_current_thread_cleanup): Check whether old->inf is
10302 alive instead of looking up an inferior by ptid. Use
10303 switch_to_thread and switch_to_no_thread.
10304 (restore_current_thread_cleanup_dtor): Use old->inf directly
10305 instead of lookup up an inferior by id. Decref the inferior.
10306 Don't restore 'removable'.
10307 (make_cleanup_restore_current_thread): Same the inferior pointer
10308 in old, instead of the inferior number. Incref the inferior.
10309 Don't save/clear 'removable'.
10310
9bcb1f16
PA
103112017-04-19 Pedro Alves <palves@redhat.com>
10312
10313 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10314 unittests/scoped_restore-selftests.c.
10315 (SUBDIR_UNITTESTS_OBS): Add scoped_restore-selftests.o.
10316 * common/scoped_restore.h (scoped_restore_base): Make "class".
10317 (scoped_restore_base::release): New public method.
10318 (scoped_restore_base::scoped_restore_base): New protected ctor.
10319 (scoped_restore_base::m_saved_var): New protected field.
10320 (scoped_restore_tmpl::scoped_restore_tmpl(T*)): Initialize the
10321 scoped_restore_base base class instead of m_saved_var directly.
10322 (scoped_restore_tmpl::scoped_restore_tmpl(T*, T2)): Likewise.
10323 (scoped_restore_tmpl::scoped_restore_tmpl(const
10324 scoped_restore_tmpl<T>&)): Likewise.
10325 (scoped_restore_tmpl::~scoped_restore_tmpl): Use the saved_var
10326 method.
10327 (scoped_restore_tmpl::saved_var): New method.
10328 (scoped_restore_tmpl::m_saved_var): Delete.
10329 * inferior.h (inferior::detaching): Now a bool.
10330 * infrun.c (prepare_for_detach): Use a scoped_restore instead of a
10331 cleanup.
10332 * unittests/scoped_restore-selftests.c: New file.
10333
26fcd539
PA
103342017-04-19 Pedro Alves <palves@redhat.com>
10335
10336 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS):
10337 Re-sort in alphabetic order.
10338
fdd243b0
PA
103392017-04-18 Pedro Alves <palves@redhat.com>
10340
10341 * xml-support.c (obstack_xml_printf): Delete.
10342 * xml-support.h (obstack_xml_printf): Delete.
10343
4895cde2
PA
103442017-04-18 Pedro Alves <palves@redhat.com>
10345
10346 * xml-support.c (gdb_xml_parser) <use_dtd, dtd_name, parse,
10347 vdebug, verror, body_text, start_element, end_element, name,
10348 user_data, set_is_xinclude, set_error, expat_parser>: New methods.
10349 <name, user_data, expat_parser, scopes, error, last_line, dtd_name,
10350 is_xinclude>: Make private and add m_ prefix.
10351 (gdb_xml_parser::body_text): New method, based on ...
10352 (gdb_xml_body_text): ... this. Adjust.
10353 (gdb_xml_parser::vdebug): New method, based on ...
10354 (gdb_xml_debug): ... this. Adjust.
10355 (gdb_xml_parser::verror): New method, based on ...
10356 (gdb_xml_error): ... this. Adjust.
10357 (gdb_xml_parser::start_element): New method, based on ...
10358 (gdb_xml_start_element): ... this. Adjust.
10359 (gdb_xml_start_element_wrapper): Defer to
10360 gdb_xml_parser::start_element and gdb_xml_parser::set_error.
10361 (gdb_xml_parser::end_element): New method, based on ...
10362 (gdb_xml_end_element_wrapper): ... this. Adjust.
10363 (gdb_xml_parser::~gdb_xml_parser): Adjust.
10364 (gdb_xml_parser::gdb_xml_parser): Adjust to field renames.
10365 (gdb_xml_parser::use_dtd): New method, based on ...
10366 (gdb_xml_use_dtd): ... this. Adjust.
10367 (gdb_xml_parser::parse): New method, based on ...
10368 (gdb_xml_parse): ... this. Adjust.
10369 (gdb_xml_parse_quick): Adjust to call the parser's parse method.
10370 (xinclude_start_include): Adjust to call the parser's name method.
10371 (xml_xinclude_default, xml_xinclude_start_doctype)
10372 (xml_xinclude_end_doctype): Adjust to call the parser's user_data
10373 method.
10374 (xml_process_xincludes): Adjust to call parser methods.
10375 * xml-support.h (gdb_xml_use_dtd, gdb_xml_parse): Delete
10376 declarations.
10377
bd8a901f
PA
103782017-04-18 Pedro Alves <palves@redhat.com>
10379
10380 * tracefile-tfile.c (tfile_write_tdesc): Adjust to use
10381 gdb::optional<std::string>.
10382 * xml-support.c: Include <string>.
10383 (scope_level::scope_level(scope_level &&))
10384 (scope_level::~scope_level): Delete.
10385 (scope_level::body): Now a std::string.
10386 (gdb_xml_body_text, gdb_xml_end_element): Adjust.
10387 (xinclude_parsing_data::xinclude_parsing_data): Add 'output'
10388 parameter.
10389 (xinclude_parsing_data::~xinclude_parsing_data): Delete.
10390 (xinclude_parsing_data::output): Now a std::string reference.
10391 (xinclude_start_include): Adjust.
10392 (xml_xinclude_default): Adjust.
10393 (xml_process_xincludes): Add 'output' parameter, and return bool.
10394 * xml-support.h (xml_process_xincludes): Add 'output' parameter,
10395 and return bool.
10396 * xml-tdesc.c: Include <unordered_map> and <string>.
10397 (tdesc_xml_cache): Delete.
10398 (tdesc_xml_cache_s): Delete.
10399 (xml_cache): Now an std::unordered_map.
10400 (tdesc_parse_xml): Adjust to use std::string and unordered_map.
10401 (target_fetch_description_xml): Change return type to
10402 gdb::optional<std::string>, and adjust.
10403 * xml-tdesc.h: Include "common/gdb_optional.h" and <string>.
10404 (target_fetch_description_xml): Change return type to
10405 gdb::optional<std::string>.
10406
d35d1958
PA
104072017-04-18 Pedro Alves <palves@redhat.com>
10408
10409 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10410 unittests/optional-selftests.c.
10411 (SUBDIR_UNITTESTS_OBS): Add optional-selftests.o.
10412 * unittests/optional-selftests.c: New file.
10413 * unittests/optional/assignment/1.cc: New file.
10414 * unittests/optional/assignment/2.cc: New file.
10415 * unittests/optional/assignment/3.cc: New file.
10416 * unittests/optional/assignment/4.cc: New file.
10417 * unittests/optional/assignment/5.cc: New file.
10418 * unittests/optional/assignment/6.cc: New file.
10419 * unittests/optional/assignment/7.cc: New file.
10420 * unittests/optional/cons/copy.cc: New file.
10421 * unittests/optional/cons/default.cc: New file.
10422 * unittests/optional/cons/move.cc: New file.
10423 * unittests/optional/cons/value.cc: New file.
10424 * unittests/optional/in_place.cc: New file.
10425 * unittests/optional/observers/1.cc: New file.
10426 * unittests/optional/observers/2.cc: New file.
10427
22796e97
PA
104282017-04-18 Pedro Alves <palves@redhat.com>
10429
10430 * common/gdb_optional.h: Include common/traits.h.
10431 (in_place_t): New type.
10432 (in_place): New constexpr variable.
10433 (optional::optional): Remove member initialization of
10434 m_instantiated.
10435 (optional::optional(in_place_t...)): New constructor.
10436 (optional::~optional): Use reset.
10437 (optional::optional(const optional&)): New.
10438 (optional::optional(const optional&&)): New.
10439 (optional::optional(T &)): New.
10440 (optional::optional(T &&)): New.
10441 (operator::operator=(const optional &)): New.
10442 (operator::operator=(optional &&)): New.
10443 (operator::operator= (const T &))
10444 (operator::operator= (T &&))
10445 (operator::emplace (Args &&... args)): Return a T&. Use reset.
10446 (operator::reset): New.
10447 (operator::m_instantiated):: Add in-class initializer.
10448 * common/traits.h: Include <type_traits>.
10449 (struct And): New types.
10450
a7fc9b61
PA
104512017-04-18 Pedro Alves <palves@redhat.com>
10452
10453 * xml-support.c: Include <vector>.
10454 (scope_level::scope_level(const gdb_xml_element *))
10455 (scope_level::scope_level(scope_level&&)): New.
10456 (scope_level::~scope_level): New.
10457 (scope_level_s): Delete.
10458 (gdb_xml_parser::scopes): Now a std::vector.
10459 (gdb_xml_body_text, gdb_xml_start_element, gdb_xml_end_element):
10460 Use std::vector.
10461 (gdb_xml_parser::~gdb_xml_parser): Remove now unnecessary
10462 scope cleanup code.
10463 (gdb_xml_parser::gdb_xml_parser): Remove explicit initialization
10464 of the scopes member. Use std::vector::emplace_back.
10465
010151c9
PA
104662017-04-18 Pedro Alves <palves@redhat.com>
10467
10468 * xml-support.c (gdb_xml_parser): Add ctor/dtor. Make is_xinclude
10469 a bool.
10470 (gdb_xml_end_element): Change type of first parameter.
10471 (gdb_xml_cleanup): Rename to ...
10472 (gdb_xml_parser::~gdb_xml_parser): ... this.
10473 (gdb_xml_create_parser_and_cleanup): Delete with ...
10474 (gdb_xml_parser::gdb_xml_parser): ... creation parts factored out
10475 to this new ctor.
10476 (gdb_xml_parse_quick): Create a local gdb_xml_parser instead of
10477 using gdb_xml_create_parser_and_cleanup.
10478 (xinclude_parsing_data): Add ctor/dtor.
10479 (xml_xinclude_cleanup): Delete.
10480 (xml_process_xincludes): Create a local xinclude_parsing_data
10481 instead of heap-allocating one. Create a local gdb_xml_parser
10482 instead of heap-allocating one with
10483 gdb_xml_create_parser_and_cleanup.
10484
d56060f0
JB
104852017-04-18 John Baldwin <jhb@FreeBSD.org>
10486
10487 PR threads/20743
10488 * fbsd-nat.c (resume_one_thread_cb): Remove.
10489 (resume_all_threads_cb): Remove.
10490 (fbsd_resume): Use ALL_NON_EXITED_THREADS instead of
10491 iterate_over_threads.
10492
305d16a9
JB
104932017-04-17 Joel Brobecker <brobecker@adacore.com>
10494
10495 * NEWS: Create a new section for the next release branch.
10496 Rename the section of the current branch, now that it has
10497 been cut.
10498
8bb57231
JB
104992017-04-17 Joel Brobecker <brobecker@adacore.com>
10500
10501 GDB 8.0 branch created (725bf5cf125783c2a7ca4ab63d3768e220bab2db):
10502 * version.in: Bump version to 8.0.50.DATE-git.
10503
096c92dd
SDJ
105042017-04-13 Sergio Durigan Junior <sergiodj@redhat.com>
10505
10506 PR gdb/21385
10507 * windows-nat.c (windows_create_inferior): Declare 'allargs'
10508 independently of the host, and fix build breakage on Cygwin.
10509
0550c955
PA
105102017-04-13 Pedro Alves <palves@redhat.com>
10511
10512 * inferior.c (free_inferior): Convert to ...
10513 (inferior::~inferior): ... this dtor.
10514 (inferior::inferior): New ctor, factored out from ...
10515 (add_inferior_silent): ... here. Allocate the inferior with a new
10516 expression.
10517 (delete_inferior): Call delete instead of free_inferior.
10518 * inferior.h (gdb_environ, continuation): Forward declare.
10519 (inferior): Now a class. Add in-class initialization to all
10520 members. Make boolean fields bool, except 'detaching'.
10521 (inferior::inferior): New explicit ctor.
10522 (inferior::~inferior): New.
10523
e3d60dfc
PA
105242017-04-13 Pedro Alves <palves@redhat.com>
10525
10526 * inferior.c (init_inferior_list): Delete.
10527 * inferior.h (init_inferior_list): Delete.
10528
5fd69d0a
PA
105292017-04-13 Pedro Alves <palves@redhat.com>
10530
10531 PR threads/13217
10532 * gdb.threads/threadapply.exp (thr_apply_detach): New procedure.
10533 (top level): Call it twice, with different thread sets.
10534
c6609450
PA
105352017-04-13 Pedro Alves <palves@redhat.com>
10536
10537 * thread.c: Include <algorithm>.
10538 (thread_array_cleanup): Delete.
10539 (scoped_inc_dec_ref): New class.
10540 (live_threads_count): New function.
10541 (set_thread_refcount): Delete.
10542 (tp_array_compar_ascending): Now a bool.
10543 (tp_array_compar): Convert to a std::sort comparison function.
10544 (thread_apply_all_command): Use std::vector and scoped_inc_dec_ref
10545 and live_threads_count.
10546
2a00d7ce
PA
105472017-04-13 Pedro Alves <palves@redhat.com>
10548
10549 * infrun.c (follow_fork_inferior): Also switch the current
10550 inferior.
10551
441d7c93
PA
105522017-04-13 Pedro Alves <palves@redhat.com>
10553
10554 * breakpoint.c (watch_command_1): Save watchpoint-frame info
10555 before calling create_internal_breakpoint.
10556
808480f6
PA
105572017-04-13 Pedro Alves <palves@redhat.com>
10558
10559 * fork-child.c (execv_argv): New class.
10560 (breakup_args): Refactored as ...
10561 (execv_argv::init_for_no_shell): .. this method of execv_argv.
10562 Copy arguments to storage and replace separators with NULL
10563 terminators in place.
10564 (escape_bang_in_quoted_argument): Adjust to return bool.
10565 (execv_argv::execv_argv): New ctor.
10566 (execv_argv::init_for_shell): New method, factored out from
10567 fork_inferior. Don't strdup strings into the vector.
10568 (fork_inferior): Eliminate "shell" local and use execv_argv. Use
10569 Remove free_vector_argv call.
10570
ad3d022a
YQ
105712017-04-13 Yao Qi <yao.qi@linaro.org>
10572
10573 * rx-tdep.c (rx_fpsw_type): Check tdep->rx_fpsw_type instead of
10574 tdep->rx_psw_type.
10575
e6ddc3bf
YQ
105762017-04-13 Yao Qi <yao.qi@linaro.org>
10577
10578 * rl78-tdep.c (rl78_gdbarch_init): Use XCNEW instead of XNEW.
10579 * rx-tdep.c (rx_gdbarch_init): Likewise.
10580
bfb8cf90
PA
105812017-04-13 Pedro Alves <palves@redhat.com>
10582
10583 * breakpoint.h (struct breakpoint): Reindent.
10584
f5336ca5
PA
105852017-04-13 Pedro Alves <palves@redhat.com>
10586
10587 * breakpoint.c (bp_location): Rename to ...
10588 (bp_locations): ... this. All references updated.
10589 (bp_location_count): Rename to ...
10590 (bp_locations_count): ... this. All references updated.
10591 (bp_location_placed_address_before_address_max): Rename to ...
10592 (bp_locations_placed_address_before_address_max): ... this. All
10593 references updated.
10594 (bp_location_shadow_len_after_address_max): Rename to ...
10595 (bp_locations_shadow_len_after_address_max): ... this. All
10596 references updated.
10597 (bp_location_compare_addrs): Rename to ...
10598 (bp_locations_compare_addrs): ... this. All references updated.
10599 (bp_location_compare):Rename to ...
10600 (bp_locations_compare): ... this. All references updated.
10601 (bp_location_target_extensions_update): Rename to ...
10602 (bp_locations_target_extensions_update): ... this. All references
10603 updated.
10604
be628ab8
SDJ
106052017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
10606
10607 * Makefile.in (HFILES_NO_SRCDIR): Add "common/gdb_termios.h".
10608 * common/common.m4: Check headers 'termios.h', 'termio.h' and
10609 'sgtty.h'.
10610 * common/gdb_termios.h: New file, with parts of "terminal.h".
10611 * inflow.c: Include "gdb_termios.h".
10612 * ser-unix.c: Include "gdb_termios.h".
10613 * terminal.h: Move terminal-related defines to
10614 "common/gdb_termios.h".
10615
8e9e35b1
TT
106162017-04-12 Tom Tromey <tom@tromey.com>
10617
10618 * probe.c (parse_probes): Update.
10619 * location.h (delete_event_location): Don't declare.
10620 (event_location_deleter::operator()): Update.
10621 * location.c (event_location_deleter::operator()): Rename from
10622 delete_event_location.
10623 * linespec.h (linespec_result) <location>: Change type to
10624 event_location_up.
10625 * linespec.c (canonicalize_linespec, event_location_to_sals)
10626 (decode_objc): Update.
10627 (linespec_result): Don't call delete_event_location.
10628 * breakpoint.c (create_breakpoints_sal)
10629 (bkpt_probe_create_sals_from_location)
10630 (strace_marker_create_sals_from_location): Update.
10631
16e802b9
TT
106322017-04-12 Tom Tromey <tom@tromey.com>
10633
10634 * linespec.h (struct linespec_result): Add constructor and
10635 destructor.
10636 (init_linespec_result, destroy_linespec_result)
10637 (make_cleanup_destroy_linespec_result): Don't declare.
10638 * linespec.c (init_linespec_result): Remove.
10639 (linespec_result::~linespec_result): Rename from
10640 destroy_linespec_result. Update.
10641 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
10642 Remove.
10643 * breakpoint.c (create_breakpoint, break_range_command)
10644 (decode_location_default): Update.
10645 * ax-gdb.c (agent_command_1): Update.
10646
d28cd78a
TT
106472017-04-12 Tom Tromey <tom@tromey.com>
10648
10649 * remote.c (remote_download_tracepoint): Update.
10650 * python/py-breakpoint.c (bppy_get_location): Update.
10651 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob)
10652 (gdbscm_breakpoint_location): Update.
10653 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Update.
10654 * breakpoint.h (struct breakpoint) <location, location_range_end>:
10655 Change type to event_location_up.
10656 * breakpoint.c (create_overlay_event_breakpoint)
10657 (create_longjmp_master_breakpoint)
10658 (create_std_terminate_master_breakpoint)
10659 (create_exception_master_breakpoint)
10660 (breakpoint_event_location_empty_p, print_breakpoint_location)
10661 (print_one_breakpoint_location, create_thread_event_breakpoint)
10662 (init_breakpoint_sal, create_breakpoint)
10663 (print_recreate_ranged_breakpoint, break_range_command)
10664 (init_ada_exception_breakpoint, say_where): Update.
10665 (base_breakpoint_dtor): Don't call delete_event_location.
10666 (bkpt_print_recreate, tracepoint_print_recreate)
10667 (dprintf_print_recreate, update_static_tracepoint)
10668 (breakpoint_re_set_default): Update.
10669
711799d5
TT
106702017-04-12 Tom Tromey <tom@tromey.com>
10671
10672 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
10673 type of "to_do". Update.
10674 (compute_stack_depth): Use std::vector.
10675
52d214d3
TT
106762017-04-12 Tom Tromey <tom@tromey.com>
10677
10678 * printcmd.c (find_instruction_backward): Use std::vector.
10679
4c404b8b
TT
106802017-04-12 Tom Tromey <tom@tromey.com>
10681
10682 * symfile.c (objfilep): Remove typedef.
10683 (reread_symbols): Use a std::vector.
10684
156d9eab
TT
106852017-04-12 Tom Tromey <tom@tromey.com>
10686
10687 * mi/mi-main.c (exec_direction_forward): Remove.
10688 (exec_reverse_continue, mi_execute_command): Use scoped_restore.
10689 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
10690 scoped_restore.
10691 * guile/guile.c (guile_repl_command, guile_command)
10692 (gdbscm_execute_gdb_command): Use scoped_restore.
10693 * go-exp.y (go_parse): Use scoped_restore.
10694 * d-exp.y (d_parse): Use scoped_restore.
10695 * cli/cli-decode.c (cmd_func): Use scoped_restore.
10696 * c-exp.y (c_parse): Use scoped_restore.
10697
4d89769a
TT
106982017-04-12 Tom Tromey <tom@tromey.com>
10699
10700 * mi/mi-parse.h (struct mi_parse): Add constructor, destructor.
10701 (mi_parse): Update return type.
10702 (mi_parse_free): Remove.
10703 * mi/mi-parse.c (mi_parse::mi_parse): New constructor.
10704 (mi_parse::~mi_parse): Rename from mi_parse_free.
10705 (mi_parse_cleanup): Remove.
10706 (mi_parse): Return a unique_ptr. Use new.
10707 * mi/mi-main.c (mi_execute_command): Update.
10708
4b217cc7
TT
107092017-04-12 Tom Tromey <tom@tromey.com>
10710
10711 * location.c (explicit_location_lex_one): Return a
10712 unique_xmalloc_ptr.
10713 (string_to_explicit_location): Update. Remove cleanups.
10714
59d3651b
TT
107152017-04-12 Tom Tromey <tom@tromey.com>
10716
10717 * gnu-v3-abi.c (value_and_voffset_p): Remove typedef.
10718 (compare_value_and_voffset): Change type. Update.
10719 (compute_vtable_size): Change type of "offset_vec".
10720 (gnuv3_print_vtable): Use std::vector. Remove cleanups.
10721 (gnuv3_get_typeid): Remove extraneous declaration.
10722
b24b0d6c
TT
107232017-04-12 Tom Tromey <tom@tromey.com>
10724
10725 * charset.h (wchar_iterator): Fix comment.
10726
80a3b8c5
TT
107272017-04-12 Tom Tromey <tom@tromey.com>
10728
10729 * charset.c (iconv_wrapper): New class.
10730 (cleanup_iconv): Remove.
10731 (convert_between_encodings): Use it.
10732
c83dd867
TT
107332017-04-12 Tom Tromey <tom@tromey.com>
10734
10735 * symfile.h (increment_reading_symtab): Update type.
10736 * symfile.c (decrement_reading_symtab): Remove.
10737 (increment_reading_symtab): Return a scoped_restore_tmpl<int>.
10738 * psymtab.c (psymtab_to_symtab): Update.
10739 * dwarf2read.c (dw2_instantiate_symtab): Update.
10740
0e8621a0
TT
107412017-04-12 Tom Tromey <tom@tromey.com>
10742
10743 * jit.c (struct jit_reader): Declare separately. Add constructor
10744 and destructor. Change type of "handle".
10745 (loaded_jit_reader): Define separately.
10746 (jit_reader_load): Update. New "new".
10747 (jit_reader_unload_command): Use "delete".
10748 * gdb-dlfcn.h (struct dlclose_deleter): New.
10749 (gdb_dlhandle_up): New typedef.
10750 (gdb_dlopen, gdb_dlsym): Update types.
10751 (gdb_dlclose): Remove.
10752 * gdb-dlfcn.c (gdb_dlopen): Return a gdb_dlhandle_up.
10753 (gdb_dlsym): Change type of "handle".
10754 (make_cleanup_dlclose): Remove.
10755 (dlclose_deleter::operator()): Rename from gdb_dlclose.
10756 * compile/compile-c-support.c (load_libcc): Update.
10757
67d89901
TT
107582017-04-12 Tom Tromey <tom@tromey.com>
10759
10760 * symtab.h (find_pcs_for_symtab_line): Change return type.
10761 * symtab.c (find_pcs_for_symtab_line): Change return type.
10762 * python/py-linetable.c (build_line_table_tuple_from_pcs): Change
10763 type of "vec". Update.
10764 (ltpy_get_pcs_for_line): Update.
10765 * linespec.c (decode_digits_ordinary): Update.
10766
93921405
TT
107672017-04-12 Tom Tromey <tom@tromey.com>
10768
10769 * tracepoint.c (actions_command): Update.
10770 * python/python.c (python_command, python_interactive_command):
10771 Update.
10772 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
10773 * guile/guile.c (guile_command): Update.
10774 * defs.h (read_command_lines, read_command_lines_1): Return
10775 command_line_up.
10776 (command_lines_deleter): New struct.
10777 (command_line_up): New typedef.
10778 * compile/compile.c (compile_code_command)
10779 (compile_print_command): Update.
10780 * cli/cli-script.h (get_command_line, copy_command_lines): Return
10781 command_line_up.
10782 (make_cleanup_free_command_lines): Remove.
10783 * cli/cli-script.c (get_command_line, read_command_lines_1)
10784 (copy_command_lines): Return command_line_up.
10785 (while_command, if_command, read_command_lines, define_command)
10786 (document_command): Update.
10787 (do_free_command_lines_cleanup, make_cleanup_free_command_lines):
10788 Remove.
10789 * breakpoint.h (breakpoint_set_commands): Change type of
10790 "commands".
10791 * breakpoint.c (breakpoint_set_commands): Change type of
10792 "commands". Update.
10793 (do_map_commands_command, update_dprintf_command_list)
10794 (create_tracepoint_from_upload): Update.
10795
ffc2605c
TT
107962017-04-12 Tom Tromey <tom@tromey.com>
10797
10798 * tracepoint.c (scope_info): Update.
10799 * spu-tdep.c (spu_catch_start): Update.
10800 * python/python.c (gdbpy_decode_line): Update.
10801 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
10802 * python/py-breakpoint.c (bppy_init): Update.
10803 * probe.c (parse_probes): Update.
10804 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
10805 * location.h (event_location_deleter): New struct.
10806 (event_location_up): New typedef.
10807 (new_linespec_location, new_address_location, new_probe_location)
10808 (new_explicit_location, copy_event_location)
10809 (string_to_event_location, string_to_event_location_basic)
10810 (string_to_explicit_location): Update return type.
10811 (make_cleanup_delete_event_location): Remove.
10812 * location.c (new_linespec_location, new_address_location)
10813 (new_probe_location, new_explicit_location, copy_event_location):
10814 Return event_location_up.
10815 (delete_event_location_cleanup)
10816 (make_cleanup_delete_event_location): Remove.
10817 (string_to_explicit_location, string_to_event_location_basic)
10818 (string_to_event_location): Return event_location_up.
10819 * linespec.c (canonicalize_linespec, event_location_to_sals)
10820 (decode_line_with_current_source)
10821 (decode_line_with_last_displayed, decode_objc): Update.
10822 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
10823 * completer.c (location_completer): Update.
10824 * cli/cli-cmds.c (edit_command, list_command): Update.
10825 * breakpoint.c (create_overlay_event_breakpoint)
10826 (create_longjmp_master_breakpoint)
10827 (create_std_terminate_master_breakpoint)
10828 (create_exception_master_breakpoint)
10829 (create_thread_event_breakpoint): Update.
10830 (init_breakpoint_sal): Update. Remove some dead code.
10831 (create_breakpoint_sal): Change type of "location". Update.
10832 (create_breakpoints_sal, create_breakpoint, break_command_1)
10833 (dprintf_command, break_range_command, until_break_command)
10834 (init_ada_exception_breakpoint)
10835 (strace_marker_create_sals_from_location)
10836 (update_static_tracepoint, trace_command, ftrace_command)
10837 (strace_command, create_tracepoint_from_upload): Update.
10838 * break-catch-throw.c (re_set_exception_catchpoint): Update.
10839 * ax-gdb.c (agent_command_1): Update.
10840
8f10c932
PA
108412017-04-12 Pedro Alves <palves@redhat.com>
10842
10843 * Makefile.in (ALL_TARGET_OBS): Add i386-go32-tdep.o.
10844 * configure.tgt: Handle i[34567]86-*-go32* and
10845 i[34567]86-*-msdosdjgpp*.
10846 * i386-tdep.c (i386_svr4_reg_to_regnum):
10847 Make extern.
10848 (i386_go32_init_abi, i386_coff_osabi_sniffer): Moved to
10849 i386-go32-tdep.c.
10850 (_initialize_i386_tdep): DJGPP bits moved to i386-go32-tdep.c.
10851 * i386-go32-tdep.c: New file.
10852 * i386-tdep.h (tdesc_i386_mmx, i386_svr4_reg_to_regnum): New
10853 declarations.
10854
0a31ccfb
SM
108552017-04-12 Simon Marchi <simon.marchi@ericsson.com>
10856
10857 * aix-thread.c (pd_status2str): Change return type to const char *.
10858
e9bb3fbb
PA
108592017-04-12 Pedro Alves <palves@redhat.com>
10860
10861 * i386-tdep.c (i386_elf_init_abi, i386_go32_init_abi): Remove
10862 calls to set_gdbarch_gnu_triplet_regexp.
10863
53375380
PA
108642017-04-12 Pedro Alves <palves@redhat.com>
10865
10866 PR gdb/21323
10867 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_wchar_t>:
10868 New enum value.
10869 (cplus_language_arch_info): Register cplus_primitive_type_wchar_t.
10870 * gdbtypes.h (struct builtin_type) <builtin_wchar>: New field.
10871 * gdbtypes.c (gdbtypes_post_init): Create the "wchar_t" type.
10872 * gdbarch.sh (wchar_bit, wchar_signed): New per-arch values.
10873 * gdbarch.h, gdbarch.c: Regenerate.
10874 * aarch64-tdep.c (aarch64_gdbarch_init): Override
10875 gdbarch_wchar_bit and gdbarch_wchar_signed.
10876 * alpha-tdep.c (alpha_gdbarch_init): Likewise.
10877 * arm-tdep.c (arm_gdbarch_init): Likewise.
10878 * avr-tdep.c (avr_gdbarch_init): Likewise.
10879 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
10880 * i386-nto-tdep.c (i386nto_init_abi): Likewise.
10881 * i386-tdep.c (i386_go32_init_abi): Likewise.
10882 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
10883 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
10884 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
10885 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
10886 * sh-tdep.c (sh_gdbarch_init): Likewise.
10887 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
10888 * sparc64-tdep.c (sparc64_init_abi): Likewise.
10889 * windows-tdep.c (windows_init_abi): Likewise.
10890 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
10891
53e710ac
PA
108922017-04-12 Pedro Alves <palves@redhat.com>
10893
10894 PR c++/21323
10895 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_char16_t,
10896 cplus_primitive_type_char32_t>: New enum values.
10897 (cplus_language_arch_info): Register cplus_primitive_type_char16_t
10898 and cplus_primitive_type_char32_t.
10899 * dwarf2read.c (read_base_type) <DW_ATE_UTF>: If bit size is 16 or
10900 32, use the archtecture's built-in type for char16_t and char32_t,
10901 respectively. Otherwise, fallback to init_integer_type as before,
10902 but make the type unsigned, and issue a complaint.
10903 * gdbtypes.c (gdbtypes_post_init): Make char16_t and char32_t unsigned.
10904
ab0538b8
AH
109052017-04-12 Alan Hayward <alan.hayward@arm.com>
10906
5e0e0422 10907 * m32r-tdep.c (M32R_ARG_REGISTER_SIZE): Added.
ab0538b8
AH
10908 (m32r_push_dummy_call): Use M32R_ARG_REGISTER_SIZE.
10909
5430098f
SDJ
109102017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
10911
10912 * windows-nat.c (windows_create_inferior): Declare 'toexec' as
10913 'const char *'.
10914
7c5ded6a
SDJ
109152017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
10916
10917 * common/common-utils.c (free_vector_argv): New function.
10918 * common/common-utils.h: Include <vector>.
10919 (free_vector_argv): New prototype.
10920 * darwin-nat.c (darwin_create_inferior): Rewrite function
10921 prototype in order to constify "exec_file" and accept a
10922 "std::string" for "allargs".
10923 * fork-child.c: Include <vector>.
10924 (breakup_args): Rewrite function, using C++.
10925 (fork_inferior): Rewrite function header, constify "exec_file_arg"
10926 and accept "std::string" for "allargs". Update the code to
10927 calculate "argv" based on "allargs". Update calls to "exec_fun"
10928 and "execvp".
10929 * gnu-nat.c (gnu_create_inferior): Rewrite function prototype in
10930 order to constify "exec_file" and accept a "std::string" for
10931 "allargs".
10932 * go32-nat.c (go32_create_inferior): Likewise.
10933 * inf-ptrace.c (inf_ptrace_create_inferior): Likewise.
10934 * infcmd.c (run_command_1): Constify "exec_file". Use
10935 "std::string" for inferior arguments.
10936 * inferior.h (fork_inferior): Update prototype.
10937 * linux-nat.c (linux_nat_create_inferior): Rewrite function
10938 prototype in order to constify "exec_file" and accept a
10939 "std::string" for "allargs".
10940 * nto-procfs.c (procfs_create_inferior): Likewise.
10941 * procfs.c (procfs_create_inferior): Likewise.
10942 * remote-sim.c (gdbsim_create_inferior): Likewise.
10943 * remote.c (extended_remote_run): Update code to accept
10944 "std::string" as argument.
10945 (extended_remote_create_inferior): Rewrite function prototype in
10946 order to constify "exec_file" and accept a "std::string" for
10947 "allargs".
10948 * rs6000-nat.c (super_create_inferior): Likewise.
10949 (rs6000_create_inferior): Likewise.
10950 * target.h (struct target_ops) <to_create_inferior>: Likewise.
10951 * windows-nat.c (windows_create_inferior): Likewise.
10952
ae0eee42
PA
109532017-04-11 Pedro Alves <palves@redhat.com>
10954
10955 * thread.c: Fix whitespace throughout.
10956
a6acac06
PR
109572017-04-11 Philipp Rudo <prudo@linux.vnet.ibm.com>
10958
10959 * linux-nat.c (linux_nat_detach): Remove delete_lwp call.
10960
64403bd1
AH
109612017-04-11 Alan Hayward <alan.hayward@arm.com>
10962
10963 * arm-tdep.c (arm_store_return_value): Use FP_REGISTER_SIZE
10964
a5bef50f
SDJ
109652017-04-10 Sergio Durigan Junior <sergiodj@redhat.com>
10966
10967 PR gdb/21364
10968 * osdata.c (info_osdata): Check if 'type' is an empty string
10969 instead of NULL.
10970
9295a5a9
PA
109712017-04-10 Pedro Alves <palves@redhat.com>
10972
10973 * thread.c (add_thread_silent, delete_thread_1, find_thread_ptid)
10974 (ptid_to_global_thread_id, in_thread_list)
10975 (do_captured_list_thread_ids, set_resumed, set_running)
10976 (set_executing, set_stop_requested, finish_thread_state)
10977 (validate_registers_access, can_access_registers_ptid)
10978 (print_thread_info_1, switch_to_thread)
10979 (do_restore_current_thread_cleanup)
10980 (make_cleanup_restore_current_thread, thread_command)
10981 (thread_name_command): Use operator== instead of ptid_equal.
10982
996812e3
PA
109832017-04-10 Pedro Alves <palves@redhat.com>
10984
10985 * thread.c (struct current_thread_cleanup) <next>: Delete field.
10986 (current_thread_cleanup_chain): Delete.
10987 (restore_current_thread_cleanup_dtor)
10988 (make_cleanup_restore_current_thread): Remove references to
10989 current_thread_cleanup_chain.
10990
845b344f
AH
109912017-04-10 Alan Hayward <alan.hayward@arm.com>
10992
10993 * msp430-tdep.c (msp430_pseudo_register_read): Never return
10994 REG_UNKNOWN.
10995
803bdfe4
YQ
109962017-04-10 Yao Qi <yao.qi@linaro.org>
10997
10998 PR gdb/19942
10999 * gdbthread.h (thread_info::deletable): New method.
11000 (thread_info::incref): New method.
11001 (thread_info::decref): New method.
11002 (thread_info::refcount): Move it to private.
11003 * infrun.c (save_stop_context): Call inc_refcount.
11004 (release_stop_context_cleanup): Likewise.
11005 * thread.c (set_thread_exited): New function.
11006 (init_thread_list): Delete "tp" only it is deletable, otherwise
11007 call set_thread_exited.
11008 (delete_thread_1): Call set_thread_exited.
11009 (current_thread_cleanup) <inferior_pid>: Remove.
11010 <thread>: New field.
11011 (restore_current_thread_ptid_changed): Removed.
11012 (do_restore_current_thread_cleanup): Adjust.
11013 (restore_current_thread_cleanup_dtor): Don't call
11014 find_thread_ptid.
11015 (set_thread_refcount): Use dec_refcount.
11016 (make_cleanup_restore_current_thread): Adjust.
11017 (thread_apply_all_command): Call inc_refcount.
11018 (_initialize_thread): Don't call
11019 observer_attach_thread_ptid_changed.
11020
8c25b497
YQ
110212017-04-10 Yao Qi <yao.qi@linaro.org>
11022
11023 * thread.c (delete_thread_1): Hoist code on marking thread as
11024 exited.
11025
8473b447
SM
110262017-04-09 Simon Marchi <simon.marchi@polymtl.ca>
11027
11028 * windows-nat.c (windows_detach): Initialize ptid with
11029 minus_one_ptid.
11030
6670ec13
SM
110312017-04-07 Simon Marchi <simon.marchi@ericsson.com>
11032
11033 * unittests/ptid-selftests.c: Fix erroneous assert messages.
11034
ba2f91bb
AH
110352017-04-07 Alan Hayward <alan.hayward@arm.com>
11036
11037 * bfin-tdep.c (BFIN_MAX_REGISTER_SIZE): Add.
11038 (bfin_pseudo_register_read): Use BFIN_MAX_REGISTER_SIZE.
11039 (bfin_pseudo_register_write): Likewise
11040
436252de
SM
110412017-04-06 Simon Marchi <simon.marchi@ericsson.com>
11042
11043 * common/ptid.h (struct ptid): Change to...
11044 (class ptid_t): ... this.
11045 <ptid_t>: New constructors.
11046 <pid, lwp_p, lwp, tid_p, tid, is_pid, operator==, operator!=,
11047 matches>: New methods.
11048 <make_null, make_minus_one>: New static methods.
11049 <pid>: Rename to...
11050 <m_pid>: ...this.
11051 <lwp>: Rename to...
11052 <m_lwp>: ...this.
11053 <tid>: Rename to...
11054 <m_tid>: ...this.
11055 (ptid_build, ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
11056 ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match): Take ptid arguments
11057 as references, move comment to class ptid_t.
11058 * common/ptid.c (null_ptid, minus_one_ptid): Initialize with
11059 ptid_t static methods.
11060 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_tid,
11061 ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match):
11062 Take ptid arguments as references, implement using ptid_t methods.
11063 * unittests/ptid-selftests.c: New file.
11064 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11065 unittests/ptid-selftests.c.
11066 (SUBDIR_UNITTESTS_OBS): Add unittests/ptid-selftests.o.
11067
0dedf377
TP
110682017-04-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
11069
11070 * python/python.c (python_run_simple_file): Cast mode literal to
11071 non-const char pointer as expected by PyFile_FromString.
11072
4e9868d4
SM
110732017-04-05 Simon Marchi <simon.marchi@ericsson.com>
11074
11075 * common/ptid.c (ptid_lwp_p, ptid_tid_p): Remove comparison with
11076 minus_one_ptid and null_ptid.
11077
9bf2a700
PA
110782017-04-05 Pedro Alves <palves@redhat.com>
11079
11080 * warning.m4 (build_warnings): Remove -Wno-write-strings.
11081 * configure: Regenerate.
11082
a121b7c1
PA
110832017-04-05 Pedro Alves <palves@redhat.com>
11084
11085 * ada-exp.y (yyerror): Constify.
11086 * ada-lang.c (bound_name, get_selections)
11087 (ada_variant_discrim_type)
11088 (ada_variant_discrim_name, ada_value_struct_elt)
11089 (ada_lookup_struct_elt_type, is_unchecked_variant)
11090 (ada_which_variant_applies, standard_exc, ada_get_next_arg)
11091 (catch_ada_exception_command_split)
11092 (catch_ada_assert_command_split, catch_assert_command)
11093 (ada_op_name): Constify.
11094 * ada-lang.h (ada_yyerror, get_selections)
11095 (ada_variant_discrim_name, ada_value_struct_elt): Constify.
11096 * arc-tdep.c (arc_print_frame_cache): Constify.
11097 * arm-tdep.c (arm_skip_stub): Constify.
11098 * ax-gdb.c (gen_binop, gen_struct_ref_recursive, gen_struct_ref)
11099 (gen_aggregate_elt_ref): Constify.
11100 * bcache.c (print_bcache_statistics): Constify.
11101 * bcache.h (print_bcache_statistics): Constify.
11102 * break-catch-throw.c (catch_exception_command_1):
11103 * breakpoint.c (struct ep_type_description::description):
11104 Constify.
11105 (add_solib_catchpoint): Constify.
11106 (catch_fork_command_1): Add cast.
11107 (add_catch_command): Constify.
11108 * breakpoint.h (add_catch_command, add_solib_catchpoint):
11109 Constify.
11110 * bsd-uthread.c (bsd_uthread_state): Constify.
11111 * buildsym.c (patch_subfile_names): Constify.
11112 * buildsym.h (next_symbol_text_func, patch_subfile_names):
11113 Constify.
11114 * c-exp.y (yyerror): Constify.
11115 (token::oper): Constify.
11116 * c-lang.h (c_yyerror, cp_print_class_member): Constify.
11117 * c-varobj.c (cplus_describe_child): Constify.
11118 * charset.c (find_charset_names): Add cast.
11119 (find_charset_names): Constify array and add const_cast.
11120 * cli/cli-cmds.c (complete_command, cd_command): Constify.
11121 (edit_command): Constify.
11122 * cli/cli-decode.c (lookup_cmd): Constify.
11123 * cli/cli-dump.c (dump_memory_command, dump_value_command):
11124 Constify.
11125 (struct dump_context): Constify.
11126 (add_dump_command, restore_command): Constify.
11127 * cli/cli-script.c (get_command_line): Constify.
11128 * cli/cli-script.h (get_command_line): Constify.
11129 * cli/cli-utils.c (check_for_argument): Constify.
11130 * cli/cli-utils.h (check_for_argument): Constify.
11131 * coff-pe-read.c (struct read_pe_section_data): Constify.
11132 * command.h (lookup_cmd): Constify.
11133 * common/print-utils.c (decimal2str): Constify.
11134 * completer.c (gdb_print_filename): Constify.
11135 * corefile.c (set_gnutarget): Constify.
11136 * cp-name-parser.y (yyerror): Constify.
11137 * cp-valprint.c (cp_print_class_member): Constify.
11138 * cris-tdep.c (cris_register_name, crisv32_register_name):
11139 Constify.
11140 * d-exp.y (yyerror): Constify.
11141 (struct token::oper): Constify.
11142 * d-lang.h (d_yyerror): Constify.
11143 * dbxread.c (struct header_file_location::name): Constify.
11144 (add_old_header_file, add_new_header_file, last_function_name)
11145 (dbx_next_symbol_text, add_bincl_to_list)
11146 (find_corresponding_bincl_psymtab, set_namestring)
11147 (find_stab_function_addr, read_dbx_symtab, start_psymtab)
11148 (dbx_end_psymtab, read_ofile_symtab, process_one_symbol):
11149 * defs.h (command_line_input, print_address_symbolic)
11150 (deprecated_readline_begin_hook): Constify.
11151 * dwarf2read.c (anonymous_struct_prefix, dwarf_bool_name):
11152 Constify.
11153 * event-top.c (handle_line_of_input): Constify and add cast.
11154 * exceptions.c (catch_errors): Constify.
11155 * exceptions.h (catch_errors): Constify.
11156 * expprint.c (print_subexp_standard, op_string, op_name)
11157 (op_name_standard, dump_raw_expression, dump_raw_expression):
11158 * expression.h (op_name, op_string, dump_raw_expression):
11159 Constify.
11160 * f-exp.y (yyerror): Constify.
11161 (struct token::oper): Constify.
11162 (struct f77_boolean_val::name): Constify.
11163 * f-lang.c (f_word_break_characters): Constify.
11164 * f-lang.h (f_yyerror): Constify.
11165 * fork-child.c (fork_inferior): Add cast.
11166 * frv-tdep.c (struct gdbarch_tdep::register_names): Constify.
11167 (new_variant): Constify.
11168 * gdbarch.sh (pstring_ptr, pstring_list): Constify.
11169 * gdbarch.c: Regenerate.
11170 * gdbcore.h (set_gnutarget): Constify.
11171 * go-exp.y (yyerror): Constify.
11172 (token::oper): Constify.
11173 * go-lang.h (go_yyerror): Constify.
11174 * go32-nat.c (go32_sysinfo): Constify.
11175 * guile/scm-breakpoint.c (gdbscm_breakpoint_expression): Constify.
11176 * guile/scm-cmd.c (cmdscm_function): Constify.
11177 * guile/scm-param.c (pascm_param_value): Constify.
11178 * h8300-tdep.c (h8300_register_name, h8300s_register_name)
11179 (h8300sx_register_name): Constify.
11180 * hppa-tdep.c (hppa32_register_name, hppa64_register_name):
11181 Constify.
11182 * ia64-tdep.c (ia64_register_names): Constify.
11183 * infcmd.c (construct_inferior_arguments): Constify.
11184 (path_command, attach_post_wait): Constify.
11185 * language.c (show_range_command, show_case_command)
11186 (unk_lang_error): Constify.
11187 * language.h (language_defn::la_error)
11188 (language_defn::la_name_of_this): Constify.
11189 * linespec.c (decode_line_2): Constify.
11190 * linux-thread-db.c (thread_db_err_str): Constify.
11191 * lm32-tdep.c (lm32_register_name): Constify.
11192 * m2-exp.y (yyerror): Constify.
11193 * m2-lang.h (m2_yyerror): Constify.
11194 * m32r-tdep.c (m32r_register_names): Constify and make static.
11195 * m68hc11-tdep.c (m68hc11_register_names): Constify.
11196 * m88k-tdep.c (m88k_register_name): Constify.
11197 * macroexp.c (appendmem): Constify.
11198 * mdebugread.c (fdr_name, add_data_symbol, parse_type)
11199 (upgrade_type, parse_external, parse_partial_symbols)
11200 (mdebug_next_symbol_text, cross_ref, mylookup_symbol, new_psymtab)
11201 (new_symbol): Constify.
11202 * memattr.c (mem_info_command): Constify.
11203 * mep-tdep.c (register_name_from_keyword): Constify.
11204 * mi/mi-cmd-env.c (mi_cmd_env_path, _initialize_mi_cmd_env):
11205 Constify.
11206 * mi/mi-cmd-stack.c (list_args_or_locals): Constify.
11207 * mi/mi-cmd-var.c (mi_cmd_var_show_attributes): Constify.
11208 * mi/mi-main.c (captured_mi_execute_command): Constify and add
11209 cast.
11210 (mi_execute_async_cli_command): Constify.
11211 * mips-tdep.c (mips_register_name): Constify.
11212 * mn10300-tdep.c (register_name, mn10300_generic_register_name)
11213 (am33_register_name, am33_2_register_name)
11214 * moxie-tdep.c (moxie_register_names): Constify.
11215 * nat/linux-osdata.c (osdata_type): Constify fields.
11216 * nto-tdep.c (nto_parse_redirection): Constify.
11217 * objc-lang.c (lookup_struct_typedef, lookup_objc_class)
11218 (lookup_child_selector): Constify.
11219 (objc_methcall::name): Constify.
11220 * objc-lang.h (lookup_objc_class, lookup_child_selector)
11221 (lookup_struct_typedef): Constify.
11222 * objfiles.c (pc_in_section): Constify.
11223 * objfiles.h (pc_in_section): Constify.
11224 * p-exp.y (struct token::oper): Constify.
11225 (yyerror): Constify.
11226 * p-lang.h (pascal_yyerror): Constify.
11227 * parser-defs.h (op_name_standard): Constify.
11228 (op_print::string): Constify.
11229 (exp_descriptor::op_name): Constify.
11230 * printcmd.c (print_address_symbolic): Constify.
11231 * psymtab.c (print_partial_symbols): Constify.
11232 * python/py-breakpoint.c (stop_func): Constify.
11233 (bppy_get_expression): Constify.
11234 * python/py-cmd.c (cmdpy_completer::name): Constify.
11235 (cmdpy_function): Constify.
11236 * python/py-event.c (evpy_add_attribute)
11237 (gdbpy_initialize_event_generic): Constify.
11238 * python/py-event.h (evpy_add_attribute)
11239 (gdbpy_initialize_event_generic): Constify.
11240 * python/py-evts.c (add_new_registry): Constify.
11241 * python/py-finishbreakpoint.c (outofscope_func): Constify.
11242 * python/py-framefilter.c (get_py_iter_from_func): Constify.
11243 * python/py-inferior.c (get_buffer): Add cast.
11244 * python/py-param.c (parm_constant::name): Constify.
11245 * python/py-unwind.c (fprint_frame_id): Constify.
11246 * python/python.c (gdbpy_parameter_value): Constify.
11247 * remote-fileio.c (remote_fio_func_map): Make 'name' const.
11248 * remote.c (memory_packet_config::name): Constify.
11249 (show_packet_config_cmd, remote_write_bytes)
11250 (remote_buffer_add_string):
11251 * reverse.c (exec_reverse_once): Constify.
11252 * rs6000-tdep.c (variant::name, variant::description): Constify.
11253 * rust-exp.y (rustyyerror): Constify.
11254 * rust-lang.c (rust_op_name): Constify.
11255 * rust-lang.h (rustyyerror): Constify.
11256 * serial.h (serial_ops::name): Constify.
11257 * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name)
11258 (sh_sh3e_register_name, sh_sh2e_register_name)
11259 (sh_sh2a_register_name, sh_sh2a_nofpu_register_name)
11260 (sh_sh_dsp_register_name, sh_sh3_dsp_register_name)
11261 (sh_sh4_register_name, sh_sh4_nofpu_register_name)
11262 (sh_sh4al_dsp_register_name): Constify.
11263 * sh64-tdep.c (sh64_register_name): Constify.
11264 * solib-darwin.c (lookup_symbol_from_bfd): Constify.
11265 * spu-tdep.c (spu_register_name, info_spu_dma_cmdlist): Constify.
11266 * stabsread.c (patch_block_stabs, read_type_number)
11267 (ref_map::stabs, ref_add, process_reference)
11268 (symbol_reference_defined, define_symbol, define_symbol)
11269 (error_type, read_type, read_member_functions, read_cpp_abbrev)
11270 (read_one_struct_field, read_struct_fields, read_baseclasses)
11271 (read_tilde_fields, read_struct_type, read_array_type)
11272 (read_enum_type, read_sun_builtin_type, read_sun_floating_type)
11273 (read_huge_number, read_range_type, read_args, common_block_start)
11274 (find_name_end): Constify.
11275 * stabsread.h (common_block_start, define_symbol)
11276 (process_one_symbol, symbol_reference_defined, ref_add):
11277 * symfile.c (get_section_index, add_symbol_file_command):
11278 * symfile.h (get_section_index): Constify.
11279 * target-descriptions.c (tdesc_type::name): Constify.
11280 (tdesc_free_type): Add cast.
11281 * target.c (find_default_run_target):
11282 (add_deprecated_target_alias, find_default_run_target)
11283 (target_announce_detach): Constify.
11284 (do_option): Constify.
11285 * target.h (add_deprecated_target_alias): Constify.
11286 * thread.c (print_thread_info_1): Constify.
11287 * top.c (deprecated_readline_begin_hook, command_line_input):
11288 Constify.
11289 (init_main): Add casts.
11290 * top.h (handle_line_of_input): Constify.
11291 * tracefile-tfile.c (tfile_write_uploaded_tsv): Constify.
11292 * tracepoint.c (tvariables_info_1, trace_status_mi): Constify.
11293 (tfind_command): Rename to ...
11294 (tfind_command_1): ... this and constify.
11295 (tfind_command): New function.
11296 (tfind_end_command, tfind_start_command): Adjust.
11297 (encode_source_string): Constify.
11298 * tracepoint.h (encode_source_string): Constify.
11299 * tui/tui-data.c (tui_partial_win_by_name): Constify.
11300 * tui/tui-data.h (tui_partial_win_by_name): Constify.
11301 * tui/tui-source.c (tui_set_source_content_nil): Constify.
11302 * tui/tui-source.h (tui_set_source_content_nil): Constify.
11303 * tui/tui-win.c (parse_scrolling_args): Constify.
11304 * tui/tui-windata.c (tui_erase_data_content): Constify.
11305 * tui/tui-windata.h (tui_erase_data_content): Constify.
11306 * tui/tui-winsource.c (tui_erase_source_content): Constify.
11307 * tui/tui.c (tui_enable): Add cast.
11308 * utils.c (defaulted_query): Constify.
11309 (init_page_info): Add cast.
11310 (puts_debug, subset_compare): Constify.
11311 * utils.h (subset_compare): Constify.
11312 * varobj.c (varobj_format_string): Constify.
11313 * varobj.h (varobj_format_string): Constify.
11314 * vax-tdep.c (vax_register_name): Constify.
11315 * windows-nat.c (windows_detach): Constify.
11316 * xcoffread.c (process_linenos, xcoff_next_symbol_text): Constify.
11317 * xml-support.c (gdb_xml_end_element): Constify.
11318 * xml-tdesc.c (tdesc_start_reg): Constify.
11319 * xstormy16-tdep.c (xstormy16_register_name): Constify.
11320 * xtensa-tdep.c (xtensa_find_register_by_name): Constify.
11321 * xtensa-tdep.h (xtensa_register_t::name): Constify.
11322
995816ba
PA
113232017-04-05 Pedro Alves <palves@redhat.com>
11324
11325 * proc-api.c (struct trans): Constify.
11326 (procfs_note): Constify.
11327 * proc-events.c (struct trans, syscall_table):
11328 * proc-flags.c (struct trans): Constify.
11329 * proc-utils.h (procfs_note): Constify.
11330 * proc-why.c (struct trans): Constify.
11331 * procfs.c (dead_procinfo, find_syscall, proc_warn, proc_error)
11332 (procfs_detach): Constify.
11333 * sol-thread.c (struct string_map): Constify.
11334 (td_err_string, td_state_string): Constify.
11335
3e83a920
PA
113362017-04-05 Pedro Alves <palves@redhat.com>
11337
11338 * proc-api.c (procfs_filename): Don't initialize
11339 procfs_filename.
11340 (prepare_to_trace): Assume procfs_filename is non-NULL.
11341 (_initialize_proc_api): Give procfs_filename a default value here.
11342
63160a43
PA
113432017-04-05 Pedro Alves <palves@redhat.com>
11344
11345 * break-catch-throw.c (handle_gnu_v3_exceptions): Constify
11346 'cond_string' parameter.
11347 (extract_exception_regexp): Constify 'string' parameter.
11348 (catch_exception_command_1): Constify.
11349 * breakpoint.c (init_catchpoint)
11350 (create_fork_vfork_event_catchpoint): Constify 'cond_string'
11351 parameter.
11352 (ep_parse_optional_if_clause, catch_fork_command_1)
11353 (catch_exec_command_1): Constify.
11354 * breakpoint.h (init_catchpoint): Constify 'cond_string'
11355 parameter.
11356 (ep_parse_optional_if_clause): Constify.
11357 * cli/cli-utils.c (remove_trailing_whitespace)
11358 (check_for_argument): Constify.
11359 * cli/cli-utils.h (remove_trailing_whitespace): Constify and add
11360 non-const overload.
11361 (check_for_argument): Likewise.
11362
9b2eba3d
PA
113632017-04-05 Pedro Alves <palves@redhat.com>
11364
11365 * event-top.c (command_line_handler): Add cast to execute_command
11366 call.
11367 * record-btrace.c (cmd_record_btrace_bts_start)
11368 (cmd_record_btrace_pt_start, cmd_record_btrace_start)
11369 (cmd_record_btrace_start): Add cast to execute_command call.
11370 * record-full.c (record_full_goto_insn):
11371 * record.c (record_start, record_stop): Add cast to
11372 execute_command_to_string calls.
11373 (cmd_record_start): Add cast to execute_command calls.
11374
2adadf51
PA
113752017-04-05 Pedro Alves <palves@redhat.com>
11376
11377 * python/python-internal.h (gdb_PyArg_ParseTupleAndKeywords): New
11378 static inline function.
11379 * python/py-arch.c (archpy_disassemble): Constify 'keywords'
11380 array and use gdb_PyArg_ParseTupleAndKeywords.
11381 * python/py-cmd.c (cmdpy_init): Likewise.
11382 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
11383 * python/py-inferior.c (infpy_read_memory, infpy_write_memory)
11384 (infpy_search_memory): Likewise.
11385 * python/py-objfile.c (objfpy_add_separate_debug_file)
11386 (gdbpy_lookup_objfile): Likewise.
11387 * python/py-symbol.c (gdbpy_lookup_symbol)
11388 (gdbpy_lookup_global_symbol): Likewise.
11389 * python/py-type.c (gdbpy_lookup_type): Likewise.
11390 * python/py-value.c (valpy_lazy_string, valpy_string): Likewise.
11391 * python/python.c (execute_gdb_command, gdbpy_write, gdbpy_flush):
11392 Likewise.
11393
0d1f4ceb
PA
113942017-04-05 Pedro Alves <palves@redhat.com>
11395
11396 * python/python-internal.h (gdb_PyGetSetDef): New type.
11397 * python/py-block.c (block_object_getset)
11398 (breakpoint_object_getset): Now a gdb_PyGetSetDef array.
11399 * python/py-event.c (event_object_getset)
11400 (finish_breakpoint_object_getset): Likewise.
11401 * python/py-inferior.c (inferior_object_getset): Likewise.
11402 * python/py-infthread.c (thread_object_getset): Likewise.
11403 * python/py-lazy-string.c (lazy_string_object_getset): Likewise.
11404 * python/py-linetable.c (linetable_entry_object_getset): Likewise.
11405 * python/py-objfile.c (objfile_getset): Likewise.
11406 * python/py-progspace.c (pspace_getset): Likewise.
11407 * python/py-record-btrace.c (btpy_insn_getset, btpy_call_getset):
11408 Likewise.
11409 * python/py-record.c (recpy_record_getset): Likewise.
11410 * python/py-symbol.c (symbol_object_getset): Likewise.
11411 * python/py-symtab.c (symtab_object_getset, sal_object_getset):
11412 Likewise.
11413 * python/py-type.c (type_object_getset, field_object_getset):
11414 Likewise.
11415 * python/py-value.c (value_object_getset): Likewise.
11416
4d759979
PA
114172017-04-05 Pedro Alves <palves@redhat.com>
11418
11419 * python/python-internal.h (gdb_PyObject_CallMethod)
11420 (gdb_PyErr_NewException, gdb_PySys_GetObject, gdb_PySys_SetPath):
11421 New functions.
11422 (GDB_PYSYS_SETPATH_CHAR, PyObject_CallMethod, PyErr_NewException)
11423 (PySys_GetObject, PySys_SetPath): New macros.
11424
fdf9e36f
PA
114252017-04-05 Pedro Alves <palves@redhat.com>
11426
11427 * mi/mi-cmd-info.c (mi_cmd_info_os): Call info_osdata instead of
11428 info_osdata_command.
11429 * osdata.c (info_osdata_command): Rename to ...
11430 (info_osdata): ... this. Constify 'type' parameter, and remove
11431 the 'from_tty' parameter. Accept NULL TYPE.
11432 (info_osdata_command): New function.
11433 * osdata.h (info_osdata_command): Remove declaration.
11434 (info_osdata): New declaration.
11435
9f33b8b7
PA
114362017-04-05 Pedro Alves <palves@redhat.com>
11437
11438 * mi/mi-cmd-break.c (mi_cmd_break_insert_1, mi_cmd_break_insert)
11439 (mi_cmd_dprintf_insert, mi_cmd_break_passcount)
11440 (mi_cmd_break_watch, mi_cmd_break_commands): Constify 'command'
11441 parameter.
11442 * mi/mi-cmd-catch.c (mi_cmd_catch_assert, mi_cmd_catch_exception)
11443 (mi_cmd_catch_load, mi_cmd_catch_unload): Constify cmd' parameter.
11444 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Constify 'command'
11445 parameter.
11446 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_cd, mi_cmd_env_path)
11447 (mi_cmd_env_dir, mi_cmd_inferior_tty_set, _cmd_inferior_tty_show)
11448 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
11449 (mi_cmd_file_list_exec_source_files)
11450 (mi_cmd_file_list_shared_libraries): Constify 'command' parameter.
11451 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
11452 (mi_cmd_info_gdb_mi_command, mi_cmd_info_os): Constify 'command'
11453 parameter.
11454 * mi/mi-cmd-stack.c (mi_cmd_enable_frame_filters)
11455 (mi_cmd_stack_list_frames, mi_cmd_stack_info_depth)
11456 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
11457 (mi_cmd_stack_list_variables, mi_cmd_stack_select_frame)
11458 (mi_cmd_stack_info_frame): Constify 'command' parameter.
11459 * mi/mi-cmd-target.c (mi_cmd_target_file_get)
11460 (mi_cmd_target_file_put, mi_cmd_target_file_delete): Constify
11461 'command' parameter.
11462 * mi/mi-cmd-var.c (mi_cmd_var_create, mi_cmd_var_delete)
11463 (mi_cmd_var_set_format, mi_cmd_var_set_visualizer)
11464 (mi_cmd_var_set_frozen, mi_cmd_var_show_format)
11465 (mi_cmd_var_info_num_children, mi_cmd_var_list_children)
11466 (mi_cmd_var_info_type, mi_cmd_var_info_path_expression)
11467 (mi_cmd_var_info_expression, mi_cmd_var_show_attributes)
11468 (mi_cmd_var_evaluate_expression, mi_cmd_var_assign)
11469 (mi_cmd_var_update, mi_cmd_enable_pretty_printing)
11470 (mi_cmd_var_set_update_range): Constify 'command' parameter.
11471 * mi/mi-cmds.h (mi_cmd_argv_ftype): Constify 'command' parameter.
11472 * mi/mi-interp.c (mi_cmd_interpreter_exec): Constify 'command'
11473 parameter.
11474 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_exec_next)
11475 (mi_cmd_exec_next_instruction, mi_cmd_exec_step)
11476 (mi_cmd_exec_step_instruction, mi_cmd_exec_finish)
11477 (mi_cmd_exec_return ,mi_cmd_exec_jump, mi_cmd_exec_continue)
11478 (mi_cmd_exec_interrupt, mi_cmd_exec_run, mi_cmd_target_detach)
11479 (mi_cmd_target_flash_erase, mi_cmd_thread_select)
11480 (mi_cmd_thread_list_ids, mi_cmd_thread_info)
11481 (mi_cmd_list_thread_groups, mi_cmd_data_list_register_names)
11482 (mi_cmd_data_list_changed_registers)
11483 (mi_cmd_data_write_register_values)
11484 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
11485 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory)
11486 (mi_cmd_data_write_memory_bytes, mi_cmd_enable_timings)
11487 (mi_cmd_list_features, mi_cmd_list_target_features)
11488 (mi_cmd_add_inferior, mi_cmd_remove_inferior)
11489 (mi_cmd_trace_define_variable, mi_cmd_trace_list_variables)
11490 (mi_cmd_trace_find, mi_cmd_trace_save, mi_cmd_trace_start)
11491 (mi_cmd_trace_status, mi_cmd_trace_stop, mi_cmd_ada_task_info)
11492 (mi_cmd_trace_frame_collected): Constify 'command'
11493 parameter.
11494 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Constify
11495 'command' parameter.
11496
67cb5b2d
PA
114972017-04-05 Pedro Alves <palves@redhat.com>
11498
11499 * ada-lang.c (ada_completer_word_break_characters): Now a const
11500 array.
11501 (ada_get_gdb_completer_word_break_characters): Constify.
11502 * completer.c (gdb_completer_command_word_break_characters)
11503 (gdb_completer_file_name_break_characters)
11504 (gdb_completer_quote_characters): Now const arrays.
11505 (get_gdb_completer_quote_characters): Constify.
11506 (set_rl_completer_word_break_characters): New function.
11507 (set_gdb_completion_word_break_characters)
11508 (complete_line_internal): Use it.
11509 * completer.h (get_gdb_completer_quote_characters): Constify.
11510 (set_rl_completer_word_break_characters): Declare.
11511 * f-lang.c (f_word_break_characters): Constify.
11512 * language.c (default_word_break_characters): Constify.
11513 * language.h (language_defn::la_word_break_characters): Constify.
11514 (default_word_break_characters): Constify.
11515 * top.c (init_main): Use set_rl_completer_word_break_characters.
11516
7a114964
PA
115172017-04-05 Pedro Alves <palves@redhat.com>
11518
11519 * aix-thread.c (aix_thread_pid_to_str)
11520 (aix_thread_extra_thread_info): Constify.
11521 * bsd-kvm.c (bsd_kvm_pid_to_str): Constify.
11522 * bsd-uthread.c (bsd_uthread_extra_thread_info)
11523 (bsd_uthread_pid_to_str): Constify.
11524 * corelow.c (core_pid_to_str): Constify.
11525 * darwin-nat.c (darwin_pid_to_str): Constify.
11526 * fbsd-nat.c (fbsd_pid_to_str): Constify.
11527 * fbsd-tdep.c (fbsd_core_pid_to_str, gdbarch_core_pid_to_str):
11528 Constify.
11529 * gnu-nat.c (gnu_pid_to_str): Constify.
11530 * go32-nat.c (go32_pid_to_str): Constify.
11531 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Constify.
11532 * inf-ptrace.c (inf_ptrace_pid_to_str): Constify.
11533 * inferior.c (inferior_pid_to_str): Constify.
11534 * linux-nat.c (linux_nat_pid_to_str): Constify.
11535 * linux-tdep.c (linux_core_pid_to_str): Constify.
11536 * linux-thread-db.c (thread_db_pid_to_str)
11537 (thread_db_extra_thread_info): Constify.
11538 * nto-tdep.c (nto_extra_thread_info): Constify.
11539 * nto-tdep.h (nto_extra_thread_info): Constify.
11540 * obsd-nat.c (obsd_pid_to_str): Constify.
11541 * procfs.c (procfs_pid_to_str): Constify.
11542 * ravenscar-thread.c (ravenscar_extra_thread_info)
11543 (ravenscar_pid_to_str): Constify.
11544 * remote-sim.c (gdbsim_pid_to_str): Constify.
11545 * remote.c (remote_threads_extra_info, remote_pid_to_str):
11546 Constify.
11547 * sol-thread.c (solaris_pid_to_str): Constify.
11548 * sol2-tdep.c (sol2_core_pid_to_str): Constify.
11549 * sol2-tdep.h (sol2_core_pid_to_str): Constify.
11550 * target.c (default_pid_to_str, target_pid_to_str)
11551 (normal_pid_to_str, default_pid_to_str): Constify.
11552 * target.h (target_ops::to_pid_to_str)
11553 (target_ops::to_extra_thread_info): Constify.
11554 (target_pid_to_str, normal_pid_to_str): Constify.
11555 * windows-nat.c (windows_pid_to_str): Constify.
11556 * gdbarch.sh (core_pid_to_str): Constify.
11557 * target-delegates.c: Regenerate.
11558 * gdbarch.h, gdbarch.c: Regenerate.
11559
69bbf465
PA
115602017-04-05 Pedro Alves <palves@redhat.com>
11561
11562 * main.c (captured_main_1): Use gdb::unique_xmalloc_ptr to manage
11563 the memory of the temporary warning_pre_print override.
11564 * utils.c (warning_pre_print): Constify.
11565 * utils.h (warning_pre_print): Constify.
11566
be47f9e8
PA
115672017-04-05 Pedro Alves <palves@redhat.com>
11568
11569 * cli/cli-cmds.c (shell_escape): Constify 'arg' parameter.
11570 (shell_command): New function.
11571 (make_command): Use std::string.
11572 (init_cli_cmds): Register shell_command instead of shell_escape.
11573
bde6261a
PA
115742017-04-05 Pedro Alves <palves@redhat.com>
11575
11576 * breakpoint.c (dprintf_function, dprintf_channel): Don't initialize.
11577 * tracepoint.c (default_collect): Don't initialize.
11578
b38ef47f
PA
115792017-04-05 Pedro Alves <palves@redhat.com>
11580
11581 * macroexp.c (macro_buffer::shared): Now a bool.
11582 (init_buffer): Update.
11583 (init_shared_buffer): Constify 'addr' parameter.
11584 (substitute_args, expand, macro_expand, macro_expand_next): Remove
11585 casts.
11586
f995bbe8
PA
115872017-04-05 Pedro Alves <palves@redhat.com>
11588
11589 * arm-tdep.c (show_disassembly_style_sfunc): Constify local.
11590 * disasm.c (set_disassembler_options): Constify local.
11591 * i386-tdep.c (i386_print_insn): Remove cast and FIXME comment.
11592
4a596fe2
SDJ
115932017-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
11594
11595 PR gdb/21352
11596 * tracefile.c (tsave_command): Fix argument parsing for '-r'
11597 option.
11598
2cad08ea
YQ
115992017-04-05 Yao Qi <yao.qi@linaro.org>
11600
11601 * frame.c (frame_unwind_register_unsigned): Call
11602 frame_unwind_register_value.
11603
55a98976
YQ
116042017-04-05 Yao Qi <yao.qi@linaro.org>
11605
11606 * gdb.threads/thread-specific-bp.exp (check_thread_specific_breakpoint):
11607 Use gdb_test_multiple, and don't match anchor.
11608
4ac40124
PA
116092017-04-05 Pedro Alves <palves@redhat.com>
11610
11611 * MAINTAINERS (Global Maintainers): Add Simon Marchi.
11612 (Write After Approval): Remove Simon Marchi.
11613
c053b654
PA
116142017-04-05 Pedro Alves <palves@redhat.com>
11615
11616 * common/gdb_optional.h (optional::optional): Make constexpr and
11617 initialize m_dummy.
11618
4c7bf4f9
JB
116192017-04-04 John Baldwin <jhb@FreeBSD.org>
11620
11621 * amd64-fbsd-tdep.c: Remove "bsd-uthread.h" include.
11622 (amd64fbsd_jmp_buf_reg_offset): Remove.
11623 (amd64fbsd_supply_uthread): Remove function.
11624 (amd64fbsd_collect_uthread): Remove function.
11625 (amd64fbsd_init_abi): Don't set bsd-uthread callbacks.
11626 * configure.tgt (i[34567]86-*-freebsd*): Remove bsd-uthread.o.
11627 (x86_64-*-freebsd*): Remove bsd-uthread.o.
11628 (fbsd-nat.c): Update comment.
11629 * i386-fbsd-tdep.c: Remove "bsd-uthread.h" include.
11630 (i386fbsd_jmp_buf_reg_offset): Remove.
11631 (i386fbsd_supply_uthread): Remove function.
11632 (i386fbsd_collect_uthread): Remove function.
11633 (i386fbsd_init_abi): Don't set bsd-uthread callbacks.
11634
1e1a8bef
JB
116352017-04-04 John Baldwin <jhb@FreeBSD.org>
11636
11637 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-fbsd-tdep.o.
11638 (ALLDEPFILES): Remove alpha-fbsd-tdep.c
11639 * NEWS: Mention that support for FreeBSD/alpha was removed.
11640 * alpha-fbsd-tdep.c: Delete file.
11641 * config/alpha/fbsd.mh: Delete file.
11642 * configure.host: Delete alpha*-*-freebsd* and
11643 alpha*-*-kfreebsd*-gnu.
11644 * configure.tgt: Delete alpha*-*-freebsd* and
11645 alpha*-*-kfreebsd*-gnu.
11646
49907934
JB
116472017-04-04 John Baldwin <jhb@FreeBSD.org>
11648
11649 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers,
11650 amd64bsd_store_inferior_registers): Use ptid from regcache.
11651
6f77053d
PA
116522017-04-04 Pedro Alves <palves@redhat.com>
11653
11654 * dwarf2read.c (lnp_state_machine): Now a class. Initialize all
11655 data fields, make them private and add "m_" prefixes.
11656 (lnp_state_machine::lnp_state_machine): New ctor.
11657 (record_line, check_line_address, handle_set_discriminator)
11658 (handle_set_address, handle_advance_pc, handle_special_opcode)
11659 (handle_advance_line, handle_set_file, handle_negate_stmt)
11660 (handle_const_add_pc, handle_fixed_advance_pc, handle_copy)
11661 (end_sequence, advance_line): New methods.
11662 (m_gdbarch, m_record_lines_p): New fields.
11663 (lnp_reader_state): Delete.
11664 (dwarf_record_line): Rename to ...
11665 (lnp_state_machine::record_line): ... adjust.
11666 (init_lnp_state_machine): Delete.
11667 (lnp_state_machine::lnp_state_machine): New.
11668 (check_line_address): Rename to ...
11669 (lnp_state_machine::check_line_address): This.
11670 (dwarf_decode_lines_1): Remove reference to "reader_state".
11671 Adjust lnp_state_machine having a non-default ctor. Use bool.
11672 State machine internal state manipulation moved to
11673 lnp_state_machine methods.
11674
9c541725
PA
116752017-04-04 Pedro Alves <palves@redhat.com>
11676
11677 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11678 unittests/offset-type-selftests.c.
11679 (SUBDIR_UNITTESTS_OBS): Add offset-type-selftests.o.
11680 * common/offset-type.h: New file.
11681 * common/preprocessor.h: New file.
11682 * common/traits.h: New file.
11683 * common/valid-expr.h: New file.
11684 * dwarf2expr.c: Include "common/underlying.h". Adjust to use
11685 sect_offset and cu_offset strong typedefs throughout.
11686 * dwarf2expr.h: Adjust to use sect_offset and cu_offset strong
11687 typedefs throughout.
11688 * dwarf2loc.c: Include "common/underlying.h". Adjust to use
11689 sect_offset and cu_offset strong typedefs throughout.
11690 * dwarf2read.c: Adjust to use sect_offset and cu_offset strong
11691 typedefs throughout.
11692 * gdbtypes.h: Include "common/offset-type.h".
11693 (cu_offset): Now an offset type (strong typedef) instead of a
11694 struct.
11695 (sect_offset): Likewise.
11696 (union call_site_parameter_u): Rename "param_offset" field to
11697 "param_cu_off".
11698 * unittests/offset-type-selftests.c: New file.
11699
ecfb656c
PA
117002017-04-04 Pedro Alves <palves@redhat.com>
11701
11702 * common/underlying.h: New file.
11703 * dwarf2read.c: Include "common/gdb_optional.h" and
11704 "common/underlying.h".
11705 (dir_index, file_name_index): New types.
11706 (file_entry): Use them.
11707 (file_entry::include): Use to_underlying.
11708 (line_header::add_file_name): Use dir_index.
11709 (read_formatted_entries): Use gdb::optional. Read form before
11710 writting to file_entry.
11711 (dwarf_decode_line_header): Use dir_index.
11712 (lnp_state_machine::current_file): Use to_underlying.
11713 (lnp_state_machine::file): Change type to file_name_index.
11714 (dwarf_record_line): Use to_underlying.
11715 (init_lnp_state_machine): Use file_name_index.
11716 (dwarf_decode_lines_1): Use dir_index and file_name_index.
11717
d194f1fe
PA
117182017-04-04 Pedro Alves <palves@redhat.com>
11719
11720 * common/gdb_optional.h (gdb::optiona): Add operator->, operator*,
11721 operator bool, has_value and get methods.
11722
fff8551c
PA
117232017-04-04 Pedro Alves <palves@redhat.com>
11724
11725 * dwarf2read.c (struct file_entry): Add ctors, and initialize all
11726 fields.
11727 (line_header): Initialize all data fields. Change type of
11728 standard_opcode_lengths to std::unique_ptr<unsigned char[]>.
11729 Change type of include_dirs to std::vector<const char *>. Remove
11730 num_include_dirs, include_dirs_size. Change type of file_names to
11731 std::vector<file_entry>. Remove num_file_names, file_names_size.
11732 (line_header::line_header): New.
11733 (line_header::add_include_dir, line_header::add_file_name): New
11734 methods.
11735 (line_header::include_dir_at): Remove NULL check.
11736 (line_header::file_name_at): Add const overload.
11737 (line_header_up): New unique_ptr typedef.
11738 (dw2_get_file_names_reader): Use line_header_up. Adjust to use
11739 std::vector. Remove free_line_header call.
11740 (dwarf2_build_include_psymtabs): Use line_header_up. Remove
11741 free_line_header call.
11742 (free_cu_line_header): Delete.
11743 (handle_DW_AT_stmt_list, handle_DW_AT_stmt_list)
11744 (setup_type_unit_groups): Use line_header_up instead of cleanups.
11745 Adjust to use std::vector.
11746 (free_line_header): Delete.
11747 (free_line_header_voidp): Use delete.
11748 (add_include_dir): Replace with ...
11749 (line_header::add_include_dir): ... this method. Use std::vector.
11750 (add_file_name): Replace with ...
11751 (line_header::add_file_name): ... this method. Use std::vector.
11752 (add_include_dir_stub): Delete.
11753 (read_formatted_entries): Remove memset.
11754 (dwarf_decode_line_header): Return a line_header_up instead of a
11755 raw pointer. Remove cleanup handling. Pass lambdas to
11756 read_formatted_entries. Adjust to use line_header methods.
11757 (dwarf_decode_lines_1): Adjust to use line_header methods.
11758 (dwarf_decode_lines, file_file_name, file_full_name): Adjust to
11759 use std::vector.
11760
d62a8ae2
SM
117612017-04-04 Simon Marchi <simon.marchi@polymtl.ca>
11762
11763 * remote.c (set_general_thread, set_continue_thread): Use ptid_t
11764 instead of struct ptid.
11765
db3a1dc7
AH
117662017-05-04 Alan Hayward <alan.hayward@arm.com>
11767
11768 * frame.c (get_frame_register_bytes): Unwind using value.
11769 (put_frame_register_bytes): Likewise.
11770
b1b45502
IB
117712017-03-30 Iain Buclaw <ibuclaw@gdcproject.org>
11772
11773 * d-exp.y (type_aggregate_p): Treat TYPE_CODE_MODULE as being
11774 aggregate-like.
11775
ec13808e
JK
117762017-03-29 Jan Kratochvil <jan.kratochvil@redhat.com>
11777
11778 * auto-load.c (auto_load_section_scripts): Check SEC_HAS_CONTENTS.
11779
12316564
YQ
117802017-03-29 Yao Qi <yao.qi@linaro.org>
11781
11782 * gdbthread.h (struct thread_info): Declare constructor and
11783 destructor. Add some in-class member initializers.
11784 * thread.c (free_thread): Remove.
11785 (init_thread_list): Call delete instead of free_thread.
11786 (new_thread): Call thread_info constructor.
11787 (thread_info::thread_info): New function.
11788 (thread_info::~thread_info): New function.
11789 (delete_thread_1): Call delete instead of free_thread.
11790 (make_cleanup_restore_current_thread): Move tp and frame to
11791 inner block.
11792
fe5f7374
AK
117932017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
11794
11795 * arc-tdep.c (arc_frame_cache): Add support for prologue analysis.
11796 (arc_skip_prologue): Likewise.
11797 (arc_make_frame_cache): Likewise.
11798 (arc_pv_get_operand): New function.
11799 (arc_is_in_prologue): Likewise.
11800 (arc_analyze_prologue): Likewise.
11801 (arc_print_frame_cache): Likewise.
11802 (MAX_PROLOGUE_LENGTH): New constant.
11803
eea78757
AK
118042017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
11805
11806 * configure.tgt: Add arc-insn.o.
11807 * arc-tdep.c (arc_delayed_print_insn): Make non-static.
11808 (dump_arc_instruction_command): New function.
11809 (arc_fprintf_disasm): Likewise.
11810 (arc_disassemble_info): Likewise.
11811 (arc_insn_get_operand_value): Likewise.
11812 (arc_insn_get_operand_value_signed): Likewise.
11813 (arc_insn_get_memory_base_reg): Likewise.
11814 (arc_insn_get_memory_offset): Likewise.
11815 (arc_insn_get_branch_target): Likewise.
11816 (arc_insn_dump): Likewise.
11817 (arc_insn_get_linear_next_pc): Likewise.
11818 * arc-tdep.h (arc_delayed_print_insn): Add function declaration.
11819 (arc_disassemble_info): Likewise.
11820 (arc_insn_get_branch_target): Likewise.
11821 (arc_insn_get_linear_next_pc): Likewise.
11822 * NEWS: Mention new "maint print arc arc-instruction".
11823
3be78afd
AK
118242017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
11825
11826 * arc-tdep (maintenance_print_arc_list): New variable.
11827 (maintenance_print_arc_command): New function.
11828
296ec4fa
AK
118292017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
11830
11831 * arc-tdep.c (core_v2_register_names, core_arcompact_register_names)
11832 Add "limm" and "reserved".
11833 (arc_cannot_fetch_register, arc_cannot_store_register): Add
11834 ARC_RESERVED_REGNUM and ARC_LIMM_REGNUM.
11835 * arc-tdep.h (arc_regnum): Likewise.
11836
f74f865e
MF
118372017-03-27 Max Filippov <jcmvbkbc@gmail.com>
11838
11839 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
11840 for THREADPTR register.
11841 (supply_gregset_reg): Call regcache_raw_supply for THREADPTR
11842 register.
11843 * xtensa-tdep.c (XTENSA_DBREGN_UREG): New definition.
11844 (xtensa_derive_tdep): Initialize tdep->threadptr_regnum.
11845 * xtensa-tdep.h (gdbarch_tdep::threadptr_regnum): New field.
11846
0d0bf81a
MF
118472017-03-27 Max Filippov <jcmvbkbc@gmail.com>
11848
11849 * xtensa-tdep.c (xtensa_pseudo_register_read): Treat all
11850 registers above gdbarch_num_regs (gdbarch) as privileged in
11851 call0 ABI.
11852
0ce4291e
MF
118532017-03-27 Max Filippov <jcmvbkbc@gmail.com>
11854
11855 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
11856 for a single specified register or for all registers in
11857 a0_base..a0_base + C0_NREGS range.
11858 (supply_gregset_reg): Call regcache_raw_supply for a single
11859 specified register or for all registers in a0_base..a0_base +
11860 C0_NREGS range.
11861
c56054f9
MF
118622017-03-27 Max Filippov <jcmvbkbc@gmail.com>
11863
11864 * arch/xtensa.h (C0_NREGS): Add definition.
11865 * xtensa-tdep.c (C0_NREGS): Remove definition.
11866
a4398628
MF
118672017-03-27 Max Filippov <jcmvbkbc@gmail.com>
11868
11869 * xtensa-tdep.c (xtensa_scan_prologue, call0_analyze_prologue):
11870 Drop xtensa_default_isa initialization.
11871 (xtensa_gdbarch_init): Initialize xtensa_default_isa.
11872
8c43009f
PA
118732017-03-27 Pedro Alves <palves@redhat.com>
11874
11875 * dwarf2read.c (file_entry) <dir_index>: Add comment.
11876 (file_entry::include_dir): New method.
11877 (line_header::include_dir_at, line_header::file_name_at): New
11878 methods.
11879 (setup_type_unit_groups, setup_type_unit_groups)
11880 (psymtab_include_file_name): Simplify using the new methods.
11881 (lnp_state_machine) <the_line_header>: New field.
11882 <file>: Add comment.
11883 (lnp_state_machine::current_file): New method.
11884 (dwarf_record_line): Simplify using the new methods.
11885 (init_lnp_state_machine): Initialize the "the_line_header" field.
11886 (dwarf_decode_lines_1, dwarf_decode_lines, file_file_name):
11887 Simplify using the new methods.
11888
a7e80b9e
PA
118892017-03-27 Pedro Alves <palves@redhat.com>
11890
11891 * cp-name-parser.y (make_empty): Delete.
11892 (demangler_special, nested_name, ptr_operator, array_indicator)
11893 (direct_declarator, declarator_1): Use fill_comp instead of
11894 make_empty.
11895
21047726
PA
118962017-03-27 Pedro Alves <palves@redhat.com>
11897
11898 * xml-support.h (gdb_xml_debug): Pass a "first-to-check" argument
11899 to ATTRIBUTE_PRINTF.
11900 * solib-target.c (library_list_start_list): Print "string" not
11901 "version".
11902 * xml-tdesc.c (tdesc_start_field): Pass "field_name" to
11903 gdb_xml_error call.
11904
d721ba37
PA
119052017-03-27 Pedro Alves <palves@redhat.com>
11906
11907 * dwarf2read.c (struct file_and_directory): New.
11908 (dwarf2_get_dwz_file): Adjust to use std::string.
11909 (dw2_get_file_names_reader): Adjust to use file_and_directory.
11910 (find_file_and_directory): Adjust to return a file_and_directory
11911 object.
11912 (read_file_scope): Adjust to use file_and_directory. Remove
11913 make_cleanup/do_cleanups calls.
11914 (open_and_init_dwp_file): Adjust to use std::string. Remove
11915 make_cleanup/do_cleanups calls.
11916 * python/python.c (do_start_initialization): Adjust to ldirname
11917 returning a std::string.
11918 * utils.c (ldirname): Now returns a std::string.
11919 * utils.h (ldirname): Change return type to std::string.
11920 * xml-syscall.c (xml_init_syscalls_info): Adjust to ldirname
11921 returning a std::string.
11922 * xml-tdesc.c (file_read_description_xml): Likewise.
11923
ed771251
AH
119242017-03-24 Alan Hayward <alan.hayward@arm.com>
11925
11926 * regcache.c (regcache_debug_print_register): New function.
11927 * regcache.h (regcache_debug_print_register): New declaration.
11928 * target.c (debug_print_register): Remove.
11929 (target_fetch_registers): Call regcache_debug_print_register.
11930 (target_store_registers): Likewise.
11931
568c1b9f
PB
119322017-03-24 Pádraig Brady <pbrady@fb.com>
11933
11934 * dwarf2read.c (setup_type_unit_groups): Ensure dir_index doesn't
11935 reference beyond the 'lh->include_dirs' array before accessing to
11936 it.
11937 (psymtab_include_file_name): Likewise.
11938 (dwarf_decode_lines_1): Likewise.
11939 (dwarf_decode_lines): Likewise.
11940 (file_file_name): Likewise.
11941
3e00d44f
SM
119422017-03-23 Simon Marchi <simon.marchi@ericsson.com>
11943
11944 * fbsd-tdep.c (fbsd_corefile_thread): Don't set/restore
11945 inferior_ptid.
11946 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
11947 ps_lsetfpregs): Likewise.
11948 * regcache.c (regcache_raw_update, regcache_raw_write): Likewise.
11949 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
11950 ps_lsetfpregs): Likewise.
11951 * target.c (target_fetch_registers, target_store_registers):
11952 Remove asserts.
11953
077ae656
AH
119542017-03-23 Alan Hayward <alan.hayward@arm.com>
11955
11956 * sol-thread.c (sol_thread_store_registers): Remove regcache calls.
11957
1e2b521d
YQ
119582017-03-23 Yao Qi <yao.qi@linaro.org>
11959
11960 * aarch64-tdep.c (aarch64_process_record_test): Declare.
11961 (_initialize_aarch64_tdep): Register it.
11962 (aarch64_record_load_store): Handle PRFM instruction.
11963 (aarch64_process_record_test): New function.
11964
33877125
YQ
119652017-03-23 Yao Qi <yao.qi@linaro.org>
11966
11967 * aarch64-tdep.c (aarch64_record_load_store): Fix code
11968 indentation.
11969
a0eef940
YQ
119702017-03-23 Yao Qi <yao.qi@linaro.org>
11971
11972 * aarch64-tdep.c: Remove AARCH64_RECORD_FAILURE.
11973
3f2a3564
PR
119742017-03-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
11975
11976 python/python.c (do_start_initialization): Fix memory leak.
11977
b67aeab0
SM
119782017-03-22 Simon Marchi <simon.marchi@polymtl.ca>
11979
11980 * inf-ptrace.c (inf_ptrace_xfer_partial): Get pid from ptid
11981 using get_ptrace_pid.
11982 * linux-nat.c (linux_nat_xfer_partial): Don't set/restore
11983 inferior_ptid.
11984 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use lwp of
11985 inferior_ptid instead of pid.
11986
ffdbe864
YQ
119872017-03-22 Yao Qi <yao.qi@linaro.org>
11988
11989 * aarch64-tdep.c: Wrap locally used classes in anonymous
11990 namespace.
11991 * arm-tdep.c: Likewise.
11992 * linespec.c: Likewise.
11993 * ui-out.c: Likewise.
11994
9d736fbf
JG
119952017-03-22 Jonah Graham <jonah@kichwacoders.com>
11996
11997 PR gdb/19637
11998 * python/lib/gdb/printer/bound_registers.py: Import sys.
11999
3de88e9a
SM
120002017-03-21 Simon Marchi <simon.marchi@ericsson.com>
12001
12002 * windows-nat.c (do_windows_fetch_inferior_registers): Add
12003 windows_thread_info parameter and use it instead of
12004 current_thread.
12005 (windows_fetch_inferior_registers): Don't set current_thread,
12006 pass the thread to do_windows_fetch_inferior_registers. Use
12007 ptid from regcache instead of inferior_ptid.
12008 (do_windows_store_inferior_registers): Add windows_thread_info
12009 parameter and use it instead of current_thread.
12010 (windows_store_inferior_registers): Don't set current_thread,
12011 pass the thread to do_windows_store_inferior_registers. Use
12012 ptid from regcache instead of inferior_ptid.
12013
0e7b8f61
SM
120142017-03-21 Simon Marchi <simon.marchi@ericsson.com>
12015
12016 * ser-mingw.c (ser_windows_raw): Remove reference to
12017 struct serial::current_timeout.
12018
5badf10a
IR
120192017-03-21 Ivo Raisr <ivo.raisr@oracle.com>
12020
12021 PR tdep/20928
12022 * gdb/sparc-tdep.h (gdbarch_tdep) <sparc64_ccr_type>: New field.
12023 * gdb/sparc64-tdep.c (sparc64_ccr_type): New function.
12024 (sparc64_fsr_type): Fix %fsr decoding.
12025
cee59b3f
TW
120262017-03-21 Tim Wiederhake <tim.wiederhake@intel.com>
12027
12028 * python/py-record-btrace.c (btpy_insn_data): Change return type
12029 for Python 2.
12030
639a9038
SM
120312017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
12032
12033 * spu-linux-nat.c (spu_fetch_inferior_registers,
12034 spu_store_inferior_registers): Use ptid from regcache, set and
12035 restore inferior_ptid.
12036 * spu-multiarch.c (spu_fetch_registers, spu_store_registers):
12037 Likewise.
12038
bcc0c096
SM
120392017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
12040
12041 * i386-linux-nat.c (fetch_register, store_register,
12042 i386_linux_fetch_inferior_registers,
12043 i386_linux_store_inferior_registers): Use ptid from regcache.
12044 * ia64-linux-nat.c (ia64_linux_fetch_register,
12045 ia64_linux_store_register): Likewise.
12046 * inf-ptrace.c (inf_ptrace_fetch_register,
12047 inf_ptrace_store_register): Likewise.
12048 * m32r-linux-nat.c (m32r_linux_fetch_inferior_registers,
12049 m32r_linux_store_inferior_registers): Likewise.
12050 * m68k-bsd-nat.c (m68kbsd_fetch_inferior_registers,
12051 m68kbsd_store_inferior_registers): Likewise.
12052 * m68k-linux-nat.c (fetch_register, store_register,
12053 m68k_linux_fetch_inferior_registers,
12054 m68k_linux_store_inferior_registers): Likewise.
12055 * m88k-bsd-nat.c (m88kbsd_fetch_inferior_registers,
12056 m88kbsd_store_inferior_registers): Likewise.
12057 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers,
12058 mips_fbsd_store_inferior_registers): Likewise.
12059 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers,
12060 mips64_linux_regsets_store_registers): Likewise.
12061 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers,
12062 mipsnbsd_store_inferior_registers): Likewise.
12063 * mips-obsd-nat.c (mips64obsd_fetch_inferior_registers,
12064 mips64obsd_store_inferior_registers): Likewise.
12065 * nto-procfs.c (procfs_fetch_registers, procfs_store_registers):
12066 Likewise.
12067 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers,
12068 ppcfbsd_store_inferior_registers): Likewise.
12069 * ppc-linux-nat.c (ppc_linux_fetch_inferior_registers,
12070 ppc_linux_store_inferior_registers): Likewise.
12071 * ppc-nbsd-nat.c (ppcnbsd_fetch_inferior_registers,
12072 ppcnbsd_store_inferior_registers): Likewise.
12073 * ppc-obsd-nat.c (ppcobsd_fetch_registers,
12074 ppcobsd_store_registers): Likewise.
12075 * procfs.c (procfs_fetch_registers, procfs_store_registers):
12076 Likewise.
12077 * ravenscar-thread.c (ravenscar_fetch_registers,
12078 ravenscar_store_registers, ravenscar_prepare_to_store):
12079 Likewise.
12080 * record-btrace.c (record_btrace_fetch_registers,
12081 record_btrace_store_registers, record_btrace_prepare_to_store):
12082 Likewise.
12083 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register):
12084 Lookup inferior using ptid from regcache, instead of
12085 current_inferior.
12086 * remote.c (remote_fetch_registers, remote_store_registers): Use
12087 ptid from regcache.
12088 * rs6000-nat.c (fetch_register, store_register): Likewise.
12089 * s390-linux-nat.c (s390_linux_fetch_inferior_registers,
12090 s390_linux_store_inferior_registers): Likewise.
12091 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers,
12092 shnbsd_store_inferior_registers): Likewise.
12093 * sol-thread.c (sol_thread_fetch_registers,
12094 sol_thread_store_registers): Likewise.
12095 * sparc-nat.c (sparc_fetch_inferior_registers,
12096 sparc_store_inferior_registers): Likewise.
12097 * tilegx-linux-nat.c (fetch_inferior_registers,
12098 store_inferior_registers): Likewise.
12099 * vax-bsd-nat.c (vaxbsd_fetch_inferior_registers,
12100 vaxbsd_store_inferior_registers): Likewise.
12101 * xtensa-linux-nat.c (fetch_gregs, store_gregs, fetch_xtregs,
12102 store_xtregs): Likewise.
12103
c0f55cc6
AV
121042017-03-20 Artemiy Volkov <artemiyv@acm.org>
12105
12106 PR gdb/14441
12107 * NEWS: Mention support for rvalue references in GDB and python.
12108 * doc/gdb.texinfo (C Plus Plus Expressions): Mention that GDB
12109 supports both lvalue and rvalue references.
12110
15c0a2a9
AV
121112017-03-20 Artemiy Volkov <artemiyv@acm.org>
12112
12113 PR gdb/14441
12114 * gdbtypes.c (rank_one_type): Implement overloading
12115 resolution rules regarding rvalue references.
12116
aa006118
AV
121172017-03-20 Artemiy Volkov <artemiyv@acm.org>
12118
12119 PR gdb/14441
12120 * aarch64-tdep.c (aarch64_type_align)
12121 (aarch64_extract_return_value, aarch64_store_return_value): Change
12122 lvalue reference type checks to general reference type checks.
12123 * amd64-tdep.c (amd64_classify): Likewise.
12124 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
12125 Likewise.
12126 * arm-tdep.c (arm_type_align, arm_extract_return_value)
12127 (arm_store_return_value): Likewise.
12128 * ax-gdb.c (gen_fetch, gen_cast): Likewise.
12129 * c-typeprint.c (c_print_type): Likewise.
12130 * c-varobj.c (adjust_value_for_child_access, c_value_of_variable)
12131 (cplus_number_of_children, cplus_describe_child): Likewise.
12132 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
12133 * completer.c (expression_completer): Likewise.
12134 * cp-support.c (make_symbol_overload_list_adl_namespace):
12135 Likewise.
12136 * darwin-nat-info.c (info_mach_region_command): Likewise.
12137 * dwarf2loc.c (entry_data_value_coerce_ref)
12138 (value_of_dwarf_reg_entry): Likewise.
12139 * eval.c (ptrmath_type_p, evaluate_subexp_standard)
12140 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof):
12141 Likewise.
12142 * findvar.c (extract_typed_address, store_typed_address):
12143 Likewise.
12144 * gdbtypes.c (rank_one_type): Likewise.
12145 * hppa-tdep.c (hppa64_integral_or_pointer_p): Likewise.
12146 * infcall.c (value_arg_coerce): Likewise.
12147 * language.c (pointer_type): Likewise.
12148 * m32c-tdep.c (m32c_reg_arg_type, m32c_m16c_address_to_pointer):
12149 Likewise.
12150 * m88k-tdep.c (m88k_integral_or_pointer_p): Likewise.
12151 * mn10300-tdep.c (mn10300_type_align): Likewise.
12152 * msp430-tdep.c (msp430_push_dummy_call): Likewise.
12153 * ppc-sysv-tdep.c (do_ppc_sysv_return_value)
12154 (ppc64_sysv_abi_push_param, ppc64_sysv_abi_return_value):
12155 Likewise.
12156 * printcmd.c (print_formatted, x_command): Likewise.
12157 * python/py-type.c (typy_get_composite, typy_template_argument):
12158 Likewise.
12159 * python/py-value.c (valpy_referenced_value)
12160 (valpy_get_dynamic_type, value_has_field): Likewise.
12161 * s390-linux-tdep.c (s390_function_arg_integer): Likewise.
12162 * sparc-tdep.c (sparc_integral_or_pointer_p): Likewise.
12163 * sparc64-tdep.c (sparc64_integral_or_pointer_p): Likewise.
12164 * spu-tdep.c (spu_scalar_value_p): Likewise.
12165 * symtab.c (lookup_symbol_aux): Likewise.
12166 * typeprint.c (whatis_exp, print_type_scalar): Likewise.
12167 * valarith.c (binop_types_user_defined_p, unop_user_defined_p):
12168 Likewise.
12169 * valops.c (value_cast_pointers, value_cast)
12170 (value_reinterpret_cast, value_dynamic_cast, value_addr, typecmp)
12171 (value_struct_elt, value_struct_elt_bitpos)
12172 (value_find_oload_method_list, find_overload_match)
12173 (value_rtti_indirect_type): Likewise.
12174 * valprint.c (val_print_scalar_type_p, generic_val_print):
12175 Likewise.
12176 * value.c (value_actual_type, value_as_address, unpack_long)
12177 (pack_long, pack_unsigned_long, coerce_ref_if_computed)
12178 (coerce_ref): Likewise.
12179 * varobj.c (varobj_get_value_type): Likewise.
12180
3fcf899d
AV
121812017-03-20 Artemiy Volkov <artemiyv@acm.org>
12182
12183 PR gdb/14441
12184 * doc/python.texi (Types in Python): Add TYPE_CODE_RVALUE_REF to
12185 table of constants.
12186 * python/lib/gdb/command/explore.py: Support exploring values
12187 of rvalue reference types.
12188 * python/lib/gdb/types.py: Implement get_basic_type() for
12189 rvalue reference types.
12190 * python/py-type.c (pyty_codes) <TYPE_CODE_RVALUE_REF>: New
12191 constant.
12192 * python/py-value.c (valpy_getitem): Add an rvalue reference
12193 check.
12194 (valpy_reference_value): Add new parameter "refcode".
12195 (valpy_lvalue_reference_value, valpy_rvalue_reference_value):
12196 New wrappers for valpy_reference_value().
12197 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
12198 (gdbpy_invoke_xmethod): Likewise.
12199
4297a3f0
AV
122002017-03-20 Artemiy Volkov <artemiyv@acm.org>
12201
12202 PR gdb/14441
12203 * dwarf2read.c (process_die, read_type_die_1): Handle the
12204 DW_TAG_rvalue_reference_type DIE.
12205 (read_tag_reference_type): Add new parameter "refcode".
12206
e1cb3213
AV
122072017-03-20 Artemiy Volkov <artemiyv@acm.org>
12208
12209 PR gdb/14441
12210 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix)
12211 (c_type_print_modifier, c_type_print_varspec_suffix)
12212 (c_type_print_base): Support printing rvalue reference types.
12213 * c-valprint.c (c_val_print, c_value_print): Support printing
12214 rvalue reference values.
12215
e4347c89
AV
122162017-03-20 Artemiy Volkov <artemiyv@acm.org>
12217
12218 PR gdb/14441
12219 * cp-name-parser.y (ptr_operator): Handle the '&&' token in
12220 typename.
12221 * cp-support.c (replace_typedefs): Handle
12222 DEMANGLE_COMPONENT_RVALUE_REFERENCE.
12223 * python/py-type.c (typy_lookup_type): Likewise.
12224
53cc15f5
AV
122252017-03-20 Artemiy Volkov <artemiyv@acm.org>
12226
12227 PR gdb/14441
12228 * c-exp.y (ptr_operator): Handle the '&&' token in the typename.
12229 * parse.c (insert_type): Change assert statement.
12230 (follow_types): Handle rvalue reference types.
12231 * parser-defs.h (enum type_pieces) <tp_rvalue_reference>: New
12232 constant.
12233
a65cfae5
AV
122342017-03-20 Artemiy Volkov <artemiyv@acm.org>
12235
12236 PR gdb/14441
12237 * ada-lang.c (ada_evaluate_subexp): Adhere to the new
12238 value_ref() interface.
12239 * c-valprint.c (c_value_print): Likewise.
12240 * infcall.c (value_arg_coerce): Likewise.
12241 * python/py-value.c (valpy_reference_value): Likewise.
12242 * valops.c (value_cast, value_reinterpret_cast)
12243 (value_dynamic_cast, typecmp): Likewise.
12244 (value_ref): Parameterize by kind of return value reference type.
12245 * value.h (value_ref): Add new parameter "refcode".
12246
3b224330
AV
122472017-03-20 Artemiy Volkov <artemiyv@acm.org>
12248
12249 PR gdb/14441
12250 * dwarf2read.c (read_tag_reference_type): Use
12251 lookup_lvalue_reference_type() instead of lookup_reference_type().
12252 * eval.c (evaluate_subexp_standard): Likewise.
12253 * f-exp.y: Likewise.
12254 * gdbtypes.c (make_reference_type, lookup_reference_type):
12255 Generalize with rvalue reference types.
12256 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): New
12257 convenience wrappers for lookup_reference_type().
12258 * gdbtypes.h (make_reference_type, lookup_reference_type): Add a
12259 reference kind parameter.
12260 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): Add
12261 wrappers for lookup_reference_type().
12262 * guile/scm-type.c (gdbscm_type_reference): Use
12263 lookup_lvalue_reference_type() instead of lookup_reference_type().
12264 * guile/scm-value.c (gdbscm_value_dynamic_type): Likewise.
12265 * parse.c (follow_types): Likewise.
12266 * python/py-type.c (typy_reference, typy_lookup_type): Likewise.
12267 * python/py-value.c (valpy_get_dynamic_type, valpy_getitem):
12268 Likewise.
12269 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
12270 (gdbpy_invoke_xmethod): Likewise.
12271 * stabsread.c: Provide extra argument to make_reference_type()
12272 call.
12273 * valops.c (value_ref, value_rtti_indirect_type): Use
12274 lookup_lvalue_reference_type() instead of lookup_reference_type().
12275
f9aeb8d4
AV
122762017-03-20 Artemiy Volkov <artemiyv@acm.org>
12277
12278 PR gdb/14441
12279 * gdbtypes.h (enum type_code) <TYPE_CODE_RVALUE_REF>: New constant.
12280 (TYPE_IS_REFERENCE): New macro.
12281 (struct type): Add rvalue_reference_type field.
12282 (TYPE_RVALUE_REFERENCE_TYPE): New macro.
12283
51457a05
MAL
122842017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
12285
12286 * NEWS: Add an entry about new '-file-list-shared-libraries' command.
12287 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries):
12288 New function definition.
12289 * mi/mi-cmds.c (mi_cmds): Add -file-list-shared-libraries command.
12290 * mi/mi-cmds.h (mi_cmd_file_list_shared_libraries):
12291 New function declaration.
12292 * mi/mi-interp.c (mi_output_solib_attribs): New Function.
12293 * mi/mi-interp.h: New file.
12294 * solib.c (info_sharedlibrary_command): Replace for loop with
12295 ALL_SO_LIBS macro
12296 * solib.h (update_solib_list): New function declaration.
12297 (so_list_head): Move macro.
12298 * solist.h (ALL_SO_LIBS): New macro.
12299
e696b3ad
MAL
123002017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
12301
12302 * infcmd.c (post_create_inferior): Remove unused argument in
12303 call to solib_add.
12304 * remote.c (remote_start_remote): Likewise.
12305 * solib-frv.c (frv_fetch_objfile_link_map): Likewise.
12306 * solib-svr4.c: (svr4_fetch_objfile_link_map): Likewise.
12307 (enable_break): Likewise.
12308 * solib.c (update_solib_list): Remove unused target argument
12309 and its documentation.
12310 (solib_add): Remove unused target argument. Remove unused
12311 argument in call to update_solib_list.
12312 (info_sharedlibrary_command): Remove unused argument in call
12313 to update_solib_list.
12314 (sharedlibrary_command): Remove unused argument in call to
12315 solib_add.
12316 (handle_solib_event): Likewise.
12317 (reload_shared_libraries): Likewise.
12318 * solib.h (solib_add): Remove unused target argument.
12319
dcb84eda
AA
123202017-03-20 Andreas Arnez <arnez@linux.vnet.ibm.com>
12321
12322 * s390-linux-tdep.c (is_rsi, is_rie): Remove functions.
12323 (s390_displaced_step_fixup): Cover relative branches with the
12324 default fixup handling. This fixes lack of support for some
12325 relative branch instructions.
12326
d9cb6cdc
SM
123272017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
12328
12329 * i386-gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Use
12330 ptid from regcache.
12331
1afaf9f4
SM
123322017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
12333
12334 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers,
12335 i386_darwin_store_inferior_registers): Use ptid from regcache.
12336
aac12e24
SM
123372017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
12338
12339 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers,
12340 i386bsd_store_inferior_registers): Use ptid from regcache.
12341
bbe1eef1
SM
123422017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
12343
12344 * hppa-obsd-nat.c (hppaobsd_fetch_registers,
12345 hppaobsd_store_registers): Use ptid from regcache.
12346
10799020
SM
123472017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
12348
12349 * hppa-nbsd-nat.c (hppanbsd_fetch_registers,
12350 hppanbsd_store_registers): Use ptid from regcache.
12351
00204cf7
SM
123522017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
12353
12354 * hppa-linux-nat.c (fetch_register, store_register): Use ptid
12355 from regcache. Use get_ptrace_pid.
12356
11a33714
SM
123572017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
12358
12359 * corelow.c (get_core_register_section): Use ptid from regcache,
12360 update doc.
12361
317cd492
SM
123622017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
12363
12364 * bsd-uthread.c (bsd_uthread_fetch_registers,
12365 bsd_uthread_store_registers): Use ptid from regcache, set and
12366 restore inferior_ptid.
12367
9ac8a7c2
SM
123682017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
12369
12370 * arm-nbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
12371 fetch_fp_regs, store_register, store_regs, store_fp_register,
12372 store_fp_regs): Use ptid from regcache.
12373
4ac4bb6a
SM
123742017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
12375
12376 * arm-linux-nat.c (fetch_fpregs, store_fpregs, fetch_regs,
12377 store_regs, fetch_wmmx_regs, store_wmmx_regs, fetch_vfp_regs,
12378 store_vfp_regs): Use ptid from regcache.
12379
9bcbdca8
PA
123802017-03-17 Pedro Alves <palves@redhat.com>
12381
12382 PR remote/21188
12383 * ser-base.c (ser_base_wait_for): Add comment.
12384 (do_ser_base_readchar): Improve comment based on the ser-unix.c's
12385 version.
12386 * ser-unix.c (hardwire_raw): Remove reference to
12387 scb->current_timeout.
12388 (wait_for, do_hardwire_readchar, hardwire_readchar): Delete.
12389 (hardwire_ops): Install ser_base_readchar instead of
12390 hardwire_readchar.
12391 * serial.h (struct serial) <current_timeout, timeout_remaining>:
12392 Remove fields.
12393
7503099f
JG
123942017-03-17 Jonah Graham <jonah@kichwacoders.com>
12395
12396 PR gdb/19637
12397 * python/lib/gdb/printer/bound_registers.py: Add support for
12398 Python 3.
12399
7942e96e
AA
124002017-03-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
12401
12402 * dwarf2loc.c (indirect_synthetic_pointer): Get data type of
12403 pointed-to DIE and pass it to dwarf2_evaluate_loc_desc_full.
12404 (dwarf2_evaluate_loc_desc_full): New parameter subobj_type; rename
12405 byte_offset to subobj_byte_offset. Fix the handling of
12406 DWARF_VALUE_STACK on big-endian targets when coming via an
12407 implicit pointer.
12408 (dwarf2_evaluate_loc_desc): Adjust call to
12409 dwarf2_evaluate_loc_desc_full.
12410 * dwarf2loc.h (dwarf2_fetch_die_type_sect_off): New declaration.
12411 * dwarf2read.c (dwarf2_fetch_die_type_sect_off): New function.
12412
ba14f379
YQ
124132017-03-16 Yao Qi <yao.qi@linaro.org>
12414
12415 * arm-tdep.c (thumb_record_misc): Decode CBNZ, CBZ, REV16,
12416 and REVSH instructions.
12417
b121eeb9
YQ
124182017-03-16 Yao Qi <yao.qi@linaro.org>
12419
12420 * arm-tdep.c [GDB_SELF_TEST]: include "selftests.h".
12421 (arm_record_test): Declare.
12422 (_initialize_arm_tdep) [GDB_SELF_TEST]: call register_self_test.
12423 (thumb_record_ld_st_reg_offset): Rewrite the opcode matching to
12424 align with the manual.
12425 (thumb_record_misc): Adjust the code order to align with the
12426 manual.
12427 (thumb2_record_decode_insn_handler): Fix instruction matching.
12428 (instruction_reader_thumb): New class.
12429 (arm_record_test): New function.
12430
728a7913
YQ
124312017-03-16 Yao Qi <yao.qi@linaro.org>
12432
12433 * arm-tdep.c (abstract_memory_reader): New class.
12434 (instruction_reader): New class.
12435 (extract_arm_insn): Add argument 'reader'. Callers updated.
12436 (decode_insn): Likewise.
12437
34b43320
DE
124382017-03-16 Doug Evans <dje@google.com>
12439
a7c0469f
DE
12440 * guile/scm-lazy-string.c (lazy_string_smob): Clarify use of LENGTH
12441 member. Change type of TYPE member to SCM. All uses updated.
12442 (lsscm_make_lazy_string_smob): Add assert.
12443 (lsscm_make_lazy_string): Flag bad length values.
12444 (lsscm_elt_type): New function.
12445 (gdbscm_lazy_string_to_value): Rewrite to use
12446 lsscm_safe_lazy_string_to_value.
12447 (lsscm_safe_lazy_string_to_value): Fix handling of TYPE_CODE_PTR.
12448 * guile/scm-value.c (gdbscm_value_to_lazy_string): Flag bad length
12449 values. Fix TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle typedefs
12450 in incoming type.
12451 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
12452 * guile/scm-type.c (tyscm_scm_to_type): New function.
12453
124542017-03-15 Doug Evans <dje@google.com>
12455
34b43320
DE
12456 PR python/17728, python/18439, python/18779
12457 * python/py-lazy-string.c (lazy_string_object): Clarify use of LENGTH
12458 member. Change type of TYPE member to PyObject *. All uses updated.
12459 (stpy_convert_to_value): Fix handling of TYPE_CODE_PTR.
12460 (gdbpy_create_lazy_string_object): Flag bad length values.
12461 Handle TYPE_CODE_ARRAY with possibly different user-provided length.
12462 Handle typedefs in incoming type.
12463 (stpy_lazy_string_elt_type): New function.
12464 (gdbpy_extract_lazy_string): Call it.
12465 * python/py-value.c (valpy_lazy_string): Flag bad length values.
12466 Fix handling of TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle
12467 typedefs in incoming type.
12468
a3a5fecc
DE
124692017-03-16 Doug Evans <dje@google.com>
12470
12471 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
12472 * guile/scm-type.c (tyscm_scm_to_type): New function.
12473
28f1c605
JW
124742017-03-16 Jiong Wang <jiong.wang@arm.com>
12475
12476 * inf-ptrace.c (inf_ptrace_peek_poke): Change the type to
12477 "ULONGEST" for "skip".
12478
87c336f6
AA
124792017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
12480
12481 PR gdb/21220
12482 * inf-ptrace.c (inf_ptrace_xfer_partial): In "case
12483 TARGET_OBJECT_MEMORY", extract the logic for ptrace peek/poke...
12484 (inf_ptrace_peek_poke): ...here. New function. Now also loop
12485 over ptrace peek/poke until end of buffer or error.
12486
cf81cf60
SM
124872017-03-14 Simon Marchi <simon.marchi@ericsson.com>
12488
12489 * parse.c (length_of_subexp): Make static.
12490 * parser-defs.h (length_of_subexp): Remove.
12491
a379284a
AA
124922017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
12493
12494 * linux-nat.c (linux_proc_xfer_partial): Handle write operations
12495 as well.
12496
8a6200ba
PA
124972017-03-14 Pedro Alves <palves@redhat.com>
12498
12499 * cp-name-parser.y (cp_demangled_name_to_comp): Update comment.
12500 (main): Use std::unique_ptr. Remove calls to
12501 cp_demangled_name_parse_free.
12502
f79ec206
SM
125032017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12504
12505 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers,
12506 alphabsd_store_inferior_registers): Use regcache->ptid instead
12507 of inferior_ptid.
12508
edb5fb00
SM
125092017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12510
12511 * aix-thread.c (aix_thread_fetch_registers,
12512 aix_thread_store_registers): Use regcache->ptid instead of
12513 inferior_ptid.
12514
55119686
SM
125152017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12516
12517 * aarch64-linux-nat.c (fetch_gregs_from_thread,
12518 store_gregs_to_thread, fetch_fpregs_from_thread,
12519 store_fpregs_to_thread): Use regcache->ptid instead of
12520 inferior_ptid.
12521
6a06fbb7
SM
125222017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12523
12524 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers,
12525 amd64_linux_fetch_inferior_registers): Use regcache->ptid
12526 instead of inferior_ptid.
12527
c6386875
SM
125282017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12529
12530 * target.c (target_fetch_registers, target_store_registers): Add
12531 assert.
12532
ddaaf0fb
SM
125332017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12534
12535 * regcache.h (regcache_get_ptid): New function.
12536 * regcache.c (regcache_get_ptid): New function.
12537
b9da89d1 125382017-03-13 Mark Wielaard <mark@klomp.org>
12539
12540 * cp-name-parser.y (make_empty): Initialize d_printing to zero.
12541
5f4d1085
KS
125422017-03-10 Keith Seitz <keiths@redhat.com>
12543
12544 PR c++/8218
12545 * c-typeprint.c (cp_type_print_method_args): Skip artificial arguments.
12546
c65d6b55
PA
125472017-03-08 Pedro Alves <palves@redhat.com>
12548
12549 PR gdb/18360
12550 * infrun.c (start_step_over, do_target_resume, resume)
12551 (restart_threads): Assert we're not resuming a thread that is
12552 meant to be stopped.
12553 (infrun_thread_stop_requested_callback): Delete.
12554 (infrun_thread_stop_requested): If the thread is internally
12555 stopped, queue a pending stop event and clear the thread's
12556 inline-frame state.
12557 (handle_stop_requested): New function.
12558 (handle_syscall_event, handle_inferior_event_1): Use
12559 handle_stop_requested.
12560 (handle_stop_requested): New function.
12561 (handle_signal_stop): Set the thread's stop_signal here instead of
12562 at caller.
12563 (finish_step_over): Clear step over info unconditionally.
12564 (handle_signal_stop): If the user had interrupted the event
12565 thread, consider the stop a random signal.
12566 (handle_signal_stop) <signal arrived while stepping over
12567 breakpoint>: Don't restart threads here.
12568 (stop_waiting): Don't clear step-over info here.
12569
15c22686
PA
125702017-03-08 Pedro Alves <palves@redhat.com>
12571
12572 PR 21206
12573 * common/gdb_unlinker.h (unlinker::unlinker): Attribute nonnull
12574 goes to argument 2, not 1.
12575
6e5d74e7
PA
125762017-03-08 Pedro Alves <palves@redhat.com>
12577
12578 PR cli/21218
12579 * top.c (gdb_readline_wrapper): Avoid passing NULL to
12580 display_gdb_prompt.
12581 (command_line_input): Add comment.
12582
9753a2f6
PA
125832017-03-08 Pedro Alves <palves@redhat.com>
12584
12585 PR tui/21216
12586 * tui/tui-file.c (tui_file::write): New.
12587 * tui/tui-file.h (tui_file): Override "write".
12588 * tui/tui-io.c (do_tui_putc, update_start_line): New functions,
12589 factored out from ...
12590 (tui_puts): ... here.
12591 (tui_putc): Use them.
12592 (tui_write): New function.
12593 * tui/tui-io.h (tui_write): Declare.
12594
1672e0d9
SDJ
125952017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
12596
12597 * Makefile.in (SFILES): Replace "environ.c" with
12598 "common/environ.c".
12599 (HFILES_NO_SRCDIR): Likewise, for "environ.h".
12600 * environ.c: Include "common-defs.h" instead of "defs.h. Moved
12601 to...
12602 * common/environ.c: ... here.
12603 * environ.h: Moved to...
12604 * common/environ.h: ... here.
12605
f7bb4e3a
PB
126062017-03-07 Peter Bergner <bergner@vnet.ibm.com>
12607
12608 * gdbarch.sh (pstring_ptr): New static function.
12609 (gdbarch_disassembler_options): Use it.
12610 (gdbarch_verify_disassembler_options): Print valid_disassembler_options,
12611 not valid_disassembler_option->name.
12612 * gdbarch.c: Regenerate.
12613
e45ced6c
PB
126142017-03-07 Peter Bergner <bergner@vnet.ibm.com>
12615
12616 * config/powerpc/ppc64-linux.mh (MH_CFLAGS): Delete.
12617
5f6fd321
PA
126182017-03-07 Pedro Alves <palves@redhat.com>
12619
12620 * tui/tui-regs.c (tui_restore_gdbout): Don't delete gdb_stdout.
12621
6dbb839a 126222017-03-07 Walfred Tedeschi <walfred.tedeschi@intel.com>
4a612d6f
WT
12623
12624 * i387-tdep.h (i387_reset_bnd_regs): Add function definition.
12625 * i387-tdep.c (i387_reset_bnd_regs): Add function implementation.
12626 * i386-tdep.c (i386_push_dummy_call): Call i387_reset_bnd_regs.
6dbb839a 12627 * amd64-tdep.c (amd64_push_dummy_call): Call i387_reset_bnd_regs.
4a612d6f 12628
d274ecf4
SM
126292017-03-06 Simon Marchi <simon.marchi@ericsson.com>
12630
12631 * xtensa-linux-nat.c (fetch_gregs): Remove const.
12632
df97be55
SM
126332017-03-03 Simon Marchi <simon.marchi@ericsson.com>
12634
12635 * remote.c (remote_add_target_side_commands): Use range-based
12636 for loop.
12637
7d45f3df
YQ
126382017-03-03 Yao Qi <yao.qi@linaro.org>
12639
12640 PR gdb/21165
12641 * ada-valprint.c (ada_val_print_ref): Call value_fetch_lazy if
12642 value is lazy.
12643 * valprint.c (common_val_print): Likewise.
12644
65b48a81
PB
126452017-02-28 Peter Bergner <bergner@vnet.ibm.com>
12646
12647 * NEWS: Mention new set/show disassembler-options commands.
12648 * doc/gdb.texinfo: Document new set/show disassembler-options commands.
12649 * disasm.c: Include "arch-utils.h", "gdbcmd.h" and "safe-ctype.h".
12650 (prospective_options): New static variable.
12651 (gdb_disassembler::gdb_disassembler): Initialize
12652 m_di.disassembler_options.
12653 (gdb_buffered_insn_length_init_dis): Initilize di->disassembler_options.
12654 (get_disassembler_options): New function.
12655 (set_disassembler_options): Likewise.
12656 (set_disassembler_options_sfunc): Likewise.
12657 (show_disassembler_options_sfunc): Likewise.
12658 (disassembler_options_completer): Likewise.
12659 (_initialize_disasm): Likewise.
12660 * disasm.h (get_disassembler_options): New prototype.
12661 (set_disassembler_options): Likewise.
12662 * gdbarch.sh (gdbarch_disassembler_options): New variable.
12663 (gdbarch_verify_disassembler_options): Likewise.
12664 * gdbarch.c: Regenerate.
12665 * gdbarch.h: Likewise.
12666 * arm-tdep.c (num_disassembly_options): Delete.
12667 (set_disassembly_style): Likewise.
12668 (arm_disassembler_options): New static variable.
12669 (set_disassembly_style_sfunc): Convert short style name into long
12670 option name. Call set_disassembler_options.
12671 (show_disassembly_style_sfunc): New function.
12672 (arm_gdbarch_init): Call set_gdbarch_disassembler_options and
12673 set_gdbarch_verify_disassembler_options.
12674 (_initialize_arm_tdep): Delete regnames variable and update callers.
12675 (arm_disassembler_options): Initialize.
12676 (disasm_options): New variable.
12677 (num_disassembly_options): Rename from this...
12678 (num_disassembly_styles): ...to this. Compute by scanning through
12679 disasm_options.
12680 (valid_disassembly_styles): Initialize using disasm_options.
12681 Remove calls to parse_arm_disassembler_option, get_arm_regnames and
12682 set_arm_regname_option.
12683 Pass show_disassembly_style_sfunc to the "disassembler" setshow command.
12684 * rs6000-tdep.c (powerpc_disassembler_options): New static variable.
12685 (rs6000_gdbarch_init): Call set_gdbarch_disassembler_options and
12686 set_gdbarch_verify_disassembler_options.
12687 * s390-tdep.c (s390_disassembler_options): New static variable.
12688 (s390_gdbarch_init):all set_gdbarch_disassembler_options and
12689 set_gdbarch_verify_disassembler_options.
12690
d538e36d
SM
126912017-02-27 Simon Marchi <simon.marchi@ericsson.com>
12692
12693 * remote.c (remote_add_target_side_condition): Remove "struct"
12694 keyword from range-based for loop.
12695
83621223
SM
126962017-02-27 Simon Marchi <simon.marchi@ericsson.com>
12697
12698 * remote.c (remote_add_target_side_condition): Use range-based
12699 for loop. Update comment.
12700
2123df0e
YQ
127012017-02-27 Yao Qi <yao.qi@linaro.org>
12702
12703 * f-typeprint.c (f_print_type): Check "varstring" is empty first.
12704
8e368124
AH
127052017-02-26 Alan Hayward <alan.hayward@arm.com>
12706
12707 * regcache.c (regcache_raw_update): New function.
12708 (regcache_raw_read): Move code to regcache_raw_update.
12709 * regcache.h (regcache_raw_update): New declaration.
12710 * remote.c (remote_prepare_to_store): Call regcache_raw_update.
12711
a49dd8dd
JK
127122017-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
12713
12714 * dwarf2read.c (create_debug_type_hash_table): Initialize
12715 header.signature and header.type_offset_in_tu.
12716
34e4bae9
PA
127172017-02-24 Pedro Alves <palves@redhat.com>
12718
12719 * symtab.c (make_file_symbol_completion_list_1): Use
12720 add_symtab_completions.
12721
b0e4b369
AH
127222017-02-24 Alan Hayward <alan.hayward@arm.com>
12723
12724 * stack.c (frame_info): Use frame_unwind_register_value to avoid buf.
12725
975c21ab
AH
127262017-02-24 Alan Hayward <alan.hayward@arm.com>
12727
12728 * i386-tdep.c (i386_pseudo_register_read_into_value): Use
12729 I386_MAX_REGISTER_SIZE.
12730 (i386_pseudo_register_write): Likewise.
12731 (i386_process_record): Likewise.
12732 * i387-tdep.c (i387_supply_xsave): Likewise.
12733 * m68k-linux-nat.c (fetch_register): Use M68K_MAX_REGISTER_SIZE.
12734 (store_register): Likewise.
12735
14bc53a8
PA
127362017-02-23 Pedro Alves <palves@redhat.com>
12737
12738 * ada-lang.c: Include "common/function-view.h".
12739 (ada_iterate_over_symbols): Adjust to use function_view as
12740 callback type.
12741 (struct add_partial_datum, ada_complete_symbol_matcher): Delete.
12742 (ada_make_symbol_completion_list): Use a lambda.
12743 (ada_exc_search_name_matches): Delete.
12744 (name_matches_regex): New.
12745 (ada_add_global_exceptions): Use a lambda and name_matches_regex.
12746 * compile/compile-c-support.c: Include "common/function-view.h".
12747 (print_one_macro): Change prototype to accept a ui_file pointer.
12748 (write_macro_definitions): Use a lambda.
12749 * dwarf2read.c: Include "common/function-view.h".
12750 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
12751 (dw2_expand_symtabs_matching): Adjust to use function_view as
12752 callback type.
12753 * language.h: Include "common/function-view.h".
12754 (struct language_defn) <la_iterate_over_symbols>: Adjust to use
12755 function_view as callback type.
12756 (LA_ITERATE_OVER_SYMBOLS): Remove DATA parameter.
12757 * linespec.c: Include "common/function-view.h".
12758 (collect_info::add_symbol): New method.
12759 (struct symbol_and_data_callback, iterate_inline_only, struct
12760 symbol_matcher_data, iterate_name_matcher): Delete.
12761 (iterate_over_all_matching_symtabs): Adjust to use function_view
12762 as callback type and lambdas.
12763 (iterate_over_file_blocks): Adjust to use function_view as
12764 callback type.
12765 (decode_compound_collector): Now a class with private fields.
12766 (decode_compound_collector::release_symbols): New method.
12767 (collect_one_symbol): Rename to...
12768 (decode_compound_collector::operator()): ... this and adjust.
12769 (lookup_prefix_sym): decode_compound_collector construction bits
12770 move to decode_compound_collector ctor. Pass the
12771 decode_compound_collector object directly as callback. Remove
12772 cleanups and use decode_compound_collector::release_symbols
12773 instead.
12774 (symtab_collector): Now a class with private fields.
12775 (symtab_collector::release_symtabs): New method.
12776 (add_symtabs_to_list): Rename to...
12777 (symtab_collector::operator()): ... this and adjust.
12778 (collect_symtabs_from_filename): symtab_collector construction
12779 bits move to symtab_collector ctor. Pass the symtab_collector
12780 object directly as callback. Remove cleanups and use
12781 symtab_collector::release_symtabs instead.
12782 (collect_symbols): Delete.
12783 (add_matching_symbols_to_info): Use lambdas.
12784 * macrocmd.c (print_macro_callback): Delete.
12785 (info_macro_command): Use a lambda.
12786 (info_macros_command): Pass print_macro_definition as callable
12787 directly.
12788 (print_one_macro): Remove 'ignore' parameter.
12789 (macro_list_command): Adjust.
12790 * macrotab.c (macro_for_each_data::fn): Now a function_view.
12791 (macro_for_each_data::user_data): Delete field.
12792 (foreach_macro): Adjust to call the function_view.
12793 (macro_for_each): Adjust to use function_view as callback type.
12794 (foreach_macro_in_scope): Adjust to call the function_view.
12795 (macro_for_each_in_scope): Adjust to use function_view as callback
12796 type.
12797 * macrotab.h: Include "common/function-view.h".
12798 (macro_callback_fn): Declare a prototype instead of a pointer.
12799 Remove "user_data" parameter.
12800 (macro_for_each, macro_for_each_in_scope): Adjust to use
12801 function_view as callback type.
12802 * psymtab.c (partial_map_expand_apply)
12803 (psym_map_symtabs_matching_filename, recursively_search_psymtabs):
12804 Adjust to use function_view as callback type and to return bool.
12805 (psym_expand_symtabs_matching): Adjust to use function_view as
12806 callback types.
12807 * symfile-debug.c (debug_qf_map_symtabs_matching_filename): Adjust
12808 to use function_view as callback type and to return bool.
12809 (debug_qf_expand_symtabs_matching): Adjust to use function_view as
12810 callback types.
12811 * symfile.c (expand_symtabs_matching): Adjust to use function_view
12812 as callback types.
12813 * symfile.h: Include "common/function-view.h".
12814 (expand_symtabs_file_matcher_ftype)
12815 (expand_symtabs_symbol_matcher_ftype)
12816 (expand_symtabs_exp_notify_ftype): Remove "data" parameter and
12817 return bool.
12818 (quick_symbol_functions::map_symtabs_matching_filename)
12819 (quick_symbol_functions::expand_symtabs_matching): Adjust to use
12820 function_view as callback type and return bool.
12821 (expand_symtabs_matching): Adjust to use function_view as callback
12822 type.
12823 (maintenance_expand_name_matcher)
12824 (maintenance_expand_file_matcher): Delete.
12825 (maintenance_expand_symtabs): Use lambdas.
12826 * symtab.c (iterate_over_some_symtabs): Adjust to use
12827 function_view as callback types and return bool.
12828 (iterate_over_symtabs): Likewise. Use unique_xmalloc_ptr instead
12829 of a cleanup.
12830 (lookup_symtab_callback): Delete.
12831 (lookup_symtab): Use a lambda.
12832 (iterate_over_symbols): Adjust to use function_view as callback
12833 type.
12834 (struct search_symbols_data, search_symbols_file_matches)
12835 (search_symbols_name_matches): Delete.
12836 (search_symbols): Use a pair of lambdas.
12837 (struct add_name_data, add_macro_name, symbol_completion_matcher)
12838 (symtab_expansion_callback): Delete.
12839 (default_make_symbol_completion_list_break_on_1): Use lambdas.
12840 * symtab.h: Include "common/function-view.h".
12841 (iterate_over_some_symtabs): Adjust to use function_view as
12842 callback type and return bool.
12843 (iterate_over_symtabs): Adjust to use function_view as callback
12844 type.
12845 (symbol_found_callback_ftype): Remove 'data' parameter and return
12846 bool.
12847 (iterate_over_symbols): Adjust to use function_view as callback
12848 type.
12849
07e253aa
PA
128502017-02-23 Pedro Alves <palves@redhat.com>
12851
12852 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS): New.
12853 (%.o) <unittests/%.c>: New pattern.
12854 * configure.ac ($development): Add $(SUBDIR_UNITTESTS_OBS) to
12855 CONFIG_OBS, and $(SUBDIR_UNITTESTS_SRCS) to CONFIG_SRCS.
12856 * common/function-view.h: New file.
12857 * unittests/function-view-selftests.c: New file.
12858 * configure: Regenerate.
12859
8eaf5320
SM
128602017-02-23 Simon Marchi <simon.marchi@ericsson.com>
12861
12862 * bsd-uthread.c (bsd_uthread_thread_alive): Use ptid instead of
12863 inferior_ptid.
12864 * go32-nat.c (go32_thread_alive): Likewise.
12865
38768751
YQ
128662017-02-23 Yao Qi <yao.qi@linaro.org>
12867
12868 * varobj-iter.h (varobj_iter_delete): Call xfree instead of
12869 delete.
12870
0a8beaba
YQ
128712017-02-23 Yao Qi <yao.qi@linaro.org>
12872
12873 * varobj.c (varobj_clear_saved_item): Use delete instead of
12874 xfree.
12875 (update_dynamic_varobj_children): Likewise.
12876
58fdfd2c
JK
128772017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12878
12879 * dwarf2read.c (dwarf2_record_block_ranges): Add forgotten BASEADDR.
12880
1b90b139
SM
128812017-02-21 Simon Marchi <simon.marchi@ericsson.com>
12882
12883 * common/enum-flags.h (enum_flags::enum_flags): Initialize
12884 m_enum_value to 0 in default constructor.
12885
2039d74e
EBM
128862017-02-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12887
12888 * rs6000-tdep.c (LOAD_AND_RESERVE_MASK): Rename from LWARX_MASK.
12889 (STORE_CONDITIONAL_MASK): Rename from STWCX_MASK.
12890 (LBARX_INSTRUCTION, LHARX_INSTRUCTION, LQARX_INSTRUCTION,
12891 STBCX_INSTRUCTION, STHCX_INSTRUCTION, STQCX_INSTRUCTION): New defines.
12892 (IS_LOAD_AND_RESERVE_INSN, IS_STORE_CONDITIONAL_INSN): New macros.
12893 (ppc_displaced_step_copy_insn): Use IS_LOAD_AND_RESERVE_INSN.
12894 (ppc_deal_with_atomic_sequence): Use IS_LOAD_AND_RESERVE_INSN and
12895 IS_STORE_CONDITIONAL_INSN.
12896
7814882a
JK
128972017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12898
12899 * dwarf2_rnglists_process: Initialize range_beginning and range_end.
12900
0ae60b63
JK
129012017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12902
12903 * NEWS (Changes since GDB 7.12): Add DWARF-5.
12904
0224619f
JK
129052017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12906
12907 * dwarf2read.c (skip_one_die, read_attribute_value)
12908 (dwarf2_const_value_attr, dump_die_shallow)
12909 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
12910 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_data16.
12911
0af92d60
JK
129122017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12913
12914 * dwarf2read.c (read_file_scope): Rename DW_MACRO_GNU_*.
12915 (dwarf_parse_macro_header): Accept DWARF version 5.
12916 (dwarf_decode_macro_bytes, dwarf_decode_macros): Rename DW_MACRO_GNU_*.
12917
216f72a1
JK
129182017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12919
12920 * block.c (call_site_for_pc): Rename DW_OP_GNU_*, DW_TAG_GNU_* and
12921 DW_AT_GNU_*.
12922 * common/common-exceptions.h (enum errors): Likewise.
12923 * dwarf2-frame.c (class dwarf_expr_executor): Likewise.
12924 * dwarf2expr.c (dwarf_block_to_dwarf_reg)
12925 (dwarf_expr_context::execute_stack_op): Likewise.
12926 * dwarf2expr.h (struct dwarf_expr_context, struct dwarf_expr_piece):
12927 Likewise.
12928 * dwarf2loc.c (dwarf_evaluate_loc_desc::get_base_type)
12929 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
12930 (show_entry_values_debug, call_site_to_target_addr)
12931 (func_addr_to_tail_call_list, func_verify_no_selftailcall)
12932 (dwarf_expr_reg_to_entry_parameter, dwarf_entry_parameter_to_value)
12933 (entry_data_value_free_closure, value_of_dwarf_reg_entry)
12934 (value_of_dwarf_block_entry, indirect_pieced_value)
12935 (symbol_needs_eval_context::push_dwarf_reg_entry_value):
12936 (disassemble_dwarf_expression): Likewise.
12937 * dwarf2read.c (process_die, inherit_abstract_dies)
12938 (read_call_site_scope): Likewise.
12939 * gdbtypes.h (struct func_type, struct call_site_parameter)
12940 (struct call_site): Likewise.
12941 * stack.c (read_frame_arg): Likewise.
12942 * std-operator.def (OP_VAR_ENTRY_VALUE): Likewise.
12943
43988095
JK
129442017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12945
12946 * defs.h (read_unsigned_leb128): New declaration.
12947 * dwarf2loc.c (decode_debug_loclists_addresses): New function.
12948 (decode_debug_loc_dwo_addresses): Update DEBUG_LOC_* to DW_LLE_*.
12949 (dwarf2_find_location_expression): Call also
12950 decode_debug_loclists_addresses. Handle DWARF-5 ULEB128 length.
12951 * dwarf2loc.h (dwarf2_version): New declaration.
12952 * dwarf2read.c (struct dwarf2_per_objfile): Add loclists, line_str,
12953 rnglists.
12954 (dwarf2_elf_names): Add .debug_loclists, .debug_line_str,
12955 .debug_rnglists.
12956 (struct dwop_section_names): Add loclists_dwo.
12957 (dwop_section_names): Add .debug_loclists.dwo.
12958 (struct comp_unit_head): Add unit_type, signature, type_offset_in_tu.
12959 (struct dwarf2_per_cu_data): Add dwarf_version.
12960 (struct dwo_sections): Add loclists.
12961 (struct attr_abbrev): Add implicit_const.
12962 (read_indirect_line_string): New declaration.
12963 (read_unsigned_leb128): Delete declaration.
12964 (rcuh_kind): New definition.
12965 (read_and_check_comp_unit_head): Change parameter
12966 is_debug_types_section to section_kind.
12967 (dwarf2_locate_sections): Handle loclists, line_str and rnglists.
12968 (read_comp_unit_head): Change parameter abfd to section, add parameter
12969 section_kind. Handle DWARF-5.
12970 (error_check_comp_unit_head): Accept also DWARF version 5.
12971 (read_and_check_comp_unit_head): Change parameter
12972 is_debug_types_section to section_kind.
12973 (read_and_check_type_unit_head): Delete function.
12974 (read_abbrev_offset): Handle DWARF-5.
12975 (create_debug_type_hash_table): Add parameter section_kind. Process
12976 only DW_UT_type. Use signature and type_offset_in_tu from struct
12977 comp_unit_head.
12978 (create_debug_types_hash_table): Update create_debug_type_hash_table
12979 caller.
12980 (create_all_type_units): Call create_debug_type_hash_table.
12981 (read_cutu_die_from_dwo, init_cutu_and_read_dies): Change
12982 read_and_check_type_unit_head caller to read_and_check_comp_unit_head
12983 caller.
12984 (skip_one_die): Handle DW_FORM_implicit_const.
12985 (dwarf2_rnglists_process): New function.
12986 (dwarf2_ranges_process): Call dwarf2_rnglists_process for DWARF-5.
12987 (abbrev_table_read_table): Handle DW_FORM_implicit_const.
12988 (read_attribute_value): Handle DW_FORM_implicit_const,
12989 DW_FORM_line_strp.
12990 (read_attribute): Handle DW_FORM_implicit_const.
12991 (read_indirect_string_at_offset_from): New function from
12992 read_indirect_string_at_offset.
12993 (read_indirect_string_at_offset): Call
12994 read_indirect_string_at_offset_from.
12995 (read_indirect_line_string_at_offset): New function.
12996 (read_indirect_string): New function comment.
12997 (read_indirect_line_string): New function.
12998 (read_unsigned_leb128): Make it global.
12999 (dwarf2_string_attr): Handle DWARF-5.
13000 (add_include_dir_stub, read_formatted_entries): New functions.
13001 (dwarf_decode_line_header, dump_die_shallow, cu_debug_loc_section):
13002 Handle DWARF-5.
13003 (per_cu_header_read_in): Update read_comp_unit_head caller.
13004 (dwarf2_version): New function.
13005 * symfile.h (struct dwarf2_debug_sections): Add loclists, line_str and
13006 rnglists.
13007 * xcoffread.c (dwarf2_xcoff_names): Update struct dwarf2_debug_sections
13008 fields.
13009
22d2f3ab
JK
130102017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
13011
13012 * dwarf2read.c (abbrev_table_read_table): Read the data only once.
13013
5f46c5a5
JK
130142017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
13015
13016 * dwarf2read.c (dwarf2_ranges_process): New function from
13017 dwarf2_ranges_read.
13018 (dwarf2_ranges_read, dwarf2_record_block_ranges): Use
13019 dwarf2_ranges_process.
13020
78d4d2c5
JK
130212017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
13022
13023 * dwarf2read.c (create_debug_type_hash_table): New function from
13024 create_debug_types_hash_table.
13025 (create_debug_types_hash_table): Call create_debug_type_hash_table.
13026 (create_all_type_units, open_and_init_dwo_file): Update
13027 create_debug_types_hash_table callers.
13028
1b076f25
SDJ
130292017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
13030
13031 PR gdb/16188
13032 * fork-child.c (trace_start_error): Fix thinko. va_end should
13033 refer to 'ap', not 'args'.
13034
0db8980c
SDJ
130352017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
13036 Pedro Alves <palves@redhat.com>
13037
13038 PR gdb/16188
13039 * darwin-nat.c (darwin_ptrace_me): Check if calls to system
13040 calls succeeded.
13041 * fork-child.c (trace_start_error): New function.
13042 (trace_start_error_with_name): Likewise.
13043 * gnu-nat.c (gnu_ptrace_me): Check if call to PTRACE succeeded.
13044 * inf-ptrace.c (inf_ptrace_me): Likewise.
13045 * inferior.h (trace_start_error): New prototype.
13046 (trace_start_error_with_name): Likewise.
13047
99e8a4f9
SDJ
130482017-02-15 Sergio Durigan Junior <sergiodj@redhat.com>
13049
13050 PR gdb/21164
13051 * psymtab.c (maintenance_print_psymbols): Verify if 'argv' is not
13052 NULL before using it.
13053 * symmisc.c (maintenance_print_symbols): Likewise.
13054 (maintenance_print_msymbols): Likewise.
13055
4e746bb6
TW
130562017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
13057
13058 * NEWS: Add record Python bindings entry.
13059
130602017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
13061
13062 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-record-btrace.o,
13063 py-record-full.o.
13064 (SUBDIR_PYTHON_SRCS): Add py-record-btrace.c, py-record-full.c.
13065 * python/py-record-btrace.c, python/py-record-btrace.h,
13066 python/py-record-full.c, python/py-record-full.h: New file.
13067 * python/py-record.c: Add include for py-record-btrace.h and
13068 py-record-full.h.
13069 (recpy_method, recpy_format, recpy_goto, recpy_replay_position,
13070 recpy_instruction_history, recpy_function_call_history, recpy_begin,
13071 recpy_end): Use functions from py-record-btrace.c and py-record-full.c.
13072 * python/python-internal.h (PyInt_FromSsize_t, PyInt_AsSsize_t):
13073 New definition.
13074 (gdbpy_initialize_btrace): New export.
13075 * python/python.c (_initialize_python): Add gdbpy_initialize_btrace.
13076
130772017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
13078
13079 * Makefile.in (SUBDIR_PYTHON_OBS): Add python/py-record.o.
13080 (SUBDIR_PYTHON_SRCS): Add python/py-record.c.
13081 * python/py-record.c: New file.
13082 * python/python-internal.h (gdbpy_start_recording,
13083 gdbpy_current_recording, gdpy_stop_recording,
13084 gdbpy_initialize_record): New export.
13085 * python/python.c (_initialize_python): Add gdbpy_initialize_record.
13086 (python_GdbMethods): Add gdbpy_start_recording,
13087 gdbpy_current_recording and gdbpy_stop_recording.
13088
130892017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
13090
13091 * record-btrace.c (record_btrace_record_method): New function.
13092 (init_record_btrace_ops): Initialize to_record_method.
13093 * record-full.c (record_full_record_method): New function.
13094 (init_record_full_ops, init_record_full_core_ops): Add
13095 record_full_record_method.
13096 * record.h (enum record_method): New enum.
13097 * target-debug.h (target_debug_print_enum_record_method: New define.
13098 * target-delegates.c: Regenerate.
13099 * target.c (target_record_method): New function.
13100 * target.h: Include record.h.
13101 (struct target_ops) <to_record_method>: New field.
13102 (target_record_method): New export.
13103
131042017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
13105
13106 * record.h (record_start, record_stop): New export.
13107 * record.c (record_start, record_stop): New function.
13108
131092017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
13110
13111 * btrace.c (btrace_fetch): Copy function call segments pointer
13112 into a vector.
13113 (btrace_clear): Clear the vector.
13114 (btrace_find_insn_by_number): Use binary search to find the correct
13115 function call segment.
13116 * btrace.h (brace_fun_p): New typedef.
13117 (struct btrace_thread_info) <functions>: New field.
13118
131192017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
13120
13121 * record-btrace.c (btrace_ui_out_decode_error): Move most of it ...
13122 * btrace.c (btrace_decode_error): ... here. New function.
13123 * btrace.h (btrace_decode_error): New export.
13124
131252017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
13126
13127 * btrace.c (ftrace_call_num_insn, btrace_insn_get_error): New function.
13128 (ftrace_new_function, btrace_insn_number, btrace_insn_cmp,
13129 btrace_find_insn_by_number): Remove special case for gaps.
13130 * btrace.h (btrace_insn_get_error): New export.
13131 (btrace_insn_number, btrace_find_insn_by_number): Adjust comment.
13132 * record-btrace.c (btrace_insn_history): Print number for gaps.
13133 (record_btrace_info, record_btrace_goto): Handle gaps.
13134
3f77c769
TT
131352017-02-14 Tom Tromey <tom@tromey.com>
13136
13137 PR python/13598:
13138 * python/python.c (gdbpy_before_prompt_hook): Emit before_prompt
13139 event.
13140 * python/py-evts.c (gdbpy_initialize_py_events): Add
13141 before_prompt registry.
13142 * python/py-events.h (events_object) <before_prompt>: New field.
13143
4c2c7ac6
MM
131442017-02-14 Markus Metzger <markus.t.metzger@intel.com>
13145
13146 * btrace.c (ftrace_new_switch): Preserve up link and flags.
13147
5cf30ebf
LM
131482017-02-13 Luis Machado <lgustavo@codesourcery.com>
13149
13150 * symfile (_initialize_symfile): Add usage text to the load command's
13151 help text.
13152
26a06916
SM
131532017-02-10 Simon Marchi <simon.marchi@ericsson.com>
13154
13155 * utils.c (defaulted_query): Don't query on secondary UIs.
13156
0b145e37
TT
131572017-02-10 Tom Tromey <tom@tromey.com>
13158
13159 * rust-lang.c (rust_get_disr_info): Remove unused variable.
13160
2d8365c4
TT
131612017-02-10 Tom Tromey <tom@tromey.com>
13162
13163 * python/py-value.c (valpy_richcompare_throw): Remove unnecessary
13164 "cleanup" local.
13165 * python/py-type.c (typy_legacy_template_argument): Remove
13166 unnecessary "cleanup" local.
13167
2bb8f231
TT
131682017-02-10 Tom Tromey <tom@tromey.com>
13169
13170 * python/python.c (do_start_initialization): New function, from
13171 _initialize_python.
13172 (_initialize_python): Call do_start_initialization.
13173 * python/py-linetable.c (ltpy_iternext): Use explicit returns, not
13174 goto.
13175
1bdfaf42
TT
131762017-02-10 Tom Tromey <tom@tromey.com>
13177
13178 * python/py-prettyprint.c (pretty_print_one_value): Use
13179 gdbpy_ref.
13180
88b6faea
TT
131812017-02-10 Tom Tromey <tom@tromey.com>
13182
13183 * python/py-cmd.c (cmdpy_destroyer): Use gdbpy_ref.
13184 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Use
13185 gdbpy_ref.
13186 * python/py-type.c (field_new): Use gdbpy_ref.
13187 * python/py-symtab.c (symtab_and_line_to_sal_object): Use
13188 gdbpy_ref.
13189 * python/py-progspace.c (pspy_new): Use gdbpy_ref.
13190 (py_free_pspace): Likewise.
13191 (pspace_to_pspace_object): Likewise.
13192 * python/py-objfile.c (objfpy_new): Use gdbpy_ref.
13193 (py_free_objfile): Likewise.
13194 (objfile_to_objfile_object): Likewise.
13195 * python/py-inferior.c (delete_thread_object): Use
13196 gdbpy_ref.
13197 (infpy_read_memory): Likewise.
13198 (py_free_inferior): Likewise.
13199 * python/py-evtregistry.c (create_eventregistry_object): Use
13200 gdbpy_ref.
13201 * python/py-event.c (create_event_object): Use gdbpy_ref.
13202
7780f186
TT
132032017-02-10 Tom Tromey <tom@tromey.com>
13204
13205 * python/py-ref.h (gdbpy_ref_policy): Now a template.
13206 (gdbpy_ref): Now a template; allow subclasses of PyObject to be
13207 used.
13208 * python/py-arch.c, python/py-bpevent.c, python/py-breakpoint.c,
13209 python/py-cmd.c, python/py-continueevent.c, python/py-event.c,
13210 python/py-exitedevent.c, python/py-finishbreakpoint.c,
13211 python/py-framefilter.c, python/py-function.c,
13212 python/py-inferior.c, python/py-infevents.c,
13213 python/py-linetable.c, python/py-newobjfileevent.c,
13214 python/py-param.c, python/py-prettyprint.c, python/py-ref.h,
13215 python/py-signalevent.c, python/py-stopevent.c,
13216 python/py-symbol.c, python/py-threadevent.c, python/py-type.c,
13217 python/py-unwind.c, python/py-utils.c, python/py-value.c,
13218 python/py-varobj.c, python/py-xmethods.c, python/python.c,
13219 varobj.c: Change gdbpy_ref to gdbpy_ref<>.
13220
d4b0bb18
TT
132212017-02-10 Tom Tromey <tom@tromey.com>
13222
13223 * ui-out.h (ui_out_emit_type): New class.
13224 (ui_out_emit_tuple, ui_out_emit_list): New typedefs.
13225 * python/py-framefilter.c (py_print_single_arg): Use gdb::optional
13226 and ui_out_emit_tuple.
13227 (enumerate_locals): Likewise.
13228 (py_mi_print_variables, py_print_locals, py_print_args): Use
13229 ui_out_emit_list.
13230 (py_print_frame): Use gdb::optional, ui_out_emit_tuple,
13231 ui_out_emit_list.
13232 * common/gdb_optional.h: New file.
13233
f67f945c
MG
132342017-02-10 Martin Galvan <martingalvan@sourceware.org>
13235
13236 * MAINTAINERS (Write After Approval): Update my e-mail address.
13237
18da0c51
MG
132382017-02-10 Martin Galvan <martingalvan@sourceware.org>
13239
13240 PR gdb/21122
13241 * breakpoint.c (_initialize_breakpoint): Update the help description
13242 of the 'commands' command to indicate that it takes a list argument.
13243
62c14536
SM
132442017-02-09 Simon Marchi <simon.marchi@ericsson.com>
13245
13246 * interps.c (current_interp_set_logging): Remove "return".
13247
ff6fa247
GB
132482017-02-09 Gary Benson <gbenson@redhat.com>
13249
13250 * symtab.c (add_symtab_completions): Prevent NULL pointer
13251 dereference.
13252
a474bd8e
PA
132532017-02-08 Pedro Alves <palves@redhat.com>
13254
13255 * interps.c (interp::interp): Remove reference to quiet_p.
13256 (interp_set): Make static. Remove dead "Switching to" output
13257 code.
13258 (interp_quiet_p, interp_set_quiet): Delete.
13259 (interpreter_exec_cmd): Don't set the interpreter quiet.
13260 * interps.h (interp_quiet_p): Make static.
13261 (class interp) <quiet_p>: Remove field
13262
3d7b173c
JG
132632017-02-08 Jerome Guitton <guitton@adacore.com>
13264
604c4576
JG
13265 * cli/cli-decode.c (find_command_name_length): Make it extern.
13266 * cli/cli-decode.h (find_command_name_length): Declare.
13267 * cli/cli-script.c (command_name_equals, line_first_arg):
13268 New functions.
13269 (process_next_line): Use cli-decode to parse command names.
13270 (build_command_line): Make args a constant pointer.
13271
132722017-02-08 Jerome Guitton <guitton@adacore.com>
6dbb839a 13273
3d7b173c
JG
13274 * cli-decode.c (lookup_cmd_1, lookup_cmd_composition):
13275 Remove case-insensitive search.
13276
1291063d
JM
132772017-02-07 Jose E. Marchesi <jose.marchesi@oracle.com>
13278
13279 * sparc-tdep.c (sparc32_gdbarch_init): Do not place a + operator
13280 at the end of the line. Avoids an ARI warning.
13281
20b477a7
LM
132822017-02-06 Luis Machado <lgustavo@codesourcery.com>
13283
13284 * NEWS: Mention support for record/replay of Intel 64 rdrand and
13285 rdseed instructions.
13286 i386-tdep.c (i386_process_record): Handle Intel 64 rdrand and rseed.
13287
3f7b46f2
IR
132882017-02-06 Ivo Raisr <ivo.raisr@oracle.com>
13289
13290 PR tdep/20936
13291 Provide and use sparc32 and sparc64 target description XML files.
13292 * features/sparc/sparc32-cp0.xml, features/sparc/sparc32-cpu.xml,
13293 features/sparc/sparc32-fpu.xml: New files for sparc 32-bit.
13294 * features/sparc/sparc64-cp0.xml, features/sparc/sparc64-cpu.xml,
13295 features/sparc/sparc64-fpu.xml: New files for sparc 64-bit.
13296 * features/sparc/sparc32-solaris.xml: New file.
13297 * features/sparc/sparc64-solaris.xml: New file.
13298 * features/sparc/sparc32-solaris.c: Generated.
13299 * features/sparc/sparc64-solaris.c: Generated.
13300 * sparc-tdep.h: Account for differences in target descriptions.
13301 * sparc-tdep.c (sparc32_register_name): Use target provided registers.
13302 (sparc32_register_type): Use target provided registers.
13303 (validate_tdesc_registers): New function.
13304 (sparc32_gdbarch_init): Use tdesc_has_registers.
13305 Set pseudoregister functions.
13306 * sparc64-tdep.c (sparc64_register_name): Use target provided registers.
13307 (sparc64_register_type): Use target provided registers.
13308 (sparc64_init_abi): Set pseudoregister functions.
13309
f0fd41c1
TT
133102017-02-03 Tom Tromey <tom@tromey.com>
13311
13312 PR rust/21097:
13313 * rust-lang.c (rust_print_type) <TYPE_CODE_UNION>: Handle enums
13314 with a single member.
13315
d6f9b0fb
PA
133162017-02-03 Pedro Alves <palves@redhat.com>
13317
13318 * cli/cli-interp.c (cli_interp_base::cli_interp_base)
13319 (cli_interp_base::~cli_interp_base): New.
13320 (cli_interp): New struct.
13321 (as_cli_interp): Cast the interp itself to cli_interp.
13322 (cli_interpreter_pre_command_loop): Rename to ...
13323 (cli_interp_base::pre_command_loop): ... this. Remove 'self'
13324 parameter.
13325 (cli_interpreter_init): Rename to ...
13326 (cli_interp::init): ... this. Remove 'self' parameter. Use
13327 boolean. Make extern.
13328 (cli_interpreter_resume): Rename to ...
13329 (cli_interp::resume): ... this. Remove 'data' parameter. Make
13330 extern.
13331 (cli_interpreter_suspend): Rename to ...
13332 (cli_interp::suspend): ... this. Remove 'data' parameter. Make
13333 extern.
13334 (cli_interpreter_exec): Rename to ...
13335 (cli_interp::exec): ... this. Remove 'data' parameter. Make
13336 extern.
13337 (cli_interpreter_supports_command_editing): Rename to ...
13338 (cli_interp_base::supports_command_editing): ... this. Remove
13339 'interp' parameter. Make extern.
13340 (cli_ui_out): Rename to ...
13341 (cli_interp::interp_ui_out): ... this. Remove 'interp' parameter.
13342 Make extern.
13343 (cli_set_logging): Rename to ...
13344 (cli_interp_base::set_logging): ... this. Remove 'interp'
13345 parameter. Make extern.
13346 (cli_interp_procs): Delete.
13347 (cli_interp_factory): Adjust to use "new".
13348 * cli/cli-interp.h: Include "interps.h".
13349 (struct cli_interp_base): New struct.
13350 * interps.c (struct interp): Delete. Fields moved to interps.h.
13351 (interp_new): Delete.
13352 (interp::interp, interp::~interp): New.
13353 (interp_set): Use bool, and return void. Assume the interpreter
13354 has suspend, init and resume methods, and that the all return
13355 void.
13356 (set_top_level_interpreter): interp_set returns void.
13357 (interp_ui_out): Adapt.
13358 (current_interp_set_logging): Adapt.
13359 (interp_data): Delete.
13360 (interp_pre_command_loop, interp_supports_command_editing): Adapt.
13361 (interp_exec): Adapt.
13362 (top_level_interpreter_data): Delete.
13363 * interps.h (interp_init_ftype, interp_resume_ftype)
13364 (interp_suspend_ftype, interp_exec_ftype)
13365 (interp_pre_command_loop_ftype, interp_ui_out_ftype): Delete.
13366 (class interp): New.
13367 (interp_new): Delete.
13368 (interp_set): Now returns void. Use bool.
13369 (interp_data, top_level_interpreter_data): Delete.
13370 * mi/mi-common.h: Include interps.h.
13371 (class mi_interp): Inherit from interp. Define a ctor. Declare
13372 init, resume, suspect, exec, interp_ui_out, set_logging and
13373 pre_command_loop methods.
13374 * mi/mi-interp.c (as_mi_interp): Cast the interp itself.
13375 (mi_interpreter_init): Rename to ...
13376 (mi_interp::init): ... this. Remove the 'interp' parameter, use
13377 bool, return void and make extern. Adjust.
13378 (mi_interpreter_resume): ... Rename to ...
13379 (mi_interp::resume): ... this. Remove the 'data' parameter,
13380 return void and make extern. Adjust.
13381 (mi_interpreter_suspend): ... Rename to ...
13382 (mi_interp::suspend): ... this. Remove the 'data' parameter,
13383 return void and make extern. Adjust.
13384 (mi_interpreter_exec): ... Rename to ...
13385 (mi_interp::exec): ... this. Remove the 'data' parameter and make
13386 extern. Adjust.
13387 (mi_interpreter_pre_command_loop): ... Rename to ...
13388 (mi_interp::pre_command_loop): ... this. Remove the 'self'
13389 parameter and make extern.
13390 (mi_on_normal_stop_1): Adjust.
13391 (mi_ui_out): Rename to ...
13392 (mi_interp::interp_ui_out): ... this. Remove the 'interp'
13393 parameter and make extern. Adjust.
13394 (mi_set_logging): Rename to ...
13395 (mi_interp::set_logging): ... this. Remove the 'interp'
13396 parameter and make extern. Adjust.
13397 (mi_interp_procs): Delete.
13398 (mi_interp_factory): Adjust to use 'new'.
13399 * mi/mi-main.c (mi_cmd_gdb_exit, captured_mi_execute_command)
13400 (mi_print_exception, mi_execute_command, mi_load_progress):
13401 Adjust.
13402 * tui/tui-interp.c (tui_interp): New class.
13403 (as_tui_interp): Return a tui_interp pointer.
13404 (tui_on_normal_stop, tui_on_signal_received)
13405 (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited)
13406 (tui_on_no_history, tui_on_user_selected_context_changed): Adjust
13407 to use interp::interp_ui_out.
13408 (tui_init): Rename to ...
13409 (tui_interp::init): ... this. Remove the 'self' parameter, use
13410 bool, return void and make extern. Adjust.
13411 (tui_resume): Rename to ...
13412 (tui_interp::resume): ... this. Remove the 'data' parameter,
13413 return void and make extern. Adjust.
13414 (tui_suspend): Rename to ...
13415 (tui_interp::suspend): ... this. Remove the 'data' parameter,
13416 return void and make extern. Adjust.
13417 (tui_ui_out): Rename to ...
13418 (tui_interp::interp_ui_out): ... this. Remove the 'self'
13419 parameter, and make extern. Adjust.
13420 (tui_exec): Rename to ...
13421 (tui_interp::exec): ... this. Remove the 'data' parameter and
13422 make extern.
13423 (tui_interp_procs): Delete.
13424 (tui_interp_factory): Use "new".
13425
65c40c95
TT
134262017-02-02 Tom Tromey <tom@tromey.com>
13427
13428 * rust-exp.y (ends_raw_string, space_then_number)
13429 (rust_identifier_start_p): Return bool.
13430 * rust-lang.c (rust_tuple_type_p, rust_underscore_fields)
13431 (rust_tuple_struct_type_p, rust_tuple_variant_type_p)
13432 (rust_slice_type_p, rust_range_type_p, rust_u8_type_p)
13433 (rust_chartype_p): Return bool.
13434 (val_print_struct, rust_print_struct_def, rust_print_type):
13435 Update.
13436 * rust-lang.h (rust_tuple_type_p, rust_tuple_struct_type_p):
13437 Return bool.
13438
b50f188d
TT
134392017-02-02 Tom Tromey <tom@tromey.com>
13440
13441 * rust-lang.c: Reindent.
13442
03c85b11
TT
134432017-02-02 Tom Tromey <tom@tromey.com>
13444
13445 * rust-lang.h (rust_crate_for_block): Update.
13446 * rust-lang.c (rust_crate_for_block): Return std::string.
13447 (rust_get_disr_info): Use std:;string, not
13448 gdb::unique_xmalloc_ptr.
13449 * rust-exp.y (crate_name): Update.
13450
9b6da501
PA
134512017-02-02 Pedro Alves <palves@redhat.com>
13452
13453 * disasm-selftests.c (print_one_insn_test): Move the "verbose"
13454 field out of gdb_disassembler_test and make it static.
13455
ec4cb20b
PA
134562017-02-02 Pedro Alves <palves@redhat.com>
13457
13458 * mi/mi-common.h (struct mi_interp): Delete the mi2_interp,
13459 mi1_interp and mi_interp fields.
13460
5be5dbf0
PA
134612017-02-02 Pedro Alves <palves@redhat.com>
13462
616268b6
PA
13463 * cli/cli-interp.c (struct saved_output_files, saved_output):
13464 Moved from cli/cli-logging.c.
13465 (cli_set_logging): New function.
13466 (cli_interp_procs): Install cli_set_logging.
13467 * cli/cli-interp.h (make_logging_output, cli_set_logging):
13468 Declare.
13469 * cli/cli-logging.c (struct saved_output_files, saved_output):
13470 Moved to cli/cli-interp.c.
13471 (pop_output_files): Don't save outputs here.
13472 (make_logging_output): New function.
13473 (handle_redirections): Don't build tee nor save previous outputs
13474 here.
13475 * interps.c (current_interp_set_logging): Change prototype.
13476 Assume there's always a set_logging_proc method installed.
13477 * interps.h (interp_set_logging_ftype): Change prototype.
13478 (current_interp_set_logging): Change prototype and adjust comment.
13479 * mi/mi-interp.c (mi_set_logging): Change protototype. Adjust to
13480 use make_logging_output.
13481 * tui/tui-interp.c (tui_interp_procs): Install cli_set_logging.
134822017-02-02 Pedro Alves <palves@redhat.com>
13483
5be5dbf0
PA
13484 * cli/cli-logging.c (maybe_warn_already_logging): New factored out
13485 from ...
13486 (set_logging_overwrite): ... here.
13487 (logging_no_redirect_file): Delete.
13488 (set_logging_redirect): Don't handle redirection on the fly.
13489 Instead warn that "logging off" / "logging on" is necessary.
13490 (pop_output_files): Delete references to logging_no_redirect_file.
13491 (show_logging_command): Always speak in terms of what will happen
13492 once logging is reenabled.
13493
c99cc448
PA
134942017-02-02 Pedro Alves <palves@redhat.com>
13495
13496 * disasm.h (gdb_pretty_print_disassembler): Tweak intro comment.
13497
8b172ce7
PA
134982017-02-02 Pedro Alves <palves@redhat.com>
13499
13500 * disasm.c (gdb_pretty_print_insn): Rename to ...
13501 (gdb_pretty_print_disassembler::pretty_print_insn): ... this.
13502 Remove gdbarch parameter. Adapt to clear the object's buffers
13503 instead of allocating new buffers, and to print using the object's
13504 gdb_disassembler instead of calling gdb_print_insn.
13505 (dump_insns): Use gdb_pretty_print_disassembler.
13506 * disasm.h (gdb_pretty_print_insn): Delete declaration.
13507 (gdb_pretty_print_disassembler): New class.
13508 * record-btrace.c (btrace_insn_history): Use
13509 gdb_pretty_print_disassembler.
13510
d7e74731
PA
135112017-02-02 Pedro Alves <palves@redhat.com>
13512
13513 * ada-lang.c (type_as_string): Use string_file.
13514 * ada-valprint.c (ada_print_floating): Use string_file.
13515 * ada-varobj.c (ada_varobj_scalar_image)
13516 (ada_varobj_get_value_image): Use string_file.
13517 * aix-thread.c (aix_thread_extra_thread_info): Use string_file.
13518 * arm-tdep.c (_initialize_arm_tdep): Use string_printf.
13519 * breakpoint.c (update_inserted_breakpoint_locations)
13520 (insert_breakpoint_locations, reattach_breakpoints)
13521 (print_breakpoint_location, print_one_detail_ranged_breakpoint)
13522 (print_it_watchpoint): Use string_file.
13523 (save_breakpoints): Use stdio_file.
13524 * c-exp.y (oper): Use string_file.
13525 * cli/cli-logging.c (set_logging_redirect): Use ui_file_up and
13526 tee_file.
13527 (pop_output_files): Use delete.
13528 (handle_redirections): Use stdio_file and tee_file.
13529 * cli/cli-setshow.c (do_show_command): Use string_file.
13530 * compile/compile-c-support.c (c_compute_program): Use
13531 string_file.
13532 * compile/compile-c-symbols.c (generate_vla_size): Take a
13533 'string_file &' instead of a 'ui_file *'.
13534 (generate_c_for_for_one_variable): Take a 'string_file &' instead
13535 of a 'ui_file *'. Use string_file.
13536 (generate_c_for_variable_locations): Take a 'string_file &'
13537 instead of a 'ui_file *'.
13538 * compile/compile-internal.h (generate_c_for_for_one_variable):
13539 Take a 'string_file &' instead of a 'ui_file *'.
13540 * compile/compile-loc2c.c (push, pushf, unary, binary)
13541 (print_label, pushf_register_address, pushf_register)
13542 (do_compile_dwarf_expr_to_c): Take a 'string_file &' instead of a
13543 'ui_file *'. Adjust.
13544 * compile/compile.c (compile_to_object): Use string_file.
13545 * compile/compile.h (compile_dwarf_expr_to_c)
13546 (compile_dwarf_bounds_to_c): Take a 'string_file &' instead of a
13547 'ui_file *'.
13548 * cp-support.c (inspect_type): Use string_file and obstack_copy0.
13549 (replace_typedefs_qualified_name): Use string_file and
13550 obstack_copy0.
13551 * disasm.c (gdb_pretty_print_insn): Use string_file.
13552 (gdb_disassembly): Adjust reference the null_stream global.
13553 (do_ui_file_delete): Delete.
13554 (gdb_insn_length): Use null_stream.
13555 * dummy-frame.c (maintenance_print_dummy_frames): Use stdio_file.
13556 * dwarf2loc.c (dwarf2_compile_property_to_c)
13557 (locexpr_generate_c_location, loclist_generate_c_location): Take a
13558 'string_file &' instead of a 'ui_file *'.
13559 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise.
13560 * dwarf2read.c (do_ui_file_peek_last): Delete.
13561 (dwarf2_compute_name): Use string_file.
13562 * event-top.c (gdb_setup_readline): Use stdio_file.
13563 * gdbarch.sh (verify_gdbarch): Use string_file.
13564 * gdbtypes.c (safe_parse_type): Use null_stream.
13565 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Use
13566 string_file.
13567 * guile/scm-disasm.c (gdbscm_print_insn_from_port): Take a
13568 'string_file *' instead of a 'ui_file *'.
13569 (gdbscm_arch_disassemble): Use string_file.
13570 * guile/scm-frame.c (frscm_print_frame_smob): Use string_file.
13571 * guile/scm-ports.c (class ioscm_file_port): Now a class that
13572 inherits from ui_file.
13573 (ioscm_file_port_delete, ioscm_file_port_rewind)
13574 (ioscm_file_port_put): Delete.
13575 (ioscm_file_port_write): Rename to ...
13576 (ioscm_file_port::write): ... this. Remove file_port_magic
13577 checks.
13578 (ioscm_file_port_new): Delete.
13579 (ioscm_with_output_to_port_worker): Use ioscm_file_port and
13580 ui_file_up.
13581 * guile/scm-type.c (tyscm_type_name): Use string_file.
13582 * guile/scm-value.c (vlscm_print_value_smob, gdbscm_value_print):
13583 Use string_file.
13584 * infcmd.c (print_return_value_1): Use string_file.
13585 * infrun.c (print_target_wait_results): Use string_file.
13586 * language.c (add_language): Use string_file.
13587 * location.c (explicit_to_string_internal): Use string_file.
13588 * main.c (captured_main_1): Use null_file.
13589 * maint.c (maintenance_print_architecture): Use stdio_file.
13590 * mi/mi-cmd-stack.c (list_arg_or_local): Use string_file.
13591 * mi/mi-common.h (struct mi_interp) <out, err, log, targ,
13592 event_channel>: Change type to mi_console_file pointer.
13593 * mi/mi-console.c (mi_console_file_fputs, mi_console_file_flush)
13594 (mi_console_file_delete): Delete.
13595 (struct mi_console_file): Delete.
13596 (mi_console_file_magic): Delete.
13597 (mi_console_file_new): Delete.
13598 (mi_console_file::mi_console_file): New.
13599 (mi_console_file_delete): Delete.
13600 (mi_console_file_fputs): Delete.
13601 (mi_console_file::write): New.
13602 (mi_console_raw_packet): Delete.
13603 (mi_console_file::flush): New.
13604 (mi_console_file_flush): Delete.
13605 (mi_console_set_raw): Rename to ...
13606 (mi_console_file::set_raw): ... this.
13607 * mi/mi-console.h (class mi_console_file): New class.
13608 (mi_console_file_new, mi_console_set_raw): Delete.
13609 * mi/mi-interp.c (mi_interpreter_init): Use mi_console_file.
13610 (mi_set_logging): Use delete and tee_file. Adjust.
13611 * mi/mi-main.c (output_register): Use string_file.
13612 (mi_cmd_data_evaluate_expression): Use string_file.
13613 (mi_cmd_data_read_memory): Use string_file.
13614 (mi_cmd_execute, print_variable_or_computed): Use string_file.
13615 * mi/mi-out.c (mi_ui_out::main_stream): New.
13616 (mi_ui_out::rewind): Use main_stream and
13617 string_file.
13618 (mi_ui_out::put): Use main_stream and string_file.
13619 (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
13620 Allocate a 'string_file' instead.
13621 (mi_out_new): Don't allocate a mem_fileopen stream here.
13622 * mi/mi-out.h (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
13623 (mi_ui_out::main_stream): Declare method.
13624 * printcmd.c (eval_command): Use string_file.
13625 * psymtab.c (maintenance_print_psymbols): Use stdio_file.
13626 * python/py-arch.c (archpy_disassemble): Use string_file.
13627 * python/py-breakpoint.c (bppy_get_commands): Use string_file.
13628 * python/py-frame.c (frapy_str): Use string_file.
13629 * python/py-framefilter.c (py_print_type, py_print_single_arg):
13630 Use string_file.
13631 * python/py-type.c (typy_str): Use string_file.
13632 * python/py-unwind.c (unwind_infopy_str): Use string_file.
13633 * python/py-value.c (valpy_str): Use string_file.
13634 * record-btrace.c (btrace_insn_history): Use string_file.
13635 * regcache.c (regcache_print): Use stdio_file.
13636 * reggroups.c (maintenance_print_reggroups): Use stdio_file.
13637 * remote.c (escape_buffer): Use string_file.
13638 * rust-lang.c (rust_get_disr_info): Use string_file.
13639 * serial.c (serial_open_ops_1): Use stdio_file.
13640 (do_serial_close): Use delete.
13641 * stack.c (print_frame_arg): Use string_file.
13642 (print_frame_args): Remove local mem_fileopen stream, not used.
13643 (print_frame): Use string_file.
13644 * symmisc.c (maintenance_print_symbols): Use stdio_file.
13645 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
13646 Take a 'string_file *' instead of a 'ui_file *'.
13647 * top.c (new_ui): Use stdio_file and stderr_file.
13648 (free_ui): Use delete.
13649 (execute_command_to_string): Use string_file.
13650 (quit_confirm): Use string_file.
13651 * tracepoint.c (collection_list::append_exp): Use string_file.
13652 * tui/tui-disasm.c (tui_disassemble): Use string_file.
13653 * tui/tui-file.c: Don't include "ui-file.h".
13654 (enum streamtype, struct tui_stream): Delete.
13655 (tui_file_new, tui_file_delete, tui_fileopen, tui_sfileopen)
13656 (tui_file_isatty, tui_file_rewind, tui_file_put): Delete.
13657 (tui_file::tui_file): New method.
13658 (tui_file_fputs): Delete.
13659 (tui_file_get_strbuf): Delete.
13660 (tui_file::puts): New method.
13661 (tui_file_adjust_strbuf): Delete.
13662 (tui_file_flush): Delete.
13663 (tui_file::flush): New method.
13664 * tui/tui-file.h: Tweak intro comment.
13665 Include ui-file.h.
13666 (tui_fileopen, tui_sfileopen, tui_file_get_strbuf)
13667 (tui_file_adjust_strbuf): Delete declarations.
13668 (class tui_file): New class.
13669 * tui/tui-io.c (tui_initialize_io): Use tui_file.
13670 * tui/tui-regs.c (tui_restore_gdbout): Use delete.
13671 (tui_register_format): Use string_stream.
13672 * tui/tui-stack.c (tui_make_status_line): Use string_file.
13673 (tui_get_function_from_frame): Use string_file.
13674 * typeprint.c (type_to_string): Use string_file.
13675 * ui-file.c (struct ui_file, ui_file_magic, ui_file_new): Delete.
13676 (null_stream): New global.
13677 (ui_file_delete): Delete.
13678 (ui_file::ui_file): New.
13679 (null_file_isatty): Delete.
13680 (ui_file::~ui_file): New.
13681 (null_file_rewind): Delete.
13682 (ui_file::printf): New.
13683 (null_file_put): Delete.
13684 (null_file_flush): Delete.
13685 (ui_file::putstr): New.
13686 (null_file_write): Delete.
13687 (ui_file::putstrn): New.
13688 (null_file_read): Delete.
13689 (ui_file::putc): New.
13690 (null_file_fputs): Delete.
13691 (null_file_write_async_safe): Delete.
13692 (ui_file::vprintf): New.
13693 (null_file_delete): Delete.
13694 (null_file::write): New.
13695 (null_file_fseek): Delete.
13696 (null_file::puts): New.
13697 (ui_file_data): Delete.
13698 (null_file::write_async_safe): New.
13699 (gdb_flush, ui_file_isatty): Adjust.
13700 (ui_file_put, ui_file_rewind): Delete.
13701 (ui_file_write): Adjust.
13702 (ui_file_write_for_put): Delete.
13703 (ui_file_write_async_safe, ui_file_read): Adjust.
13704 (ui_file_fseek): Delete.
13705 (fputs_unfiltered): Adjust.
13706 (set_ui_file_flush, set_ui_file_isatty, set_ui_file_rewind)
13707 (set_ui_file_put, set_ui_file_write, set_ui_file_write_async_safe)
13708 (set_ui_file_read, set_ui_file_fputs, set_ui_file_fseek)
13709 (set_ui_file_data): Delete.
13710 (string_file::~string_file, string_file::write)
13711 (struct accumulated_ui_file, do_ui_file_xstrdup, ui_file_xstrdup)
13712 (do_ui_file_as_string, ui_file_as_string): Delete.
13713 (do_ui_file_obsavestring, ui_file_obsavestring): Delete.
13714 (struct mem_file): Delete.
13715 (mem_file_new): Delete.
13716 (stdio_file::stdio_file): New.
13717 (mem_file_delete): Delete.
13718 (stdio_file::stdio_file): New.
13719 (mem_fileopen): Delete.
13720 (stdio_file::~stdio_file): New.
13721 (mem_file_rewind): Delete.
13722 (stdio_file::set_stream): New.
13723 (mem_file_put): Delete.
13724 (stdio_file::open): New.
13725 (mem_file_write): Delete.
13726 (stdio_file_magic, struct stdio_file): Delete.
13727 (stdio_file_new, stdio_file_delete, stdio_file_flush): Delete.
13728 (stdio_file::flush): New.
13729 (stdio_file_read): Rename to ...
13730 (stdio_file::read): ... this. Adjust.
13731 (stdio_file_write): Rename to ...
13732 (stdio_file::write): ... this. Adjust.
13733 (stdio_file_write_async_safe): Rename to ...
13734 (stdio_file::write_async_safe) ... this. Adjust.
13735 (stdio_file_fputs): Rename to ...
13736 (stdio_file::puts) ... this. Adjust.
13737 (stdio_file_isatty): Delete.
13738 (stdio_file_fseek): Delete.
13739 (stdio_file::isatty): New.
13740 (stderr_file_write): Rename to ...
13741 (stderr_file::write) ... this. Adjust.
13742 (stderr_file_fputs): Rename to ...
13743 (stderr_file::puts) ... this. Adjust.
13744 (stderr_fileopen, stdio_fileopen, gdb_fopen): Delete.
13745 (stderr_file::stderr_file): New.
13746 (tee_file_magic): Delete.
13747 (struct tee_file): Delete.
13748 (tee_file::tee_file): New.
13749 (tee_file_new): Delete.
13750 (tee_file::~tee_file): New.
13751 (tee_file_delete): Delete.
13752 (tee_file_flush): Rename to ...
13753 (tee_file::flush): ... this. Adjust.
13754 (tee_file_write): Rename to ...
13755 (tee_file::write): ... this. Adjust.
13756 (tee_file::write_async_safe): New.
13757 (tee_file_fputs): Rename to ...
13758 (tee_file::puts): ... this. Adjust.
13759 (tee_file_isatty): Rename to ...
13760 (tee_file::isatty): ... this. Adjust.
13761 * ui-file.h (struct obstack, struct ui_file): Don't
13762 forward-declare.
13763 (ui_file_new, ui_file_flush_ftype, set_ui_file_flush)
13764 (ui_file_write_ftype)
13765 (set_ui_file_write, ui_file_fputs_ftype, set_ui_file_fputs)
13766 (ui_file_write_async_safe_ftype, set_ui_file_write_async_safe)
13767 (ui_file_read_ftype, set_ui_file_read, ui_file_isatty_ftype)
13768 (set_ui_file_isatty, ui_file_rewind_ftype, set_ui_file_rewind)
13769 (ui_file_put_method_ftype, ui_file_put_ftype, set_ui_file_put)
13770 (ui_file_delete_ftype, set_ui_file_data, ui_file_fseek_ftype)
13771 (set_ui_file_fseek): Delete.
13772 (ui_file_data, ui_file_delete, ui_file_rewind)
13773 (struct ui_file): New.
13774 (ui_file_up): New.
13775 (class null_file): New.
13776 (null_stream): Declare.
13777 (ui_file_write_for_put, ui_file_put): Delete.
13778 (ui_file_xstrdup, ui_file_as_string, ui_file_obsavestring):
13779 Delete.
13780 (ui_file_fseek, mem_fileopen, stdio_fileopen, stderr_fileopen)
13781 (gdb_fopen, tee_file_new): Delete.
13782 (struct string_file): New.
13783 (struct stdio_file): New.
13784 (stdio_file_up): New.
13785 (struct stderr_file): New.
13786 (class tee_file): New.
13787 * ui-out.c (ui_out::field_stream): Take a 'string_file &' instead
13788 of a 'ui_file *'. Adjust.
13789 * ui-out.h (class ui_out) <field_stream>: Likewise.
13790 * utils.c (do_ui_file_delete, make_cleanup_ui_file_delete)
13791 (null_stream): Delete.
13792 (error_stream): Take a 'string_file &' instead of a 'ui_file *'.
13793 Adjust.
13794 * utils.h (struct ui_file): Delete forward declaration..
13795 (make_cleanup_ui_file_delete, null_stream): Delete declarations.
13796 (error_stream): Take a 'string_file &' instead of a
13797 'ui_file *'.
13798 * varobj.c (varobj_value_get_print_value): Use string_file.
13799 * xtensa-tdep.c (xtensa_verify_config): Use string_file.
13800 * gdbarch.c: Regenerate.
13801
187808b0
PA
138022017-02-02 Pedro Alves <palves@redhat.com>
13803
13804 * disasm.c (gdb_disassembler::pretty_print_insn): Rename to...
13805 (gdb_pretty_print_insn): ... this. Now a free function. Add back
13806 a 'gdbarch' parameter. Allocate a mem_fileopen stream here.
13807 Adjust to call gdb_print_insn instead of
13808 gdb_disassembler::print_insn.
13809 (dump_insns, do_mixed_source_and_assembly_deprecated)
13810 (do_mixed_source_and_assembly, do_assembly_only): Add back a
13811 'gdbarch' parameter. Remove gdb_disassembler parameter.
13812 (gdb_disassembly): Don't allocate a gdb_disassembler here.
13813 * disasm.h (gdb_disassembler::pretty_print_insn): Delete
13814 declaration.
13815 (gdb_pretty_print_insn): Re-add declaration.
13816 * record-btrace.c (btrace_insn_history): Don't allocate a
13817 gdb_disassembler here. Adjust to call gdb_pretty_print_insn.
13818
7a8eb317
SM
138192017-02-01 Simon Marchi <simon.marchi@polymtl.ca>
13820
13821 * disasm.h (gdb_disassembly): Remove file_string parameter.
13822 * disasm.c (gdb_disassembly): Likewise.
13823 * cli/cli-cmds.c (print_disassembly): Adapt.
13824 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
13825 * stack.c (do_gdb_disassembly): Likewise.
13826
7346ef59
AA
138272017-02-01 Andreas Arnez <arnez@linux.vnet.ibm.com>
13828
13829 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): For
13830 DWARF_VALUE_LITERAL, no longer ignore the offset on big-endian
13831 targets. And if the implicit value is longer than needed, extract
13832 the first bytes instead of the "least significant" ones.
13833
cd4007e4
MM
138342017-02-01 Markus Metzger <markus.t.metzger@intel.com>
13835
13836 * btrace.c (btrace_enable): Do not call btrace_add_pc for
13837 BTRACE_FORMAT_PT or if can_access_registers_ptid returns false.
13838 (btrace_fetch): Assert can_access_registers_ptid.
13839 * record-btrace.c (require_btrace_thread, record_btrace_info): Call
13840 validate_registers_access.
13841
cf77c34e
MM
138422017-02-01 Markus Metzger <markus.t.metzger@intel.com>
13843
13844 * gdbthread.h (can_access_registers_ptid): New.
13845 * thread.c (can_access_registers_ptid): New.
13846
be85ce7d
PA
138472017-02-01 Pedro Alves <palves@redhat.com>
13848
13849 * i386-tdep.c (i386_fast_tracepoint_valid_at): Use gdb_insn_length.
13850
29b0b251
PA
138512017-01-31 Pedro Alves <palves@redhat.com>
13852
13853 * mi/mi-interp.c (mi_breakpoint_created, mi_breakpoint_modified):
13854 Fix typos.
13855
289b5b24
PA
138562017-01-31 Pedro Alves <palves@redhat.com>
13857
13858 * stack.c (print_frame_args): Remove local mem_fileopen stream,
13859 not used.
13860
b47413b4
PA
138612017-01-31 Pedro Alves <palves@redhat.com>
13862
13863 * varobj.c (varobj_value_get_print_value): Remove xstrdup call.
13864
60adb36c
PA
138652017-01-31 Pedro Alves <palves@redhat.com>
13866
13867 * common/scoped_restore.h
13868 (scoped_restore_tmpl::scoped_restore_tmpl): Template on T2, and
13869 change the value's parameter type to T2.
13870 (make_scoped_restore): Likewise.
13871
2735833d
WT
138722017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
13873 Richard Henderson <rth@redhat.com>
13874
13875 * amd64-linux-nat.c (PTRACE_ARCH_PRCTL): New define.
13876 (amd64_linux_fetch_inferior_registers): Add case to fetch FS_BASE
13877 GS_BASE for older kernels.
13878 (amd64_linux_store_inferior_registers): Add case to store FS_BASE
13879 GS_BASE for older kernels.
13880 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Add FS_BASE
13881 and GS_BASE to the offset table.
13882 (amd64_linux_register_reggroup_p): Add FS_BASE and GS_BASE to the
13883 system register group.
13884 * amd64-nat.c (amd64_native_gregset_reg_offset): Implements case
13885 for older kernels.
13886 * amd64-tdep.c (amd64_init_abi): Add segment registers for the
13887 amd64 ABI.
13888 * amd64-tdep.h (amd64_regnum): Add AMD64_FSBASE_REGNUM and
13889 AMD64_GSBASE_REGNUM.
13890 (AMD64_NUM_REGS): Set to AMD64_GSBASE_REGNUM + 1.
13891 * features/Makefile (amd64-linux.dat, amd64-avx-linux.dat)
13892 (amd64-mpx-linux.dat, amd64-avx512-linux.dat, x32-linux.dat)
13893 (x32-avx-linux.dat, x32-avx512-linux.dat): Add
13894 i386/64bit-segments.xml in those rules.
13895 * features/i386/64bit-segments.xml: New file.
13896 * features/i386/amd64-avx-mpx-linux.xml: Add 64bit-segments.xml.
13897 * features/i386/amd64-avx-linux.xml: Add 64bit-segments.xml.
13898 * features/i386/amd64-avx512-linux.xml: Add 64bit-segments.xml.
13899 * features/i386/amd64-mpx-linux.xml: Add 64bit-segments.xml.
13900 * features/i386/x32-avx512-linux.xml: Add 64bit-segments.xml.
13901 * features/i386/x32-avx-linux.xml: Add 64bit-segments.xml.
13902 * features/i386/amd64-linux.xml: Add 64bit-segments.xml.
13903 * features/i386/amd64-avx-linux.c: Regenerated.
13904 * features/i386/amd64-avx-mpx-linux.c: Regenerated.
13905 * features/i386/amd64-avx-mpx.c: Regenerated.
13906 * features/i386/amd64-avx512-linux.c: Regenerated.
13907 * features/i386/amd64-linux.c: Regenerated.
13908 * features/i386/amd64-mpx-linux.c: Regenerated.
13909 * features/i386/i386-avx-mpx-linux.c: Regenerated.
13910 * features/i386/i386-avx-mpx.c: Regenerated.
13911 * features/i386/x32-avx-linux.c: Regenerated.
13912 * features/i386/x32-avx512-linux.c: Regenerated.
13913 * regformats/i386/amd64-avx-linux.dat: Regenerated.
13914 * regformats/i386/amd64-avx-mpx-linux.dat: Regenerated.
13915 * regformats/i386/amd64-avx512-linux.dat: Regenerated.
13916 * regformats/i386/amd64-linux.dat: Regenerated.
13917 * regformats/i386/amd64-mpx-linux.dat: Regenerated.
13918 * regformats/i386/x32-avx-linux.dat: Regenerated.
13919 * regformats/i386/x32-avx512-linux.dat: Regenerated.
13920 * regformats/i386/x32-linux.dat: Regenerated.
13921
8884e97e
WT
139222017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
13923
13924 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM):
13925 Set to AMD64_NUM_REGS.
13926
7005d26a
WT
139272017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
13928
13929 * amd64-nat.c (amd64_native_gregset_reg_offset): Simplify logic
13930 that checks validity of a register number.
13931
4bd2e1b2
KC
139322017-01-27 Kees Cook <keescook@google.com>
13933
13934 * gdb/arm-linux-nat.c (arm_linux_fetch_inferior_registers): Call
13935 fetch_fpregs if target has fpa registers.
13936 (arm_linux_store_inferior_registers): Call store_fpregs if target
13937 has fpa registers.
13938
7cf1de6c
AA
139392017-01-26 Andreas Arnez <arnez@linux.vnet.ibm.com>
13940
13941 * cris-tdep.c (cris_gdbarch_init): Remove check for
13942 info.byte_order and force it to BFD_ENDIAN_LITTLE.
13943
874a1c8c
AT
139442017-01-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
13945
13946 * corelow.c (get_core_register_section): Check for regset
13947 existence before checking for REGSET_VARIABLE_SIZE.
13948
d8b49cf0
YQ
139492017-01-26 Yao Qi <yao.qi@linaro.org>
13950 Pedro Alves <palves@redhat.com>
13951
13952 PR gdb/20939
13953 * disasm.c (gdb_disassembler::dis_asm_memory_error): Don't
13954 call memory_error, save memaddr instead.
13955 (gdb_disassembler::print_insn): If gdbarch_print_insn returns
13956 negative, cal memory_error.
13957 * disasm.h (gdb_disassembler) <m_err_memaddr>: New field.
13958
658ca58c
YQ
139592017-01-26 Yao Qi <yao.qi@linaro.org>
13960
13961 * disasm-selftests.c (memory_error_test): New function.
13962 (_initialize_disasm_selftests): Register memory_error_test.
13963
79843d45
YQ
139642017-01-26 Yao Qi <yao.qi@linaro.org>
13965
13966 * Makefile.in (SFILES): Add disasm-selftests.c and
13967 selftest-arch.c.
13968 (COMMON_OBS): Add disasm-selftests.o and selftest-arch.o.
13969 * disasm-selftests.c: New file.
13970 * selftest-arch.c: New file.
13971 * selftest-arch.h: New file.
13972
8cafda32
YQ
139732017-01-26 Yao Qi <yao.qi@linaro.org>
13974
13975 * mep-tdep.c (mep_gdb_print_insn): Set info->arch
13976 to bfd_arch_mep. Don't return 0 if section is not
13977 found. Call print_insn_mep.
13978
e47ad6c0
YQ
139792017-01-26 Pedro Alves <palves@redhat.com>
13980 Yao Qi <yao.qi@linaro.org>
13981
13982 * arm-tdep.c: Include "disasm.h".
13983 (gdb_print_insn_arm): Update code to get gdbarch.
13984 * disasm.c (dis_asm_read_memory): Change it to
13985 gdb_disassembler::dis_asm_read_memory.
13986 (dis_asm_memory_error): Likewise.
13987 (dis_asm_print_address): Likewise.
13988 (gdb_pretty_print_insn): Change it to
13989 gdb_disassembler::pretty_print_insn.
13990 (dump_insns): Add one argument gdb_disassemlber. All
13991 callers updated.
13992 (do_mixed_source_and_assembly_deprecated): Likewise.
13993 (do_mixed_source_and_assembly): Likewise.
13994 (do_assembly_only): Likewise.
13995 (gdb_disassembler::gdb_disassembler): New.
13996 (gdb_disassembler::print_insn): New.
13997 * disasm.h (class gdb_disassembler): New.
13998 (gdb_pretty_print_insn): Remove declaration.
13999 (gdb_disassemble_info): Likewise.
14000 * guile/scm-disasm.c (class gdbscm_disassembler): New.
14001 (gdbscm_disasm_read_memory_worker): Update.
14002 (gdbscm_disasm_read_memory): Update.
14003 (gdbscm_disasm_memory_error): Remove.
14004 (gdbscm_disasm_print_address): Remove.
14005 (gdbscm_disassembler::gdbscm_disassembler): New.
14006 (gdbscm_print_insn_from_port): Update.
14007 * mips-tdep.c: Include disasm.h.
14008 (gdb_print_insn_mips): Update code to get gdbarch.
14009 * record-btrace.c (btrace_insn_history): Update.
14010 * spu-tdep.c: Include disasm.h.
14011 (struct spu_dis_asm_data): Remove.
14012 (struct spu_dis_asm_info): New.
14013 (spu_dis_asm_print_address): Use spu_dis_asm_info to get
14014 SPU id.
14015 (gdb_print_insn_spu): Cast disassemble_info to
14016 spu_dis_asm_info.
14017
80d75874
YQ
140182017-01-26 Yao Qi <yao.qi@linaro.org>
14019
14020 * disasm.c (do_ui_file_delete): Delete.
14021 (gdb_insn_length): Move code creating stream to ...
14022 * utils.c (null_stream): ... here. New function.
14023 * utils.h (null_stream): Declare.
14024
60685cd0
SM
140252017-01-23 Simon Marchi <simon.marchi@polymtl.ca>
14026
14027 * python/py-inferior.c (find_thread_object): Return directly
14028 from the loop. Remove "found" variable.
14029
eb1cdb62
JB
140302017-01-21 Joel Brobecker <brobecker@adacore.com>
14031
14032 GDB 7.12.1 released.
14033
b1ce6568
SM
140342017-01-20 Simon Marchi <simon.marchi@ericsson.com>
14035
14036 * python/py-function.c (fnpy_call): Reorder declarations to have
14037 the gdbpy_enter object declared first.
14038 * python/py-xmethods.c (gdbpy_get_xmethod_arg_types): Likewise.
14039
6f8b0407
SM
140402017-01-20 Simon Marchi <simon.marchi@ericsson.com>
14041
fec93fb1 14042 PR python/21068
6f8b0407
SM
14043 * python/python-internal.h (PyMem_RawMalloc): Define for
14044 Python < 3.4.
14045 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use
14046 PyMem_RawMalloc instead of PyMem_Malloc.
14047
78cbbba8
LM
140482017-01-20 Mike Wrighton <mike_wrighton@codesourcery.com>
14049 Luis Machado <lgustavo@codesourcery.com>
14050
14051 * NEWS (New commands): Mention flash-erase.
14052 (New MI commands): Mention target-flash-erase.
14053 * mi/mi-cmds.c (mi_cmd_target_flash_erase): Add target-flash-erase MI
14054 command.
14055 * mi/mi-cmds.h (mi_cmd_target_flash_erase): New declaration.
14056 * mi/mi-main.c (mi_cmd_target_flash_erase): New function.
14057 * target.c (flash_erase_command): New function.
14058 (initialize_targets): Add new flash-erase command.
14059 * target.h (flash_erase_command): New declaration.
14060
2132fe85
JB
140612017-01-20 Joel Brobecker <brobecker@adacore.com>
14062
14063 * nat/linux-ptrace.c: Only include <sys/procfs.h> if
14064 HAVE_SYS_PROCFS_H is defined.
14065
d1dff226
AH
140662017-01-18 Alan Hayward <alan.hayward@arm.com>
14067
14068 * remote.c (struct cached_reg): Change data into a pointer.
14069 * (stop_reply_dtr): Free data pointers before deleting vector.
14070 (process_stop_reply): Likewise.
14071 (remote_parse_stop_reply): Allocate space for data
14072
9890e433
AH
140732017-01-18 Alan Hayward <alan.hayward@arm.com>
14074
14075 * amd64-tdep.c (amd64_pseudo_register_read_value): remove
14076 MAX_REGISTER_SIZE.
14077 (amd64_pseudo_register_read_value): Likewise.
14078 * remote.c (fetch_register_using_p): Remove MAX_REGISTER_SIZE.
14079 (store_register_using_P): Likewise.
14080 * regcache.c (regcache_xfer_part): Likewise.
14081
7a36499a
IR
140822017-01-16 Ivo Raisr <ivo.raisr@oracle.com>
14083
14084 Split real and pseudo registers.
14085 * sparc-tdep.h (SPARC_CORE_REGISTERS): New macro.
14086 (sparc32_pseudo_regnum): New enum.
14087 * sparc64-tdep.h (sparc64_pseudo_regnum): New enum.
14088 * sparc-tdep.c (SPARC32_FPU_REGISTERS): New macro.
14089 (SPARC32_CP0_REGISTERS): New macro.
14090 (sparc32_pseudo_register_name): New function.
14091 (sparc32_register_name): Use sparc32_pseudo_register_name.
14092 (sparc32_pseudo_register_type): New function.
14093 (sparc32_register_type): Use sparc32_pseudo_register_type.
14094 (sparc32_pseudo_register_read, sparc32_pseudo_register_write): Handle
14095 pseudo register numbers.
14096 * sparc64-tdep.c SPARC64_FPU_REGISTERS): New macro.
14097 (SPARC64_CP0_REGISTERS): New macro.
14098 (sparc64_pseudo_register_name): New function.
14099 (sparc64_register_name): Use sparc64_pseudo_register_name.
14100 (sparc64_pseudo_register_type): New function.
14101 (sparc64_register_type): Use sparc64_pseudo_register_type.
14102 (sparc64_pseudo_register_read, sparc64_pseudo_register_write): Handle
14103 pseudo register numbers.
14104 (sparc64_store_floating_fields, sparc64_extract_floating_fields,
14105 sparc64_store_arguments): Handle pseudo register numbers.
14106
6f8976bf
YQ
141072017-01-13 Yao Qi <yao.qi@linaro.org>
14108
14109 * remote.c (REMOTE_DEBUG_MAX_CHAR): New macro.
14110 (putpkt_binary): Print only REMOTE_DEBUG_MAX_CHAR chars in debug
14111 output.
14112 (getpkt_or_notif_sane_1): Likewise.
14113
e4241ace
YQ
141142017-01-13 Yao Qi <yao.qi@linaro.org>
14115
14116 * Makefile.in (checker-headers): Use CXX and CXX_DIALET instead
14117 of CC. Pass "-x c++-header" instead of "-x c".
14118
3015c064
SM
141192017-01-12 Simon Marchi <simon.marchi@ericsson.com>
14120
14121 * remote.c (remote_can_async_p): Update comment.
14122
fde1b17d
SM
141232017-01-12 Simon Marchi <simon.marchi@ericsson.com>
14124
14125 * linux-nat.c (linux_nat_can_async_p): Update comment.
14126
ca1ca08b
SM
141272017-01-12 Simon Marchi <simon.marchi@ericsson.com>
14128
14129 * serial.c (serial_open): Forget about "pc" and "lpt" serial interface.
14130
4ad2da73
SM
141312017-01-11 Simon Marchi <simon.marchi@ericsson.com>
14132
14133 * cli/cli-decode.c (lookup_cmd_1): Fix typo in comment.
14134
c8b23b3f
TT
141352017-01-10 Tom Tromey <tom@tromey.com>
14136
14137 * python/py-type.c (typy_legacy_template_argument): Update.
14138 * cp-support.h (struct demangle_parse_info) (demangle_parse_info,
14139 ~demangle_parse_info): Declare new members.
14140 (cp_demangled_name_to_comp): Return unique_ptr.
14141 (cp_demangled_name_parse_free)
14142 (make_cleanup_cp_demangled_name_parse_free)
14143 (cp_new_demangle_parse_info): Remove.
14144 * cp-support.c (do_demangled_name_parse_free_cleanup)
14145 (make_cleanup_cp_demangled_name_parse_free): Remove.
14146 (inspect_type, cp_canonicalize_string_full)
14147 (cp_canonicalize_string): Update.
14148 (mangled_name_to_comp): Change return type.
14149 (cp_class_name_from_physname, method_name_from_physname)
14150 (cp_func_name, cp_remove_params): Update.
14151 * cp-name-parser.y (demangle_parse_info): New constructor, from
14152 cp_new_demangle_parse_info.
14153 (~demangle_parse_info): New destructor, from
14154 cp_demangled_name_parse_free.
14155 (cp_merge_demangle_parse_infos): Update.
14156 (cp_demangled_name_to_comp): Change return type.
14157
1ac32117
TT
141582017-01-10 Tom Tromey <tom@tromey.com>
14159
14160 * top.c (prevent_dont_repeat): Change return type.
14161 * python/python.c (execute_gdb_command): Use std::string.
14162 Update.
14163 * guile/guile.c (gdbscm_execute_gdb_command): Update.
14164 * command.h (prevent_dont_repeat): Change return type.
14165 * breakpoint.c (bpstat_do_actions_1): Update.
14166
0cf08227
TT
141672017-01-10 Tom Tromey <tom@tromey.com>
14168
14169 * value.h (scoped_value_mark::~scoped_value_mark): Call
14170 free_to_mark.
14171 (scoped_value_mark::free_to_mark): New method.
14172 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
14173 scoped_value_mark.
14174
eb115069
TT
141752017-01-10 Tom Tromey <tom@tromey.com>
14176
14177 * python/py-value.c (valpy_dereference, valpy_referenced_value)
14178 (valpy_reference_value, valpy_const_value, valpy_get_address)
14179 (valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
14180 (valpy_getitem, valpy_call, valpy_binop_throw, valpy_negative)
14181 (valpy_absolute, valpy_richcompare_throw): Use scoped_value_mark.
14182 * dwarf2loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
14183 scoped_value_mark.
14184 * dwarf2-frame.c (execute_stack_op): Use scoped_value_mark.
14185 * value.h (scoped_value_mark): New class.
14186
906768f9
TT
141872017-01-10 Tom Tromey <tom@tromey.com>
14188
14189 * dwarf2read.c (dwarf2_build_psymtabs): Use psymtab_discarder.
14190 * psympriv.h (make_cleanup_discard_psymtabs): Don't declare.
14191 * psymtab.c (discard_psymtabs_upto): Remove.
14192 (make_cleanup_discard_psymtabs): Remove.
14193 (struct psymtab_state): Remove.
14194
bef155c3
TT
141952017-01-10 Tom Tromey <tom@tromey.com>
14196
14197 * record-full.c (record_full_save_cleanups): Remove.
14198 (record_full_save): Use gdb::unlinker.
14199 * gcore.c (do_bfd_delete_cleanup): Remove.
14200 (gcore_command): Use gdb::unlinker, unique_xmalloc_ptr. Remove
14201 cleanups.
14202 * dwarf2read.c (unlink_if_set): Remove.
14203 (write_psymtabs_to_index): Use gdb::unlinker.
14204 * common/gdb_unlinker.h: New file.
14205
192b62ce
TT
142062017-01-10 Tom Tromey <tom@tromey.com>
14207
14208 * windows-tdep.c (windows_xfer_shared_library): Update.
14209 * windows-nat.c (windows_make_so): Update.
14210 * utils.h (make_cleanup_bfd_unref): Remove.
14211 * utils.c (do_bfd_close_cleanup, make_cleanup_bfd_unref): Remove.
14212 * symfile.h (symfile_bfd_open)
14213 (find_separate_debug_file_in_section): Return gdb_bfd_ref_ptr.
14214 * symfile.c (read_symbols, symbol_file_add)
14215 (separate_debug_file_exists): Update.
14216 (symfile_bfd_open): Return gdb_bfd_ref_ptr.
14217 (generic_load, reread_symbols): Update.
14218 * symfile-mem.c (symbol_file_add_from_memory): Update.
14219 * spu-linux-nat.c (spu_bfd_open): Return gdb_bfd_ref_ptr.
14220 (spu_symbol_file_add_from_memory): Update.
14221 * solist.h (struct target_so_ops) <bfd_open>: Return
14222 gdb_bfd_ref_ptr.
14223 (solib_bfd_fopen, solib_bfd_open): Return gdb_bfd_ref_ptr.
14224 * solib.c (solib_bfd_fopen, solib_bfd_open): Return
14225 gdb_bfd_ref_ptr.
14226 (solib_map_sections, reload_shared_libraries_1): Update.
14227 * solib-svr4.c (enable_break): Update.
14228 * solib-spu.c (spu_bfd_fopen): Return gdb_bfd_ref_ptr.
14229 * solib-frv.c (enable_break2): Update.
14230 * solib-dsbt.c (enable_break): Update.
14231 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): Return
14232 gdb_bfd_ref_ptr.
14233 (darwin_solib_get_all_image_info_addr_at_init): Update.
14234 (darwin_bfd_open): Return gdb_bfd_ref_ptr.
14235 * solib-aix.c (solib_aix_bfd_open): Return gdb_bfd_ref_ptr.
14236 * record-full.c (record_full_save): Update.
14237 * python/py-objfile.c (objfpy_add_separate_debug_file): Update.
14238 * procfs.c (insert_dbx_link_bpt_in_file): Update.
14239 * minidebug.c (find_separate_debug_file_in_section): Return
14240 gdb_bfd_ref_ptr.
14241 * machoread.c (macho_add_oso_symfile): Change abfd to
14242 gdb_bfd_ref_ptr.
14243 (macho_symfile_read_all_oso): Update.
14244 (macho_check_dsym): Return gdb_bfd_ref_ptr.
14245 (macho_symfile_read): Update.
14246 * jit.c (bfd_open_from_target_memory): Return gdb_bfd_ref_ptr.
14247 (jit_bfd_try_read_symtab): Update.
14248 * gdb_bfd.h (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
14249 (gdb_bfd_openw, gdb_bfd_openr_iovec)
14250 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
14251 gdb_bfd_ref_ptr.
14252 (gdb_bfd_ref_policy): New struct.
14253 (gdb_bfd_ref_ptr): New typedef.
14254 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
14255 (gdb_bfd_openw, gdb_bfd_openr_iovec)
14256 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
14257 gdb_bfd_ref_ptr.
14258 * gcore.h (create_gcore_bfd): Return gdb_bfd_ref_ptr.
14259 * gcore.c (create_gcore_bfd): Return gdb_bfd_ref_ptr.
14260 (gcore_command): Update.
14261 * exec.c (exec_file_attach): Update.
14262 * elfread.c (elf_symfile_read): Update.
14263 * dwarf2read.c (dwarf2_get_dwz_file): Update.
14264 (try_open_dwop_file, open_dwo_file): Return gdb_bfd_ref_ptr.
14265 (open_and_init_dwo_file): Update.
14266 (open_dwp_file): Return gdb_bfd_ref_ptr.
14267 (open_and_init_dwp_file): Update.
14268 * corelow.c (core_open): Update.
14269 * compile/compile-object-load.c (compile_object_load): Update.
14270 * common/gdb_ref_ptr.h (ref_ptr::operator->): New operator.
14271 * coffread.c (coff_symfile_read): Update.
14272 * cli/cli-dump.c (bfd_openr_or_error, bfd_openw_or_error): Return
14273 gdb_bfd_ref_ptr. Rename.
14274 (dump_bfd_file, restore_command): Update.
14275 * build-id.h (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
14276 * build-id.c (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
14277 (find_separate_debug_file_by_buildid): Update.
14278
50315b21
TT
142792017-01-10 Tom Tromey <tom@tromey.com>
14280
14281 * common/gdb_ref_ptr.h: New file.
14282 * python/py-ref.h (struct gdbpy_ref_policy): New.
14283 (gdbpy_ref): Now a typedef.
14284
fc4007c9
TT
142852017-01-10 Tom Tromey <tom@tromey.com>
14286
14287 * utils.h (make_cleanup_htab_delete): Don't declare.
14288 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete):
14289 Remove.
14290 * linespec.c (decode_compound_collector): Add constructor,
14291 destructor.
14292 (lookup_prefix_sym): Remove cleanup.
14293 (symtab_collector): Add constructor, destructor.
14294 (collect_symtabs_from_filename): Remove cleanup.
14295 * disasm.c (do_mixed_source_and_assembly): Use htab_up.
14296 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
14297 Use htab_up.
14298 * gnu-v3-abi.c (gnuv3_print_vtable): Use htab_up.
14299 * dwarf2read.c (dw2_expand_symtabs_matching)
14300 (dw2_map_symbol_filenames, dwarf_decode_macros)
14301 (write_psymtabs_to_index): Use htab_up.
14302 * dwarf2loc.c (func_verify_no_selftailcall)
14303 (call_site_find_chain_1, func_verify_no_selftailcall)
14304 (chain_candidate, call_site_find_chain_1): Use std::unordered_set,
14305 std::vector, gdb::unique_xmalloc_ptr.
14306 (call_sitep): Remove typedef.
14307 (dwarf2_locexpr_baton_eval): Remove unused variable.
14308
8dbcee67
TT
143092017-01-10 Tom Tromey <tom@tromey.com>
14310
14311 * python/python-internal.h (make_cleanup_py_decref)
14312 (make_cleanup_py_xdecref): Don't declare.
14313 * python/py-utils.c (py_decref, make_cleanup_py_decref)
14314 (py_xdecref, make_cleanup_py_xdecref): Remove.
14315
13df46cc
TT
143162017-01-10 Tom Tromey <tom@tromey.com>
14317
14318 * python/py-framefilter.c (py_mi_print_variables): Use gdbpy_ref.
14319 (py_print_locals, enumerate_locals, py_print_args): Use gdbpy_ref.
14320
06fc9bf7
TT
143212017-01-10 Tom Tromey <tom@tromey.com>
14322
14323 * python/py-framefilter.c (enumerate_args): Use gdbpy_ref.
14324
830a4934
TT
143252017-01-10 Tom Tromey <tom@tromey.com>
14326
14327 * python/py-utils.c (unicode_to_encoded_string)
14328 (python_string_to_target_string)
14329 (python_string_to_target_python_string)
14330 (python_string_to_host_string, gdbpy_obj_to_string)
14331 (get_addr_from_python): Use gdbpy_ref.
14332
4586d543
TT
143332017-01-10 Tom Tromey <tom@tromey.com>
14334
14335 * python/py-unwind.c (pyuw_object_attribute_to_pointer): Use
14336 gdbpy_ref.
14337
59876f8f
TT
143382017-01-10 Tom Tromey <tom@tromey.com>
14339
14340 * python/python.c (eval_python_command, gdbpy_decode_line)
14341 (gdbpy_run_events, gdbpy_start_type_printers)
14342 (gdbpy_apply_type_printers): Use gdbpy_ref.
14343
97d83487
TT
143442017-01-10 Tom Tromey <tom@tromey.com>
14345
14346 * python/py-param.c (get_doc_string, compute_enum_values): Use
14347 gdbpy_ref.
14348
9205649a
TT
143492017-01-10 Tom Tromey <tom@tromey.com>
14350
14351 * python/py-inferior.c (find_thread_object, build_inferior_list):
14352 Use gdbpy_ref.
14353
74c49d45
TT
143542017-01-10 Tom Tromey <tom@tromey.com>
14355
14356 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
14357
16361ffb
TT
143582017-01-10 Tom Tromey <tom@tromey.com>
14359
14360 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope): Use
14361 gdbpy_ref.
14362
905f2cca
TT
143632017-01-10 Tom Tromey <tom@tromey.com>
14364
14365 * python/py-cmd.c (cmdpy_completer_helper): Use gdbpy_ref. Remove
14366 extra incref.
14367 (cmdpy_completer_handle_brkchars, cmdpy_completer, cmdpy_init):
14368 Use gdbpy_ref.
14369
64081434
TT
143702017-01-10 Tom Tromey <tom@tromey.com>
14371
14372 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
14373 gdbpy_ref.
14374
59e9e831
TT
143752017-01-10 Tom Tromey <tom@tromey.com>
14376
14377 * python/py-arch.c (archpy_disassemble): Use gdbpy_ref. Don't
14378 decref results of PyArg_ParseTupleAndKeywords.
14379
9de10f6d
TT
143802017-01-10 Tom Tromey <tom@tromey.com>
14381
14382 * python/python.c (python_run_simple_file): Use
14383 unique_xmalloc_ptr, gdbpy_ref.
14384
2bd5759d
TT
143852017-01-10 Tom Tromey <tom@tromey.com>
14386
14387 * python/py-prettyprint.c (print_stack_unless_memory_error)
14388 (print_string_repr, print_children): Use gdbpy_ref.
14389 (dummy_python_frame): New class.
14390 (dummy_python_frame::dummy_python_frame): Rename from
14391 push_dummy_python_frame.
14392 (py_restore_tstate): Remove.
14393
3b4e0e01
TT
143942017-01-10 Tom Tromey <tom@tromey.com>
14395
14396 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
14397
17a22718
TT
143982017-01-10 Tom Tromey <tom@tromey.com>
14399
14400 * python/python.c (ensure_python_env, restore_python_env):
14401 Remove.
14402 * python/python-internal.h (ensure_python_env): Don't declare.
14403 * varobj.h (varobj_ensure_python_env): Don't declare.
14404 * varobj.c (varobj_ensure_python_env): Remove.
14405
68cdc557
TT
144062017-01-10 Tom Tromey <tom@tromey.com>
14407
14408 * varobj.c (varobj_value_get_print_value): Use
14409 gdbpy_enter_varobj.
14410
1eba6383
TT
144112017-01-10 Tom Tromey <tom@tromey.com>
14412
14413 * python/py-prettyprint.c (print_string_repr, print_children):
14414 Update.
14415 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Change type
14416 of "encoding".
14417 * varobj.c (varobj_value_get_print_value): Update.
14418 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
14419
bde7b3e3
TT
144202017-01-10 Tom Tromey <tom@tromey.com>
14421
14422 * varobj.c (varobj_get_display_hint)
14423 (dynamic_varobj_has_child_method, install_new_value_visualizer)
14424 (varobj_set_visualizer, free_variable): Use
14425 gdbpy_enter_varobj.
14426
a7785f8c
TT
144272017-01-10 Tom Tromey <tom@tromey.com>
14428
14429 * python/python.c (python_command): Use gdbpy_enter, gdbpy_ref.
14430 (do_finish_initialization): New function. Use gdbpy_ref.
14431 (gdbpy_finish_initialization): Use gdbpy_enter. Call
14432 do_finish_initialization.
14433
2865bfce
TT
144342017-01-10 Tom Tromey <tom@tromey.com>
14435
14436 * python/py-param.c (get_set_value, get_show_value): Use
14437 gdbpy_enter, gdbpy_ref.
14438
0e9dcc75
TT
144392017-01-10 Tom Tromey <tom@tromey.com>
14440
14441 * python/py-function.c (fnpy_call): Use gdbpy_enter, gdbpy_ref.
14442
12a5cedd
TT
144432017-01-10 Tom Tromey <tom@tromey.com>
14444
14445 * python/py-cmd.c (cmdpy_function): Use gdbpy_enter, gdbpy_ref.
14446
788f2586
TT
144472017-01-10 Tom Tromey <tom@tromey.com>
14448
14449 * python/py-varobj.c (py_varobj_iter_dtor, py_varobj_iter_next):
14450 Use gdbpy_enter_varobj.
14451
6cd67bea
TT
144522017-01-10 Tom Tromey <tom@tromey.com>
14453
14454 * varobj.c (gdbpy_enter_varobj): New constructor.
14455 * python/python-internal.h (gdbpy_enter_varobj): New class.
14456 * python/py-varobj.c (py_varobj_get_iterator): Use
14457 gdbpy_enter_varobj.
14458
14b122bf
TT
144592017-01-10 Tom Tromey <tom@tromey.com>
14460
14461 * python/py-xmethods.c (gdbpy_get_xmethod_result_type): Use
14462 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
14463 (gdbpy_invoke_xmethod): Use gdbpy_ref, gdbpy_enter.
14464 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref,
14465 unique_xmalloc_ptr.
14466 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref, gdbpy_enter.
14467
bf1ca3b9
TT
144682017-01-10 Tom Tromey <tom@tromey.com>
14469
14470 * python/py-xmethods.c (invoke_match_method): Use
14471 gdbpy_ref.
14472
572a5524
TT
144732017-01-10 Tom Tromey <tom@tromey.com>
14474
14475 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): use
14476 gdbpy_enter, gdbpy_ref.
14477
396a78b6
TT
144782017-01-10 Tom Tromey <tom@tromey.com>
14479
14480 * python/python.c (python_interactive_command): Use gdbpy_enter.
14481
a88b13c7
TT
144822017-01-10 Tom Tromey <tom@tromey.com>
14483
14484 * python/python.c (gdbpy_before_prompt_hook): Use gdbpy_enter,
14485 gdbpy_ref.
14486
e9f0c363
TT
144872017-01-10 Tom Tromey <tom@tromey.com>
14488
14489 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Use
14490 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
14491
6349f452
TT
144922017-01-10 Tom Tromey <tom@tromey.com>
14493
14494 * utils.h (htab_deleter): New struct.
14495 (htab_up): New typedef.
14496 * python/py-framefilter.c (gdbpy_apply_frame_filter): Use
14497 gdbpy_enter, gdbpy_ref, htab_up.
14498
c0171de6
TT
144992017-01-10 Tom Tromey <tom@tromey.com>
14500
14501 * python/py-unwind.c (pending_frame_invalidate): Remove.
14502 (pyuw_sniffer): Use gdbpy_enter and gdbpy_ref.
14503
f18e226f
TT
145042017-01-10 Tom Tromey <tom@tromey.com>
14505
14506 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data)
14507 (gdbpy_clone_xmethod_worker_data): Use gdbpy_enter.
14508
c57af3f1
TT
145092017-01-10 Tom Tromey <tom@tromey.com>
14510
14511 * python/py-type.c (save_objfile_types): Use gdbpy_enter.
14512
60e600ec
TT
145132017-01-10 Tom Tromey <tom@tromey.com>
14514
14515 * python/python.c (gdbpy_eval_from_control_command)
14516 (gdbpy_source_script, gdbpy_run_events)
14517 (gdbpy_source_objfile_script, gdbpy_execute_objfile_script)
14518 (gdbpy_free_type_printers, gdbpy_finish_initialization): Use
14519 gdbpy_enter.
14520
bf7da5b0
TT
145212017-01-10 Tom Tromey <tom@tromey.com>
14522
14523 * python/py-progspace.c (py_free_pspace): Use gdbpy_enter.
14524
2d38bced
TT
145252017-01-10 Tom Tromey <tom@tromey.com>
14526
14527 * python/py-objfile.c (py_free_objfile): Use gdbpy_enter.
14528
07bc7329
TT
145292017-01-10 Tom Tromey <tom@tromey.com>
14530
14531 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
14532 (python_on_inferior_call_pre, python_on_inferior_call_post)
14533 (python_on_memory_change, python_on_register_change)
14534 (python_inferior_exit, python_new_objfile, add_thread_object)
14535 (delete_thread_object, py_free_inferior): Use gdbpy_enter.
14536
6e7c365e
TT
145372017-01-10 Tom Tromey <tom@tromey.com>
14538
14539 * python/py-finishbreakpoint.c (bpfinishpy_handle_stop)
14540 (bpfinishpy_handle_exit): Use gdbpy_enter.
14541
6ba0cd40
TT
145422017-01-10 Tom Tromey <tom@tromey.com>
14543
14544 * python/py-cmd.c (cmdpy_destroyer)
14545 (cmdpy_completer_handle_brkchars, cmdpy_completer): Use
14546 gdbpy_enter.
14547
de2dc875
TT
145482017-01-10 Tom Tromey <tom@tromey.com>
14549
14550 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
14551 gdbpy_enter.
14552 (gdbpy_breakpoint_has_cond): Likewise.
14553
4ecee2c4
TT
145542017-01-10 Tom Tromey <tom@tromey.com>
14555
14556 * python/python.c (gdbpy_enter): New constructor.
14557 (~gdbpy_enter): New destructor.
14558 (restore_python_env, ensure_python_env): Rewrite.
14559 * python/python-internal.h (gdbpy_enter): New class.
14560
37fce74f
TT
145612017-01-10 Tom Tromey <tom@tromey.com>
14562
14563 * python/py-symbol.c (gdbpy_lookup_symbol): Use gdbpy_ref.
14564
53a0cca3
TT
145652017-01-10 Tom Tromey <tom@tromey.com>
14566
14567 * python/py-value.c (value_has_field, get_field_flag)
14568 (get_field_type, valpy_getitem, convert_value_from_python): Use
14569 gdbpy_ref.
14570
ff3724f5
TT
145712017-01-10 Tom Tromey <tom@tromey.com>
14572
14573 * python/python.c (gdbpy_progspaces, gdbpy_objfiles): Use
14574 gdbpy_ref.
14575
0700aea5
TT
145762017-01-10 Tom Tromey <tom@tromey.com>
14577
14578 * python/py-prettyprint.c (search_pp_list)
14579 (find_pretty_printer_from_objfiles)
14580 (find_pretty_printer_from_progspace)
14581 (find_pretty_printer_from_gdb, find_pretty_printer)
14582 (gdbpy_get_display_hint, gdbpy_get_varobj_pretty_printer): Use
14583 gdbpy_ref.
14584
1bb44c9f
TT
145852017-01-10 Tom Tromey <tom@tromey.com>
14586
14587 * python/py-param.c (call_doc_function): Use gdbpy_ref.
14588
87ce03fd
TT
145892017-01-10 Tom Tromey <tom@tromey.com>
14590
14591 * python/py-linetable.c (build_line_table_tuple_from_pcs)
14592 (ltpy_get_all_source_lines): Use gdbpy_ref.
14593
ee0a3fb8
TT
145942017-01-10 Tom Tromey <tom@tromey.com>
14595
14596 * python/py-framefilter.c (extract_sym, extract_value)
14597 (get_py_iter_from_func, bootstrap_python_frame_filters): Use
14598 gdbpy_ref.
14599
bf2a52fa
TT
146002017-01-10 Tom Tromey <tom@tromey.com>
14601
14602 * python/py-breakpoint.c (gdbpy_breakpoints): Use gdbpy_ref.
14603
f59fe7f8
TT
146042017-01-10 Tom Tromey <tom@tromey.com>
14605
14606 * python/py-inferior.c (gdbpy_inferiors): Use gdbpy_ref.
14607
80bd970a
TT
146082017-01-10 Tom Tromey <tom@tromey.com>
14609
14610 * python/py-function.c (convert_values_to_python, fnpy_init): Use
14611 gdbpy_ref.
14612
d1b3de2e
TT
146132017-01-10 Tom Tromey <tom@tromey.com>
14614
14615 * python/py-cmd.c (gdbpy_string_to_argv): Use gdbpy_ref.
14616
3bb43384
TT
146172017-01-10 Tom Tromey <tom@tromey.com>
14618
14619 * python/py-type.c (convert_field, make_fielditem, typy_fields)
14620 (typy_range): Use gdbpy_ref.
14621
abf5651e
TT
146222017-01-10 Tom Tromey <tom@tromey.com>
14623
14624 * python/py-threadevent.c (create_thread_event_object): Use
14625 gdbpy_ref.
14626 * python/py-stopevent.c (create_stop_event_object): Simplify.
14627 (emit_stop_event): Use gdbpy_ref.
14628 * python/py-signalevent.c (create_signal_event_object): Use
14629 gdbpy_ref.
14630 * python/py-newobjfileevent.c (create_new_objfile_event_object)
14631 (emit_new_objfile_event, create_clear_objfiles_event_object)
14632 (emit_clear_objfiles_event): Use gdbpy_ref.
14633 * python/py-infevents.c (create_inferior_call_event_object)
14634 (create_register_changed_event_object)
14635 (create_memory_changed_event_object, emit_inferior_call_event)
14636 (emit_memory_changed_event, emit_register_changed_event): Use
14637 gdbpy_ref.
14638 * python/py-exitedevent.c (create_exited_event_object)
14639 (emit_exited_event): Use gdbpy_ref.
14640 * python/py-event.h (evpy_emit_event): Remove
14641 CPYCHECKER_STEALS_REFERENCE_TO_ARG annotation.
14642 * python/py-event.c (evpy_emit_event): Use gdbpy_ref.
14643 * python/py-continueevent.c (emit_continue_event): Use
14644 gdbpy_ref.
14645 * python/py-breakpoint.c (gdbpy_breakpoint_created)
14646 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
14647 gdbpy_ref.
14648 * python/py-bpevent.c (create_breakpoint_event_object): Use
14649 gdbpy_ref.
14650
a68ff33e
TT
146512017-01-10 Tom Tromey <tom@tromey.com>
14652
14653 * python/py-ref.h: New file.
14654
7becfd03
SM
146552017-01-10 Simon Marchi <simon.marchi@ericsson.com>
14656
14657 * cli-out.c (cli_ui_out::do_redirect): Change return type to
14658 void.
14659 * cli-out.h (cli_ui_out::do_redirect): Likewise.
14660 * mi/mi-out.c (mi_ui_out::do_redirect): Likewise.
14661 * mi/mi-out.h (mi_ui_out::do_redirect): Likewise.
14662 * ui-out.c (ui_out::redirect): Likewise.
14663 * ui-out.h (ui_out::redirect, ui_out::do_redirect): Likewise.
14664 * cli/cli-logging.c (set_logging_redirect): Update call site of
14665 ui_out::redirect.
14666 (handle_redirections): Likewise.
14667 * scm-ports.c (ioscm_with_output_to_port_worker): Likewise.
14668 * top.c (execute_command_to_string): Likewise.
14669 * utils.c (do_ui_out_redirect_pop): Likewise.
14670
df294654
SM
146712017-01-10 Simon Marchi <simon.marchi@ericsson.com>
14672
14673 * stack.c (_initialize_stack): Update "frame" command help message.
14674
f5e6296e
IB
146752017-01-08 Iain Buclaw <ibuclaw@gdcproject.org>
14676
14677 * d-exp.y (CastExpression): Emit UNOP_CAST_TYPE.
14678
0e2d6fa6
YQ
146792017-01-06 Yao Qi <yao.qi@linaro.org>
14680
14681 * x86-linux-nat.h: Include gdb_proc_service.h.
14682
44d6d3f9
YQ
146832017-01-06 Yao Qi <yao.qi@linaro.org>
14684
14685 * ser-base.h: Include serial.h.
14686
656731fe
YQ
146872017-01-06 Yao Qi <yao.qi@linaro.org>
14688
14689 * ppc-linux-tdep.h: Include ppc-tdep.h.
14690
1ca8f924
YQ
146912017-01-06 Yao Qi <yao.qi@linaro.org>
14692
14693 * nat/amd64-linux-siginfo.h: Include signal.h.
14694
bc3008c4
YQ
146952017-01-06 Yao Qi <yao.qi@linaro.org>
14696
14697 * nat/aarch64-linux-hw-point.h: Include break-common.h.
14698
66c80d03
YQ
146992017-01-06 Yao Qi <yao.qi@linaro.org>
14700
14701 * mi/mi-parse.h: Include mi-cmds.h.
14702
051d2dda
YQ
147032017-01-06 Yao Qi <yao.qi@linaro.org>
14704
14705 * inf-loop.c: Don't include "target.h".
14706 * inf-loop.h: Include it here.
14707
8018d34f
YQ
147082017-01-06 Yao Qi <yao.qi@linaro.org>
14709
14710 * dfp.h: Include "dboulest.h" and "expression.h".
14711
c0b8369c
YQ
147122017-01-06 Yao Qi <yao.qi@linaro.org>
14713
14714 * ax-gdb.h: Include "ax.h".
14715
ad5cba2a
YQ
147162017-01-06 Yao Qi <yao.qi@linaro.org>
14717
14718 * Makefile.in (HFILES_NO_SRCDIR): Replace gdb_ptrace.h
14719 with nat/gdb_ptrace.h.
14720
1c33cd7f
YQ
147212017-01-05 Yao Qi <yao.qi@linaro.org>
14722
14723 * mips-fbsd-tdep.c (mips_fbsd_sigframe_init): Move && to
14724 new line.
14725 (mips64_fbsd_sigframe_init): Likewise.
14726
c988ac1d
JB
147272017-01-04 John Baldwin <jhb@FreeBSD.org>
14728
14729 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Use
14730 GDB_OSABI_FREEBSD instead of GDB_OSABI_FREEBSD_ELF.
14731
b268007c
JB
147322017-01-04 John Baldwin <jhb@FreeBSD.org>
14733
14734 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
14735 * NEWS: Mention new FreeBSD/mips native configuration.
14736 * config/mips/fbsd.mh: New file.
14737 * configure.host: Add mips*-*-freebsd*.
14738 * mips-fbsd-nat.c: New file.
14739
387360da
JB
147402017-01-04 John Baldwin <jhb@FreeBSD.org>
14741
14742 * Makefile.in (ALL_TARGET_OBS): Add mips-fbsd-tdep.o.
14743 (ALLDEPFILES): Add mips-fbsd-tdep.c.
14744 * NEWS: Mention new FreeBSD/mips target.
14745 * configure.tgt: Add mips*-*-freebsd*.
14746 * mips-fbsd-tdep.c: New file.
14747 * mips-fbsd-tdep.h: New file.
14748
2aaaf250
YQ
147492017-01-04 Yao Qi <yao.qi@linaro.org>
14750
14751 * dwarf2loc.c (write_pieced_value): Don't use VALUE_FRAME_ID (to),
14752 use c->frame_id when the piece location is DWARF_VALUE_REGISTER.
14753
61baf725
JB
147542017-01-01 Joel Brobecker <brobecker@adacore.com>
14755
6dbb839a 14756 Update copyright year range in all GDB files.
61baf725 14757
c113e7ff 147582017-01-01 Joel Brobecker <brobecker@adacore.com>
ce0db137 14759
c113e7ff 14760 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2016.
ce0db137 14761
c113e7ff 14762For older changes see ChangeLog-2016.
c906108c
SS
14763\f
14764Local Variables:
14765mode: change-log
14766left-margin: 8
14767fill-column: 74
14768version-control: never
57da7796 14769coding: utf-8
c906108c 14770End:
This page took 3.207226 seconds and 4 git commands to generate.