btrace: bridge gaps
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2016-10-28 Markus Metzger <markus.t.metzger@intel.com>
2
3 * btrace.c (bfun_s): New typedef.
4 (ftrace_update_caller): Print caller in debug dump.
5 (ftrace_get_caller, ftrace_match_backtrace, ftrace_fixup_level)
6 (ftrace_compute_global_level_offset, ftrace_connect_bfun)
7 (ftrace_connect_backtrace, ftrace_bridge_gap, btrace_bridge_gaps): New.
8 (btrace_compute_ftrace_bts): Pass vector of gaps. Collect gaps.
9 (btrace_compute_ftrace_pt): Likewise.
10 (btrace_compute_ftrace): Split into this, ...
11 (btrace_compute_ftrace_1): ... this, and ...
12 (btrace_finalize_ftrace): ... this. Call btrace_bridge_gaps.
13
14 2016-10-28 Markus Metzger <markus.t.metzger@intel.com>
15
16 * btrace.c (ftrace_new_return): Start from the previous function's
17 level if we can't find a matching call for a return.
18
19 2016-10-28 Markus Metzger <markus.t.metzger@intel.com>
20
21 * btrace.c (ftrace_update_function): Update tail call heuristic.
22
23 2016-10-28 Markus Metzger <markus.t.metzger@intel.com>
24
25 * btrace.c (btrace_compute_ftrace_bts, ftrace_add_pt): Allow
26 leading gaps.
27 * record-btrace.c (record_btrace_single_step_forward)
28 (record_btrace_single_step_backward): Jump back to last
29 instruction if step ends at a gap.
30 (record_btrace_goto_begin): Skip gaps.
31
32 2016-10-28 Markus Metzger <markus.t.metzger@intel.com>
33
34 * btrace.c (ftrace_add_pt): Fix gap indication. Add warning for non-
35 contiguous trace and overflow. Rephrase trace decode warning and print
36 instruction number. Remove dead gaps warning.
37 (btrace_compute_ftrace_bts): Rephrase warnings and print instruction
38 number.
39
40 2016-10-25 Sandra Loosemore <sandra@codesourcery.com>
41 Luis Machado <lgustavo@codesourcery.com>
42 Pedro Alves <palves@redhat.com>
43
44 PR gdb/20569
45 * exceptions.c (exception_print_same): Moved here from exec.c.
46 * exceptions.h (exception_print_same): Declare.
47 * exec.h: Include "symfile-add-flags.h".
48 (try_open_exec_file): New declaration.
49 * exec.c (exception_print_same): Moved to exceptions.c.
50 (try_open_exec_file): New function.
51 (exec_file_locate_attach): Rename exec_file and full_exec_path
52 variables to avoid confusion between target and host pathnames.
53 Move pathname processing logic to exec_file_find. Do not return
54 early if pathname lookup fails; Call try_open_exec_file.
55 * infrun.c (follow_exec): Split and rename execd_pathname variable
56 to avoid confusion between target and host pathnames. Warn if
57 pathname lookup fails. Pass target pathname to
58 target_follow_exec, not hostpathname. Call try_open_exec_file.
59 * main.c (symbol_file_add_main_adapter): New function.
60 (captured_main_1): Use it.
61 * solib-svr4.c (open_symbol_file_object): Adjust to pass
62 symfile_add_flags to symbol_file_add_main.
63 * solib.c (exec_file_find): Incorporate fallback logic for relative
64 pathnames formerly in exec_file_locate_attach.
65 * symfile.c (symbol_file_add_main, symbol_file_add_main_1):
66 Replace 'from_tty' parameter with a symfile_add_file.
67 (symbol_file_command): Adjust to pass symfile_add_flags to
68 symbol_file_add_main.
69 * symfile.h (symbol_file_add_main): Replace 'from_tty' parameter
70 with a symfile_add_file.
71
72 2016-10-26 Pedro Alves <palves@redhat.com>
73
74 * coffread.c (coff_symfile_read): Use symfile_add_flags.
75 * dbxread.c (dbx_symfile_read): Ditto.
76 * elfread.c (elf_symfile_read): Ditto.
77 * inferior.h: Include symfile-add-flags.h.
78 (struct inferior) <symfile_flags>: Now symfile_add_flags.
79 * machoread.c (macho_add_oso_symfile, macho_symfile_read_all_oso)
80 (macho_symfile_read, mipscoff_symfile_read): Use
81 symfile_add_flags.
82 * objfile-flags.h: New file.
83 * objfiles.c (allocate_objfile): Use objfile_flags.
84 * objfiles.h: Include objfile-flags.h.
85 (struct objfile) <flags>: Now an objfile_flags.
86 (OBJF_REORDERED, OBJF_SHARED, OBJF_READNOW, OBJF_USERLOADED)
87 (OBJF_PSYMTABS_READ, OBJF_MAINLINE, OBJF_NOT_FILENAME): Delete.
88 Converted to an enum-flags in objfile-flags.h.
89 (allocate_objfile): Use objfile_flags.
90 * python/py-objfile.c (objfpy_add_separate_debug_file): Remove
91 unnecessary local.
92 * solib.c (solib_read_symbols, solib_add)
93 (reload_shared_libraries_1): Use symfile_add_flags.
94 * solib.h: Include "symfile-add-flags.h".
95 (solib_read_symbols): Use symfile_add_flags.
96 * symfile-add-flags.h: New file.
97 * symfile-debug.c (debug_sym_read): Use symfile_add_flags.
98 * symfile-mem.c (symbol_file_add_from_memory): Use
99 symfile_add_flags.
100 * symfile.c (read_symbols, syms_from_objfile_1)
101 (syms_from_objfile, finish_new_objfile): Use symfile_add_flags.
102 (symbol_file_add_with_addrs): Use symfile_add_flags and
103 objfile_flags.
104 (symbol_file_add_separate): Use symfile_add_flags.
105 (symbol_file_add_from_bfd, symbol_file_add): Use symfile_add_flags
106 and objfile_flags.
107 (symbol_file_add_main_1): : Use objfile_flags. Fix add_flags vs
108 flags confusion.
109 (symbol_file_command): Use objfile_flags.
110 (add_symbol_file_command): Use symfile_add_flags and
111 objfile_flags.
112 (clear_symtab_users): Use symfile_add_flags.
113 * symfile.h: Include "symfile-add-flags.h" and "objfile-flags.h".
114 (struct sym_fns) <sym_read>: Use symfile_add_flags.
115 (clear_symtab_users): Use symfile_add_flags.
116 (enum symfile_add_flags): Delete, moved to symfile-add-flags.h and
117 converted to enum-flags.
118 (symbol_file_add, symbol_file_add_from_bfd)
119 (symbol_file_add_separate): Use symfile_add_flags.
120 * xcoffread.c (xcoff_initial_scan): Use symfile_add_flags.
121
122 2016-10-26 Pedro Alves <palves@redhat.com>
123
124 * inferior.h (ALL_NON_EXITED_INFERIORS): New macro.
125 * infrun.c (do_target_resume): Call target_commit_resume.
126 (proceed): Defer target_commit_resume while looping over threads,
127 resuming them. Call target_commit_resume at the end.
128 * record-btrace.c (record_btrace_commit_resume): New function.
129 (init_record_btrace_ops): Install it as to_commit_resume method.
130 * record-full.c (record_full_commit_resume): New function.
131 (record_full_wait_1): Call the beneath target's to_commit_resume
132 method.
133 (init_record_full_ops): Install record_full_commit_resume as
134 to_commit_resume method.
135 * remote.c (struct private_thread_info) <last_resume_step,
136 last_resume_sig, vcont_resumed>: New fields.
137 (remote_add_thread): Set the new thread's vcont_resumed flag.
138 (demand_private_info): Delete.
139 (get_private_info_thread, get_private_info_ptid): New functions.
140 (remote_update_thread_list): Adjust.
141 (process_initial_stop_replies): Clear the thread's vcont_resumed
142 flag.
143 (remote_resume): If connected in non-stop mode, record the resume
144 request and return early.
145 (struct private_inferior): New.
146 (struct vcont_builder): New.
147 (vcont_builder_restart, vcont_builder_flush)
148 (vcont_builder_push_action): New functions.
149 (MAX_ACTION_SIZE): New macro.
150 (remote_commit_resume): New function.
151 (thread_pending_fork_status, is_pending_fork_parent_thread): New
152 functions.
153 (check_pending_event_prevents_wildcard_vcont_callback)
154 (check_pending_events_prevent_wildcard_vcont): New functions.
155 (process_stop_reply): Adjust. Clear the thread's vcont_resumed
156 flag.
157 (init_remote_ops): Install remote_commit_resume.
158 * target-delegates.c: Regenerate.
159 * target.c (defer_target_commit_resume): New global.
160 (target_commit_resume, make_cleanup_defer_target_commit_resume):
161 New functions.
162 * target.h (struct target_ops) <to_commit_resume>: New field.
163 (target_resume): Update comments.
164 (target_commit_resume): New declaration.
165
166 2016-10-26 Pedro Alves <palves@redhat.com>
167
168 * inferior.c (exit_inferior_1): Free 'priv'.
169
170 2016-10-26 Pedro Alves <palves@redhat.com>
171
172 * remote.c (remote_resume_with_hc): New function, factored out
173 from ...
174 (remote_resume): ... this. Always try vCont first.
175 (remote_vcont_resume): Rename to ...
176 (remote_resume_with_vcont): ... this. Bail out if execution
177 direction is reverse.
178
179 2016-10-25 Pedro Alves <palves@redhat.com>
180
181 * dwarf2expr.h (struct dwarf_expr_context) <~dwarf_expr_context>:
182 Make virtual.
183
184 2016-10-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
185
186 PR build/20712
187 * defs.h: Remove obsolete comment
188 (atof): Remove.
189 * procfs.c (do_destroy_procinfo_cleanup): Add cast.
190 (sysset_t_alloc): Likewise.
191 (proc_set_traced_sysentry): Likewise.
192 (proc_set_traced_sysexit): Likewise.
193 [!PIOCLSTATUS && NEW_PROC_API] (do_closedir_cleanup): Likewise.
194 (proc_get_LDT_entry): Initiate cleanups before returns.
195 (procfs_wait): Use GDB_SIGNAL_0.
196 (procfs_corefile_thread_callback): Add cast.
197 * sol-thread.c (td_log_ftype, td_ta_new_ftype, td_ta_delete_ftype)
198 (td_init_ftype, td_ta_get_ph_ftype, td_ta_get_nthreads_ftype)
199 (td_ta_tsd_iter_ftype, td_ta_thr_iter_ftype)
200 (td_thr_validate_ftype, td_thr_tsd_ftype, td_thr_get_info_ftype)
201 (td_thr_getfpregs_ftype, td_thr_getxregsize_ftype)
202 (td_thr_getxregs_ftype, td_thr_sigsetmask_ftype)
203 (td_thr_setprio_ftype, td_thr_setsigpending_ftype)
204 (td_thr_setfpregs_ftype, td_thr_setxregs_ftype)
205 (td_ta_map_id2thr_ftype, td_ta_map_lwp2thr_ftype)
206 (td_thr_getgregs_ftype, td_thr_setgregs_ftype): New typedefs.
207 (p_td_log, p_td_ta_new, p_td_ta_delete, p_td_init, p_td_ta_get_ph)
208 (p_td_ta_get_nthreads, p_td_ta_tsd_iter, p_td_ta_thr_iter)
209 (p_td_thr_validate, p_td_thr_tsd, p_td_thr_get_info)
210 (p_td_thr_getfpregs, p_td_thr_getxregsize, p_td_thr_getxregs)
211 (p_td_thr_sigsetmask, p_td_thr_setprio, p_td_thr_setsigpending)
212 (p_td_thr_setfpregs, p_td_thr_setxregs, p_td_ta_map_id2thr)
213 (p_td_ta_map_lwp2thr, p_td_thr_getgregs, p_td_thr_setgregs): Use them.
214 (ps_pdread): Add cast.
215 (ps_ptread): Likewise.
216 (resolve): Likewise.
217 * top.c (gdb_safe_append_history): Print pid_t as long.
218
219 2016-10-25 Pedro Alves <palves@redhat.com>
220
221 * common/common-defs.h (__STDC_FORMAT_MACROS): Define.
222
223 2016-10-25 Pedro Alves <palves@redhat.com>
224
225 * common/new-op.c: Add comment about -fsanitize=address.
226
227 2016-10-25 Pedro Alves <palves@redhat.com>
228
229 * common/common-defs.h (__STDC_CONSTANT_MACROS)
230 (__STDC_LIMIT_MACROS): Define.
231
232 2016-10-25 Yao Qi <yao.qi@linaro.org>
233
234 PR gdb/20716
235 * common/new-op.c (__has_feature): New macro.
236 Don't override operator new if asan is used.
237
238 2016-10-24 Luis Machado <lgustavo@codesourcery.com>
239
240 * exec.c (exec_file_locate_attach): Prevent NULL pointer dereference
241 when duplicating a string.
242
243 2016-10-24 Luis Machado <lgustavo@codesourcery.com>
244
245 * exec.c (exception_print_same): Fix string comparison to use
246 statically-allocated ones.
247
248 2016-10-21 Tom Tromey <tom@tromey.com>
249
250 * dwarf2expr.h (class dwarf_expr_context)
251 <get_frame_base, get_frame_cfa, get_tls_address, dwarf_call,
252 push_dwarf_block_entry_value, get_addr_index, get_object_address>:
253 Now pure virtual.
254 * dwarf2-frame.c (class dwarf_expr_executor)
255 <get_frame_base, get_frame_cfa, get_tls_address, dwarf_call,
256 push_dwarf_block_entry_value, get_addr_index, get_object_address>:
257 New methods.
258 <invalid>: New method.
259
260 2016-10-21 Tom Tromey <tom@tromey.com>
261
262 * minsyms.h (minimal_symbol_reader::record_full): "copy_name" now
263 a bool.
264 (record, record_with_info): Update.
265 * minsyms.c (record): Fix indentation.
266 (record_full): Fix indentation. Update for type change.
267 * elfread.c (record_minimal_symbol): "copy_name" now a bool.
268 (elf_symtab_read): "copy_names" now a bool.
269 (elf_rel_plt_read, elf_read_minimal_symbols): Update.
270
271 2016-10-21 Tom Tromey <tom@tromey.com>
272
273 * main.c: Include <vector>.
274 (cmdarg_s): Remove typedef. Don't define VEC.
275 (captured_main_1): Use vector, not VEC. Remove cleanups.
276
277 2016-10-21 Tom Tromey <tom@tromey.com>
278
279 * dwarf2loc.c (struct dwarf_expr_context_funcs): Don't declare.
280 (dwarf_expr_read_addr_from_reg, dwarf_expr_get_reg_value)
281 (dwarf_expr_read_mem, dwarf_expr_frame_base): Rename; turn into
282 methods.
283 (get_frame_pc_for_per_cu_dwarf_call): New function.
284 (dwarf_expr_frame_cfa, dwarf_expr_frame_pc)
285 (dwarf_expr_tls_address): Rename; turn into methods.
286 (per_cu_dwarf_call): Remove arguments. Use
287 get_frame_pc_for_per_cu_dwarf_call.
288 (dwarf_evaluate_loc_desc): New class.
289 (dwarf_expr_dwarf_call, dwarf_expr_context)
290 (dwarf_expr_push_dwarf_reg_entry_value)
291 (dwarf_expr_get_addr_index, dwarf_expr_get_obj_addr): Rename; turn
292 into methods.
293 (dwarf_expr_ctx_funcs): Remove.
294 (dwarf2_evaluate_loc_desc_full): Update.
295 (dwarf2_locexpr_baton_eval): Update.
296 (symbol_needs_eval_context): New class.
297 (symbol_needs_read_addr_from_reg, symbol_needs_get_reg_value)
298 (symbol_needs_read_mem, symbol_needs_frame_base)
299 (symbol_needs_frame_cfa, symbol_needs_tls_address)
300 (symbol_needs_dwarf_call, needs_dwarf_reg_entry_value): Rename;
301 turn into methods.
302 (needs_get_addr_index, needs_get_obj_addr): Remove; turn into
303 methods.
304 (symbol_needs_ctx_funcs): Remove.
305 (dwarf2_loc_desc_get_symbol_read_needs): Update.
306 * dwarf2expr.h (struct dwarf_expr_context_funcs): Remove; turn
307 contents into methods.
308 (struct dwarf_expr_context) <baton, funcs>: Remove.
309 <read_addr_from_reg, get_reg_value, read_mem, get_frame_base,
310 get_frame_cfa, get_frame_pc, get_tls_address, dwarf_call,
311 impl_get_base_type, push_dwarf_block_entry_value, get_addr_index,
312 get_object_address>: Declare new methods.
313 (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
314 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
315 (ctx_no_get_base_type, ctx_no_push_dwarf_reg_entry_value)
316 (ctx_no_get_addr_index): Don't declare.
317 * dwarf2expr.c (get_base_type): Use impl_get_base_type.
318 (execute_stack_op): Update.
319 (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
320 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
321 (ctx_no_get_base_type, ctx_no_push_dwarf_reg_entry_value)
322 (ctx_no_get_addr_index): Remove; now methods on
323 dwarf_expr_context.
324 * dwarf2-frame.c (read_addr_from_reg): Take a frame_info, not a
325 baton.
326 (class dwarf_expr_executor): New class.
327 (get_reg_value, read_mem): Rename, turn into methods.
328 (execute_stack_op): Use dwarf_expr_executor.
329
330 2016-10-21 Tom Tromey <tom@tromey.com>
331
332 * dwarf2loc.c (per_cu_dwarf_call)
333 (dwarf_expr_push_dwarf_reg_entry_value)
334 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
335 (needs_dwarf_reg_entry_value)
336 (dwarf2_loc_desc_get_symbol_read_needs): Update.
337 * dwarf2expr.h (dwarf_expr_context) <push_address, eval, fetch,
338 fetch_address, fetch_in_stack_memory, address_type, grow_stack,
339 push, stack_empty_p, add_piece, get_base_type, execute_stack_op,
340 pop>: New method declarations.
341 (dwarf_expr_push_address, dwarf_expr_eval, dwarf_expr_fetch)
342 (dwarf_expr_fetch_address, dwarf_expr_fetch_in_stack_memory):
343 Don't declare.
344 * dwarf2expr.c (address_type, grow_stack, push, push_address)
345 (pop, fetch, fetch_address, fetch_in_stack_memory)
346 (stack_empty_p, add_piece, eval, get_base_type)
347 (execute_stack_op): Rename. Turn into methods.
348 * dwarf2-frame.c (execute_stack_op): Update.
349
350 2016-10-21 Tom Tromey <tom@tromey.com>
351
352 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Stack-allocate
353 dwarf_expr_context. Remove cleanups.
354 (dwarf2_locexpr_baton_eval)
355 (dwarf2_loc_desc_get_symbol_read_needs): Likewise.
356 * dwarf2expr.h (dwarf_expr_context, ~dwarf_expr_context): Add
357 constructors and destructors.
358 (new_dwarf_expr_context, free_dwarf_expr_context)
359 (make_cleanup_free_dwarf_expr_context): Don't declare.
360 * dwarf2-frame.c (execute_stack_op): Stack-allocate
361 dwarf_expr_context. Remove cleanups.
362 (dwarf_expr_context): Rename from new_dwarf_expr_context. Turn
363 into constructor.
364 (free_dwarf_expr_context, free_dwarf_expr_context_cleanup):
365 Remove.
366 (~dwarf_expr_context): Rename from
367 make_cleanup_free_dwarf_expr_context. Turn into destructor.
368
369 2016-10-21 Tom Tromey <tom@tromey.com>
370
371 * dwarf2loc.c: Include <vector>.
372 (read_pieced_value, write_pieced_value)
373 (dwarf2_compile_expr_to_ax): Use std::vector.
374
375 2016-10-21 Tom Tromey <tom@tromey.com>
376
377 * stack.c (print_stack_frame_to_uiout): Use scoped_restore.
378 * ui-out.c (make_cleanup_restore_current_uiout)
379 (restore_current_uiout_cleanup): Remove.
380 * infrun.c (print_stop_event): Use scoped_restore.
381 * ui-out.h (make_cleanup_restore_current_uiout): Don't declare.
382
383 2016-10-21 Tom Tromey <tom@tromey.com>
384
385 * elfread.c (elf_read_minimal_symbols): Use gdb::unique_ptr.
386
387 2016-10-21 Tom Tromey <tom@tromey.com>
388
389 * cli/cli-dump.c (dump_memory_to_file): Use gdb::unique_ptr.
390 (restore_binary_file): Likewise.
391
392 2016-10-21 Tom Tromey <tom@tromey.com>
393
394 * maint.h (scoped_command_stats): New class.
395 (make_command_stats_cleanup): Don't declare.
396 * maint.c (struct cmd_stats): Remove.
397 (~scoped_command_stats): Rename from report_command_stats. Now a
398 destructor.
399 (scoped_command_stats): Rename from make_command_stats_cleanup.
400 Now a constructor.
401 * main.c (captured_main_1): New function. Use
402 scoped_command_stats.
403 (captured_main): Call captured_main_1.
404 * event-top.c (command_handler): Use scoped_command_stats.
405
406 2016-10-21 Tom Tromey <tom@tromey.com>
407
408 * mi/mi-main.c (mi_cmd_data_read_memory): Use gdb::unique_ptr.
409 Remove some cleanups.
410
411 2016-10-21 Tom Tromey <tom@tromey.com>
412
413 * tui/tui-interp.c (tui_on_normal_stop, tui_on_signal_received)
414 (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited)
415 (tui_on_no_history, tui_on_user_selected_context_changed):
416 Update.
417 * top.h (switch_thru_all_uis): New class.
418 (SWITCH_THRU_ALL_UIS): Rewrite.
419 (make_cleanup_restore_current_ui, switch_thru_all_uis_init)
420 (switch_thru_all_uis_cond, switch_thru_all_uis_next): Don't
421 declare.
422 * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
423 (mi_record_changed, mi_inferior_added, mi_inferior_appeared)
424 (mi_inferior_exit, mi_inferior_removed, mi_on_signal_received)
425 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
426 (mi_on_no_history, mi_on_normal_stop, mi_traceframe_changed)
427 (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified)
428 (mi_breakpoint_created, mi_breakpoint_deleted)
429 (mi_breakpoint_modified, mi_output_running_pid, mi_on_resume)
430 (mi_solib_loaded, mi_solib_unloaded, mi_command_param_changed)
431 (mi_memory_changed, mi_user_selected_context_changed): Update.
432 * infrun.c (all_uis_check_sync_execution_done)
433 (all_uis_on_sync_execution_starting, normal_stop): Update.
434 * event-top.c (restore_ui_cleanup)
435 (make_cleanup_restore_current_ui, switch_thru_all_uis_init)
436 (switch_thru_all_uis_cond, switch_thru_all_uis_next): Remove.
437 * cli/cli-interp.c (cli_on_normal_stop, cli_on_signal_received)
438 (cli_on_end_stepping_range, cli_on_signal_exited, cli_on_exited)
439 (cli_on_no_history, cli_on_user_selected_context_changed):
440 Update.
441 * breakpoint.c (watchpoint_check): Update.
442
443 2016-10-21 Tom Tromey <tom@tromey.com>
444
445 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab): Add
446 "reader" argument. Update.
447 (xcoff_initial_scan): Update.
448 * symfile.h (mdebug_build_psymtabs): Add "reader" argument.
449 * mipsread.c (mipscoff_symfile_read): Update.
450 (read_alphacoff_dynamic_symtab): Add "reader" argument. Update.
451 * minsyms.h (minimal_symbol_reader) <record, record_full>:
452 Declare.
453 <m_msym_bunch, m_msym_bunch_index, m_msym_count>: New members.
454 <record_with_info>: New function, renamed from
455 prim_record_minimal_symbol_and_info.
456 * minsyms.c (msym_bunch, msym_bunch_index, msym_count): Remove
457 globals.
458 (minimal_symbol_reader): Initialize new members.
459 (minimal_symbol_reader::record): Renamed from
460 prim_record_minimal_symbol.
461 (minimal_symbol_reader::record_full): Renamed from
462 prim_record_minimal_symbol_full.
463 (prim_record_minimal_symbol_and_info): Move to minsyms.h; rename.
464 * mdebugread.c (mdebug_build_psymtabs, parse_partial_symbols)
465 (record_minimal_symbol): Add "reader" argument. Update.
466 (elfmdebug_build_psymtabs): Update.
467 * machoread.c (macho_symtab_add_minsym, macho_symtab_read): Add
468 "reader" argument. Update.
469 (macho_symfile_read): Update.
470 * elfread.c (record_minimal_symbol, elf_symtab_read)
471 (elf_rel_plt_read): Add "reader" argument. Update.
472 (elf_read_minimal_symbols): Update.
473 * dbxread.c (record_minimal_symbol, read_dbx_dynamic_symtab)
474 (read_dbx_symtab): Add "reader" argument. Update.
475 (dbx_symfile_read): Update.
476 * coffread.c (record_minimal_symbol, coff_symtab_read): Add
477 "reader" argument. Update.
478 (coff_symfile_read): Update.
479 * coff-pe-read.h (read_pe_exported_syms): Add "reader" argument.
480 * coff-pe-read.c (add_pe_exported_sym, add_pe_forwarded_sym)
481 (read_pe_exported_syms): Add "reader" argument. Update.
482
483 2016-10-21 Tom Tromey <tom@tromey.com>
484
485 * xcoffread.c (xcoff_initial_scan): Update.
486 * mipsread.c (mipscoff_symfile_read): Update.
487 * minsyms.c (minimal_symbol_reader): Add obj argument.
488 Initialize member.
489 (install): Remove objfile argument. Update.
490 * mdebugread.c (elfmdebug_build_psymtabs): Update.
491 * machoread.c (macho_symfile_read): Update.
492 * elfread.c (elf_read_minimal_symbols): Update.
493 * dbxread.c (dbx_symfile_read): Update.
494 * coffread.c (coff_symfile_read): Update.
495 * minsyms.h (minimal_symbol_reader): Add m_objfile member.
496 (constructor): Add objfile argument.
497 (minimal_symbol_reader::install): Remove objfile argument.
498
499 2016-10-21 Tom Tromey <tom@tromey.com>
500
501 * xcoffread.c (xcoff_initial_scan): Use
502 minimal_symbol_reader.
503 * mipsread.c (mipscoff_symfile_read): Use
504 minimal_symbol_reader.
505 * minsyms.h (minimal_symbol_reader): New class.
506 (init_minimal_symbol_collection)
507 (make_cleanup_discard_minimal_symbols, install_minimal_symbols):
508 Don't declare.
509 * minsyms.c (minimal_symbol_reader): Renamed from
510 init_minimal_symbol_collection, turned into constructor.
511 (~minimal_symbol_reader): Renamed from
512 do_discard_minimal_symbols_cleanup, turned into destructor.
513 (make_cleanup_discard_minimal_symbols): Remove.
514 (minimal_symbol_reader::install): Rename form
515 install_minimal_symbols.
516 * mdebugread.c (elfmdebug_build_psymtabs): Use
517 minimal_symbol_reader.
518 * machoread.c (macho_symfile_read): Use
519 minimal_symbol_reader.
520 * elfread.c (elf_read_minimal_symbols): Use
521 minimal_symbol_reader.
522 * dbxread.c (dbx_symfile_read): Use minimal_symbol_reader.
523 * coffread.c (coff_symfile_read): Use
524 minimal_symbol_reader.
525
526 2016-10-21 Tom Tromey <tom@tromey.com>
527
528 * top.c (new_ui_command, wait_sync_command_done)
529 (gdb_readline_wrapper): Use scoped_restore.
530 * infrun.c (fetch_inferior_event): Use scoped_restore.
531 * infcall.c (call_thread_fsm_should_stop): Use scoped_restore.
532
533 2016-10-21 Tom Tromey <tom@tromey.com>
534
535 * utils.c (make_cleanup_restore_ui_file, do_restore_ui_file)
536 (struct restore_ui_file_closure): Remove.
537 * utils.h (make_cleanup_restore_ui_file): Don't declare.
538 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
539 scoped_restore.
540 * top.c (execute_command_to_string): Use scoped_restore.
541
542 2016-10-21 Tom Tromey <tom@tromey.com>
543
544 * common/scoped_restore.h: New file.
545 * utils.h: Include scoped_restore.h.
546 * top.c (execute_command_to_string): Use scoped_restore.
547 * python/python.c (python_interactive_command): Use
548 scoped_restore.
549 (python_command, execute_gdb_command): Likewise.
550 * printcmd.c (do_one_display): Use scoped_restore.
551 * mi/mi-main.c (exec_continue): Use scoped_restore.
552 * mi/mi-cmd-var.c (mi_cmd_var_assign): Use scoped_restore.
553 * linux-fork.c (checkpoint_command): Use scoped_restore.
554 * infrun.c (restore_execution_direction): Remove.
555 (fetch_inferior_event): Use scoped_restore.
556 * compile/compile.c (compile_file_command): Use
557 scoped_restore.
558 (compile_code_command, compile_print_command): Likewise.
559 * cli/cli-script.c (execute_user_command): Use
560 scoped_restore.
561 (while_command, if_command, script_from_file): Likewise.
562 * arm-tdep.c (arm_insert_single_step_breakpoint): Use
563 scoped_restore.
564
565 2016-10-21 Tom Tromey <tom@tromey.com>
566
567 * xcoffread.c (read_xcoff_symtab): Make "filestring" const.
568
569 2016-10-21 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
570 Ulrich Weigand <uweigand@de.ibm.com>
571
572 * xcoffread.c (read_xcoff_symtab): Make name of current file as
573 pst->filename instead of _start_ in AIX.
574
575 2016-10-21 Philipp Rudo <prudo@linux.vnet.ibm.com>
576
577 * solist.h (struct target_so_ops): Delete special_symbol_handling
578 hook.
579 * solib.c (solib_add, reload_shared_libraries): Adjust.
580 * solib-aix.c (solib_aix_special_symbol_handling): Delete
581 (_initialize_solib_aix): Adjust
582 * solib-darwin.c (darwin_special_symbol_handling): Delete
583 (_initialize_darwin_solib): Adjust
584 * solib-dsbt.c (dsbt_special_symbol_handling): Delete
585 (_initialize_dsbt_solib): Adjust
586 * solib-frv.c (frv_special_symbol_handling): Delete
587 (_initialize_frv_solib): Adjust
588 * solib-svr4.c (svr4_special_symbol_handling): Delete
589 (_initialize_svr4_solib): Adjust
590 * solib-target.c (solib_target_special_symbol_handling): Delete
591 (_initialize_solib_target): Adjust
592
593 2016-10-20 Yao Qi <yao.qi@linaro.org>
594
595 * configure.tgt: Don't configure if target is *-*-vxworks*.
596
597 2016-10-19 Pedro Alves <palves@redhat.com>
598
599 * config.in: Regenerate.
600
601 2016-10-18 Pedro Alves <palves@redhat.com>
602
603 * common/common-defs.h (__STDC_CONSTANT_MACROS)
604 (__STDC_LIMIT_MACROS): Delete.
605
606 2016-10-18 Pedro Alves <palves@redhat.com>
607
608 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
609 2692e23a48e21f6daa029e8af9f1a143b7532f47.
610 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4:
611 Regenerate.
612 * gnulib/import/Makefile: Update.
613 * gnulib/import/alloca: Update.
614 * gnulib/import/basename-lgpl: Update.
615 * gnulib/import/canonicalize-lgpl: Update.
616 * gnulib/import/config: Update.
617 * gnulib/import/dirent: Update.
618 * gnulib/import/dirfd: Update.
619 * gnulib/import/dirname-lgpl: Update.
620 * gnulib/import/dirname.h: Update.
621 * gnulib/import/dosname.h: Update.
622 * gnulib/import/errno: Update.
623 * gnulib/import/extra/snippet/arg-nonnull.h: Update.
624 * gnulib/import/extra/snippet/c++defs.h: Update.
625 * gnulib/import/extra/snippet/warn-on-use.h: Update.
626 * gnulib/import/extra/update-copyright: Update.
627 * gnulib/import/flexmember.h: Update.
628 * gnulib/import/float+.h: Update.
629 * gnulib/import/float: Update.
630 * gnulib/import/float: Update.
631 * gnulib/import/fnmatch: Update.
632 * gnulib/import/fnmatch: Update.
633 * gnulib/import/fnmatch_loop: Update.
634 * gnulib/import/fpucw.h: Update.
635 * gnulib/import/frexp: Update.
636 * gnulib/import/frexpl: Update.
637 * gnulib/import/gettimeofday: Update.
638 * gnulib/import/hard-locale: Update.
639 * gnulib/import/hard-locale.h: Update.
640 * gnulib/import/inttypes: Update.
641 * gnulib/import/isnan: Update.
642 * gnulib/import/isnand-nolibm.h: Update.
643 * gnulib/import/isnand: Update.
644 * gnulib/import/isnanl-nolibm.h: Update.
645 * gnulib/import/isnanl: Update.
646 * gnulib/import/itold: Update.
647 * gnulib/import/limits: Update.
648 * gnulib/import/localcharset: Update.
649 * gnulib/import/localcharset.h: Update.
650 * gnulib/import/lstat: Update.
651 * gnulib/import/m4/00gnulib: Update.
652 * gnulib/import/m4/absolute-header: Update.
653 * gnulib/import/m4/alloca: Update.
654 * gnulib/import/m4/canonicalize: Update.
655 * gnulib/import/m4/codeset: Update.
656 * gnulib/import/m4/configmake: Update.
657 * gnulib/import/m4/dirent_h: Update.
658 * gnulib/import/m4/dirfd: Update.
659 * gnulib/import/m4/dirname: Update.
660 * gnulib/import/m4/double-slash-root: Update.
661 * gnulib/import/m4/eealloc: Update.
662 * gnulib/import/m4/errno_h: Update.
663 * gnulib/import/m4/exponentd: Update.
664 * gnulib/import/m4/exponentl: Update.
665 * gnulib/import/m4/extensions: Update.
666 * gnulib/import/m4/extern-inline: Update.
667 * gnulib/import/m4/fcntl-o: Update.
668 * gnulib/import/m4/flexmember: Update.
669 * gnulib/import/m4/float_h: Update.
670 * gnulib/import/m4/fnmatch: Update.
671 * gnulib/import/m4/fpieee: Update.
672 * gnulib/import/m4/frexp: Update.
673 * gnulib/import/m4/frexpl: Update.
674 * gnulib/import/m4/gettimeofday: Update.
675 * gnulib/import/m4/glibc21: Update.
676 * gnulib/import/m4/gnulib-cache: Update.
677 * gnulib/import/m4/gnulib-common: Update.
678 * gnulib/import/m4/gnulib-comp: Update.
679 * gnulib/import/m4/gnulib-tool: Update.
680 * gnulib/import/m4/hard-locale: Update.
681 * gnulib/import/m4/include_next: Update.
682 * gnulib/import/m4/inttypes-pri: Update.
683 * gnulib/import/m4/inttypes: Update.
684 * gnulib/import/m4/isnand: Update.
685 * gnulib/import/m4/isnanl: Update.
686 * gnulib/import/m4/largefile: Update.
687 * gnulib/import/m4/limits-h: Update.
688 * gnulib/import/m4/localcharset: Update.
689 * gnulib/import/m4/locale-fr: Update.
690 * gnulib/import/m4/locale-ja: Update.
691 * gnulib/import/m4/locale-zh: Update.
692 * gnulib/import/m4/longlong: Update.
693 * gnulib/import/m4/lstat: Update.
694 * gnulib/import/m4/malloc: Update.
695 * gnulib/import/m4/malloca: Update.
696 * gnulib/import/m4/math_h: Update.
697 * gnulib/import/m4/mbrtowc: Update.
698 * gnulib/import/m4/mbsinit: Update.
699 * gnulib/import/m4/mbsrtowcs: Update.
700 * gnulib/import/m4/mbstate_t: Update.
701 * gnulib/import/m4/memchr: Update.
702 * gnulib/import/m4/memmem: Update.
703 * gnulib/import/m4/mmap-anon: Update.
704 * gnulib/import/m4/multiarch: Update.
705 * gnulib/import/m4/nocrash: Update.
706 * gnulib/import/m4/off_t: Update.
707 * gnulib/import/m4/pathmax: Update.
708 * gnulib/import/m4/rawmemchr: Update.
709 * gnulib/import/m4/readlink: Update.
710 * gnulib/import/m4/rename: Update.
711 * gnulib/import/m4/rmdir: Update.
712 * gnulib/import/m4/signal_h: Update.
713 * gnulib/import/m4/ssize_t: Update.
714 * gnulib/import/m4/stat: Update.
715 * gnulib/import/m4/stdbool: Update.
716 * gnulib/import/m4/stddef_h: Update.
717 * gnulib/import/m4/stdint: Update.
718 * gnulib/import/m4/stdio_h: Update.
719 * gnulib/import/m4/stdlib_h: Update.
720 * gnulib/import/m4/strchrnul: Update.
721 * gnulib/import/m4/string_h: Update.
722 * gnulib/import/m4/strstr: Update.
723 * gnulib/import/m4/strtok_r: Update.
724 * gnulib/import/m4/sys_socket_h: Update.
725 * gnulib/import/m4/sys_stat_h: Update.
726 * gnulib/import/m4/sys_time_h: Update.
727 * gnulib/import/m4/sys_types_h: Update.
728 * gnulib/import/m4/time_h: Update.
729 * gnulib/import/m4/unistd_h: Update.
730 * gnulib/import/m4/warn-on-use: Update.
731 * gnulib/import/m4/wchar_h: Update.
732 * gnulib/import/m4/wchar_t: Update.
733 * gnulib/import/m4/wctype_h: Update.
734 * gnulib/import/m4/wint_t: Update.
735 * gnulib/import/malloc: Update.
736 * gnulib/import/malloca: Update.
737 * gnulib/import/malloca.h: Update.
738 * gnulib/import/math: Update.
739 * gnulib/import/math: Update.
740 * gnulib/import/mbrtowc: Update.
741 * gnulib/import/mbsinit: Update.
742 * gnulib/import/mbsrtowcs-impl.h: Update.
743 * gnulib/import/mbsrtowcs-state: Update.
744 * gnulib/import/mbsrtowcs: Update.
745 * gnulib/import/memchr: Update.
746 * gnulib/import/memmem: Update.
747 * gnulib/import/pathmax.h: Update.
748 * gnulib/import/rawmemchr: Update.
749 * gnulib/import/readlink: Update.
750 * gnulib/import/ref-add.sin: Update.
751 * gnulib/import/ref-del.sin: Update.
752 * gnulib/import/rename: Update.
753 * gnulib/import/rmdir: Update.
754 * gnulib/import/same-inode.h: Update.
755 * gnulib/import/signal: Update.
756 * gnulib/import/stat: Update.
757 * gnulib/import/stdbool: Update.
758 * gnulib/import/stddef: Update.
759 * gnulib/import/stdint: Update.
760 * gnulib/import/stdio: Update.
761 * gnulib/import/stdlib: Update.
762 * gnulib/import/str-two-way.h: Update.
763 * gnulib/import/strchrnul: Update.
764 * gnulib/import/streq.h: Update.
765 * gnulib/import/string: Update.
766 * gnulib/import/stripslash: Update.
767 * gnulib/import/strnlen1: Update.
768 * gnulib/import/strnlen1.h: Update.
769 * gnulib/import/strstr: Update.
770 * gnulib/import/strtok_r: Update.
771 * gnulib/import/sys_stat: Update.
772 * gnulib/import/sys_time: Update.
773 * gnulib/import/sys_types: Update.
774 * gnulib/import/time: Update.
775 * gnulib/import/unistd: Update.
776 * gnulib/import/unistd: Update.
777 * gnulib/import/verify.h: Update.
778 * gnulib/import/wchar: Update.
779 * gnulib/import/wctype: Update.
780 * gnulib/import/flexmember.h: New file.
781 * gnulib/import/hard-locale.c: New file.
782 * gnulib/import/hard-locale.h: New file.
783 * gnulib/import/limits.in.h: New file.
784 * gnulib/import/m4/flexmember.m4: New file.
785 * gnulib/import/m4/hard-locale.m4: New file.
786 * gnulib/import/m4/limits-h.m4: New file.
787
788 2016-10-18 Pedro Alves <palves@redhat.com>
789
790 * common/common-defs.h: Include "gdb_unique_ptr.h".
791 * common/gdb_unique_ptr.h: New.
792
793 2016-10-18 Maciej W. Rozycki <macro@imgtec.com>
794
795 * i386-tdep.c (i386_mpx_info_bounds): Make sure the architecture
796 is `bfd_arch_i386' before proceeding.
797 (i386_mpx_set_bounds): Likewise.
798
799 2016-10-18 Maciej W. Rozycki <macro@imgtec.com>
800
801 * tilegx-tdep.c (tilegx_analyze_prologue): Use the `long long'
802 type for `operands'.
803
804 2016-10-17 Simon Marchi <simon.marchi@ericsson.com>
805
806 * mi/mi-main.c (mi_cmd_trace_save): Check if argument is present
807 before using it.
808
809 2016-10-17 Pedro Alves <palves@redhat.com>
810
811 * charset.h (class wchar_iterator) [PHONY_ICONV] <m_desc>: Use
812 'int' as type.
813
814 2016-10-14 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
815 Ulrich Weigand <uweigand@de.ibm.com>
816
817 * solib-aix.c (solib_aix_bfd_open): Call solib_find so that sysroot
818 path is set properly if program has a dependency on .a archive and
819 sysroot is set via set sysroot command.
820
821 2016-10-14 Markus Metzger <markus.t.metzger@intel.com>
822
823 * nat/linux-btrace.c: Remove leftover comment.
824
825 2016-10-14 Eli Zaretskii <eliz@gnu.org>
826
827 * common/common-defs.h [HAVE_STRINGS_H]: Include strings.h if
828 available, to get prototypes of 'strcasecmp' and 'strncasecmp'.
829
830 2016-10-13 Pedro Alves <palves@redhat.com>
831
832 * contrib/ari/gdb_ari.sh (boolean): Suggest bool instead.
833 (false, true): Remove checks.
834
835 2016-10-12 Tom Tromey <tom@tromey.com>
836
837 * machoread.c (macho_symfile_read_all_oso): Use std::string.
838
839 2016-10-12 Tom Tromey <tom@tromey.com>
840
841 * tracepoint.c (trace_dump_command): Remove unnecessary
842 null_cleanup.
843
844 2016-10-12 Tom Tromey <tom@tromey.com>
845
846 * valprint.c (generic_emit_char, count_next_character)
847 (generic_printstr): Update.
848 * charset.c (struct wchar_iterator): Move to charset.h.
849 (wchar_iterator::wchar_iterator): Rename from
850 make_wchar_iterator, turn into a constructor.
851 (wchar_iterator::~wchar_iterator): Rename from
852 do_cleanup_iterator, turn into a destructor.
853 (make_cleanup_wchar_iterator): Remove.
854 (wchar_iterator::iterate): Rename from wchar_iterate. Remove
855 "iter" argument. Update.
856 * charset.h: Include <vector>.
857 (class wchar_iterator): New class, from old struct
858 wchar_iterator.
859 (make_wchar_iterator, make_cleanup_wchar_iterator): Don't
860 declare.
861
862 2016-10-12 Tom Tromey <tom@tromey.com>
863
864 * selftest.c: Include <vector>, not "vec.h".
865 (self_test_function_ptr): Remove.
866 (tests): Now a std::vector.
867 (register_self_test, run_self_tests): Update.
868
869 2016-10-13 Pedro Alves <palves@redhat.com>
870 Tom Tromey <tom@tromey.com>
871
872 * tid-parse.h (tid_range_parser): New class.
873 (enum tid_range_state): Move into tid_range_parser's scope.
874 Remove TID_RANGE_ prefix from all values.
875 (tid_range_parser_get_tid, tid_range_parser_get_tid_range)
876 (tid_range_parser_star_range, tid_range_parser_finished)
877 (tid_range_parser_skip, tid_range_parser_qualified): Don't
878 declare.
879 (tid_is_in_list): Update comment.
880 * tid-parse.c (tid_range_parser::tid_range_parser): New.
881 (init, finished, get_string, skip, tid_is_qualified)
882 (get_tid_or_range, get_tid_range, get_tid, star_range): Rename;
883 turn into methods.
884 (tid_is_in_list): Adjust.
885 * cli/cli-utils.h (number_or_range_parser): New class.
886 (init_number_or_range, get_number_or_range)
887 (number_range_setup_range): Don't declare.
888 * cli/cli-utils.c
889 (number_or_range_parser::number_or_range_parser): New.
890 (init_number_or_range, get_number_or_range)
891 (number_range_setup_range): Rename; turn into methods.
892 (number_is_in_list): Adjust.
893 * breakpoint.c (map_breakpoint_numbers): Adjust. Use bool.
894 (trace_pass_command, get_tracepoint_by_number): Adjust.
895 * breakpoint.h (get_tracepoint_by_number): Adjust.
896 * inferior.c (detach_inferior_command, kill_inferior_command)
897 (remove_inferior_command): Adjust.
898 * linespec.c (decode_line_2): Adjust.
899 * memattr.c (mem_enable_command, mem_disable_command)
900 (mem_delete_command): Adjust.
901 * printcmd.c (map_display_numbers): Adjust.
902 * reverse.c (delete_bookmark_command, bookmarks_info): Adjust.
903 * thread.c (thread_apply_command): Adjust.
904
905 2016-10-12 Anton Kolesov <anton.kolesov@synopsys.com>
906
907 * arc-newlib-tdep.c: New file.
908 * configure.tgt: Add newlib support for ARC.
909
910 2016-10-12 Anton Kolesov <anton.kolesov@synopsys.com>
911
912 * arc-tdep.h (struct gdbarch_tdep) <jb_pc>: New field.
913 * arc-tdep.c (arc_get_longjmp_target): New function.
914 (arc_gdbarch_init): Set get_longjmp_target if jb_pc is non-negative.
915 (arc_dump_tdep): Print jb_pc.
916
917 2016-10-12 Anton Kolesov <anton.kolesov@synopsys.com>
918
919 * arc-tdep.h (struct gdbarch_tdep): New.
920 * arc-tdep.c (arc_gdbarch_init): Allocate gdbarch_tdep.
921
922 2016-10-12 Yao Qi <yao.qi@linaro.org>
923
924 PR tdep/20682
925 * aarch64-tdep.c: Replace 32 with AARCH64_D_REGISTER_COUNT.
926 (aarch64_analyze_prologue): Extend array 'regs' for D registers.
927 Assert that operand 0 and 1 can be X or D registers. Update
928 register number for D registers. Update registers in frame
929 cache.
930 * aarch64-tdep.h (AARCH64_D_REGISTER_COUNT): New macro.
931
932 2016-10-10 Yao Qi <yao.qi@linaro.org>
933
934 * arch/arm.h (enum arm_breakpoint_kinds): New.
935 * arm-tdep.c (arm_remote_breakpoint_from_pc): Use
936 ARM_BP_KIND_THUMB2.
937
938 2016-10-10 Yao Qi <yao.qi@linaro.org>
939
940 * m32c-tdep.c (m32c_gdbarch_init): Rename local 'arch' by
941 'gdbarch'.
942
943 2016-10-10 Yao Qi <yao.qi@linaro.org>
944
945 * v850-tdep.c (v850_breakpoint_from_pc): Use the right
946 breakpoint instruction.
947 (v850_dbtrap_breakpoint_from_pc): Remove.
948 (v850_gdbarch_init): Update.
949
950 2016-10-08 Simon Marchi <simon.marchi@polymtl.ca>
951
952 * ui-out.c (push_level): Remove "id" parameter.
953 (ui_out_begin): Update call.
954
955 2016-10-07 Joel Brobecker <brobecker@adacore.com>
956
957 GDB 7.12 released.
958
959 2016-10-07 Markus Metzger <markus.t.metzger@intel.com>
960
961 * python/python.c (gdbpy_decode_line): Call
962 string_to_event_location_basic instead of new_linespec_location.
963
964 2016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
965
966 * target.c (target_supports_multi_process): New function, moved
967 from...
968 * target.h (target_supports_multi_process): ... here. Remove
969 macro.
970 * target/target.h (target_supports_multi_process): New prototype.
971
972 2016-10-06 Pedro Alves <palves@redhat.com>
973
974 * cp-valprint.c (vtbl_ptr_name): Write "extern const" instead of
975 EXPORTED_CONST.
976 * stub-termcap.c: Remove __cplusplus checks.
977 * common/common-defs.h [!__cplusplus] (EXTERN_C, EXTERN_C_PUSH,
978 EXTERN_C_POP): Delete.
979 * common/common-exceptions.h (GDB_XCPT_SJMP): Update comments.
980 (GDB_XCPT) [!__cplusplus]: Delete.
981 (throw_exception, throw_exception_sjlj): Update comments.
982 * guile/guile-internal.h (as_a_scm_t_subr) [!__cplusplus]: Delete.
983 * guile/guile.c (extension_language_guile): Write "extern const"
984 instead of EXPORTED_CONST.
985 * features/feature_to_c.sh: Don't emit !__cplusplus code. Write
986 "extern const" instead of EXPORTED_CONST.
987
988 2016-10-06 Doug Evans <dje@google.com>
989
990 * python/py-value.c (valpy_long): Handle unsigned values.
991
992 2016-10-06 Simon Marchi <simon.marchi@ericsson.com>
993
994 * frame.h: Forward-declare struct ui_out.
995
996 2016-10-06 Tom Tromey <tom@tromey.com>
997
998 * MAINTAINERS: Remove Java test maintainer.
999 * varobj.h (java_varobj_ops): Don't declare.
1000 * valprint.h (struct value_print_options)
1001 <pascal_static_field_print>: Update comment.
1002 * utils.c (producer_is_gcc): Remove java reference.
1003 * symtab.h (struct general_symbol_info): Remove java references.
1004 (SYMBOL_SEARCH_NAME): Likewise.
1005 * objfiles.c (allocate_objfile): Update comment.
1006 * linespec.c (find_linespec_symbols): Remove java references.
1007 * gnu-v3-abi.c (gnuv3_rtti_type, gnuv3_baseclass_offset): Remove
1008 java references.
1009 * gdbtypes.h (struct cplus_struct_type) <is_java>: Remove.
1010 (TYPE_CPLUS_REALLY_JAVA): Remove.
1011 * c-varobj.c (enum vsections): Update comment.
1012 * symtab.c (symbol_set_language, symbol_set_names)
1013 (symbol_natural_name, symbol_demangled_name)
1014 (demangle_for_lookup, symbol_matches_domain)
1015 (default_make_symbol_completion_list_break_on_1): Remove java
1016 references.
1017 (JAVA_PREFIX, JAVA_PREFIX_LEN): Remove.
1018 * psymtab.c (match_partial_symbol, psymtab_search_name)
1019 (lookup_partial_symbol): Remove java references.
1020 * dwarf2read.c (find_slot_in_mapped_hash): Remove java references.
1021 (add_partial_symbol, dwarf2_compute_name, dwarf2_physname)
1022 (dwarf2_add_member_fn, is_vtable_name, read_structure_type)
1023 (process_structure_scope, read_subroutine_type)
1024 (read_subrange_type, load_partial_dies)
1025 (new_symbol_full, determine_prefix, typename_concat)
1026 (dwarf2_name): Remove java references.
1027 (set_cu_language): Treat Java as C++.
1028 * c-typeprint.c (c_type_print_args): Remove java reference.
1029 * defs.h (enum language) <language_java>: Remove.
1030 * Makefile.in (SFILES, HFILES_NO_SRCDIR, COMMON_OBS, YYFILES)
1031 (YYOBJ, local-maintainer-clean): Don't mention java files.
1032 * jv-exp.y, jv-lang.c, jv-lang.h, jv-typeprint.c, jv-valprint.c,
1033 jv-varobj.c: Remove.
1034
1035 2016-10-06 Maciej W. Rozycki <macro@imgtec.com>
1036
1037 * mips-tdep.c (mips_pseudo_register_type): Make FCRs always
1038 32-bit.
1039
1040 2016-10-06 Maciej W. Rozycki <macro@imgtec.com>
1041
1042 * mips-tdep.c (mips_pseudo_register_type): Rearrange comments
1043 throughout.
1044
1045 2016-10-06 Markus Metzger <markus.t.metzger@intel.com>
1046
1047 * stack.c (frame_info): Call val_print_not_saved instead of
1048 val_print_unavailable if frame_id check fails.
1049
1050 2016-10-06 Pedro Alves <palves@redhat.com>
1051
1052 * jit.c (free_objfile_data): Delete the JIT breakpoint and clear
1053 the cached code address.
1054
1055 2016-10-06 Doug Evans <dje@google.com>
1056
1057 * features/aarch64-core.xml (cpsr_flags): Elide "type" and specify
1058 "end" in all fields.
1059 * features/aarch64.c: Regenerate.
1060 * features/i386/32bit-mpx.xml (_bndcfgu): Specify type of "preserved"
1061 and "enabled" fields. Correct size of "enabled" field.
1062 * features/i386/64bit-mpx.xml (_bndcfgu): Specify type of "preserved"
1063 and "enabled" fields.
1064 * features/i386/i386-avx-mpx-linux.c: Regenerate.
1065 * features/i386/i386-avx-mpx.c: Regenerate.
1066 * features/i386/i386-avx512-linux.c: Regenerate.
1067 * features/i386/i386-avx512.c: Regenerate.
1068 * features/i386/i386-mpx-linux.c: Regenerate.
1069 * features/i386/i386-mpx.c: Regenerate.
1070 * features/arc-arcompact.c: Regenerate.
1071 * features/arc-v2.c: Regenerate.
1072 * xml-tdesc.c (tdesc_start_field): Require "end" spec. Single bit
1073 fields default to "bool" type.
1074
1075 Revert 2016-03-15 Doug Evans <dje@google.com>
1076 * features/i386/32bit-core.xml (i386_eflags): Remove "end" spec.
1077 * features/i386/32bit-sse.xml (i386_eflags): Ditto.
1078 * features/i386/64bit-core.xml (i386_eflags): Ditto.
1079 * features/i386/64bit-sse.xml (i386_eflags): Ditto.
1080 * features/i386/x32-core.xml (i386_eflags): Ditto.
1081
1082 2016-10-05 Tom Tromey <tom@tromey.com>
1083
1084 PR breakpoints/20653:
1085 * location.c (string_to_explicit_location): Use NULL, not '\0'.
1086
1087 2016-10-05 Tom Tromey <tom@tromey.com>
1088
1089 PR symtab/20652:
1090 * psymtab.c (psymbol_compare): Correctly compare "ginfo.value"
1091 fields.
1092
1093 2016-10-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
1094
1095 * dwarf2expr.c (dwarf_expr_require_composition): Allow
1096 DW_OP_GNU_uninit.
1097 (execute_stack_op): Use dwarf_expr_require_composition instead of
1098 copying its logic.
1099
1100 2016-10-05 Anton Kolesov <anton.kolesov@synopsys.com>
1101
1102 * arc-tdep.c (arc_frame_prev_register): Remove annoying log message.
1103
1104 2016-10-05 Yao Qi <yao.qi@linaro.org>
1105
1106 * features/Makefile (WHICH): Add
1107 rs6000/powerpc-isa205-32l, rs6000/powerpc-isa205-64l,
1108 rs6000/powerpc-isa205-altivec32l, rs6000/powerpc-isa205-altivec64l,
1109 rs6000/powerpc-isa205-vsx32l and rs6000/powerpc-isa205-vsx64l.
1110 * regformats/rs6000/powerpc-isa205-32l.dat: Regenerated.
1111 * regformats/rs6000/powerpc-isa205-64l.dat: Likewise.
1112 * regformats/rs6000/powerpc-isa205-altivec32l.dat: Likewise.
1113 * regformats/rs6000/powerpc-isa205-altivec64l.dat: Likewise.
1114 * regformats/rs6000/powerpc-isa205-vsx32l.dat: Likewise.
1115 * regformats/rs6000/powerpc-isa205-vsx64l.dat: Likewise.
1116
1117 2016-10-05 Yao Qi <yao.qi@linaro.org>
1118
1119 * features/Makefile (XMLTOC): Add s390-tevx-linux64.xml,
1120 s390-vx-linux64.xml, s390x-tevx-linux64.xml and
1121 s390x-vx-linux64.xml.
1122
1123 2016-10-05 Yao Qi <yao.qi@linaro.org>
1124
1125 * features/Makefile: Remove i386/*-expedite. Add i386-expedite,
1126 amd64-expedite, and x32-expedite.
1127
1128 2016-10-05 Terry Guo <terry.guo@arm.com>
1129 Yao Qi <yao.qi@linaro.org>
1130
1131 * arm-tdep.c: Adjust includes.
1132 * features/Makefile (WHICH): Add "arm/" directory to arm
1133 target descriptions.
1134 (XMLTOC): Likewise.
1135 (arm/arm-with-iwmmxt.dat): Adjust the path for
1136 dependencies.
1137 * features/arm-core.xml: Moved to ...
1138 * features/arm/arm-core.xml: ... it.
1139 * features/arm-fpa.xml: Moved to ...
1140 * features/arm/arm-fpa.xml: ... it.
1141 * features/arm-m-profile.xml: Moved to ...
1142 * features/arm/arm-m-profile.xm: ... it.
1143 * features/arm-vfpv2.xml: Moved to ...
1144 * features/arm/arm-vfpv2.xm: ... it.
1145 * features/arm-vfpv3.xml: Moved to ...
1146 * features/arm/arm-vfpv3.xml: ... it.
1147 * features/arm-with-iwmmxt.c: Moved to ...
1148 * features/arm/arm-with-iwmmxt.c: ... it.
1149 * features/arm-with-iwmmxt.xml: Moved to ...
1150 * features/arm/arm-with-iwmmxt.xml: ... it.
1151 * features/arm-with-m-fpa-layout.c: Moved to ...
1152 * features/arm/arm-with-m-fpa-layout.c: ... it.
1153 * features/arm-with-m-fpa-layout.xml: Moved to ...
1154 * features/arm/arm-with-m-fpa-layout.xml: ... it.
1155 * features/arm-with-m-vfp-d16.c: Moved to ...
1156 * features/arm/arm-with-m-vfp-d16.c: ... it.
1157 * features/arm-with-m-vfp-d16.xml: Moved to ...
1158 * features/arm/arm-with-m-vfp-d16.xml: ... it.
1159 * features/arm-with-m.c: Moved to ...
1160 * features/arm/arm-with-m.c: ... it.
1161 * features/arm-with-m.xml: Moved to ...
1162 * features/arm/arm-with-m.xm: ... it.
1163 * features/arm-with-neon.c: Moved to ...
1164 * features/arm/arm-with-neon.c: ... it.
1165 * features/arm-with-neon.xml: Moved to ...
1166 * features/arm/arm-with-neon.xml: ... it.
1167 * features/arm-with-vfpv2.c: Moved to ...
1168 * features/arm/arm-with-vfpv2.c: ... it.
1169 * features/arm-with-vfpv2.xml: Moved to ...
1170 * features/arm/arm-with-vfpv2.xml: ... it.
1171 * features/arm-with-vfpv3.c: Moved to ...
1172 * features/arm/arm-with-vfpv3.c: ... it.
1173 * features/arm-with-vfpv3.xml: Moved to ...
1174 * features/arm/arm-with-vfpv3.xml: ... it.
1175 * features/xscale-iwmmxt.xml: Moved to ...
1176 * features/arm/xscale-iwmmxt.xml: ... it.
1177
1178 2016-10-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
1179 2016-10-03 Simon Marchi <simon.marchi@ericsson.com>
1180
1181 PR gdb/20487
1182 * NEWS: Mention new frame field of =thread-selected event.
1183 * cli/cli-decode.c (add_cmd): Initialize c->suppress_notification.
1184 (add_com_suppress_notification): New function definition.
1185 (cmd_func): Set and restore the suppress_notification flag.
1186 * cli/cli-deicode.h (struct cmd_list_element)
1187 <suppress_notification>: New field.
1188 * cli/cli-interp.c (cli_suppress_notification): New global variable.
1189 (cli_on_user_selected_context_changed): New function.
1190 (_initialize_cli_interp): Attach to user_selected_context_changed
1191 observer.
1192 * command.h (struct cli_suppress_notification): New structure.
1193 (cli_suppress_notification): New global variable declaration.
1194 (add_com_suppress_notification): New function declaration.
1195 * defs.h (enum user_selected_what_flag): New enum.
1196 (user_selected_what): New enum flag type.
1197 * frame.h (print_stack_frame_to_uiout): New function declaration.
1198 * gdbthread.h (print_selected_thread_frame): New function declaration.
1199 * inferior.c (print_selected_inferior): New function definition.
1200 (inferior_command): Remove printing of inferior/thread/frame switch
1201 notifications, notify user_selected_context_changed observer.
1202 * inferior.h (print_selected_inferior): New function declaration.
1203 * mi/mi-cmds.c (struct mi_cmd): Add user_selected_context
1204 suppression to stack-select-frame and thread-select commands.
1205 * mi/mi-interp.c (struct mi_suppress_notification)
1206 <user_selected_context>: Initialize.
1207 (mi_user_selected_context_changed): New function definition.
1208 (_initialize_mi_interp): Attach to user_selected_context_changed.
1209 * mi/mi-main.c (mi_cmd_thread_select): Print thread selection reply.
1210 (mi_execute_command): Handle notification suppression. Notify
1211 user_selected_context_changed observer on thread change instead of printing
1212 event directly. Don't send it if command already sends the notification.
1213 (command_notifies_uscc_observer): New function.
1214 (mi_cmd_execute): Don't handle notification suppression.
1215 * mi/mi-main.h (struct mi_suppress_notification)
1216 <user_selected_context>: New field.
1217 * stack.c (print_stack_frame_to_uiout): New function definition.
1218 (select_frame_command): Notify user_selected_context_changed
1219 observer.
1220 (frame_command): Call print_selected_thread_frame if there's no frame
1221 change or notify user_selected_context_changed observer if there is.
1222 (up_command): Notify user_selected_context_changed observer.
1223 (down_command): Likewise.
1224 (_initialize_stack): Suppress user_selected_context notification for
1225 command select-frame.
1226 * thread.c (thread_command): Notify
1227 user_selected_context_changed if the thread has changed, print
1228 thread info directly if it hasn't.
1229 (do_captured_thread_select): Do not print thread switch event.
1230 (print_selected_thread_frame): New function definition.
1231 * tui/tui-interp.c (tui_on_user_selected_context_changed):
1232 New function definition.
1233 (_initialize_tui_interp): Attach to user_selected_context_changed
1234 observer.
1235
1236 2016-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1237
1238 PR gdb/20609 - attach of JIT-debug-enabled inf 7.11.1 regression
1239 * exec.c (exec_file_locate_attach): Add parameter defer_bp_reset.
1240 Use it.
1241 * gdbcore.h (exec_file_locate_attach): Add parameter defer_bp_reset.
1242 * infcmd.c (setup_inferior): Update caller.
1243 * remote.c (remote_add_inferior): Likewise.
1244
1245 2016-09-28 Pedro Alves <palves@redhat.com>
1246
1247 * infcall.c (run_inferior_call): Remove input from the event
1248 loop while running the infcall.
1249
1250 2016-09-27 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
1251
1252 * arm-tdep.c (arm_m_addr_is_magic): New function.
1253 (arm_addr_bits_remove): Call arm_m_addr_is_magic.
1254 (arm_m_exception_unwind_sniffer): Likewise.
1255
1256 2016-09-23 Jon Turney <jon.turney@dronecode.org.uk>
1257
1258 * windows-nat.c (windows_delete_thread): Adjusting call to
1259 target_mourn_inferior to include ptid_t argument.
1260
1261 2016-09-23 Tom Tromey <tom@tromey.com>
1262
1263 * utils.h (make_cleanup_dyn_string_delete): Remove declaration.
1264 * utils.c: Don't include dyn-string.h.
1265 (do_dyn_string_delete, make_cleanup_dyn_string_delete): Remove.
1266 * cli/cli-cmds.c: Include <string>. Don't include dyn-string.h.
1267 (argv_to_string): Rename. Change return type to std::string.
1268 (alias_command): Use std::string.
1269
1270 2016-09-23 Tom Tromey <tom@tromey.com>
1271
1272 * objfiles.c: Include <vector>.
1273 (objfile_relocate): Use std::vector.
1274
1275 2016-09-23 Tom Tromey <tom@tromey.com>
1276
1277 * rust-lang.c: Include <string> and <vector>.
1278 (rust_evaluate_funcall): Use std::vector, std::string.
1279 (rust_evaluate_subexp): Use std::string.
1280 (rust_lookup_symbol_nonlocal): Use std::string.
1281
1282 2016-09-23 Tom Tromey <tom@tromey.com>
1283
1284 * cp-namespace.c: Include <string>.
1285 (cp_search_static_and_baseclasses)
1286 (cp_lookup_symbol_imports_or_template, find_symbol_in_baseclass):
1287 Use std::string.
1288
1289 2016-09-23 Tom Tromey <tom@tromey.com>
1290
1291 * break-catch-sig.c: Include <string>.
1292 (signal_catchpoint_print_one): Use std::string.
1293
1294 2016-09-23 Tom Tromey <tom@tromey.com>
1295
1296 * utils.c (struct restore_ui_out_closure): Remove.
1297 * objfiles.h (terminate_minimal_symbol_table): Don't declare.
1298
1299 2016-09-23 Yao Qi <yao.qi@linaro.org>
1300
1301 * nat/linux-osdata.c (linux_xfer_osdata_threads): Replace
1302 sprintf with xsnprintf.
1303 (linux_xfer_osdata_fds): Likewise.
1304
1305 2016-09-23 Pedro Alves <palves@redhat.com>
1306
1307 * Makefile.in (SFILES): Add common/new-op.c.
1308 (COMMON_OBS): Add common/new-op.o.
1309 (new-op.o): New rule.
1310 * common/common-exceptions.h: Include <new>.
1311 (struct gdb_quit_bad_alloc): New type.
1312 * common/new-op.c: New file.
1313
1314 2016-09-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1315
1316 * rs6000-tdep.c (ppc_process_record_op31): Fix
1317 regcache_raw_read_unsigned call using the correct parameter type.
1318
1319 2016-09-22 Anton Kolesov <anton.kolesov@synopsys.com>
1320
1321 * arc-tdep.c: Fix ARI warning for printf(%p).
1322
1323 2016-09-21 Anton Kolesov <anton.kolesov@synopsys.com>
1324
1325 * MAINTAINERS (Write After Approval): Add Anton Kolesov.
1326
1327 2016-09-21 Anton Kolesov <anton.kolesov@synopsys.com>
1328
1329 * Makefile.in (ALL_TARGET_OBS): Add arc-tdep.o.
1330 (HFILES_NO_SRCDIR): Add arc-tdep.h.
1331 (ALLDEPFILES): Add arc-tdep.c.
1332 * NEWS: Mention new ARC port.
1333 * configure.tgt: Add ARC.
1334 * arc-tdep.c: New file.
1335 * arc-tdep.h: New file.
1336 * features/Makefile (XMLTOC): Add arc-v2.xml and arc-arcompact.xml.
1337 * features/arc-v2.xml: New file.
1338 * features/arc-v2.c: New file (generated).
1339 * features/arc-arcompact.xml: New file.
1340 * features/arc-arcompact.c: New file (generated).
1341
1342 2016-09-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1343
1344 * rs6000-tdep.c (ppc_process_record_op63): Fix return of instruction
1345 handlers.
1346
1347 2016-09-21 Tom Tromey <tom@tromey.com>
1348
1349 PR gdb/20604:
1350 * top.h (quit_force): Update.
1351 * top.c (quit_force): Changed type of first argument. Don't
1352 evaluate expression. Pass NULL to kill_or_detach.
1353 * cli/cli-cmds.c (quit_command): Evaluate "args".
1354
1355 2016-09-21 Simon Marchi <simon.marchi@ericsson.com>
1356
1357 * .gitignore: Ignore more files.
1358 * data-directory/.gitignore: Likewise.
1359
1360 2016-09-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1361
1362 * rs6000-tdep.c (PPC_DQ): New macro.
1363 (ppc_process_record_op4): Add Power ISA 3.0 instructions.
1364 (ppc_process_record_op19): Likewise.
1365 (ppc_process_record_op31): Likewise.
1366 (ppc_process_record_op59): Likewise.
1367 (ppc_process_record_op60): Likewise.
1368 (ppc_process_record_op63): Likewise.
1369 (ppc_process_record): Likewise.
1370 (ppc_process_record_op61): New function.
1371
1372 2016-09-21 Yao Qi <yao.qi@linaro.org>
1373
1374 * aarch32-linux-nat.c (aarch32_gp_regcache_collect): Keep
1375 bits 20 to 23.
1376
1377 2016-09-20 Tom Tromey <tom@tromey.com>
1378
1379 * python/py-value.c (convert_value_from_python): Make PyInt_Check
1380 conditional on Python 2.
1381 * python/py-arch.c (archpy_disassemble): Make PyInt_Check
1382 conditional on Python 2.
1383
1384 2016-09-20 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1385
1386 * rs6000-tdep.c (ppc_process_record_op31): Fix record of Store String
1387 Word instructions.
1388
1389 2016-09-20 Sergio Durigan Junior <sergiodj@redhat.com>
1390
1391 * fork-inferior.c (startup_inferior): Pass 'event_ptid' instead of
1392 'resume_ptid' to 'target_mourn_inferior'. Fix regression
1393 introduced by my last commit.
1394
1395 2016-09-19 Pedro Alves <palves@redhat.com>
1396
1397 * common/gdb_locale.h [!ENABLE_NLS] (gettext, dgettext, dcgettext,
1398 textdomain, bindtextdomain): Delete macros.
1399 * main.c (captured_main) [!ENABLE_NLS]: Skip bintextdomain and
1400 textdomain calls.
1401
1402 2016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
1403
1404 * darwin-nat.c (darwin_kill_inferior): Adjusting call to
1405 target_mourn_inferior to include ptid_t argument.
1406 * fork-child.c (startup_inferior): Likewise.
1407 * gnu-nat.c (gnu_kill_inferior): Likewise.
1408 * inf-ptrace.c (inf_ptrace_kill): Likewise.
1409 * infrun.c (handle_inferior_event_1): Likewise.
1410 * linux-nat.c (linux_nat_attach): Likewise.
1411 (linux_nat_kill): Likewise.
1412 * nto-procfs.c (interrupt_query): Likewise.
1413 (procfs_interrupt): Likewise.
1414 (procfs_kill_inferior): Likewise.
1415 * procfs.c (procfs_kill_inferior): Likewise.
1416 * record.c (record_mourn_inferior): Likewise.
1417 * remote-sim.c (gdbsim_kill): Likewise.
1418 * remote.c (remote_detach_1): Likewise.
1419 (remote_kill): Likewise.
1420 * target.c (target_mourn_inferior): Change declaration to accept
1421 new ptid_t argument; use gdb_assert on it.
1422 * target.h (target_mourn_inferior): Move function prototype from
1423 here...
1424 * target/target.h (target_mourn_inferior): ... to here. Adjust it
1425 to accept new ptid_t argument.
1426 * windows-nat.c (get_windows_debug_event): Adjusting call to
1427 target_mourn_inferior to include ptid_t argument.
1428
1429 2016-09-18 Pedro Alves <palves@redhat.com>
1430
1431 * s390-linux-nat.c: Include <algorithm>.
1432
1433 2016-09-18 Pedro Alves <palves@redhat.com>
1434
1435 * breakpoint.c (hardware_watchpoint_inserted_in_range): Explicitly
1436 specify the std:min/std::max specialization.
1437 * exec.c (section_table_read_available_memory): Likewise.
1438 * remote.c (remote_read_qxfer): Likewise.
1439 * target.c (simple_verify_memory): Likewise.
1440
1441 2016-09-16 Simon Marchi <simark@simark.ca>
1442
1443 * infrun.c (restore_current_uiout_cleanup): Move to ui-out.c.
1444 (print_stop_event): Use make_cleanup_restore_current_uiout.
1445 * python/python.c (execute_gdb_command): Likewise.
1446 * ui-out.c (restore_current_uiout_cleanup): Move from infrun.c.
1447 (make_cleanup_restore_current_uiout): New function definition.
1448 * ui-out.h (make_cleanup_restore_current_uiout): New function
1449 declaration.
1450 * utils.c (do_restore_ui_out): Remove.
1451 (make_cleanup_restore_ui_out): Remove.
1452 * utils.h (make_cleanup_restore_ui_out): Remove.
1453
1454 2016-09-16 Pedro Alves <palves@redhat.com>
1455
1456 * defs.h (min, max): Delete.
1457 * aarch64-tdep.c: Include <algorithm> and use std::min and
1458 std::max throughout.
1459 * aarch64-tdep.c: Likewise.
1460 * alpha-tdep.c: Likewise.
1461 * amd64-tdep.c: Likewise.
1462 * amd64-windows-tdep.c: Likewise.
1463 * arm-tdep.c: Likewise.
1464 * avr-tdep.c: Likewise.
1465 * breakpoint.c: Likewise.
1466 * btrace.c: Likewise.
1467 * ctf.c: Likewise.
1468 * disasm.c: Likewise.
1469 * doublest.c: Likewise.
1470 * dwarf2loc.c: Likewise.
1471 * dwarf2read.c: Likewise.
1472 * environ.c: Likewise.
1473 * exec.c: Likewise.
1474 * f-exp.y: Likewise.
1475 * findcmd.c: Likewise.
1476 * ft32-tdep.c: Likewise.
1477 * gcore.c: Likewise.
1478 * hppa-tdep.c: Likewise.
1479 * i386-darwin-tdep.c: Likewise.
1480 * i386-tdep.c: Likewise.
1481 * linux-thread-db.c: Likewise.
1482 * lm32-tdep.c: Likewise.
1483 * m32r-tdep.c: Likewise.
1484 * m88k-tdep.c: Likewise.
1485 * memrange.c: Likewise.
1486 * minidebug.c: Likewise.
1487 * mips-tdep.c: Likewise.
1488 * moxie-tdep.c: Likewise.
1489 * nds32-tdep.c: Likewise.
1490 * nios2-tdep.c: Likewise.
1491 * nto-procfs.c: Likewise.
1492 * parse.c: Likewise.
1493 * ppc-sysv-tdep.c: Likewise.
1494 * probe.c: Likewise.
1495 * record-btrace.c: Likewise.
1496 * remote.c: Likewise.
1497 * rs6000-tdep.c: Likewise.
1498 * rx-tdep.c: Likewise.
1499 * s390-linux-nat.c: Likewise.
1500 * s390-linux-tdep.c: Likewise.
1501 * ser-tcp.c: Likewise.
1502 * sh-tdep.c: Likewise.
1503 * sh64-tdep.c: Likewise.
1504 * source.c: Likewise.
1505 * sparc-tdep.c: Likewise.
1506 * symfile.c: Likewise.
1507 * target-memory.c: Likewise.
1508 * target.c: Likewise.
1509 * tic6x-tdep.c: Likewise.
1510 * tilegx-tdep.c: Likewise.
1511 * tracefile-tfile.c: Likewise.
1512 * tracepoint.c: Likewise.
1513 * valprint.c: Likewise.
1514 * value.c: Likewise.
1515 * xtensa-tdep.c: Likewise.
1516 * cli/cli-cmds.c: Likewise.
1517 * compile/compile-object-load.c: Likewise.
1518
1519 2016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
1520
1521 * s390-linux-nat.c (PER_BIT, PER_EVENT_BRANCH, PER_EVENT_IFETCH)
1522 (PER_EVENT_STORE, PER_EVENT_NULLIFICATION)
1523 (PER_CONTROL_BRANCH_ADDRESS, PER_CONTROL_SUSPENSION)
1524 (PER_CONTROL_ALTERATION): New macros.
1525 (struct s390_debug_reg_state) <break_areas>: New member.
1526 (s390_forget_process): Free break_areas as well.
1527 (s390_linux_new_fork): Copy break_areas as well.
1528 (s390_prepare_to_resume): Install hardware breakpoints.
1529 (s390_can_use_hw_breakpoint): Indicate support for hardware
1530 breakpoints.
1531 (s390_insert_hw_breakpoint, s390_remove_hw_breakpoint): New
1532 linux_nat target methods.
1533 (_initialize_s390_nat): Register them.
1534
1535 2016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
1536
1537 * nat/linux-nat.h (lwp_is_stepping): New declaration.
1538 * linux-nat.c (lwp_is_stepping): New function.
1539
1540 2016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
1541
1542 * s390-linux-nat.c (gdbcmd.h): New include.
1543 (s390_show_debug_regs): New function.
1544 (s390_stopped_by_watchpoint): Call it, if show_debug_regs is set.
1545 (s390_prepare_to_resume): Likewise.
1546 (_initialize_s390_nat): Register the command "maint set
1547 show-debug-regs".
1548
1549 2016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
1550
1551 * s390-linux-nat.c (watch_areas): Remove variable. Replace by a
1552 member of...
1553 (struct s390_debug_reg_state): ...this. New struct.
1554 (struct s390_process_info): New struct.
1555 (s390_process_list): New variable.
1556 (s390_find_process_pid, s390_add_process, s390_process_info_get)
1557 (s390_get_debug_reg_state): New functions.
1558 (s390_stopped_by_watchpoint): Now access the watch_areas VEC via
1559 s390_get_debug_reg_state.
1560 (s390_prepare_to_resume): Likewise.
1561 (s390_insert_watchpoint): Likewise.
1562 (s390_remove_watchpoint): Likewise.
1563 (s390_forget_process, s390_linux_new_fork): New linux_nat target
1564 methods.
1565 (_initialize_s390_nat): Register them.
1566
1567 2016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
1568
1569 * s390-linux-nat.c (s390_watch_area): New typedef. Define a VEC.
1570 (watch_base): Remove variable.
1571 (watch_areas): New variable.
1572 (s390_stopped_by_watchpoint): Transform operations on the
1573 watch_base list to equivalent operations on the watch_areas VEC.
1574 (s390_prepare_to_resume): Likewise.
1575 (s390_insert_watchpoint): Likewise.
1576 (s390_remove_watchpoint): Likewise.
1577
1578 2016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
1579
1580 * s390-linux-nat.c (s390_prepare_to_resume): Use advertised lwp
1581 functions instead of accessing lwp_info structure members.
1582 (s390_mark_per_info_changed): New function.
1583 (s390_new_thread): Use it.
1584 (s390_refresh_per_info_cb): New function.
1585 (s390_refresh_per_info): Remove parameter. Refresh all lwps of
1586 the current process.
1587 (s390_insert_watchpoint): Adjust call to s390_refresh_per_info.
1588 (s390_remove_watchpoint): Likewise.
1589
1590 2016-09-09 Andreas Arnez <arnez@linux.vnet.ibm.com>
1591
1592 * elfread.c (auxv.h): New include.
1593 (elf_gnu_ifunc_resolve_addr): Pass HWCAP to ifunc resolver.
1594
1595 2016-09-08 Tom Tromey <tom@tromey.com>
1596
1597 * remote.c (remote_notif_stop_ack, remote_wait_as)
1598 (show_remote_cmd): Remove unneeded casts.
1599
1600 2016-09-06 Pedro Alves <palves@redhat.com>
1601
1602 * top.c (wait_sync_command_done): Don't assume current_ui doesn't
1603 change across events. Restore the current UI before returning.
1604 (gdb_readline_wrapper): Restore the current UI before returning.
1605
1606 2016-09-06 Pedro Alves <palves@redhat.com>
1607
1608 * event-top.c (restore_ui_cleanup): Now static.
1609 (make_cleanup_restore_current_ui): New function.
1610 (switch_thru_all_uis_init): Use it.
1611 * infcall.c (call_thread_fsm_should_stop): Use it.
1612 * infrun.c (fetch_inferior_event): Use it.
1613 * top.c (new_ui_command): Use it.
1614 * top.h (restore_ui_cleanup): Delete declaration.
1615 (make_cleanup_restore_current_ui): New declaration.
1616
1617 2016-09-05 Ulrich Weigand <uweigand@de.ibm.com>
1618
1619 * i386-tdep.c (i386_floatformat_for_type): New function.
1620 (i386_gdbarch_init): Install it.
1621 * ppc-linux-tdep.c (ppc_floatformat_for_type): New function.
1622 (ppc_linux_init_abi): Install it.
1623
1624 2016-09-05 Ulrich Weigand <uweigand@de.ibm.com>
1625
1626 * gdbarch.sh (floatformat_for_type): New gdbarch callback.
1627 * gdbarch.h, gdbarch.c: Re-generate.
1628 * arch-utils.h (default_floatformat_for_type): New prototype.
1629 * arch-utils.c (default_floatformat_for_type): New function.
1630
1631 * doublest.c (floatformat_from_length): Remove.
1632 (floatformat_from_type): Assume TYPE_FLOATFORMAT is non-NULL.
1633 * gdbtypes.c (verify_floatformat): Require non-NULL format.
1634
1635 * dwarf2read.c (dwarf2_init_float_type): New function.
1636 (read_base_type): Use it.
1637 * stabsread.c (dbx_init_float_type): New function.
1638 (read_sun_floating_type): Use it.
1639 (read_range_type): Likewise.
1640
1641 2016-09-05 Ulrich Weigand <uweigand@de.ibm.com>
1642
1643 * ada-lang.c (ada_language_arch_info): Use gdbarch-provided
1644 platform ABI floating-point formats for built-in types.
1645 * d-lang.c (build_d_types): Likewise.
1646 * f-lang.c (build_fortran_types): Likewise.
1647 * m2-lang.c (build_m2_types): Likewise.
1648 * mdebugread.c (basic_type): Likewise.
1649
1650 * go-lang.c (build_go_types): Use IEEE floating-point formats
1651 for language built-in types as mandanted by the language.
1652 * jv-lang.c (build_java_types): Likewise.
1653 * rust-lang.c (rust_language_arch_info): Likewise.
1654 * stabsread.c (rs6000_builtin_type): Likewise.
1655
1656 2016-09-05 Ulrich Weigand <uweigand@de.ibm.com>
1657
1658 * gdbtypes.c (init_type): Remove "char" special case.
1659 (arch_integer_type): Likewise.
1660 (gdbtypes_post_init): Set TYPE_NOSIGN for "char" type.
1661 (objfile_type): Likewise.
1662 * mdebugread.c (basic_type): Likewise.
1663 * stabsread.c (rs6000_builtin_type): Likewise.
1664
1665 2016-09-05 Ulrich Weigand <uweigand@de.ibm.com>
1666
1667 * gdbtypes.h (enum type_flag_value): Remove.
1668 Remove references to TYPE_FLAG_... in comments throughout.
1669 * gdbtypes.c (recursive_dump_type): Do not print TYPE_FLAG_...
1670 flags, print the corresponding TYPE_... access macro names.
1671 Remove references to TYPE_FLAG_... in comments throughout.
1672 * infcall.c: Remove references to TYPE_FLAG_... in comments.
1673 * valprint.c: Likewise.
1674 * gdb-gdb.py (class TypeFlag): No longer consider TYPE_FLAG_...
1675 values, only TYPE_INSTANCE_FLAG_... values.
1676 (class TypeFlagsPrinter): Likewise.
1677
1678 2016-09-05 Ulrich Weigand <uweigand@de.ibm.com>
1679
1680 * gdbtypes.h (init_type): Remove FLAGS argument. Move OBJFILE
1681 argument to first position.
1682 (init_integer_type): New prototype.
1683 (init_character_type): Likewise.
1684 (init_boolean_type): Likewise.
1685 (init_float_type): Likewise.
1686 (init_decfloat_type): Likewise.
1687 (init_complex_type): Likewise.
1688 (init_pointer_type): Likewise.
1689 * gdbtypes.c (verify_floatflormat): New function.
1690 (init_type): Remove FLAGS argument and processing. Move OBJFILE
1691 argument to first position.
1692 (init_integer_type): New function.
1693 (init_character_type): Likewise.
1694 (init_boolean_type): Likewise.
1695 (init_float_type): Likewise.
1696 (init_decfloat_type): Likewise.
1697 (init_complex_type): Likewise.
1698 (init_pointer_type): Likewise.
1699 (arch_float_type): Use verify_floatflormat.
1700 (objfile_type): Use init_..._type helpers instead of calling
1701 init_type directly.
1702 * dwarf2read.c (fixup_go_packaging): Update to changed init_type
1703 prototype.
1704 (read_namespace_type): Likewise.
1705 (read_module_type): Likewise.
1706 (read_typedef): Likewise.
1707 (read_unspecified_type): Likewise.
1708 (build_error_marker_type): Likewise.
1709 (read_base_type): Use init_..._type helpers.
1710 * mdebugread.c (basic_type): Use init_..._type helpers.
1711 (parse_type): Update to changed init_type prototype.
1712 (cross_ref): Likewise.
1713 * stabsread.c (rs6000_builtin_type): Use init_..._type helpers.
1714 (read_sun_builtin_type): Likewise.
1715 (read_sun_floating_type): Likewise.
1716 (read_range_type): Likewise. Also update to changed init_type
1717 prototype.
1718
1719 2016-09-05 Ulrich Weigand <uweigand@de.ibm.com>
1720
1721 * gdbtypes.h (arch_decfloat_type): New prototype.
1722 (arch_pointer_type): Likewise.
1723 * gdbtypes.c (arch_decfloat_type): New function.
1724 (arch_pointer_type): Likewise.
1725 (gdbtypes_post_init): Use arch_decfloat_type.
1726 * avr-tdep.c (avr_gdbarch_init): Use arch_pointer_type.
1727 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
1728 * m32c-tdep.c (make_types): Likewise.
1729 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
1730
1731 2016-09-05 Ulrich Weigand <uweigand@de.ibm.com>
1732
1733 * gdbtypes.c (set_type_code): New function.
1734 (init_type, arch_type): Use it.
1735
1736 2016-09-05 Ulrich Weigand <uweigand@de.ibm.com>
1737
1738 * ada-lang.c (ada_language_arch_info): Use gdbarch_long_double_bit
1739 instead of gdbarch_double_bit for "long_long_float".
1740
1741 2016-09-05 Pedro Alves <palves@redhat.com>
1742
1743 * NEWS: Mention that a C++ compiler is now required.
1744 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
1745 (COMPILE.pre, CC_LD): Use CXX directly.
1746 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
1747 * acinclude.m4: Don't include build-with-cxx.m4.
1748 * build-with-cxx.m4: Delete file.
1749 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
1750 * warning.m4: Assume $enable_build_with_cxx is yes.
1751 * configure: Regenerate.
1752
1753 2016-09-05 Pedro Alves <palves@redhat.com>
1754
1755 PR backtrace/19927
1756 * frame.c (get_frame_id): Compute the frame id if not computed
1757 yet.
1758 (unwind_to_current_frame): Delete.
1759 (get_current_frame): Use get_prev_frame_always_1 to get the
1760 current frame and assert that that always succeeds.
1761 (get_prev_frame_if_no_cycle): Skip cycle detection if returning
1762 the current frame.
1763
1764 2016-09-02 Tom Tromey <tom@tromey.com>
1765
1766 PR gdb/11616:
1767 * dwarf2read.c (decode_locdesc): Handle DW_OP_form_tls_address.
1768 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Handle
1769 DW_OP_form_tls_address.
1770 (locexpr_describe_location_piece): Likewise.
1771 * dwarf2expr.h (struct dwarf_expr_context_funcs): Update comment.
1772 * dwarf2expr.c (execute_stack_op): Handle DW_OP_form_tls_address.
1773 (ctx_no_get_tls_address): Mention DW_OP_form_tls_address.
1774 * compile/compile-loc2c.c (struct insn_info): Update comment.
1775 (compute_stack_depth_worker): Handle DW_OP_form_tls_address.
1776
1777 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
1778
1779 * target.c (target_wait): Mention that the function's prototype
1780 can be found at target/target.h.
1781 * target.h (target_wait): Move prototype from here...
1782 * target/target.h (target_wait): ... to here.
1783
1784 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
1785
1786 * fork-child.c (startup_inferior): Replace calls to target_resume
1787 by target_continue{,_no_signal}, depending on the case.
1788 * linux-nat.c (cleanup_target_stop): Call
1789 target_continue_no_signal instead of target_resume.
1790 * procfs.c (procfs_wait): Likewise.
1791 * target.c (target_continue): New function.
1792 * target/target.h (target_continue): New prototype.
1793
1794 2016-08-31 Yao Qi <yao.qi@linaro.org>
1795
1796 * record-full.c (record_full_insert_breakpoint): Fix typo.
1797
1798 2016-08-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1799
1800 * thread.c (tp_array_compar): Insert missing parentheses.
1801
1802 2016-08-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
1803
1804 * xtensa-tdep.h (XTENSA_GDBARCH_TDEP_INSTANTIATE): Replace
1805 designated initializer list by plain initializer list, for C++
1806 compliance.
1807
1808 2016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1809
1810 * aarch64-linux-nat.c (ps_get_thread_area): Remove const from
1811 struct ps_prochandle.
1812 * amd64-linux-nat.c (ps_get_thread_area): Likewise.
1813 * arm-linux-nat.c (ps_get_thread_area): Likewise.
1814 * gdb_proc_service.h (ps_get_thread_area): Likewise.
1815 * i386-linux-nat.c (ps_get_thread_area): Likewise.
1816 * m68klinux-nat.c (ps_get_thread_area): Likewise.
1817 * mips-linux-nat.c (ps_get_thread_area): Likewise.
1818 * nat/aarch64-linux.c (aarch64_ps_get_thread_area): Likewise.
1819 * nat/aarch64-linux.h (aarch64_ps_get_thread_area): Likewise.
1820 * xtensa-linux-nat.c (ps_get_thread_area): Likewise.
1821
1822 2016-08-24 Simon Marchi <simon.marchi@ericsson.com>
1823
1824 * infcmd.c (set_inferior_io_terminal): Set inferior terminal to
1825 NULL if terminal_name is an empty string.
1826 (_initialize_infcmd): Make the argument of "set inferior-tty"
1827 optional, mention it in the help doc.
1828
1829 2016-08-24 Carl Love <cel@us.ibm.com>
1830
1831 * rs6000-tdep.c (rs6000_gdbarch_init): Remove call
1832 set_gdbarch_deprecated_fp_regnum() architecture
1833 initialization function.
1834
1835 2016-08-23 Simon Marchi <simon.marchi@ericsson.com>
1836
1837 * stack.c (parse_frame_specification): Fix typo in comment.
1838
1839 2016-08-23 Pedro Alves <palves@redhat.com>
1840
1841 PR gdb/20494
1842 * inflow.c (our_terminal_info, initial_gdb_ttystate): Update
1843 comments.
1844 (enum gdb_has_a_terminal_flag_enum, gdb_has_a_terminal_flag):
1845 Delete.
1846 (set_initial_gdb_ttystate): Record our_terminal_info here too,
1847 instead of ...
1848 (gdb_has_a_terminal): ... here. Reimplement in terms of
1849 initial_gdb_ttystate. Make static.
1850 * terminal.h (gdb_has_a_terminal): Delete declaration.
1851 (set_initial_gdb_ttystate): Add comment.
1852 * top.c (show_interactive_mode): Use input_interactive_p instead
1853 of gdb_has_a_terminal.
1854
1855 2016-08-22 Pedro Alves <palves@redhat.com>
1856
1857 PR gdb/20505
1858 * linux-tdep.c (linux_vsyscall_range_raw): For core inferiors,
1859 find the vDSO's start address with AT_SYSINFO_EHDR too, and
1860 determine the vDSO's size by finding the PT_LOAD segment that
1861 matches AT_SYSINFO_EHDR.
1862
1863 2016-08-19 Yao Qi <yao.qi@linaro.org>
1864
1865 * aarch64-tdep.c (aarch64_analyze_prologue): Handle register
1866 based STP instruction.
1867
1868 2016-08-19 Yao Qi <yao.qi@linaro.org>
1869
1870 * completer.c (linespec_location_completer): Make file_to_match
1871 null-terminated.
1872
1873 2016-08-19 Pedro Alves <palves@redhat.com>
1874
1875 * amd64-tdep.c (amd64_relocate_instruction) <callq>: Handle return
1876 addresses over 0x7fffffff.
1877
1878 2016-08-18 Carl Love <cel@us.ibm.com>
1879
1880 * MAINTANERS Write After Approval): Add "Carl Love".
1881
1882 2016-08-18 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1883
1884 * rs6000-tdep.c (ppc_process_record_op31): Handle HTM instructions.
1885
1886 2016-08-17 Simon Marchi <simon.marchi@ericsson.com>
1887
1888 * inferior.c (remove_inferior_command): Fix error message.
1889
1890 2016-08-17 Simon Marchi <simon.marchi@ericsson.com>
1891
1892 * inferior.c (exit_inferior_1): Remove comment.
1893
1894 2016-08-15 Matthew Wahab <matthew.wahab@arm.com>
1895
1896 PR gdb/20457
1897 * gdb_proc_service.h: Add an include of gregset.h
1898 [!HAVE_PROC_SERVICE_H]: Remove the include of gregset.h.
1899
1900 2016-08-15 Yao Qi <yao.qi@linaro.org>
1901
1902 * location.c (explicit_location_lex_one): Compare the return
1903 value of strncmp with zero. Don't check (*inp)[9]. Increment
1904 *inp by 8.
1905
1906 2016-08-11 Pedro Alves <palves@redhat.com>
1907
1908 PR gdb/20413
1909 * nat/linux-ptrace.c: Include <sys/procfs.h> instead of
1910 "gregset.h".
1911
1912 2016-08-10 Pedro Alves <palves@redhat.com>
1913
1914 PR gdb/19187
1915 * record-full.c (record_full_remove_breakpoint): Don't remove the
1916 breakpoint from the record_full_breakpoints VEC if we're detaching
1917 the breakpoint from a fork child.
1918
1919 2016-08-10 Pedro Alves <palves@redhat.com>
1920
1921 PR gdb/19187
1922 * break-catch-sig.c (signal_catchpoint_remove_location): Adjust
1923 interface.
1924 * break-catch-syscall.c (remove_catch_syscall):
1925 * breakpoint.c (enum remove_bp_reason): Moved to breakpoint.h.
1926 (remove_breakpoint_1): Pass 'reason' down.
1927 (remove_catch_fork, remove_catch_vfork, remove_catch_solib)
1928 (remove_catch_exec, remove_watchpoint, remove_masked_watchpoint)
1929 (base_breakpoint_remove_location, bkpt_remove_location)
1930 (bkpt_probe_remove_location, bkpt_probe_remove_location): Adjust
1931 interface.
1932 * breakpoint.h (enum remove_bp_reason): Moved here from
1933 breakpoint.c.
1934 (struct breakpoint_ops) <remove_location>: Add 'reason' parameter.
1935 * corelow.c (core_remove_breakpoint): New function.
1936 (init_core_ops): Install it as to_remove_breakpoint method.
1937 * exec.c (exec_remove_breakpoint): New function.
1938 (init_exec_ops): Install it as to_remove_breakpoint method.
1939 * mem-break.c (memory_remove_breakpoint): Adjust interface.
1940 * record-btrace.c (record_btrace_remove_breakpoint): Adjust
1941 interface.
1942 * record-full.c (record_full_remove_breakpoint)
1943 (record_full_core_remove_breakpoint): Adjust interface.
1944 * remote.c (remote_remove_breakpoint): Adjust interface.
1945 * target-debug.h (target_debug_print_enum_remove_bp_reason): New
1946 macro.
1947 * target-delegates.c: Regenerate.
1948 * target.c (target_remove_breakpoint): Add 'reason' parameter.
1949 * target.h (struct target_ops) <to_remove_breakpoint>: Add
1950 'reason' parameter.
1951 (target_remove_breakpoint, memory_remove_breakpoint): Add 'reason'
1952 parameter.
1953
1954 2016-08-10 Pedro Alves <palves@redhat.com>
1955
1956 PR gdb/19187
1957 * breakpoint.c (insertion_state_t): Delete.
1958 (enum remove_bp_reason): New.
1959 (detach_breakpoints, remove_breakpoint_1, remove_breakpoint):
1960 Adjust to use enum remove_bp_reason instead of insertion_state_t.
1961
1962 2016-08-10 Pedro Alves <palves@redhat.com>
1963
1964 PR gdb/19187
1965 * breakpoint.c (remove_breakpoint): Remove 'is' parameter and
1966 always pass mark_uninserted to remove_breakpoint_1.
1967 (insert_breakpoint_locations, remove_breakpoints)
1968 (remove_breakpoints_pid, update_global_location_list): Update
1969 callers.
1970
1971 2016-08-10 Руслан Ижбулатов <lrn1986@gmail.com>
1972 Pedro Alves <palves@redhat.com>
1973
1974 * windows-nat.c (MS_VC_EXCEPTION): New define.
1975 (handle_exception_result): New enum.
1976 (windows_delete_thread): Free the thread's name.
1977 (handle_exception): Handle MS_VC_EXCEPTION.
1978 (get_windows_debug_event): Handle HANDLE_EXCEPTION_IGNORED.
1979 (windows_thread_name): New function.
1980 (windows_target): Install it as to_thread_name method.
1981 * NEWS: Mention the thread naming support on MS-Windows.
1982
1983 2016-08-10 Pedro Alves <palves@redhat.com>
1984
1985 * common/signals-state-save-restore.c
1986 (save_original_signals_state, restore_original_signals_state):
1987 Wrap perror_with_name arguments with '()'.
1988
1989 2016-08-09 Pedro Alves <palves@redhat.com>
1990
1991 PR gdb/20418
1992 * event-top.c (ui_register_input_event_handler)
1993 (ui_unregister_input_event_handler): New functions.
1994 (async_enable_stdin): Register input in the event loop.
1995 (async_disable_stdin): Unregister input from the event loop.
1996 (gdb_setup_readline): Register input in the event loop.
1997 * infrun.c (check_curr_ui_sync_execution_done): Register input in
1998 the event loop.
1999 * target.c (target_terminal_inferior): Don't unregister input from
2000 the event loop.
2001 (target_terminal_ours): Don't register input in the event loop.
2002 * target.h (target_terminal_inferior)
2003 (target_terminal_ours_for_output, target_terminal_ours): Update
2004 comments.
2005 * top.h (ui_register_input_event_handler)
2006 (ui_unregister_input_event_handler): New declarations.
2007 * utils.c (ui_unregister_input_event_handler_cleanup)
2008 (prepare_to_handle_input): New functions.
2009 (defaulted_query, prompt_for_continue): Use
2010 prepare_to_handle_input.
2011
2012 2016-08-09 Pedro Alves <palves@redhat.com>
2013
2014 PR mi/20431
2015 * mi/mi-main.c (mi_execute_command): Enable input and set prompt
2016 state to PROMPT_NEEDED.
2017
2018 2016-08-09 Pedro Alves <palves@redhat.com>
2019
2020 PR gdb/18653
2021 * Makefile.in (SFILES): Add
2022 common/signals-state-save-restore.c.
2023 (HFILES_NO_SRCDIR): Add common/signals-state-save-restore.h.
2024 (COMMON_OBS): Add signals-state-save-restore.o.
2025 (signals-state-save-restore.o): New rule.
2026 * configure: Regenerate.
2027 * fork-child.c: Include "signals-state-save-restore.h".
2028 (fork_inferior): Call restore_original_signals_state.
2029 * main.c: Include "signals-state-save-restore.h".
2030 (captured_main): Call save_original_signals_state.
2031 * common/common.m4: Add sigaction to AC_CHECK_FUNCS checks.
2032 * common/signals-state-save-restore.c: New file.
2033 * common/signals-state-save-restore.h: New file.
2034
2035 2016-08-09 Pedro Alves <palves@redhat.com>
2036
2037 * value.c (unpack_value_bitfield): Skip unpacking if the parent
2038 has no contents buffer to begin with.
2039
2040 2016-08-08 Pedro Alves <palves@redhat.com>
2041
2042 * features/i386/amd64-avx-mpx-linux.c: Regenerate.
2043 * features/i386/amd64-avx-mpx.c: Regenerate.
2044 * features/i386/i386-avx-mpx-linux.c: Regenerate.
2045 * features/i386/i386-avx-mpx.c: Regenerate.
2046
2047 2016-08-05 Simon Marchi <simon.marchi@ericsson.com>
2048
2049 * event-top.h (cli_command_loop): Remove.
2050
2051 2016-08-05 Pedro Alves <palves@redhat.com>
2052
2053 PR remote/20398
2054 * remote-fileio.c (remote_fileio_quit_handler): Check the quit
2055 flag before calling quit.
2056
2057 2016-08-05 Pedro Alves <palves@redhat.com>
2058
2059 * NEWS: Mention that GDB and GDBserver build with a C++ compiler
2060 by default.
2061
2062 2016-08-05 Pedro Alves <palves@redhat.com>
2063
2064 * build-with-cxx.m4: Change help string to be in terms of
2065 --disable-build-with-cxx.
2066 * configure: Regenerate.
2067
2068 2016-08-04 Yao Qi <yao.qi@linaro.org>
2069
2070 * aarch64-linux-nat.c (tdesc_arm_with_vfpv3): Remove the
2071 declaration.
2072 (aarch64_linux_read_description): Remove code on getting
2073 auxv and select target description on it. Select target
2074 description by the result of NT_ARM_VFP ptrace request.
2075
2076 2016-08-03 Tom Tromey <tom@tromey.com>
2077
2078 PR python/18565:
2079 * python/py-frame.c (frapy_function): Use find_frame_funname.
2080
2081 2016-08-03 Tom Tromey <tom@tromey.com>
2082
2083 * stack.c (find_frame_funname): Avoid any possible leak in case
2084 cp_remove_params can throw.
2085
2086 2016-08-03 Tom Tromey <tom@tromey.com>
2087
2088 * NEWS: Mention new Python breakpoint events.
2089
2090 2016-08-02 Tom Tromey <tom@tromey.com>
2091
2092 * MAINTAINERS (Core): Add self as Rust maintainer.
2093
2094 2016-08-01 Joel Brobecker <brobecker@adacore.com>
2095
2096 * NEWS: Create a new section for the next release branch.
2097 Rename the section of the current branch, now that it has
2098 been cut.
2099
2100 2016-08-01 Joel Brobecker <brobecker@adacore.com>
2101
2102 GDB 7.12 branch created (41bfcd638a4e0e48b96ce4de2845372dea481322):
2103 * version.in: Bump version to 7.12.50.DATE-git.
2104
2105 2016-07-27 Alan Modra <amodra@gmail.com>
2106
2107 * amd64-darwin-tdep.c: Don't include libbfd.h.
2108 * i386-darwin-tdep.c: Likewise.
2109 * rs6000-nat.c: Likewise.
2110 * rs6000-tdep.c: Likewise.
2111
2112 2016-07-26 Tom Tromey <tom@tromey.com>
2113
2114 * symtab.c (register_symbol_computed_impl): Update.
2115 PR python/20190:
2116 * value.h (symbol_read_needs): Declare.
2117 (symbol_read_needs_frame): Add comment.
2118 * symtab.h (struct symbol_computed_ops) <read_variable>: Update
2119 comment.
2120 <get_symbol_read_needs>: Rename. Change return type.
2121 * findvar.c (symbol_read_needs): New function.
2122 (symbol_read_needs_frame): Rewrite.
2123 (default_read_var_value): Use symbol_read_needs.
2124 * dwarf2loc.c (struct symbol_needs_baton): Rename.
2125 <needs>: Renamed from needs_frame. Changed type.
2126 (needs_frame_read_addr_from_reg, symbol_needs_get_reg_value)
2127 (symbol_needs_read_mem, symbol_needs_frame_base)
2128 (symbol_needs_frame_cfa, symbol_needs_tls_address)
2129 (symbol_needs_dwarf_call): Rename.
2130 (needs_dwarf_reg_entry_value): Update.
2131 (symbol_needs_ctx_funcs, dwarf2_loc_desc_get_symbol_read_needs):
2132 Rename and update.
2133 (locexpr_get_symbol_read_needs, loclist_symbol_needs): Likewise.
2134 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Update.
2135 * defs.h (enum symbol_needs_kind): New.
2136
2137 2016-07-26 Pedro Alves <palves@redhat.com>
2138
2139 * nat/linux-ptrace.c: Include "gregset.h".
2140 (linux_ptrace_test_ret_to_nx): Use PTRACE_GETREGS instead of
2141 PTRACE_PEEKUSER.
2142
2143 2016-07-26 Pedro Alves <palves@redhat.com>
2144
2145 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Rename 'native'
2146 parameter to 'ptrace'.
2147 * nat/amd64-linux-siginfo.c (GDB_SI_SIZE): New define.
2148 (nat_uptr_t): New an unsigned long.
2149 (nat_clock_t): Remove attribute __aligned__.
2150 (struct nat_timeval): Delete.
2151 (nat_siginfo_t): Remove attribute __aligned__.
2152 (ptrace_siginfo_t): Define.
2153 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
2154 (compat_x32_siginfo_from_siginfo)
2155 (siginfo_from_compat_x32_siginfo): Make 'from' parameter const.
2156 Convert through a ptrace_siginfo_t instead of a nat_siginfo_t.
2157 Remove casts.
2158 (amd64_linux_siginfo_fixup_common): Rename 'native' parameter to
2159 'ptrace'. Remove static assertions.
2160 (top level): New static assertions.
2161
2162 2016-07-25 Simon Marchi <simon.marchi@ericsson.com>
2163
2164 * top.h (make_delete_ui_cleanup): New declaration.
2165 * top.c (delete_ui_cleanup): New function.
2166 (make_delete_ui_cleanup): New function.
2167 (new_ui_command): Create restore_ui cleanup earlier, create a
2168 delete_ui cleanup and discard it on success.
2169
2170 2016-07-25 Pedro Alves <palves@redhat.com>
2171 Jan Kratochvil <jan.kratochvil@redhat.com>
2172
2173 * nat/linux-procfs.c (parse_proc_status_state): Handle lowercase
2174 't'.
2175
2176 2016-07-25 Pedro Alves <palves@redhat.com>
2177
2178 * nat/linux-procfs.c (enum proc_state): New enum.
2179 (parse_proc_status_state): New function.
2180 (linux_proc_pid_get_state): Replace output string buffer parameter
2181 with an output proc_state parameter. Use parse_proc_status_state.
2182 (linux_proc_pid_is_gone): Adjust to use proc_state values.
2183 (linux_proc_pid_has_state): Change type of 'state' parameter; now
2184 an enum proc_state. Adjust to linux_proc_pid_get_state interface
2185 change.
2186 (linux_proc_pid_is_stopped)
2187 (linux_proc_pid_is_trace_stopped_nowarn)
2188 (linux_proc_pid_is_zombie_maybe_warn): Adjust to
2189 linux_proc_pid_get_state interface change.
2190
2191 2016-07-25 Tim Wiederhake <tim.wiederhake@intel.com>
2192
2193 * MAINTAINERS (Write After Approval): Add Tim Wiederhake
2194
2195 2016-07-25 Tim Wiederhake <tim.wiederhake@intel.com>
2196
2197 * NEWS: Resume btrace on reconnect.
2198 * record-btrace.c: Added record-btrace.h include.
2199 (record_btrace_open): Split into this and ...
2200 (record_btrace_push_target): ... this.
2201 (record_btrace_disconnect): New function.
2202 (init_record_btrace_ops): Use record_btrace_disconnect.
2203 * record-btrace.h: New file.
2204 * remote.c: Added record-btrace.h include.
2205 (remote_start_remote): Check recording status.
2206 (remote_btrace_maybe_reopen): New function.
2207
2208 2016-07-23 Gabriel Krisman Bertazi <gabriel@krisman.be>
2209
2210 * xml-syscall.c (get_syscalls_by_group): New.
2211 (get_syscall_group_names): New.
2212 (struct syscall_group_desc): New structure to store group data.
2213 (struct syscalls_info): Include field to store the group list.
2214 (sysinfo_free_syscall_group_desc): New.
2215 (free_syscalls_info): Free group list.
2216 (syscall_group_create_syscall_group_desc): New.
2217 (syscall_group_add_syscall): New.
2218 (syscall_create_syscall_desc): Add syscall to its groups.
2219 (syscall_start_syscall): Load group attribute.
2220 (syscall_group_get_group_by_name): New.
2221 (xml_list_syscalls_by_group): New.
2222 (xml_list_of_groups): New.
2223 * xml-syscall.h (get_syscalls_by_group): Export function
2224 to retrieve a list of syscalls filtered by the group name.
2225 (get_syscall_group_names): Export function to retrieve the list
2226 of syscall groups.
2227 * break-catch-syscall.c (catch_syscall_split_args): Verify if
2228 argument is a syscall group and expand it to a list of syscalls
2229 when creating catchpoints.
2230 (catch_syscall_completer): Add word completion for system call
2231 groups.
2232 * configure.ac: Include dependency for xsltproc when building
2233 in maintainer-mode.
2234 * break-catch-syscall.c (_initialize_breakpoint): Update catch
2235 syscall command documentation.
2236 * NEWS: Include section about catching groups of syscalls.
2237 * configure: Regenerate.
2238 * data-directory/Makefile.in: Generate syscall xml when building
2239 in maintainer mode.
2240 * syscalls/gdb-syscalls.dtd: Include group attribute to the
2241 syscall element.
2242 * syscalls/apply-defaults.xsl: New.
2243 * syscalls/linux-defaults.xml.in: New.
2244 * syscalls/aarch64-linux.xml: Rename to aarch64-linux.xml.in.
2245 * syscalls/amd64-linux.xml: Rename to amd64-linux.xml.in.
2246 * syscalls/arm-linux.xml: Rename to arm-linux.xml.in.
2247 * syscalls/bfin-linux.xml: Rename to bfin-linux.xml.in.
2248 * syscalls/i386-linux.xml: Rename to i386-linux.xml.in.
2249 * syscalls/mips-n32-linux.xml: Rename to mips-n32-linux.xml.in.
2250 * syscalls/mips-n64-linux.xml: Rename to mips-n64-linux.xml.in.
2251 * syscalls/mips-o32-linux.xml: Rename to mips-o32-linux.xml.in.
2252 * syscalls/ppc-linux.xml: Rename to ppc-linux.xml.in.
2253 * syscalls/ppc64-linux.xml: Rename to ppc64-linux.xml.in.
2254 * syscalls/s390-linux.xml: Rename to s390-linux.xml.in.
2255 * syscalls/s390x-linux.xml: Rename to s390x-linux.xml.in.
2256 * syscalls/sparc-linux.xml: Rename to sparc-linux.xml.in.
2257 * syscalls/sparc64-linux.xml: Rename to sparc64-linux.xml.in.
2258 * syscalls/aarch64-linux.xml: Regenerate.
2259 * syscalls/amd64-linux.xml: Regenerate.
2260 * syscalls/arm-linux.xml: Regenerate.
2261 * syscalls/i386-linux.xml: Regenerate.
2262 * syscalls/mips-n32-linux.xml: Regenerate.
2263 * syscalls/mips-n64-linux.xml: Regenerate.
2264 * syscalls/mips-o32-linux.xml: Regenerate.
2265 * syscalls/ppc-linux.xml: Regenerate.
2266 * syscalls/ppc64-linux.xml: Regenerate.
2267 * syscalls/s390-linux.xml: Regenerate.
2268 * syscalls/s390x-linux.xml: Regenerate.
2269 * syscalls/sparc-linux.xml: Regenerate.
2270 * syscalls/sparc64-linux.xml: Regenerate.
2271
2272 2016-07-23 Andrew Pinski <apinski@cavium.com>
2273
2274 * nat/aarch64-linux-hw-point.c
2275 (aarch64_linux_get_debug_reg_capacity): Handle
2276 ARMv8.1 and ARMv8.2 debug versions.
2277 * nat/aarch64-linux-hw-point.h
2278 (AARCH64_DEBUG_ARCH_V8_1): New define.
2279 (AARCH64_DEBUG_ARCH_V8_2): New define.
2280
2281 2016-06-30 Руслан Ижбулатов <lrn1986@gmail.com>
2282
2283 PR gdb/14529
2284 * windows-nat.c (signal_event_command): New command 'signal-event'
2285 for W32 JIT debug support.
2286 * NEWS: Add an entry about the new 'signal-event' command.
2287
2288 2016-07-22 Tom Tromey <tom@tromey.com>
2289
2290 PR rust/20162:
2291 * dwarf2read.c (scan_partial_symbols) <DW_TAG_structure_type>:
2292 Call scan_partial_symbols for children when reading a Rust CU.
2293 (dwarf2_physname): Ignore invalid DW_AT_linkage_name generated by
2294 rustc.
2295 (process_structure_scope) <DW_TAG_subprogram>: Call
2296 read_func_scope for Rust.
2297
2298 2016-07-22 Yao Qi <yao.qi@linaro.org>
2299
2300 * ctf.c (ctf_traceframe_info): Call bt_ctf_get_uint64 rather than
2301 bt_ctf_get_int64.
2302
2303 2016-07-21 Tom Tromey <tom@tromey.com>
2304
2305 * rust-lang.c (rust_tuple_struct_type_p): Return false for empty
2306 structs.
2307 * rust-exp.y (struct_expr_list): Allow empty elements.
2308
2309 2016-07-21 Tom Tromey <tom@tromey.com>
2310
2311 * configure: Rebuild.
2312 * warning.m4 (AM_GDB_WARNINGS) <build_warnings>: Add
2313 -Wunused-but-set-parameter, -Wunused-but-set-variable.
2314
2315 2016-07-21 Pedro Alves <palves@redhat.com>
2316
2317 * go32-nat.c (go32_create_inferior): Add cast.
2318 * ser-go32.c (dos_noop): Delete.
2319 (dos_flush_output, dos_setparity, dos_drain_output): New
2320 functions.
2321 (dos_write): Add cast.
2322 (dos_ops): Use dos_flush_output, dos_setparity and
2323 dos_drain_output.
2324 * top.c (do_chdir_cleanup): Add cast.
2325
2326 2016-07-21 Pedro Alves <palves@redhat.com>
2327
2328 * windows-nat.c (handle_exception): Remove "th".
2329
2330 2016-07-21 Pedro Alves <palves@redhat.com>
2331
2332 * varobj.c (varobj_value_get_print_value): Move "gdbarch" to block
2333 scope that uses it.
2334
2335 2016-07-20 John Baldwin <jhb@FreeBSD.org>
2336
2337 * fbsd-nat.c (fbsd_enable_proc_events): Enable "PTRACE_VFORK"
2338 events.
2339 (fbsd_pending_vfork_done): Only define if "PTRACE_VFORK" is not
2340 defined.
2341 (fbsd_add_vfork_done): Likewise.
2342 (fbsd_is_vfork_done_pending): Likewise.
2343 (fbsd_next_vfork_done): Likewise.
2344 (fbsd_resume): Only ignore pending vfork done events if
2345 "PTRACE_VFORK" is not defined.
2346 (fbsd_wait): Only look for pending vfork done events if
2347 "PTRACE_VFORK" is not defined.
2348 [PTRACE_VFORK]: Handle "PL_FLAG_VFORKED" and "PL_FLAG_VFORK_DONE"
2349 events.
2350 (fbsd_follow_fork): Only fake a vfork done event if "PTRACE_VFORK"
2351 is not defined.
2352
2353 2016-07-20 John Baldwin <jhb@FreeBSD.org>
2354
2355 * fbsd-nat.c (fbsd_wait): Use "fbsd_enable_proc_events" on
2356 new child processes.
2357
2358 2016-07-20 John Baldwin <jhb@FreeBSD.org>
2359
2360 * fbsd-nat.c (fbsd_enable_lwp_events): Remove function.
2361 (fbsd_enable_proc_events): New function.
2362 (fbsd_enable_follow_fork): Remove function.
2363 (fbsd_post_startup_inferior): Use "fbsd_enable_proc_events".
2364 (fbsd_post_attach): Likewise.
2365
2366 2016-07-15 John Baldwin <jhb@FreeBSD.org>
2367
2368 * common/signals.c (gdb_signal_from_host): Handle SIGLIBRT.
2369 (do_gdb_signal_to_host): Likewise.
2370 * infrun.c (_initialize_infrun): Pass GDB_SIGNAL_LIBRT through to
2371 programs.
2372 * proc-events.c (signal_table): Add entry for SIGLIBRT.
2373
2374 2016-07-14 Tom Tromey <tom@tromey.com>
2375
2376 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Add missing
2377 newline.
2378
2379 2016-07-14 Tom Tromey <tom@tromey.com>
2380
2381 * mips-tdep.c (micromips_scan_prologue): Remove "frame_addr".
2382 (mips_o32_push_dummy_call): Remove "stack_used_p".
2383 * aarch64-tdep.c (aarch64_record_data_proc_imm): Remove
2384 "insn_bit28".
2385 * rust-lang.c (rust_print_type): Remove "len".
2386 * rust-exp.y (super_name): Remove "current_len".
2387 * python/py-framefilter.c (py_print_type): Remove "type".
2388 * mdebugread.c (parse_partial_symbols): Remove
2389 "past_first_source_file".
2390 <N_SO>: Remove "valu", "first_so_symnum", "prev_textlow_not_set".
2391 * m2-valprint.c (m2_print_unbounded_array): Remove
2392 "content_type".
2393 (m2_val_print): Remove "i".
2394 * linespec.c (unexpected_linespec_error): Remove "cleanup".
2395 * f-valprint.c (f_val_print): Remove "i".
2396 * elfread.c (elf_symtab_read): Remove "offset".
2397 * dwarf2-frame.c (dwarf2_fetch_cfa_info): Remove "addr_size".
2398 * jit.c (jit_dealloc_cache): Remove "i" and "frame_arch".
2399
2400 2016-07-14 Tom Tromey <tom@tromey.com>
2401
2402 * arch-utils.c (default_skip_permanent_breakpoint): Remove
2403 "bp_insn".
2404 * disasm.c (do_assembly_only): Remove "num_displayed".
2405 * dwarf2read.c (read_abbrev_offset): Remove "length".
2406 (dwarf_decode_macro_bytes) <DW_MACINFO_vendor_ext>: Remove
2407 "constant".
2408 * m32c-tdep.c (make_regs): Remove "r2hl", "r3hl", and "intbhl".
2409 * microblaze-tdep.c (microblaze_frame_cache): Remove "func".
2410 * tracefile.c (trace_save): Remove "status".
2411
2412 2016-07-14 Tom Tromey <tom@tromey.com>
2413
2414 * symfile.c (simple_overlay_update_1): Remove initialization
2415 of "size", and commented-out code.
2416 (simple_overlay_update): Likewise.
2417
2418 2016-07-14 Tom Tromey <tom@tromey.com>
2419
2420 * tui/tui-winsource.c (tui_show_source_line): Use getcurx.
2421 * tui/tui-io.c (tui_puts): Use getcurx.
2422 (tui_redisplay_readline): Likewise.
2423
2424 2016-07-14 Tom Tromey <tom@tromey.com>
2425
2426 * inflow.c (child_terminal_ours_1): Use ATTRIBUTE_UNUSED.
2427
2428 2016-07-14 Tom Tromey <tom@tromey.com>
2429
2430 * corefile.c (reopen_exec_file): Only examine st.st_mtime if stat
2431 succeeded.
2432
2433 2016-07-13 Tom Tromey <tom@tromey.com>
2434
2435 PR python/15620, PR python/18620:
2436 * python/py-evts.c (gdbpy_initialize_py_events): Call
2437 add_new_registry for new events.
2438 * python/py-events.h (events_object) <breakpoint_created,
2439 breakpoint_deleted, breakpoint_modified>: New fields.
2440 * python/py-breakpoint.c (gdbpy_breakpoint_created): Emit the
2441 breakpoint changed event.
2442 (gdbpy_breakpoint_deleted): Emit the breakpoint deleted event.
2443 (gdbpy_breakpoint_modified): New function.
2444 (gdbpy_initialize_breakpoints): Attach to the breakpoint modified
2445 observer.
2446
2447 2016-07-13 Tom Tromey <tom@tromey.com>
2448
2449 PR python/17698:
2450 * NEWS: Update.
2451 * python/py-breakpoint.c (bppy_get_pending): New function.
2452 (breakpoint_object_getset): Add entry for "pending".
2453 * breakpoint.h (pending_breakpoint_p): Declare.
2454 * breakpoint.c (pending_breakpoint_p): New function.
2455
2456 2016-07-13 Tom Tromey <tom@tromey.com>
2457
2458 * python/py-breakpoint.c (bppy_get_visibility)
2459 (gdbpy_breakpoint_created): Use user_breakpoint_p.
2460
2461 2016-07-13 Tom Tromey <tom@tromey.com>
2462
2463 PR cli/18053:
2464 * jit.c (jit_reader_load_command): Use tilde_expand.
2465 (_initialize_jit): Fix help for jit-reader-unload. Set completer
2466 for new commands.
2467
2468 2016-07-12 Tom Tromey <tom@tromey.com>
2469
2470 PR python/19293:
2471 * python/lib/gdb/command/unwinders.py (do_enable_unwinder): Call
2472 gdb.invalidate_cached_frames.
2473 * python/lib/gdb/unwinder.py (register_unwinder): Call
2474 gdb.invalidate_cached_frames.
2475 * python/python.c (gdbpy_invalidate_cached_frames): New function.
2476 (python_GdbMethods): Add entry for invalidate_cached_frames.
2477
2478 2016-07-07 Walfred Tedeschi <walfred.tedeschi@intel.com>
2479
2480 * cp-namespace.c (cp_lookup_bare_symbol): Initialize
2481 lang_this.symbol.
2482
2483 2016-07-07 Walfred Tedeschi <walfred.tedeschi@intel.com>
2484
2485 * cp-namespace.c (cp_lookup_bare_symbol): Use language passed as
2486 parameter to look for the symbol "this".
2487
2488
2489 2016-07-06 John Baldwin <jhb@FreeBSD.org>
2490
2491 * h8300-tdep.c (h8300_print_register): Remove extraneous parentheses.
2492
2493 2016-07-06 John Baldwin <jhb@FreeBSD.org>
2494
2495 * ada-lang.c (ada_unpack_from_contents): Use unsigned constants with
2496 left shifts.
2497
2498 2016-07-06 John Baldwin <jhb@FreeBSD.org>
2499
2500 * sh64-tdep.c (sh64_analyze_prologue): Set "uses_fp" when setting
2501 the MEDIA_FP_REGNUM register.
2502
2503 2016-07-06 John Baldwin <jhb@FreeBSD.org>
2504
2505 * score-tdep.c (score7_malloc_and_get_memblock): Remove check for
2506 negative size.
2507
2508 2016-07-06 John Baldwin <jhb@FreeBSD.org>
2509
2510 * fbsd-nat.c (fbsd_is_vfork_done_pending): Fix return type.
2511
2512 2016-07-06 Yao Qi <yao.qi@linaro.org>
2513
2514 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Don't call
2515 arm_vfp_cprc_sub_candidate for static field.
2516
2517 2016-07-06 Manish Goregaokar <manish@mozilla.com>
2518
2519 * rust-lang.c (rust_subscript): Allow subscripting pointers
2520
2521 2016-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2522
2523 * configure: Regenerate.
2524 * configure.ac (HAVE_LIBBABELTRACE): Fix pos variable dereference.
2525
2526 2016-07-01 Don Breazeal <donb@codesourcery.com>
2527
2528 * remote.c (remote_get_memory_xfer_limit): New function.
2529 * target-delegates.c: Regenerate.
2530 * target.c (memory_xfer_partial): Call
2531 target_ops.to_get_memory_xfer_limit.
2532 * target.h (struct target_ops) <to_get_memory_xfer_limit>: New
2533 member.
2534
2535 2016-07-01 John Baldwin <jhb@FreeBSD.org>
2536
2537 * fbsd-nat.c (struct fbsd_fork_child_info): Rename to ...
2538 (struct fbsd_fork_info): ... this.
2539 (struct fbsd_fork_info) <child>: Rename to ...
2540 (struct fbsd_fork_info) <ptid>: ... this.
2541 (fbsd_pending_children): Update type.
2542 (fbsd_remember_child): Update type and field name.
2543 (fbsd_is_child_pending): Likewise.
2544 (fbsd_pending_vfork_done): New variable.
2545 (fbsd_is_vfork_done_pending): New function.
2546 (fbsd_next_vfork_done): New function.
2547 (fbsd_resume): Don't resume processes with a pending vfork done
2548 event.
2549 (fbsd_wait): Report pending vfork done events.
2550 (fbsd_follow_fork): Delay and record a pending vfork done event
2551 for a vfork parent when detaching the child.
2552
2553 2016-07-01 John Baldwin <jhb@FreeBSD.org>
2554
2555 * fbsd-nat.c (super_resume): Move earlier next to "super_wait".
2556 (resume_one_thread_cb): Move below fork following helper code.
2557 (resume_all_threads_cb): Likewise.
2558 (fbsd_resume): Likewise.
2559
2560 2016-07-01 John Baldwin <jhb@FreeBSD.org>
2561
2562 * fbsd-nat.c (fbsd_follow_fork): Only detach child if
2563 "detach_fork" is true.
2564
2565 2016-07-01 John Baldwin <jhb@FreeBSD.org>
2566
2567 * x86bsd-nat.c: Include 'gdbthread.h'.
2568 (x86bsd_dr_set): Set debug registers on all threads belonging to
2569 the current inferior.
2570
2571 2016-07-01 John Baldwin <jhb@FreeBSD.org>
2572
2573 * Makefile.in [HFILES_NO_SRCDIR]: Replace 'amd64bsd-nat.h' with
2574 'x86bsd-nat.h'.
2575 * amd64bsd-nat.c: Include 'x86bsd-nat.h' instead of
2576 'amd64bsd-nat.h'.
2577 (amd64bsd_xsave_len): Rename and move to x86bsd-nat.c.
2578 (amd64bsd_fetch_inferior_registers): Replace 'amd64bsd_xsave_len'
2579 with 'x86bsd_xsave_len'.
2580 (amd64bsd_store_inferior_registers): Likewise.
2581 (amd64bsd_target): Inherit from x86bsd_target.
2582 (amd64bsd_dr_get): Rename and move to x86bsd-nat.c.
2583 (amd64bsd_dr_set): Likewise.
2584 (amd64bsd_dr_set_control): Likewise.
2585 (amd64bsd_dr_set_addr): Likewise.
2586 (amd64bsd_dr_get_addr): Likewise.
2587 (amd64bsd_dr_get_status): Likewise.
2588 (amd64bsd_dr_get_control): Likewise.
2589 * amd64fbsd-nat.c: Include 'x86bsd-nat.h' instead of
2590 'amd64bsd-nat.h'.
2591 (super_mourn_inferior): Move to x86bsd-nat.c.
2592 (amd64fbsd_mourn_inferior): Rename and move to x86bsd-nat.c.
2593 (amd64fbsd_read_description): Replace 'amd64bsd_xsave_len' with
2594 'x86bsd_xsave_len'.
2595 (_initialize_amd64fbsd_nat): Remove x86 watchpoint setup and
2596 mourn_inferior' target op.
2597 * config/i386/fbsd.mh (NATDEPFILES): Add x86bsd-nat.o.
2598 * config/i386/fbsd64.mh: Likewise.
2599 * config/i386/nbsd64.mh: Likewise.
2600 * config/i386/nbsdelf.mh: Likewise.
2601 * config/i386/obsd.mh: Likewise.
2602 * config/i386/obsd64.mh: Likewise.
2603 * i386bsd-nat.c: Include 'x86bsd-nat.h'.
2604 (i386bsd_xsave_len): Rename and move to x86bsd-nat.c.
2605 (i386bsd_fetch_inferior_registers): Replace 'i386bsd_xsave_len'
2606 with 'x86bsd_xsave_len'.
2607 (i386bsd_store_inferior_registers): Likewise.
2608 (i386bsd_target): Inherit from x86bsd_target.
2609 (i386bsd_dr_get): Rename and move to x86bsd-nat.c.
2610 (i386bsd_dr_set): Likewise.
2611 (i386bsd_dr_set_control): Likewise.
2612 (i386bsd_dr_set_addr): Likewise.
2613 (i386bsd_dr_get_addr): Likewise.
2614 (i386bsd_dr_get_status): Likewise.
2615 (i386bsd_dr_get_control): Likewise.
2616 * i386bsd-nat.h (i386bsd_xsave_len): Remove.
2617 (i386bsd_dr_set_control): Remove.
2618 (i386bsd_dr_set_addr): Remove.
2619 (i386bsd_dr_get_addr): Remove.
2620 (i386bsd_dr_get_status): Remove.
2621 (i386bsd_dr_get_control): Remove.
2622 * i386fbsd-nat.c: Include 'x86bsd-nat.h'.
2623 (i386fbsd_read_description): Replace 'i386bsd_xsave_len' with
2624 'x86bsd_xsave_len'.
2625 (_initialize_i386fbsd_nat): Remove x86 watchpoint setup and
2626 mourn_inferior' target op.
2627 * x86bsd-nat.c: New file.
2628 * x86bsd-nat.h: New file.
2629
2630 2016-07-01 Pedro Alves <palves@redhat.com>
2631 Tom Tromey <tom@tromey.com>
2632
2633 * jit.c (jit_reader_load_command): Call reinit_frame_cache and
2634 jit_inferior_created_hook.
2635 (jit_reader_unload_command): Call reinit_frame_cache and
2636 jit_inferior_exit_hook.
2637 * jit.c (struct jit_unwind_private) <registers>: Delete field.
2638 <regcache>: New field.
2639 (jit_unwind_reg_set_impl): Set the register's value in the
2640 regcache. Free the passed-in gdb_reg_value.
2641 (jit_dealloc_cache): Adjust to free the regcache.
2642 (jit_frame_sniffer): Allocate a regcache instead of an array of
2643 gdb_reg_value pointers.
2644 (jit_frame_this_id): Adjust.
2645 (jit_frame_prev_register): Read raw registers off of the regcache
2646 instead of from the gdb_reg_value pointer array. Use
2647 gdbarch_pseudo_register_read_value to read pseudo registers.
2648 * regcache.c (regcache_raw_set_cached_value): New function,
2649 factored out from ...
2650 (regcache_raw_write): ... here.
2651 * regcache.h (regcache_raw_set_cached_value): Declare.
2652
2653 2016-07-01 Pedro Alves <palves@redhat.com>
2654 Antoine Tremblay <antoine.tremblay@ericsson.com>
2655
2656 * inf-ptrace.c (inf_ptrace_detach_success): New function, factored
2657 out from ...
2658 (inf_ptrace_detach): ... here.
2659 * inf-ptrace.h (inf_ptrace_detach_success): New declaration.
2660 * linux-nat.c (get_pending_status): Rename to ...
2661 (get_detach_signal): ... this, and return a host signal instead of
2662 filling in a wait status.
2663 (detach_one_lwp): New function, factored out from detach_callback
2664 and adjusted to handle detaching from a zombie thread.
2665 (detach_callback): Skip the leader thread.
2666 (linux_nat_detach): No longer defer to inf_ptrace_detach to detach
2667 the leader thread, nor build a signal string to pass down.
2668 Instead, use target_announce_detach, detach_one_lwp and
2669 inf_ptrace_detach_success.
2670
2671 2016-07-01 Pedro Alves <palves@redhat.com>
2672
2673 * breakpoint.c (breakpoint_init_inferior): Discard watchpoint
2674 locations.
2675 * infcmd.c (detach_command): Call breakpoint_init_inferior.
2676
2677 2016-07-01 Pedro Alves <palves@redhat.com>
2678
2679 * darwin-nat.c (darwin_detach): Use target_announce_detach.
2680 * inf-ptrace.c (inf_ptrace_detach): Likewise.
2681 * nto-procfs.c (procfs_detach): Likewise.
2682 * remote.c (remote_detach_1): Likewise.
2683 * target.c (target_announce_detach): New function.
2684 * target.h (target_announce_detach): New declaration.
2685
2686 2016-06-29 Tom Tromey <tom@tromey.com>
2687
2688 PR python/20129:
2689 * python/lib/gdb/command/frame_filters.py (_do_enable_frame_filter)
2690 (SetFrameFilterPriority._set_filter_priority): Use "frame_filter",
2691 not "name".
2692
2693 2016-06-29 Tom Tromey <tom@tromey.com>
2694
2695 PR gdb/17210:
2696 * target.c (free_memory_read_result_vector): Take a pointer to the
2697 VEC as an argument.
2698 (read_memory_robust): Install a cleanup for "result".
2699 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Update.
2700
2701 2016-06-29 Manish Goregaokar <manish@mozilla.com>
2702
2703 * rust-lang.c (rust_get_disr_info): Initialize saveptr to NULL.
2704
2705 2016-06-29 Manish Goregaokar <manish@mozilla.com>
2706
2707 * rust-lang.c (rust_get_disr_info): Use strtok_r instead of strsep.
2708
2709 2016-06-28 Yao Qi <yao.qi@linaro.org>
2710
2711 * aarch64-tdep.c (aarch64_displaced_step_b): Use int64_t for
2712 variable new_offset.
2713
2714 2016-06-27 Manish Goregaokar <manish@mozilla.com>
2715
2716 * rust-lang.c (rust_print_type, rust_decorations): Print unit
2717 types as "()".
2718 (rust_print_type): Omit return type for functions returning unit.
2719
2720 2016-06-25 Pierre-Marie de Rodat <derodat@adacore.com>
2721
2722 * python/py-breakpoint.c (bppy_init): Clear bppy_pending_object
2723 when there is an error during the breakpoint creation.
2724
2725 2016-06-25 Tom Tromey <tom@tromey.com>
2726
2727 * rust-lang.c (rust_get_disr_info, rust_print_type): Fix
2728 formatting.
2729
2730 2016-06-25 Manish Goregaokar <manish@mozilla.com>
2731
2732 PR gdb/20239
2733 * rust-lang.c (rust_get_disr_info): Correctly interpret
2734 NonZero-optimized enums of arbitrary depth.
2735 (rust_print_type): Correctly print NonZero-optimized
2736 enums.
2737
2738 2016-06-24 David Taylor <dtaylor@emc.com>
2739
2740 PR gdb/17520 Structure offset wrong when 1/4 GB or greater.
2741 * c-lang.h: Change all parameters, variables, and struct or union
2742 members used as struct or union fie3ld offsets from int to
2743 LONGEST.
2744 * c-valprint.c: Likewise.
2745 * cp-abi.c: Likewise.
2746 * cp-abi.h: Likewise.
2747 * cp-valprint.c: Likewise.
2748 * d-valprint.c: Likewise.
2749 * dwarf2loc.c: Likewise.
2750 * eval.c: Likewise.
2751 * extension-priv.h: Likewise.
2752 * extension.c: Likewise.
2753 * extension.h: Likewise.
2754 * findvar.c: Likewise.
2755 * gdbtypes.h: Likewise.
2756 * gnu-v2-abi.c: Likewise.
2757 * gnu-v3-abi.c: Likewise.
2758 * go-valprint.c: Likewise.
2759 * guile/guile-internal.h: Likewise.
2760 * guile/scm-pretty-print.c: Likewise.
2761 * jv-valprint.c Likewise.
2762 * opencl-lang.c: Likewise.
2763 * p-lang.h: Likewise.
2764 * python/py-prettyprint.c: Likewise.
2765 * python/python-internal.h: Likewise.
2766 * spu-tdep.c: Likewise.
2767 * typeprint.c: Likewise.
2768 * valarith.c: Likewise.
2769 * valops.c: Likewise.
2770 * valprint.c: Likewise.
2771 * valprint.h: Likewise.
2772 * value.c: Likewise.
2773 * value.h: Likewise.
2774 * p-valprint.c: Likewise.
2775 * c-typeprint.c (c_type_print_base): When printing offset, use
2776 plongest, not %d.
2777 * gdbtypes.c (recursive_dump_type): Ditto.
2778
2779 2016-06-24 David Taylor <david.taylor@emc.com>
2780
2781 * MAINTAINERS (Write After Approval): Add David Taylor.
2782
2783 2016-06-24 John Baldwin <jhb@FreeBSD.org>
2784
2785 * configure.ac: Check for support for system call LWP fields on
2786 FreeBSD.
2787 * config.in, configure: Rebuild.
2788 * data-directory/Makefile.in (SYSCALLS_FILES): Add freebsd.xml.
2789 * fbsd-nat.c (fbsd_wait) [HAVE_STRUCT_PTRACE_LWPINFO_PL_SYSCALL_CODE]:
2790 Report system call events.
2791 [HAVE_STRUCT_PTRACE_LWPINFO_PL_SYSCALL_CODE]
2792 (fbsd_set_syscall_catchpoint): New function.
2793 (fbsd_nat_add_target) [HAVE_STRUCT_PTRACE_LWPINFO_PL_SYSCALL_CODE]:
2794 Set "to_set_syscall_catchpoint" to "fbsd_set_syscall_catchpoint".
2795 * fbsd-tdep.c: Include xml-syscall.h
2796 (fbsd_get_syscall_number): New function.
2797 (fbsd_init_abi): Set XML system call file name.
2798 Add "get_syscall_number" gdbarch method.
2799 * syscalls/freebsd.xml: New file.
2800
2801 2016-06-24 John Baldwin <jhb@FreeBSD.org>
2802
2803 * fbsd-tdep.c: Include "auxv.h".
2804 (fbsd_print_auxv_entry): New function.
2805 (fbsd_init_abi): Install gdbarch "print_auxv_entry" method.
2806
2807 2016-06-24 John Baldwin <jhb@FreeBSD.org>
2808
2809 * auxv.c (fprint_auxv_entry): New function.
2810 (default_print_auxv_entry): New function.
2811 (fprint_target_auxv): Use gdbarch_print_auxv_entry.
2812 * auxv.h (enum auxv_format): New enum.
2813 (fprint_auxv_entry): Declare.
2814 (default_print_auxv_entry): Declare.
2815 * gdbarch.sh (print_auxv_entry): New.
2816 * gdbarch.c, gdbarch.h: Re-generated.
2817
2818 2016-06-24 John Baldwin <jhb@FreeBSD.org>
2819
2820 * fbsd-nat.c [KERN_PROC_AUXV] New variable super_xfer_partial.
2821 (fbsd_xfer_partial): New function.
2822 (fbsd_nat_add_target) [KERN_PROC_AUXV] Set "to_xfer_partial" to
2823 "fbsd_xfer_partial".
2824
2825 2016-06-23 Tom Tromey <tom@tromey.com>
2826
2827 * symtab.c (symbol_find_demangled_name): Loop over languages and
2828 use language_sniff_from_mangled_name.
2829 * rust-lang.c (rust_sniff_from_mangled_name): New function.
2830 (rust_language_defn): Update.
2831 * p-lang.c (pascal_language_defn): Update.
2832 * opencl-lang.c (opencl_language_defn): Update.
2833 * objc-lang.c (objc_sniff_from_mangled_name): New function.
2834 (objc_language_defn): Update.
2835 * m2-lang.c (m2_language_defn): Update.
2836 * language.h (struct language_defn) <la_sniff_from_mangled_name>: New
2837 field.
2838 (language_sniff_from_mangled_name): Declare.
2839 * language.c (language_sniff_from_mangled_name): New function.
2840 (unknown_language_defn, auto_language_defn, local_language_defn):
2841 Update.
2842 * jv-lang.c (java_sniff_from_mangled_name): New function.
2843 (java_language_defn): Use it.
2844 * go-lang.c (go_sniff_from_mangled_name): New function.
2845 (go_language_defn): Use it.
2846 * f-lang.c (f_language_defn): Update.
2847 * defs.h (enum language): Reorder.
2848 * d-lang.c (d_sniff_from_mangled_name): New function.
2849 (d_language_defn): Use it.
2850 * cp-support.h (gdb_sniff_from_mangled_name): Declare.
2851 * cp-support.c (gdb_sniff_from_mangled_name): New function.
2852 * c-lang.c (c_language_defn, cplus_language_defn)
2853 (asm_language_defn, minimal_language_defn): Update.
2854 * ada-lang.c (ada_sniff_from_mangled_name): New function.
2855 (ada_language_defn): Use it.
2856
2857 2016-06-23 Tom Tromey <tom@tromey.com>
2858
2859 * ada-lang.c (ada_extensions): New array.
2860 (ada_language_defn): Use it.
2861 * c-lang.c (c_extensions): New array.
2862 (c_language_defn): Use it.
2863 (cplus_extensions): New array.
2864 (cplus_language_defn): Use it.
2865 (asm_extensions): New array.
2866 (asm_language_defn): Use it.
2867 (minimal_language_defn): Update.
2868 * d-lang.c (d_extensions): New array.
2869 (d_language_defn): Use it.
2870 * f-lang.c (f_extensions): New array.
2871 (f_language_defn): Use it.
2872 * go-lang.c (go_language_defn): Update.
2873 * jv-lang.c (java_extensions): New array.
2874 (java_language_defn): Use it.
2875 * language.c (add_language): Call add_filename_language.
2876 (unknown_language_defn, auto_language_defn, local_language_defn):
2877 Update.
2878 * language.h (struct language_defn) <la_filename_extensions>: New
2879 field.
2880 * m2-lang.c (m2_language_defn): Update.
2881 * objc-lang.c (objc_extensions): New array.
2882 (objc_language_defn): Use it.
2883 * opencl-lang.c (opencl_language_defn): Update.
2884 * p-lang.c (p_extensions): New array.
2885 (pascal_language_defn): Use it.
2886 * rust-lang.c (rust_extensions): New array.
2887 (rust_language_defn): Use it.
2888 * symfile.c (add_filename_language): No longer static. Make "ext"
2889 const.
2890 (init_filename_language_table): Remove.
2891 (_initialize_symfile): Update.
2892 * symfile.h (add_filename_language): Declare.
2893
2894 2016-06-23 Tom Tromey <tom@tromey.com>
2895
2896 * symfile.c (filename_language_table): Now a VEC.
2897 (fl_table_size, fl_table_next): Remove.
2898 (add_filename_language): Use VEC_safe_push.
2899 (set_ext_lang_command, info_ext_lang_command)
2900 (deduce_language_from_filename): Use VEC_iterate.
2901 (init_filename_language_table): Use VEC_empty.
2902
2903 2016-06-23 Tom Tromey <tom@tromey.com>
2904
2905 * python/python.c (gdbpy_parameter): Now static.
2906 * python/python-internal.h (gdbpy_parameter): Don't declare.
2907
2908 2016-06-23 Tom Tromey <tom@tromey.com>
2909
2910 PR gdb/16483:
2911 * python/lib/gdb/command/frame_filters.py
2912 (InfoFrameFilter.list_frame_filters): Rename to print_list. Print
2913 nothing if no filters found. Return value indicating whether
2914 filters were printed.
2915 (InfoFrameFilter.print_list): Remove.
2916 (InfoFrameFilter.invoke): Print message if no frame filters
2917 found.
2918
2919 2016-06-21 Walfred Tedeschi <walfred.tedeschi@intel.com>
2920
2921 * f-valprint.c (f_val_print): Add field names for printing
2922 derived types fields.
2923
2924 2016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2925
2926 * s390-linux-tdep.c (s390_iterate_over_regset_sections): Fix typo
2927 in name of last-break regset.
2928
2929 2016-06-21 Pedro Alves <palves@redhat.com>
2930
2931 * fork-child.c (fork_inferior): Switch the child to the main UI
2932 right after vfork. Save/restore the current UI in the parent.
2933 Flush outputs of the main UI instead of the current UI.
2934
2935 2016-06-21 Pedro Alves <palves@redhat.com>
2936
2937 * breakpoint.c (watchpoint_check): Send watchpoint-deleted output
2938 to all UIs.
2939
2940 2016-06-21 Pedro Alves <palves@redhat.com>
2941
2942 * NEWS: Mention support for running interpreters on separate
2943 UIs and the new new-ui command.
2944
2945 2016-06-21 Pedro Alves <palves@redhat.com>
2946
2947 * interps.c (set_top_level_interpreter): New function, factored
2948 out from captured_main.
2949 (interpreter_completer): Make extern.
2950 * interps.h (set_top_level_interpreter, interpreter_completer):
2951 New declarations.
2952 (captured_main): Use set_top_level_interpreter.
2953 * top.c [!O_NOCTTY] (O_NOCTTY): Define as 0.
2954 (open_terminal_stream, new_ui_command): New functions.
2955 (init_main): Install the "new-ui" command.
2956
2957 2016-06-21 Pedro Alves <palves@redhat.com>
2958
2959 * cli/cli-script.c (read_next_line): Adjust to per-UI stdin.
2960 (read_command_lines): Use input_interactive_p instead of
2961 input_from_terminal_p.
2962 * defs.h (struct ui): Forward declare.
2963 (input_from_terminal_p): Rename to ...
2964 (input_interactive_p): ... this.
2965 * event-top.c (stdin_event_handler): Pass 0 as from_tty argument
2966 to quit_command.
2967 (command_handler): Adjust to per-UI stdin.
2968 (handle_line_of_input): Adjust to per-UI stdin and use
2969 input_interactive_p instead of ISATTY and input_from_terminal_p.
2970 (gdb_readline_no_editing_callback): Adjust to per-UI stdin.
2971 (command_line_handler): Always pass true as "from_tty" parameter
2972 of handle_line_of_input and execute_command.
2973 (async_sigterm_handler): Pass 0 as from_tty argument to
2974 quit_command.
2975 * inflow.c (interactive_mode, show_interactive_mode): Moved to ...
2976 (gdb_has_a_terminal): Don't check interactive_mode here.
2977 (_initialize_inflow): Don't install "set interactive-mode" here.
2978 * main.c (captured_command_loop): Adjust to per-UI stdin.
2979 * mi/mi-interp.c (mi_execute_command_wrapper): Adjust to per-UI
2980 stdin.
2981 * top.c (new_ui): Save the stdin stream and whether it's a tty.
2982 (dont_repeat): Adjust to per-UI stdin.
2983 (command_line_input): Adjust to per-UI stdin and to use
2984 input_interactive_p.
2985 (quit_force): Write history if any UI supports interactive input.
2986 (interactive_mode, show_interactive_mode): Move here, from
2987 inflow.c.
2988 (input_from_terminal_p): Rename to ...
2989 (input_interactive_p): ... this, and check the "interactive_mode"
2990 global instead of calling gdb_has_a_terminal.
2991 (_initialize_top): Install "set interactive-mode" here.
2992 * top.h (struct ui) <stdin_stream, input_interactive_p>: New
2993 fields.
2994 * utils.c (quit): Pass 0 as from_tty argument to quit_force.
2995 (defaulted_query): Adjust to per-UI stdin and to use
2996 input_interactive_p.
2997
2998 2016-06-21 Pedro Alves <palves@redhat.com>
2999
3000 * event-top.c (stdin_event_handler): Don't quit gdb if it was a
3001 secondary UI's input stream that closed. Instead, just delete the
3002 UI.
3003
3004 2016-06-21 Pedro Alves <palves@redhat.com>
3005
3006 * event-top.c (main_ui_): Delete.
3007 (main_ui, current_ui, ui_list): No longer initialize here.
3008 * main.c (captured_main): UI initialization code factored out to
3009 new new_ui function.
3010 (gdb_main): Wrap captured_main with TRY/CATCH instead of
3011 catch_errors.
3012 * top.c (highest_ui_num): New global.
3013 (new_ui): New function.
3014 * top.h (struct ui) <num>: New field.
3015 (new_ui): New declaration.
3016
3017 2016-06-21 Pedro Alves <palves@redhat.com>
3018
3019 * cli/cli-interp.c (cli_on_normal_stop): Bail out early if there's
3020 nothing to print. Use should_print_stop_to_console.
3021 * tui/tui-interp.c (tui_on_normal_stop): Likewise.
3022
3023 2016-06-21 Pedro Alves <palves@redhat.com>
3024
3025 * breakpoint.c (new_until_break_fsm): Add 'cmd_interp' parameter.
3026 (until_break_fsm_should_stop, until_break_fsm_clean_up): Add
3027 thread parameter.
3028 (until_break_command): Pass command interpreter to thread fsm
3029 ctor.
3030 * cli/cli-interp.c (should_print_stop_to_console): Adjust.
3031 * gdbthread.h (struct thread_control_state) <command_interp>:
3032 Delete field.
3033 * infcall.c (new_call_thread_fsm): Add 'cmd_interp' parameter.
3034 Pass it down.
3035 (call_thread_fsm_should_stop): Add thread parameter.
3036 (call_function_by_hand_dummy): Pass command interpreter to thread
3037 fsm ctor. Pass thread pointer to fsm clean up method.
3038 * infcmd.c: Include interps.h.
3039 (struct step_command_fsm) <thread>: Delete field.
3040 (new_step_command_fsm): Add 'cmd_interp' parameter. Pass it down.
3041 (step_command_fsm_prepare): Remove references to fsm's thread
3042 field.
3043 (step_1): Pass command interpreter to thread
3044 fsm ctor. Pass thread pointer to fsm clean up method.
3045 (step_command_fsm_should_stop, step_command_fsm_clean_up): Add
3046 thread parameter and use it.
3047 (new_until_next_fsm): Add 'cmd_interp' parameter. Pass it down.
3048 (until_next_fsm_should_stop, until_next_fsm_clean_up): Add thread
3049 parameter and use it.
3050 (until_next_command): Pass command interpreter to thread fsm ctor.
3051 (struct finish_command_fsm) <thread>: Delete field.
3052 (finish_command_fsm_ops): Add NULL slot for should_notify_stop.
3053 (new_finish_command_fsm): Add 'cmd_interp' parameter and pass it
3054 down. Remove thread parameter and adjust.
3055 (finish_command_fsm_should_stop, finish_command_fsm_clean_up): Add
3056 thread parameter and use it.
3057 (finish_command): Pass command interpreter to thread fsm ctor.
3058 Don't pass thread.
3059 * infrun.c (follow_fork): Move thread fsm to child fork instead of
3060 command interpreter, only.
3061 (clear_proceed_status_thread): Remove reference to command_interp.
3062 (proceed): Don't record the thread's command interpreter.
3063 (clean_up_just_stopped_threads_fsms): Pass thread to fsm clean_up
3064 method.
3065 (fetch_inferior_event): Pass thread to fsm should_stop method.
3066 * thread-fsm.c (thread_fsm_ctor): Add 'cmd_interp' parameter.
3067 Store it.
3068 (thread_fsm_clean_up, thread_fsm_should_stop): Add thread
3069 parameter and pass it down.
3070 * thread-fsm.h (struct thread_fsm) <command_interp>: New field.
3071 (struct thread_fsm_ops) <clean_up, should_stop>: Add thread
3072 parameter.
3073 (thread_fsm_ctor): Add 'cmd_interp' parameter.
3074 (thread_fsm_clean_up, thread_fsm_should_stop): Add thread
3075 parameter.
3076 * thread.c (thread_cancel_execution_command): Pass thread to
3077 thread fsm clean_up method.
3078
3079 2016-06-21 Pedro Alves <palves@redhat.com>
3080
3081 * cli/cli-interp.c: Include gdbthread.h and thread-fsm.h.
3082 (should_print_stop_to_console): New function, factored out from
3083 mi_on_normal_stop_1.
3084 * cli/cli-interp.h (should_print_stop_to_console): Declare.
3085 * mi/mi-interp.c (mi_on_normal_stop_1): Use
3086 should_print_stop_to_console. Pass it the current UI's console
3087 interpreter.
3088 * mi/mi-main.c (captured_mi_execute_command): Use the
3089 INTERP_CONSOLE symbol rather than explicit "console".
3090
3091 2016-06-21 Pedro Alves <palves@redhat.com>
3092
3093 * infcmd.c (prepare_execution_command): Use
3094 all_uis_on_sync_execution_starting.
3095 * infrun.c (all_uis_on_sync_execution_starting): New function.
3096 * infrun.h (all_uis_on_sync_execution_starting): Declare.
3097
3098 2016-06-21 Pedro Alves <palves@redhat.com>
3099
3100 * annotate.c: Include top.h.
3101 (async_background_execution_p): Delete.
3102 (print_value_flags): Check the UI's prompt state rather then
3103 async_background_execution_p.
3104 * event-loop.c (start_event_loop): Set the prompt state to
3105 PROMPT_NEEDED.
3106 * event-top.c (display_gdb_prompt, async_enable_stdin)
3107 (async_disable_stdin): Check the current UI's prompt state instead
3108 of the sync_execution global.
3109 (command_line_handler): Set the prompt state to PROMPT_NEEDED
3110 before running a command, and display the prompt if still needed
3111 afterwards.
3112 * infcall.c (struct call_thread_fsm) <waiting_ui>: New field.
3113 (new_call_thread_fsm): New parameter 'waiting_ui'. Store it.
3114 (call_thread_fsm_should_stop): Set the prompt state to
3115 PROMPT_NEEDED.
3116 (run_inferior_call): Adjust to temporarily set the prompt state to
3117 PROMPT_BLOCKED instead of using the sync_execution global.
3118 (call_function_by_hand_dummy): Pass the current UI to
3119 new_call_thread_fsm.
3120 * infcmd.c: Include top.h.
3121 (continue_1): Check the current UI's prompt state instead of the
3122 sync_execution global.
3123 (continue_command): Validate global execution state before calling
3124 prepare_execution_command.
3125 (step_1): Call all_uis_check_sync_execution_done.
3126 (attach_post_wait): Don't call async_enable_stdin here. Remove
3127 reference to sync_execution.
3128 * infrun.c (sync_execution): Delete global.
3129 (follow_fork_inferior)
3130 (reinstall_readline_callback_handler_cleanup): Check the current
3131 UI's prompt state instead of the sync_execution global.
3132 (check_curr_ui_sync_execution_done)
3133 (all_uis_check_sync_execution_done): New functions.
3134 (fetch_inferior_event): Call all_uis_check_sync_execution_done
3135 instead of trying to determine whether the global sync execution
3136 changed.
3137 (handle_no_resumed): Check the prompt state of all UIs.
3138 (normal_stop): Emit the no unwait-for even to all PROMPT_BLOCKED
3139 UIs. Emit the "Switching to" notification to all UIs. Enable
3140 stdin in all UIs.
3141 * infrun.h (sync_execution): Delete.
3142 (all_uis_check_sync_execution_done): Declare.
3143 * main.c (captured_command_loop): Don't call
3144 interp_pre_command_loop if the prompt is blocked.
3145 (catch_command_errors, catch_command_errors_const): Adjust.
3146 (captured_main): Set the initial prompt state to PROMPT_NEEDED.
3147 * mi/mi-interp.c (display_mi_prompt): Set the prompt state to
3148 PROMPTED.
3149 (mi_interpreter_resume): Don't clear sync_execution. Remove hack
3150 comment.
3151 (mi_execute_command_input_handler): Set the prompt state to
3152 PROMPT_NEEDED before executing the command, and only display the
3153 prompt if the prompt state is PROMPT_NEEDED afterwards.
3154 (mi_on_resume_1): Adjust to check the prompt state.
3155 * target.c (target_terminal_inferior): Adjust to check the prompt
3156 state.
3157 * top.c (wait_sync_command_done, maybe_wait_sync_command_done)
3158 (execute_command): Check the current UI's prompt state instead of
3159 sync_execution.
3160 * top.h (enum prompt_state): New.
3161 (struct ui) <prompt_state>: New field.
3162 (ALL_UIS): New macro.
3163
3164 2016-06-21 Pedro Alves <palves@redhat.com>
3165
3166 * top.c (gdb_secondary_prompt_depth): Delete.
3167 (gdb_in_secondary_prompt_p): Add ui parameter. Use it.
3168 (gdb_readline_wrapper_cleanup, gdb_readline_wrapper): Adjust to
3169 per-UI gdb_secondary_prompt_depth.
3170 * top.h (struct ui) <secondary_prompt_depth>: New field.
3171
3172 2016-06-21 Pedro Alves <palves@redhat.com>
3173
3174 * cli/cli-interp.c (cli_interpreter_pre_command_loop): New
3175 function.
3176 (cli_interp_procs): Install it instead of cli_command_loop.
3177 * cli/cli-interp.h (cli_interpreter_pre_command_loop): Declare.
3178 * event-top.c (cli_command_loop): Delete.
3179 * interps.c (interp_new): Remove reference to command_loop_proc.
3180 (current_interp_command_loop): Delete.
3181 (interp_pre_command_loop): New function.
3182 (interp_command_loop_ftype): Delete.
3183 * interps.h (interp_pre_command_loop_ftype): New typedef.
3184 (struct interp_procs) <command_loop_proc>: Delele field.
3185 <pre_command_loop_proc>: New field.
3186 (current_interp_command_loop): Delete declaration.
3187 (interp_pre_command_loop): New declaration.
3188 * main.c (captured_command_loop): Call interp_pre_command_loop
3189 instead of current_interp_command_loop and start an event loop.
3190 * mi/mi-interp.c (mi_command_loop): Delete.
3191 (mi_interpreter_pre_command_loop): New.
3192 (mi_interp_procs): Update.
3193 * tui/tui-interp.c (tui_interp_procs): Install
3194 cli_interpreter_pre_command_loop instead of cli_command_loop.
3195
3196 2016-06-21 Pedro Alves <palves@redhat.com>
3197
3198 * interps.c (current_interpreter): New function.
3199 * interps.h (current_interpreter): New declaration.
3200 * mi/mi-cmds.h (raw_stdout): Delete declaration.
3201 * mi/mi-common.h (struct mi_interp) <raw_stdout,
3202 saved_raw_stdout>: New field.
3203 * mi/mi-interp.c (display_mi_prompt): New parameter 'mi'. Adjust
3204 to per-UI raw_stdout.
3205 (mi_interpreter_init): Adjust to per-UI raw_stdout.
3206 (mi_on_sync_execution_done, mi_execute_command_input_handler)
3207 (mi_command_loop): Pass MI instance to display_mi_prompt.
3208 (mi_on_normal_stop_1, mi_output_running_pid, mi_on_resume_1)
3209 (mi_on_resume): Adjust to per-UI raw_stdout.
3210 (saved_raw_stdout): Delete.
3211 (mi_set_logging): Adjust to per-UI raw_stdout and
3212 saved_raw_stdout.
3213 * mi/mi-main.c (raw_stdout): Delete.
3214 (mi_cmd_gdb_exit, captured_mi_execute_command)
3215 (mi_print_exception, mi_load_progress): Adjust to per-UI
3216 raw_stdout.
3217 (print_diff_now, mi_print_timing_maybe): New ui_file parameter.
3218 Pass it along.
3219 (print_diff): New ui_file parameter. Send output there instead of
3220 raw_stdout.
3221 * mi/mi-main.h (struct ui_file): Forward declare.
3222 (mi_print_timing_maybe): Add ui_file parameter.
3223
3224 2016-06-21 Pedro Alves <palves@redhat.com>
3225
3226 * mi/mi-interp.c (display_mi_prompt): New function.
3227
3228 2016-06-21 Pedro Alves <palves@redhat.com>
3229
3230 * target.c (target_terminal_inferior): Bail out after
3231 unregistering input_fd if not on the main UI.
3232 (target_terminal_ours): Bail out after registering input_fd if not
3233 on the main UI.
3234 (target_terminal_ours_for_output): Bail out if not on the main UI.
3235
3236 2016-06-21 Pedro Alves <palves@redhat.com>
3237
3238 * event-top.c (restore_ui_cleanup): Make extern.
3239 * infrun.c (fetch_inferior_event): Always switch to the main UI.
3240 * top.h (restore_ui_cleanup): Declare.
3241
3242 2016-06-21 Pedro Alves <palves@redhat.com>
3243
3244 PR mi/20034
3245 * cli/cli-interp.c: Include cli-interp.h and event-top.h.
3246 (cli_interpreter_resume): Pass 1 to gdb_setup_readline. Set the
3247 UI's input_handler here.
3248 (cli_interpreter_supports_command_editing): New function.
3249 (cli_interp_procs): Install it.
3250 * cli/cli-interp.h: New file.
3251 * event-top.c (async_command_editing_p): Rename to ...
3252 (set_editing_cmd_var): ... this.
3253 (change_line_handler): Add parameter 'editing', and use it. Bail
3254 early if the interpreter doesn't support editing. Don't touch
3255 readline state if editing is off.
3256 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
3257 (gdb_rl_callback_handler_reinstall): Assert the current UI is the
3258 main UI.
3259 (display_gdb_prompt): Don't call gdb_rl_callback_handler_remove if
3260 not using readline. Check whether the current UI is using command
3261 editing instead of checking the async_command_editing_p global.
3262 (set_async_editing_command): Delete.
3263 (gdb_setup_readline): Add 'editing' parameter. Only allow editing
3264 on the main UI. Don't touch readline state if editing is off.
3265 (gdb_disable_readline): Don't touch readline state if editing is
3266 off.
3267 * event-top.h (gdb_setup_readline): Add 'int' parameter.
3268 (set_async_editing_command): Delete declaration.
3269 (change_line_handler, command_line_handler): Declare.
3270 (async_command_editing_p): Rename to ...
3271 (set_editing_cmd_var): ... this.
3272 * infrun.c (reinstall_readline_callback_handler_cleanup): Check
3273 whether the current UI has editing enabled rather than checking
3274 the async_command_editing_p global.
3275 * interps.c (interp_supports_command_editing): New function.
3276 * interps.h (interp_supports_command_editing_ftype): New typedef.
3277 (struct interp_procs) <supports_command_editing_proc>: New field.
3278 (interp_supports_command_editing): Declare.
3279 * mi/mi-interp.c (mi_interpreter_resume): Pass 0 to
3280 gdb_setup_readline. Don't clear the async_command_editing_p
3281 global. Update comments.
3282 * top.c (gdb_readline_wrapper_line, gdb_readline_wrapper): Check
3283 whether the current UI has editing enabled rather than checking
3284 the async_command_editing_p global. Don't touch readline state if
3285 editing is off.
3286 (undo_terminal_modifications_before_exit): Switch to the main UI.
3287 Unconditionally call gdb_disable_readline.
3288 (set_editing): New function.
3289 (show_async_command_editing_p): Rename to ...
3290 (show_editing): ... this. Show the state of the current UI.
3291 (_initialize_top): Adjust.
3292 * top.h (struct ui) <command_editing>: New field.
3293 * tui/tui-interp.c: Include cli/cli-interp.h.
3294 (tui_resume): Pass 1 to gdb_setup_readline. Set the UI's
3295 input_handler.
3296 (tui_interp_procs): Install
3297 cli_interpreter_supports_command_editing.
3298 * tui/tui-io.c (tui_getc): Check whether the current UI has
3299 editing enabled rather than checking the async_command_editing_p
3300 global.
3301
3302 2016-06-21 Pedro Alves <palves@redhat.com>
3303
3304 * top.c: Call gen_ret_current_ui_field_ptr for current_uiout.
3305 * top.h (struct ui) <m_current_uiout>: New field.
3306 * ui-out.c (current_uiout): Delete.
3307 * ui-out.h (current_uiout): Delete.
3308 (current_ui_current_uiout_ptr): New declaration.
3309 (current_uiout): Reimplement as wrapper around
3310 current_ui_current_uiout_ptr.
3311
3312 2016-06-21 Pedro Alves <palves@redhat.com>
3313
3314 * ui-out.c (default_ui_out_impl): Delete.
3315 (def_uiout): Delete.
3316 (current_uiout): Set to NULL.
3317 (default_table_begin, default_table_body, default_table_end)
3318 (default_table_header, default_begin, default_end)
3319 (default_field_int, default_field_skip, default_field_string)
3320 (default_field_fmt, default_spaces, default_text, default_message)
3321 (default_wrap_hint, default_flush, default_data_destroy): Delete.
3322
3323 2016-06-21 Pedro Alves <palves@redhat.com>
3324
3325 * event-top.c (gdb_setup_readline): Pass the UI's outstream and
3326 errstream to stdout_fileopen and stderr_fileopen.
3327 * exceptions.c: Include top.h.
3328 (print_flush): Open the current UI's outstream file descriptor,
3329 instead of hardcoding file descriptor 1.
3330 * main.c (captured_main): Save the main UI's out and error
3331 streams. Adjust stderr_fileopen call.
3332 * top.h (struct ui) <outstream, errstream>: New fields.
3333 * ui-file.c (stderr_fileopen): Add stream parameter. Use it
3334 instead of stderr.
3335 * ui-file.h (stderr_fileopen): Add stream parameter and update
3336 comment.
3337
3338 2016-06-21 Pedro Alves <palves@redhat.com>
3339
3340 * event-top.c (input_fd): Delete.
3341 (stdin_event_handler): Switch to the UI whose input descriptor got
3342 the event. Adjust to per-UI input_fd.
3343 (gdb_setup_readline): Don't set the input_fd global. Adjust to
3344 per-UI input_fd.
3345 (gdb_disable_readline): Adjust to per-UI input_fd.
3346 * event-top.h (input_fd): Delete declaration.
3347 * linux-nat.c (linux_nat_terminal_inferior): Don't remove input_fd
3348 from the event-loop here.
3349 (linux_nat_terminal_ours): Don't register input_fd in the
3350 event-loop here.
3351 * main.c (captured_main): Adjust to per-UI input_fd.
3352 * remote.c (remote_terminal_inferior): Don't remove input_fd from
3353 the event-loop here.
3354 (remote_terminal_ours): Don't register input_fd in the event-loop
3355 here.
3356 * target.c: Include top.h and event-top.h.
3357 (target_terminal_inferior): Remove input_fd from the event-loop
3358 here.
3359 (target_terminal_ours): Register input_fd in the event-loop.
3360 * top.h (struct ui) <input_fd>: New field.
3361
3362 2016-06-21 Pedro Alves <palves@redhat.com>
3363
3364 * cli/cli-script.c (execute_user_command, read_next_line)
3365 (read_next_line): Adjust to per-UI instream.
3366 * event-top.c (stdin_event_handler, command_handler)
3367 (handle_line_of_input, command_line_handler)
3368 (gdb_readline_no_editing_callback, async_sigterm_handler)
3369 (gdb_setup_readline): Likewise.
3370 * inflow.c: Include top.h.
3371 (gdb_has_a_terminal, child_terminal_init_with_pgrp)
3372 (gdb_save_tty_state, child_terminal_inferior)
3373 (child_terminal_ours_1, copy_terminal_info): Use the main UI.
3374 (initialize_stdin_serial): Adjust to per-UI instream.
3375 * main.c (captured_command_loop, captured_main): Adjust to per-UI
3376 instream.
3377 * mi/mi-interp.c (mi_execute_command_wrapper): Likewise.
3378 * python/python.c (python_interactive_command): Likewise.
3379 * terminal.h (struct ui): Forward declare.
3380 (initialize_stdin_serial): Add struct ui parameter.
3381 * top.c (instream): Delete.
3382 (do_restore_instream_cleanup, read_command_file, dont_repeat)
3383 (gdb_readline_no_editing, command_line_input)
3384 (input_from_terminal_p, gdb_init): Adjust to per-UI instream.
3385 * top.h (struct ui) <instream>: New field.
3386 (instream): Delete declaration.
3387 (quit): Adjust to per-UI instream.
3388
3389 2016-06-21 Pedro Alves <palves@redhat.com>
3390
3391 * event-loop.c: Include top.h.
3392 (invoke_async_signal_handlers): Switch to the main UI.
3393 * event-top.c (main_ui_): Update comment.
3394 (main_ui): New global.
3395 * top.h (main_ui): Declare.
3396
3397 2016-06-21 Pedro Alves <palves@redhat.com>
3398
3399 * cli/cli-interp.c (cli_interp): Delete.
3400 (as_cli_interp): New function.
3401 (cli_on_normal_stop, cli_on_signal_received)
3402 (cli_on_end_stepping_range, cli_on_signal_exited, cli_on_exited)
3403 (cli_on_no_history): Send output to all CLI UIs.
3404 (cli_on_sync_execution_done, cli_on_command_error): Skip output if
3405 the top level interpreter is not a CLI.
3406 (cli_interpreter_init): Don't set cli_interp or install observers
3407 here.
3408 (_initialize_cli_interp): Install observers here.
3409 * event-top.c (main_ui_, ui_list): New globals.
3410 (current_ui): Point to main_ui_.
3411 (restore_ui_cleanup, switch_thru_all_uis_init)
3412 (switch_thru_all_uis_cond, switch_thru_all_uis_next): New
3413 functions.
3414 * mi/mi-interp.c (as_mi_interp): New function.
3415 (mi_interpreter_init): Don't install observers here.
3416 (mi_on_sync_execution_done): Skip output if the top level
3417 interpreter is not a MI.
3418 (mi_new_thread, mi_thread_exit, mi_record_changed)
3419 (mi_inferior_added, mi_inferior_appeared, mi_inferior_exit)
3420 (mi_inferior_removed): Send output to all MI UIs.
3421 (find_mi_interpreter, mi_interp_data): Delete.
3422 (find_mi_interp): New function.
3423 (mi_on_signal_received, mi_on_end_stepping_range)
3424 (mi_on_signal_exited, mi_on_exited, mi_on_no_history): Send output
3425 to all MI UIs.
3426 (mi_on_normal_stop): Rename to ...
3427 (mi_on_normal_stop_1): ... this.
3428 (mi_on_normal_stop): Reimplement, sending output to all MI UIs.
3429 (mi_traceframe_changed, mi_tsv_created, mi_tsv_deleted)
3430 (mi_tsv_modified, mi_breakpoint_created, mi_breakpoint_deleted)
3431 (mi_breakpoint_modified, mi_output_running_pid): Send output to
3432 all MI UIs.
3433 (mi_on_resume): Rename to ...
3434 (mi_on_resume_1): ... this. Don't handle infcalls here.
3435 (mi_on_resume): Reimplement, sending output to all MI UIs.
3436 (mi_solib_loaded, mi_solib_unloaded, mi_command_param_changed)
3437 (mi_memory_changed): Send output to all MI UIs.
3438 (report_initial_inferior): Install observers here.
3439 * top.h (struct ui) <next>: New field.
3440 (ui_list): Declare.
3441 (struct switch_thru_all_uis): New.
3442 (switch_thru_all_uis_init, switch_thru_all_uis_cond)
3443 (switch_thru_all_uis_next): Declare.
3444 (SWITCH_THRU_ALL_UIS): New macro.
3445 * tui/tui-interp.c (tui_interp): Delete global.
3446 (as_tui_interp): New function.
3447 (tui_on_normal_stop, tui_on_signal_received)
3448 (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited)
3449 (tui_on_no_history): Send output to all TUI UIs.
3450 (tui_on_sync_execution_done, tui_on_command_error): Skip output if
3451 the top level interpreter is not a TUI.
3452 (tui_init): Don't set tui_interp or install observers here.
3453 (_initialize_tui_interp): Install observers here.
3454
3455 2016-06-21 Pedro Alves <palves@redhat.com>
3456
3457 * cli/cli-interp.c (cli_uiout): Delete, moved into ...
3458 (struct cli_interp): ... this new structure.
3459 (cli_on_normal_stop, cli_on_signal_received)
3460 (cli_on_end_stepping_range, cli_on_signal_exited, cli_on_exited)
3461 (cli_on_no_history): Use interp_ui_out.
3462 (cli_interpreter_init): If top level, set the cli_interp global.
3463 (cli_interpreter_init): Return the interp's data instead of NULL.
3464 (cli_interpreter_resume, cli_interpreter_exec, cli_ui_out): Adjust
3465 to cli_uiout being in the interpreter's data.
3466 (cli_interp_procs): New, factored out from _initialize_cli_interp.
3467 (cli_interp_factory): New function.
3468 (_initialize_cli_interp): Call interp_factory_register.
3469 * interps.c (get_interp_info): New, factored out from ...
3470 (get_current_interp_info): ... this.
3471 (interp_new): Add parameter 'data'. Store it.
3472 (struct interp_factory): New function.
3473 (interp_factory_p): New typedef. Define a VEC_P.
3474 (interpreter_factories): New global.
3475 (interp_factory_register): New function.
3476 (interp_add): Add 'ui' parameter. Use get_interp_info and
3477 interp_lookup_existing.
3478 (interp_lookup): Rename to ...
3479 (interp_lookup_existing): ... this. Add 'ui' parameter. Don't
3480 check for NULL or empty name here.
3481 (interp_lookup): Add 'ui' parameter and reimplement.
3482 (interp_set_temp, interpreter_exec_cmd): Adjust.
3483 (interpreter_completer): Complete on registered interpreter
3484 factories instead of interpreters.
3485 * interps.h (interp_factory_func): New typedef.
3486 (interp_factory_register): Declare.
3487 (interp_new, interp_add): Adjust.
3488 (interp_lookup): Declare.
3489 * main.c (captured_main): Adjust.
3490 * mi/mi-interp.c (mi_cmd_interpreter_exec): Adjust.
3491 (mi_interp_procs): New, factored out from
3492 _initialize_mi_interp.
3493 (mi_interp_factory): New function.
3494 * python/python.c (execute_gdb_command): Adjust.
3495 * tui/tui-interp.c (tui_init): If top level, set the tui_interp
3496 global.
3497 (tui_interp_procs): New.
3498 (tui_interp_factory): New function.
3499 (_initialize_tui_interp): Call interp_factory_register.
3500
3501 2016-06-21 Pedro Alves <palves@redhat.com>
3502
3503 * breakpoint.c (bpstat_do_actions_1): Access the current UI's
3504 async field instead of the interpreter_async global.
3505 * cli/cli-script.c (execute_user_command, while_command)
3506 (if_command, script_from_file): Likewise.
3507 * compile/compile.c: Include top.h instead of interps.h.
3508 (compile_file_command, compile_code_command)
3509 (compile_print_command): Access the current UI's async field
3510 instead of the interpreter_async global.
3511 * guile/guile.c: Include top.h instead of interps.h.
3512 (guile_repl_command, guile_command, gdbscm_execute_gdb_command):
3513 Access the current UI's async field instead of the
3514 interpreter_async global.
3515 * guile/scm-ports.c: Include top.h instead of interps.h.
3516 (ioscm_with_output_to_port_worker): Access the current UI's async
3517 field instead of the interpreter_async global.
3518 * inf-loop.c (inferior_event_handler): Likewise.
3519 * infcall.c (run_inferior_call): Likewise.
3520 * infrun.c (reinstall_readline_callback_handler_cleanup)
3521 (fetch_inferior_event): Likewise.
3522 * interps.c (interpreter_async): Delete.
3523 (struct ui_interp_info): New.
3524 (get_current_interp_info): New function.
3525 (interp_list, current_interpreter, top_level_interpreter_ptr):
3526 Delete.
3527 (interp_add, interp_set, interp_lookup, interp_ui_out)
3528 (current_interp_set_logging, interp_set_temp)
3529 (current_interp_named_p): Adjust to per-UI interpreters.
3530 (command_interpreter): Delete.
3531 (command_interp, current_interp_command_loop, interp_quiet_p)
3532 (interp_exec, interpreter_exec_cmd, interpreter_completer)
3533 (top_level_interpreter, top_level_interpreter_data): Adjust to
3534 per-UI interpreters.
3535 * interps.h (interpreter_async): Delete.
3536 * main.c (captured_command_loop): Access the current UI's async
3537 field instead of the interpreter_async global.
3538 * python/python.c (python_interactive_command, python_command)
3539 (execute_gdb_command): Likewise.
3540 * top.c (maybe_wait_sync_command_done, execute_command_to_string):
3541 Access the current UI's async field instead of the
3542 interpreter_async global.
3543 * top.h (struct tl_interp_info): Forward declare.
3544 (struct ui) <interp_info, async>: New fields.
3545
3546 2016-06-21 Pedro Alves <palves@redhat.com>
3547
3548 * main.c (gdb_stdout, gdb_stderr, gdb_stdlog, gdb_stdin): Delete
3549 globals.
3550 (gen_ret_current_ui_field_ptr): New macro. Use it to generate
3551 wrappers for gdb_stdout, gdb_stderr, gdb_stdlog and gdb_stdin.
3552 * top.h (struct ui) <m_gdb_stdout, m_gdb_stdin, m_gdb_stderr,
3553 m_gdb_stdlog>: New fields.
3554 (current_ui_gdb_stdout_ptr, current_ui_gdb_stdin_ptr)
3555 (current_ui_gdb_stderr_ptr, current_ui_gdb_stdlog_ptr): Declare.
3556 (gdb_stdout, gdb_stdin, gdb_stderr, gdb_stdlog): Reimplement as
3557 macros.
3558
3559 2016-06-21 Pedro Alves <palves@redhat.com>
3560
3561 * event-top.c: Update readline-related comments.
3562 (input_handler, call_readline): Delete globals.
3563 (gdb_rl_callback_handler): Call the current UI's input_handler
3564 method.
3565 (change_line_handler): Adjust to set current UI's properties
3566 instead of globals.
3567 (current_ui_, current_ui): New globals.
3568 (get_command_line_buffer): Rewrite to refer to the current UI.
3569 (stdin_event_handler): Adjust to call the call_readline method of
3570 the current UI.
3571 (gdb_readline_no_editing_callback): Adjust to call the current UI's
3572 input_handler method.
3573 (gdb_setup_readline): Adjust to set current UI's properties
3574 instead of globals.
3575 * event-top.h (call_readline, input_handler): Delete declarations.
3576 * mi/mi-interp.c (mi_interpreter_resume): Adjust to set current
3577 UI's properties instead of globals.
3578 * top.c (gdb_readline_wrapper_cleanup): Adjust to set current UI's
3579 properties instead of globals.
3580 (gdb_readline_wrapper): Adjust to call and set current UI's
3581 methods instead of globals.
3582 * top.h: Include buffer.h and event-loop.h.
3583 (struct ui): New struct.
3584 (current_ui): New declaration.
3585
3586 2016-06-21 Pedro Alves <palves@redhat.com>
3587
3588 * ada-lang.c (ada_exception_name_addr_1): Add comment.
3589 (print_it_exception): Select the current frame.
3590
3591 2016-06-17 Yan-Ting Lin <currygt52@gmail.com>
3592
3593 * Makefile.in (ALL_TARGET_OBS): Add nds32-tdep.o.
3594 (HFILES_NO_SRCDIR): Add nds32-tdep.h.
3595 (ALLDEPFILES): Add nds32-tdep.c.
3596 * NEWS: Mention new NDS32 port.
3597 * configure.tgt: Add NDS32.
3598 * nds32-tdep.c: New file.
3599 * nds32-tdep.h: New file.
3600 * features/Makefile (XMLTOC): Add nds32.xml.
3601 * features/nds32-core.xml: New file.
3602 * features/nds32-fpu.xml: New file.
3603 * features/nds32-system.xml: New file.
3604 * features/nds32.c: New file (generated).
3605 * features/nds32.xml: New file.
3606
3607 2016-06-14 John Baldwin <jhb@FreeBSD.org>
3608
3609 * v850-tdep.c (v850_use_struct_convention): Trim type length checks.
3610
3611 2016-06-14 John Baldwin <jhb@FreeBSD.org>
3612
3613 * tui/tui-stack.c (tui_show_frame_info): Fix type mismatch.
3614
3615 2016-06-14 John Baldwin <jhb@FreeBSD.org>
3616
3617 * rs6000-tdep.c (ppc_process_record_op31): Initialize ra.
3618
3619 2016-06-13 Nick Clifton <nickc@redhat.com>
3620
3621 * gdbtypes.c (replace_type): Fix assertion.
3622
3623 2016-06-10 Tom Tromey <tom@tromey.com>
3624
3625 * gdbtypes.c (arch_type, arch_integer_type, arch_character_type)
3626 (arch_boolean_type, arch_float_type, arch_complex_type)
3627 (arch_flags_type, append_flags_type_field)
3628 (append_flags_type_flag, arch_composite_type)
3629 (append_composite_type_field_raw)
3630 (append_composite_type_field_aligned)
3631 (append_composite_type_field): Make "name" parameter const.
3632 * gdbtypes.h (arch_type, arch_integer_type, arch_character_type)
3633 (arch_boolean_type, arch_float_type, arch_complex_type)
3634 (append_composite_type_field, append_composite_type_field_aligned)
3635 (append_composite_type_field_raw, arch_flags_type)
3636 (append_flags_type_field, append_flags_type_flag): Constify.
3637
3638 2016-06-10 Tom Tromey <tom@tromey.com>
3639
3640 PR rust/20110:
3641 * rust-exp.y (lex_number): Don't truncate large numbers to i32.
3642
3643 2016-06-10 Tom Tromey <tom@tromey.com>
3644
3645 * Makefile.in (COMMON_OBS): Remove rust-exp.o.
3646 (YYFILES): Add rust-exp.c.
3647 (YYOBJ): Add rust-exp.o.
3648 (local-maintainer-clean): Remove rust-exp.c.
3649
3650 2016-06-09 Toshihito Kikuchi <k.toshihito@yahoo.de>
3651
3652 * NEWS: Mention that GDB now supports a negative repeat count in
3653 the 'x' command.
3654 * printcmd.c (decode_format): Allow '-' in the parameter
3655 "string_ptr" to accept a negative repeat count.
3656 (find_instruction_backward): New function.
3657 (read_memory_backward): New function.
3658 (integer_is_zero): New function.
3659 (find_string_backward): New function.
3660 (do_examine): Use new functions to examine memory backward.
3661 (_initialize_printcmd): Mention that 'x' command supports a negative
3662 repeat count.
3663
3664 2016-06-09 Toshihito Kikuchi <k.toshihito@yahoo.de>
3665
3666 * MAINTAINERS (Write After Approval): Add Toshihito Kikuchi.
3667
3668 2016-06-09 Tom Tromey <tom@tromey.com>
3669
3670 PR python/19819:
3671 * python/py-xmethods.c (invoke_method_name)
3672 (py_get_result_type_method_name, py_invoke_method_name): Remove.
3673 (gdbpy_initialize_xmethods): Don't initialize
3674 py_invoke_method_name, py_get_result_type_method_name.
3675
3676 2016-06-07 Simon Marchi <simon.marchi@ericsson.com>
3677
3678 * mi/mi-interp.c (mi_record_changed): Add missing braces.
3679
3680 2016-06-07 Bernhard Heckel <bernhard.heckel@intel.com>
3681
3682 * findvar.c (follow_static_link): Check for valid pointer.
3683
3684 2016-06-06 Simon Marchi <simon.marchi@ericsson.com>
3685
3686 * NEWS: Mention the new fields in =record-started.
3687 * common/btrace-common.h (btrace_format_short_string): New function
3688 declaration.
3689 * common/btrace-common.c (btrace_format_short_string): New
3690 function.
3691 * mi/mi-interp.c (mi_record_changed): Output method and format
3692 fields in the =record-started record.
3693 * record-btrace.c (record_btrace_open): Adapt record_changed
3694 notification.
3695 * record-full.c (record_full_open): Likewise.
3696 * record.c (cmd_record_stop): Likewise.
3697
3698 2016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
3699
3700 * windows-nat.c (handle_output_debug_string): Return type of
3701 gdb_signal_from_host() is gdb_signal, not an int.
3702 (windows_get_exec_module_filename): Add pointer casts for C++.
3703
3704 2016-06-02 Tom Tromey <tom@tromey.com>
3705
3706 PR python/18984:
3707 * python/python.c (gdbpy_solib_name): Use GDB_PY_LLU_ARG.
3708
3709 2016-06-01 Pedro Alves <palves@redhat.com>
3710
3711 * remote-fileio.c (remote_fio_ctrl_c_flag, remote_fio_sa)
3712 (remote_fio_osa)
3713 (remote_fio_ofunc, remote_fileio_sig_init, remote_fileio_sig_set)
3714 (remote_fileio_sig_exit, remote_fileio_ctrl_c_signal_handler):
3715 Delete.
3716 (remote_fileio_o_quit_handler): New global.
3717 (remote_fileio_quit_handler): New function.
3718 (remote_fileio_reply): Check the quit flag instead of the custom
3719 'remote_fio_ctrl_c_flag' flag. Restore the quit handler instead
3720 of changing the SIGINT handler.
3721 (do_remote_fileio_request): Override the quit handler instead of
3722 changing the SIGINT handler.
3723
3724 2016-06-01 Nick Clifton <nickc@redhat.com>
3725
3726 * common/common-utils.c (xmalloc_failed): New function. Provided
3727 so that the version in libiberty is not linked in.
3728
3729 2016-06-01 Markus Metzger <markus.t.metzger@intel.com>
3730
3731 * infcmd.c (skip_finish_frames): New.
3732 (finish_command): Call skip_finish_frames.
3733
3734 2016-06-01 Yao Qi <yao.qi@linaro.org>
3735
3736 PR remote/19998
3737 * remote-fileio.c (remote_fileio_ctrl_c_signal_handler): Call
3738 quit_serial_event_set.
3739
3740 2016-06-01 Joel Brobecker <brobecker@adacore.com>
3741
3742 GDB 7.11.1 released.
3743
3744 2016-05-31 Martin Galvan <martin.galvan@tallertechnologies.com>
3745
3746 PR c++/19893
3747 * dwarf2loc.c (coerce_pieced_ref, indirect_synthetic_pointer,
3748 fetch_const_value_from_synthetic_pointer): New functions.
3749 (indirect_pieced_value): Move lower half to indirect_synthetic_pointer.
3750 (pieced_value_funcs): Implement coerce_ref.
3751 * valops.c (value_addr): Call coerce_ref for synthetic references.
3752 * valprint.c (valprint_check_validity): Return true for synthetic
3753 references. Also, don't show "<synthetic pointer>" if they reference
3754 addressable values.
3755 (generic_val_print_ref): Handle synthetic references. Also move some
3756 code to print_ref_address.
3757 (print_ref_address, get_value_addr_contents): New functions.
3758
3759 2016-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
3760
3761 PR c++/15231
3762 * dwarf2read.c (enum pc_bounds_kind): Add PC_BOUNDS_INVALID.
3763 (process_psymtab_comp_unit_reader, read_func_scope): Adjust callers.
3764 (read_lexical_block_scope): Import DIEs from bare DW_TAG_lexical_block.
3765 (read_call_site_scope): Adjust callers.
3766 (dwarf2_get_pc_bounds): Implement pc_bounds_invalid.
3767 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds): Adjust callers.
3768
3769 2016-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
3770
3771 Code cleanup: dwarf2_get_pc_bounds: -1/0/+1 -> enum
3772 * dwarf2read.c (enum pc_bounds_kind) New.
3773 (dwarf2_get_pc_bounds): Use it in the declaration.
3774 (process_psymtab_comp_unit_reader): Adjust caller. Rename has_pc_info
3775 to cu_bounds_kind.
3776 (read_func_scope, read_lexical_block_scope, read_call_site_scope):
3777 Adjust callers.
3778 (dwarf2_get_pc_bounds): Use enum pc_bounds_kind in the definition.
3779 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds): Adjust callers.
3780
3781 2016-05-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3782
3783 * NEWS (QCatchSyscalls): Remove the parameter. Include ...
3784 (QCatchSyscalls:1 in qSupported) ... this separate entry which got
3785 deleted.
3786
3787 2016-05-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3788
3789 * NEWS (N stop reply): Remove empty line.
3790
3791 2016-05-28 Alan Modra <amodra@gmail.com>
3792
3793 * compile/compile-object-load.c (link_callbacks_multiple_definition,
3794 link_callbacks_warning, link_callbacks_undefined_symbol,
3795 link_callbacks_undefined_symbol, link_callbacks_reloc_overflow,
3796 link_callbacks_reloc_dangerous,
3797 link_callbacks_unattached_reloc): Return void.
3798
3799 2016-05-27 Andrew Burgess <andrew.burgess@embecosm.com>
3800
3801 * opencl-lang.c (evaluate_subexp_opencl): If
3802 EVAL_AVOID_SIDE_EFFECTS mode, forward the VALUE_LVAL attribute to
3803 the returned value in the STRUCTOP_STRUCT case.
3804
3805 2016-05-27 Andrew Burgess <andrew.burgess@embecosm.com>
3806
3807 * eval.c (evaluate_subexp_standard): If EVAL_AVOID_SIDE_EFFECTS
3808 mode, forward the VALUE_LVAL attribute to the returned value in
3809 the STRUCTOP_PTR case.
3810
3811 2016-05-25 Tom Tromey <tom@tromey.com>
3812
3813 * python/py-value.c (value_object_as_number): Use correct spelling
3814 of HAVE_LIBPYTHON2_4.
3815
3816 2016-05-25 Bernhard Heckel <bernhard.heckel@intel.com>
3817
3818 * f-typeprint.c (f_type_print_base): Replace 0 by show.
3819
3820 2016-05-25 Bernhard Heckel <bernhard.heckel@intel.com>
3821
3822 * f-typeprint.c (f_type_print_base): Decrease show by one.
3823
3824 2016-05-25 Bernhard Heckel <bernhard.heckel@intel.com>
3825
3826 * f-typeprint.c (f_type_print_base): Don't print fields when show < 0.
3827
3828 2016-05-25 Bernhard Heckel <bernhard.heckel@intel.com>
3829
3830 * f-typeprint.c (f_type_print_base): Take print level into account.
3831
3832 2016-05-24 Tom Tromey <tom@tromey.com>
3833
3834 PR python/17386:
3835 * python/py-value.c (value_object_as_number): Add
3836 nb_inplace_floor_divide, nb_inplace_true_divide, nb_index.
3837
3838 2016-05-24 Tom Tromey <tom@tromey.com>
3839
3840 * python/py-value.c (value_object_as_number): Add
3841 nb_inplace_divide for Python 2.
3842
3843 2016-05-23 Tom Tromey <tom@tromey.com>
3844
3845 PR python/17981:
3846 * python/py-breakpoint.c (gdbpy_breakpoints): Return a new tuple
3847 when there are no breakpoints.
3848
3849 2016-05-24 Pedro Alves <palves@redhat.com>
3850
3851 PR gdb/19828
3852 * linux-nat.c (attach_proc_task_lwp_callback): Mark the lwp
3853 resumed, and add the thread to GDB's thread list.
3854
3855 2016-05-24 Pedro Alves <palves@redhat.com>
3856
3857 PR gdb/19828
3858 * linux-nat.c (get_pending_status): If the thread reported the
3859 event to the core and it's pending, use the pending status signal
3860 number.
3861
3862 2016-05-24 Pedro Alves <palves@redhat.com>
3863
3864 PR gdb/19828
3865 * linux-nat.c (lwp_lwpid_htab): New htab.
3866 (lwp_info_hash, lwp_lwpid_htab_eq, lwp_lwpid_htab_create)
3867 (lwp_lwpid_htab_add_lwp): New functions.
3868 (lwp_list): Tweak comment.
3869 (lwp_list_add, lwp_list_remove, lwp_lwpid_htab_remove_pid): New
3870 functions.
3871 (purge_lwp_list): Rewrite, using htab_traverse_noresize.
3872 (add_initial_lwp): Add lwp to htab too. Use lwp_list_add.
3873 (delete_lwp): Use lwp_list_remove. Remove htab too.
3874 (find_lwp_pid): Search in htab.
3875 (_initialize_linux_nat): Call lwp_lwpid_htab_create.
3876 * linux-nat.h (struct lwp_info) <prev>: New field.
3877
3878 2016-05-24 Pedro Alves <palves@redhat.com>
3879
3880 PR gdb/19828
3881 * linux-nat.c (lwp_lwpid_htab): New htab.
3882 (lwp_info_hash, lwp_lwpid_htab_eq, lwp_lwpid_htab_create)
3883 (lwp_lwpid_htab_add_lwp): New functions.
3884 (lwp_list): Tweak comment.
3885 (lwp_list_add, lwp_list_remove, lwp_lwpid_htab_remove_pid): New
3886 functions.
3887 (purge_lwp_list): Rewrite, using htab_traverse_noresize.
3888 (add_initial_lwp): Add lwp to htab too. Use lwp_list_add.
3889 (delete_lwp): Use lwp_list_remove. Remove htab too.
3890 (find_lwp_pid): Search in htab.
3891 (_initialize_linux_nat): Call lwp_lwpid_htab_create.
3892 * linux-nat.h (struct lwp_info) <prev>: New field.
3893
3894 2016-05-24 Pedro Alves <palves@redhat.com>
3895
3896 PR gdb/19828
3897 * linux-nat.c (linux_resume_one_lwp_throw): Clear the LWP's core
3898 field.
3899 (linux_nat_update_thread_list): Don't fetch the core if already
3900 known.
3901
3902 2016-05-24 Pedro Alves <palves@redhat.com>
3903
3904 PR gdb/19828
3905 * linux-tdep.c (find_mapping_size): Delete.
3906 (linux_vsyscall_range_raw): Rewrite reading from
3907 /proc/PID/task/PID/maps directly instead of using
3908 gdbarch_find_memory_regions.
3909
3910 2016-05-24 Pedro Alves <palves@redhat.com>
3911
3912 PR gdb/19828
3913 * linux-nat.c (report_thread_events): New global.
3914 (linux_handle_extended_wait): Report
3915 TARGET_WAITKIND_THREAD_CREATED if thread event reporting is
3916 enabled.
3917 (wait_lwp, linux_nat_filter_event): Report all thread exits if
3918 thread event reporting is enabled. Remove comment.
3919 (filter_exit_event): New function.
3920 (linux_nat_wait_1): Use it.
3921 (linux_nat_thread_events): New function.
3922 (linux_nat_add_target): Install it as target_thread_events method.
3923
3924 2016-05-24 Yan-Ting Lin <currygt52@gmail.com>
3925
3926 * MAINTAINERS (Write After Approval): Add "Yan-Ting Lin".
3927
3928 2016-05-23 Yao Qi <yao.qi@arm.com>
3929
3930 * arch-utils.c (default_code_of_frame_writable): New function.
3931 * arch-utils.h (default_code_of_frame_writable): Declare.
3932 * arm-tdep.c (arm_code_of_frame_writable): New function.
3933 (arm_gdbarch_init): Install gdbarch method
3934 code_of_frame_writable if the target is M-profile.
3935 * frame.c (skip_unwritable_frames): New function.
3936 * frame.h (skip_unwritable_frames): Declare.
3937 * gdbarch.sh (code_of_frame_writable): New.
3938 * gdbarch.c, gdbarch.h: Re-generated.
3939 * infcmd.c (finish_command): Call skip_unwritable_frames.
3940
3941 2016-05-23 Tom Tromey <tom@tromey.com>
3942
3943 PR python/19438, PR python/18393:
3944 * python/py-objfile.c (objfpy_initialize): Initialize self->dict.
3945 * python/py-progspace.c (pspy_initialize): Initialize self->dict.
3946
3947 2016-05-23 Gary Benson <gbenson@redhat.com>
3948
3949 * nat/gdb_thread_db.h (td_thr_validate_ftype): Remove typedef.
3950 * linux-thread-db.c (struct thread_db_info) <td_thr_validate_p>:
3951 Remove field.
3952 (try_thread_db_load_1): Remove td_thr_validate initialization.
3953
3954 2016-05-23 Jon Boden <jon@ubuntubsd.org> (tiny change)
3955
3956 * configure.ac: Search for libutil-freebsd as alternative to libutil.
3957 * configure: Re-generated.
3958
3959 2016-05-19 Andreas Schwab <schwab@suse.de>
3960
3961 * ia64-libunwind-tdep.c (libunwind_descr): Add cast from void *.
3962 (libunwind_frame_set_descr): Likewise.
3963 (libunwind_frame_cache): Likewise.
3964 (libunwind_frame_dealloc_cache): Likewise.
3965 (libunwind_frame_sniffer): Likewise.
3966 (libunwind_search_unwind_table): Likewise.
3967 (libunwind_sigtramp_frame_sniffer): Likewise.
3968 (libunwind_get_reg_special): Likewise.
3969 (libunwind_load): Likewise.
3970 * ia64-linux-nat.c (ia64_linux_fetch_register): Likewise.
3971 (ia64_linux_store_register): Likewise.
3972 (ia64_linux_xfer_partial): Likewise.
3973 * ia64-tdep.c (ia64_access_reg): Likewise.
3974 (ia64_access_fpreg): Likewise.
3975 (ia64_access_rse_reg): Likewise.
3976 (ia64_access_rse_fpreg): Likewise.
3977
3978 2016-05-18 Tom Tromey <tom@tromey.com>
3979
3980 * rust-lang.c (rust_subscript): Initialize "high".
3981
3982 2016-05-17 Simon Marchi <simon.marchi@ericsson.com>
3983
3984 PR gdb/20045
3985 * mi/mi-main.c (mi_on_resume): Call target_can_async_p instead
3986 of target_is_async_p.
3987
3988 2016-05-17 Simon Marchi <simon.marchi@ericsson.com>
3989
3990 PR gdb/18077
3991 * mi/mi-main.c (run_one_inferior): Use run target to determine
3992 whether to run async or not.
3993 (mi_cmd_exec_run): Likewise.
3994
3995 2016-05-17 Tom Tromey <tom@tromey.com>
3996
3997 * std-operator.def (OP_RANGE): Rename from OP_F90_RANGE.
3998 * rust-lang.c: Don't include f-lang.h.
3999 (rust_range, rust_compute_range, rust_subscript)
4000 (rust_evaluate_subexp): Update.
4001 * rust-exp.y: Don't include f-lang.h.
4002 (ast_range, convert_ast_to_expression): Update.
4003 * parse.c (operator_length_standard): Update.
4004 * f-lang.h (enum f90_range_type): Move to expression.h.
4005 * f-exp.y: Use OP_RANGE.
4006 * expression.h (enum range_type): New enum; renamed from
4007 f90_range_type.
4008 * expprint.c: Don't include f-lang.h.
4009 (print_subexp_standard, dump_subexp_body_standard): Use OP_RANGE.
4010 * eval.c (value_f90_subarray, evaluate_subexp_standard): Update.
4011
4012 2016-05-17 Tom Tromey <tom@tromey.com>
4013
4014 * NEWS: Add Rust item.
4015
4016 2016-05-17 Tom Tromey <tom@tromey.com>
4017 Manish Goregaokar <manishsmail@gmail.com>
4018
4019 * symtab.c (symbol_find_demangled_name): Handle Rust.
4020 * symfile.c (init_filename_language_table): Treat ".rs" as Rust.
4021 * std-operator.def (STRUCTOP_ANONYMOUS, OP_RUST_ARRAY): New
4022 constants.
4023 * rust-lang.h: New file.
4024 * rust-lang.c: New file.
4025 * rust-exp.y: New file.
4026 * dwarf2read.c (read_file_scope): Add Rust producer sniffing.
4027 (dwarf2_compute_name, read_func_scope, read_structure_type)
4028 (read_base_type, read_subrange_type, set_cu_language)
4029 (new_symbol_full, determine_prefix): Handle Rust.
4030 * defs.h (enum language) <language_rust>: New constant.
4031 * Makefile.in (SFILES): Add rust-exp.y, rust-lang.c.
4032 (COMMON_OBS): Add rust-exp.o, rust-lang.o.
4033
4034 2016-05-17 Tom Tromey <tom@tromey.com>
4035
4036 * valprint.h (struct generic_val_print_array) <array_start,
4037 array_end>: New fields.
4038 * valprint.c (generic_val_print_array): Add "decorations"
4039 parameter. Use "array_start", "array_end".
4040 (generic_val_print) <TYPE_CODE_ARRAY>: Update.
4041 * p-valprint.c (p_decorations): Update.
4042 * m2-valprint.c (m2_decorations): Update.
4043 * f-valprint.c (f_decorations): Update.
4044 * c-valprint.c (c_decorations): Update.
4045
4046 2016-05-17 Tom Tromey <tom@tromey.com>
4047
4048 * NEWS: Add "maint selftest" entry.
4049 * selftest.h: New file.
4050 * selftest.c: New file.
4051 * maint.c: Include selftest.h.
4052 (maintenance_selftest): New function.
4053 (_initialize_maint_cmds): Add "maint selftest" command.
4054 * configure.ac (GDB_SELF_TEST): Maybe define.
4055 * config.in, configure: Rebuild.
4056 * Makefile.in (SFILES): Add selftest.c.
4057 (COMMON_OBS): Add selftest.o.
4058
4059 2016-05-17 Tom Tromey <tom@tromey.com>
4060
4061 * expprint.c: Include f-lang.h.
4062 (print_subexp_standard, dump_subexp_body_standard): Handle
4063 OP_F90_RANGE.
4064
4065 2016-05-17 Tom Tromey <tom@tromey.com>
4066
4067 * Makefile.in (init.c): Search .y files for initialization
4068 functions.
4069
4070 2016-05-12 Doug Evans <dje@google.com>
4071
4072 PR symtab/19999
4073 * dwarf2loc.c (dwarf2_find_location_expression): For DWO files still
4074 add base_offset.
4075
4076 2016-05-10 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
4077
4078 * iq2000-tdep.c (iq2000_scan_prologue): Remove if that shouldn't guard
4079 anything.
4080 * linespec.c (add_sal_to_sals): Restore call to symtab_to_fullname.
4081
4082 2016-05-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
4083
4084 * arm-tdep.c (arm_elf_make_msymbol_special): Use
4085 ARM_GET_SYM_BRANCH_TYPE to get branch type of a symbol.
4086
4087 2016-05-07 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
4088
4089 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Remove unused
4090 variables.
4091 * aarch64-tdep.c (aarch64_skip_prologue): Likewise.
4092 (aarch64_scan_prologue): Likewise.
4093 (aarch64_prologue_prev_register): Likewise.
4094 (aarch64_dwarf2_prev_register): Likewise.
4095 (pass_in_v): Likewise.
4096 (aarch64_push_dummy_call): Likewise.
4097 (aarch64_breakpoint_from_pc): Likewise.
4098 (aarch64_return_in_memory): Likewise.
4099 (aarch64_return_value): Likewise.
4100 (aarch64_displaced_step_b_cond): Likewise.
4101 (aarch64_displaced_step_cb): Likewise.
4102 (aarch64_displaced_step_tb): Likewise.
4103 (aarch64_gdbarch_init): Likewise.
4104 (aarch64_process_record): Likewise.
4105 * alpha-mdebug-tdep.c (alpha_mdebug_init_abi): Likewise.
4106 * alpha-tdep.c (_initialize_alpha_tdep): Likewise.
4107 * amd64-dicos-tdep.c (amd64_dicos_init_abi): Likewise.
4108 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Likewise.
4109 * amd64-tdep.c (fixup_riprel): Likewise.
4110 * amd64-windows-tdep.c (amd64_windows_frame_decode_epilogue): Likewise.
4111 (amd64_windows_frame_decode_insns): Likewise.
4112 (amd64_windows_frame_cache): Likewise.
4113 (amd64_windows_frame_prev_register): Likewise.
4114 (amd64_windows_frame_this_id): Likewise.
4115 (amd64_windows_init_abi): Likewise.
4116 * arm-linux-tdep.c (arm_linux_get_syscall_number): Likewise.
4117 (arm_linux_get_next_pcs_syscall_next_pc): Likewise.
4118 * arm-symbian-tdep.c (arm_symbian_init_abi): Likewise.
4119 * arm-tdep.c (arm_make_epilogue_frame_cache): Likewise.
4120 (arm_epilogue_frame_prev_register): Likewise.
4121 (arm_record_vdata_transfer_insn): Likewise.
4122 (arm_record_exreg_ld_st_insn): Likewise.
4123 * auto-load.c (execute_script_contents): Likewise.
4124 (print_scripts): Likewise.
4125 * avr-tdep.c (avr_frame_prev_register): Likewise.
4126 (avr_push_dummy_call): Likewise.
4127 * bfin-linux-tdep.c (bfin_linux_sigframe_init): Likewise.
4128 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
4129 * blockframe.c (find_pc_partial_function_gnu_ifunc): Likewise.
4130 * break-catch-throw.c (fetch_probe_arguments): Likewise.
4131 * breakpoint.c (breakpoint_xfer_memory): Likewise.
4132 (breakpoint_init_inferior): Likewise.
4133 (breakpoint_inserted_here_p): Likewise.
4134 (software_breakpoint_inserted_here_p): Likewise.
4135 (hardware_breakpoint_inserted_here_p): Likewise.
4136 (bpstat_what): Likewise.
4137 (break_range_command): Likewise.
4138 (save_breakpoints): Likewise.
4139 * coffread.c (coff_symfile_read): Likewise.
4140 * cris-tdep.c (cris_push_dummy_call): Likewise.
4141 (cris_scan_prologue): Likewise.
4142 (cris_register_size): Likewise.
4143 (_initialize_cris_tdep): Likewise.
4144 * d-exp.y: Likewise.
4145 * dbxread.c (dbx_read_symtab): Likewise.
4146 (process_one_symbol): Likewise.
4147 (coffstab_build_psymtabs): Likewise.
4148 (elfstab_build_psymtabs): Likewise.
4149 * dicos-tdep.c (dicos_init_abi): Likewise.
4150 * disasm.c (do_mixed_source_and_assembly): Likewise.
4151 (gdb_disassembly): Likewise.
4152 * dtrace-probe.c (dtrace_process_dof): Likewise.
4153 * dwarf2read.c (error_check_comp_unit_head): Likewise.
4154 (build_type_psymtabs_1): Likewise.
4155 (skip_one_die): Likewise.
4156 (process_imported_unit_die): Likewise.
4157 (dwarf2_physname): Likewise.
4158 (read_file_scope): Likewise.
4159 (setup_type_unit_groups): Likewise.
4160 (create_dwo_cu_reader): Likewise.
4161 (create_dwo_cu): Likewise.
4162 (create_dwo_unit_in_dwp_v1): Likewise.
4163 (create_dwo_unit_in_dwp_v2): Likewise.
4164 (lookup_dwo_unit_in_dwp): Likewise.
4165 (free_dwo_file): Likewise.
4166 (check_producer): Likewise.
4167 (dwarf2_add_typedef): Likewise.
4168 (dwarf2_add_member_fn): Likewise.
4169 (read_unsigned_leb128): Likewise.
4170 (read_signed_leb128): Likewise.
4171 (dwarf2_const_value): Likewise.
4172 (follow_die_sig_1): Likewise.
4173 (dwarf_decode_macro_bytes): Likewise.
4174 * extension.c (restore_active_ext_lang): Likewise.
4175 * frv-linux-tdep.c (frv_linux_sigtramp_frame_cache): Likewise.
4176 * ft32-tdep.c (ft32_analyze_prologue): Likewise.
4177 * gdbtypes.c (lookup_typename): Likewise.
4178 (resolve_dynamic_range): Likewise.
4179 (check_typedef): Likewise.
4180 * h8300-tdep.c (h8300_is_argument_spill): Likewise.
4181 (h8300_gdbarch_init): Likewise.
4182 * hppa-tdep.c (hppa32_push_dummy_call): Likewise.
4183 (hppa_frame_this_id): Likewise.
4184 (_initialize_hppa_tdep): Likewise.
4185 * hppanbsd-tdep.c (hppanbsd_sigtramp_cache_init): Likewise.
4186 * hppaobsd-tdep.c (hppaobsd_supply_fpregset): Likewise.
4187 * i386-dicos-tdep.c (i386_dicos_init_abi): Likewise.
4188 * i386-tdep.c (i386_bnd_type): Likewise.
4189 (i386_gdbarch_init): Likewise.
4190 (i386_mpx_bd_base): Likewise.
4191 * i386nbsd-tdep.c (i386nbsd_sigtramp_cache_init): Likewise.
4192 * i386obsd-tdep.c (i386obsd_elf_init_abi): Likewise.
4193 * ia64-tdep.c (examine_prologue): Likewise.
4194 (ia64_frame_cache): Likewise.
4195 (ia64_push_dummy_call): Likewise.
4196 * infcmd.c (finish_command_fsm_async_reply_reason): Likewise.
4197 (default_print_one_register_info): Likewise.
4198 * infrun.c (infrun_thread_ptid_changed): Likewise.
4199 (thread_still_needs_step_over): Likewise.
4200 (stop_all_threads): Likewise.
4201 (restart_threads): Likewise.
4202 (keep_going_stepped_thread): Likewise.
4203 * iq2000-tdep.c (iq2000_scan_prologue): Likewise.
4204 * language.c (language_init_primitive_type_symbols): Likewise.
4205 * linespec.c (add_sal_to_sals): Likewise.
4206 * linux-nat.c (status_callback): Likewise.
4207 (kill_unfollowed_fork_children): Likewise.
4208 (linux_nat_kill): Likewise.
4209 * linux-tdep.c (linux_fill_prpsinfo): Likewise.
4210 * linux-thread-db.c (thread_db_notice_clone): Likewise.
4211 (record_thread): Likewise.
4212 * location.c (string_to_event_location_basic): Likewise.
4213 * m32c-tdep.c (m32c_prev_register): Likewise.
4214 * m32r-linux-tdep.c (m32r_linux_init_abi): Likewise.
4215 * m32r-tdep.c (decode_prologue): Likewise.
4216 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
4217 * machoread.c (macho_symtab_read): Likewise.
4218 (macho_symfile_read): Likewise.
4219 (macho_symfile_offsets): Likewise.
4220 * maint.c (set_per_command_cmd): Likewise.
4221 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Likewise.
4222 (mi_cmd_stack_list_variables): Likewise.
4223 * mi/mi-main.c (mi_cmd_exec_run): Likewise.
4224 (output_register): Likewise.
4225 (mi_cmd_execute): Likewise.
4226 (mi_cmd_trace_define_variable): Likewise.
4227 (print_variable_or_computed): Likewise.
4228 * minsyms.c (prim_record_minimal_symbol_full): Likewise.
4229 * mn10300-tdep.c (mn10300_frame_prev_register): Likewise.
4230 * msp430-tdep.c (msp430_pseudo_register_write): Likewise.
4231 * mt-tdep.c (mt_registers_info): Likewise.
4232 * nios2-tdep.c (nios2_analyze_prologue): Likewise.
4233 (nios2_push_dummy_call): Likewise.
4234 (nios2_frame_unwind_cache): Likewise.
4235 (nios2_stub_frame_cache): Likewise.
4236 (nios2_stub_frame_sniffer): Likewise.
4237 (nios2_gdbarch_init): Likewise.
4238 * ppc-ravenscar-thread.c: Likewise.
4239 * ppcfbsd-tdep.c (ppcfbsd_sigtramp_frame_cache): Likewise.
4240 * python/py-evts.c (add_new_registry): Likewise.
4241 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
4242 (bpfinishpy_detect_out_scope_cb): Likewise.
4243 * python/py-framefilter.c (py_print_value): Likewise.
4244 * python/py-inferior.c (infpy_write_memory): Likewise.
4245 * python/py-infevents.c (create_inferior_call_event_object): Likewise.
4246 * python/py-infthread.c (thpy_get_ptid): Likewise.
4247 * python/py-linetable.c (ltpy_get_pcs_for_line): Likewise.
4248 (ltpy_get_all_source_lines): Likewise.
4249 (ltpy_is_valid): Likewise.
4250 (ltpy_iternext): Likewise.
4251 * python/py-symtab.c (symtab_and_line_to_sal_object): Likewise.
4252 * python/py-unwind.c (pyuw_object_attribute_to_pointer): Likewise.
4253 (unwind_infopy_str): Likewise.
4254 * python/py-varobj.c (py_varobj_get_iterator): Likewise.
4255 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
4256 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
4257 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
4258 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Likewise.
4259 * s390-linux-tdep.c (s390_supply_tdb_regset): Likewise.
4260 (s390_frame_prev_register): Likewise.
4261 (s390_dwarf2_frame_init_reg): Likewise.
4262 (s390_record_vr): Likewise.
4263 (s390_process_record): Likewise.
4264 * score-tdep.c (score_push_dummy_call): Likewise.
4265 (score3_analyze_prologue): Likewise.
4266 * sh-tdep.c (sh_extract_return_value_nofpu): Likewise.
4267 * sh64-tdep.c (sh64_analyze_prologue): Likewise.
4268 (sh64_push_dummy_call): Likewise.
4269 (sh64_extract_return_value): Likewise.
4270 (sh64_do_fp_register): Likewise.
4271 * solib-aix.c (solib_aix_get_section_offsets): Likewise.
4272 * solib-darwin.c (darwin_read_exec_load_addr_from_dyld): Likewise.
4273 (darwin_solib_read_all_image_info_addr): Likewise.
4274 * solib-dsbt.c (enable_break): Likewise.
4275 * solib-frv.c (enable_break2): Likewise.
4276 (frv_fdpic_find_canonical_descriptor): Likewise.
4277 * solib-svr4.c (svr4_handle_solib_event): Likewise.
4278 * sparc-tdep.c (sparc_skip_stack_check): Likewise.
4279 * sparc64-linux-tdep.c (sparc64_linux_get_longjmp_target): Likewise.
4280 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
4281 * spu-tdep.c (info_spu_dma_cmdlist): Likewise.
4282 * stack.c (read_frame_local): Likewise.
4283 * symfile.c (symbol_file_add_separate): Likewise.
4284 (remove_symbol_file_command): Likewise.
4285 * symmisc.c (maintenance_print_one_line_table): Likewise.
4286 * symtab.c (symbol_cache_flush): Likewise.
4287 (basic_lookup_transparent_type): Likewise.
4288 (sort_search_symbols_remove_dups): Likewise.
4289 * target.c (target_memory_map): Likewise.
4290 (target_detach): Likewise.
4291 (target_resume): Likewise.
4292 (acquire_fileio_fd): Likewise.
4293 (target_store_registers): Likewise.
4294 * thread.c (print_thread_info_1): Likewise.
4295 * tic6x-tdep.c (tic6x_analyze_prologue): Likewise.
4296 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Likewise.
4297 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
4298 (tilegx_analyze_prologue): Likewise.
4299 (tilegx_stack_frame_destroyed_p): Likewise.
4300 (tilegx_frame_cache): Likewise.
4301 * tracefile.c (trace_save): Likewise.
4302 * tracepoint.c (encode_actions_and_make_cleanup): Likewise.
4303 (start_tracing): Likewise.
4304 (print_one_static_tracepoint_marker): Likewise.
4305 * tui/tui.c (tui_enable): Likewise.
4306 * valops.c (value_struct_elt_bitpos): Likewise.
4307 (find_overload_match): Likewise.
4308 (find_oload_champ): Likewise.
4309 * value.c (value_contents_copy_raw): Likewise.
4310 * windows-tdep.c (windows_get_tlb_type): Likewise.
4311 * x86-linux-nat.c (x86_linux_enable_btrace): Likewise.
4312 * xcoffread.c (record_minimal_symbol): Likewise.
4313 (scan_xcoff_symtab): Likewise.
4314 * xtensa-tdep.c (execute_code): Likewise.
4315 (xtensa_gdbarch_init): Likewise.
4316 (_initialize_xtensa_tdep): Likewise.
4317
4318 2016-05-04 Ulrich Weigand <uweigand@de.ibm.com>
4319
4320 * spu-linux-nat.c (spu_bfd_iovec_pread): Add pointer cast for C++.
4321 (spu_bfd_open): Likewise.
4322
4323 2016-05-04 Yao Qi <yao.qi@linaro.org>
4324
4325 PR gdb/19947
4326 * corefile.c (read_memory): Rename it to ...
4327 (read_memory_object): ... it. Add parameter object.
4328 (read_memory): Call read_memory_object.
4329 (read_stack): Likewise.
4330 (read_code): Likewise.
4331
4332 2016-05-03 Yunlian Jiang <yunlian@google.com>
4333 Doug Evans <dje@google.com>
4334
4335 PR symtab/19914
4336 * dwarf2read.c (open_and_init_dwp_file): Look at backlink if objfile
4337 is separate debug file.
4338
4339 2016-05-03 Don Breazeal <donb@codesourcery.com>
4340
4341 * serial.h (gdb_pipe): Fix argument names in comment.
4342
4343 2016-05-03 Pedro Alves <palves@redhat.com>
4344
4345 PR python/20037
4346 * python/python.c (_initialize_python) [IS_PY3K]: xstrdup/xfree
4347 oldloc.
4348
4349 2016-05-03 Pedro Alves <palves@redhat.com>
4350
4351 * python/python.c (_initialize_python) [IS_PY3K]: Remove dead
4352 code.
4353
4354 2016-05-03 Pedro Alves <palves@redhat.com>
4355
4356 * configure.ac (PYTHON_LIBS): Sed away "-Xlinker -export-dynamic".
4357 * configure: Regenerate.
4358
4359 2016-05-03 Pedro Alves <palves@redhat.com>
4360
4361 * configure.ac (checking for the dynamic export flag): Add
4362 $PYTHON_CPPFLAGS to CPPFLAGS.
4363 * configure: Regenerate.
4364
4365 2016-05-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4366
4367 * symfile.c (find_pc_overlay): Add braces to avoid -Wparentheses
4368 warning.
4369 (find_pc_mapped_section): Likewise.
4370 (list_overlays_command): Likewise.
4371
4372 2016-05-02 Eli Zaretskii <eliz@gnu.org>
4373
4374 * windows-nat.c (_initialize_check_for_gdb_ini): Fix off-by-one
4375 error in allocation of space for "$HOME/.gdbinit" string. This
4376 caused GDB to abort on startup whenever a '~/gdb.ini' file was
4377 actually found, because xsnprintf would hit an assertion
4378 violation.
4379
4380 2016-04-28 Simon Marchi <simon.marchi@ericsson.com>
4381
4382 * cli/cli-decode.c (help_cmd_list): Do not list commands that
4383 are deprecated.
4384
4385 2016-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4386
4387 * remote.c (remote_start_remote): Detect PACKET_vFile_setfs.support.
4388
4389 2016-04-27 Martin Galvan <martin.galvan@tallertechnologies.com>
4390
4391 * c-valprint.c (c_value_print): Always convert val back to reference
4392 type if we converted it to a pointer type.
4393
4394 2016-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
4395
4396 * configure.ac: Enhance configure check for babeltrace to reject
4397 non-C++-enabled versions.
4398 * configure: Regenerate.
4399
4400 2016-04-26 Sanimir Agovic <sanimir.agovic@intel.com>
4401 Keven Boell <keven.boell@intel.com>
4402 Bernhard Heckel <bernhard.heckel@intel.com>
4403
4404 * f-valprint.c (f77_create_arrayprint_offset_tbl): Remove
4405 function.
4406 (F77_DIM_SIZE, F77_DIM_OFFSET): Remove macro.
4407 (f77_print_array_1): Use value_subscript to subscript a
4408 value array.
4409 (f77_print_array): Remove call to f77_create_arrayprint_offset_tbl.
4410 (f_val_print): Use value_field to construct a field value.
4411
4412 2016-04-26 Bernhard Heckel <bernhard.heckel@intel.com>
4413
4414 * valarith.c (value_address): Resolve dynamic types.
4415
4416 2016-04-26 Bernhard Heckel <bernhard.heckel@intel.com>
4417 Keven Boell <kevel.boell@intel.com>
4418
4419 * NEWS: Add new supported features for fortran.
4420 * gdbtypes.c (remove_dyn_prop): New.
4421 (resolve_dynamic_struct): Keep type length for fortran structs.
4422 * gdbtypes.h: Forward declaration of new function.
4423 * value.c (value_address): Return dynamic resolved location of a value.
4424 (set_value_component_location): Adjust the value address
4425 for single value prints.
4426 (value_primitive_field): Support value types with a dynamic location.
4427 (set_internalvar): Remove dynamic location property of
4428 internal variables.
4429
4430 2016-04-25 Pedro Alves <palves@redhat.com>
4431 Yao Qi <yao.qi@linaro.org>
4432
4433 * mem-break.c (set_raw_breakpoint_at): Create a raw breakpoint
4434 object. Insert it if it is not inserted yet. Increase the
4435 refcount and link it into the proc's raw breakpoint list.
4436
4437 2016-04-25 Yao Qi <yao.qi@linaro.org>
4438
4439 * breakpoint.c (should_be_inserted): Return 0 if the location's
4440 owner is not single step breakpoint or single step breakpoint's
4441 thread isn't the thread which is stepping past a breakpoint.
4442 * gdbarch.sh (software_single_step): Update comments.
4443 * gdbarch.h: Regenerated.
4444 * infrun.c (struct step_over_info) <thread>: New field.
4445 (set_step_over_info): New argument 'thread'. Callers updated.
4446 (clear_step_over_info): Set field thread to -1.
4447 (thread_is_stepping_over_breakpoint): New function.
4448 * infrun.h (thread_is_stepping_over_breakpoint): Declaration.
4449
4450 2016-04-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4451
4452 * ppc-linux-nat.c (ppc_linux_read_description): Use PPC_FEATURE_HAS_VSX
4453 and PPC_FEATURE_HAS_ALTIVEC to check if such features are available.
4454
4455 2016-04-22 Yao Qi <yao.qi@linaro.org>
4456
4457 * valops.c (read_value_memory): New local variable 'stack'.
4458 Set it to either TARGET_OBJECT_STACK_MEMORY or
4459 TARGET_OBJECT_MEMORY.
4460
4461 2016-04-22 Pedro Alves <palves@redhat.com>
4462
4463 * ada-exp.y: Remove all yy symbol remappings.
4464 (GDB_YY_REMAP_PREFIX): Define.
4465 Include "yy-remap.h".
4466 * ada-lang.c (ada_language_defn): Adjust.
4467 * ada-lang.h (ada_error): Rename to ...
4468 (ada_yyerror): ... this.
4469 * c-exp.y: Remove all yy symbol remappings.
4470 (GDB_YY_REMAP_PREFIX): Define.
4471 Include "yy-remap.h".
4472 * c-lang.c (c_language_defn, cplus_language_defn)
4473 (asm_language_defn, minimal_language_defn): Adjust.
4474 * c-lang.h (c_error): Rename to ...
4475 (c_yyerror): ... this.
4476 * d-exp.y: Remove all yy symbol remappings.
4477 (GDB_YY_REMAP_PREFIX): Define.
4478 Include "yy-remap.h".
4479 * d-lang.c (d_language_defn): Adjust.
4480 * d-lang.h (d_error): Rename to ...
4481 (d_yyerror): ... this.
4482 * f-exp.y: Remove all yy symbol remappings.
4483 (GDB_YY_REMAP_PREFIX): Define.
4484 Include "yy-remap.h".
4485 * f-lang.c (f_language_defn): Adjust.
4486 * f-lang.h (f_error): Rename to ...
4487 (f_yyerror): ... this.
4488 * go-exp.y: Remove all yy symbol remappings.
4489 (GDB_YY_REMAP_PREFIX): Define.
4490 Include "yy-remap.h".
4491 * go-lang.c (go_language_defn): Adjust.
4492 * go-lang.h (go_error): Rename to ...
4493 (go_yyerror): ... this.
4494 * jv-exp.y: Remove all yy symbol remappings.
4495 (GDB_YY_REMAP_PREFIX): Define.
4496 Include "yy-remap.h".
4497 * jv-lang.c (java_language_defn): Adjust.
4498 * jv-lang.h (java_error): Rename to ...
4499 (java_yyerror): ... this.
4500 * m2-exp.y: Remove all yy symbol remappings.
4501 (GDB_YY_REMAP_PREFIX): Define.
4502 Include "yy-remap.h".
4503 * m2-lang.c (m2_language_defn): Adjust.
4504 * m2-lang.h (m2_error): Rename to ...
4505 (m2_yyerror): ... this.
4506 * objc-exp.y: Remove all yy symbol remappings.
4507 (GDB_YY_REMAP_PREFIX): Define.
4508 Include "yy-remap.h".
4509 * objc-lang.c (objc_language_defn): Adjust.
4510 * opencl-lang.c (opencl_language_defn): Adjust.
4511 * p-exp.y: Remove all yy symbol remappings.
4512 (GDB_YY_REMAP_PREFIX): Define.
4513 Include "yy-remap.h".
4514 * p-lang.c (pascal_language_defn): Adjust.
4515 * p-lang.h (pascal_error): Rename to ...
4516 (pascal_yyerror): ... this.
4517 * yy-remap.h: New file.
4518
4519 2016-04-22 Pedro Alves <palves@redhat.com>
4520
4521 * common/common-exceptions.h (GDB_XCPT_TRY): Remove mention of
4522 the foreign frames issue.
4523 [__cplusplus] (GDB_XCPT): Define as GDB_XCPT_TRY.
4524
4525 2016-04-22 Pedro Alves <palves@redhat.com>
4526
4527 * common/common-exceptions.c (enum catcher_state, struct catcher)
4528 (current_catcher): Define in C++ mode too.
4529 (exceptions_state_mc_catch): Call throw_exception_sjlj instead of
4530 throw_exception.
4531 (throw_exception_sjlj, throw_exception_cxx): New functions,
4532 factored out from throw_exception.
4533 (throw_exception): Reimplement.
4534 * common/common-exceptions.h (exceptions_state_mc_init)
4535 (exceptions_state_mc_action_iter)
4536 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
4537 Declare in C++ mode too.
4538 (TRY): Rename to ...
4539 (TRY_SJLJ): ... this.
4540 (CATCH): Rename to ...
4541 (CATCH_SJLJ): ... this.
4542 (END_CATCH): Rename to ...
4543 (END_CATCH_SJLJ): ... this.
4544 [GDB_XCPT == GDB_XCPT_SJMP] (TRY, CATCH, END_CATCH): Map to SJLJ
4545 equivalents.
4546 (throw_exception): Update comments.
4547 (throw_exception_sjlj): Declare.
4548 * event-top.c (gdb_rl_callback_read_char_wrapper): Extend intro
4549 comment. Wrap body in TRY_SJLJ/CATCH_SJLJ and rethrow any
4550 intercepted exception.
4551 (gdb_rl_callback_handler): New function.
4552 (gdb_rl_callback_handler_install): Always install
4553 gdb_rl_callback_handler as readline callback.
4554
4555 2016-04-22 Pedro Alves <palves@redhat.com>
4556
4557 * event-top.c (rl_callback_read_char_wrapper): Rename to ...
4558 (gdb_rl_callback_read_char_wrapper): ... this.
4559 (change_line_handler, gdb_setup_readline): Adjust.
4560
4561 2016-04-22 Yao Qi <yao.qi@linaro.org>
4562
4563 * aarch32-linux-nat.c (aarch32_gp_regcache_supply): Clear CPSR
4564 bits 20 to 23.
4565
4566 2016-04-22 Joel Brobecker <brobecker@adacore.com>
4567
4568 * MAINTAINER: Remove myself as AIX Maintainer.
4569
4570 2016-04-22 Maciej W. Rozycki <macro@imgtec.com>
4571
4572 * mips-tdep.c (mips_gdbarch_init): For GDB_OSABI_LINUX set
4573 `num_regs' to 90 rather than 79. Where a target description is
4574 present adjust the setting appropriately.
4575
4576 2016-04-21 Pedro Alves <palves@redhat.com>
4577
4578 * common/common-exceptions.h (GDB_XCPT_TRY): Add comment.
4579 (GDB_XCPT): Always define as GDB_XCPT_SJMP.
4580
4581 2016-04-21 Pedro Alves <palves@redhat.com>
4582
4583 * aix-thread.c (pdc_read_data, pdc_write_data): Add cast.
4584 (aix_thread_resume): Use PTRACE_TYPE_ARG5.
4585 * rs6000-nat.c (rs6000_ptrace64): Use PTRACE_TYPE_ARG5.
4586 (rs6000_ptrace_ldinfo): Change type of 'ldi' local to void
4587 pointer, and cast return to gdb_byte pointer.
4588
4589 2016-04-21 Pedro Alves <palves@redhat.com>
4590
4591 * s390-linux-nat.c (fetch_regset, store_regset, check_regset): Use
4592 void * instead of gdb_byte *.
4593
4594 2016-04-21 Pedro Alves <palves@redhat.com>
4595
4596 * dwarf2read.c (try_open_dwop_file, open_dwo_file)
4597 (file_file_name, file_full_name): Add char * cast to sentinel in
4598 concat/reconcat calls.
4599 * event-top.c (top_level_prompt): Likewise.
4600 * guile/guile.c (initialize_scheme_side): Likewise.
4601 * linux-tdep.c (linux_fill_prpsinfo): Likewise.
4602 * macrotab.c (macro_source_fullname): Likewise.
4603 * main.c (get_init_files, captured_main): Likewise.
4604 * psymtab.c (psymtab_to_fullname): Likewise.
4605 * python/python.c (_initialize_python)
4606 (gdbpy_finish_initialization): Likewise.
4607 * source.c (symtab_to_fullname): Likewise.
4608
4609 2016-04-20 Pedro Alves <palves@redhat.com>
4610
4611 * build-with-cxx.m4 (GDB_AC_BUILD_WITH_CXX): Default to yes.
4612 * configure: Renegerate.
4613
4614 2016-04-20 Pedro Alves <palves@redhat.com>
4615
4616 * darwin-nat.c (darwin_decode_message): Use gdb_signal_from_host.
4617
4618 2016-04-20 Pedro Alves <palves@redhat.com>
4619
4620 * aarch64-tdep.c (aarch64_record_load_store): Change type of
4621 'reg_rm_val' local to ULONGEST.
4622
4623 2016-04-20 Pedro Alves <palves@redhat.com>
4624
4625 * darwin-nat.c (darwin_resume_thread): Add uintptr_t cast.
4626
4627 2016-04-20 Doug Evans <xdje42@gmail.com>
4628
4629 * symmisc.c (dump_symtab_1): Print owning compunit for identical
4630 blockvectors.
4631
4632 2016-04-20 Yao Qi <yao.qi@linaro.org>
4633
4634 * aarch32-linux-nat.c: Include "arch/arm-linux.h".
4635
4636 2016-04-20 Yao Qi <yao.qi@linaro.org>
4637
4638 * arm-linux-tdep.h (ARM_CPSR_GREGNUM): Move it to ...
4639 * arch/arm-linux.h: ... here.
4640
4641 2016-04-19 John Baldwin <jhb@FreeBSD.org>
4642
4643 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Change xstateregs
4644 to void *.
4645 (amd64bsd_store_inferior_registers): Likewise.
4646 * fbsd-nat.c (resume_one_thread_cb): Explicitly cast data to ptid_t *.
4647 (resume_all_threads_cb): Likewise.
4648 * i386bsd-nat.c (i386bsd_supply_gregset): Cast gregs to char *.
4649 (i386bsd_collect_gregset): Likewise.
4650 (i386bsd_fetch_inferior_registers): Change xstateregs to void *.
4651 (i386bsd_store_inferior_registers): Likewise.
4652
4653 2016-04-19 John Baldwin <jhb@FreeBSD.org>
4654
4655 * main.c (setup_alternate_signal_stack): Cast to char *.
4656
4657 2016-04-19 Doug Evans <xdje42@gmail.com>
4658
4659 * symmisc.c (dump_symtab_1, dump_symtab): Delete arg objfile.
4660 All callers updated.
4661
4662 2016-04-19 Doug Evans <xdje42@gmail.com>
4663
4664 PR gdb/17911
4665 * source.c (is_regular_file): New arg errno_ptr.
4666 All callers updated.
4667
4668 2016-04-19 Andreas Arnez <arnez@linux.vnet.ibm.com>
4669
4670 * linux-record.c (record_linux_system_call): Merge handling for
4671 readlink/recv/read and pipe/pipe2.
4672
4673 2016-04-14 Walfred Tedeschi <walfred.tedeschi@intel.com>
4674
4675 * features/i386/amd64-mpx-linux.xml: Remove AVX feature.
4676 * features/i386/amd64-mpx.xml: Remove AVX feature.
4677 * features/i386/i386-mpx-linux.xml: Remove AVX feature.
4678 * features/i386/i386-mpx.xml: Remove AVX feature.
4679 * features/i386/amd64-mpx-linux.c: Regenerate.
4680 * features/i386/amd64-mpx.c: Regenerate.
4681 * features/i386/i386-mpx-linux.c: Regenerate.
4682 * features/i386/i386-mpx.c: Regenerate.
4683 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
4684 * regformats/i386/amd64-mpx.dat: Regenerate.
4685 * regformats/i386/i386-mpx-linux.dat: Regenerate.
4686 * regformats/i386/i386-mpx.dat: Regenerate.
4687
4688 2016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
4689
4690 * amd64-linux-tdep.c (features/i386/amd64-avx-mpx-linux.c):
4691 New include.
4692 (amd64_linux_core_read_description): Add case for
4693 X86_XSTATE_AVX_MPX_MASK.
4694 (_initialize_amd64_linux_tdep): Call initialize_tdesc_amd64_avx_mpx_linux.
4695 * amd64-linux-tdep.h (tdesc_amd64_avx_mpx_linux): New definition.
4696 * amd64-tdep.c (features/i386/amd64-avx-mpx.c): New include.
4697 (amd64_target_description): Add case for X86_XSTATE_AVX_MPX_MASK.
4698 (_initialize_amd64_tdep): Call initialize_tdesc_amd64_avx_mpx.
4699 * common/x86-xstate.h (X86_XSTATE_MPX_MASK): Remove AVX bits.
4700 (X86_XSTATE_AVX_MPX_MASK): New case.
4701 * features/Makefile (i386/i386-avx-mpx, i386/i386-avx-mpx-linux)
4702 (i386/amd64-avx-mpx, i386/amd64-avx-mpx-linux): New rules.
4703 (i386/i386-avx-mpx-expedite, i386/i386-avx-mpx-linux-expedite)
4704 (i386/amd64-avx-mpx-expedite, i386/amd64-avx-mpx-linux-expedite):
4705 New expedites.
4706 * i386-linux-tdep.c (features/i386/i386-avx-mpx-linux.c): New
4707 include.
4708 (i386_linux_core_read_description): Add case
4709 X86_XSTATE_AVX_MPX_MASK.
4710 (_initialize_i386_linux_tdep): Call
4711 initialize_tdesc_i386_avx_mpx_linux.
4712 * i386-linux-tdep.h (tdesc_i386_avx_mpx_linux): New include.
4713 * i386-tdep.c (features/i386/i386-avx-mpx.c): New include.
4714 (i386_target_description): Add case for X86_XSTATE_AVX_MPX_MASK.
4715 * x86-linux-nat.c (x86_linux_read_description): Add case for
4716 X86_XSTATE_AVX_MPX_MASK.
4717 * features/i386/amd64-avx-mpx-linux.xml: New file.
4718 * features/i386/i386-avx-mpx-linux.xml: New file.
4719 * features/i386/i386-avx-mpx.xml: New file.
4720 * features/i386/amd64-avx-mpx.xml: New file.
4721 * features/i386/amd64-avx-mpx-linux.c: Generated.
4722 * features/i386/amd64-avx-mpx.c: Generated.
4723 * features/i386/i386-avx-mpx-linux.c: Generated.
4724 * features/i386/i386-avx-mpx.c: Generated.
4725 * regformats/i386/amd64-avx-mpx-linux.dat: Generated.
4726 * regformats/i386/amd64-avx-mpx.dat: Generated.
4727 * regformats/i386/i386-avx-mpx-linux.dat: Generated.
4728 * regformats/i386/i386-avx-mpx.dat: Generated.
4729
4730 2016-04-18 Pedro Alves <palves@redhat.com>
4731
4732 * ptrace.m4 (GDB_AC_PTRACE): Don't run tests in C++ mode.
4733 * configure: Regenerate.
4734
4735 2016-04-18 Martin Galvan <martin.galvan@tallertechnologies.com>
4736
4737 * valops.c (value_addr): For C++ references, set the copied value's
4738 enclosing_type as well.
4739
4740 2016-04-18 Yao Qi <yao.qi@linaro.org>
4741
4742 Revert:
4743 2016-04-15 Yao Qi <yao.qi@linaro.org>
4744
4745 * arm-tdep.c (thumb_stack_frame_destroyed_p): Return zero if
4746 PC is far from the end of function.
4747
4748 2016-04-16 Pedro Alves <palves@redhat.com>
4749
4750 * ada-exp.y (yydefred): Define as ada_yydefred.
4751
4752 2016-04-15 Pedro Alves <palves@redhat.com>
4753
4754 * ada-lang.c (ada_lookup_struct_elt_type): Constify 'type_str' and
4755 'name_str' locals.
4756
4757 2016-04-15 Pedro Alves <palves@redhat.com>
4758
4759 * btrace.c (pt_btrace_insn_flags): Change return type to
4760 btrace_insn_flags. Use btrace_insn_flags for local.
4761
4762 2016-04-15 Pedro Alves <palves@redhat.com>
4763
4764 * nat/linux-ptrace.h [__mips__] (GDB_ARCH_IS_TRAP_BRKPT): Also
4765 accept TRAP_BRKPT.
4766 [__mips__] (GDB_ARCH_IS_TRAP_HWBKPT): Also accept TRAP_HWBKPT.
4767
4768 2016-04-15 Yao Qi <yao.qi@linaro.org>
4769
4770 * arm-tdep.c (thumb_stack_frame_destroyed_p): Return zero if
4771 PC is far from the end of function.
4772
4773 2016-04-14 Pedro Alves <palves@redhat.com>
4774
4775 * cli/cli-cmds.c (alias_usage_error): New function.
4776 (alias_command): Use it.
4777 * ctf.c (ctf_save_metadata_header): Inline metadata_fmt local in
4778 ctf_save_write_metadata call.
4779
4780 2016-04-14 Pedro Alves <palves@redhat.com>
4781
4782 * ada-typeprint.c (print_fixed_point_type): Don't pass float as
4783 argument to function expecting LONGEST.
4784 * value.c (unpack_long): Add casts to LONGEST.
4785
4786 2016-04-13 Luis Machado <lgustavo@codesourcery.com>
4787
4788 * exec.c (exec_file_locate_attach): Guard a couple functions
4789 that can throw errors.
4790 (exception_print_same): New helper function.
4791
4792 2016-04-13 Pedro Alves <palves@redhat.com>
4793
4794 PR remote/19840
4795 * remote.c (struct remote_state) <last_resume_exec_dir>: New
4796 field.
4797 (new_remote_state): Default last_resume_exec_dir to EXEC_FORWARD.
4798 (remote_open_1): Reset last_resume_exec_dir to EXEC_FORWARD.
4799 (remote_resume): Store the last execution direction.
4800 (remote_execution_direction): New function.
4801 (init_remote_ops): Install it as to_execution_direction target_ops
4802 method.
4803
4804 2016-04-12 Pedro Alves <palves@redhat.com>
4805
4806 * common/common-exceptions.h (GDB_XCPT_TRY): Update comment.
4807 [__cplusplus] (GDB_XCPT): Define as GDB_XCPT_TRY.
4808
4809 2016-04-12 Pedro Alves <palves@redhat.com>
4810
4811 * common/common-exceptions.c (struct catcher) <buf>: Now a
4812 'jmp_buf' instead of SIGJMP_BUF.
4813 (exceptions_state_mc_init): Change return type to 'jmp_buf'.
4814 (throw_exception): Use longjmp instead of SIGLONGJMP.
4815 * common/common-exceptions.h: Include <setjmp.h> instead of
4816 "gdb_setjmp.h".
4817 (exceptions_state_mc_init): Change return type to 'jmp_buf'.
4818 [GDB_XCPT == GDB_XCPT_SJMP] (TRY): Use setjmp instead of
4819 SIGSETJMP.
4820 * cp-support.c: Include "gdb_setjmp.h".
4821
4822 2016-04-12 Pedro Alves <palves@redhat.com>
4823
4824 * common/common-exceptions.c (exception_rethrow): Remove
4825 prepare_to_throw_exception call.
4826 * common/common-exceptions.h (prepare_to_throw_exception): Delete
4827 declaration.
4828 * exceptions.c (prepare_to_throw_exception): Delete.
4829
4830 2016-04-12 Pedro Alves <palves@redhat.com>
4831
4832 * target.c (target_check_pending_interrupt): Delete.
4833 * target.h (struct target_ops) <to_check_pending_interrupt>:
4834 Remove method.
4835 (target_check_pending_interrupt): Remove declaration.
4836 * target-delegates.c: Regenerate.
4837
4838 2016-04-12 Pedro Alves <palves@redhat.com>
4839
4840 * defs.h: Update comments on SIGINT handling.
4841 (immediate_quit): Delete declaration.
4842 * event-loop.c (call_async_signal_handler): Delete.
4843 * event-loop.h (call_async_signal_handler): Delete declaration.
4844 (mark_async_signal_handler): Update comments.
4845 (gdb_call_async_signal_handler): Delete declaration.
4846 * event-top.c (handle_sigint): Call mark_async_signal_handler
4847 instead of gdb_call_async_signal_handler.
4848 * exceptions.c (prepare_to_throw_exception): Remove reference to
4849 immediate_quit.
4850 (exception_fprintf): Remove comments about immediate_quit.
4851 * mingw-hdep.c (sigint_event, sigint_handler): Delete.
4852 (gdb_select): Don't wait on sigint_event.
4853 (gdb_call_async_signal_handler): Delete.
4854 (_initialize_mingw_hdep): Delete.
4855 * posix-hdep.c (gdb_call_async_signal_handler): Delete.
4856 * utils.c (immediate_quit): Delete.
4857
4858 2016-04-12 Pedro Alves <palves@redhat.com>
4859
4860 * defs.h (quit_handler_ftype, quit_handler)
4861 (make_cleanup_override_quit_handler, default_quit_handler): New.
4862 (QUIT): Adjust comments.
4863 * event-top.c (default_quit_handler): New function.
4864 (quit_handler): New global.
4865 (struct quit_handler_cleanup_data): New.
4866 (restore_quit_handler, restore_quit_handler_dtor)
4867 (make_cleanup_override_quit_handler): New.
4868 (async_request_quit): Call QUIT.
4869 * remote.c (struct remote_state) <got_ctrlc_during_io>: New field.
4870 (async_sigint_remote_twice_token, async_sigint_remote_token):
4871 Delete.
4872 (remote_close): Update comments.
4873 (remote_start_remote): Don't set immediate_quit. Set starting_up
4874 earlier.
4875 (remote_serial_quit_handler, remote_unpush_and_throw): New
4876 functions.
4877 (remote_open_1): Clear got_ctrlc_during_io. Set
4878 remote_async_terminal_ours_p unconditionally.
4879 (async_initialize_sigint_signal_handler)
4880 (async_handle_remote_sigint, async_handle_remote_sigint_twice)
4881 (remote_check_pending_interrupt, async_remote_interrupt)
4882 (async_remote_interrupt_twice)
4883 (async_cleanup_sigint_signal_handler, ofunc)
4884 (sync_remote_interrupt, sync_remote_interrupt_twice): Delete.
4885 (remote_terminal_inferior, remote_terminal_ours): Remove async
4886 checks.
4887 (remote_wait_as): Don't install a SIGINT handler in sync mode.
4888 (readchar, remote_serial_write): Override the quit handler with
4889 remote_serial_quit_handler.
4890 (getpkt_or_notif_sane_1): Don't call QUIT.
4891 (initialize_remote_ops): Don't install
4892 remote_check_pending_interrupt.
4893 (_initialize_remote): Don't create async_sigint_remote_token and
4894 async_sigint_remote_twice_token.
4895 * ser-base.c (ser_base_wait_for): Call QUIT and use
4896 interruptible_select.
4897 (ser_base_write): Call QUIT.
4898 * ser-go32.c (dos_readchar, dos_write): Call QUIT.
4899 * ser-unix.c (wait_for): Don't use VTIME. Always take the
4900 gdb_select path, but call QUIT and interruptible_select.
4901 * utils.c (maybe_quit): Call the current quit handler. Don't call
4902 target_check_pending_interrupt.
4903 (defaulted_query, prompt_for_continue): Override the quit handler
4904 with the default quit handler.
4905
4906 2016-04-12 Pedro Alves <palves@redhat.com>
4907
4908 * tui/tui-hooks.c (tui_target_has_run): Delete.
4909 (tui_about_to_proceed): Delete.
4910 (tui_about_to_proceed_observer): Delete.
4911 (tui_install_hooks, tui_remove_hooks): Don't install/remove an
4912 about_to_proceed observer.
4913
4914 2016-04-12 Pedro Alves <palves@redhat.com>
4915
4916 * mi/mi-interp.c (mi_new_thread): Put
4917 target_terminal_ours_for_output in effect while outputting.
4918 (mi_thread_exit): Use target_terminal_ours_for_output instead of
4919 target_terminal_ours.
4920 (mi_record_changed, mi_inferior_added, mi_inferior_appeared)
4921 (mi_inferior_exit, mi_inferior_removed, mi_traceframe_changed)
4922 (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified)
4923 (mi_breakpoint_created, mi_breakpoint_deleted)
4924 (mi_breakpoint_modified, mi_solib_loaded, mi_solib_unloaded)
4925 (mi_command_param_changed, mi_memory_changed)
4926 (report_initial_inferior): Use target_terminal_ours_for_output
4927 instead of target_terminal_ours. Restore terminal settings.
4928 * mi/mi-main.c (mi_execute_command): Use
4929 target_terminal_ours_for_output instead of target_terminal_ours.
4930 Restore terminal settings.
4931
4932 2016-04-12 Pedro Alves <palves@redhat.com>
4933
4934 PR gdb/19828
4935 * gnu-nat.c (inf_validate_task_sc): Don't call
4936 target_terminal_ours / target_terminal_inferior around query.
4937 * i386-tdep.c (i386_record_lea_modrm, i386_process_record): Don't
4938 call target_terminal_ours / target_terminal_inferior around
4939 yquery.
4940 * linux-record.c (record_linux_system_call): Don't call
4941 target_terminal_ours / target_terminal_inferior around yquery.
4942 * nto-procfs.c (interrupt_query): Don't call target_terminal_ours
4943 / target_terminal_inferior around query.
4944 * record-full.c (record_full_check_insn_num): Remove
4945 'set_terminal' parameter. Don't call target_terminal_ours /
4946 target_terminal_inferior around query.
4947 (record_full_message, record_full_registers_change)
4948 (record_full_xfer_partial): Adjust.
4949 * remote.c (interrupt_query): Don't call target_terminal_ours /
4950 target_terminal_inferior around query.
4951 * utils.c (defaulted_query): Install cleanup to restore target
4952 terminal. Put target_terminal_ours_for_output in effect while
4953 defaulted producing, and target_terminal_ours in in effect while
4954 handling input.
4955 (prompt_for_continue): Install cleanup to restore target terminal.
4956 Put target_terminal_ours in in effect while handling input.
4957
4958 2016-04-12 Pedro Alves <palves@redhat.com>
4959
4960 * utils.c (defaulted_query, prompt_for_continue): Free temporary
4961 strings with cleanups, instead of xfree.
4962
4963 2016-04-12 Pedro Alves <palves@redhat.com>
4964
4965 * utils.c (vwarning, internal_vproblem): Use
4966 make_cleanup_restore_target_terminal and
4967 target_terminal_ours_for_output.
4968
4969 2016-04-12 Pedro Alves <palves@redhat.com>
4970
4971 * infcmd.c (post_create_inferior, prepare_one_step): Use
4972 target_terminal_ours_for_output instead of target_terminal_ours.
4973
4974 2016-04-12 Pedro Alves <palves@redhat.com>
4975
4976 * exceptions.c (print_flush): Use target_terminal_ours_for_output
4977 instead of target_terminal_ours, and restore target terminal with
4978 a cleanup.
4979
4980 2016-04-12 Pedro Alves <palves@redhat.com>
4981
4982 * cp-support.c (gdb_demangle): Use target_terminal_ours_for_output
4983 instead of target_terminal_ours, and restore target terminal with
4984 a cleanup.
4985
4986 2016-04-12 Pedro Alves <palves@redhat.com>
4987
4988 * ada-lang.c (type_as_string, type_as_string_and_cleanup): New
4989 functions.
4990 (ada_lookup_struct_elt_type): Use type_as_string_and_cleanup.
4991
4992 2016-04-12 Pedro Alves <palves@redhat.com>
4993
4994 * ser-base.c (fd_event): Retry read_prim on EINTR.
4995 (do_ser_base_readchar): Retry read_prim on EINTR.
4996 (ser_base_write): Retry write_prim on EINTR.
4997 * ser-unix.c (ser_unix_read_prim): Don't retry on EINTR here.
4998 (ser_unix_write_prim): Remove comment.
4999
5000 2016-04-12 Pedro Alves <palves@redhat.com>
5001
5002 * remote.c (remote_pass_ctrlc): New function.
5003 (init_remote_ops): Install it.
5004 * target.c (target_terminal_inferior): Pass pending Ctrl-C to the
5005 target.
5006 (target_pass_ctrlc, default_target_pass_ctrlc): New functions.
5007 * target.h (struct target_ops) <to_pass_ctrlc>: New method.
5008 (target_pass_ctrlc, default_target_pass_ctrlc): New declarations.
5009 * target-delegates.c: Regenerate.
5010
5011 2016-04-12 Pedro Alves <palves@redhat.com>
5012
5013 * infcmd.c (interrupt_target_1): Call target_stop is in non-stop
5014 mode.
5015 * linux-nat.c (linux_nat_interrupt): Delete.
5016 (linux_nat_add_target): Don't install linux_nat_interrupt.
5017 * remote.c (remote_interrupt_ns): Change return type to void.
5018 Throw error if interrupting the target is not supported.
5019 (remote_interrupt): Don't call the remote_stop_ns/remote_stop_as.
5020
5021 2016-04-12 Pedro Alves <palves@redhat.com>
5022
5023 * defs.h (clear_quit_flag): Remove declaration.
5024 * extension-priv.h (struct extension_language_ops)
5025 <clear_quit_flag>: Remove field and update comments.
5026 * extension.c (clear_quit_flag): Delete.
5027 * guile/guile.c (guile_extension_ops): Adjust.
5028 * python/python.c (python_extension_ops): Adjust.
5029 (gdbpy_clear_quit_flag): Delete.
5030
5031 2016-04-12 Pedro Alves <palves@redhat.com>
5032
5033 * main.c (captured_main): Don't clear the quit flag.
5034
5035 2016-04-12 Pedro Alves <palves@redhat.com>
5036
5037 * exceptions.c (prepare_to_throw_exception): Don't clear the quit
5038 flag.
5039
5040 2016-04-12 Pedro Alves <palves@redhat.com>
5041
5042 * event-top.c (command_handler): Don't call clear_quit_flag.
5043
5044 2016-04-12 Pedro Alves <palves@redhat.com>
5045
5046 * remote-sim.c (gdb_os_poll_quit): Don't call clear_quit_flag.
5047 * remote.c (remote_wait_as): Don't call clear_quit_flag.
5048
5049 2016-04-12 Pedro Alves <palves@redhat.com>
5050
5051 * python/python.c: Include "ser-event.h".
5052 (gdbpy_event_fds): Delete.
5053 (gdbpy_serial_event): New.
5054 (gdbpy_run_events): Change prototype. Use serial_event_clear
5055 instead of serial_readchar.
5056 (gdbpy_post_event): Use serial_event_set instead of serial_write.
5057 (gdbpy_initialize_events): Use make_serial_event instead of
5058 serial_pipe.
5059
5060 2016-04-12 Pedro Alves <palves@redhat.com>
5061
5062 * defs.h: Extend QUIT-related comments to mention
5063 interruptible_select.
5064 (quit_serial_event_set, quit_serial_event_clear): Declare.
5065 * event-top.c: Include "ser-event.h" and "gdb_select.h".
5066 (quit_serial_event): New global.
5067 (async_init_signals): Make quit_serial_event.
5068 (quit_serial_event_set, quit_serial_event_clear)
5069 (quit_serial_event_fd, interruptible_select): New functions.
5070 * extension.c (set_quit_flag): Set the quit serial event.
5071 (check_quit_flag): Clear the quit serial event.
5072 * gdb_select.h (interruptible_select): New declaration.
5073 * guile/scm-ports.c (ioscm_input_waiting): Use
5074 interruptible_select instead of gdb_select.
5075 * top.c (gdb_readline_no_editing): Likewise.
5076 * ui-file.c (stdio_file_read): Likewise.
5077
5078 2016-04-12 Pedro Alves <palves@redhat.com>
5079
5080 * event-loop.c: Include "ser-event.h".
5081 (async_signal_handlers_serial_event): New global.
5082 (async_signals_handler, initialize_async_signal_handlers): New
5083 functions.
5084 (mark_async_signal_handler): Set
5085 async_signal_handlers_serial_event.
5086 (invoke_async_signal_handlers): Clear
5087 async_signal_handlers_serial_event.
5088 * event-top.c (async_init_signals): Call
5089 initialize_async_signal_handlers.
5090
5091 2016-04-12 Pedro Alves <palves@redhat.com>
5092
5093 * Makefile.in (SFILES): Add ser-event.c.
5094 (HFILES_NO_SRCDIR): Add ser-event.h.
5095 (COMMON_OBS): Add ser-event.o.
5096 * ser-event.c, ser-event.h: New files.
5097 * serial.c (new_serial): New function, factored out from
5098 (serial_fdopen_ops): ... this.
5099 (serial_open_ops_1): New function, factored out from
5100 (serial_open): ... this.
5101 (serial_open_ops): New function.
5102 * serial.h (struct serial): Forware declare.
5103 (serial_open_ops): New declaration.
5104
5105 2016-04-12 Pedro Alves <palves@redhat.com>
5106
5107 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
5108 Remove references to name.
5109 * serial.h (struct serial) <name>: Delete.
5110
5111 2016-04-12 Pedro Alves <palves@redhat.com>
5112
5113 * remote-fileio.c (sigint_fileio_token, remote_fio_no_longjmp):
5114 Delete.
5115 (async_remote_fileio_interrupt): Delete.
5116 (remote_fileio_ctrl_c_signal_handler): Don't call the async signal
5117 handler. Instead just always set the ctrl_c flag.
5118 (remote_fileio_reply): Clear remote_fio_ctrl_c_flag before
5119 re-enabling the SIGINT handler.
5120 (remote_fileio_func_open, remote_fileio_func_close)
5121 (remote_fileio_func_read, remote_fileio_func_write)
5122 (remote_fileio_func_lseek, remote_fileio_func_rename)
5123 (remote_fileio_func_unlink, remote_fileio_func_stat)
5124 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
5125 (remote_fileio_func_isatty, remote_fileio_func_system)
5126 (remote_fileio_request): Remove references to
5127 remote_fio_no_longjmp.
5128 (initialize_remote_fileio): Don't create an async signal handler.
5129
5130 2016-04-12 Pedro Alves <palves@redhat.com>
5131
5132 * event-top.c (stdin_event_handler): Call QUIT;
5133 (prompt_for_continue): Don't run with immediate_quit set.
5134
5135 2016-04-12 Pedro Alves <palves@redhat.com>
5136
5137 * tui/tui-io.c (tui_redisplay_readline): Check
5138 gdb_in_secondary_prompt_p instead of immediate_quit.
5139 * tui/tui.c: Include top.h.
5140 (tui_rl_startup_hook): Check gdb_in_secondary_prompt_p instead of
5141 immediate_quit.
5142
5143 2016-04-12 Pedro Alves <palves@redhat.com>
5144
5145 * top.c (read_command_file): Inline command_loop here.
5146 (command_loop): Delete.
5147
5148 2016-04-12 Pedro Alves <palves@redhat.com>
5149
5150 * top.c: Include "gdb_select.h".
5151 (gdb_readline_no_editing): Wait for input with gdb_select instead
5152 of blocking in fgetc.
5153 (command_line_input): Don't set immediate_quit.
5154
5155 2016-04-08 Martin Galvan <martin.galvan@tallertechnologies.com>
5156
5157 * value.c (value_next): Make pass-by-reference parameters const-correct.
5158 (value_parent): Likewise.
5159 (value_enclosing_type): Likewise.
5160 (value_lazy): Likewise.
5161 (value_stack): Likewise.
5162 (value_embedded_offset): Likewise.
5163 (value_pointed_to_offset): Likewise.
5164 (value_raw_address): Likewise.
5165 (deprecated_value_modifiable): Likewise.
5166 (value_free_to_mark): Likewise.
5167 (value_release_to_mark): Likewise.
5168 (internalvar_name): Likewise.
5169 (readjust_indirect_value_type): Likewise.
5170 (value_initialized): Likewise.
5171 * value.h (value_next): Likewise.
5172 (value_parent): Likewise.
5173 (value_enclosing_type): Likewise.
5174 (value_lazy): Likewise.
5175 (value_stack): Likewise.
5176 (value_embedded_offset): Likewise.
5177 (value_pointed_to_offset): Likewise.
5178 (value_raw_address): Likewise.
5179 (deprecated_value_modifiable): Likewise.
5180 (value_free_to_mark): Likewise.
5181 (value_release_to_mark): Likewise.
5182 (internalvar_name): Likewise.
5183 (readjust_indirect_value_type): Likewise.
5184 (value_initialized): Likewise.
5185
5186 2016-04-07 Yao Qi <yao.qi@linaro.org>
5187
5188 * record-full.c (record_full_insert_breakpoint): Return
5189 early if entry on the address is found in
5190 record_full_breakpoints.
5191
5192 2016-04-07 Yao Qi <yao.qi@linaro.org>
5193
5194 * record-full.c (record_full_insert_breakpoint): Set
5195 bp_tgt->reqstd_address and bp_tgt->placed_size.
5196
5197 2016-04-06 Don Breazeal <donb@codesourcery.com>
5198
5199 * value.c (value_actual_type): Don't try to get rtti type
5200 of the value if it has been optimized out.
5201 (value_optimized_out): If a memory access error occurs,
5202 just check vaue->optimized_out.
5203
5204 2016-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5205
5206 Revert the previous commit adding unknown_v_replies_ok.
5207
5208 2016-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5209
5210 * remote.c (struct remote_state): New field unknown_v_replies_ok.
5211 (packet_config_support): Read it.
5212 (remote_start_remote): Set it.
5213
5214 2016-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5215
5216 * remote.c: Revert check-in by a mistake in the previous commit.
5217
5218 2016-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5219 Pedro Alves <palves@redhat.com>
5220
5221 * exec.c (exec_file_locate_attach): Print warning for unsupported
5222 target_pid_to_exec_file.
5223 * symfile-mem.c (add_vsyscall_page): Remove the "file" command
5224 message part.
5225
5226 2016-04-04 Simon Marchi <simon.marchi@ericsson.com>
5227
5228 * cli/cli-decode.c (help_cmd_list): Fix function doc and remove
5229 trailing spaces.
5230
5231 2016-04-01 Artemiy Volkov <artemiyv@acm.org>
5232
5233 PR gdb/19820
5234 * eval.c (evaluate_subexp_standard): Allow TYPE_CODE_ENUM to be
5235 the type of BINOP_REPEAT's second operand.
5236
5237 2016-03-31 Yichao Yu <yyc1992@gmail.com>
5238
5239 PR gdb/19858
5240 * jit.c (jit_breakpoint_re_set_internal): Return 0 if we already
5241 got the breakpoint at the right address.
5242 (jit_inferior_created): New function.
5243 (_initialize_jit): Install jit_inferior_created as
5244 inferior_created observer.
5245
5246 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
5247
5248 * NEWS: Mention support for tracepoints on powerpc*-linux.
5249
5250 2016-03-31 Catalin Udma <catalin.udma@freescale.com>
5251
5252 PR python/19743
5253 * python/python.c (execute_gdb_command): Use console uiout
5254 when executing gdb command.
5255 * utils.c (restore_ui_out_closure): New structure.
5256 (do_restore_ui_out): New function.
5257 (make_cleanup_restore_ui_out): Likewise.
5258 * utils.h (make_cleanup_restore_ui_out): Declare.
5259
5260 2016-03-31 Pedro Alves <palves@redhat.com>
5261
5262 * NEWS: Mention that support for "target m32rsdi", "target mips",
5263 "target pmon", "target ddb", "target rockhopper", and "target lsi"
5264 was removed.
5265 * Makefile.in (ALL_TARGET_OBS): Remove remote-m32r-sdi.o and
5266 remote-mips.o.
5267 (ALLDEPFILES): Remove remote-m32r-sdi.c and remote-mips.c.
5268 * configure.tgt: Remove all references to remote-m32r-sdi.o and
5269 remote-mips.o.
5270 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Delete
5271 function.
5272 * mips-tdep.h (deprecated_mips_set_processor_regs_hack): Delete
5273 declaration.
5274 * remote-m32r-sdi.c, remote-mips.c: Delete files.
5275 * symfile.c (generic_load, generic_load): Remove comments.
5276
5277 2016-03-30 Yao Qi <yao.qi@linaro.org>
5278
5279 * arm-tdep.c (arm_epilogue_frame_this_id): Check 'func' against
5280 0 rather than NULL.
5281
5282 2016-03-30 Yao Qi <yao.qi@linaro.org>
5283
5284 * arm-tdep.c: (arm_make_epilogue_frame_cache): New function.
5285 (arm_epilogue_frame_this_id): New function.
5286 (arm_epilogue_frame_prev_register): New function.
5287 (arm_epilogue_frame_sniffer): New function.
5288 (arm_epilogue_frame_unwind): New.
5289 (arm_gdbarch_init): Append unwinder arm_epilogue_frame_unwind.
5290
5291 2016-03-30 Yao Qi <yao.qi@linaro.org>
5292
5293 * arm-tdep.c (arm_stack_frame_destroyed_p): Rename it ...
5294 (arm_stack_frame_destroyed_p_1): ... here. Don't call
5295 arm_pc_is_thumb.
5296 (arm_stack_frame_destroyed_p): Call
5297 thumb_stack_frame_destroyed_p and
5298 arm_stack_frame_destroyed_p_1.
5299
5300 2016-03-30 Doug Evans <dje@google.com>
5301
5302 * python/py-utils.c (host_string_to_python_string): New function.
5303 * python/python-internal.h (host_string_to_python_string): Declare it.
5304 * python/py-*.c (*): Update all calls to
5305 PyString_Decode (str, strlen (str), host_charset (), NULL);
5306 to use host_string_to_python_string instead.
5307
5308 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
5309
5310 * remote.c (remote_check_symbols): Allocate own buffer for reply.
5311
5312 2016-03-29 Max Filippov <jcmvbkbc@gmail.com>
5313
5314 * xtensa-tdep.c (xtensa_frame_cache): Change op1 type to LONGEST.
5315 Use safe_read_memory_integer instead of read_memory_integer.
5316
5317 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
5318
5319 * NEWS: Mention support for tracepoints on s390*-linux.
5320
5321 2016-03-29 Don Breazeal <donb@codesourcery.com>
5322
5323 * gdb/value.c (value_actual_type): Fix formatting issue.
5324
5325 2016-03-23 Yao Qi <yao.qi@linaro.org>
5326
5327 * gdbarch.sh (software_single_step): Remove comments.
5328 * gdbarch.h: Regenerated.
5329
5330 2016-03-21 Yao Qi <yao.qi@linaro.org>
5331
5332 * arm-tdep.c (arm_record_media): New.
5333 (arm_record_ld_st_reg_offset): Call arm_record_media.
5334
5335 2016-03-21 Yao Qi <yao.qi@linaro.org>
5336
5337 * arm-linux-tdep.c (arm_canonicalize_syscall): Canonicalize
5338 more syscalls.
5339
5340 2016-03-18 Yao Qi <yao.qi@linaro.org>
5341
5342 * sparc-tdep.c (sparc_software_single_step): Make it static.
5343 * sparc-tdep.h (sparc_software_single_step): Remove declaration.
5344
5345 2016-03-18 Yao Qi <yao.qi@linaro.org>
5346
5347 * spu-tdep.c (spu_software_single_step): Throw error when
5348 target_read_memory fails.
5349
5350 2016-03-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5351
5352 * linux-thread-db.c (check_pid_namespace_match): Extend the message.
5353
5354 2016-03-17 Pedro Alves <palves@redhat.com>
5355 Don Breazeal <donb@codesourcery.com>
5356
5357 PR remote/19496
5358 * infcmd.c (notice_new_inferior): Use the 'leave_running' argument
5359 instead of checking the 'non_stop' global.
5360 * remote.c (remote_add_thread): New parameter 'executing'. Use it
5361 to set the new thread's executing state.
5362 (remote_notice_new_inferior): Rename parameter 'running' to
5363 'executing'. Always set the thread state to THREAD_RUNNING in
5364 non-stop mode, and to THREAD_STOPPED in all-stop mode. Pass
5365 EXECUTING to remote_add_thread and notice_new_inferior.
5366 (remote_update_thread_list): Update to pass executing state, not
5367 running state.
5368
5369 2016-03-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
5370
5371 * syscalls/s390-linux.xml: Add NUMA syscalls and new syscalls up
5372 to 374.
5373 * syscalls/s390x-linux.xml: Likewise.
5374
5375 2016-03-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
5376
5377 * linux-record.c (record_mem_at_reg): New helper function.
5378 (record_linux_system_call): Exploit new helper function where
5379 applicable.
5380
5381 2016-03-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
5382
5383 * linux-record.c: Fix whitespace issues; tabify, remove trailing
5384 spaces.
5385
5386 2016-03-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
5387
5388 * linux-record.c (record_linux_system_call): Add missing return
5389 statements to handling of pipe and pipe2 syscalls.
5390
5391 2016-03-16 Doug Evans <dje@google.com>
5392
5393 * xml-tdesc.c (tdesc_start_enum): Fix c++ build.
5394
5395 2016-03-16 Yao Qi <yao.qi@linaro.org>
5396
5397 * arm-linux-tdep.c (arm_linux_init_abi): Fix
5398 arm_linux_record_tdep.arg1, arm_linux_record_tdep.arg2 and
5399 arm_linux_record_tdep.arg3. Set arm_linux_record_tdep.arg4,
5400 arm_linux_record_tdep.arg5, arm_linux_record_tdep.arg6, and
5401 arm_linux_record_tdep.arg7.
5402
5403 2016-03-15 Keith Seitz <keiths@redhat.com>
5404
5405 PR breakpoints/18303
5406 * cp-namespace.c (cp_lookup_bare_symbol): Change assertion to
5407 look for "::" instead of simply ":".
5408 (cp_search_static_and_baseclasses): Return null_block_symbol for
5409 malformed input.
5410 Remove assertions.
5411 * cp-support.c (cp_find_first_component_aux): Do not return
5412 a prefix length for ':' unless the next character is also ':'.
5413
5414 2016-03-15 Doug Evans <dje@google.com>
5415
5416 * features/aarch64-core.xml (cpsr_flags): New flags type.
5417 (cpsr): Use it.
5418 * features/aarch64.c: Regenerate.
5419
5420 2016-03-15 Doug Evans <dje@google.com>
5421
5422 * features/i386/32bit-core.xml (i386_eflags): Remove "end" spec.
5423 * features/i386/32bit-sse.xml (i386_eflags): Ditto.
5424 * features/i386/64bit-core.xml (i386_eflags): Ditto.
5425 * features/i386/64bit-sse.xml (i386_eflags): Ditto.
5426 * features/i386/x32-core.xml (i386_eflags): Ditto.
5427
5428 2016-03-15 Doug Evans <dje@google.com>
5429 Wei-cheng Wang <cole945@gmail.com>
5430
5431 Extend flags to support multibit and enum bitfields.
5432 * NEWS: Document new features.
5433 * c-typeprint.c (c_type_print_varspec_prefix): Handle TYPE_CODE_FLAGS.
5434 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
5435 * gdbtypes.c (arch_flags_type): Don't assume all fields are one bit.
5436 (append_flags_type_field): New function.
5437 (append_flags_type_flag): Call it.
5438 * gdbtypes.h (append_flags_type_field): Declare.
5439 * target-descriptions.c (struct tdesc_type_flag): Delete.
5440 (enum tdesc_type_kind) <TDESC_TYPE_BOOL>: New enum value.
5441 (enum tdesc_type_kind) <TDESC_TYPE_ENUM>: Ditto.
5442 (struct tdesc_type) <u.f>: Delete.
5443 (tdesc_predefined_types): Add "bool".
5444 (tdesc_predefined_type): New function.
5445 (tdesc_gdb_type): Handle TDESC_TYPE_BOOL, TDESC_TYPE_ENUM.
5446 Update TDESC_TYPE_FLAGS support.
5447 (tdesc_free_type): Handle TDESC_TYPE_ENUM. Update TDESC_TYPE_FLAGS.
5448 (tdesc_create_flags): Update.
5449 (tdesc_create_enum): New function.
5450 (tdesc_add_field): Initialize start,end to -1.
5451 (tdesc_add_typed_bitfield): New function.
5452 (tdesc_add_bitfield): Call it.
5453 (tdesc_add_flag): Allow TDESC_TYPE_STRUCT. Update.
5454 (tdesc_add_enum_value): New function.
5455 (maint_print_c_tdesc_cmd): Fold TDESC_TYPE_FLAGS support into
5456 TDESC_TYPE_STRUCT. Handle TDESC_TYPE_ENUM.
5457 * target-descriptions.h (tdesc_create_enum): Declare.
5458 (tdesc_add_typed_bitfield, tdesc_add_enum_value): Declare.
5459 * valprint.c (generic_val_print_enum_1): New function.
5460 (generic_val_print_enum): Call it.
5461 (val_print_type_code_flags): Make static. Handle multibit bitfields
5462 and enum bitfields.
5463 * valprint.h (val_print_type_code_flags): Delete.
5464 * xml-tdesc.c (struct tdesc_parsing_data) <current_type_is_flags>:
5465 Delete. All uses removed.
5466 (tdesc_start_enum): New function.
5467 (tdesc_start_field): Handle multibit and enum bitfields.
5468 (tdesc_start_enum_value): New function.
5469 (enum_value_attributes, enum_children, enum_attributes): New static
5470 globals.
5471 (feature_children): Add "enum".
5472 * features/gdb-target.dtd (enum, evalue): New elements.
5473
5474 2016-03-15 Doug Evans <dje@google.com>
5475
5476 * target-descriptions.c (struct tdesc_type) <u.u.size>: Change type
5477 from LONGEST to int.
5478 (struct tdesc_type) <u.f.size>: Ditto.
5479 (tdesc_set_struct_size): Change type of "size" arg from LONGEST
5480 to int. Add assertion size > 0.
5481 (tdesc_create_flags): Ditto.
5482 * target-descriptions.h (tdesc_set_struct_size): Update.
5483 (tdesc_create_flags): Update.
5484 * xml-tdesc.c (MAX_FIELD_SIZE, MAX_FIELD_BITSIZE): New macros.
5485 (MAX_VECTOR_SIZE): New macro.
5486 (tdesc_start_struct): Catch conversion errors from LONGEST to int.
5487 (tdesc_start_flags, tdesc_start_field, tdesc_start_vector): Ditto.
5488
5489 2016-03-15 Doug Evans <dje@google.com>
5490
5491 * target-descriptions.c (maint_print_c_tdesc_cmd): Use "type" for
5492 TYPE_CODE_FLAGS instead of "field_type", for consistency.
5493 * features/i386/amd64-avx-linux.c: Regenerate.
5494 * features/i386/amd64-avx.c: Regenerate.
5495 * features/i386/amd64-avx512-linux.c: Regenerate.
5496 * features/i386/amd64-avx512.c: Regenerate.
5497 * features/i386/amd64-linux.c: Regenerate.
5498 * features/i386/amd64-mpx-linux.c: Regenerate.
5499 * features/i386/amd64-mpx.c: Regenerate.
5500 * features/i386/amd64.c: Regenerate.
5501 * features/i386/i386-avx-linux.c: Regenerate.
5502 * features/i386/i386-avx.c: Regenerate.
5503 * features/i386/i386-avx512-linux.c: Regenerate.
5504 * features/i386/i386-avx512.c: Regenerate.
5505 * features/i386/i386-linux.c: Regenerate.
5506 * features/i386/i386-mmx-linux.c: Regenerate.
5507 * features/i386/i386-mmx.c: Regenerate.
5508 * features/i386/i386-mpx-linux.c: Regenerate.
5509 * features/i386/i386-mpx.c: Regenerate.
5510 * features/i386/i386.c: Regenerate.
5511 * features/i386/x32-avx-linux.c: Regenerate.
5512 * features/i386/x32-avx.c: Regenerate.
5513 * features/i386/x32-avx512-linux.c: Regenerate.
5514 * features/i386/x32-avx512.c: Regenerate.
5515 * features/i386/x32-linux.c: Regenerate.
5516 * features/i386/x32.c: Regenerate.
5517
5518 2016-03-15 Pedro Alves <palves@redhat.com>
5519
5520 PR gdb/19676
5521 * linux-thread-db.c (try_thread_db_load_1): Leave
5522 info->td_ta_thr_iter_p NULL iff debugging a live process and we
5523 have /proc access.
5524 (find_new_threads_once): Assert that we have a non-NULL
5525 info->td_ta_thr_iter_p instead of checking whether the target has
5526 execution.
5527
5528 2016-03-15 Pedro Alves <palves@redhat.com>
5529
5530 PR gdb/19676
5531 * infrun.c (displaced_step_prepare): Also disable displaced
5532 stepping on NOT_SUPPORTED_ERROR.
5533 * linux-tdep.c (linux_displaced_step_location): If reading auxv
5534 fails, throw NOT_SUPPORTED_ERROR instead of generic error.
5535
5536 2016-03-13 Marcin Kościelnicki <koriakin@0x04.net>
5537
5538 * s390-linux-tdep.c (s390_gen_return_address): New function.
5539 (s390_gdbarch_init): Fill gen_return_address hook.
5540
5541 2016-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
5542
5543 * symmisc.c (maintenance_info_line_tables): New function.
5544 (maintenance_print_one_line_table): New function.
5545 (_initialize_symmisc): Register 'maint info line-table' command.
5546 * NEWS: Mention new command.
5547
5548 2016-03-11 Marcin Kościelnicki <koriakin@0x04.net>
5549
5550 * s390-linux-tdep.c (s390_ax_pseudo_register_collect): New function.
5551 (s390_ax_pseudo_register_push_stack): New function.
5552 (s390_gdbarch_init): Fill ax_pseudo_register_collect and
5553 ax_pseudo_register_push_stack hooks.
5554
5555 2016-03-10 Simon Marchi <simon.marchi@polymtl.ca>
5556
5557 * data-directory/Makefile.in (PYTHON_FILE_LIST): Install
5558 gdb/function/as_string.py.
5559 * python/lib/gdb/function/as_string.py: New file.
5560 * NEWS: Mention the new $_as_string function.
5561
5562 2016-03-09 Jose E. Marchesi <jose.marchesi@oracle.com>
5563
5564 * target.h: Fix doc string of target_can_use_hardware_watchpoint.
5565
5566 2016-03-09 Pedro Alves <palves@redhat.com>
5567
5568 * event-top.c (more_to_come): Delete.
5569 (struct readline_input_state): Delete.
5570 (readline_input_state): Delete.
5571 (get_command_line_buffer): New function.
5572 (command_handler): Update comments. Don't handle NULL commands
5573 here. Do not execute commented lines.
5574 (command_line_append_input_line): New function.
5575 (handle_line_of_input): New function, partly based on
5576 command_line_handler and command_line_input.
5577 (command_line_handler): Rewrite.
5578 * event-top.h (command_handler): New declaration.
5579 (command_loop): Defer command execution to command_handler.
5580 (command_line_input): Update comments. Simplify, using struct
5581 buffer and handle_line_of_input.
5582 * top.h (struct buffer): New forward declaration.
5583 (handle_line_of_input): New declaration.
5584
5585 2016-03-09 Pedro Alves <palves@redhat.com>
5586
5587 * event-top.c (command_line_handler): Use xfree + xstrdup instead
5588 of xrealloc + strcpy.
5589 * main.c (captured_main): Use xstrdup instead of xmalloc plus
5590 manual clear.
5591 * top.c (saved_command_line): Rewrite comment.
5592 (saved_command_line_size): Delete.
5593 (command_line_input): Use xfree + xstrdup instead of xrealloc +
5594 strcpy.
5595 * top.h (saved_command_line_size): Delete declaration.
5596
5597 2016-03-09 Pedro Alves <palves@redhat.com>
5598
5599 * event-top.c: Include buffer.h.
5600 (gdb_readline_no_editing_callback): Use struct buffer instead
5601 of xrealloc.
5602
5603 2016-03-09 Pedro Alves <palves@redhat.com>
5604
5605 * common/buffer.h (buffer_grow_char): New function.
5606 * top.c: Include buffer.h.
5607 (gdb_readline_no_editing): Rename 'prompt_arg' parameter to
5608 'prompt'. Use struct buffer instead of xrealloc.
5609
5610 2016-03-09 Pedro Alves <palves@redhat.com>
5611
5612 * defs.h (gdb_readline): Delete declaration.
5613 * top.c (gdb_readline): Rename to ...
5614 (gdb_readline_no_editing): ... this, and make static.
5615
5616 2016-03-09 Pedro Alves <palves@redhat.com>
5617
5618 * utils.c (prompt_for_continue): Update comments.
5619
5620 2016-03-09 Pedro Alves <palves@redhat.com>
5621
5622 * event-top.c (async_annotation_suffix): Delete.
5623 (top_level_prompt, command_line_handler): Don't use
5624 'async_annotation_suffix' and simplify.
5625 * event-top.h (async_annotation_suffix): Delete declaration.
5626 (init_main): Remove reference to 'async_annotation_suffix'.
5627
5628 2016-03-09 Pedro Alves <palves@redhat.com>
5629
5630 * event-top.c (gdb_readline2): Rename to ...
5631 (gdb_readline_no_editing_callback): ... this.
5632 (change_line_handler, stdin_event_handler)
5633 (gdb_setup_readline): Adjust.
5634 * event-top.h (gdb_readline2): Rename to ...
5635 (gdb_readline_no_editing_callback): ... this, and move closer to
5636 other readline-related declarations.
5637 * mi/mi-interp.c (mi_interpreter_resume): Adjust.
5638
5639 2016-03-09 Pedro Alves <palves@redhat.com>
5640
5641 * top.c (window_hook): Delete.
5642 (command_loop): Remove references to window_hook.
5643
5644 2016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
5645
5646 * corefile.c (safe_read_memory_unsigned_integer): New function.
5647 * gdbcore.h (safe_read_memory_unsigned_integer): New prototype.
5648 * rs6000-tdep.c (rs6000_frame_cache): Read backchain as unsigned.
5649
5650 2016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
5651
5652 * rs6000-tdep.c: Add "ax.h" and "ax-gdb.h" includes.
5653 (rs6000_gen_return_address): New function.
5654 (rs6000_gdbarch_init): Wire in the above.
5655
5656 2016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
5657
5658 * rs6000-tdep.c (rs6000_ax_pseudo_register_collect): New function.
5659 (rs6000_gdbarch_init): Wire in the above.
5660
5661 2016-03-09 Andreas Arnez <arnez@linux.vnet.ibm.com>
5662
5663 * s390-linux-tdep.c (s390_analyze_prologue): Ignore BRC and BRCL
5664 instructions that do nothing or are conditional traps.
5665
5666 2016-03-09 Andreas Arnez <arnez@linux.vnet.ibm.com>
5667
5668 * s390-linux-tdep.c (s390_prologue_frame_unwind_cache): Store
5669 frame func's PC in info->func before any other failure can occur.
5670 (s390_frame_this_id): Use frame_id_build_unavailable_stack if
5671 info->func has been filled out.
5672
5673 2016-03-09 Pedro Alves <palves@redhat.com>
5674
5675 * osabi.c (gdb_osabi_names): Avoid spaces in osabi names.
5676
5677 2016-03-09 Pedro Alves <palves@redhat.com>
5678
5679 * frv-tdep.c (frv_gdbarch_init): Handle bfd_mach_fr300.
5680
5681 2016-03-09 Pedro Alves <palves@redhat.com>
5682
5683 * cris-tdep.c (cris_gdbarch_init): Return 0 if the info's byte
5684 order is BFD_ENDIAN_BIG or if the cris version is unsupported.
5685
5686 2016-03-09 Pedro Alves <palves@redhat.com>
5687
5688 * doublest.c: Extend comments.
5689 (floatformat_to_doublest, floatformat_from_doublest): Copy the
5690 floatformat's total size, not the host type's size.
5691
5692 2016-03-09 Pedro Alves <palves@redhat.com>
5693
5694 * doublest.c (floatformat_totalsize_bytes): New function.
5695 (floatformat_from_type): Assert that the type's length is at least
5696 as long as the floatformat's totalsize.
5697 * doublest.h (floatformat_totalsize_bytes): New declaration.
5698 * gdbtypes.c (arch_float_type): Assert that the type's length is
5699 at least as long as the floatformat's totalsize.
5700
5701 2016-03-09 Pedro Alves <palves@redhat.com>
5702
5703 * hppa-linux-tdep.c (hppa_linux_init_abi): Set the long double
5704 format to floatformats_ieee_double.
5705
5706 2016-03-07 Pedro Alves <palves@redhat.com>
5707
5708 * mips-tdep.c (mips_gdbarch_init): Check whether info.abfd is NULL
5709 before calling bfd_get_flavour.
5710
5711 2016-03-05 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
5712
5713 * avr-tdep.c (AVR_LAST_ARG_REGNUM): Define.
5714 (avr_push_dummy_call): Correct last needed argument register.
5715 Write MSB of argument into register and subsequent bytes into
5716 other registers in decreasing order.
5717
5718 2016-03-04 Yao Qi <yao.qi@linaro.org>
5719
5720 * arm-tdep.c (arm_record_vdata_transfer_insn): Simplify the
5721 condition check. Record the right D register number.
5722
5723 2016-03-04 Yao Qi <yao.qi@linaro.org>
5724
5725 * arm-tdep.c (arm_record_extension_space): Remove code
5726 printing "Process record does not support".
5727 (arm_record_data_proc_misc_ld_str): Likewise.
5728 (decode_insn): Call arm_record_extension_space if condition
5729 is 0xf. Call arm_record_unsupported_insn if ret isn't
5730 ARM_RECORD_SUCCESS. Use 'ret' instead of 'insn_id' to hold
5731 the value of thumb2_record_decode_insn_handler.
5732
5733 2016-03-04 Simon Marchi <simon.marchi@ericsson.com>
5734
5735 * features/feature_to_c.sh: Print the help when passing no
5736 argument.
5737
5738 2016-03-02 Bernhard Heckel <bernhard.heckel@intel.com>
5739
5740 * MAINTAINERS (Write After Approval): Add Bernhard Heckel.
5741
5742 2016-03-02 Bernhard Heckel <bernhard.heckel@intel.com>
5743
5744 * dwarf2read.c (new_symbol_full): Fix detection of gfortran compilers.
5745
5746 2016-03-01 Andreas Arnez <arnez@linux.vnet.ibm.com>
5747
5748 * s390-linux-tdep.c (s390_backchain_frame_unwind_cache): Avoid
5749 exception when attempting to access the inferior's backchain.
5750
5751 2016-02-29 Yao Qi <yao.qi@linaro.org>
5752
5753 * aarch64-linux-tdep.c (aarch64_canonicalize_syscall): Support
5754 eventfd2, eventfd2, dup3, inotify_init1, fallocate and pipe2.
5755 Return gdb_sys_epoll_create1 instead of gdb_sys_epoll_create
5756 for aarch64_sys_epoll_create1.
5757
5758 2016-02-29 Yao Qi <yao.qi@linaro.org>
5759
5760 * linux-record.h (enum gdb_syscall) <gdb_sys_fallocate>: New.
5761 <gdb_sys_eventfd2, gdb_sys_epoll_create1, gdb_sys_dup3>: New.
5762 <gdb_sys_pipe2, gdb_sys_inotify_init1>: New.
5763 * linux-record.c (record_linux_system_call): Handle them.
5764
5765 2016-02-28 Iain Buclaw <ibuclaw@gdcproject.org>
5766
5767 * d-namespace.c (d_lookup_symbol_imports): Avoid recursive lookups from
5768 cyclic imports.
5769
5770 2016-02-26 Keith Seitz <keiths@redhat.com>
5771
5772 * rs6000-tdep.c (rs6000_frame_cache): Explicitly cast return result
5773 to avoid invalid conversion from void *.
5774
5775 2016-02-26 Yao Qi <yao.qi@linaro.org>
5776
5777 * arm-tdep.c (arm_record_exreg_ld_st_insn): Set 'single_reg'
5778 per bit 8. Check bit 20 instead of bit 4 for VMOV
5779 instruction. Record D registers for instructions changing
5780 S registers. Change of the order of length and address
5781 in record_buf_mem array.
5782
5783 2016-02-26 Yao Qi <yao.qi@linaro.org>
5784
5785 * arm-tdep.c (thumb_record_ld_st_reg_offset): Fix the register
5786 number of Rd.
5787
5788 2016-02-25 Doug Evans <dje@google.com>
5789
5790 * remote-m32r-sdi.c (recv_char_data): Initialize val to avoid
5791 compiler warning.
5792 (recv_long_data): Ditto.
5793
5794 2016-02-25 Simon Marchi <simon.marchi@ericsson.com>
5795
5796 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault):
5797 Initialize variables.
5798
5799 2016-02-25 Antoine Tremblay <antoine.tremblay@ericsson.com>
5800
5801 * ax-general.c (ax_reg): Call gdbarch_remote_register_number.
5802 (ax_reg_mask): Likewise.
5803
5804 2016-02-24 Pedro Alves <palves@redhat.com>
5805
5806 * linux-nat.c (save_sigtrap) Delete.
5807 (stop_wait_callback): Call save_stop_reason instead of
5808 save_sigtrap.
5809 (check_stopped_by_breakpoint): Rename to ...
5810 (save_stop_reason): ... this. Bits of save_sigtrap folded here.
5811 Use GDB_ARCH_IS_TRAP_HWBKPT and handle ambiguous
5812 GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT. Factor out
5813 common code between the USE_SIGTRAP_SIGINFO and
5814 !USE_SIGTRAP_SIGINFO blocks.
5815 (linux_nat_filter_event): Call save_stop_reason instead of
5816 save_sigtrap.
5817 * nat/linux-ptrace.h: Check for both SI_KERNEL and TRAP_BRKPT
5818 si_code for MIPS.
5819 * nat/linux-ptrace.h: Fix "TRAP_HWBPT" typo in x86 table. Add
5820 comments on MIPS behavior.
5821 (GDB_ARCH_IS_TRAP_HWBKPT): Define for all archs.
5822
5823 2016-02-24 Marcin Kościelnicki <koriakin@0x04.net>
5824
5825 * rs6000-tdep.c (rs6000_frame_cache): Initialize frame and pc to 0
5826 to avoid spurious warnings.
5827
5828 2016-02-24 Gary Benson <gbenson@redhat.com>
5829
5830 * exec.c (exec_file_locate_attach): Do not attempt to
5831 locate main executable locally if not found in sysroot.
5832
5833 2016-02-24 Joel Brobecker <brobecker@adacore.com>
5834
5835 GDB 7.11 released.
5836
5837 2016-02-24 Wei-cheng Wang <cole945@gmail.com>
5838
5839 * rs6000-tdep.c (rs6000_frame_cache, rs6000_frame_this_id): Handle
5840 unavailable PC/SP to build unavailable frame.
5841
5842 2016-02-23 Doug Evans <dje@google.com>
5843
5844 Extend "skip" command to support -file, -gfile, -function, -rfunction.
5845 * NEWS: Document new features.
5846 * skip.c: #include "fnmatch.h", "gdb_regex.h".
5847 (skiplist_entry) <file>: Renamed from filename.
5848 <function>: Renamed from function_name.
5849 <file_is_glob, function_is_regexp>: New members.
5850 <compiled_function_regexp, compiled_function_regexp_is_valid>:
5851 New members.
5852 (make_skip_entry): New function.
5853 (free_skiplist_entry, free_skiplist_entry_cleanup): New functions.
5854 (make_free_skiplist_entry_cleanup): New function.
5855 (skip_file_command): Update.
5856 (skip_function, skip_function_command): Update.
5857 (compile_skip_regexp): New functions.
5858 (skip_command): Add support for new options.
5859 (skip_info): Update.
5860 (skip_file_p, skip_gfile_p): New functions.
5861 (skip_function_p, skip_rfunction_p): New functions.
5862 (function_name_is_marked_for_skip): Update and simplify.
5863 (_initialize_step_skip): Update.
5864 * symtab.c: #include "fnmatch.h".
5865 (compare_glob_filenames_for_search): New function.
5866 * symtab.h (compare_glob_filenames_for_search): Declare.
5867 * utils.c (count_path_elements): New function.
5868 (strip_leading_path_elements): New function.
5869 * utils.h (count_path_elements): Declare.
5870 (strip_leading_path_elements): Declare.
5871
5872 2016-02-23 Simon Marchi <simon.marchi@ericsson.com>
5873
5874 * arm-tdep.c (arm_decode_svc_copro): Remove "to" parameter.
5875 (thumb_process_displaced_insn): Likewise.
5876 (arm_process_displaced_insn): Adjust calls.
5877
5878 2016-02-23 Yao Qi <yao.qi@linaro.org>
5879
5880 * aarch64-linux-tdep.c (enum aarch64_syscall) <aarch64_sys_mknod>:
5881 Remove.
5882 <aarch64_sys_mkdir, aarch64_sys_unlink, aarch64_sys_symlink>: Remove.
5883 <aarch64_sys_link, aarch64_sys_rename, aarch64_sys_faccess>: Remove.
5884 <aarch64_sys_mknodat, aarch64_sys_mkdirat>: New.
5885 <aarch64_sys_unlinkat, aarch64_sys_symlinkat>: New.
5886 <aarch64_sys_linkat, aarch64_sys_renameat>: New.
5887 <aarch64_sys_faccessat>: New.
5888 <aarch64_sys_open, aarch64_sys_readlink, aarch64_sys_fstatat>: Remove.
5889 <aarch64_sys_openat, aarch64_sys_readlinkat>: New.
5890 <aarch64_sys_newfstatat>: New.
5891 (UNSUPPORTED_SYSCALL_MAP): New macro.
5892 (aarch64_canonicalize_syscall): Add missing syscalls.
5893
5894 2016-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5895
5896 * gdb-gdb.py (class TypeFlagsPrinter): Use parentheses for print.
5897
5898 2016-02-22 Yao Qi <yao.qi@linaro.org>
5899
5900 * arm-tdep.c: Fix code format issues.
5901
5902 2016-02-21 Iain Buclaw <ibuclaw@gdcproject.org>
5903
5904 * d-namespace.c (d_lookup_symbol_imports): Remove argument
5905 'search_parents'. All callers updated.
5906
5907 2016-02-18 Marcin Kościelnicki <koriakin@0x04.net>
5908
5909 * s390-linux-tdep.c (s390_guess_tracepoint_registers): New function.
5910 (s390_gdbarch_init): Fill guess_tracepoint_registers hook.
5911
5912 2016-02-18 Walfred Tedeschi <walfred.tedeschi@intel.com>
5913
5914 * NEWS: Add entry for bound violation.
5915 * amd64-linux-tdep.c (amd64_linux_init_abi_common):
5916 Add handler for segmentation fault.
5917 * gdbarch.sh (handle_segmentation_fault): New.
5918 * gdbarch.c: Regenerate.
5919 * gdbarch.h: Regenerate.
5920 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): New.
5921 (SIG_CODE_BONDARY_FAULT): New define.
5922 (i386_linux_init_abi): Use i386_mpx_bound_violation_handler.
5923 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault) New.
5924 * i386-tdep.c (i386_mpx_enabled): Add as external.
5925 * i386-tdep.c (i386_mpx_enabled): Add as external.
5926 * infrun.c (handle_segmentation_fault): New function.
5927 (print_signal_received_reason): Use handle_segmentation_fault.
5928
5929 2016-02-18 Marcin Kościelnicki <koriakin@0x04.net>
5930
5931 * arch-utils.c (default_guess_tracepoint_registers): New function.
5932 * arch-utils.h (default_guess_tracepoint_registers): New prototype.
5933 * gdbarch.c: Regenerate.
5934 * gdbarch.h: Regenerate.
5935 * gdbarch.sh: Add guess_tracepoint_registers hook.
5936 * tracefile.c (tracefile_fetch_registers): Use the new gdbarch hook.
5937
5938 2016-02-17 Gary Benson <gbenson@redhat.com>
5939
5940 * exec.c (exec_file_locate_attach): Add missing cleanup.
5941
5942 2016-02-16 Don Breazeal <donb@codesourcery.com>
5943
5944 PR remote/19496
5945 * remote.c (remove_new_fork_children): Check for pending
5946 fork status in thread_info.suspend.
5947
5948 2016-02-16 Yao Qi <yao.qi@linaro.org>
5949
5950 * arm-linux-tdep.c (arm_linux_software_single_step): Assign
5951 'old_chain' later.
5952
5953 2016-02-16 Yao Qi <yao.qi@linaro.org>
5954
5955 * arch/arm-get-next-pcs.h (struct arm_get_next_pcs_ops)
5956 <syscall_next_pc>: Remove argument PC. Callers updated.
5957 * arm-linux-tdep.c (arm_linux_get_next_pcs_syscall_next_pc):
5958 Remove argument PC. Get pc from regcache_read_pc.
5959 * arm-tdep.c (arm_get_next_pcs_syscall_next_pc): Remove
5960 argument PC.
5961
5962 2016-02-15 Yao Qi <yao.qi@linaro.org>
5963
5964 * aarch64-tdep.c (aarch64_analyze_prologue): Remove "0x".
5965
5966 2016-02-12 Yao Qi <yao.qi@linaro.org>
5967
5968 * arch/arm-linux.c (arm_linux_get_next_pcs_fixup): Calculate
5969 nextpc according to instruction.
5970
5971 2016-02-12 Yao Qi <yao.qi@linaro.org>
5972
5973 * arch/arm-get-next-pcs.c (arm_get_next_pcs): Call
5974 self->ops->fixup if it isn't NULL.
5975 * arch/arm-get-next-pcs.h: Include gdb_vecs.h.
5976 (struct arm_get_next_pcs_ops) <fixup>: New field.
5977 * arch/arm-linux.c: Include common-regcache.h and
5978 arch/arm-get-next-pcs.h.
5979 (arm_linux_get_next_pcs_fixup): New function.
5980 * arch/arm-linux.h (arm_linux_get_next_pcs_fixup): Declare.
5981 * arm-linux-tdep.c (arm_linux_get_next_pcs_ops): Initialize
5982 it with arm_linux_get_next_pcs_fixup.
5983 (arm_linux_software_single_step): Move code to
5984 arm_linux_get_next_pcs_fixup.
5985 * arm-tdep.c (arm_get_next_pcs_ops): Initialize it.
5986
5987 2016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
5988
5989 * xml-tdesc.c (target_fetch_description_xml) [!HAVE_LIBEXPAT]: Warn
5990 and return NULL.
5991
5992 2016-02-12 Markus Metzger <markus.t.metzger@intel.com>
5993
5994 * frame.h (skip_tailcall_frames): Update comment.
5995 * frame.c (skip_artificial_frames, skip_tailcall_frames): Return NULL
5996 if only artificial frames are found. Update comment.
5997 (frame_unwind_caller_id): Handle NULL return.
5998 (frame_unwind_caller_pc, frame_unwind_caller_arch): Assert that
5999 skip_artificial_frames does not return NULL.
6000 (frame_pop): Add an error if only tailcall frames are found.
6001 * infcmd.c (finish_command): Move skip_tailcall_frames call into
6002 forward-execution case. Add an error if only tailcall frames are
6003 found.
6004
6005 2016-02-12 Markus Metzger <markus.t.metzger@intel.com>
6006
6007 * stack.c (frame_info): Check frame_unwind_caller_id.
6008
6009 2016-02-12 Markus Metzger <markus.t.metzger@intel.com>
6010
6011 * frame.h (skip_tailcall_frames): New.
6012 * frame.c (skip_tailcall_frames): New.
6013 (frame_pop): Call skip_tailcall_frames.
6014 * infcmd.c (finish_command): Call skip_tailcall_frames.
6015
6016 2016-02-11 Pedro Alves <palves@redhat.com>
6017
6018 * Makefile.in (check-parallel): New rule.
6019
6020 2016-02-11 Simon Marchi <simon.marchi@ericsson.com>
6021
6022 * arm-tdep.c (arm_skip_prologue): Remove unused variables.
6023 (arm_analyze_prologue): Likewise.
6024 (arm_scan_prologue): Likewise.
6025 (arm_m_exception_prev_register): Likewise.
6026 (arm_copy_block_xfer): Likewise.
6027 (thumb2_copy_block_xfer): Likewise.
6028 (arm_decode_miscellaneous): Likewise.
6029 (arm_decode_ld_st_word_ubyte): Likewise.
6030 (arm_decode_svc_copro): Likewise.
6031 (thumb2_decode_svc_copro): Likewise.
6032 (thumb_copy_16bit_ldr_literal): Likewise.
6033 (thumb_copy_pop_pc_16bit): Likewise.
6034 (decode_thumb_32bit_ld_mem_hints): Likewise.
6035 (arm_show_force_mode): Likewise.
6036 (_initialize_arm_tdep): Likewise.
6037 (arm_record_strx): Likewise.
6038 (arm_record_extension_space): Likewise.
6039 (arm_record_data_proc_misc_ld_str): Likewise.
6040 (arm_record_exreg_ld_st_insn): Likewise.
6041 (arm_record_vfp_data_proc_insn): Likewise.
6042 (arm_record_coproc_data_proc): Likewise.
6043 (thumb_record_misc): Likewise.
6044 (thumb_record_ldm_stm_swi): Likewise.
6045 (thumb2_record_ld_st_dual_ex_tbb): Likewise.
6046 (thumb2_record_ld_mem_hints): Likewise.
6047 (thumb2_record_lmul_lmla_div): Likewise.
6048 (thumb2_record_asimd_struct_ld_st): Likewise.
6049 (arm_process_record): Likewise.
6050
6051 2016-02-11 Simon Marchi <simon.marchi@ericsson.com>
6052
6053 * arm-tdep.c (arm_displaced_step_copy_insn): Remove.
6054 (ARM displaced stepping support): Remove reference to
6055 arm_displaced_step_copy_insn in comment.
6056 * arm-tdep.h (arm_displaced_step_copy_insn): Remove.
6057 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Remove
6058 reference to arm_displaced_step_copy_insn in comment.
6059
6060 2016-02-11 Simon Marchi <simon.marchi@ericsson.com>
6061
6062 * arm-tdep.c (thumb_copy_unmodified_16bit): Change type of insn.
6063 (thumb_copy_b): Likewise.
6064 (arm_decode_b_bl_ldmstm): Likewise.
6065 (thumb_copy_16bit_ldr_literal): Likewise.
6066 (thumb_copy_pop_pc_16bit): Likewise.
6067
6068 2016-02-11 Antoine Tremblay <antoine.tremblay@ericsson.com>
6069
6070 * tracepoint.c (encode_actions_1): Use target_gdbarch () rather
6071 than loc->gdbarch.
6072
6073 2016-02-10 Marcin Kościelnicki <koriakin@0x04.net>
6074
6075 * tracefile-tfile.c (trace_tdesc): New static variable.
6076 (tfile_open): Clear trace_tdesc, call target_find_description.
6077 (tfile_interp_line): Recognize tdesc lines.
6078 (tfile_close): Clear trace_tdesc.
6079 (tfile_xfer_partial_features): New function.
6080 (tfile_xfer_partial): Call tfile_xfer_partial_features.
6081 (tfile_append_tdesc_line): New function.
6082
6083 2016-02-10 Marcin Kościelnicki <koriakin@0x04.net>
6084
6085 * ctf.c (ctf_write_tdesc): New function.
6086 (ctf_write_ops): Wire in ctf_write_tdesc.
6087 * tracefile-tfile.c (tfile_write_tdesc): New function.
6088 (tfile_write_ops): Wire in tfile_write_tdesc.
6089 * tracefile.c (trace_save): Call write_tdesc method.
6090 * tracefile.h (struct trace_file_write_ops): Add write_tdesc method.
6091 * xml-tdesc.c (target_fetch_description_xml): New function.
6092 * xml-tdesc.h: Add target_fetch_description_xml prototype.
6093
6094 2016-02-10 Simon Marchi <simon.marchi@ericsson.com>
6095
6096 * arm-tdep.c (arm_copy_extra_ld_st): Fix "unpriveleged" typo.
6097 (arm_decode_dp_misc): Likewise.
6098
6099 2016-02-10 Marcin Kościelnicki <koriakin@0x04.net>
6100
6101 * amd64-tdep.c (amd64_ax_pseudo_register_collect): New function.
6102 (amd64_init_abi): Fill ax_pseudo_register_collect hook.
6103 * gdb/i386-tdep.c (i386_pseudo_register_read_into_value): Remove
6104 misleading comment.
6105 (i386_pseudo_register_write): Ditto.
6106 (i386_ax_pseudo_register_collect): New function.
6107 (i386_gdbarch_init): Fill ax_pseudo_register_collect hook.
6108 * i386-tdep.h: Add i386_ax_pseudo_register_collect prototype.
6109
6110 2016-02-10 Marcin Kościelnicki <koriakin@0x04.net>
6111
6112 * tracefile-tfile.c (tfile_fetch_registers): Use g packet order
6113 instead of gdb order.
6114
6115 2016-02-10 Marcin Kościelnicki <koriakin@0x04.net>
6116
6117 * tracefile-tfile.c (tfile_fetch_registers): Fix off-by-one in bounds
6118 check.
6119
6120 2016-02-10 Joel Brobecker <brobecker@adacore.com>
6121
6122 * NEWS: Create a new section for the next release branch.
6123 Rename the section of the current branch, now that it has
6124 been cut.
6125
6126 2016-02-10 Joel Brobecker <brobecker@adacore.com>
6127
6128 GDB 7.11 branch created (9ef9e6a6a0dd8f948708cb67c9afcfd0be40cb0a):
6129 * version.in: Bump version to 7.11.50.DATE-git.
6130
6131 2016-02-09 Keith Seitz <keiths@redhat.com>
6132
6133 PR breakpoints/19546
6134 * breakpoint.c (breakpoint_event_location_empty_p): New function.
6135 (update_breakpoints_after_exec, bkpt_re_set): Use this new function
6136 instead of event_location_empty_p.
6137
6138 2016-02-09 Keith Seitz <keiths@redhat.com>
6139
6140 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Use
6141 string_to_event_location_basic instead of string_to_event_location.
6142
6143 2016-02-09 Keith Seitz <keiths@redhat.com>
6144
6145 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Skip
6146 leading whitespace and use string_to_event_location_basic instead
6147 of new_linespec_location.
6148
6149 2016-02-09 Keith Seitz <keiths@redhat.com>
6150
6151 PR python/19506
6152 * python/py-breakpoint.c (bppy_init): Use
6153 string_to_event_location_basic instead of new_linespec_location.
6154
6155 2016-02-09 Keith Seitz <keiths@redhat.com>
6156
6157 * location.c (string_to_explicit_location): Note that "-p" is
6158 reserved for probe locations and return NULL for any input
6159 that starts with that.
6160 (string_to_event_location): Move "legacy" linespec code to ...
6161 (string_to_event_location_basic): ... here.
6162 * location.h (string_to_event_location): Update comment.
6163 (string_to_event_location_basic): New function.
6164
6165 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
6166
6167 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
6168 to AC_OUTPUT. Remove "exit 0" at the end.
6169 * configure: Regenerate.
6170
6171 2016-02-09 Pedro Alves <palves@redhat.com>
6172
6173 PR breakpoints/19548
6174 * breakpoint.c (create_overlay_event_breakpoint): Don't update
6175 global location list here.
6176 (create_longjmp_master_breakpoint)
6177 (create_std_terminate_master_breakpoint)
6178 (create_exception_master_breakpoint, create_jit_event_breakpoint)
6179 (update_breakpoint_locations):
6180 (breakpoint_re_set): Update global location list after all
6181 breakpoints are re-set.
6182
6183 2016-02-08 Simon Marchi <simon.marchi@ericsson.com>
6184
6185 * remote.c (remote_register_number_and_offset): Remove unused
6186 variable(s).
6187 (remote_thread_always_alive): Likewise.
6188 (remote_update_thread_list): Likewise.
6189 (process_initial_stop_replies): Likewise.
6190 (remote_start_remote): Likewise.
6191 (remote_check_symbols): Likewise.
6192 (discard_pending_stop_replies): Likewise.
6193 (process_stop_reply): Likewise.
6194 (putpkt_binary): Likewise.
6195 (getpkt): Likewise.
6196 (remote_add_target_side_condition): Likewise.
6197 (remote_insert_breakpoint): Likewise.
6198 (remote_supports_stopped_by_sw_breakpoint): Likewise.
6199 (remote_supports_stopped_by_hw_breakpoint): Likewise.
6200 (remote_xfer_partial): Likewise.
6201 (remote_read_btrace): Likewise.
6202 (remote_async_serial_handler): Likewise.
6203 (remote_thread_events): Likewise.
6204 (_initialize_remote): Likewise.
6205
6206 2016-02-07 Simon Marchi <simon.marchi@polymtl.ca>
6207
6208 * varobj.h (varobj_delete): Remove dellist parameter, update and
6209 move documentation here.
6210 * varobj.c (struct cpstack, cppush, cppop): Remove.
6211 (delete_variable): Remove resultp (first) parameter.
6212 (delete_variable_1): Likewise.
6213 (varobj_delete): Remove dellist parameter and unused code.
6214 (update_dynamic_varobj_children): Adjust varobj_delete call.
6215 (update_type_if_necessary): Likewise.
6216 (varobj_set_visualizer): Likewise.
6217 (varobj_update): Likewise.
6218 (value_of_root): Likewise.
6219 (varobj_invalidate_iter): Likewise.
6220 * mi/mi-cmd-var.c (mi_cmd_var_delete): Likewise.
6221
6222 2016-02-04 Yao Qi <yao.qi@linaro.org>
6223
6224 * remote.c (remote_wait_as): Set rs->waiting_for_stop_reply to
6225 0 before handling 'F' and set it back afterwards.
6226
6227 2016-02-02 Simon Marchi <simon.marchi@ericsson.com>
6228
6229 * ui-out.c (MAX_UI_OUT_LEVELS): Remove.
6230
6231 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
6232
6233 * amd64-linux-siginfo.c (nat_siginfo_t, nat_sigval_t, nat_timeval):
6234 New types.
6235 (compat_siginfo): New bound fields added.
6236 (compat_x32_siginfo): New field added.
6237 (cpt_si_addr_lsb): New define.
6238 (compat_siginfo_from_siginfo): Use nat_siginfo.
6239 (siginfo_from_compat_siginfo): Use nat_siginfo.
6240 (compat_x32_siginfo_from_siginfo): Likewise.
6241 (siginfo_from_compat_x32_siginfo): Likewise.
6242
6243 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
6244
6245 * linux-tdep.c (linux_get_siginfo_type): Add the _addr_bnd
6246 structure to the siginfo if extra_fields contains
6247 LINUX_SIGINFO_FIELD_ADDR_BND.
6248
6249 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
6250
6251 * linux-tdep.h (linux_get_siginfo_type_with_fields): Make extern.
6252 * linux-tdep.c (linux_get_siginfo_type_with_fields): Make extern.
6253 * i386-linux-tdep.h (x86_linux_get_siginfo_type): New
6254 function.
6255 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Add
6256 x86_linux_get_siginfo_type for the amd64 abi.
6257 * i386-linux-tdep.c (x86_linux_get_siginfo_type): New
6258 function.
6259 (i386_linux_init_abi): Add new function at the i386 ABI
6260 initialization.
6261
6262 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
6263
6264 * linux-tdep.h (linux_siginfo_extra_field_values): New enum values.
6265 (linux_siginfo_extra_fields): New enum type.
6266 * linux-tdep.c (linux_get_siginfo_type_with_fields): New function.
6267 (linux_get_siginfo_type): Use new function.
6268
6269 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
6270
6271 * nat/amd64-linux-siginfo.c: New file.
6272 * nat/amd64-linux-siginfo.h: New file.
6273 * Makefile.in (HFILES_NO_SRCDIR): Add nat/amd64-linux-siginfo.h.
6274 (amd64-linux-siginfo.o): New rule.
6275 * config/i386/linux64.mh (NATDEPFILES): Add amd64-linux-siginfo.o.
6276 * amd64-linux-nat.c (nat/amd64-linux-siginfo.h): New include.
6277 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
6278 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
6279 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
6280 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
6281 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
6282 (cpt_si_fd, si_timerid, si_overrun): Move to nat/amd64-linux-siginfo.c.
6283
6284 2016-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
6285
6286 * value.c (max_value_size): New variable.
6287 (MIN_VALUE_FOR_MAX_VALUE_SIZE): New define.
6288 (set_max_value_size): New function.
6289 (show_max_value_size): New function.
6290 (check_type_length_before_alloc): New function.
6291 (allocate_value_contents): Call check_type_length_before_alloc.
6292 (set_value_enclosing_type): Likewise.
6293 (_initialize_values): Add set/show handler for max-value-size.
6294 * NEWS: Mention new set/show command.
6295
6296 2016-01-31 Simon Marchi <simon.marchi@polymtl.ca>
6297
6298 * varobj.h (struct varobj): Fix typos in comments.
6299 (struct lang_varobj_ops): Likewise.
6300 * varobj.c (VAROBJ_TABLE_SIZE): Likewise.
6301 (varobj_create): Move misplaced comment.
6302
6303 2016-01-29 Simon Marchi <simon.marchi@ericsson.com>
6304
6305 * aarch64-tdep.c (aarch64_record_asimd_load_store): Add braces
6306 to for include additional lines.
6307 * xcoffread.c (scan_xcoff_symtab): Remove unnecessary braces.
6308
6309 2016-01-28 Simon Marchi <simon.marchi@ericsson.com>
6310
6311 * gnulib/import/Makefile.am: Regenerate.
6312 * gnulib/import/Makefile.in: Regenerate.
6313 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
6314 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add rawmemchr.
6315
6316 2016-01-28 Simon Marchi <simon.marchi@ericsson.com>
6317
6318 * remote.c (skip_to_semicolon): Remove.
6319 (remote_parse_stop_reply): Use strchrnul instead of
6320 skip_to_semicolon.
6321 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
6322 strchrnul.
6323 * gnulib/aclocal.m4: Regenerate.
6324 * gnulib/config.in: Regenerate.
6325 * gnulib/configure: Regenerate.
6326 * gnulib/import/Makefile.am: Regenerate.
6327 * gnulib/import/Makefile.in: Regenerate.
6328 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
6329 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
6330 * gnulib/import/m4/rawmemchr.m4: New file.
6331 * gnulib/import/m4/strchrnul.m4: New file.
6332 * gnulib/import/rawmemchr.c: New file.
6333 * gnulib/import/rawmemchr.valgrind: New file.
6334 * gnulib/import/strchrnul.c: New file.
6335 * gnulib/import/strchrnul.valgrind: New file.
6336
6337 2016-01-28 Yao Qi <yao.qi@linaro.org>
6338
6339 * breakpoint.c (build_target_command_list): Don't call continue
6340 if aexpr is NULL.
6341 (build_target_condition_list): Likewise.
6342
6343 2016-01-27 Kevin Buettner <kevinb@redhat.com>
6344
6345 * rx-tdep.c (rx_push_dummy_call): Treat scalars larger than 8
6346 bytes as aggregates.
6347
6348 2016-01-27 Joel Brobecker <brobecker@adacore.com>
6349
6350 * MAINTAINERS (Responsible Maintainers): Add Keith Seitz as
6351 Linespec Maintainers.
6352
6353 2016-01-26 Simon Marchi <simon.marchi@ericsson.com>
6354
6355 * common/common-utils.c (skip_spaces): Fix comment.
6356 (skip_to_space_const): Likewise.
6357
6358 2016-01-25 Yao Qi <yao.qi@linaro.org>
6359
6360 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw):
6361 Remove argument pc. Get pc by regcache_read_pc. Callers updated.
6362 (arm_deal_with_atomic_sequence_raw): Likewise.
6363 (thumb_get_next_pcs_raw): Likewise.
6364 (arm_get_next_pcs_raw): Likewise.
6365 (arm_get_next_pcs): Remove argument pc. Callers updated.
6366 * arch/arm-get-next-pcs.h (arm_get_next_pcs): Update declaration.
6367
6368 2016-01-25 Mark Wielaard <mjw@redhat.com>
6369
6370 * ada-lang.c (ada_evaluate_subexp): Add proper else block.
6371 * c-typeprint.c (c_type_print_base): Fix misleading indentation of
6372 if statement.
6373 * inflow.c (child_terminal_ours_1): Fix misleading indentation of
6374 statement block by introducing an else.
6375 * linux-record.c (record_linux_sockaddr): Fix misleading indentation
6376 of return statements.
6377 (record_linux_msghdr): Likewise.
6378
6379 2016-01-25 Pedro Alves <palves@redhat.com>
6380
6381 PR threads/19461
6382 * infrun.c (handle_inferior_event_1) <fork/vfork>: Update
6383 parent/child running states.
6384
6385 2016-01-25 Pedro Alves <palves@redhat.com>
6386
6387 PR gdb/19494
6388 * linux-nat.c (kill_one_lwp): New, factored out from ...
6389 (kill_callback): ... this.
6390 (kill_wait_callback): New, factored out from ...
6391 (kill_wait_one_lwp): ... this.
6392 (kill_unfollowed_fork_children): New function.
6393 (linux_nat_kill): Use it.
6394
6395 2016-01-22 John Baldwin <jhb@FreeBSD.org>
6396
6397 * fbsd-nat.c (fbsd_pid_to_str): Adjust string format.
6398
6399 2016-01-22 Yao Qi <yao.qi@linaro.org>
6400
6401 * arm-linux-nat.c (fetch_fpregs): Call perror_with_name
6402 instead of warning.
6403 (store_fpregs, fetch_regs, store_regs): Likewise.
6404 (fetch_wmmx_regs, store_wmmx_regs): Likewise.
6405 (fetch_vfp_regs, store_vfp_regs): Likewise.
6406
6407 2016-01-21 Doug Evans <dje@google.com>
6408
6409 * breakpoint.c (init_breakpoint_sal): Add comment.
6410
6411 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
6412
6413 * ax-gdb.c (gen_traced_pop): Use gen_fetch for string collection.
6414
6415 2016-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
6416
6417 * disasm.c (maybe_add_dis_line_entry): Rename to...
6418 (add_dis_line_entry): ...this, and update header comment.
6419 (do_mixed_source_and_assembly): Now use add_dis_line_entry.
6420
6421 2016-01-21 Pedro Alves <palves@redhat.com>
6422
6423 * Makefile.in (COMPILER_CFLAGS): New.
6424 (CXXFLAGS): Get it from configure.
6425 (INTERNAL_CFLAGS_BASE, INTERNAL_LDFLAGS): Use COMPILER_CFLAGS
6426 instead of CFLAGS.
6427 * build-with-cxx.m4 (GDB_AC_BUILD_WITH_CXX): Set and AC_SUBST
6428 COMPILER_CFLAGS.
6429 * configure: Regenerate.
6430
6431 2016-01-21 Joel Brobecker <brobecker@adacore.com>
6432
6433 * location.h (new_address_location): Add new parameters
6434 "addr_string" and "addr_string_len".
6435 (get_address_string_location): Add declaration.
6436 * location.c (new_address_location): Add new parameters
6437 "addr_string" and "addr_string_len". If not NULL, store
6438 a copy of the addr_string in the new location as well.
6439 (get_address_string_location): New function.
6440 (string_to_event_location): Update call to new_address_location.
6441 * linespec.c (event_location_to_sals) <ADDRESS_LOCATION>:
6442 Save the event location in the parser's state before
6443 passing it to convert_address_location_to_sals.
6444 * breakpoint.c (create_thread_event_breakpoint): Update call
6445 to new_address_location.
6446 (init_breakpoint_sal): Get the event location's string, if any,
6447 and use it to update call to new_address_location.
6448 * python/py-finishbreakpoint.c (bpfinishpy_init):
6449 Update call to new_address_location.
6450 * spu-tdep.c (spu_catch_start): Likewise.
6451
6452 * config/djgpp/fnchange.lst: Add entries for
6453 gdb/testsuite/gdb.base/break-fun-addr1.c and
6454 gdb/testsuite/gdb.base/break-fun-addr2.c.
6455
6456 2016-01-21 Yao Qi <yao.qi@linaro.org>
6457
6458 * arm-linux-tdep.c (arm_linux_sigreturn_next_pc): Add parameter
6459 is_thumb and set it according to CPSR saved on the stack.
6460 (arm_linux_get_next_pcs_syscall_next_pc): Pass is_thumb to
6461 arm_linux_sigreturn_next_pc.
6462
6463 2016-01-20 Simon Marchi <simon.marchi@polymtl.ca>
6464
6465 * python/lib/gdb/printing.py (FlagEnumerationPrinter.__call__):
6466 Fix enumerators sort key function.
6467
6468 2016-01-20 Joel Brobecker <brobecker@adacore.com>
6469
6470 * printcmd.c (print_scalar_formatted): Move binary operator from
6471 end of line to beginning of next line. Adjust formatting
6472 accordingly.
6473
6474 2016-01-19 John Baldwin <jhb@FreeBSD.org>
6475
6476 * fbsd-nat.c (fbsd_pid_to_exec_file): Use new "buflen" instead of
6477 "len" with sysctl.
6478
6479 2016-01-19 John Baldwin <jhb@FreeBSD.org>
6480
6481 * fbsd-tdep.c (find_stop_signal): Remove.
6482 (struct fbsd_collect_regset_section_cb) <lwp>: New field.
6483 <stop_signal>: New field.
6484 <abort_iteration>: New field.
6485 (fbsd_collect_regset_section_cb): Use new fields.
6486 (fbsd_collect_thread_registers): New function.
6487 (struct fbsd_corefile_thread_data): New structure.
6488 (fbsd_corefile_thread): New function.
6489 (fbsd_make_corefile_notes): Use new function to dump notes for each
6490 non-exited thread in a process.
6491
6492 2016-01-19 John Baldwin <jhb@FreeBSD.org>
6493
6494 * configure.ac: Check for support for LWP names on FreeBSD.
6495 * fbsd-nat.c [PT_LWPINFO] New variable debug_fbsd_lwp.
6496 [TDP_RFPPWAIT || HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME]
6497 (fbsd_fetch_kinfo_proc): Move function earlier.
6498 [PT_LWPINFO] (fbsd_thread_alive): New function.
6499 [PT_LWPINFO] (fbsd_pid_to_str): New function.
6500 [HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME] (fbsd_thread_name): New function.
6501 [PT_LWP_EVENTS] (fbsd_enable_lwp_events): New function.
6502 [PT_LWPINFO] (fbsd_add_threads): New function.
6503 [PT_LWPINFO] (fbsd_update_thread_list): New function.
6504 [PT_LWPINFO] New variable super_resume.
6505 [PT_LWPINFO] (resume_one_thread_cb): New function.
6506 [PT_LWPINFO] (resume_all_threads_cb): New function.
6507 [PT_LWPINFO] (fbsd_resume): New function.
6508 (fbsd_remember_child): Save full ptid instead of plain pid.
6509 (fbsd_is_child_pending): Return ptid of saved child process.
6510 (fbsd_wait): Include lwp in returned ptid and switch to LWP ptid on
6511 first stop.
6512 [PT_LWP_EVENTS] Handle LWP events.
6513 [TDP_RFPPWAIT] Include LWP in child ptid.
6514 (fbsd_post_startup_inferior) [PT_LWP_EVENTS]: Enable LWP events.
6515 (fbsd_post_attach) [PT_LWP_EVENTS]: Enable LWP events.
6516 Add threads for existing processes.
6517 (fbsd_nat_add_target) [PT_LWPINFO]: Set "to_thread_alive" to
6518 "fbsd_thread_alive".
6519 Set "to_pid_to_str" to "fbsd_pid_to_str".
6520 [HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME]: Set "to_thread_name" to
6521 "fbsd_thread_name".
6522 [PT_LWPINFO]: Set "to_update_thread_list" to "fbsd_update_thread_list".
6523 Set "to_has_thread_control" to "tc_schedlock".
6524 Set "to_resume" to "fbsd_resume".
6525 (_initialize_fbsd_nat): New function.
6526 * configure: Regenerate.
6527 * config.in: Regenerate.
6528
6529 2016-01-19 John Baldwin <jhb@FreeBSD.org>
6530
6531 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
6532 get_ptrace_pid.
6533 (amd64bsd_store_inferior_registers): Use get_ptrace_pid.
6534 (amd64bsd_dr_get): Use get_ptrace_pid.
6535 (amd64bsd_dr_set): Use get_ptrace_pid.
6536 * i386bsd-nat.c (i386bsd_fetch_inferior_registers): Use get_ptrace_pid.
6537 (i386bsd_store_inferior_registers): Use get_ptrace_pid.
6538 (i386bsd_dr_get): Use get_ptrace_pid.
6539 (i386bsd_dr_set): Use get_ptrace_pid.
6540 * inf-ptrace.c (get_ptrace_pid): Export.
6541 * inf-ptrace.h (get_ptrace_pid): Declare.
6542 * ppcfbsd-nat.c (ppcfbsd_fetch_inferior_registers): Use lwp id.
6543 (ppcfbsd_store_inferior_registers): Use lwp id.
6544
6545 2016-01-19 John Baldwin <jhb@FreeBSD.org>
6546
6547 * fbsd_tdep.c (fbsd_core_pid_to_str): New function.
6548 (fbsd_core_thread_name): New function.
6549 (fbsd_init_abi): Add "core_pid_to_str" gdbarch method.
6550 Add "core_thread_name" gdbarch method.
6551
6552 2016-01-19 John Baldwin <jhb@FreeBSD.org>
6553
6554 * corelow.c (core_thread_name): New function.
6555 (init_core_ops): Use "core_thread_name" for the "to_thread_name"
6556 target op.
6557 * gdbarch.sh (core_thread_name): New gdbarch callback.
6558 * gdbarch.h: Re-generate.
6559 * gdbarch.c: Re-generate.
6560
6561 2016-01-19 Simon Marchi <simon.marchi@polymtl.ca>
6562
6563 * python/lib/gdb/printing.py (_EnumInstance.to_string): Explicitly
6564 convert gdb.Value to integer type using int().
6565
6566 2016-01-19 John Baldwin <jhb@FreeBSD.org>
6567
6568 * configure.ac: Include <sys/types.h when checking for "r_fs" in
6569 "struct reg".
6570 * configure: Regenerate.
6571
6572 2016-01-19 Pedro Alves <palves@redhat.com>
6573
6574 * ax-gdb.c (agent_command_1): Adjust call to decode_line_full.
6575 * break-catch-throw.c (re_set_exception_catchpoint): Pass the
6576 current program space down to linespec decoding and breakpoint
6577 location updating.
6578 * breakpoint.c (parse_breakpoint_sals): Adjust calls to
6579 decode_line_full.
6580 (until_break_command): Adjust calls to decode_line_1.
6581 (base_breakpoint_decode_location, bkpt_decode_location): Add
6582 'search_pspace' parameter. Pass it along.
6583 (bkpt_probe_create_sals_from_location): Adjust calls to
6584 parse_probes.
6585 (tracepoint_decode_location, tracepoint_probe_decode_location)
6586 (strace_marker_decode_location): Add 'search_pspace' parameter.
6587 Pass it along.
6588 (all_locations_are_pending): Rewrite to take a breakpoint and
6589 program space as arguments instead.
6590 (hoist_existing_locations): New function.
6591 (update_breakpoint_locations): Add 'filter_pspace' parameter. Use
6592 hoist_existing_locations instead of always removing all locations,
6593 and adjust to all_locations_are_pending change.
6594 (location_to_sals): Add 'search_pspace' parameter. Pass it along.
6595 Don't disable the breakpoint if there are other locations in
6596 another program space.
6597 (breakpoint_re_set_default): Adjust to pass down the current
6598 program space as filter program space.
6599 (decode_location_default): Add 'search_pspace' parameter and pass
6600 it along.
6601 (prepare_re_set_context): Don't switch program space here.
6602 (breakpoint_re_set): Use save_current_space_and_thread instead of
6603 save_current_program_space.
6604 * breakpoint.h (struct breakpoint_ops) <decode_location>: Add
6605 'search_pspace' parameter.
6606 (update_breakpoint_locations): Add 'filter_pspace' parameter.
6607 * cli/cli-cmds.c (edit_command, list_command): Adjust calls to
6608 decode_line_1.
6609 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the current
6610 program space as filter program space.
6611 * linespec.c (struct linespec_state) <search_pspace>: New field.
6612 (create_sals_line_offset, convert_explicit_location_to_sals)
6613 (parse_linespec): Pass the search program space down.
6614 (linespec_state_constructor): Add 'search_pspace' parameter.
6615 Store it.
6616 (linespec_parser_new): Add 'search_pspace' parameter and pass it
6617 along.
6618 (linespec_lex_to_end): Adjust.
6619 (decode_line_full, decode_line_1): Add 'search_pspace' parameter
6620 and pass it along.
6621 (decode_line_with_last_displayed): Adjust.
6622 (collect_symtabs_from_filename, symtabs_from_filename): New
6623 'search_pspace' parameter. Use it.
6624 (find_function_symbols): Pass the search program space down.
6625 * linespec.h (decode_line_1, decode_line_full): Add
6626 'search_pspace' parameter.
6627 * probe.c (parse_probes_in_pspace): New function, factored out
6628 from ...
6629 (parse_probes): ... this. Add 'search_pspace' parameter and use
6630 it.
6631 * probe.h (parse_probes): Add pspace' parameter.
6632 * python/python.c (gdbpy_decode_line): Adjust.
6633 * tracepoint.c (scope_info): Adjust.
6634
6635 2016-01-18 Maciej W. Rozycki <macro@imgtec.com>
6636
6637 * mips-tdep.c (mips_insn_size): Remove 48-bit microMIPS
6638 instruction support.
6639 (micromips_next_pc): Likewise.
6640 (micromips_scan_prologue): Likewise.
6641 (micromips_deal_with_atomic_sequence): Likewise.
6642 (micromips_stack_frame_destroyed_p): Likewise.
6643 (mips_breakpoint_from_pc): Likewise.
6644
6645 2016-01-18 Maciej W. Rozycki <macro@imgtec.com>
6646
6647 * mips-tdep.c (micromips_insn_at_pc_has_delay_slot): Pass
6648 unshifted 16-bit microMIPS instruction word to `mips_insn_size'.
6649
6650 2016-01-18 Pedro Alves <palves@redhat.com>
6651
6652 * NEWS: Mention that GDB now displays the ID and name of the
6653 thread that hit a breakpoint or received a signal.
6654 * break-catch-sig.c (signal_catchpoint_print_it): Use
6655 maybe_print_thread_hit_breakpoint.
6656 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
6657 * break-catch-throw.c (print_it_exception_catchpoint): Likewise.
6658 * breakpoint.c (maybe_print_thread_hit_breakpoint): New function.
6659 (print_it_catch_fork, print_it_catch_vfork, print_it_catch_solib)
6660 (print_it_catch_exec, print_it_ranged_breakpoint)
6661 (print_it_watchpoint, print_it_masked_watchpoint, bkpt_print_it):
6662 Use maybe_print_thread_hit_breakpoint.
6663 * breakpoint.h (maybe_print_thread_hit_breakpoint): Declare.
6664 * gdbthread.h (show_thread_that_caused_stop): Declare.
6665 * infrun.c (print_signal_received_reason): Print which thread
6666 received signal.
6667 * thread.c (show_thread_that_caused_stop): New function.
6668
6669 2016-01-18 Gary Benson <gbenson@redhat.com>
6670
6671 * nat/linux-namespaces.c (do_fork): New function.
6672 (linux_mntns_get_helper): Use the above.
6673
6674 2016-01-17 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de> (tiny change)
6675
6676 Pushed by Joel Brobecker <brobecker@adacore.com>.
6677 PR gdb/19208
6678 * dwarf2read.c (read_partial_die): Do not call set_objfile_main_name
6679 if the function has no name.
6680
6681 2016-01-15 Sandra Loosemore <sandra@codesourcery.com>
6682
6683 * charset.c [PHONY_ICONV] (GDB_DEFAULT_HOST_CHARSET):
6684 Conditionalize for Windows host.
6685 (GDB_DEFAULT_TARGET_CHARSET): Match GDB_DEFAULT_HOST_CHARSET.
6686 (GDB_DEFAULT_TARGET_WIDE_CHARSET): Use UTF-32.
6687 (phony_iconv_open): Handle both UTF-32 endiannesses.
6688 (phony_iconv): Likewise. Check for output overflow and clean up
6689 out-of-input cases. Correct adjustment to input buffer pointer.
6690 (set_be_le_names) [PHONY_ICONV]: Use hard-wired names to match
6691 phony_iconv_open.
6692
6693 2016-01-15 Pedro Alves <palves@redhat.com>
6694
6695 * NEWS: Mention star wildcard ranges.
6696 * cli/cli-utils.c (get_number_or_range): Check state->in_range first.
6697 (number_range_setup_range): New function.
6698 * cli/cli-utils.h (number_range_setup_range): New declaration.
6699 * thread.c (thread_apply_command): Support star TID ranges.
6700 * tid-parse.c (tid_range_parser_finished)
6701 (tid_range_parser_string, tid_range_parser_skip)
6702 (get_tid_or_range, get_tid_or_range): Handle
6703 TID_RANGE_STATE_STAR_RANGE.
6704 (tid_range_parser_star_range): New function.
6705 * tid-parse.h (enum tid_range_state) <TID_RANGE_STATE_STAR_RANGE>:
6706 New value.
6707 (tid_range_parser_star_range): New declaration.
6708
6709 2016-01-15 Pedro Alves <palves@redhat.com>
6710
6711 * thread.c (thread_apply_command): Use the tid range parser to
6712 advance past the thread ID list.
6713 * tid-parse.c (get_positive_number_trailer): New function.
6714 (parse_thread_id): Use it.
6715 (get_tid_or_range): Use it. Return 0 instead of throwing invalid
6716 thread ID error.
6717 (get_tid_or_range): Detect negative values. Return 0 instead of
6718 throwing invalid thread ID error.
6719
6720 2016-01-14 Yao Qi <yao.qi@linaro.org>
6721
6722 * arm-linux-tdep.c (arm_linux_get_next_pcs_syscall_next_pc):
6723 Declare.
6724 (arm_linux_get_next_pcs_ops): Install
6725 arm_linux_get_next_pcs_syscall_next_pc.
6726 (arm_linux_syscall_next_pc): Change to ...
6727 (arm_linux_get_next_pcs_syscall_next_pc): ... it.
6728 (arm_linux_init_abi): Don't set tdep->syscall_next_pc.
6729 * arm-tdep.c (arm_get_next_pcs_syscall_next_pc): Declare.
6730 (arm_get_next_pcs_syscall_next_pc): Make it static. Don't
6731 call tdep->syscall_next_pc.
6732 * arm-tdep.h (struct gdbarch_tdep) <syscall_next_pc>: Remove.
6733 (arm_get_next_pcs_syscall_next_pc): Remove.
6734
6735 2016-01-14 Yao Qi <yao.qi@linaro.org>
6736
6737 * remote.c (remote_set_syscall_catchpoint): Cast to char *.
6738 * thread.c (do_captured_thread_select): Cast to const char *.
6739
6740 2016-01-14 Yao Qi <yao.qi@linaro.org>
6741
6742 * arch/arm-get-next-pcs.c (arm_get_next_pcs_ctor): Change
6743 argument arm_thumb2_breakpoint to has_thumb2_breakpoint.
6744 (thumb_get_next_pcs_raw): Check has_thumb2_breakpoint
6745 instead.
6746 * arch/arm-get-next-pcs.h (struct arm_get_next_pcs)
6747 <arm_thumb2_breakpoint>: Remove.
6748 <has_thumb2_breakpoint>: New field.
6749 (arm_get_next_pcs_ctor): Update declaration.
6750 * arm-linux-tdep.c (arm_linux_software_single_step): Pass
6751 1 to arm_get_next_pcs_ctor.
6752 * arm-tdep.c (arm_software_single_step): Pass 0 to
6753 arm_get_next_pcs_ctor.
6754
6755 2016-01-13 Ulrich Weigand <uweigand@de.ibm.com>
6756
6757 * MAINTAINERS: Add Andreas Arnez as s390 target maintainer.
6758
6759 2016-01-13 Yao Qi <yao.qi@linaro.org>
6760
6761 * arch/arm-get-next-pcs.c (arm_get_next_pcs_raw): Use
6762 byte_order_for_code to read instruction.
6763
6764 2016-01-13 Pedro Alves <palves@redhat.com>
6765
6766 * NEWS: Mention $_gthread.
6767 * gdbthread.h (struct thread_info) <global_num>: Mention
6768 $_gthread.
6769 * thread.c (thread_num_make_value_helper): New function.
6770 (thread_id_make_value): Delete.
6771 (thread_id_per_inf_num_make_value, global_thread_id_make_value):
6772 New.
6773 (thread_funcs): Adjust.
6774 (gthread_funcs): New.
6775 (_initialize_thread): Register $_gthread variable.
6776
6777 2016-01-13 Pedro Alves <palves@redhat.com>
6778
6779 * NEWS: Mention "info threads -gid".
6780 * gdbthread.h (struct thread_info) <global_num>: Mention "info
6781 threads -gid".
6782 * thread.c (info_threads_command): Handle "-gid".
6783 (_initialize_thread): Adjust "info threads" help string to mention
6784 -gid.
6785
6786 2016-01-13 Pedro Alves <palves@redhat.com>
6787
6788 * NEWS: Mention InferiorThread.global_num.
6789 * python/py-infthread.c (thpy_get_global_num): New function.
6790 (thread_object_getset): Register "global_num".
6791
6792 2016-01-13 Pedro Alves <palves@redhat.com>
6793
6794 * NEWS: Mention that thread IDs are now per inferior and global
6795 thread IDs.
6796 * Makefile.in (SFILES): Add tid-parse.c.
6797 (COMMON_OBS): Add tid-parse.o.
6798 (HFILES_NO_SRCDIR): Add tid-parse.h.
6799 * ada-tasks.c: Adjust to use ptid_to_global_thread_id.
6800 * breakpoint.c (insert_breakpoint_locations)
6801 (remove_threaded_breakpoints, bpstat_check_breakpoint_conditions)
6802 (print_one_breakpoint_location, set_longjmp_breakpoint)
6803 (check_longjmp_breakpoint_for_call_dummy)
6804 (set_momentary_breakpoint): Adjust to use global IDs.
6805 (find_condition_and_thread, watch_command_1): Use parse_thread_id.
6806 (until_break_command, longjmp_bkpt_dtor)
6807 (breakpoint_re_set_thread, insert_single_step_breakpoint): Adjust
6808 to use global IDs.
6809 * dummy-frame.c (pop_dummy_frame_bpt): Adjust to use
6810 ptid_to_global_thread_id.
6811 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
6812 * gdbthread.h (struct thread_info): Rename field 'num' to
6813 'global_num. Add new fields 'per_inf_num' and 'inf'.
6814 (thread_id_to_pid): Rename thread_id_to_pid to
6815 global_thread_id_to_ptid.
6816 (pid_to_thread_id): Rename to ...
6817 (ptid_to_global_thread_id): ... this.
6818 (valid_thread_id): Rename to ...
6819 (valid_global_thread_id): ... this.
6820 (find_thread_id): Rename to ...
6821 (find_thread_global_id): ... this.
6822 (ALL_THREADS, ALL_THREADS_BY_INFERIOR): Declare.
6823 (print_thread_info): Add comment.
6824 * tid-parse.h: New file.
6825 * tid-parse.c: New file.
6826 * infcmd.c (step_command_fsm_prepare)
6827 (step_command_fsm_should_stop): Adjust to use the global thread
6828 ID.
6829 (until_next_command, until_next_command)
6830 (finish_command_fsm_should_stop): Adjust to use the global thread
6831 ID.
6832 (attach_post_wait): Adjust to check the inferior number too.
6833 * inferior.h (struct inferior) <highest_thread_num>: New field.
6834 * infrun.c (handle_signal_stop)
6835 (insert_exception_resume_breakpoint)
6836 (insert_exception_resume_from_probe): Adjust to use the global
6837 thread ID.
6838 * record-btrace.c (record_btrace_open): Use global thread IDs.
6839 * remote.c (process_initial_stop_replies): Also consider the
6840 inferior number.
6841 * target.c (target_pre_inferior): Clear the inferior's highest
6842 thread num.
6843 * thread.c (clear_thread_inferior_resources): Adjust to use the
6844 global thread ID.
6845 (new_thread): New inferior parameter. Adjust to use it. Set both
6846 the thread's global ID and the thread's per-inferior ID.
6847 (add_thread_silent): Adjust.
6848 (find_thread_global_id): New.
6849 (find_thread_id): Make static. Adjust to rename.
6850 (valid_thread_id): Rename to ...
6851 (valid_global_thread_id): ... this.
6852 (pid_to_thread_id): Rename to ...
6853 (ptid_to_global_thread_id): ... this.
6854 (thread_id_to_pid): Rename to ...
6855 (global_thread_id_to_ptid): ... this. Adjust.
6856 (first_thread_of_process): Adjust.
6857 (do_captured_list_thread_ids): Adjust to use global thread IDs.
6858 (should_print_thread): New function.
6859 (print_thread_info): Rename to ...
6860 (print_thread_info_1): ... this, and add new show_global_ids
6861 parameter. Handle it. Iterate over inferiors.
6862 (print_thread_info): Reimplement as wrapper around
6863 print_thread_info_1.
6864 (show_inferior_qualified_tids): New function.
6865 (print_thread_id): Use it.
6866 (tp_array_compar): Compare inferior numbers too.
6867 (thread_apply_command): Use tid_range_parser.
6868 (do_captured_thread_select): Use parse_thread_id.
6869 (thread_id_make_value): Adjust.
6870 (_initialize_thread): Adjust "info threads" help string.
6871 * varobj.c (struct varobj_root): Update comment.
6872 (varobj_create): Adjust to use global thread IDs.
6873 (value_of_root_1): Adjust to use global_thread_id_to_ptid.
6874 * windows-tdep.c (display_tib): No longer accept an argument.
6875 * cli/cli-utils.c (get_number_trailer): Make extern.
6876 * cli/cli-utils.h (get_number_trailer): Declare.
6877 (get_number_const): Adjust documentation.
6878 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Adjust to use global
6879 thread IDs.
6880 * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
6881 (mi_on_normal_stop, mi_output_running_pid, mi_on_resume):
6882 * mi/mi-main.c (mi_execute_command, mi_cmd_execute): Likewise.
6883 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_thread_x):
6884 Likewise.
6885 * python/py-breakpoint.c (bppy_set_thread): Likewise.
6886 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
6887 * python/py-infthread.c (thpy_get_num): Add comment and return the
6888 per-inferior thread ID.
6889 (thread_object_getset): Update comment of "num".
6890
6891 2016-01-13 Pedro Alves <palves@redhat.com>
6892
6893 * breakpoint.c (remove_threaded_breakpoints)
6894 (print_one_breakpoint_location): Use print_thread_id.
6895 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
6896 (btrace_fetch, btrace_clear): Use print_thread_id.
6897 * common/print-utils.c (CELLSIZE): Delete.
6898 (get_cell): Rename to ...
6899 (get_print_cell): ... this and made extern. Adjust call callers.
6900 Adjust to use PRINT_CELL_SIZE.
6901 * common/print-utils.h (get_print_cell): Declare.
6902 (PRINT_CELL_SIZE): New.
6903 * gdbthread.h (print_thread_id): Declare.
6904 * infcmd.c (signal_command): Use print_thread_id.
6905 * inferior.c (print_inferior): Use print_thread_id.
6906 * infrun.c (handle_signal_stop)
6907 (insert_exception_resume_breakpoint)
6908 (insert_exception_resume_from_probe)
6909 (print_signal_received_reason): Use print_thread_id.
6910 * record-btrace.c (record_btrace_info)
6911 (record_btrace_resume_thread, record_btrace_cancel_resume)
6912 (record_btrace_step_thread, record_btrace_wait): Use
6913 print_thread_id.
6914 * thread.c (thread_apply_all_command): Use print_thread_id.
6915 (print_thread_id): New function.
6916 (thread_apply_command): Use print_thread_id.
6917 (thread_command, thread_find_command, do_captured_thread_select):
6918 Use print_thread_id.
6919
6920 2016-01-13 Pedro Alves <palves@redhat.com>
6921
6922 * NEWS: Mention InferiorThread.inferior.
6923 * python/py-infthread.c (thpy_get_inferior): New.
6924 (thread_object_getset): Register "inferior".
6925
6926 2016-01-13 Pedro Alves <palves@redhat.com>
6927
6928 * NEWS: Mention $_inferior.
6929 * inferior.c (inferior_id_make_value): New.
6930 (inferior_funcs): New.
6931 (_initialize_inferior): Create $_inferior variable.
6932
6933 2016-01-13 Pedro Alves <palves@redhat.com>
6934
6935 PR breakpoints/19388
6936 * frame.c (get_current_frame): Use validate_registers_access.
6937 * gdbthread.h (validate_registers_access): Declare.
6938 * infrun.c (validate_siginfo_access): Delete.
6939 (siginfo_value_read, siginfo_value_write): Use
6940 validate_registers_access.
6941 * thread.c (validate_registers_access): New function.
6942
6943 2016-01-12 Josh Stone <jistone@redhat.com>
6944 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6945
6946 * NEWS (Changes since GDB 7.10): Mention QCatchSyscalls and the
6947 syscall_entry and syscall_return stop reasons. Mention GDB
6948 support for remote catch syscall.
6949 * remote.c (PACKET_QCatchSyscalls): New enum.
6950 (remote_set_syscall_catchpoint): New function.
6951 (remote_protocol_features): New element for QCatchSyscalls.
6952 (remote_parse_stop_reply): Parse syscall_entry/return stops.
6953 (init_remote_ops): Install remote_set_syscall_catchpoint.
6954 (_initialize_remote): Config QCatchSyscalls.
6955 * linux-nat.h (struct lwp_info) <syscall_state>: Comment typo.
6956
6957 2016-01-12 Yao Qi <yao.qi@linaro.org>
6958
6959 * nat/linux-ptrace.c (linux_child_function): Cast child_stack
6960 to gdb_byte * and pass to linux_fork_to_function.
6961
6962 2016-01-12 Yao Qi <yao.qi@linaro.org>
6963
6964 * nat/linux-ptrace.c (linux_fork_to_function): Change type
6965 of argument 'function'.
6966 (linux_grandchild_function): Change return type to 'int'.
6967 Change child_stack's type to 'void *'.
6968 (linux_child_function): Likewise.
6969
6970 2016-01-12 Pedro Alves <palves@redhat.com>
6971
6972 Remove use of the registered trademark symbol throughout.
6973
6974 2016-01-12 Thomas Schwinge <thomas@codesourcery.com>
6975
6976 * reply_mig_hack.awk: Rewrite one regular expression.
6977
6978 2016-01-11 Mike Frysinger <vapier@gentoo.org>
6979
6980 * acinclude.m4: Include new warning.m4 file.
6981 * configure: Regenerated.
6982 * configure.ac: Move all warning logic ...
6983 * warning.m4: ... here.
6984
6985 2016-01-08 Yao Qi <yao.qi@linaro.org>
6986
6987 * extension.c: Include target.h.
6988 (set_active_ext_lang): Only call install_gdb_sigint_handler,
6989 check_quit_flag, and set_quit_flag if target_terminal_is_ours
6990 returns false.
6991 (restore_active_ext_lang): Likewise.
6992 * target.c (target_terminal_is_ours): New function.
6993 * target.h (target_terminal_is_ours): Declare.
6994
6995 2016-01-07 Maciej W. Rozycki <macro@imgtec.com>
6996
6997 * mips-tdep.c (mips_breakpoint_from_pc): Rename local `status'
6998 to `err' in the little-endian leg.
6999
7000 2016-01-06 Yao Qi <yao.qi@linaro.org>
7001
7002 * arch/arm-get-next-pcs.c (arm_get_next_pcs): Move it to some
7003 lines below.
7004 (thumb_get_next_pcs_raw): Make it static.
7005 (arm_get_next_pcs_raw): Likewise.
7006 * arch/arm-get-next-pcs.h (thumb_get_next_pcs_raw): Remove the
7007 declaration.
7008 (arm_get_next_pcs_raw): Likewise.
7009
7010 2016-01-05 Mike Frysinger <vapier@gentoo.org>
7011
7012 * version.in: Change cvs to git.
7013
7014 2016-01-05 Mike Frysinger <vapier@gentoo.org>
7015
7016 * configure.tgt (score-*-*): Delete gdb_sim assignment.
7017
7018 2016-01-05 Pedro Alves <palves@redhat.com>
7019
7020 PR sim/13418
7021 * configure.ac: Define WITH_PPC_SIM when linking in the sim and
7022 the target is powerpc*.
7023 * rs6000-tdep.c (init_sim_regno_table): Check WITH_PPC_SIM instead
7024 of WITH_SIM.
7025 * configure: Regenerate.
7026 * config.in: Regenerate.
7027
7028 2016-01-04 Markus Metzger <markus.t.metzger@intel.com>
7029
7030 * btrace.c (btrace_pt_readmem_callback): Do not return in TRY/CATCH.
7031
7032 2016-01-02 Mike Frysinger <vapier@gentoo.org>
7033
7034 * configure.tgt (powerpc*-*-*): Delete test call and
7035 always assign gdb_sim.
7036
7037 2016-01-01 Joel Brobecker <brobecker@adacore.com>
7038
7039 Update year range in copyright notice of all files.
7040
7041 2016-01-01 Joel Brobecker <brobecker@adacore.com>
7042
7043 * top.c (print_gdb_version): Change copyright year in version
7044 message.
7045
7046 2016-01-01 Joel Brobecker <brobecker@adacore.com>
7047
7048 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2015.
7049
7050 For older changes see ChangeLog-2015.
7051 \f
7052 Local Variables:
7053 mode: change-log
7054 left-margin: 8
7055 fill-column: 74
7056 version-control: never
7057 coding: utf-8
7058 End:
This page took 0.178786 seconds and 4 git commands to generate.