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